增加
自动上报违规商品 上货自动检测违规商品 自动下架违规商品
This commit is contained in:
1 parent
a319af0e91
commit
d5e38dd518
9 files changed
+308
-19
No files matched your search
+5
-2
@@ -29,8 +29,9 @@
|
||||
private void InitializeComponent()
|
||||
{
|
||||
System.Windows.Forms.TreeNode treeNode1 = new System.Windows.Forms.TreeNode("解除限制");
|
||||
System.Windows.Forms.TreeNode violationNode = new System.Windows.Forms.TreeNode("违规检测");
|
||||
System.Windows.Forms.TreeNode treeNode2 = new System.Windows.Forms.TreeNode("系统设置", new System.Windows.Forms.TreeNode[] {
|
||||
treeNode1});
|
||||
treeNode1, violationNode});
|
||||
this.panel1 = new System.Windows.Forms.Panel();
|
||||
this.panel3 = new System.Windows.Forms.Panel();
|
||||
this.panel2 = new System.Windows.Forms.Panel();
|
||||
@@ -103,6 +104,8 @@
|
||||
this.tv.Name = "tv";
|
||||
treeNode1.Name = "解除限制";
|
||||
treeNode1.Text = "解除限制";
|
||||
violationNode.Name = "违规检测";
|
||||
violationNode.Text = "违规检测";
|
||||
treeNode2.Name = "系统设置";
|
||||
treeNode2.Text = "系统设置";
|
||||
this.tv.Nodes.AddRange(new System.Windows.Forms.TreeNode[] {
|
||||
@@ -162,4 +165,4 @@
|
||||
private UserComponent.UcTreeView tv;
|
||||
private System.Windows.Forms.SplitContainer splitContainer1;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -15,6 +15,7 @@ namespace TemuKJD.KJDForms.SystemForms
|
||||
public partial class SystemForm : BaseForm
|
||||
{
|
||||
public Lazy<SystemRemoveRestrictionsForm> systemRemoveRestrictionsForm = new Lazy<SystemRemoveRestrictionsForm>();
|
||||
public Lazy<SystemViolationDetectionForm> systemViolationDetectionForm = new Lazy<SystemViolationDetectionForm>();
|
||||
public SystemForm()
|
||||
{
|
||||
InitializeComponent();
|
||||
@@ -46,6 +47,9 @@ namespace TemuKJD.KJDForms.SystemForms
|
||||
case "解除限制":
|
||||
SetForm(systemRemoveRestrictionsForm.Value);
|
||||
break;
|
||||
case "违规检测":
|
||||
SetForm(systemViolationDetectionForm.Value);
|
||||
break;
|
||||
//case "商品管理":
|
||||
// SetForm(shopProductForm.Value);
|
||||
// break;
|
||||
|
||||
@@ -0,0 +1,61 @@
|
||||
namespace TemuKJD.KJDForms.SystemForms
|
||||
{
|
||||
partial class SystemViolationDetectionForm
|
||||
{
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && components != null)
|
||||
components.Dispose();
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.components = new System.ComponentModel.Container();
|
||||
this.chkAutoReport = new TemuKJD.UserComponent.UcCheckBox(this.components);
|
||||
this.chkAutoExcludeOnUpload = new TemuKJD.UserComponent.UcCheckBox(this.components);
|
||||
this.chkAutoDelist = new TemuKJD.UserComponent.UcCheckBox(this.components);
|
||||
this.SuspendLayout();
|
||||
// chkAutoReport
|
||||
this.chkAutoReport.AutoSize = true;
|
||||
this.chkAutoReport.Location = new System.Drawing.Point(24, 24);
|
||||
this.chkAutoReport.Name = "chkAutoReport";
|
||||
this.chkAutoReport.TabIndex = 0;
|
||||
this.chkAutoReport.Text = "自动上报违规商品";
|
||||
this.chkAutoReport.UseVisualStyleBackColor = true;
|
||||
// chkAutoExcludeOnUpload
|
||||
this.chkAutoExcludeOnUpload.AutoSize = true;
|
||||
this.chkAutoExcludeOnUpload.Location = new System.Drawing.Point(24, 64);
|
||||
this.chkAutoExcludeOnUpload.Name = "chkAutoExcludeOnUpload";
|
||||
this.chkAutoExcludeOnUpload.TabIndex = 1;
|
||||
this.chkAutoExcludeOnUpload.Text = "上货自动剔除违规商品";
|
||||
this.chkAutoExcludeOnUpload.UseVisualStyleBackColor = true;
|
||||
// chkAutoDelist
|
||||
this.chkAutoDelist.AutoSize = true;
|
||||
this.chkAutoDelist.Location = new System.Drawing.Point(24, 104);
|
||||
this.chkAutoDelist.Name = "chkAutoDelist";
|
||||
this.chkAutoDelist.TabIndex = 2;
|
||||
this.chkAutoDelist.Text = "自动下架违规商品";
|
||||
this.chkAutoDelist.UseVisualStyleBackColor = true;
|
||||
// SystemViolationDetectionForm
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
||||
this.AutoScroll = true;
|
||||
this.BackColor = System.Drawing.Color.White;
|
||||
this.ClientSize = new System.Drawing.Size(800, 450);
|
||||
this.Controls.Add(this.chkAutoReport);
|
||||
this.Controls.Add(this.chkAutoExcludeOnUpload);
|
||||
this.Controls.Add(this.chkAutoDelist);
|
||||
this.Font = new System.Drawing.Font("微软雅黑", 9F);
|
||||
this.Name = "SystemViolationDetectionForm";
|
||||
this.Text = "违规检测";
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
}
|
||||
|
||||
private UserComponent.UcCheckBox chkAutoReport;
|
||||
private UserComponent.UcCheckBox chkAutoExcludeOnUpload;
|
||||
private UserComponent.UcCheckBox chkAutoDelist;
|
||||
}
|
||||
}
|
||||
@@ -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