货号加价编辑功能
This commit is contained in:
1 parent
e4b726fc51
commit
011b909bfc
12 files changed
+1085
-383
No files matched your search
@@ -109,22 +109,26 @@ namespace TemuKJD.KJDForms.SalesCenterForms
|
||||
var row = dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(p => p.Cells.GetCellValueFromColumnName("colShopId").ParseToString() == shopEntity.ShopId);
|
||||
if (row == null)
|
||||
{
|
||||
this.dgvShop.Rows.Add(
|
||||
int id = this.dgvShop.Rows.Add(
|
||||
selectShopId.Contains(shopEntity.ShopId) && canUse,
|
||||
shopEntity.LoginName,
|
||||
shopEntity.ShopId,
|
||||
shopEntity.ShopAccount,
|
||||
shopEntity.LoginStatus2 == "国际版在线" ? "在线" : "未登录",
|
||||
shopEntity.Notes,
|
||||
shopEntity.LoginStatus2 == "国际版在线" ? "在线" : "掉线",
|
||||
canUse,
|
||||
string.Empty
|
||||
);
|
||||
this.dgvShop.Rows[id].Cells["colLoginStatus"].Style.ForeColor = shopEntity.LoginStatus2 == "国际版在线" ? Color.Green : Color.Red;
|
||||
}
|
||||
else
|
||||
{
|
||||
row.Cells["colSelect"].Value = selectShopId.Contains(shopEntity.ShopId) && canUse;
|
||||
row.Cells["colShopLoginName"].Value = shopEntity.LoginName;
|
||||
row.Cells["colShopName"].Value = shopEntity.ShopAccount;
|
||||
row.Cells["colLoginStatus"].Value = shopEntity.LoginStatus2 == "国际版在线" ? "在线" : "未登录";
|
||||
row.Cells["colNotes"].Value = shopEntity.ShopAccount;
|
||||
row.Cells["colLoginStatus"].Value = shopEntity.LoginStatus2 == "国际版在线" ? "在线" : "掉线";
|
||||
row.Cells["colLoginStatus"].Style.ForeColor = shopEntity.LoginStatus2 == "国际版在线" ? Color.Green : Color.Red;
|
||||
row.Cells["colCanUse"].Value = canUse;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user