358 lines
15 KiB
C#
358 lines
15 KiB
C#
using System.Drawing;
|
|
using System.Windows.Forms;
|
|
using DevComponents.DotNetBar;
|
|
using TemuKJD.UserComponent;
|
|
|
|
namespace TemuKJD.WXForms.ProductForms
|
|
{
|
|
partial class WXViolationLogsForm
|
|
{
|
|
private TableLayoutPanel layout;
|
|
private FlowLayoutPanel settings;
|
|
private FlowLayoutPanel filters;
|
|
private CheckBox report;
|
|
private CheckBox exclude;
|
|
private CheckBox delist;
|
|
private PanelEx btnSave;
|
|
private Label shopLabel;
|
|
private ComboBox shop;
|
|
private Label reasonLabel;
|
|
private ComboBox reason;
|
|
private Label actionLabel;
|
|
private ComboBox action;
|
|
private PanelEx btnQuery;
|
|
private UserControls.UcSplitPage pagination;
|
|
private Label message;
|
|
private DataGridViewEx grid;
|
|
private DataGridViewTextBoxColumn colAction;
|
|
|
|
private void InitializeComponent()
|
|
{
|
|
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
|
|
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
|
|
this.layout = new System.Windows.Forms.TableLayoutPanel();
|
|
this.settings = new System.Windows.Forms.FlowLayoutPanel();
|
|
this.report = new System.Windows.Forms.CheckBox();
|
|
this.exclude = new System.Windows.Forms.CheckBox();
|
|
this.delist = new System.Windows.Forms.CheckBox();
|
|
this.btnSave = new DevComponents.DotNetBar.PanelEx();
|
|
this.filters = new System.Windows.Forms.FlowLayoutPanel();
|
|
this.shopLabel = new System.Windows.Forms.Label();
|
|
this.shop = new System.Windows.Forms.ComboBox();
|
|
this.reasonLabel = new System.Windows.Forms.Label();
|
|
this.reason = new System.Windows.Forms.ComboBox();
|
|
this.actionLabel = new System.Windows.Forms.Label();
|
|
this.action = new System.Windows.Forms.ComboBox();
|
|
this.btnQuery = new DevComponents.DotNetBar.PanelEx();
|
|
this.pagination = new UserControls.UcSplitPage();
|
|
this.message = new System.Windows.Forms.Label();
|
|
this.grid = new TemuKJD.UserComponent.DataGridViewEx();
|
|
this.ShopId = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
this.GoodsId = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
this.ReasonId = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
this.colAction = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
this.CreatedTime = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
this.layout.SuspendLayout();
|
|
this.settings.SuspendLayout();
|
|
this.filters.SuspendLayout();
|
|
((System.ComponentModel.ISupportInitialize)(this.grid)).BeginInit();
|
|
this.SuspendLayout();
|
|
//
|
|
// layout
|
|
//
|
|
this.layout.ColumnCount = 1;
|
|
this.layout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
|
|
this.layout.Controls.Add(this.settings, 0, 0);
|
|
this.layout.Controls.Add(this.filters, 0, 1);
|
|
this.layout.Controls.Add(this.grid, 0, 2);
|
|
this.layout.Controls.Add(this.pagination, 0, 3);
|
|
this.layout.Dock = System.Windows.Forms.DockStyle.Fill;
|
|
this.layout.Location = new System.Drawing.Point(0, 0);
|
|
this.layout.Name = "layout";
|
|
this.layout.RowCount = 4;
|
|
this.layout.RowStyles.Add(new System.Windows.Forms.RowStyle());
|
|
this.layout.RowStyles.Add(new System.Windows.Forms.RowStyle());
|
|
this.layout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
|
|
this.layout.RowStyles.Add(new RowStyle(SizeType.AutoSize));
|
|
this.layout.Size = new System.Drawing.Size(1100, 530);
|
|
this.layout.TabIndex = 0;
|
|
//
|
|
// settings
|
|
//
|
|
this.settings.AutoSize = true;
|
|
this.settings.Controls.Add(this.report);
|
|
this.settings.Controls.Add(this.exclude);
|
|
this.settings.Controls.Add(this.delist);
|
|
this.settings.Controls.Add(this.btnSave);
|
|
this.settings.Dock = System.Windows.Forms.DockStyle.Fill;
|
|
this.settings.Location = new System.Drawing.Point(3, 3);
|
|
this.settings.Name = "settings";
|
|
this.settings.Padding = new System.Windows.Forms.Padding(6, 4, 6, 4);
|
|
this.settings.Size = new System.Drawing.Size(1094, 39);
|
|
this.settings.TabIndex = 0;
|
|
//
|
|
// report
|
|
//
|
|
this.report.Anchor = System.Windows.Forms.AnchorStyles.Left;
|
|
this.report.AutoSize = true;
|
|
this.report.Location = new System.Drawing.Point(9, 9);
|
|
this.report.Name = "report";
|
|
this.report.Size = new System.Drawing.Size(123, 21);
|
|
this.report.TabIndex = 0;
|
|
this.report.Text = "自动上报违规商品";
|
|
//
|
|
// exclude
|
|
//
|
|
this.exclude.Anchor = System.Windows.Forms.AnchorStyles.Left;
|
|
this.exclude.AutoSize = true;
|
|
this.exclude.Location = new System.Drawing.Point(138, 9);
|
|
this.exclude.Name = "exclude";
|
|
this.exclude.Size = new System.Drawing.Size(147, 21);
|
|
this.exclude.TabIndex = 1;
|
|
this.exclude.Text = "上货自动剔除违规商品";
|
|
//
|
|
// delist
|
|
//
|
|
this.delist.Anchor = System.Windows.Forms.AnchorStyles.Left;
|
|
this.delist.AutoSize = true;
|
|
this.delist.Location = new System.Drawing.Point(291, 9);
|
|
this.delist.Name = "delist";
|
|
this.delist.Size = new System.Drawing.Size(123, 21);
|
|
this.delist.TabIndex = 2;
|
|
this.delist.Text = "自动下架违规商品";
|
|
//
|
|
// btnSave
|
|
//
|
|
this.btnSave.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
|
|
this.btnSave.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
|
this.btnSave.Cursor = System.Windows.Forms.Cursors.Hand;
|
|
this.btnSave.DisabledBackColor = System.Drawing.Color.Empty;
|
|
this.btnSave.Location = new System.Drawing.Point(420, 7);
|
|
this.btnSave.Name = "btnSave";
|
|
this.btnSave.Size = new System.Drawing.Size(80, 25);
|
|
this.btnSave.Style.Alignment = System.Drawing.StringAlignment.Center;
|
|
this.btnSave.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
|
this.btnSave.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
|
this.btnSave.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
|
|
this.btnSave.Style.ForeColor.Color = System.Drawing.Color.White;
|
|
this.btnSave.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
|
|
this.btnSave.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
|
|
this.btnSave.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
|
|
this.btnSave.TabIndex = 4;
|
|
this.btnSave.Text = "保存配置";
|
|
this.btnSave.Click += new System.EventHandler(this.Save_Click);
|
|
//
|
|
// filters
|
|
//
|
|
this.filters.AutoSize = true;
|
|
this.filters.Controls.Add(this.shopLabel);
|
|
this.filters.Controls.Add(this.shop);
|
|
this.filters.Controls.Add(this.reasonLabel);
|
|
this.filters.Controls.Add(this.reason);
|
|
this.filters.Controls.Add(this.actionLabel);
|
|
this.filters.Controls.Add(this.action);
|
|
this.filters.Controls.Add(this.btnQuery);
|
|
|
|
this.filters.Controls.Add(this.message);
|
|
this.filters.Dock = System.Windows.Forms.DockStyle.Fill;
|
|
this.filters.Location = new System.Drawing.Point(3, 48);
|
|
this.filters.Name = "filters";
|
|
this.filters.Padding = new System.Windows.Forms.Padding(6, 4, 6, 4);
|
|
this.filters.Size = new System.Drawing.Size(1094, 39);
|
|
this.filters.TabIndex = 1;
|
|
//
|
|
// shopLabel
|
|
//
|
|
this.shopLabel.Anchor = System.Windows.Forms.AnchorStyles.Left;
|
|
this.shopLabel.AutoSize = true;
|
|
this.shopLabel.Location = new System.Drawing.Point(9, 11);
|
|
this.shopLabel.Name = "shopLabel";
|
|
this.shopLabel.Size = new System.Drawing.Size(32, 17);
|
|
this.shopLabel.TabIndex = 0;
|
|
this.shopLabel.Text = "店铺";
|
|
//
|
|
// shop
|
|
//
|
|
this.shop.DisplayMember = "Value";
|
|
this.shop.SelectionChangeCommitted += this.Query_Click;
|
|
this.shop.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
|
this.shop.Location = new System.Drawing.Point(47, 7);
|
|
this.shop.Name = "shop";
|
|
this.shop.Size = new System.Drawing.Size(150, 25);
|
|
this.shop.TabIndex = 1;
|
|
this.shop.ValueMember = "Key";
|
|
//
|
|
// reasonLabel
|
|
//
|
|
this.reasonLabel.Anchor = System.Windows.Forms.AnchorStyles.Left;
|
|
this.reasonLabel.AutoSize = true;
|
|
this.reasonLabel.Location = new System.Drawing.Point(203, 11);
|
|
this.reasonLabel.Name = "reasonLabel";
|
|
this.reasonLabel.Size = new System.Drawing.Size(56, 17);
|
|
this.reasonLabel.TabIndex = 2;
|
|
this.reasonLabel.Text = "违规类型";
|
|
//
|
|
// reason
|
|
//
|
|
this.reason.DisplayMember = "Value";
|
|
this.reason.SelectionChangeCommitted += this.Query_Click;
|
|
this.reason.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
|
this.reason.Location = new System.Drawing.Point(265, 7);
|
|
this.reason.Name = "reason";
|
|
this.reason.Size = new System.Drawing.Size(150, 25);
|
|
this.reason.TabIndex = 3;
|
|
this.reason.ValueMember = "Key";
|
|
//
|
|
// actionLabel
|
|
//
|
|
this.actionLabel.Anchor = System.Windows.Forms.AnchorStyles.Left;
|
|
this.actionLabel.AutoSize = true;
|
|
this.actionLabel.Location = new System.Drawing.Point(421, 11);
|
|
this.actionLabel.Name = "actionLabel";
|
|
this.actionLabel.Size = new System.Drawing.Size(56, 17);
|
|
this.actionLabel.TabIndex = 4;
|
|
this.actionLabel.Text = "日志动作";
|
|
//
|
|
// action
|
|
//
|
|
this.action.SelectionChangeCommitted += this.Query_Click;
|
|
this.action.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
|
this.action.Items.AddRange(new object[] {
|
|
"全部动作",
|
|
"违规上报",
|
|
"上货剔除",
|
|
"违规下架"});
|
|
this.action.Location = new System.Drawing.Point(483, 7);
|
|
this.action.Name = "action";
|
|
this.action.Size = new System.Drawing.Size(150, 25);
|
|
this.action.TabIndex = 5;
|
|
//
|
|
// btnQuery
|
|
//
|
|
this.btnQuery.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
|
|
this.btnQuery.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
|
this.btnQuery.Cursor = System.Windows.Forms.Cursors.Hand;
|
|
this.btnQuery.DisabledBackColor = System.Drawing.Color.Empty;
|
|
this.btnQuery.Location = new System.Drawing.Point(639, 7);
|
|
this.btnQuery.Name = "btnQuery";
|
|
this.btnQuery.Size = new System.Drawing.Size(58, 25);
|
|
this.btnQuery.Style.Alignment = System.Drawing.StringAlignment.Center;
|
|
this.btnQuery.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
|
this.btnQuery.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
|
this.btnQuery.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
|
|
this.btnQuery.Style.ForeColor.Color = System.Drawing.Color.White;
|
|
this.btnQuery.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
|
|
this.btnQuery.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
|
|
this.btnQuery.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
|
|
this.btnQuery.TabIndex = 6;
|
|
this.btnQuery.Text = "查询";
|
|
this.btnQuery.Click += new System.EventHandler(this.Query_Click);
|
|
//
|
|
// pagination
|
|
//
|
|
this.pagination.Dock = DockStyle.Right;
|
|
this.pagination.Name = "pagination";
|
|
this.pagination.Size = new Size(462, 25);
|
|
this.pagination.PageSize = 50;
|
|
this.pagination.IsShowPageSize = false;
|
|
this.pagination.IsShowTotalCount = false;
|
|
this.pagination.PageChange += this.Pagination_PageChange;
|
|
//
|
|
// message
|
|
//
|
|
this.message.Anchor = System.Windows.Forms.AnchorStyles.Left;
|
|
this.message.AutoSize = true;
|
|
this.message.Location = new System.Drawing.Point(789, 11);
|
|
this.message.Name = "message";
|
|
this.message.Size = new System.Drawing.Size(0, 17);
|
|
this.message.TabIndex = 14;
|
|
//
|
|
// grid
|
|
//
|
|
this.grid.AllowUserToAddRows = false;
|
|
this.grid.AllowUserToDeleteRows = false;
|
|
dataGridViewCellStyle1.BackColor = System.Drawing.Color.WhiteSmoke;
|
|
this.grid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
|
|
this.grid.AutoRowNumber = true;
|
|
this.grid.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
|
|
this.grid.BackgroundColor = System.Drawing.Color.White;
|
|
this.grid.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
|
this.grid.Columns.AddRange(new DataGridViewColumn[] { this.ShopId, this.GoodsId, this.ReasonId, this.colAction, this.CreatedTime });
|
|
this.grid.CellFormatting += new DataGridViewCellFormattingEventHandler(this.Grid_CellFormatting);
|
|
this.grid.Dock = System.Windows.Forms.DockStyle.Fill;
|
|
this.grid.Location = new System.Drawing.Point(3, 93);
|
|
this.grid.MultiSelectCheckBox = true;
|
|
this.grid.Name = "grid";
|
|
this.grid.ReadOnly = true;
|
|
this.grid.RowHeadersVisible = true;
|
|
this.grid.Size = new System.Drawing.Size(1094, 434);
|
|
this.grid.TabIndex = 2;
|
|
//
|
|
//
|
|
// ShopId
|
|
//
|
|
this.ShopId.DataPropertyName = "ShopId";
|
|
this.ShopId.HeaderText = "店铺";
|
|
this.ShopId.Name = "ShopId";
|
|
this.ShopId.Width = 38;
|
|
//
|
|
// GoodsId
|
|
//
|
|
this.GoodsId.DataPropertyName = "GoodsId";
|
|
this.GoodsId.HeaderText = "商品编号";
|
|
this.GoodsId.Name = "GoodsId";
|
|
this.GoodsId.Width = 48;
|
|
//
|
|
// ReasonId
|
|
//
|
|
this.ReasonId.DataPropertyName = "ReasonId";
|
|
this.ReasonId.HeaderText = "违规类型";
|
|
this.ReasonId.Name = "ReasonId";
|
|
this.ReasonId.Width = 64;
|
|
//
|
|
// colAction
|
|
//
|
|
this.colAction.DataPropertyName = "Action";
|
|
this.colAction.HeaderText = "日志动作";
|
|
this.colAction.Name = "colAction";
|
|
this.colAction.Width = 96;
|
|
//
|
|
// CreatedTime
|
|
//
|
|
this.CreatedTime.DataPropertyName = "CreatedTime";
|
|
dataGridViewCellStyle2.Format = "yyyy-MM-dd HH:mm:ss";
|
|
this.CreatedTime.DefaultCellStyle = dataGridViewCellStyle2;
|
|
this.CreatedTime.HeaderText = "记录时间";
|
|
this.CreatedTime.Name = "CreatedTime";
|
|
this.CreatedTime.Width = 191;
|
|
//
|
|
// WXViolationLogsForm
|
|
//
|
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
|
this.BackColor = System.Drawing.Color.White;
|
|
this.ClientSize = new System.Drawing.Size(1100, 530);
|
|
this.Controls.Add(this.layout);
|
|
this.Font = new System.Drawing.Font("微软雅黑", 9F);
|
|
this.KeyPreview = true;
|
|
this.Name = "WXViolationLogsForm";
|
|
this.Text = "违规日志";
|
|
this.Shown += new System.EventHandler(this.Query_Click);
|
|
this.VisibleChanged += new System.EventHandler(this.Form_VisibleChanged);
|
|
this.layout.ResumeLayout(false);
|
|
this.layout.PerformLayout();
|
|
this.settings.ResumeLayout(false);
|
|
this.settings.PerformLayout();
|
|
this.filters.ResumeLayout(false);
|
|
this.filters.PerformLayout();
|
|
((System.ComponentModel.ISupportInitialize)(this.grid)).EndInit();
|
|
this.ResumeLayout(false);
|
|
|
|
}
|
|
|
|
private DataGridViewTextBoxColumn ShopId;
|
|
private DataGridViewTextBoxColumn GoodsId;
|
|
private DataGridViewTextBoxColumn ReasonId;
|
|
private DataGridViewTextBoxColumn CreatedTime;
|
|
}
|
|
}
|