Files
KJD/TEMUKJD/KJDForms/SystemForms/SystemViolationDetectionForm.cs
T
chfei d5e38dd518 增加
自动上报违规商品
上货自动检测违规商品
自动下架违规商品
2026-10-30 14:14:14 +08:00

33 lines
1.2 KiB
C#

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();
}
}
}