1优化店铺查询 2数据库上传次数统计优化
This commit is contained in:
1 parent
ed5aec05ca
commit
ba5dfe3264
18 files changed
+414
-186
No files matched your search
@@ -88,6 +88,13 @@ namespace TemuKJD.KJDForms.SalesCenterForms
|
||||
this.actDiscount70.chkSignActivity.CheckedChanged += ChkSignActivity_CheckedChanged;
|
||||
this.actDiscount80.chkSignActivity.CheckedChanged += ChkSignActivity_CheckedChanged;
|
||||
this.actDiscount85.chkSignActivity.CheckedChanged += ChkSignActivity_CheckedChanged;
|
||||
|
||||
if (BaseClass.GroupId != 3)
|
||||
{
|
||||
this.txtSubAccount.Visible = false;
|
||||
this.lblSubAccount.Visible = false;
|
||||
this.txtNotes.Width = txtShopName.Width;
|
||||
}
|
||||
}
|
||||
|
||||
private void ChkSignActivity_CheckedChanged(object sender, EventArgs e)
|
||||
@@ -195,6 +202,13 @@ namespace TemuKJD.KJDForms.SalesCenterForms
|
||||
{
|
||||
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
|
||||
@@ -215,6 +229,7 @@ namespace TemuKJD.KJDForms.SalesCenterForms
|
||||
private void btnEmpty_Click(object sender, EventArgs e)
|
||||
{
|
||||
txtNotes.Text = txtShopId.Text = txtShopName.Text = "";
|
||||
txtSubAccount.Text = "";
|
||||
FiltShop();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user