增加
自动上报违规商品 上货自动检测违规商品 自动下架违规商品
This commit is contained in:
1 parent
a319af0e91
commit
d5e38dd518
9 files changed
+308
-19
No files matched your search
@@ -0,0 +1,32 @@
|
||||
using System;
|
||||
using AllBase.Helper;
|
||||
using TemuKJD.BaseForms;
|
||||
|
||||
namespace TemuKJD.KJDForms.SystemForms
|
||||
{
|
||||
public partial class SystemViolationDetectionForm : BaseForm
|
||||
{
|
||||
public SystemViolationDetectionForm()
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
var settings = GlobalConfig.GlobalSettings;
|
||||
chkAutoReport.Checked = settings.AutoReportViolationProducts;
|
||||
chkAutoExcludeOnUpload.Checked = settings.AutoExcludeViolationProductsOnUpload;
|
||||
chkAutoDelist.Checked = settings.AutoDelistViolationProducts;
|
||||
|
||||
chkAutoReport.CheckedChanged += Settings_CheckedChanged;
|
||||
chkAutoExcludeOnUpload.CheckedChanged += Settings_CheckedChanged;
|
||||
chkAutoDelist.CheckedChanged += Settings_CheckedChanged;
|
||||
}
|
||||
|
||||
private void Settings_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
var settings = GlobalConfig.GlobalSettings;
|
||||
settings.AutoReportViolationProducts = chkAutoReport.Checked;
|
||||
settings.AutoExcludeViolationProductsOnUpload = chkAutoExcludeOnUpload.Checked;
|
||||
settings.AutoDelistViolationProducts = chkAutoDelist.Checked;
|
||||
StartUp.SaveGlobalSettings();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user