1优化店铺查询 2数据库上传次数统计优化
This commit is contained in:
1 parent
ed5aec05ca
commit
ba5dfe3264
18 files changed
+414
-186
No files matched your search
@@ -56,6 +56,13 @@ namespace TemuKJD.KJDForms.ProductForms
|
||||
chkSelectAll.CheckedChanged += chkSelectAll_CheckedChanged;
|
||||
|
||||
this.dgvStock.AddSelectorColumn("colCheck");
|
||||
|
||||
if (BaseClass.GroupId != 3)
|
||||
{
|
||||
this.txtSubAccount.Visible = false;
|
||||
this.lblSubAccount.Visible = false;
|
||||
this.txtNotes.Width = txtShopName.Width;
|
||||
}
|
||||
}
|
||||
|
||||
private void chkSelectAll_CheckedChanged(object sender, EventArgs e)
|
||||
@@ -122,6 +129,13 @@ namespace TemuKJD.KJDForms.ProductForms
|
||||
{
|
||||
shopLst = shopLst.Where(s => ("," + txtNotes.Text.Trim() + ",").Contains("," + s.Notes + ",") || s.Notes.ToLower().Contains(txtNotes.Text.Trim().ToLower())).ToList();
|
||||
}
|
||||
if (BaseClass.GroupId == 3)
|
||||
{
|
||||
if (!string.IsNullOrWhiteSpace(txtSubAccount.Text.Trim()))
|
||||
{
|
||||
shopLst = shopLst.Where(s => ("," + txtSubAccount.Text.Trim() + ",").Contains("," + s.SubUserName + ",") || s.SubUserName.Contains(txtSubAccount.Text.Trim())).ToList();
|
||||
}
|
||||
}
|
||||
|
||||
// 获取被删除的店铺
|
||||
List<DataGridViewRow> dgvRowList = dgvShop.Rows.Cast<DataGridViewRow>().Where(row
|
||||
@@ -1376,6 +1390,7 @@ namespace TemuKJD.KJDForms.ProductForms
|
||||
private void btnEmpty_Click(object sender, EventArgs e)
|
||||
{
|
||||
txtNotes.Text = txtShopId.Text = txtShopName.Text = "";
|
||||
txtSubAccount.Text = "";
|
||||
FiltShop();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user