1Jit相关功能 50% 2 其他部分优化修改

This commit is contained in:
wule committed 2025-11-26 18:27:21 +08:00
1 parent 4d5ea741d7
commit e77914bafc
49 files changed
+2576 -419

No files matched your search

+554
View File
@@ -0,0 +1,554 @@
namespace TemuKJD.KJDForms.AdminForms
{
partial class AdminCardCodeForm
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
this.txtCreateCount = new System.Windows.Forms.TextBox();
this.btnCreate = new DevComponents.DotNetBar.PanelEx();
this.cmbCardCodeStatus = new System.Windows.Forms.ComboBox();
this.label6 = new System.Windows.Forms.Label();
this.txtShopId = new System.Windows.Forms.TextBox();
this.txtShopName = new System.Windows.Forms.TextBox();
this.btnSearch = new DevComponents.DotNetBar.PanelEx();
this.btnBatchDel = new DevComponents.DotNetBar.PanelEx();
this.pnlEmpty = new DevComponents.DotNetBar.PanelEx();
this.label2 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.txtNotes = new System.Windows.Forms.TextBox();
this.label4 = new System.Windows.Forms.Label();
this.label5 = new System.Windows.Forms.Label();
this.splitContainer2 = new System.Windows.Forms.SplitContainer();
this.pbLoading = new System.Windows.Forms.PictureBox();
this.dgvCardCode = new TemuKJD.UserComponent.DataGridViewEx();
this.colSelect = new System.Windows.Forms.DataGridViewCheckBoxColumn();
this.colId = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colCardCode = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colAddTime = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colActiveTime = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colExpires = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colShopId = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colShopAccount = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.conNotes = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colEdit = new System.Windows.Forms.DataGridViewLinkColumn();
this.colDelete = new System.Windows.Forms.DataGridViewLinkColumn();
this.ucSplitPage1 = new TemuKJD.UserControls.UcSplitPage();
this.statusBar = new TemuKJD.UserControls.StatusBarUserControl();
this.txtCardCode = new System.Windows.Forms.TextBox();
this.label1 = new System.Windows.Forms.Label();
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
this.splitContainer1.Panel1.SuspendLayout();
this.splitContainer1.Panel2.SuspendLayout();
this.splitContainer1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).BeginInit();
this.splitContainer2.Panel1.SuspendLayout();
this.splitContainer2.Panel2.SuspendLayout();
this.splitContainer2.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pbLoading)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.dgvCardCode)).BeginInit();
this.SuspendLayout();
//
// splitContainer1
//
this.splitContainer1.BackColor = System.Drawing.Color.White;
this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill;
this.splitContainer1.FixedPanel = System.Windows.Forms.FixedPanel.Panel1;
this.splitContainer1.Location = new System.Drawing.Point(0, 0);
this.splitContainer1.Name = "splitContainer1";
this.splitContainer1.Orientation = System.Windows.Forms.Orientation.Horizontal;
//
// splitContainer1.Panel1
//
this.splitContainer1.Panel1.Controls.Add(this.txtCardCode);
this.splitContainer1.Panel1.Controls.Add(this.label1);
this.splitContainer1.Panel1.Controls.Add(this.txtCreateCount);
this.splitContainer1.Panel1.Controls.Add(this.btnCreate);
this.splitContainer1.Panel1.Controls.Add(this.cmbCardCodeStatus);
this.splitContainer1.Panel1.Controls.Add(this.label6);
this.splitContainer1.Panel1.Controls.Add(this.txtShopId);
this.splitContainer1.Panel1.Controls.Add(this.txtShopName);
this.splitContainer1.Panel1.Controls.Add(this.btnSearch);
this.splitContainer1.Panel1.Controls.Add(this.btnBatchDel);
this.splitContainer1.Panel1.Controls.Add(this.pnlEmpty);
this.splitContainer1.Panel1.Controls.Add(this.label2);
this.splitContainer1.Panel1.Controls.Add(this.label3);
this.splitContainer1.Panel1.Controls.Add(this.txtNotes);
this.splitContainer1.Panel1.Controls.Add(this.label4);
this.splitContainer1.Panel1.Controls.Add(this.label5);
//
// splitContainer1.Panel2
//
this.splitContainer1.Panel2.Controls.Add(this.splitContainer2);
this.splitContainer1.Panel2.Margin = new System.Windows.Forms.Padding(4);
this.splitContainer1.Size = new System.Drawing.Size(1221, 530);
this.splitContainer1.TabIndex = 35;
//
// txtCreateCount
//
this.txtCreateCount.Location = new System.Drawing.Point(949, 14);
this.txtCreateCount.Name = "txtCreateCount";
this.txtCreateCount.Size = new System.Drawing.Size(47, 23);
this.txtCreateCount.TabIndex = 455;
this.txtCreateCount.Text = "1";
//
// btnCreate
//
this.btnCreate.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.btnCreate.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnCreate.DisabledBackColor = System.Drawing.Color.Empty;
this.btnCreate.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnCreate.Location = new System.Drawing.Point(1002, 14);
this.btnCreate.Name = "btnCreate";
this.btnCreate.Size = new System.Drawing.Size(80, 23);
this.btnCreate.Style.Alignment = System.Drawing.StringAlignment.Center;
this.btnCreate.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnCreate.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnCreate.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
this.btnCreate.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
this.btnCreate.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
this.btnCreate.Style.ForeColor.Color = System.Drawing.Color.White;
this.btnCreate.Style.GradientAngle = 90;
this.btnCreate.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
this.btnCreate.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
this.btnCreate.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
this.btnCreate.TabIndex = 454;
this.btnCreate.Text = "生成卡密";
this.btnCreate.Click += new System.EventHandler(this.btnCreate_Click);
//
// cmbCardCodeStatus
//
this.cmbCardCodeStatus.FormattingEnabled = true;
this.cmbCardCodeStatus.Items.AddRange(new object[] {
"全部",
"未激活",
"已激活",
"已过期"});
this.cmbCardCodeStatus.Location = new System.Drawing.Point(606, 13);
this.cmbCardCodeStatus.Name = "cmbCardCodeStatus";
this.cmbCardCodeStatus.Size = new System.Drawing.Size(90, 25);
this.cmbCardCodeStatus.TabIndex = 441;
this.cmbCardCodeStatus.Text = "未激活";
//
// label6
//
this.label6.AutoSize = true;
this.label6.Location = new System.Drawing.Point(549, 17);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(68, 17);
this.label6.TabIndex = 440;
this.label6.Text = "卡密状态:";
//
// txtShopId
//
this.txtShopId.Location = new System.Drawing.Point(180, 14);
this.txtShopId.Name = "txtShopId";
this.txtShopId.Size = new System.Drawing.Size(90, 23);
this.txtShopId.TabIndex = 372;
//
// txtShopName
//
this.txtShopName.Location = new System.Drawing.Point(330, 14);
this.txtShopName.Name = "txtShopName";
this.txtShopName.Size = new System.Drawing.Size(90, 23);
this.txtShopName.TabIndex = 374;
//
// btnSearch
//
this.btnSearch.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.btnSearch.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnSearch.DisabledBackColor = System.Drawing.Color.Empty;
this.btnSearch.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnSearch.Location = new System.Drawing.Point(715, 14);
this.btnSearch.Name = "btnSearch";
this.btnSearch.Size = new System.Drawing.Size(58, 23);
this.btnSearch.Style.Alignment = System.Drawing.StringAlignment.Center;
this.btnSearch.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnSearch.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnSearch.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
this.btnSearch.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
this.btnSearch.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
this.btnSearch.Style.ForeColor.Color = System.Drawing.Color.White;
this.btnSearch.Style.GradientAngle = 90;
this.btnSearch.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
this.btnSearch.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
this.btnSearch.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
this.btnSearch.TabIndex = 435;
this.btnSearch.Text = "查询卡密";
this.btnSearch.Click += new System.EventHandler(this.btnSearch_Click);
//
// btnBatchDel
//
this.btnBatchDel.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.btnBatchDel.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnBatchDel.DisabledBackColor = System.Drawing.Color.Empty;
this.btnBatchDel.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnBatchDel.Location = new System.Drawing.Point(1151, 14);
this.btnBatchDel.Name = "btnBatchDel";
this.btnBatchDel.Size = new System.Drawing.Size(58, 23);
this.btnBatchDel.Style.Alignment = System.Drawing.StringAlignment.Center;
this.btnBatchDel.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnBatchDel.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnBatchDel.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
this.btnBatchDel.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
this.btnBatchDel.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
this.btnBatchDel.Style.ForeColor.Color = System.Drawing.Color.White;
this.btnBatchDel.Style.GradientAngle = 90;
this.btnBatchDel.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
this.btnBatchDel.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
this.btnBatchDel.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
this.btnBatchDel.TabIndex = 439;
this.btnBatchDel.Text = "批量删除";
this.btnBatchDel.Click += new System.EventHandler(this.btnBatchDel_Click);
//
// pnlEmpty
//
this.pnlEmpty.CanvasColor = System.Drawing.SystemColors.Control;
this.pnlEmpty.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.pnlEmpty.DisabledBackColor = System.Drawing.Color.Empty;
this.pnlEmpty.Location = new System.Drawing.Point(779, 14);
this.pnlEmpty.Name = "pnlEmpty";
this.pnlEmpty.Size = new System.Drawing.Size(58, 23);
this.pnlEmpty.Style.Alignment = System.Drawing.StringAlignment.Center;
this.pnlEmpty.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255)))));
this.pnlEmpty.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255)))));
this.pnlEmpty.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine;
this.pnlEmpty.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.pnlEmpty.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText;
this.pnlEmpty.Style.GradientAngle = 90;
this.pnlEmpty.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center;
this.pnlEmpty.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
this.pnlEmpty.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.pnlEmpty.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.pnlEmpty.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White;
this.pnlEmpty.TabIndex = 413;
this.pnlEmpty.Text = "清空条件";
this.pnlEmpty.Click += new System.EventHandler(this.pnlEmpty_Click);
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(134, 17);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(57, 17);
this.label2.TabIndex = 373;
this.label2.Text = "店铺ID:";
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(273, 17);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(68, 17);
this.label3.TabIndex = 375;
this.label3.Text = "店铺名称:";
//
// txtNotes
//
this.txtNotes.Location = new System.Drawing.Point(456, 14);
this.txtNotes.Name = "txtNotes";
this.txtNotes.Size = new System.Drawing.Size(90, 23);
this.txtNotes.TabIndex = 376;
//
// label4
//
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(423, 17);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(44, 17);
this.label4.TabIndex = 377;
this.label4.Text = "备注:";
//
// label5
//
this.label5.AutoSize = true;
this.label5.Location = new System.Drawing.Point(892, 17);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(68, 17);
this.label5.TabIndex = 456;
this.label5.Text = "生成数量:";
//
// splitContainer2
//
this.splitContainer2.BackColor = System.Drawing.Color.White;
this.splitContainer2.Dock = System.Windows.Forms.DockStyle.Fill;
this.splitContainer2.FixedPanel = System.Windows.Forms.FixedPanel.Panel2;
this.splitContainer2.Location = new System.Drawing.Point(0, 0);
this.splitContainer2.Name = "splitContainer2";
this.splitContainer2.Orientation = System.Windows.Forms.Orientation.Horizontal;
//
// splitContainer2.Panel1
//
this.splitContainer2.Panel1.BackColor = System.Drawing.Color.White;
this.splitContainer2.Panel1.Controls.Add(this.pbLoading);
this.splitContainer2.Panel1.Controls.Add(this.dgvCardCode);
this.splitContainer2.Panel1.Padding = new System.Windows.Forms.Padding(4, 0, 4, 0);
//
// splitContainer2.Panel2
//
this.splitContainer2.Panel2.Controls.Add(this.ucSplitPage1);
this.splitContainer2.Panel2.Controls.Add(this.statusBar);
this.splitContainer2.Size = new System.Drawing.Size(1221, 476);
this.splitContainer2.SplitterDistance = 447;
this.splitContainer2.TabIndex = 0;
//
// pbLoading
//
this.pbLoading.Anchor = System.Windows.Forms.AnchorStyles.None;
this.pbLoading.Image = global::TemuKJD.Properties.Resources.loading_blue;
this.pbLoading.Location = new System.Drawing.Point(585, 198);
this.pbLoading.Name = "pbLoading";
this.pbLoading.Size = new System.Drawing.Size(50, 50);
this.pbLoading.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.pbLoading.TabIndex = 6;
this.pbLoading.TabStop = false;
//
// dgvCardCode
//
this.dgvCardCode.AllowUserToAddRows = false;
this.dgvCardCode.AllowUserToDeleteRows = false;
dataGridViewCellStyle1.BackColor = System.Drawing.Color.WhiteSmoke;
this.dgvCardCode.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
this.dgvCardCode.AutoRowNumber = true;
this.dgvCardCode.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
this.dgvCardCode.BackgroundColor = System.Drawing.Color.White;
this.dgvCardCode.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle2.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dgvCardCode.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2;
this.dgvCardCode.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dgvCardCode.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.colSelect,
this.colId,
this.colCardCode,
this.colAddTime,
this.colActiveTime,
this.colExpires,
this.colShopId,
this.colShopAccount,
this.conNotes,
this.colEdit,
this.colDelete});
this.dgvCardCode.Dock = System.Windows.Forms.DockStyle.Fill;
this.dgvCardCode.Location = new System.Drawing.Point(4, 0);
this.dgvCardCode.Name = "dgvCardCode";
this.dgvCardCode.ReadOnly = true;
this.dgvCardCode.RowTemplate.Height = 23;
this.dgvCardCode.ShowCellErrors = false;
this.dgvCardCode.Size = new System.Drawing.Size(1213, 447);
this.dgvCardCode.TabIndex = 5;
this.dgvCardCode.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvCardCode_CellContentClick);
//
// colSelect
//
this.colSelect.FillWeight = 26F;
this.colSelect.HeaderText = "选";
this.colSelect.Name = "colSelect";
this.colSelect.ReadOnly = true;
this.colSelect.Resizable = System.Windows.Forms.DataGridViewTriState.True;
this.colSelect.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
//
// colId
//
this.colId.HeaderText = "数据库ID";
this.colId.Name = "colId";
this.colId.ReadOnly = true;
this.colId.Visible = false;
//
// colCardCode
//
dataGridViewCellStyle3.Font = new System.Drawing.Font("Consolas", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.colCardCode.DefaultCellStyle = dataGridViewCellStyle3;
this.colCardCode.HeaderText = "卡密";
this.colCardCode.Name = "colCardCode";
this.colCardCode.ReadOnly = true;
//
// colAddTime
//
this.colAddTime.HeaderText = "生成时间";
this.colAddTime.Name = "colAddTime";
this.colAddTime.ReadOnly = true;
//
// colActiveTime
//
this.colActiveTime.HeaderText = "激活时间";
this.colActiveTime.Name = "colActiveTime";
this.colActiveTime.ReadOnly = true;
//
// colExpires
//
this.colExpires.HeaderText = "到期时间";
this.colExpires.Name = "colExpires";
this.colExpires.ReadOnly = true;
//
// colShopId
//
this.colShopId.HeaderText = "店铺ID";
this.colShopId.Name = "colShopId";
this.colShopId.ReadOnly = true;
//
// colShopAccount
//
this.colShopAccount.HeaderText = "店铺账号";
this.colShopAccount.Name = "colShopAccount";
this.colShopAccount.ReadOnly = true;
//
// conNotes
//
this.conNotes.HeaderText = "备注";
this.conNotes.Name = "conNotes";
this.conNotes.ReadOnly = true;
//
// colEdit
//
this.colEdit.FillWeight = 46F;
this.colEdit.HeaderText = "编辑备注";
this.colEdit.Name = "colEdit";
this.colEdit.ReadOnly = true;
this.colEdit.Resizable = System.Windows.Forms.DataGridViewTriState.True;
this.colEdit.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
//
// colDelete
//
this.colDelete.FillWeight = 46F;
this.colDelete.HeaderText = "删除";
this.colDelete.Name = "colDelete";
this.colDelete.ReadOnly = true;
//
// ucSplitPage1
//
this.ucSplitPage1.CurrentPage = 1;
this.ucSplitPage1.Dock = System.Windows.Forms.DockStyle.Right;
this.ucSplitPage1.IsShowPageSize = false;
this.ucSplitPage1.Location = new System.Drawing.Point(859, 0);
this.ucSplitPage1.Margin = new System.Windows.Forms.Padding(0);
this.ucSplitPage1.Name = "ucSplitPage1";
this.ucSplitPage1.PageSize = 50;
this.ucSplitPage1.Size = new System.Drawing.Size(362, 25);
this.ucSplitPage1.TabIndex = 4;
this.ucSplitPage1.TotalPage = 1;
this.ucSplitPage1.PageChange += new System.Action<object>(this.ucSplitPage1_PageChange);
//
// statusBar
//
this.statusBar.BackColor = System.Drawing.Color.White;
this.statusBar.Dock = System.Windows.Forms.DockStyle.Fill;
this.statusBar.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.statusBar.Location = new System.Drawing.Point(0, 0);
this.statusBar.Margin = new System.Windows.Forms.Padding(0);
this.statusBar.Name = "statusBar";
this.statusBar.Size = new System.Drawing.Size(1221, 25);
this.statusBar.TabIndex = 1;
this.statusBar.Visible = false;
//
// txtCardCode
//
this.txtCardCode.Location = new System.Drawing.Point(41, 14);
this.txtCardCode.Name = "txtCardCode";
this.txtCardCode.Size = new System.Drawing.Size(90, 23);
this.txtCardCode.TabIndex = 468;
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(8, 17);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(44, 17);
this.label1.TabIndex = 469;
this.label1.Text = "卡密:";
//
// AdminCardCodeForm
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.ClientSize = new System.Drawing.Size(1221, 530);
this.Controls.Add(this.splitContainer1);
this.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.Name = "AdminCardCodeForm";
this.Text = "AdminCardCodeForm";
this.Load += new System.EventHandler(this.AdminCardCodeForm_Load);
this.VisibleChanged += new System.EventHandler(this.AdminCardCodeForm_VisibleChanged);
this.splitContainer1.Panel1.ResumeLayout(false);
this.splitContainer1.Panel1.PerformLayout();
this.splitContainer1.Panel2.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit();
this.splitContainer1.ResumeLayout(false);
this.splitContainer2.Panel1.ResumeLayout(false);
this.splitContainer2.Panel2.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).EndInit();
this.splitContainer2.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.pbLoading)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.dgvCardCode)).EndInit();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.SplitContainer splitContainer1;
private DevComponents.DotNetBar.PanelEx pnlEmpty;
private System.Windows.Forms.TextBox txtNotes;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.TextBox txtShopName;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.TextBox txtShopId;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.SplitContainer splitContainer2;
private System.Windows.Forms.PictureBox pbLoading;
private UserComponent.DataGridViewEx dgvCardCode;
private UserControls.UcSplitPage ucSplitPage1;
private UserControls.StatusBarUserControl statusBar;
private DevComponents.DotNetBar.PanelEx btnSearch;
private DevComponents.DotNetBar.PanelEx btnBatchDel;
private System.Windows.Forms.ComboBox cmbCardCodeStatus;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.TextBox txtCreateCount;
private DevComponents.DotNetBar.PanelEx btnCreate;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.DataGridViewCheckBoxColumn colSelect;
private System.Windows.Forms.DataGridViewTextBoxColumn colId;
private System.Windows.Forms.DataGridViewTextBoxColumn colCardCode;
private System.Windows.Forms.DataGridViewTextBoxColumn colAddTime;
private System.Windows.Forms.DataGridViewTextBoxColumn colActiveTime;
private System.Windows.Forms.DataGridViewTextBoxColumn colExpires;
private System.Windows.Forms.DataGridViewTextBoxColumn colShopId;
private System.Windows.Forms.DataGridViewTextBoxColumn colShopAccount;
private System.Windows.Forms.DataGridViewTextBoxColumn conNotes;
private System.Windows.Forms.DataGridViewLinkColumn colEdit;
private System.Windows.Forms.DataGridViewLinkColumn colDelete;
private System.Windows.Forms.TextBox txtCardCode;
private System.Windows.Forms.Label label1;
}
}
@@ -0,0 +1,233 @@
using AllBase;
using AllBase.Model.Result;
using NaiBa.Util.Extension;
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using TemuKJD.BaseForms;
using TemuKJD.Extension;
using Work;
namespace TemuKJD.KJDForms.AdminForms
{
public partial class AdminCardCodeForm : Form
{
public List<JitCardCodeInfo> lstCardCodeInfo = new List<JitCardCodeInfo>();
public AdminCardCodeForm()
{
InitializeComponent();
}
private void AdminCardCodeForm_Load(object sender, EventArgs e)
{
this.dgvCardCode.AddSelectorColumn("colSelect");
}
bool firstLoad = true;
private void AdminCardCodeForm_VisibleChanged(object sender, EventArgs e)
{
if (this.Visible == true && firstLoad)
{
firstLoad = false;
this.pbLoading.Visible = true;
SearchCardCode(this.ucSplitPage1.CurrentPage);
}
}
private void btnSearch_Click(object sender, EventArgs e)
{
if (this.ucSplitPage1.CurrentPage != 1)
this.ucSplitPage1.CurrentPage = 1;
else
SearchCardCode(1);
}
public void SearchCardCode(int page)
{
List<string> IdList = GetCheckedIdList();
if (InvokeRequired)
{
Invoke(new Action(() =>
{
this.pbLoading.Visible = true;
this.dgvCardCode.Rows.Clear();
lstCardCodeInfo.Clear();
}));
}
else
{
this.pbLoading.Visible = true;
this.dgvCardCode.Rows.Clear();
lstCardCodeInfo.Clear();
}
Task.Run(() =>
{
int pageCount;
var list = GetJitCardCodeLst(out pageCount, page);
lstCardCodeInfo.AddRange(list);
this.ucSplitPage1.TotalPage = pageCount;
foreach (var cardCode in lstCardCodeInfo)
{
Invoke(new Action(() =>
{
int rowIndex = this.dgvCardCode.Rows.Add(
IdList.Contains(cardCode.id.ToString()),
cardCode.id,
cardCode.card_code_id,
cardCode.add_time,
cardCode.active_time,
cardCode.expire_time,
cardCode.shop_id,
cardCode.shop_account,
cardCode.notes,
"编辑",
"删除");
}));
}
Invoke(new Action(() =>
{
this.pbLoading.Visible = false;
}));
});
}
public List<JitCardCodeInfo> GetJitCardCodeLst(out int pageCount, int page = 1, int pageSize = 50)
{
return GetJitCardCodeLst(out pageCount, txtCardCode.Text.Trim(), txtNotes.Text.Trim(),
txtShopId.Text.Trim(), txtShopName.Text.Trim(), page, pageSize);
}
public List<JitCardCodeInfo> GetJitCardCodeLst(out int pageCount, string search_card_code, string search_notes,
string search_shop_id, string search_shop_name, int page = 1, int pageSize = 50)
{
List<JitCardCodeInfo> list = new List<JitCardCodeInfo>();
pageCount = 1;
var url = BaseClass.BuildObjString("shop/get_shop_card_code_list");
var data = UserLogin.GetSignaturex() +
"&page=" + page +
"&page_size=" + pageSize +
"&search_card_code_id=" + search_card_code +
"&search_notes=" + search_notes +
"&search_shop_id=" + search_shop_id +
"&search_shop_name=" + search_shop_name;
var html = GetHtml.PostUtf8(url, data);
if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))
html = GetHtml.PostUtf8(url, data);
if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))
{
return list;
}
int count = BaseRegex.GetIntJson(ref html, "count");
pageCount = Math.Ceiling(1.0 * count / pageSize).ParseToInt();
pageCount = Math.Max(pageCount, 1);
JObject jObj = JObject.Parse(html);
return JsonHelper.DeserializeJsonToList<JitCardCodeInfo>(jObj["data"].ToString());
}
List<string> GetCheckedIdList()
{
List<string> idList = new List<string>();
for (int i = 0; i < dgvCardCode.Rows.Count; i++)
{
if (dgvCardCode.Rows[i].Cells["colSelect"].Value.ParseToBool())
{
string id = dgvCardCode.Rows[i].Cells["colId"].Value.ParseToString();
idList.Add(id);
}
}
return idList;
}
private void pnlEmpty_Click(object sender, EventArgs e)
{
txtCardCode.Text = txtShopId.Text = txtNotes.Text = txtShopName.Text = "";
}
private void btnCreate_Click(object sender, EventArgs e)
{
StringBuilder data = new StringBuilder();
data.Append(UserLogin.GetSignaturex());
data.Append("&create_count=" + txtCreateCount.Text.Trim());
string url = BaseClass.BuildObjString("shop/create_shop_card_code");
string html = GetHtml.PostUtf8(url, data.ToString()).Trim();
if (string.IsNullOrEmpty(html))
{
BaseMsgForm.ShowError("未知错误,请重试!", "错误");
return;
}
if (html.Contains("\"code\":200"))
{
BaseMsgForm.ShowInfo("生成成功!");
SearchCardCode(this.ucSplitPage1.CurrentPage);
}
else
{
var msg = BaseRegex.GetStringJson(ref html, "msg");
if (string.IsNullOrEmpty(msg))
msg = html;
BaseMsgForm.ShowError(msg, "错误");
}
}
private void dgvCardCode_CellContentClick(object sender, DataGridViewCellEventArgs e)
{
if (e.ColumnIndex < 0 || e.RowIndex < 0)
return;
string headerText = dgvCardCode.Columns[e.ColumnIndex].HeaderText;
string dbId = dgvCardCode.Rows[e.RowIndex].Cells["colId"].Value.ParseToString();
string shopId = dgvCardCode.Rows[e.RowIndex].Cells["colShopId"].Value.ParseToString();
switch (headerText)
{
case "删除":
DelCardCode(dbId);
break;
case "":
dgvCardCode.Rows[e.RowIndex].Cells["colSelect"].Value = !(bool)dgvCardCode.Rows[e.RowIndex].Cells["colSelect"].Value;
break;
default:
break;
}
}
private void ucSplitPage1_PageChange(object obj)
{
SearchCardCode(this.ucSplitPage1.CurrentPage);
}
private void btnBatchDel_Click(object sender, EventArgs e)
{
var idLst = this.dgvCardCode.Rows.Cast<DataGridViewRow>().Where(r => r.Cells["colSelect"].Value.ParseToBool() == true).Select(r => r.Cells["colId"].Value.ParseToString());
string ids = string.Join(",", idLst);
DelCardCode(ids);
}
void DelCardCode(string ids)
{
var url = BaseClass.BuildObjString("shop/del_shop_card_code");
var data = UserLogin.GetSignaturex();
data += "&del_ids=" + ids;
var result = GetHtml.PostUtf8(url, data);
if (!result.Contains("\"code\":200"))
{
BaseMsgForm.ShowError("删除失败:" + BaseRegex.GetStringJson(ref result, "msg"));
}
else
{
BaseMsgForm.ShowInfo("删除成功!");
SearchCardCode(this.ucSplitPage1.CurrentPage);
}
}
}
}
@@ -0,0 +1,153 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="colSelect.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="colId.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="colCardCode.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="colAddTime.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="colActiveTime.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="colExpires.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="colShopId.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="colShopAccount.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="conNotes.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="colEdit.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="colDelete.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
</root>
+12 -8
View File
@@ -36,8 +36,9 @@
System.Windows.Forms.TreeNode treeNode6 = new System.Windows.Forms.TreeNode("库存上传");
System.Windows.Forms.TreeNode treeNode7 = new System.Windows.Forms.TreeNode("商品核价");
System.Windows.Forms.TreeNode treeNode8 = new System.Windows.Forms.TreeNode("加入发货台");
System.Windows.Forms.TreeNode treeNode9 = new System.Windows.Forms.TreeNode("开通Jit");
System.Windows.Forms.TreeNode treeNode10 = new System.Windows.Forms.TreeNode("超级权限管理", new System.Windows.Forms.TreeNode[] {
System.Windows.Forms.TreeNode treeNode9 = new System.Windows.Forms.TreeNode("JIT卡密管理");
System.Windows.Forms.TreeNode treeNode10 = new System.Windows.Forms.TreeNode("开通JIT");
System.Windows.Forms.TreeNode treeNode11 = new System.Windows.Forms.TreeNode("超级权限管理", new System.Windows.Forms.TreeNode[] {
treeNode1,
treeNode2,
treeNode3,
@@ -46,7 +47,8 @@
treeNode6,
treeNode7,
treeNode8,
treeNode9});
treeNode9,
treeNode10});
this.panel1 = new System.Windows.Forms.Panel();
this.panel3 = new System.Windows.Forms.Panel();
this.panel2 = new System.Windows.Forms.Panel();
@@ -153,12 +155,14 @@
treeNode7.Text = "商品核价";
treeNode8.Name = "加入发货台";
treeNode8.Text = "加入发货台";
treeNode9.Name = "开通Jit";
treeNode9.Text = "开通Jit";
treeNode10.Name = "超级权限管理";
treeNode10.Text = "超级权限管理";
treeNode9.Name = "JIT卡密管理";
treeNode9.Text = "JIT卡密管理";
treeNode10.Name = "开通JIT";
treeNode10.Text = "开通JIT";
treeNode11.Name = "超级权限管理";
treeNode11.Text = "超级权限管理";
this.tv.Nodes.AddRange(new System.Windows.Forms.TreeNode[] {
treeNode10});
treeNode11});
this.tv.OverForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
this.tv.Size = new System.Drawing.Size(140, 446);
this.tv.TabIndex = 1;
+9 -4
View File
@@ -28,6 +28,7 @@ namespace TemuKJD.KJDForms.AdminForms
public Lazy<AdminProductPriceCheckForm> adminProductPriceCheckForm = new Lazy<AdminProductPriceCheckForm>();
public Lazy<JoinDeliveryForm> joinDeliveryFrom = new Lazy<JoinDeliveryForm>();
public Lazy<TemuJitForm> jitForm = new Lazy<TemuJitForm>();
public Lazy<AdminCardCodeForm> adminCardCodeFrom = new Lazy<AdminCardCodeForm>();
public AdminForm()
{
@@ -39,7 +40,7 @@ namespace TemuKJD.KJDForms.AdminForms
tv.ExpandGroup(tv.Nodes[0].Name);
List<string> hideName = new List<string>() { "超级用户管理", "超级店铺管理", "选品数据库", "选品加价管理", "认领待上传", "库存上传", "商品核价",
"加入发货台", "开通Jit" };
"加入发货台", "开通JIT", "JIT卡密管理" };
if (BaseClass.GroupId == 3)
{
@@ -54,7 +55,8 @@ namespace TemuKJD.KJDForms.AdminForms
hideName.Remove("库存上传");
hideName.Remove("商品核价");
hideName.Remove("加入发货台");
hideName.Remove("开通Jit");
//hideName.Remove("JIT卡密管理");
hideName.Remove("开通JIT");
}
if (BaseClass.SaLevel==2)
{
@@ -63,7 +65,7 @@ namespace TemuKJD.KJDForms.AdminForms
hideName.Remove("库存上传");
hideName.Remove("商品核价");
hideName.Remove("加入发货台");
hideName.Remove("开通Jit");
hideName.Remove("开通JIT");
}
}
@@ -115,10 +117,13 @@ namespace TemuKJD.KJDForms.AdminForms
joinDeliveryFrom.Value.IsAdmin = true;
SetForm(joinDeliveryFrom.Value);
break;
case "开通Jit":
case "开通JIT":
jitForm.Value.IsAdmin = true;
SetForm(jitForm.Value);
break;
case "JIT卡密管理":
SetForm(adminCardCodeFrom.Value);
break;
}
}));
}).Start();
@@ -41,6 +41,8 @@ namespace TemuKJD.KJDForms.AdminForms
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle();
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
this.ucGroupBoxEx1 = new TemuKJD.UserComponent.UcGroupBoxEx(this.components);
this.numSleep = new System.Windows.Forms.NumericUpDown();
this.lblSleep = new System.Windows.Forms.Label();
this.btnRestoreFilterParams = new DevComponents.DotNetBar.PanelEx();
this.btnSaveFilterParams = new DevComponents.DotNetBar.PanelEx();
this.txtPrice2 = new System.Windows.Forms.TextBox();
@@ -68,7 +70,6 @@ namespace TemuKJD.KJDForms.AdminForms
this.numHeight1 = new System.Windows.Forms.NumericUpDown();
this.numWidth1 = new System.Windows.Forms.NumericUpDown();
this.btnMutliOk = new DevComponents.DotNetBar.PanelEx();
this.chkSearchTime = new TemuKJD.UserComponent.UcCheckBox(this.components);
this.dtpEndTime = new System.Windows.Forms.DateTimePicker();
this.numLen2 = new System.Windows.Forms.NumericUpDown();
this.dtpStartTime = new System.Windows.Forms.DateTimePicker();
@@ -104,6 +105,7 @@ namespace TemuKJD.KJDForms.AdminForms
this.label11 = new System.Windows.Forms.Label();
this.chkSearchAllShop = new TemuKJD.UserComponent.UcCheckBox(this.components);
this.chkFilterSize = new TemuKJD.UserComponent.UcCheckBox(this.components);
this.chkSearchTime = new TemuKJD.UserComponent.UcCheckBox(this.components);
this.splitContainer3 = new System.Windows.Forms.SplitContainer();
this.splitContainer2 = new System.Windows.Forms.SplitContainer();
this.pbShopLoading = new System.Windows.Forms.PictureBox();
@@ -154,6 +156,7 @@ namespace TemuKJD.KJDForms.AdminForms
this.splitContainer1.Panel2.SuspendLayout();
this.splitContainer1.SuspendLayout();
this.ucGroupBoxEx1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.numSleep)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.dgvExtCode)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.numJudgeWeight)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.numJudgeLen)).BeginInit();
@@ -212,6 +215,8 @@ namespace TemuKJD.KJDForms.AdminForms
| System.Windows.Forms.AnchorStyles.Right)));
this.ucGroupBoxEx1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.ucGroupBoxEx1.BorderStyle = TemuKJD.UserComponent.UcGroupBoxEx.GroupBoxBorderStyle.ROUND;
this.ucGroupBoxEx1.Controls.Add(this.numSleep);
this.ucGroupBoxEx1.Controls.Add(this.lblSleep);
this.ucGroupBoxEx1.Controls.Add(this.btnRestoreFilterParams);
this.ucGroupBoxEx1.Controls.Add(this.btnSaveFilterParams);
this.ucGroupBoxEx1.Controls.Add(this.txtPrice2);
@@ -274,6 +279,35 @@ namespace TemuKJD.KJDForms.AdminForms
this.ucGroupBoxEx1.TabStop = false;
this.ucGroupBoxEx1.Text = "参数设置";
//
// numSleep
//
this.numSleep.DecimalPlaces = 2;
this.numSleep.Increment = new decimal(new int[] {
1,
0,
0,
65536});
this.numSleep.Location = new System.Drawing.Point(1409, 108);
this.numSleep.Name = "numSleep";
this.numSleep.Size = new System.Drawing.Size(44, 23);
this.numSleep.TabIndex = 1077;
this.numSleep.Value = new decimal(new int[] {
3,
0,
0,
65536});
this.numSleep.ValueChanged += new System.EventHandler(this.numSleep_ValueChanged);
//
// lblSleep
//
this.lblSleep.AutoSize = true;
this.lblSleep.Location = new System.Drawing.Point(1361, 111);
this.lblSleep.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0);
this.lblSleep.Name = "lblSleep";
this.lblSleep.Size = new System.Drawing.Size(52, 17);
this.lblSleep.TabIndex = 1078;
this.lblSleep.Text = "休眠(秒)";
//
// btnRestoreFilterParams
//
this.btnRestoreFilterParams.CanvasColor = System.Drawing.SystemColors.Control;
@@ -372,6 +406,7 @@ namespace TemuKJD.KJDForms.AdminForms
this.cmbSymbol.Name = "cmbSymbol";
this.cmbSymbol.Size = new System.Drawing.Size(50, 23);
this.cmbSymbol.TabIndex = 1023;
this.cmbSymbol.Text = "≥";
this.cmbSymbol.TextChanged += new System.EventHandler(this.cmbSymbol_TextChanged);
//
// label13
@@ -714,18 +749,6 @@ namespace TemuKJD.KJDForms.AdminForms
this.btnMutliOk.Text = "批量同意报价";
this.btnMutliOk.Click += new System.EventHandler(this.btnMutliOk_Click);
//
// chkSearchTime
//
this.chkSearchTime.AutoSize = true;
this.chkSearchTime.Checked = true;
this.chkSearchTime.CheckState = System.Windows.Forms.CheckState.Checked;
this.chkSearchTime.Location = new System.Drawing.Point(280, 63);
this.chkSearchTime.Name = "chkSearchTime";
this.chkSearchTime.Size = new System.Drawing.Size(63, 21);
this.chkSearchTime.TabIndex = 827;
this.chkSearchTime.Text = "日期:";
this.chkSearchTime.UseVisualStyleBackColor = true;
//
// dtpEndTime
//
this.dtpEndTime.Location = new System.Drawing.Point(326, 86);
@@ -1008,20 +1031,20 @@ namespace TemuKJD.KJDForms.AdminForms
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(29, 17);
this.label2.Location = new System.Drawing.Point(27, 17);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(55, 17);
this.label2.Size = new System.Drawing.Size(57, 17);
this.label2.TabIndex = 379;
this.label2.Text = "店铺id:";
this.label2.Text = "店铺ID:";
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(28, 41);
this.label3.Location = new System.Drawing.Point(16, 41);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(56, 17);
this.label3.Size = new System.Drawing.Size(68, 17);
this.label3.TabIndex = 381;
this.label3.Text = "店铺名:";
this.label3.Text = "店铺名称:";
//
// label7
//
@@ -1179,6 +1202,18 @@ namespace TemuKJD.KJDForms.AdminForms
this.chkFilterSize.UseVisualStyleBackColor = true;
this.chkFilterSize.CheckedChanged += new System.EventHandler(this.chkFilterSize_CheckedChanged);
//
// chkSearchTime
//
this.chkSearchTime.AutoSize = true;
this.chkSearchTime.Checked = true;
this.chkSearchTime.CheckState = System.Windows.Forms.CheckState.Checked;
this.chkSearchTime.Location = new System.Drawing.Point(280, 63);
this.chkSearchTime.Name = "chkSearchTime";
this.chkSearchTime.Size = new System.Drawing.Size(63, 21);
this.chkSearchTime.TabIndex = 827;
this.chkSearchTime.Text = "日期:";
this.chkSearchTime.UseVisualStyleBackColor = true;
//
// splitContainer3
//
this.splitContainer3.Dock = System.Windows.Forms.DockStyle.Fill;
@@ -1750,6 +1785,7 @@ namespace TemuKJD.KJDForms.AdminForms
this.splitContainer1.ResumeLayout(false);
this.ucGroupBoxEx1.ResumeLayout(false);
this.ucGroupBoxEx1.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.numSleep)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.dgvExtCode)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.numJudgeWeight)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.numJudgeLen)).EndInit();
@@ -1897,5 +1933,7 @@ namespace TemuKJD.KJDForms.AdminForms
private System.Windows.Forms.DataGridViewTextBoxColumn colFilterExtCode;
private System.Windows.Forms.DataGridViewTextBoxColumn colFilterRule;
private UserComponent.UcCheckBox chkFilterSize;
private System.Windows.Forms.NumericUpDown numSleep;
private System.Windows.Forms.Label lblSleep;
}
}
@@ -236,10 +236,26 @@ namespace TemuKJD.KJDForms.AdminForms
case "登录":
case "状态":
{
AdminShopLoginForm shopLoginForm = new AdminShopLoginForm(shop);
shopLoginForm.openType = EnumOpenType.login;
shopLoginForm.SaveComplete += shopLoginForm_SaveComplete;
shopLoginForm.ShowDialog();
//AdminShopLoginForm shopLoginForm = new AdminShopLoginForm(shop);
//shopLoginForm.openType = EnumOpenType.login;
//shopLoginForm.SaveComplete += shopLoginForm_SaveComplete;
//shopLoginForm.ShowDialog();
AdminShopListForm.Instance.CheckShopLogin(new ShopLoginInfo[] { shop }, false);
if (shop.LoginStatus2 == "国际版在线")
{
AdminShopLoginForm adminLoginForm = new AdminShopLoginForm(shop);
adminLoginForm.openType = EnumOpenType.manage;
adminLoginForm.WindowState = FormWindowState.Maximized;
adminLoginForm.InitUrl = "https://agentseller.temu.com";
adminLoginForm.Show();
}
else
{
AdminShopLoginForm shopLoginForm = new AdminShopLoginForm(shop);
shopLoginForm.openType = EnumOpenType.login;
shopLoginForm.SaveComplete += shopLoginForm_SaveComplete;
shopLoginForm.ShowDialog();
}
}
break;
default:
@@ -603,6 +619,7 @@ namespace TemuKJD.KJDForms.AdminForms
endTime = BaseClass.DateTimeToTimestampMilliseconds(dtpEndTime.Value.Date.AddDays(1).AddMilliseconds(-1));
}
var searchRst = this.SearchForChainSupplier(shop, page, txtSkcId.Text.Trim().Trim(','), type, startTime, endTime);
commonSleep();
if (searchRst.Contains("登录过期") || searchRst.Contains("Invalid Login State"))
{
AdminShopListForm.Instance.CheckShopLogin(new ShopLoginInfo[] { shop }, false);
@@ -725,7 +742,7 @@ namespace TemuKJD.KJDForms.AdminForms
skuName,
reviewExtCode,
extCodePrice?.original_price / 100m, //extCodePrice == null ? "-" : (extCodePrice.original_price / 100m).ParseToString(),
reviewInfo.supplyPrice / 100m, //reviewInfo.productSkuList.FirstOrDefault()?.supplierPrice, //priceInfo.supplierPrice // sku不同价的会被分成多个review,priceInfo此时为价格范围
reviewInfo.productSkuList.FirstOrDefault()?.supplierPriceValue / 100m, //reviewInfo.supplyPrice / 100m,(这个数值temu接口返回的是错的,改价不会改变) //priceInfo.supplierPrice // sku不同价的会被分成多个review,priceInfo此时为价格范围
reviewInfo.suggestSupplyPrice / 100m, //suggestSupplyPrice.ParseToDecimal(),//核价 //reviewInfo.suggestSupplyPrice == null ? "-" : reviewInfo.suggestSupplyPrice.ParseToString(),
"", //新报价
reviewInfo.times, // 修改报价次数
@@ -787,6 +804,19 @@ namespace TemuKJD.KJDForms.AdminForms
ext,
filterConfig == null ? "" : GetConfigDesStr(filterConfig.Symbol, filterConfig.Price1, filterConfig.Price2)
);
var row = dgvExtCode.Rows[pos];
if ((filterConfig?.Symbol).ParseToString().StartsWith("≥"))
{
row.Cells["colFilterRule"].Style.ForeColor = Color.Green;
}
else if ((filterConfig?.Symbol).ParseToString().StartsWith("≤"))
{
row.Cells["colFilterRule"].Style.ForeColor = Color.Red;
}
else
{
row.Cells["colFilterRule"].Style.ForeColor = Color.Black;
}
}
this.pbLoading.Visible = false;
string sRst = type + " 查询结束!";
@@ -1032,6 +1062,7 @@ namespace TemuKJD.KJDForms.AdminForms
html = editPriceProductName(shop, item.ParseToString(), price.productId.ParseToString(), newPName);
Thread.Sleep(Randomx.GetId(25, 75));
commonSleep();
if (html.Contains("\"success\":true"))
{
Invoke(new Action(() =>
@@ -1103,6 +1134,7 @@ namespace TemuKJD.KJDForms.AdminForms
continue;
this.rePrice(shop, orderId, row);
commonSleep();
}
Invoke(new Action(() =>
@@ -1134,6 +1166,7 @@ namespace TemuKJD.KJDForms.AdminForms
continue;
this.applyHighPrice(shop, orderId, row);
commonSleep();
}
Invoke(new Action(() =>
@@ -1165,6 +1198,7 @@ namespace TemuKJD.KJDForms.AdminForms
continue;
this.cancelLowPrice(shop, orderId, row);
commonSleep();
}
Invoke(new Action(() =>
@@ -1238,6 +1272,7 @@ namespace TemuKJD.KJDForms.AdminForms
continue;
this.cancelTitleWrongPrice(shop, prodId);
commonSleep();
}
Invoke(new Action(() =>
@@ -1630,6 +1665,7 @@ namespace TemuKJD.KJDForms.AdminForms
html = editPriceProductSizeAndNumber(shop, taskUid.ParseToString(), price.productId.ParseToString(), jStr);
Thread.Sleep(Randomx.GetId(25, 75));
commonSleep();
if (html.Contains("\"success\":true"))
{
Invoke(new Action(() =>
@@ -1837,7 +1873,7 @@ namespace TemuKJD.KJDForms.AdminForms
var priceParam = new PriceCheckFilterConfig()
{
ExtCode = extCode,
Symbol = cmbSymbol.Text,
Symbol = cmbSymbol.Text.Trim().IsNullOrEmpty() ? "≥" : cmbSymbol.Text.Trim(),
Price1 = txtPrice1.Text.Trim().ParseToDecimal(),
Price2 = txtPrice2.Text.Trim().ParseToDecimal(),
};
@@ -1847,7 +1883,21 @@ namespace TemuKJD.KJDForms.AdminForms
BaseMsgForm.ShowInfo("选中货号的价格过滤配置已保存!");
foreach (var row in rows)
{
row.Cells["colFilterRule"].Value = GetConfigDesStr(cmbSymbol.Text.Trim(), txtPrice1.Text.Trim().ParseToDecimal(), txtPrice2.Text.Trim().ParseToDecimal());
var ext = row.Cells["colFilterExtCode"].Value.ParseToString();
var filterConfig = lstPriceCheckFilterConfig.FirstOrDefault(c => c.ExtCode == ext);
row.Cells["colFilterRule"].Value = filterConfig == null ? null : GetConfigDesStr(filterConfig.Symbol, filterConfig.Price1, filterConfig.Price2);
if ((filterConfig?.Symbol).ParseToString().StartsWith("≥"))
{
row.Cells["colFilterRule"].Style.ForeColor = Color.Green;
}
else if ((filterConfig?.Symbol).ParseToString().StartsWith("≤"))
{
row.Cells["colFilterRule"].Style.ForeColor = Color.Red;
}
else
{
row.Cells["colFilterRule"].Style.ForeColor = Color.Black;
}
}
FilterRows();
@@ -1911,6 +1961,17 @@ namespace TemuKJD.KJDForms.AdminForms
{
FilterRows();
}
public static int sleepTime = 100;
void commonSleep()
{
Thread.Sleep(sleepTime);
}
private void numSleep_ValueChanged(object sender, EventArgs e)
{
sleepTime = (this.numSleep.Value * 1000).ParseToInt();
}
}
public class PriceCheckConfig
@@ -50,7 +50,6 @@ namespace TemuKJD.KJDForms.AdminForms
this.dgvShop.AddMergeColumn(new List<string>() { /*"colMinus",*/ "colProductRemaining", "colPlus" });
this.dgvShop.Columns["colMinus"].HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter;
this.dgvShop.Columns["colPlus"].HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter;
this.dgvShop.Columns["colPlus"].HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter;
if (BaseClass.SaLevel != 1)