1优化自动登录失效 2优化用户操作界面无法直接登录店铺问题 3优化活动报名操作逻辑防止误报低价折扣活动 4显示aisku图片使用次数
This commit is contained in:
1 parent
4d0478a9c5
commit
a6b36c64b0
17 files changed
+737
-545
No files matched your search
@@ -83,6 +83,47 @@ namespace TemuKJD.KJDForms.SalesCenterForms
|
||||
|
||||
this.dgvActivity.AddSelectorColumn("colCheckActivity");
|
||||
this.dgvProduct.AddSelectorColumn("colCheckProduct");
|
||||
|
||||
this.actDiscount60.chkSignActivity.CheckedChanged += ChkSignActivity_CheckedChanged;
|
||||
this.actDiscount70.chkSignActivity.CheckedChanged += ChkSignActivity_CheckedChanged;
|
||||
this.actDiscount80.chkSignActivity.CheckedChanged += ChkSignActivity_CheckedChanged;
|
||||
this.actDiscount85.chkSignActivity.CheckedChanged += ChkSignActivity_CheckedChanged;
|
||||
}
|
||||
|
||||
private void ChkSignActivity_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
foreach(DataGridViewRow row in dgvActivity.Rows)
|
||||
{
|
||||
SetRowCheck(row);
|
||||
}
|
||||
}
|
||||
|
||||
void SetRowCheck(DataGridViewRow row)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (row.Cells["colDiscountTenth"].Value.ParseToInt() > 0)
|
||||
{
|
||||
int discount = this.GetNearDiscount(row.Cells["colDiscountTenth"].Value.ParseToInt());
|
||||
var discountCtrl = this.actDiscount60;
|
||||
if (discount == 70)
|
||||
discountCtrl = this.actDiscount70;
|
||||
if (discount == 80)
|
||||
discountCtrl = this.actDiscount80;
|
||||
if (discount == 85)
|
||||
discountCtrl = this.actDiscount85;
|
||||
|
||||
row.Cells["colCheckActivity"].Value = discountCtrl.chkSignActivity.Checked;
|
||||
}
|
||||
else
|
||||
{
|
||||
row.Cells["colCheckActivity"].Value = false;
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
BaseMsgForm.ShowError("选择活动失败" + ex.Message);
|
||||
}
|
||||
}
|
||||
|
||||
private void chkSelectAll_CheckedChanged(object sender, EventArgs e)
|
||||
@@ -159,7 +200,11 @@ namespace TemuKJD.KJDForms.SalesCenterForms
|
||||
string.Empty
|
||||
);
|
||||
row = dgvShop.Rows[id];
|
||||
row.Cells["colLoginStatus"].Style.ForeColor = canUse ? Color.Green : Color.Red;
|
||||
//row.Cells["colLoginStatus"].Style.ForeColor = canUse ? Color.Green : Color.Red;
|
||||
(row.Cells["colLoginStatus"] as DataGridViewLinkCell).Style.ForeColor = canUse ? Color.Green : Color.Red;
|
||||
(row.Cells["colLoginStatus"] as DataGridViewLinkCell).LinkColor = canUse ? Color.Green : Color.Red;
|
||||
(row.Cells["colLoginStatus"] as DataGridViewLinkCell).ActiveLinkColor = canUse ? Color.LightGreen : Color.OrangeRed;
|
||||
(row.Cells["colLoginStatus"] as DataGridViewLinkCell).VisitedLinkColor = canUse ? Color.DarkGreen : Color.DarkRed;
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -168,7 +213,11 @@ namespace TemuKJD.KJDForms.SalesCenterForms
|
||||
row.Cells["colShopName"].Value = shopEntity.ShopAccount;
|
||||
row.Cells["colShopNotes"].Value = shopEntity.Notes;
|
||||
row.Cells["colLoginStatus"].Value = canUse ? "在线" : "掉线";
|
||||
row.Cells["colLoginStatus"].Style.ForeColor = canUse ? Color.Green : Color.Red;
|
||||
//row.Cells["colLoginStatus"].Style.ForeColor = canUse ? Color.Green : Color.Red;
|
||||
(row.Cells["colLoginStatus"] as DataGridViewLinkCell).Style.ForeColor = canUse ? Color.Green : Color.Red;
|
||||
(row.Cells["colLoginStatus"] as DataGridViewLinkCell).LinkColor = canUse ? Color.Green : Color.Red;
|
||||
(row.Cells["colLoginStatus"] as DataGridViewLinkCell).ActiveLinkColor = canUse ? Color.LightGreen : Color.OrangeRed;
|
||||
(row.Cells["colLoginStatus"] as DataGridViewLinkCell).VisitedLinkColor = canUse ? Color.DarkGreen : Color.DarkRed;
|
||||
row.Cells["colCanUse"].Value = canUse;
|
||||
}
|
||||
if (soloActivityShop != null && row != null)
|
||||
@@ -233,6 +282,12 @@ namespace TemuKJD.KJDForms.SalesCenterForms
|
||||
BaseMsgForm.ShowInfo("店铺国际版未登录!");
|
||||
}
|
||||
break;
|
||||
case "colLoginStatus":
|
||||
ShopLoginForm shopLoginForm = new ShopLoginForm(shop);
|
||||
shopLoginForm.openType = EnumOpenType.login;
|
||||
shopLoginForm.ShowDialog();
|
||||
RefreshShop();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -515,6 +570,7 @@ namespace TemuKJD.KJDForms.SalesCenterForms
|
||||
actInfo.activityThematicName,
|
||||
sActivityTime,
|
||||
sActivityRemaining,
|
||||
actInfo.discount,
|
||||
string.IsNullOrEmpty(actInfo.discount)? "-" : actInfo.discount.TrimEnd('0') + "折"
|
||||
);
|
||||
|
||||
@@ -526,6 +582,9 @@ namespace TemuKJD.KJDForms.SalesCenterForms
|
||||
if(chkGetDiscount.Checked)
|
||||
GetDiscount();
|
||||
|
||||
//设置当前快捷选中的活动
|
||||
ChkSignActivity_CheckedChanged(null, null);
|
||||
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
ucGroupBoxEx2.Enabled = true;
|
||||
|
||||
Reference in new issue
Block a user