1.界面优化调整 2.618取消活动 3.清理无流量新 4.用户商品库1688及拼多多外部商品入库逻辑优化 5.带百分号的属性微信上货优化 6.数据库产品在不同用户间迁移 7.删除店铺功能开放给充值用户防止店铺导入错误无法删除
This commit is contained in:
1 parent
2759ff0f6d
commit
0a9980335f
59 files changed
+3078
-652
No files matched your search
+109
-67
@@ -32,15 +32,19 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.components = new System.ComponentModel.Container();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle15 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle16 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle17 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle18 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle19 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle20 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle21 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
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();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
|
||||
this.ucGroupBoxEx3 = new TemuKJD.UserComponent.UcGroupBoxEx(this.components);
|
||||
this.btnCancelActivity = new DevComponents.DotNetBar.PanelEx();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.txtSkipPriceEnd = new System.Windows.Forms.TextBox();
|
||||
this.chkSkipPriceEnd = new TemuKJD.UserComponent.UcCheckBox(this.components);
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel();
|
||||
this.label4 = new System.Windows.Forms.Label();
|
||||
@@ -52,6 +56,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
this.btnStopOp = new DevComponents.DotNetBar.PanelEx();
|
||||
this.btnSetActivity = new DevComponents.DotNetBar.PanelEx();
|
||||
this.ucGroupBoxEx4 = new TemuKJD.UserComponent.UcGroupBoxEx(this.components);
|
||||
this.chkProdInActivity = new TemuKJD.UserComponent.UcCheckBox(this.components);
|
||||
this.btnEmpty = new DevComponents.DotNetBar.PanelEx();
|
||||
this.txtPage = new System.Windows.Forms.TextBox();
|
||||
this.label5 = new System.Windows.Forms.Label();
|
||||
@@ -111,9 +116,6 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
this.statusBar = new TemuKJD.UserControls.StatusBarUserControl();
|
||||
this.btnClear = new DevComponents.DotNetBar.PanelEx();
|
||||
this.panelEx1 = new DevComponents.DotNetBar.PanelEx();
|
||||
this.chkSkipPriceEnd = new TemuKJD.UserComponent.UcCheckBox(this.components);
|
||||
this.txtSkipPriceEnd = new System.Windows.Forms.TextBox();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
|
||||
this.splitContainer1.Panel1.SuspendLayout();
|
||||
this.splitContainer1.Panel2.SuspendLayout();
|
||||
@@ -169,6 +171,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
this.ucGroupBoxEx3.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
|
||||
this.ucGroupBoxEx3.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.ucGroupBoxEx3.BorderStyle = TemuKJD.UserComponent.UcGroupBoxEx.GroupBoxBorderStyle.ROUND;
|
||||
this.ucGroupBoxEx3.Controls.Add(this.btnCancelActivity);
|
||||
this.ucGroupBoxEx3.Controls.Add(this.label2);
|
||||
this.ucGroupBoxEx3.Controls.Add(this.txtSkipPriceEnd);
|
||||
this.ucGroupBoxEx3.Controls.Add(this.chkSkipPriceEnd);
|
||||
@@ -184,6 +187,62 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
this.ucGroupBoxEx3.TabStop = false;
|
||||
this.ucGroupBoxEx3.Text = "活动设置";
|
||||
//
|
||||
// btnCancelActivity
|
||||
//
|
||||
this.btnCancelActivity.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btnCancelActivity.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
this.btnCancelActivity.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.btnCancelActivity.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.btnCancelActivity.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.btnCancelActivity.Location = new System.Drawing.Point(933, 69);
|
||||
this.btnCancelActivity.Name = "btnCancelActivity";
|
||||
this.btnCancelActivity.Size = new System.Drawing.Size(84, 23);
|
||||
this.btnCancelActivity.Style.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnCancelActivity.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnCancelActivity.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnCancelActivity.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
|
||||
this.btnCancelActivity.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
|
||||
this.btnCancelActivity.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
|
||||
this.btnCancelActivity.Style.ForeColor.Color = System.Drawing.Color.White;
|
||||
this.btnCancelActivity.Style.GradientAngle = 90;
|
||||
this.btnCancelActivity.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnCancelActivity.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
|
||||
this.btnCancelActivity.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
|
||||
this.btnCancelActivity.TabIndex = 865;
|
||||
this.btnCancelActivity.Text = "批量取消报名";
|
||||
this.btnCancelActivity.Click += new System.EventHandler(this.btnCancelActivity_Click);
|
||||
//
|
||||
// label2
|
||||
//
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Location = new System.Drawing.Point(177, 75);
|
||||
this.label2.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(32, 17);
|
||||
this.label2.TabIndex = 855;
|
||||
this.label2.Text = "商品";
|
||||
//
|
||||
// txtSkipPriceEnd
|
||||
//
|
||||
this.txtSkipPriceEnd.Anchor = System.Windows.Forms.AnchorStyles.Left;
|
||||
this.txtSkipPriceEnd.Font = new System.Drawing.Font("微软雅黑", 10F);
|
||||
this.txtSkipPriceEnd.Location = new System.Drawing.Point(128, 71);
|
||||
this.txtSkipPriceEnd.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.txtSkipPriceEnd.Name = "txtSkipPriceEnd";
|
||||
this.txtSkipPriceEnd.Size = new System.Drawing.Size(47, 25);
|
||||
this.txtSkipPriceEnd.TabIndex = 854;
|
||||
this.txtSkipPriceEnd.Text = ".66";
|
||||
//
|
||||
// chkSkipPriceEnd
|
||||
//
|
||||
this.chkSkipPriceEnd.AutoSize = true;
|
||||
this.chkSkipPriceEnd.Location = new System.Drawing.Point(25, 73);
|
||||
this.chkSkipPriceEnd.Name = "chkSkipPriceEnd";
|
||||
this.chkSkipPriceEnd.Size = new System.Drawing.Size(111, 21);
|
||||
this.chkSkipPriceEnd.TabIndex = 853;
|
||||
this.chkSkipPriceEnd.Text = "跳过价格尾数为";
|
||||
this.chkSkipPriceEnd.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.AutoSize = true;
|
||||
@@ -335,6 +394,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
| System.Windows.Forms.AnchorStyles.Left)));
|
||||
this.ucGroupBoxEx4.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.ucGroupBoxEx4.BorderStyle = TemuKJD.UserComponent.UcGroupBoxEx.GroupBoxBorderStyle.ROUND;
|
||||
this.ucGroupBoxEx4.Controls.Add(this.chkProdInActivity);
|
||||
this.ucGroupBoxEx4.Controls.Add(this.btnEmpty);
|
||||
this.ucGroupBoxEx4.Controls.Add(this.txtPage);
|
||||
this.ucGroupBoxEx4.Controls.Add(this.label5);
|
||||
@@ -347,6 +407,17 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
this.ucGroupBoxEx4.TabStop = false;
|
||||
this.ucGroupBoxEx4.Text = "活动商品查询";
|
||||
//
|
||||
// chkProdInActivity
|
||||
//
|
||||
this.chkProdInActivity.AutoSize = true;
|
||||
this.chkProdInActivity.Location = new System.Drawing.Point(17, 75);
|
||||
this.chkProdInActivity.Name = "chkProdInActivity";
|
||||
this.chkProdInActivity.Size = new System.Drawing.Size(123, 21);
|
||||
this.chkProdInActivity.TabIndex = 854;
|
||||
this.chkProdInActivity.Text = "查询成功报名商品";
|
||||
this.chkProdInActivity.UseVisualStyleBackColor = true;
|
||||
this.chkProdInActivity.Visible = false;
|
||||
//
|
||||
// btnEmpty
|
||||
//
|
||||
this.btnEmpty.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
@@ -789,19 +860,19 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
//
|
||||
this.dgvShop.AllowUserToAddRows = false;
|
||||
this.dgvShop.AllowUserToDeleteRows = false;
|
||||
dataGridViewCellStyle15.BackColor = System.Drawing.Color.WhiteSmoke;
|
||||
this.dgvShop.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle15;
|
||||
dataGridViewCellStyle1.BackColor = System.Drawing.Color.WhiteSmoke;
|
||||
this.dgvShop.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
|
||||
this.dgvShop.AutoRowNumber = true;
|
||||
this.dgvShop.BackgroundColor = System.Drawing.Color.White;
|
||||
this.dgvShop.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
dataGridViewCellStyle16.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
|
||||
dataGridViewCellStyle16.BackColor = System.Drawing.SystemColors.Control;
|
||||
dataGridViewCellStyle16.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
dataGridViewCellStyle16.ForeColor = System.Drawing.SystemColors.WindowText;
|
||||
dataGridViewCellStyle16.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
||||
dataGridViewCellStyle16.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
||||
dataGridViewCellStyle16.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
|
||||
this.dgvShop.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle16;
|
||||
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.dgvShop.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2;
|
||||
this.dgvShop.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
||||
this.dgvShop.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
|
||||
this.colSelect,
|
||||
@@ -963,19 +1034,19 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
//
|
||||
this.dgvSelectProduct.AllowUserToAddRows = false;
|
||||
this.dgvSelectProduct.AllowUserToDeleteRows = false;
|
||||
dataGridViewCellStyle17.BackColor = System.Drawing.Color.WhiteSmoke;
|
||||
this.dgvSelectProduct.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle17;
|
||||
dataGridViewCellStyle3.BackColor = System.Drawing.Color.WhiteSmoke;
|
||||
this.dgvSelectProduct.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle3;
|
||||
this.dgvSelectProduct.AutoRowNumber = true;
|
||||
this.dgvSelectProduct.BackgroundColor = System.Drawing.Color.White;
|
||||
this.dgvSelectProduct.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
dataGridViewCellStyle18.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
|
||||
dataGridViewCellStyle18.BackColor = System.Drawing.SystemColors.Control;
|
||||
dataGridViewCellStyle18.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
dataGridViewCellStyle18.ForeColor = System.Drawing.SystemColors.WindowText;
|
||||
dataGridViewCellStyle18.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
||||
dataGridViewCellStyle18.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
||||
dataGridViewCellStyle18.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
|
||||
this.dgvSelectProduct.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle18;
|
||||
dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
|
||||
dataGridViewCellStyle4.BackColor = System.Drawing.SystemColors.Control;
|
||||
dataGridViewCellStyle4.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
dataGridViewCellStyle4.ForeColor = System.Drawing.SystemColors.WindowText;
|
||||
dataGridViewCellStyle4.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
||||
dataGridViewCellStyle4.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
||||
dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
|
||||
this.dgvSelectProduct.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle4;
|
||||
this.dgvSelectProduct.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
||||
this.dgvSelectProduct.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
|
||||
this.colCheck,
|
||||
@@ -1023,8 +1094,8 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
//
|
||||
// colSupplierName
|
||||
//
|
||||
dataGridViewCellStyle19.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.colSupplierName.DefaultCellStyle = dataGridViewCellStyle19;
|
||||
dataGridViewCellStyle5.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.colSupplierName.DefaultCellStyle = dataGridViewCellStyle5;
|
||||
this.colSupplierName.HeaderText = "店铺名称";
|
||||
this.colSupplierName.Name = "colSupplierName";
|
||||
this.colSupplierName.ReadOnly = true;
|
||||
@@ -1081,8 +1152,8 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
//
|
||||
// colProductName
|
||||
//
|
||||
dataGridViewCellStyle20.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.colProductName.DefaultCellStyle = dataGridViewCellStyle20;
|
||||
dataGridViewCellStyle6.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.colProductName.DefaultCellStyle = dataGridViewCellStyle6;
|
||||
this.colProductName.HeaderText = "商品名称";
|
||||
this.colProductName.Name = "colProductName";
|
||||
this.colProductName.ReadOnly = true;
|
||||
@@ -1109,8 +1180,8 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
//
|
||||
// colStock
|
||||
//
|
||||
dataGridViewCellStyle21.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.colStock.DefaultCellStyle = dataGridViewCellStyle21;
|
||||
dataGridViewCellStyle7.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.colStock.DefaultCellStyle = dataGridViewCellStyle7;
|
||||
this.colStock.HeaderText = "库存";
|
||||
this.colStock.Name = "colStock";
|
||||
this.colStock.ReadOnly = true;
|
||||
@@ -1203,37 +1274,6 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
this.panelEx1.Text = "停止当前操作";
|
||||
this.panelEx1.Visible = false;
|
||||
//
|
||||
// chkSkipPriceEnd
|
||||
//
|
||||
this.chkSkipPriceEnd.AutoSize = true;
|
||||
this.chkSkipPriceEnd.Location = new System.Drawing.Point(25, 73);
|
||||
this.chkSkipPriceEnd.Name = "chkSkipPriceEnd";
|
||||
this.chkSkipPriceEnd.Size = new System.Drawing.Size(111, 21);
|
||||
this.chkSkipPriceEnd.TabIndex = 853;
|
||||
this.chkSkipPriceEnd.Text = "跳过价格尾数为";
|
||||
this.chkSkipPriceEnd.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// txtSkipPriceEnd
|
||||
//
|
||||
this.txtSkipPriceEnd.Anchor = System.Windows.Forms.AnchorStyles.Left;
|
||||
this.txtSkipPriceEnd.Font = new System.Drawing.Font("微软雅黑", 10F);
|
||||
this.txtSkipPriceEnd.Location = new System.Drawing.Point(128, 71);
|
||||
this.txtSkipPriceEnd.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.txtSkipPriceEnd.Name = "txtSkipPriceEnd";
|
||||
this.txtSkipPriceEnd.Size = new System.Drawing.Size(47, 25);
|
||||
this.txtSkipPriceEnd.TabIndex = 854;
|
||||
this.txtSkipPriceEnd.Text = ".66";
|
||||
//
|
||||
// label2
|
||||
//
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Location = new System.Drawing.Point(177, 75);
|
||||
this.label2.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(32, 17);
|
||||
this.label2.TabIndex = 855;
|
||||
this.label2.Text = "商品";
|
||||
//
|
||||
// WXActivity618Form
|
||||
//
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
||||
@@ -1355,5 +1395,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
private System.Windows.Forms.TextBox txtSkipPriceEnd;
|
||||
private UserComponent.UcCheckBox chkSkipPriceEnd;
|
||||
private System.Windows.Forms.Label label2;
|
||||
private DevComponents.DotNetBar.PanelEx btnCancelActivity;
|
||||
private UserComponent.UcCheckBox chkProdInActivity;
|
||||
}
|
||||
}
|
||||
@@ -475,83 +475,171 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
break;
|
||||
|
||||
// 查找报名商品
|
||||
var getActivityProdRst = WXActivity.getActivityProdList(shop, page, pageSize);
|
||||
Thread.Sleep(Randomx.GetId(150, 300));
|
||||
if (!getActivityProdRst.Contains("\"code\":0"))
|
||||
var getActivityProdRst = "";
|
||||
if (chkProdInActivity.Checked)
|
||||
{
|
||||
ShowShopError(shop, getActivityProdRst);
|
||||
break;
|
||||
}
|
||||
totalPage = BaseRegex.GetIntJson(ref getActivityProdRst, "totalPage");
|
||||
|
||||
try
|
||||
{
|
||||
Invoke(new Action(() =>
|
||||
getActivityProdRst = WXActivity.getProdInActivityList(shop, page, pageSize);
|
||||
//getActivityProdRst = WXActivity.getActivityProdList(shop, page, pageSize);
|
||||
Thread.Sleep(Randomx.GetId(150, 300));
|
||||
if (!getActivityProdRst.Contains("\"code\":0"))
|
||||
{
|
||||
this.pbLoading.Visible = true;
|
||||
this.statusBar.lblTaskStatus.Text = "正在查询店铺:" + shop.ShopAccount + " " + page + "/" + Math.Min(PageEnd, totalPage);
|
||||
}));
|
||||
var prodObjs = JsonHelper.JObjectParse(getActivityProdRst)["data"];
|
||||
WxActivityData dataTmp = JsonHelper.DeserializeJsonToObject<WxActivityData>(JsonHelper.SerializeObject(prodObjs));
|
||||
foreach (var prodRequest in dataTmp.requestProductInfoList.resultList)
|
||||
{
|
||||
if (this.wxActivityData.requestProductInfoList.resultList.Any(r => r.product.productId == prodRequest.product.productId && r.product.skuId == prodRequest.product.skuId))
|
||||
continue;
|
||||
|
||||
prodRequest.shopId = shop.ShopId;
|
||||
wxActivityData.requestProductInfoList.resultList.Add(prodRequest);
|
||||
ShowShopError(shop, getActivityProdRst);
|
||||
break;
|
||||
}
|
||||
foreach (var prod in dataTmp.productList)
|
||||
var totalNum = BaseRegex.GetIntJson(ref getActivityProdRst, "totalNum");
|
||||
totalPage = Math.Ceiling(totalNum * 1.0m / pageSize).ParseToInt();
|
||||
|
||||
try
|
||||
{
|
||||
if (this.wxActivityData.productList.Any(p => p.productKey.productId == prod.productKey.productId))
|
||||
continue;
|
||||
wxActivityData.productList.Add(prod);
|
||||
var signCnt = wxActivityData.requestProductInfoList.resultList
|
||||
.Where(r => r.product.productId == prod.productKey.productId && r.isAdded == true).ToList().Count;
|
||||
var signCntStr = signCnt > 0 ? "," + signCnt + "个已报名" : "";
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
var rowIndex = this.dgvSelectProduct.Rows.Add(
|
||||
false,
|
||||
shop.ShopId,
|
||||
shop.ShopAccount,
|
||||
"登录",
|
||||
"进店",
|
||||
prod.productKey.productId,
|
||||
"",
|
||||
prod.info.headImg.FirstOrDefault(),
|
||||
DataGridViewExtension.defaultBitmap,
|
||||
prod.info.title,
|
||||
"sku数量:" + prod.productSkus.Count + "个" + signCntStr,
|
||||
prod.productSkus.Min(s => s.productSkuInfo.salePrice) * 0.01m + " - " + prod.productSkus.Max(s => s.productSkuInfo.salePrice) * 0.01m,
|
||||
prod.productSkus.Min(s => s.productSkuInfo.salePrice) * 0.01m + " - " + prod.productSkus.Max(s => s.productSkuInfo.salePrice) * 0.01m,
|
||||
prod.info.totalStockNum,
|
||||
""
|
||||
);
|
||||
|
||||
if (prod.productKey.productId == "10000852942152")
|
||||
{
|
||||
var x = JsonHelper.SerializeObject(prod);
|
||||
}
|
||||
|
||||
dgvSelectProduct.Rows[rowIndex].Height = 60;
|
||||
//Color color = Color.Red;
|
||||
//if (dgvSelectProduct.Rows[rowIndex].Cells["colMsg"].Value.ParseToString() == "在售")
|
||||
// color = Color.Blue;
|
||||
//if (dgvSelectProduct.Rows[rowIndex].Cells["colMsg"].Value.ParseToString() == "下架")
|
||||
// color = Color.Purple;
|
||||
//if (dgvSelectProduct.Rows[rowIndex].Cells["colMsg"].Value.ParseToString() == "草稿箱")
|
||||
// color = Color.DarkOrange;
|
||||
//if (dgvSelectProduct.Rows[rowIndex].Cells["colMsg"].Value.ParseToString() == "回收站")
|
||||
// color = Color.Gray;
|
||||
//dgvSelectProduct.Rows[rowIndex].Cells["colMsg"].Style.ForeColor = color;
|
||||
this.pbLoading.Visible = true;
|
||||
this.statusBar.lblTaskStatus.Text = "正在查询店铺:" + shop.ShopAccount + " " + page + "/" + Math.Min(PageEnd, totalPage);
|
||||
}));
|
||||
var prodObjs = JsonHelper.JObjectParse(getActivityProdRst)["data"];
|
||||
WxActivityData dataTmp = JsonHelper.DeserializeJsonToObject<WxActivityData>(JsonHelper.SerializeObject(prodObjs));
|
||||
foreach (var prodRequest in dataTmp.requestProductInfoList.resultList)
|
||||
{
|
||||
if (this.wxActivityData.requestProductInfoList.resultList.Any(r => r.product.productId == prodRequest.product.productId && r.product.skuId == prodRequest.product.skuId))
|
||||
continue;
|
||||
|
||||
prodRequest.shopId = shop.ShopId;
|
||||
wxActivityData.requestProductInfoList.resultList.Add(prodRequest);
|
||||
}
|
||||
foreach (var prod in dataTmp.productList)
|
||||
{
|
||||
if (this.wxActivityData.productList.Any(p => p.productKey.productId == prod.productKey.productId))
|
||||
continue;
|
||||
wxActivityData.productList.Add(prod);
|
||||
var signCnt = wxActivityData.requestProductInfoList.resultList
|
||||
.Where(r => r.product.productId == prod.productKey.productId && r.isAdded == true).ToList().Count;
|
||||
var signCntStr = signCnt > 0 ? "," + signCnt + "个已报名" : "";
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
var rowIndex = this.dgvSelectProduct.Rows.Add(
|
||||
false,
|
||||
shop.ShopId,
|
||||
shop.ShopAccount,
|
||||
"登录",
|
||||
"进店",
|
||||
prod.productKey.productId,
|
||||
"",
|
||||
prod.info.headImg.FirstOrDefault(),
|
||||
DataGridViewExtension.defaultBitmap,
|
||||
prod.info.title,
|
||||
"sku数量:" + prod.productSkus.Count + "个" + signCntStr,
|
||||
prod.productSkus.Min(s => s.productSkuInfo.salePrice) * 0.01m + " - " + prod.productSkus.Max(s => s.productSkuInfo.salePrice) * 0.01m,
|
||||
prod.productSkus.Min(s => s.productSkuInfo.salePrice) * 0.01m + " - " + prod.productSkus.Max(s => s.productSkuInfo.salePrice) * 0.01m,
|
||||
prod.info.totalStockNum,
|
||||
""
|
||||
);
|
||||
|
||||
if (prod.productKey.productId == "10000852942152")
|
||||
{
|
||||
var x = JsonHelper.SerializeObject(prod);
|
||||
}
|
||||
|
||||
dgvSelectProduct.Rows[rowIndex].Height = 60;
|
||||
//Color color = Color.Red;
|
||||
//if (dgvSelectProduct.Rows[rowIndex].Cells["colMsg"].Value.ParseToString() == "在售")
|
||||
// color = Color.Blue;
|
||||
//if (dgvSelectProduct.Rows[rowIndex].Cells["colMsg"].Value.ParseToString() == "下架")
|
||||
// color = Color.Purple;
|
||||
//if (dgvSelectProduct.Rows[rowIndex].Cells["colMsg"].Value.ParseToString() == "草稿箱")
|
||||
// color = Color.DarkOrange;
|
||||
//if (dgvSelectProduct.Rows[rowIndex].Cells["colMsg"].Value.ParseToString() == "回收站")
|
||||
// color = Color.Gray;
|
||||
//dgvSelectProduct.Rows[rowIndex].Cells["colMsg"].Style.ForeColor = color;
|
||||
}));
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
else
|
||||
{
|
||||
|
||||
getActivityProdRst = WXActivity.getActivityProdList(shop, page, pageSize);
|
||||
Thread.Sleep(Randomx.GetId(150, 300));
|
||||
if (!getActivityProdRst.Contains("\"code\":0"))
|
||||
{
|
||||
ShowShopError(shop, getActivityProdRst);
|
||||
break;
|
||||
}
|
||||
totalPage = BaseRegex.GetIntJson(ref getActivityProdRst, "totalPage");
|
||||
|
||||
try
|
||||
{
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
this.pbLoading.Visible = true;
|
||||
this.statusBar.lblTaskStatus.Text = "正在查询店铺:" + shop.ShopAccount + " " + page + "/" + Math.Min(PageEnd, totalPage);
|
||||
}));
|
||||
var prodObjs = JsonHelper.JObjectParse(getActivityProdRst)["data"];
|
||||
WxActivityData dataTmp = JsonHelper.DeserializeJsonToObject<WxActivityData>(JsonHelper.SerializeObject(prodObjs));
|
||||
foreach (var prodRequest in dataTmp.requestProductInfoList.resultList)
|
||||
{
|
||||
if (this.wxActivityData.requestProductInfoList.resultList.Any(r => r.product.productId == prodRequest.product.productId && r.product.skuId == prodRequest.product.skuId))
|
||||
continue;
|
||||
|
||||
prodRequest.shopId = shop.ShopId;
|
||||
wxActivityData.requestProductInfoList.resultList.Add(prodRequest);
|
||||
}
|
||||
foreach (var prod in dataTmp.productList)
|
||||
{
|
||||
if (this.wxActivityData.productList.Any(p => p.productKey.productId == prod.productKey.productId))
|
||||
continue;
|
||||
wxActivityData.productList.Add(prod);
|
||||
var signCnt = wxActivityData.requestProductInfoList.resultList
|
||||
.Where(r => r.product.productId == prod.productKey.productId && r.isAdded == true).ToList().Count;
|
||||
var signCntStr = signCnt > 0 ? "," + signCnt + "个已报名" : "";
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
var rowIndex = this.dgvSelectProduct.Rows.Add(
|
||||
false,
|
||||
shop.ShopId,
|
||||
shop.ShopAccount,
|
||||
"登录",
|
||||
"进店",
|
||||
prod.productKey.productId,
|
||||
"",
|
||||
prod.info.headImg.FirstOrDefault(),
|
||||
DataGridViewExtension.defaultBitmap,
|
||||
prod.info.title,
|
||||
"sku数量:" + prod.productSkus.Count + "个" + signCntStr,
|
||||
prod.productSkus.Min(s => s.productSkuInfo.salePrice) * 0.01m + " - " + prod.productSkus.Max(s => s.productSkuInfo.salePrice) * 0.01m,
|
||||
prod.productSkus.Min(s => s.productSkuInfo.salePrice) * 0.01m + " - " + prod.productSkus.Max(s => s.productSkuInfo.salePrice) * 0.01m,
|
||||
prod.info.totalStockNum,
|
||||
""
|
||||
);
|
||||
|
||||
if (prod.productKey.productId == "10000852942152")
|
||||
{
|
||||
var x = JsonHelper.SerializeObject(prod);
|
||||
}
|
||||
|
||||
dgvSelectProduct.Rows[rowIndex].Height = 60;
|
||||
//Color color = Color.Red;
|
||||
//if (dgvSelectProduct.Rows[rowIndex].Cells["colMsg"].Value.ParseToString() == "在售")
|
||||
// color = Color.Blue;
|
||||
//if (dgvSelectProduct.Rows[rowIndex].Cells["colMsg"].Value.ParseToString() == "下架")
|
||||
// color = Color.Purple;
|
||||
//if (dgvSelectProduct.Rows[rowIndex].Cells["colMsg"].Value.ParseToString() == "草稿箱")
|
||||
// color = Color.DarkOrange;
|
||||
//if (dgvSelectProduct.Rows[rowIndex].Cells["colMsg"].Value.ParseToString() == "回收站")
|
||||
// color = Color.Gray;
|
||||
//dgvSelectProduct.Rows[rowIndex].Cells["colMsg"].Style.ForeColor = color;
|
||||
}));
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -929,6 +1017,180 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
}
|
||||
}
|
||||
|
||||
void cancelSignActivity(List<DataGridViewRow> rowLst)
|
||||
{
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
this.pbLoading.Visible = true;
|
||||
this.statusBar.lblTaskStatus.Text = "正在报名活动" + "...".Substring(0, DateTime.Now.Second % 4);
|
||||
this.statusBar.pgbTaskProgress.Maximum = rowLst.Count;
|
||||
this.statusBar.UpdateProgressBar(0);
|
||||
}));
|
||||
|
||||
while (rowLst.Count > 0)
|
||||
{
|
||||
if (cancellationTokenSource.IsCancellationRequested)
|
||||
break;
|
||||
|
||||
var r0 = rowLst.FirstOrDefault();
|
||||
var shopId = r0.Cells["colSupplierId"].Value.ParseToString();
|
||||
var shop = GlobalConfig.ShopLoginList.FirstOrDefault(s => s.ShopId == shopId);
|
||||
var rowLstTmp = rowLst.Where(r => r.Cells["colSupplierId"].Value.ParseToString() == shopId).Take(50).ToList();
|
||||
|
||||
foreach (var r in rowLstTmp)
|
||||
{
|
||||
rowLst.RemoveAll(rw => rw.Cells["colDraftId"].Value == r.Cells["colDraftId"].Value);
|
||||
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
this.statusBar.lblTaskStatus.Text = "正在取消报名活动" + "...".Substring(0, DateTime.Now.Second % 4);
|
||||
this.statusBar.UpdateProgressBar(this.statusBar.pgbTaskProgress.Value + 1);
|
||||
r.Cells["colOpResult"].Value = "";
|
||||
}));
|
||||
}
|
||||
if (shop == null)
|
||||
{
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
foreach (var r in rowLstTmp)
|
||||
{
|
||||
r.Cells["colOpResult"].Value = "店铺不存在";
|
||||
}
|
||||
}));
|
||||
continue;
|
||||
}
|
||||
if (shop.LoginStatus != "登录成功")
|
||||
{
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
foreach (var r in rowLstTmp)
|
||||
{
|
||||
r.Cells["colOpResult"].Value = "店铺掉线";
|
||||
}
|
||||
}));
|
||||
continue;
|
||||
}
|
||||
|
||||
//{"cosignmentOrderId":"4436464658179189760","cosignmentProductList":[{"spuId":"10000826730228","skuId":"14511204738","cancelScene":2}],"orderId":"3736464645960385280"}
|
||||
JObject signActivityObj = new JObject();
|
||||
signActivityObj["platformActivityId"] = "1016";
|
||||
var jArr = new JArray();
|
||||
bool hasProdForCancelActivity = false;
|
||||
foreach (var row in rowLstTmp)
|
||||
{
|
||||
Thread.Sleep(Randomx.GetId(10, 20));
|
||||
var prodId = row.Cells["colDraftId"].Value.ParseToString();
|
||||
var skus = this.wxActivityData.requestProductInfoList.resultList.Where(p => p.product.productId == prodId).ToList();
|
||||
|
||||
//if (chkSkipPriceEnd.Checked && txtSkipPriceEnd.Text.Trim().Length > 0 && skus.Any(s => (s.salePrice.ParseToInt() * 0.01m).ParseToString().EndsWith(txtSkipPriceEnd.Text.Trim())))
|
||||
//{
|
||||
// row.Cells["colOpResult"].Value = "价格尾数命中跳过";
|
||||
// continue;
|
||||
//}
|
||||
|
||||
if (skus.All(s => s.isAdded != true))
|
||||
{
|
||||
Invoke(new Action(() => { row.Cells["colOpResult"].Value = "已取消报名"; }));
|
||||
}
|
||||
else
|
||||
{
|
||||
hasProdForCancelActivity = true;
|
||||
Invoke(new Action(() => { row.Cells["colOpResult"].Value = "正在取消报名"; }));
|
||||
}
|
||||
|
||||
skus = skus.Where(s => s.isAdded == true).ToList();
|
||||
foreach (var sku in skus)
|
||||
{
|
||||
JObject prodObj = new JObject();
|
||||
prodObj["productId"] = prodId;
|
||||
prodObj["skuId"] = sku.product.skuId;
|
||||
//prodObj["activityStockNum"] = 0;
|
||||
//Invoke(new Action(() =>
|
||||
//{
|
||||
// if (cmbType.Text == "价格比例")
|
||||
// prodObj["activityPrice"] = (sku.salePrice.ParseToInt() * (100 - discountPercent) * 0.01m).ParseToInt();
|
||||
// else
|
||||
// prodObj["activityPrice"] = sku.salePrice.ParseToInt() - discountPrice;
|
||||
//}));
|
||||
//prodObj["stockMode"] = sku.defaultStockMode;
|
||||
jArr.Add(prodObj);
|
||||
}
|
||||
}
|
||||
signActivityObj["productList"] = jArr;
|
||||
signActivityObj["actionType"] = 1;
|
||||
|
||||
if (!hasProdForCancelActivity)
|
||||
continue;
|
||||
|
||||
var signRst = WXActivity.signWxActivity(shop, signActivityObj);
|
||||
Thread.Sleep(Randomx.GetId(500, 1000));
|
||||
if (!signRst.Contains("\"code\":0"))
|
||||
{
|
||||
if (signRst.Contains("biz magic invalid"))
|
||||
{
|
||||
WXShopListForm.Instance.CheckShopLogin(new ShopLoginInfo[] { shop }, false);
|
||||
if (shop.LoginStatus != "登录成功")
|
||||
{
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
foreach (var row in rowLstTmp)
|
||||
{
|
||||
row.Cells["colOpResult"].Value = "店铺掉线";
|
||||
}
|
||||
}));
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
var errmsg = BaseRegex.GetStringJson(ref signRst, "msg");
|
||||
if (string.IsNullOrWhiteSpace(errmsg))
|
||||
errmsg = signRst;
|
||||
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
foreach (var row in rowLstTmp)
|
||||
{
|
||||
row.Cells["colOpResult"].Value = errmsg;
|
||||
}
|
||||
}));
|
||||
}
|
||||
|
||||
JArray rstArr = new JArray();
|
||||
try
|
||||
{
|
||||
rstArr = JsonHelper.JObjectParse(signRst)["checkResultList"] as JArray;
|
||||
if (rstArr == null)
|
||||
rstArr = new JArray();
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
|
||||
if (signRst.Contains("\"code\":0"))
|
||||
{
|
||||
foreach (var row in rowLstTmp)
|
||||
{
|
||||
if (row.Cells["colOpResult"].Value.ParseToString() == "已取消报名")
|
||||
continue;
|
||||
|
||||
var errStr = "";
|
||||
var prodId = row.Cells["colDraftId"].Value.ParseToString();
|
||||
var jObjs = rstArr.Where(a => a["product"]["productId"].ParseToString() == prodId).ToList();
|
||||
foreach (var jObj in jObjs)
|
||||
{
|
||||
if (!string.IsNullOrWhiteSpace(jObj["invalidString"].ParseToString()))
|
||||
errStr += jObj["product"]["skuId"] + ":" + jObj["invalidString"] + ";";
|
||||
}
|
||||
errStr = errStr.Trim(';');
|
||||
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
row.Cells["colOpResult"].Value = "取消报名成功 " + errStr;
|
||||
}));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void btnFiltSelect_Click(object sender, EventArgs e)
|
||||
{
|
||||
foreach (DataGridViewRow row in dgvSelectProduct.Rows)
|
||||
@@ -1013,6 +1275,40 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
{
|
||||
discountPercent = txtPercent.Text.ParseToInt();
|
||||
}
|
||||
|
||||
private void btnCancelActivity_Click(object sender, EventArgs e)
|
||||
{
|
||||
var rowLst = dgvSelectProduct.Rows.Cast<DataGridViewRow>().Where(r => r.Cells["colCheck"].Value.ParseToBool() == true).ToList();
|
||||
if (rowLst.Count <= 0)
|
||||
{
|
||||
BaseMsgForm.ShowError("请勾选需要取消报名的商品!");
|
||||
return;
|
||||
}
|
||||
|
||||
this.pbLoading.Visible = true;
|
||||
if (cancellationTokenSource != null && !cancellationTokenSource.IsCancellationRequested)
|
||||
cancellationTokenSource.Cancel();
|
||||
cancellationTokenSource = new CancellationTokenSource();
|
||||
Task.Run(() =>
|
||||
{
|
||||
cancelSignActivity(rowLst);
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
if (cancellationTokenSource.IsCancellationRequested)
|
||||
{
|
||||
this.statusBar.lblTaskStatus.Text = "取消报名活动中断";
|
||||
BaseMsgForm.ShowInfo("取消报名活动中断");
|
||||
}
|
||||
else
|
||||
{
|
||||
this.statusBar.lblTaskStatus.Text = "取消报名活动完毕";
|
||||
BaseMsgForm.ShowInfo("取消报名活动完毕");
|
||||
}
|
||||
|
||||
this.pbLoading.Visible = false;
|
||||
}));
|
||||
}, cancellationTokenSource.Token);
|
||||
}
|
||||
}
|
||||
|
||||
public class WXActivity
|
||||
@@ -1056,6 +1352,74 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
var result = WXHttpResponseBLL.WeiXinPostResponse(shop, url, data, refere);
|
||||
return result;
|
||||
}
|
||||
|
||||
public static string getProdInActivityList(ShopLoginInfo shop, int page, int pageSize = 10, string activityId = "1016")
|
||||
{
|
||||
//{"keyword":"","pageNum":1,"pageSize":10,"platformActivityId":"1016"}
|
||||
|
||||
string url = "https://store.weixin.qq.com/shop-faas/mmeckolmarketingnode/activity/cgi/getPlatformInvestmentProductInfoList?token=&lang=zh_CN";
|
||||
string refere = "https://store.weixin.qq.com/shop/marketingkol/activity/detail?id=" + activityId + "&curTab=2";
|
||||
string data = @"{""platformActivityId"":""" + activityId + @""",""pageNum"":" + page + @",""pageSize"":" + pageSize + @",""auditStatus"":2,""productId"":""""}";
|
||||
|
||||
var result = WXHttpResponseBLL.WeiXinPostResponse(shop, url, data, refere);
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
public class ActivityProd
|
||||
{
|
||||
public string requestTime { get; set; } // "1781096322",
|
||||
public string shopNickname { get; set; } // "夜笙供应链",
|
||||
public string shopAppid { get; set; } // "wx2664a142d76831dd",
|
||||
public string productName { get; set; } // "行川9K MAX广角镜新款升级直播广角镜头主播网红自拍大范围取景神器送便携全屏手机补光灯",
|
||||
public string skuName { get; set; } // "行川9K max广角镜头(送全屏手机补光灯)",
|
||||
public string productId { get; set; } // "10000671183000",
|
||||
public string skuId { get; set; } // "11262798360",
|
||||
public string originPrice { get; set; } // "10100",
|
||||
public string activityPrice { get; set; } // "10090",
|
||||
public string verifyPrice { get; set; } // "0",
|
||||
public string beforePlatformDiscountCommPrice { get; set; } // "10090",
|
||||
public string beforePlatformDiscountMinPrice { get; set; } // "10090",
|
||||
public string afterPlatformDiscountCommPrice { get; set; } // "9090",
|
||||
public string afterPlatformDiscountMinPrice { get; set; } // "8829",
|
||||
public string platformDiscountValue { get; set; } // "0",
|
||||
public string platformDiscountStockNum { get; set; } // "0",
|
||||
public string activityStockNum { get; set; } // "0",
|
||||
public string totalStockNum { get; set; } // "998",
|
||||
public int? auditStatus { get; set; } // 2,
|
||||
public string auditReason { get; set; } // "",
|
||||
public string productImgUrl { get; set; } // "https://wst.wxapp.tc.qq.com/161/20304/snscosdownload/SH/reserved/69c8e2040008c0af0c19954af1b91b15000000a100004f50",
|
||||
public int? originStatus { get; set; } // 30,
|
||||
public string clearReason { get; set; } // "",
|
||||
public int? clearSource { get; set; } // 0,
|
||||
public long? delTime { get; set; } // 0,
|
||||
public long? updateTime { get; set; } // 1781096635,
|
||||
public string reductionPriceCap { get; set; } // "0",
|
||||
public string reductionPricePerFriendLike { get; set; } // "0",
|
||||
public int? needFriendLikeCnt { get; set; } // 0,
|
||||
public int? passStatus { get; set; } // 0,
|
||||
public int? auditFailStage { get; set; } // 0,
|
||||
public int? subsidyUpdateStatus { get; set; } // 0,
|
||||
public int? subsidyChangeType { get; set; } // 0,
|
||||
public int? subsidyChangePlatformDiscountValue { get; set; } // 0,
|
||||
public string subsidyChangeReductionPriceCap { get; set; } // "0",
|
||||
public int? subsidyChangeNeedFriendLikeCnt { get; set; } // 0,
|
||||
public int? dailyStock { get; set; } // 0,
|
||||
public int? stockMode { get; set; } // 1,
|
||||
public int? goodPresentAuditStatus { get; set; } // 0,
|
||||
public string sellingPointWording { get; set; } // "",
|
||||
public string atmosphereWording { get; set; } // "",
|
||||
public string merchantLowestPrice { get; set; } // "0",
|
||||
public int? platformDiscountCal { get; set; } // 0,
|
||||
public int? priceEqual { get; set; } // 0,
|
||||
public int? maxPlatform_618Discount { get; set; } // 201,
|
||||
public string promotionImgUrl { get; set; } // "",
|
||||
public int? maxPlatform_618DiscountMerchant { get; set; } // 1059,
|
||||
public string spuCode { get; set; } // "EC110000290936659A",
|
||||
public string skuCode { get; set; } // "",
|
||||
public string maxPlatformSubsidy { get; set; } // "201",
|
||||
public string maxMerchantSubsidy { get; set; } // "1059",
|
||||
public int? delStatus { get; set; } // 0,
|
||||
public bool? canModify { get; set; } // true
|
||||
}
|
||||
}
|
||||
@@ -1208,7 +1208,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
|
||||
result = UploadProduct(shop, kjdDbProdTmp, selectProd, row.Cells["colOpResult"], startTime);
|
||||
if (result.Contains("今日提审次数已用尽,请明日再试") || result.Contains("如需上架请先缴纳足额保证金") || result.Contains("在架商品数已达到上限") ||
|
||||
result.Contains("拥金上货失败:需要开通优选联盟"))
|
||||
result.Contains("提审次数已达上限") || result.Contains("拥金上货失败:需要开通优选联盟"))
|
||||
{
|
||||
var shopRow = dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ParseToString() == shop.ShopId);
|
||||
if (shopRow != null)
|
||||
@@ -3309,10 +3309,10 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
{
|
||||
attrValue = "中国大陆";
|
||||
}
|
||||
else if (attrValueLst.Any(v => v.Contains("%")))
|
||||
{
|
||||
attrValue = attrValueLst.FirstOrDefault();
|
||||
}
|
||||
//else if (attrValueLst.Any(v => v.Contains("%")))
|
||||
//{
|
||||
// attrValue = attrValueLst.FirstOrDefault();
|
||||
//}
|
||||
else
|
||||
attrValue = attrValueLst.Where(v => !"真丝、蚕丝、香云纱、羊绒、羊毛、羊羔绒、羊羔毛、羽绒、皮草".Contains(v)).OrderBy(x => Guid.NewGuid()).FirstOrDefault();
|
||||
}
|
||||
@@ -3330,7 +3330,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
if (attr.type == "decimal4_unit" || attr.type == "integer_unit")
|
||||
{
|
||||
if (attr.value == "%")
|
||||
attrValue = "10 %";
|
||||
attrValue = "1 %";
|
||||
else if (attr.value == "g;kg")
|
||||
attrValue = "50 g";
|
||||
else if (attr.value == "g")
|
||||
@@ -3488,10 +3488,10 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
{
|
||||
attrValue = "中国大陆";
|
||||
}
|
||||
else if (attrValueLst.Any(v => v.Contains("%")))
|
||||
{
|
||||
attrValue = attrValueLst.FirstOrDefault();
|
||||
}
|
||||
//else if (attrValueLst.Any(v => v.Contains("%")))
|
||||
//{
|
||||
// attrValue = attrValueLst.FirstOrDefault();
|
||||
//}
|
||||
else
|
||||
attrValue = attrValueLst.Where(v => !"真丝、蚕丝、香云纱、羊绒、羊毛、羊羔绒、羊羔毛、羽绒、皮草".Contains(v)).OrderBy(x => Guid.NewGuid()).FirstOrDefault();
|
||||
|
||||
@@ -3573,7 +3573,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
{
|
||||
attrValue = "其他";
|
||||
}
|
||||
if ((attrValue.IsNullOrEmpty() || attrValue == "见包装") && (attr.type == "decimal4_unit" || attr.type == "integer_unit"))
|
||||
if ((attrValue.IsNullOrEmpty() || attrValue == "见包装" || attrValue == "%") && (attr.type == "decimal4_unit" || attr.type == "integer_unit"))
|
||||
{
|
||||
// 走系统推荐
|
||||
var param = recommendParamRst.productInfo.param.FirstOrDefault(p => p.categorys?.FirstOrDefault()?.name == attr.name);
|
||||
@@ -3589,7 +3589,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
}
|
||||
}
|
||||
else if (attr.value == "%")
|
||||
attrValue = "10 %";
|
||||
attrValue = "1 %";
|
||||
else if (attr.value == "g;kg")
|
||||
attrValue = "50 g";
|
||||
else if (attr.value == "g")
|
||||
@@ -5278,8 +5278,10 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
}
|
||||
|
||||
// 爆款数据商品
|
||||
// 不为空搜内容
|
||||
if (!string.IsNullOrWhiteSpace(cmbHot.Text.Trim()))
|
||||
data += "&special_prod_type=" + cmbHot.Text.Replace("普通商品", "普通商品,书籍");
|
||||
// 为空按照权限搜
|
||||
else if (BaseClass.SaLevel > 0 || BaseClass.UserAuthority.Contains("爆款数据"))
|
||||
data += "&special_prod_type=爆款数据,普通商品,书籍";
|
||||
else
|
||||
@@ -6174,6 +6176,15 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
return result;
|
||||
}
|
||||
|
||||
public static string searchProductWithSpuId(ShopLoginInfo shop, string spuId)
|
||||
{
|
||||
string url = "https://store.weixin.qq.com/shop-faas/mmchannelstradeproductcore/cgi/goods/searchProduct?" +
|
||||
"token=&lang=zh_CN&pageSize=20&productStatus[]=-1&productSource=[1,16,32]&searchSource=1&useNew=true&pageNum=1&status[]=-1&spuId=" + spuId;
|
||||
string refere = "https://store.weixin.qq.com/shop/goods/list";
|
||||
var result = WXHttpResponseBLL.WeiXinGetResponse(shop, url, refere);
|
||||
return result;
|
||||
}
|
||||
|
||||
public static string searchProductWithTitle(ShopLoginInfo shop, string urlEncodeTitle)
|
||||
{
|
||||
string url = "https://store.weixin.qq.com/shop-faas/mmchannelstradeproductcore/cgi/goods/searchProduct?" +
|
||||
|
||||
+91
-51
@@ -137,14 +137,12 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
this.label18 = new System.Windows.Forms.Label();
|
||||
this.pictureBox1 = new System.Windows.Forms.PictureBox();
|
||||
this.dgvDaRenProd = new TemuKJD.UserComponent.DataGridViewEx();
|
||||
this.chkTestNoAuditUpload = new TemuKJD.UserComponent.UcCheckBox(this.components);
|
||||
this.splitContainer4 = new System.Windows.Forms.SplitContainer();
|
||||
this.statusBar = new TemuKJD.UserControls.StatusBarUserControl();
|
||||
this.colDgvProdCheck = new System.Windows.Forms.DataGridViewCheckBoxColumn();
|
||||
this.colDgvProdShopId = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colDgvProdShopName = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colDgvProdLogin = new System.Windows.Forms.DataGridViewLinkColumn();
|
||||
this.colDgvProdInShop = new System.Windows.Forms.DataGridViewLinkColumn();
|
||||
this.colType = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colDgvProdTalentAppid = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colDgvProdTalentFindUserId = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colDgvProdNickname = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
@@ -157,12 +155,17 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
this.colDgvProdImg = new System.Windows.Forms.DataGridViewImageColumn();
|
||||
this.colSpuAppid = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colSpuShopName = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colSpuid = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colTalentSpuId = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colLiveProdName = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colPrice = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colMonthSale = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colTalkWithTalent = new System.Windows.Forms.DataGridViewLinkColumn();
|
||||
this.dataGridViewTextBoxColumn13 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.chkTestNoAuditUpload = new TemuKJD.UserComponent.UcCheckBox(this.components);
|
||||
this.splitContainer4 = new System.Windows.Forms.SplitContainer();
|
||||
this.statusBar = new TemuKJD.UserControls.StatusBarUserControl();
|
||||
this.chkLive = new TemuKJD.UserComponent.UcCheckBox(this.components);
|
||||
this.chkFeed = new TemuKJD.UserComponent.UcCheckBox(this.components);
|
||||
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
|
||||
this.splitContainer1.Panel1.SuspendLayout();
|
||||
this.splitContainer1.Panel2.SuspendLayout();
|
||||
@@ -1364,6 +1367,8 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
//
|
||||
// splitContainer6.Panel1
|
||||
//
|
||||
this.splitContainer6.Panel1.Controls.Add(this.chkFeed);
|
||||
this.splitContainer6.Panel1.Controls.Add(this.chkLive);
|
||||
this.splitContainer6.Panel1.Controls.Add(this.btnStopSearchTalentProd);
|
||||
this.splitContainer6.Panel1.Controls.Add(this.btnSearchDaRenProd);
|
||||
this.splitContainer6.Panel1.Controls.Add(this.txtSaleCount);
|
||||
@@ -1484,6 +1489,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
this.colDgvProdShopName,
|
||||
this.colDgvProdLogin,
|
||||
this.colDgvProdInShop,
|
||||
this.colType,
|
||||
this.colDgvProdTalentAppid,
|
||||
this.colDgvProdTalentFindUserId,
|
||||
this.colDgvProdNickname,
|
||||
@@ -1496,7 +1502,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
this.colDgvProdImg,
|
||||
this.colSpuAppid,
|
||||
this.colSpuShopName,
|
||||
this.colSpuid,
|
||||
this.colTalentSpuId,
|
||||
this.colLiveProdName,
|
||||
this.colPrice,
|
||||
this.colMonthSale,
|
||||
@@ -1512,42 +1518,6 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
this.dgvDaRenProd.TabIndex = 187;
|
||||
this.dgvDaRenProd.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvDaRenProd_CellContentClick);
|
||||
//
|
||||
// chkTestNoAuditUpload
|
||||
//
|
||||
this.chkTestNoAuditUpload.AutoSize = true;
|
||||
this.chkTestNoAuditUpload.Location = new System.Drawing.Point(1094, 35);
|
||||
this.chkTestNoAuditUpload.Name = "chkTestNoAuditUpload";
|
||||
this.chkTestNoAuditUpload.Size = new System.Drawing.Size(123, 21);
|
||||
this.chkTestNoAuditUpload.TabIndex = 779;
|
||||
this.chkTestNoAuditUpload.Text = "测试免审提交商品";
|
||||
this.chkTestNoAuditUpload.UseVisualStyleBackColor = true;
|
||||
this.chkTestNoAuditUpload.Visible = false;
|
||||
//
|
||||
// splitContainer4
|
||||
//
|
||||
this.splitContainer4.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.splitContainer4.FixedPanel = System.Windows.Forms.FixedPanel.Panel2;
|
||||
this.splitContainer4.Location = new System.Drawing.Point(0, 0);
|
||||
this.splitContainer4.Name = "splitContainer4";
|
||||
//
|
||||
// splitContainer4.Panel1
|
||||
//
|
||||
this.splitContainer4.Panel1.Controls.Add(this.statusBar);
|
||||
this.splitContainer4.Size = new System.Drawing.Size(1450, 26);
|
||||
this.splitContainer4.SplitterDistance = 1068;
|
||||
this.splitContainer4.TabIndex = 3;
|
||||
//
|
||||
// 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(1068, 26);
|
||||
this.statusBar.TabIndex = 2;
|
||||
//
|
||||
// colDgvProdCheck
|
||||
//
|
||||
this.colDgvProdCheck.Frozen = true;
|
||||
@@ -1594,6 +1564,13 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
this.colDgvProdInShop.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
|
||||
this.colDgvProdInShop.Width = 40;
|
||||
//
|
||||
// colType
|
||||
//
|
||||
this.colType.HeaderText = "带货类型";
|
||||
this.colType.Name = "colType";
|
||||
this.colType.ReadOnly = true;
|
||||
this.colType.Width = 80;
|
||||
//
|
||||
// colDgvProdTalentAppid
|
||||
//
|
||||
this.colDgvProdTalentAppid.HeaderText = "达人Id";
|
||||
@@ -1625,14 +1602,14 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
//
|
||||
// colLiveObjectImgUrl
|
||||
//
|
||||
this.colLiveObjectImgUrl.HeaderText = "直播题图地址";
|
||||
this.colLiveObjectImgUrl.HeaderText = "带货题图地址";
|
||||
this.colLiveObjectImgUrl.Name = "colLiveObjectImgUrl";
|
||||
this.colLiveObjectImgUrl.ReadOnly = true;
|
||||
this.colLiveObjectImgUrl.Visible = false;
|
||||
//
|
||||
// colLiveObjectImg
|
||||
//
|
||||
this.colLiveObjectImg.HeaderText = "直播题图";
|
||||
this.colLiveObjectImg.HeaderText = "带货题图";
|
||||
this.colLiveObjectImg.ImageLayout = System.Windows.Forms.DataGridViewImageCellLayout.Zoom;
|
||||
this.colLiveObjectImg.Name = "colLiveObjectImg";
|
||||
this.colLiveObjectImg.ReadOnly = true;
|
||||
@@ -1644,7 +1621,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
//
|
||||
dataGridViewCellStyle12.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.colObjectTitle.DefaultCellStyle = dataGridViewCellStyle12;
|
||||
this.colObjectTitle.HeaderText = "直播标题";
|
||||
this.colObjectTitle.HeaderText = "带货标题";
|
||||
this.colObjectTitle.Name = "colObjectTitle";
|
||||
this.colObjectTitle.ReadOnly = true;
|
||||
this.colObjectTitle.Width = 110;
|
||||
@@ -1653,7 +1630,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
//
|
||||
dataGridViewCellStyle13.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.colLiveInfo.DefaultCellStyle = dataGridViewCellStyle13;
|
||||
this.colLiveInfo.HeaderText = "直播信息";
|
||||
this.colLiveInfo.HeaderText = "带货信息";
|
||||
this.colLiveInfo.Name = "colLiveInfo";
|
||||
this.colLiveInfo.ReadOnly = true;
|
||||
this.colLiveInfo.Width = 160;
|
||||
@@ -1687,12 +1664,12 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
this.colSpuShopName.ReadOnly = true;
|
||||
this.colSpuShopName.Visible = false;
|
||||
//
|
||||
// colSpuid
|
||||
// colTalentSpuId
|
||||
//
|
||||
this.colSpuid.FillWeight = 135F;
|
||||
this.colSpuid.HeaderText = "带货商品Id";
|
||||
this.colSpuid.Name = "colSpuid";
|
||||
this.colSpuid.ReadOnly = true;
|
||||
this.colTalentSpuId.FillWeight = 135F;
|
||||
this.colTalentSpuId.HeaderText = "带货商品Id";
|
||||
this.colTalentSpuId.Name = "colTalentSpuId";
|
||||
this.colTalentSpuId.ReadOnly = true;
|
||||
//
|
||||
// colLiveProdName
|
||||
//
|
||||
@@ -1732,6 +1709,66 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
this.dataGridViewTextBoxColumn13.Visible = false;
|
||||
this.dataGridViewTextBoxColumn13.Width = 240;
|
||||
//
|
||||
// chkTestNoAuditUpload
|
||||
//
|
||||
this.chkTestNoAuditUpload.AutoSize = true;
|
||||
this.chkTestNoAuditUpload.Location = new System.Drawing.Point(1094, 35);
|
||||
this.chkTestNoAuditUpload.Name = "chkTestNoAuditUpload";
|
||||
this.chkTestNoAuditUpload.Size = new System.Drawing.Size(123, 21);
|
||||
this.chkTestNoAuditUpload.TabIndex = 779;
|
||||
this.chkTestNoAuditUpload.Text = "测试免审提交商品";
|
||||
this.chkTestNoAuditUpload.UseVisualStyleBackColor = true;
|
||||
this.chkTestNoAuditUpload.Visible = false;
|
||||
//
|
||||
// splitContainer4
|
||||
//
|
||||
this.splitContainer4.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.splitContainer4.FixedPanel = System.Windows.Forms.FixedPanel.Panel2;
|
||||
this.splitContainer4.Location = new System.Drawing.Point(0, 0);
|
||||
this.splitContainer4.Name = "splitContainer4";
|
||||
//
|
||||
// splitContainer4.Panel1
|
||||
//
|
||||
this.splitContainer4.Panel1.Controls.Add(this.statusBar);
|
||||
this.splitContainer4.Size = new System.Drawing.Size(1450, 26);
|
||||
this.splitContainer4.SplitterDistance = 1068;
|
||||
this.splitContainer4.TabIndex = 3;
|
||||
//
|
||||
// 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(1068, 26);
|
||||
this.statusBar.TabIndex = 2;
|
||||
//
|
||||
// chkLive
|
||||
//
|
||||
this.chkLive.AutoSize = true;
|
||||
this.chkLive.Checked = true;
|
||||
this.chkLive.CheckState = System.Windows.Forms.CheckState.Checked;
|
||||
this.chkLive.Location = new System.Drawing.Point(212, 10);
|
||||
this.chkLive.Name = "chkLive";
|
||||
this.chkLive.Size = new System.Drawing.Size(75, 21);
|
||||
this.chkLive.TabIndex = 866;
|
||||
this.chkLive.Text = "直播带货";
|
||||
this.chkLive.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// chkFeed
|
||||
//
|
||||
this.chkFeed.AutoSize = true;
|
||||
this.chkFeed.Checked = true;
|
||||
this.chkFeed.CheckState = System.Windows.Forms.CheckState.Checked;
|
||||
this.chkFeed.Location = new System.Drawing.Point(293, 10);
|
||||
this.chkFeed.Name = "chkFeed";
|
||||
this.chkFeed.Size = new System.Drawing.Size(87, 21);
|
||||
this.chkFeed.TabIndex = 867;
|
||||
this.chkFeed.Text = "短视频带货";
|
||||
this.chkFeed.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// WXFinderSquareForm
|
||||
//
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
||||
@@ -1889,6 +1926,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colDgvProdShopName;
|
||||
private System.Windows.Forms.DataGridViewLinkColumn colDgvProdLogin;
|
||||
private System.Windows.Forms.DataGridViewLinkColumn colDgvProdInShop;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colType;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colDgvProdTalentAppid;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colDgvProdTalentFindUserId;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colDgvProdNickname;
|
||||
@@ -1901,11 +1939,13 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
private System.Windows.Forms.DataGridViewImageColumn colDgvProdImg;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colSpuAppid;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colSpuShopName;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colSpuid;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colTalentSpuId;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colLiveProdName;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colPrice;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colMonthSale;
|
||||
private System.Windows.Forms.DataGridViewLinkColumn colTalkWithTalent;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn13;
|
||||
private UserComponent.UcCheckBox chkFeed;
|
||||
private UserComponent.UcCheckBox chkLive;
|
||||
}
|
||||
}
|
||||
@@ -53,6 +53,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
string currentGetTalentParam = "";
|
||||
List<WXFinderTalentInfo> lstWXFinderTalentInfo = new List<WXFinderTalentInfo>();
|
||||
List<WXLiveObjectInfo> lstWXLiveObjectInfo = new List<WXLiveObjectInfo>();
|
||||
List<WXFeedObjectInfo> lstWXFeedObjectInfo = new List<WXFeedObjectInfo>();
|
||||
|
||||
public WXFinderSquareForm()
|
||||
{
|
||||
@@ -1150,33 +1151,123 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
|
||||
dgvDaRenProd.Rows.Clear();
|
||||
lstWXLiveObjectInfo.Clear();
|
||||
lstWXFeedObjectInfo.Clear();
|
||||
|
||||
if (cancellationTokenSource != null)
|
||||
cancellationTokenSource.Cancel();
|
||||
cancellationTokenSource = new CancellationTokenSource();
|
||||
Task.Run(() =>
|
||||
{
|
||||
{
|
||||
int num = 0;
|
||||
foreach (var row in selectRows)
|
||||
foreach (var row in selectRows)
|
||||
{
|
||||
num++;
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
num++;
|
||||
Invoke(new Action(() =>
|
||||
this.statusBar.lblTaskStatus.Text = "达人带货商品查询 第 " + num + " 位,共 " + selectRows.Count + " 位达人";
|
||||
row.Cells["colOpResult"].Value = "";
|
||||
}));
|
||||
if (this.cancellationTokenSource.IsCancellationRequested)
|
||||
break;
|
||||
|
||||
var shopId = row.Cells["colSupplierId"].Value.ParseToString();
|
||||
var shop = GlobalConfig.ValidShopLoginList.FirstOrDefault(s => s.ShopId == shopId);
|
||||
if (chkReUse.Visible && chkReUse.Checked)
|
||||
shop = currentShop;
|
||||
var talentAppid = row.Cells["colTalentAppid"].Value.ParseToString();
|
||||
var talent = this.lstWXFinderTalentInfo.FirstOrDefault(t => t.talentAppid == talentAppid);
|
||||
|
||||
if (shop != null && talent != null && talent.accountList != null)
|
||||
{
|
||||
// 短视频带货
|
||||
if (chkFeed.Checked)
|
||||
{
|
||||
this.statusBar.lblTaskStatus.Text = "达人带货商品查询 第 " + num + " 位,共 " + selectRows.Count + " 位达人";
|
||||
row.Cells["colOpResult"].Value = "";
|
||||
}));
|
||||
if (this.cancellationTokenSource.IsCancellationRequested)
|
||||
break;
|
||||
var finderUser = talent.accountList.FirstOrDefault(a => !a.finderUsername.IsNullOrEmpty() && !a.mpAppid.IsNullOrEmpty());
|
||||
finderUser = talent.accountList.FirstOrDefault(a => !a.finderUsername.IsNullOrEmpty());
|
||||
var finderUsername = finderUser?.finderUsername;
|
||||
var mpAppid = finderUser?.mpAppid;
|
||||
var endMs = BaseClass.DateTimeToTimestampMilliseconds(DateTime.Now.Date) - 1;
|
||||
var startMs = BaseClass.DateTimeToTimestampMilliseconds(DateTime.Now.Date.AddDays(-7));
|
||||
int page = 0;
|
||||
int pageSize = 10;
|
||||
|
||||
var shopId = row.Cells["colSupplierId"].Value.ParseToString();
|
||||
var shop = GlobalConfig.ValidShopLoginList.FirstOrDefault(s => s.ShopId == shopId);
|
||||
if (chkReUse.Visible && chkReUse.Checked)
|
||||
shop = currentShop;
|
||||
var talentAppid = row.Cells["colTalentAppid"].Value.ParseToString();
|
||||
var talent = this.lstWXFinderTalentInfo.FirstOrDefault(t => t.talentAppid == talentAppid);
|
||||
while (true)
|
||||
{
|
||||
page++;
|
||||
var getLiveObjectRst = WXFinderSquareBLL.GetDaRenLiveFeedList(shop, finderUsername, mpAppid, talent.talentAppid, startMs, endMs, 2, page, pageSize);
|
||||
Thread.Sleep(Randomx.GetId(300, 600));
|
||||
|
||||
if (shop != null && talent != null && talent.accountList != null)
|
||||
if (!getLiveObjectRst.ParseToString().Contains("\"code\":0"))
|
||||
{
|
||||
var error = BaseRegex.GetStringJsonByRegs(ref getLiveObjectRst, getLiveObjectRst, "errmsg");
|
||||
if (error.ParseToString().Contains("biz magic invalid"))
|
||||
{
|
||||
shop.LoginStatus = "未登录";
|
||||
var selectIds = dgvShop.Rows.Cast<DataGridViewRow>().Where(r
|
||||
=> r.Cells["colSelect"]?.Value.ParseToBool() == true).Select(r => r.Cells["colShopId"]?.Value.ToString()).ToList();
|
||||
Invoke(new Action(() => { BindShop(shop, selectIds, "店铺掉线"); }));
|
||||
error = "店铺掉线";
|
||||
}
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
row.Cells["colOpResult"].Value = "达人带货商品查询失败 " + error;
|
||||
}));
|
||||
break;
|
||||
}
|
||||
|
||||
var wxFeedObjectInfoResult = JsonHelper.DeserializeJsonToObject<WXFeedObjectInfoResult>(getLiveObjectRst);
|
||||
var feedList = wxFeedObjectInfoResult.list;
|
||||
this.lstWXFeedObjectInfo.AddRange(feedList);
|
||||
foreach (var feed in feedList)
|
||||
{
|
||||
var prod = feed;
|
||||
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
if (prod.spuMonthSales.ParseToInt() >= txtSaleCount.Text.Trim().ParseToInt() &&
|
||||
!dgvDaRenProd.Rows.Cast<DataGridViewRow>().Any(r => r.Cells["colTalentSpuId"].Value.ParseToString() == prod.spuId))
|
||||
{
|
||||
var startTimeStr = BaseClass.StampToDateTime(feed.feedObjectStartTime.ParseToInt()).ToString("yy-MM-dd HH:mm");
|
||||
var rowIndex = dgvDaRenProd.Rows.Add(
|
||||
false,
|
||||
shop.ShopId,
|
||||
shop.ShopAccount,
|
||||
"登录",
|
||||
"进店",
|
||||
"短视频",
|
||||
talent.talentAppid,
|
||||
finderUser.finderUsername,
|
||||
finderUser.nickname, // 达人昵称
|
||||
feed.objectId, // 达人活动ID
|
||||
feed.feedObjectImg,
|
||||
DataGridViewExtension.defaultBitmap, // 短视频标题图
|
||||
feed.feedObjectDescription, // 达人活动短视频标题
|
||||
startTimeStr + " 点赞数" + feed.finderxshortvideoLikeCnt + " 分享数" + feed.finderxshortvideoShareCnt + " 喜欢数" + feed.finderxshortvideoFavoriteCnt,
|
||||
prod.spuImgUrl,
|
||||
DataGridViewExtension.defaultBitmap,
|
||||
prod.spuAppid,
|
||||
prod.spuShopNickname,
|
||||
prod.spuId,
|
||||
prod.spuName,
|
||||
prod.spuPrice.ParseToInt() * 0.01m,
|
||||
prod.spuMonthSales.ParseToInt(),
|
||||
"联系达人"
|
||||
);
|
||||
dgvDaRenProd.Rows[rowIndex].Height = 60;
|
||||
}
|
||||
}));
|
||||
}
|
||||
|
||||
|
||||
var total = wxFeedObjectInfoResult.total.ParseToInt();
|
||||
var totalPage = Math.Ceiling(total * 1m / pageSize).ParseToInt();
|
||||
if (page >= totalPage)
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// 直播带货
|
||||
if (chkLive.Checked)
|
||||
{
|
||||
var finderUser = talent.accountList.FirstOrDefault(a => !a.finderUsername.IsNullOrEmpty() && !a.mpAppid.IsNullOrEmpty());
|
||||
finderUser = talent.accountList.FirstOrDefault(a => !a.finderUsername.IsNullOrEmpty());
|
||||
@@ -1220,7 +1311,8 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
{
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
if (prod.spuMonthSales.ParseToInt() >= txtSaleCount.Text.Trim().ParseToInt())
|
||||
if (prod.spuMonthSales.ParseToInt() >= txtSaleCount.Text.Trim().ParseToInt() &&
|
||||
!dgvDaRenProd.Rows.Cast<DataGridViewRow>().Any(r => r.Cells["colTalentSpuId"].Value.ParseToString() == prod.spuId))
|
||||
{
|
||||
var startTimeStr = BaseClass.StampToDateTime(live.liveObjectStartTime.ParseToInt()).ToString("yy-MM-dd HH:mm");
|
||||
var duration = new TimeSpan(live.liveObjectDuringTimeSecond.ParseToLong() * 10000000);
|
||||
@@ -1231,6 +1323,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
shop.ShopAccount,
|
||||
"登录",
|
||||
"进店",
|
||||
"直播",
|
||||
talent.talentAppid,
|
||||
finderUser.finderUsername,
|
||||
finderUser.nickname, // 达人昵称
|
||||
@@ -1259,7 +1352,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
int prodPage = 1;
|
||||
int prodPageSize = 10;
|
||||
var prodTotalPage = Math.Ceiling(live.productList.total.ParseToInt() * 1m / prodPageSize).ParseToInt();
|
||||
|
||||
|
||||
while (prodPage < prodTotalPage)
|
||||
{
|
||||
if (this.cancellationTokenSource.IsCancellationRequested)
|
||||
@@ -1294,7 +1387,8 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
{
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
if (prod.spuMonthSales.ParseToInt() >= txtSaleCount.Text.Trim().ParseToInt())
|
||||
if (prod.spuMonthSales.ParseToInt() >= txtSaleCount.Text.Trim().ParseToInt() &&
|
||||
!dgvDaRenProd.Rows.Cast<DataGridViewRow>().Any(r => r.Cells["colTalentSpuId"].Value.ParseToString() == prod.spuId))
|
||||
{
|
||||
var startTimeStr = BaseClass.StampToDateTime(live.liveObjectStartTime.ParseToInt()).ToString("yy-MM-dd HH:mm");
|
||||
var duration = new TimeSpan(live.liveObjectDuringTimeSecond.ParseToLong() * 10000000);
|
||||
@@ -1305,6 +1399,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
shop.ShopAccount,
|
||||
"登录",
|
||||
"进店",
|
||||
"直播",
|
||||
talent.talentAppid,
|
||||
finderUser.finderUsername,
|
||||
finderUser.nickname, // 达人昵称
|
||||
@@ -1344,7 +1439,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
pictureBox1.Visible = false;
|
||||
this.statusBar.lblTaskStatus.Text += "达人带货商品查询操作结束";
|
||||
this.statusBar.lblTaskStatus.Text += " 达人带货商品查询操作结束";
|
||||
BaseMsgForm.ShowInfo("达人带货商品查询操作结束");
|
||||
}));
|
||||
}, cancellationTokenSource.Token);
|
||||
@@ -1403,7 +1498,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
imgFrom.ShowDialog();
|
||||
break;
|
||||
}
|
||||
case "直播题图":
|
||||
case "带货题图":
|
||||
{
|
||||
ShowImgForm imgFrom = new ShowImgForm(dgvDaRenProd.Rows[e.RowIndex].Cells["colLiveObjectImgUrl"].Value.ParseToString());
|
||||
imgFrom.ShowDialog();
|
||||
|
||||
@@ -225,6 +225,9 @@
|
||||
<metadata name="colDgvProdInShop.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colType.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colDgvProdTalentAppid.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
@@ -261,7 +264,7 @@
|
||||
<metadata name="colSpuShopName.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colSpuid.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<metadata name="colTalentSpuId.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colLiveProdName.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
|
||||
@@ -3,7 +3,7 @@ using TemuKJD.PDDForms.ProductSelectForms;
|
||||
|
||||
namespace TemuKJD.WXForms.ProductForms
|
||||
{
|
||||
partial class WXProdClearNoVisit260606
|
||||
partial class WXProdClearNoVisit260606Form
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
@@ -450,26 +450,24 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
// label1
|
||||
//
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Location = new System.Drawing.Point(215, 29);
|
||||
this.label1.Location = new System.Drawing.Point(251, 29);
|
||||
this.label1.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(56, 17);
|
||||
this.label1.TabIndex = 829;
|
||||
this.label1.Text = "查询天数";
|
||||
this.label1.Visible = false;
|
||||
//
|
||||
// rb30
|
||||
//
|
||||
this.rb30.AutoSize = true;
|
||||
this.rb30.Checked = true;
|
||||
this.rb30.Location = new System.Drawing.Point(338, 27);
|
||||
this.rb30.Location = new System.Drawing.Point(326, 27);
|
||||
this.rb30.Name = "rb30";
|
||||
this.rb30.Size = new System.Drawing.Size(52, 21);
|
||||
this.rb30.TabIndex = 828;
|
||||
this.rb30.TabStop = true;
|
||||
this.rb30.Text = "30天";
|
||||
this.rb30.UseVisualStyleBackColor = true;
|
||||
this.rb30.Visible = false;
|
||||
//
|
||||
// rb7
|
||||
//
|
||||
@@ -1481,7 +1479,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
this.panelEx1.Text = "停止当前操作";
|
||||
this.panelEx1.Visible = false;
|
||||
//
|
||||
// WXProdClearNoVisit260606
|
||||
// WXProdClearNoVisit260606Form
|
||||
//
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
||||
this.BackColor = System.Drawing.Color.White;
|
||||
@@ -1489,7 +1487,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
this.Controls.Add(this.splitContainer1);
|
||||
this.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.KeyPreview = true;
|
||||
this.Name = "WXProdClearNoVisit260606";
|
||||
this.Name = "WXProdClearNoVisit260606Form";
|
||||
this.Text = "微信小店 - 清理无流量";
|
||||
this.Load += new System.EventHandler(this.UserSelectDbProductForm_Load);
|
||||
this.VisibleChanged += new System.EventHandler(this.UserSelectDbProductForm_VisibleChanged);
|
||||
@@ -1568,9 +1566,6 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
private DevComponents.DotNetBar.PanelEx btnBatchRealDel;
|
||||
private System.Windows.Forms.Label label6;
|
||||
private System.Windows.Forms.TextBox txtViewUv;
|
||||
private System.Windows.Forms.Label label1;
|
||||
private System.Windows.Forms.RadioButton rb30;
|
||||
private System.Windows.Forms.RadioButton rb7;
|
||||
private UserComponent.UcComboBoxMutiSelect cmbFilterShopGroup;
|
||||
private System.Windows.Forms.Label label3;
|
||||
private System.Windows.Forms.DataGridViewCheckBoxColumn colSelect;
|
||||
@@ -1617,5 +1612,8 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
private System.Windows.Forms.DataGridViewLinkColumn ColDelete;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colAddTime;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colOpResult;
|
||||
private System.Windows.Forms.Label label1;
|
||||
private System.Windows.Forms.RadioButton rb30;
|
||||
private System.Windows.Forms.RadioButton rb7;
|
||||
}
|
||||
}
|
||||
@@ -33,7 +33,7 @@ using TemuKJD.BLL.Wx;
|
||||
|
||||
namespace TemuKJD.WXForms.ProductForms
|
||||
{
|
||||
public partial class WXProdClearNoVisit260606 : BaseForm
|
||||
public partial class WXProdClearNoVisit260606Form : BaseForm
|
||||
{
|
||||
int PageBegin = 1;
|
||||
int PageEnd = 1000;
|
||||
@@ -47,7 +47,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
ConcurrentList<WXShopTokenInfo> lstWXShopTokenInfo = new ConcurrentList<WXShopTokenInfo>();
|
||||
public Dictionary<string, bool> dicCheckedShopId = new Dictionary<string, bool>();
|
||||
public Dictionary<string, WxShopUploadInfo> dicShopUpload = new Dictionary<string, WxShopUploadInfo>();
|
||||
public WXProdClearNoVisit260606()
|
||||
public WXProdClearNoVisit260606Form()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
@@ -432,37 +432,37 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
if (cancellationTokenSource.IsCancellationRequested)
|
||||
break;
|
||||
|
||||
long endMs = BaseClass.DateTimeToTimestampMilliseconds(DateTime.Now.Date) - 1;
|
||||
long startMs = BaseClass.DateTimeToTimestampMilliseconds(DateTime.Now.Date.AddDays(-30));
|
||||
int dateRange = 30;
|
||||
if (rb7.Checked)
|
||||
{
|
||||
endMs = BaseClass.DateTimeToTimestampMilliseconds(DateTime.Now.Date) - 1;
|
||||
startMs = BaseClass.DateTimeToTimestampMilliseconds(DateTime.Now.Date.AddDays(-7));
|
||||
dateRange = 7;
|
||||
}
|
||||
pageSize = 10;
|
||||
var result = WxPlatformRecommendProdManage.getPlatformRecommend(shop, startMs, endMs, page, pageSize, dateRange);
|
||||
if (!result.Contains("\"code\":0"))
|
||||
{
|
||||
ShowShopError(shop, result);
|
||||
break;
|
||||
}
|
||||
totalPage = Math.Ceiling(BaseRegex.GetIntJson(ref result, "list_total") * 1m / pageSize).ParseToInt();
|
||||
List<WXPlatformRecommendProdInfo> recommendProds = new List<WXPlatformRecommendProdInfo>();
|
||||
try
|
||||
{
|
||||
var jArr = JsonHelper.JObjectParse(result)["data"]["data"]["list"];
|
||||
recommendProds = JsonHelper.DeserializeJsonToList<WXPlatformRecommendProdInfo>(JsonHelper.SerializeObject(jArr));
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
ShowShopError(shop, ex.Message);
|
||||
break;
|
||||
}
|
||||
//long endMs = BaseClass.DateTimeToTimestampMilliseconds(DateTime.Now.Date) - 1;
|
||||
//long startMs = BaseClass.DateTimeToTimestampMilliseconds(DateTime.Now.Date.AddDays(-30));
|
||||
//int dateRange = 30;
|
||||
//if (rb7.Checked)
|
||||
//{
|
||||
// endMs = BaseClass.DateTimeToTimestampMilliseconds(DateTime.Now.Date) - 1;
|
||||
// startMs = BaseClass.DateTimeToTimestampMilliseconds(DateTime.Now.Date.AddDays(-7));
|
||||
// dateRange = 7;
|
||||
//}
|
||||
//pageSize = 10;
|
||||
//var result = WxPlatformRecommendProdManage.getPlatformRecommend(shop, startMs, endMs, page, pageSize, dateRange);
|
||||
//if (!result.Contains("\"code\":0"))
|
||||
//{
|
||||
// ShowShopError(shop, result);
|
||||
// break;
|
||||
//}
|
||||
//totalPage = Math.Ceiling(BaseRegex.GetIntJson(ref result, "list_total") * 1m / pageSize).ParseToInt();
|
||||
//List<WXPlatformRecommendProdInfo> recommendProds = new List<WXPlatformRecommendProdInfo>();
|
||||
//try
|
||||
//{
|
||||
// var jArr = JsonHelper.JObjectParse(result)["data"]["data"]["list"];
|
||||
// recommendProds = JsonHelper.DeserializeJsonToList<WXPlatformRecommendProdInfo>(JsonHelper.SerializeObject(jArr));
|
||||
//}
|
||||
//catch (Exception ex)
|
||||
//{
|
||||
// ShowShopError(shop, ex.Message);
|
||||
// break;
|
||||
//}
|
||||
Thread.Sleep(Randomx.GetId(500, 1500));
|
||||
|
||||
string prodIds = string.Join(",", recommendProds.Select(r => r.product_id));
|
||||
//string prodIds = string.Join(",", recommendProds.Select(r => r.product_id));
|
||||
string getProdOnSaleRst = "";
|
||||
int onSaleStatusCode = -1;
|
||||
if (OnSaleStatus == "在售")
|
||||
@@ -476,9 +476,12 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
else if (OnSaleStatus == "回收站")
|
||||
onSaleStatusCode = 6;
|
||||
|
||||
pageSize = 20;
|
||||
string spuIds = string.Join(",", recommendProds.Select(s => s.product_id).ToList());
|
||||
getProdOnSaleRst = WXClearNoVisit260606.searchProduct(shop, 1, pageSize, spuIds, onSaleStatusCode);
|
||||
//pageSize = 20;
|
||||
//string spuIds = string.Join(",", recommendProds.Select(s => s.product_id).ToList());
|
||||
//getProdOnSaleRst = WXClearNoVisit260606.searchProduct(shop, 1, pageSize, spuIds, onSaleStatusCode);
|
||||
|
||||
pageSize = 50;
|
||||
getProdOnSaleRst = WxPlatformRecommendProdManage.searchProductWithSaleStatus(shop, page, pageSize, onSaleStatusCode);
|
||||
Thread.Sleep(Randomx.GetId(50, 100));
|
||||
if (!getProdOnSaleRst.Contains("\"success\":true"))
|
||||
{
|
||||
@@ -499,42 +502,79 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
this.pbLoading.Visible = true;
|
||||
this.statusBar.lblTaskStatus.Text = "正在查询店铺:" + shop.ShopAccount + " " + page + "/" + Math.Min(PageEnd, totalPage);
|
||||
this.statusBar.lblTaskStatus.Text = "正在查询店铺商品:" + shop.ShopAccount + " " + page + "/" + Math.Min(PageEnd, totalPage);
|
||||
}));
|
||||
foreach (JObject prod in prodObjs["productList"])
|
||||
|
||||
var wxProdObjList = prodObjs["productList"];
|
||||
var prodIdLst = wxProdObjList.Select(p => p["productId"].ParseToString()).ToList();
|
||||
if (prodIdLst.Count == 0)
|
||||
{
|
||||
var pStr = JsonHelper.SerializeObject(prod);
|
||||
// 取到无商品页,直接跳出
|
||||
break;
|
||||
}
|
||||
var prodMetricRst = WxPlatformRecommendProdManage.getProductMetricList(shop, prodIdLst);
|
||||
if (!prodMetricRst.Contains("\"code\":0"))
|
||||
{
|
||||
ShowShopError(shop, getProdOnSaleRst);
|
||||
break;
|
||||
}
|
||||
Thread.Sleep(Randomx.GetId(300, 700));
|
||||
var productMetric = JsonHelper.DeserializeJsonToObject<ProductMetric>(JsonHelper.JObjectParse(prodMetricRst)["data"].ToString());
|
||||
|
||||
// 将商品信息和曝光信息融合到一起
|
||||
List<WXPlatformRecommendProdInfo> recommendProds = new List<WXPlatformRecommendProdInfo>();
|
||||
foreach (JObject wxProdObj in prodObjs["productList"])
|
||||
{
|
||||
var prodStr = JsonHelper.SerializeObject(wxProdObj);
|
||||
var productMetricStr = JsonHelper.SerializeObject(productMetric);
|
||||
|
||||
WXPlatformRecommendProdInfo recommendProd = new WXPlatformRecommendProdInfo();
|
||||
recommendProd.product_id = wxProdObj["productId"].ParseToString();
|
||||
recommendProd.title = wxProdObj["title"].ParseToString();
|
||||
var ViewUvCnt = productMetric.rowsMap
|
||||
.Where(r => r.value?.spu_id_ == recommendProd.product_id)
|
||||
.Sum(r => r.value?.shopxspu_growth_product_view_cnt_30d_2.ParseToInt());
|
||||
recommendProd.product_view_uv = ViewUvCnt.ParseToString();
|
||||
var PayCnt = productMetric.rowsMap
|
||||
.Where(r => r.value?.spu_id_ == recommendProd.product_id)
|
||||
.Sum(r => r.value?.shopxspu_growth_pay_product_cnt_30d_2.ParseToInt());
|
||||
recommendProd.pay_order_cnt = PayCnt.ParseToString();
|
||||
if (ViewUvCnt > 0)
|
||||
recommendProds.Add(recommendProd);
|
||||
|
||||
|
||||
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
decimal? price = null;
|
||||
try { price = prod["skuList"]?[0]["price"].ParseToDecimal() / 100; } catch { }
|
||||
var prodId = prod["productId"].ParseToString();
|
||||
try { price = wxProdObj["skuList"]?[0]["price"].ParseToDecimal() / 100; } catch { }
|
||||
var prodId = wxProdObj["productId"].ParseToString();
|
||||
if (dgvSelectProduct.Rows.Cast<DataGridViewRow>().Any(r => r.Cells["colDraftId"].ParseToString() == prodId))
|
||||
{
|
||||
|
||||
}
|
||||
string StatusStr = "其他";
|
||||
if (prod["status"].ParseToInt() == 5)
|
||||
if (wxProdObj["status"].ParseToInt() == 5)
|
||||
StatusStr = "在售";
|
||||
if (prod["status"].ParseToInt() == 11)
|
||||
if (wxProdObj["status"].ParseToInt() == 11)
|
||||
StatusStr = "下架";
|
||||
if (prod["status"].ParseToInt() == 0)
|
||||
if (wxProdObj["status"].ParseToInt() == 0)
|
||||
{
|
||||
StatusStr = "草稿箱";
|
||||
if (prod["editStatus"].ParseToInt() == 3)
|
||||
if (wxProdObj["editStatus"].ParseToInt() == 3)
|
||||
StatusStr = "审核待处理";
|
||||
}
|
||||
if (prod["status"].ParseToInt() == 6)
|
||||
if (wxProdObj["status"].ParseToInt() == 6)
|
||||
StatusStr = "回收站";
|
||||
var Limit1 = pStr.Contains("同款/高度相似商品") ? "\r\n上架相似品" : "";
|
||||
var Limit1 = prodStr.Contains("同款/高度相似商品") ? "\r\n上架相似品" : "";
|
||||
//var Limit2 = BaseRegex.GetStringJson(ref pStr, "secondLevelLabelName").ParseToString().Length > 0 ? "\r\n命中低风险规则上架" : "";
|
||||
var Limit2 = BaseRegex.GetStringJson(ref pStr, "secondLevelLabelName").ParseToString().Length > 0 ? "\r\n低风险规则上架" : "";
|
||||
var Limit2 = BaseRegex.GetStringJson(ref prodStr, "secondLevelLabelName").ParseToString().Length > 0 ? "\r\n低风险规则上架" : "";
|
||||
StatusStr += Limit1 + Limit2;
|
||||
|
||||
var spuId = prod["productId"].ParseToString();
|
||||
var recommendProd = recommendProds.FirstOrDefault(r => r.product_id == prod["productId"].ParseToString());
|
||||
if (recommendProd == null)
|
||||
recommendProd = new WXPlatformRecommendProdInfo();
|
||||
var spuId = wxProdObj["productId"].ParseToString();
|
||||
//var recommendProd = recommendProds.FirstOrDefault(r => r.product_id == prod["productId"].ParseToString());
|
||||
//if (recommendProd == null)
|
||||
// recommendProd = new WXPlatformRecommendProdInfo();
|
||||
|
||||
var rowIndex = this.dgvSelectProduct.Rows.Add(
|
||||
false,
|
||||
@@ -545,25 +585,25 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
"进店",
|
||||
"",
|
||||
"",
|
||||
prod["productId"].ParseToString(),
|
||||
prod["headImg"].ParseToString(),
|
||||
wxProdObj["productId"].ParseToString(),
|
||||
wxProdObj["headImg"].ParseToString(),
|
||||
DataGridViewExtension.defaultBitmap,
|
||||
"", // 替换图地址
|
||||
null, // 替换图
|
||||
prod["title"].ParseToString(), // 用户端显示商品原名
|
||||
(prod["recommendCategory"].IsJTokenNullOrEmpty() || prod["recommendCategory"]["categoryNames"].IsJTokenNullOrEmpty()) ?
|
||||
"" : string.Join(" >> ", prod["recommendCategory"]["categoryNames"].Select(s => s.ParseToString())), // 类目名称
|
||||
prod["spuCode"].ParseToString(),
|
||||
prod["price"].ParseToDecimal() * 0.01m, // 价格
|
||||
prod["soldNum"].ParseToInt(), // 销量
|
||||
wxProdObj["title"].ParseToString(), // 用户端显示商品原名
|
||||
(wxProdObj["recommendCategory"].IsJTokenNullOrEmpty() || wxProdObj["recommendCategory"]["categoryNames"].IsJTokenNullOrEmpty()) ?
|
||||
"" : string.Join(" >> ", wxProdObj["recommendCategory"]["categoryNames"].Select(s => s.ParseToString())), // 类目名称
|
||||
wxProdObj["spuCode"].ParseToString(),
|
||||
wxProdObj["price"].ParseToDecimal() * 0.01m, // 价格
|
||||
wxProdObj["soldNum"].ParseToInt(), // 销量
|
||||
recommendProd.product_view_uv,
|
||||
recommendProd.pay_order_cnt,
|
||||
StatusStr,
|
||||
prod["presaleTag"].ParseToInt() == 1 ? "[预售]" : "", // 预售
|
||||
wxProdObj["presaleTag"].ParseToInt() == 1 ? "[预售]" : "", // 预售
|
||||
"", // 备注
|
||||
"", // 操作结果
|
||||
"删除",
|
||||
BaseClass.StampToDateTime(prod["lastEditDraftTime"].ParseToInt()).ToString("yy-MM-dd HH:mm"),
|
||||
BaseClass.StampToDateTime(wxProdObj["lastEditDraftTime"].ParseToInt()).ToString("yy-MM-dd HH:mm"),
|
||||
"");
|
||||
|
||||
dgvSelectProduct.Rows[rowIndex].Height = 60;
|
||||
|
||||
@@ -23,6 +23,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
public Lazy<WXUserCollectAuthProdListForm> userCollectAuthProdListForm = new Lazy<WXUserCollectAuthProdListForm>();
|
||||
public Lazy<WXProdPreSaleForm> wxProdPreSaleForm = new Lazy<WXProdPreSaleForm>();
|
||||
public Lazy<WXProdClearNoVisitForm> wxProdClearNoVisitForm = new Lazy<WXProdClearNoVisitForm>();
|
||||
public Lazy<WXProdClearNoVisit260606Form> wxProdClearNoVisit260606Form = new Lazy<WXProdClearNoVisit260606Form>();
|
||||
public Lazy<WXProdCouponOrderBoomForm> wxProdCouponForm = new Lazy<WXProdCouponOrderBoomForm>();
|
||||
public Lazy<WXProdSyncForm> wxProdSyncForm = new Lazy<WXProdSyncForm>();
|
||||
public Lazy<WXFinderSquareForm> wxFinderSquareForm = new Lazy<WXFinderSquareForm>();
|
||||
@@ -97,7 +98,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
SetForm(wxProdPreSaleForm.Value);
|
||||
break;
|
||||
case "清理无流量":
|
||||
SetForm(wxProdClearNoVisitForm.Value);
|
||||
SetForm(wxProdClearNoVisit260606Form.Value);
|
||||
break;
|
||||
case "爆单神器":
|
||||
SetForm(wxProdCouponForm.Value);
|
||||
|
||||
+89
-73
@@ -302,6 +302,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
//
|
||||
this.tableLayoutPanel1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.tableLayoutPanel1.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
|
||||
this.tableLayoutPanel1.ColumnCount = 12;
|
||||
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
|
||||
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20.0018F));
|
||||
@@ -339,7 +340,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
this.tableLayoutPanel1.Controls.Add(this.lblSourceType, 6, 1);
|
||||
this.tableLayoutPanel1.Controls.Add(this.lblGroupFilter, 8, 1);
|
||||
this.tableLayoutPanel1.Controls.Add(this.cmbSourceType, 7, 1);
|
||||
this.tableLayoutPanel1.Location = new System.Drawing.Point(4, 4);
|
||||
this.tableLayoutPanel1.Location = new System.Drawing.Point(4, 7);
|
||||
this.tableLayoutPanel1.Name = "tableLayoutPanel1";
|
||||
this.tableLayoutPanel1.RowCount = 3;
|
||||
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 33.33444F));
|
||||
@@ -350,19 +351,20 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
//
|
||||
// txtViewUvMin
|
||||
//
|
||||
this.txtViewUvMin.Anchor = System.Windows.Forms.AnchorStyles.Left;
|
||||
this.txtViewUvMin.Location = new System.Drawing.Point(1075, 41);
|
||||
this.txtViewUvMin.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.txtViewUvMin.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.txtViewUvMin.Font = new System.Drawing.Font("微软雅黑", 10F);
|
||||
this.txtViewUvMin.Location = new System.Drawing.Point(1074, 38);
|
||||
this.txtViewUvMin.Margin = new System.Windows.Forms.Padding(0, 3, 0, 0);
|
||||
this.txtViewUvMin.Name = "txtViewUvMin";
|
||||
this.txtViewUvMin.Size = new System.Drawing.Size(51, 23);
|
||||
this.txtViewUvMin.Size = new System.Drawing.Size(51, 25);
|
||||
this.txtViewUvMin.TabIndex = 882;
|
||||
this.txtViewUvMin.Visible = false;
|
||||
//
|
||||
// chkViewUvMin
|
||||
//
|
||||
this.chkViewUvMin.Anchor = System.Windows.Forms.AnchorStyles.Right;
|
||||
this.chkViewUvMin.Location = new System.Drawing.Point(1024, 42);
|
||||
this.chkViewUvMin.Margin = new System.Windows.Forms.Padding(6, 3, 3, 3);
|
||||
this.chkViewUvMin.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.chkViewUvMin.Location = new System.Drawing.Point(1023, 40);
|
||||
this.chkViewUvMin.Margin = new System.Windows.Forms.Padding(6, 5, 3, 3);
|
||||
this.chkViewUvMin.Name = "chkViewUvMin";
|
||||
this.chkViewUvMin.Size = new System.Drawing.Size(48, 21);
|
||||
this.chkViewUvMin.TabIndex = 883;
|
||||
@@ -372,16 +374,17 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
//
|
||||
// cmbHot
|
||||
//
|
||||
this.cmbHot.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.cmbHot.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.cmbHot.FormattingEnabled = true;
|
||||
this.cmbHot.Items.AddRange(new object[] {
|
||||
"",
|
||||
"爆款数据",
|
||||
"普通商品"});
|
||||
this.cmbHot.Location = new System.Drawing.Point(869, 7);
|
||||
this.cmbHot.Location = new System.Drawing.Point(866, 3);
|
||||
this.cmbHot.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
|
||||
this.cmbHot.Name = "cmbHot";
|
||||
this.cmbHot.Size = new System.Drawing.Size(144, 25);
|
||||
this.cmbHot.Size = new System.Drawing.Size(146, 25);
|
||||
this.cmbHot.TabIndex = 882;
|
||||
this.cmbHot.Text = "普通商品";
|
||||
this.cmbHot.Visible = false;
|
||||
@@ -390,10 +393,10 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
//
|
||||
// lblHot
|
||||
//
|
||||
this.lblHot.Anchor = System.Windows.Forms.AnchorStyles.Right;
|
||||
this.lblHot.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.lblHot.AutoSize = true;
|
||||
this.lblHot.Location = new System.Drawing.Point(837, 9);
|
||||
this.lblHot.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0);
|
||||
this.lblHot.Location = new System.Drawing.Point(834, 7);
|
||||
this.lblHot.Margin = new System.Windows.Forms.Padding(3, 7, 0, 0);
|
||||
this.lblHot.Name = "lblHot";
|
||||
this.lblHot.Size = new System.Drawing.Size(32, 17);
|
||||
this.lblHot.TabIndex = 882;
|
||||
@@ -402,12 +405,11 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
//
|
||||
// btnSearch
|
||||
//
|
||||
this.btnSearch.Anchor = System.Windows.Forms.AnchorStyles.Left;
|
||||
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(1019, 5);
|
||||
this.btnSearch.Location = new System.Drawing.Point(1018, 3);
|
||||
this.btnSearch.Margin = new System.Windows.Forms.Padding(3, 3, 5, 3);
|
||||
this.btnSearch.Name = "btnSearch";
|
||||
this.btnSearch.Size = new System.Drawing.Size(51, 25);
|
||||
@@ -428,12 +430,11 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
//
|
||||
// btnEmpty
|
||||
//
|
||||
this.btnEmpty.Anchor = System.Windows.Forms.AnchorStyles.Left;
|
||||
this.btnEmpty.CanvasColor = System.Drawing.SystemColors.Control;
|
||||
this.btnEmpty.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
this.btnEmpty.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.btnEmpty.Location = new System.Drawing.Point(1075, 5);
|
||||
this.btnEmpty.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.btnEmpty.Location = new System.Drawing.Point(1074, 3);
|
||||
this.btnEmpty.Margin = new System.Windows.Forms.Padding(0, 3, 0, 0);
|
||||
this.btnEmpty.Name = "btnEmpty";
|
||||
this.btnEmpty.Size = new System.Drawing.Size(51, 25);
|
||||
this.btnEmpty.Style.Alignment = System.Drawing.StringAlignment.Center;
|
||||
@@ -454,16 +455,17 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
//
|
||||
// cmbCat3
|
||||
//
|
||||
this.cmbCat3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.cmbCat3.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.cmbCat3.DefaultText = "全部";
|
||||
this.cmbCat3.DropDownHeight = 1;
|
||||
this.cmbCat3.DropDownWidth = 1;
|
||||
this.cmbCat3.FormattingEnabled = true;
|
||||
this.cmbCat3.IntegralHeight = false;
|
||||
this.cmbCat3.Location = new System.Drawing.Point(687, 7);
|
||||
this.cmbCat3.Location = new System.Drawing.Point(682, 3);
|
||||
this.cmbCat3.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
|
||||
this.cmbCat3.Name = "cmbCat3";
|
||||
this.cmbCat3.Size = new System.Drawing.Size(144, 25);
|
||||
this.cmbCat3.Size = new System.Drawing.Size(146, 25);
|
||||
this.cmbCat3.TabIndex = 811;
|
||||
this.cmbCat3.Text = "全部";
|
||||
this.cmbCat3.SelectedIndexChanged += new System.EventHandler(this.cmbCat3_SelectedIndexChanged);
|
||||
@@ -471,10 +473,10 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
//
|
||||
// label17
|
||||
//
|
||||
this.label17.Anchor = System.Windows.Forms.AnchorStyles.Right;
|
||||
this.label17.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.label17.AutoSize = true;
|
||||
this.label17.Location = new System.Drawing.Point(648, 9);
|
||||
this.label17.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0);
|
||||
this.label17.Location = new System.Drawing.Point(643, 7);
|
||||
this.label17.Margin = new System.Windows.Forms.Padding(3, 7, 0, 0);
|
||||
this.label17.Name = "label17";
|
||||
this.label17.Size = new System.Drawing.Size(39, 17);
|
||||
this.label17.TabIndex = 811;
|
||||
@@ -482,16 +484,17 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
//
|
||||
// cmbCat2
|
||||
//
|
||||
this.cmbCat2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.cmbCat2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.cmbCat2.DefaultText = "全部";
|
||||
this.cmbCat2.DropDownHeight = 1;
|
||||
this.cmbCat2.DropDownWidth = 1;
|
||||
this.cmbCat2.FormattingEnabled = true;
|
||||
this.cmbCat2.IntegralHeight = false;
|
||||
this.cmbCat2.Location = new System.Drawing.Point(499, 7);
|
||||
this.cmbCat2.Location = new System.Drawing.Point(491, 3);
|
||||
this.cmbCat2.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
|
||||
this.cmbCat2.Name = "cmbCat2";
|
||||
this.cmbCat2.Size = new System.Drawing.Size(143, 25);
|
||||
this.cmbCat2.Size = new System.Drawing.Size(146, 25);
|
||||
this.cmbCat2.TabIndex = 804;
|
||||
this.cmbCat2.Text = "全部";
|
||||
this.cmbCat2.SelectedIndexChanged += new System.EventHandler(this.cmbCat2_SelectedIndexChanged);
|
||||
@@ -499,10 +502,10 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
//
|
||||
// label14
|
||||
//
|
||||
this.label14.Anchor = System.Windows.Forms.AnchorStyles.Right;
|
||||
this.label14.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.label14.AutoSize = true;
|
||||
this.label14.Location = new System.Drawing.Point(460, 9);
|
||||
this.label14.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0);
|
||||
this.label14.Location = new System.Drawing.Point(452, 7);
|
||||
this.label14.Margin = new System.Windows.Forms.Padding(3, 7, 0, 0);
|
||||
this.label14.Name = "label14";
|
||||
this.label14.Size = new System.Drawing.Size(39, 17);
|
||||
this.label14.TabIndex = 784;
|
||||
@@ -510,16 +513,17 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
//
|
||||
// cmbCat1
|
||||
//
|
||||
this.cmbCat1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.cmbCat1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.cmbCat1.DefaultText = "全部";
|
||||
this.cmbCat1.DropDownHeight = 1;
|
||||
this.cmbCat1.DropDownWidth = 1;
|
||||
this.cmbCat1.FormattingEnabled = true;
|
||||
this.cmbCat1.IntegralHeight = false;
|
||||
this.cmbCat1.Location = new System.Drawing.Point(279, 5);
|
||||
this.cmbCat1.Location = new System.Drawing.Point(275, 3);
|
||||
this.cmbCat1.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
|
||||
this.cmbCat1.Name = "cmbCat1";
|
||||
this.cmbCat1.Size = new System.Drawing.Size(144, 25);
|
||||
this.cmbCat1.Size = new System.Drawing.Size(146, 25);
|
||||
this.cmbCat1.TabIndex = 805;
|
||||
this.cmbCat1.Text = "全部";
|
||||
this.cmbCat1.SelectedIndexChanged += new System.EventHandler(this.cmbCat1_SelectedIndexChanged);
|
||||
@@ -527,13 +531,13 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
//
|
||||
// lblCat1
|
||||
//
|
||||
this.lblCat1.Anchor = System.Windows.Forms.AnchorStyles.Right;
|
||||
this.lblCat1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.lblCat1.AutoSize = true;
|
||||
this.lblCat1.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.lblCat1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Underline, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.lblCat1.ForeColor = System.Drawing.Color.Blue;
|
||||
this.lblCat1.Location = new System.Drawing.Point(229, 9);
|
||||
this.lblCat1.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0);
|
||||
this.lblCat1.Location = new System.Drawing.Point(225, 7);
|
||||
this.lblCat1.Margin = new System.Windows.Forms.Padding(3, 7, 0, 0);
|
||||
this.lblCat1.Name = "lblCat1";
|
||||
this.lblCat1.Size = new System.Drawing.Size(50, 17);
|
||||
this.lblCat1.TabIndex = 426;
|
||||
@@ -542,19 +546,22 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
//
|
||||
// txtProdName
|
||||
//
|
||||
this.txtProdName.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.txtProdName.Location = new System.Drawing.Point(59, 6);
|
||||
this.txtProdName.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.txtProdName.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.txtProdName.Font = new System.Drawing.Font("微软雅黑", 10F);
|
||||
this.txtProdName.Location = new System.Drawing.Point(59, 3);
|
||||
this.txtProdName.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
|
||||
this.txtProdName.Name = "txtProdName";
|
||||
this.txtProdName.Size = new System.Drawing.Size(144, 23);
|
||||
this.txtProdName.Size = new System.Drawing.Size(146, 25);
|
||||
this.txtProdName.TabIndex = 427;
|
||||
//
|
||||
// label3
|
||||
//
|
||||
this.label3.Anchor = System.Windows.Forms.AnchorStyles.Right;
|
||||
this.label3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.label3.AutoSize = true;
|
||||
this.label3.Location = new System.Drawing.Point(3, 9);
|
||||
this.label3.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0);
|
||||
this.label3.Location = new System.Drawing.Point(3, 7);
|
||||
this.label3.Margin = new System.Windows.Forms.Padding(3, 7, 0, 0);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new System.Drawing.Size(56, 17);
|
||||
this.label3.TabIndex = 428;
|
||||
@@ -562,10 +569,10 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
//
|
||||
// lblWxSafe
|
||||
//
|
||||
this.lblWxSafe.Anchor = System.Windows.Forms.AnchorStyles.Right;
|
||||
this.lblWxSafe.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.lblWxSafe.AutoSize = true;
|
||||
this.lblWxSafe.Location = new System.Drawing.Point(3, 44);
|
||||
this.lblWxSafe.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0);
|
||||
this.lblWxSafe.Location = new System.Drawing.Point(3, 42);
|
||||
this.lblWxSafe.Margin = new System.Windows.Forms.Padding(3, 7, 0, 0);
|
||||
this.lblWxSafe.Name = "lblWxSafe";
|
||||
this.lblWxSafe.Size = new System.Drawing.Size(56, 17);
|
||||
this.lblWxSafe.TabIndex = 651;
|
||||
@@ -573,25 +580,26 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
//
|
||||
// cmbWxSafe
|
||||
//
|
||||
this.cmbWxSafe.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.cmbWxSafe.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.cmbWxSafe.FormattingEnabled = true;
|
||||
this.cmbWxSafe.Items.AddRange(new object[] {
|
||||
"",
|
||||
"安全+未校验",
|
||||
"安全商品",
|
||||
"未校验"});
|
||||
this.cmbWxSafe.Location = new System.Drawing.Point(59, 40);
|
||||
this.cmbWxSafe.Location = new System.Drawing.Point(59, 38);
|
||||
this.cmbWxSafe.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
|
||||
this.cmbWxSafe.Name = "cmbWxSafe";
|
||||
this.cmbWxSafe.Size = new System.Drawing.Size(144, 25);
|
||||
this.cmbWxSafe.Size = new System.Drawing.Size(146, 25);
|
||||
this.cmbWxSafe.TabIndex = 676;
|
||||
this.cmbWxSafe.Text = "安全+未校验";
|
||||
//
|
||||
// chkCatBoundMoreThan
|
||||
//
|
||||
this.chkCatBoundMoreThan.Anchor = System.Windows.Forms.AnchorStyles.Left;
|
||||
this.chkCatBoundMoreThan.Location = new System.Drawing.Point(212, 42);
|
||||
this.chkCatBoundMoreThan.Margin = new System.Windows.Forms.Padding(6, 3, 3, 3);
|
||||
this.chkCatBoundMoreThan.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.chkCatBoundMoreThan.Location = new System.Drawing.Point(211, 40);
|
||||
this.chkCatBoundMoreThan.Margin = new System.Windows.Forms.Padding(3, 5, 0, 0);
|
||||
this.chkCatBoundMoreThan.Name = "chkCatBoundMoreThan";
|
||||
this.chkCatBoundMoreThan.Size = new System.Drawing.Size(64, 21);
|
||||
this.chkCatBoundMoreThan.TabIndex = 815;
|
||||
@@ -601,20 +609,23 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
//
|
||||
// txtCatBoundMoreThan
|
||||
//
|
||||
this.txtCatBoundMoreThan.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.txtCatBoundMoreThan.Location = new System.Drawing.Point(279, 41);
|
||||
this.txtCatBoundMoreThan.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.txtCatBoundMoreThan.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.txtCatBoundMoreThan.Font = new System.Drawing.Font("微软雅黑", 10F);
|
||||
this.txtCatBoundMoreThan.Location = new System.Drawing.Point(275, 38);
|
||||
this.txtCatBoundMoreThan.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
|
||||
this.txtCatBoundMoreThan.Name = "txtCatBoundMoreThan";
|
||||
this.txtCatBoundMoreThan.Size = new System.Drawing.Size(144, 23);
|
||||
this.txtCatBoundMoreThan.Size = new System.Drawing.Size(146, 25);
|
||||
this.txtCatBoundMoreThan.TabIndex = 882;
|
||||
this.txtCatBoundMoreThan.Text = "1000";
|
||||
this.txtCatBoundMoreThan.Visible = false;
|
||||
//
|
||||
// chkCatBoundLessThan
|
||||
//
|
||||
this.chkCatBoundLessThan.Anchor = System.Windows.Forms.AnchorStyles.Left;
|
||||
this.chkCatBoundLessThan.Location = new System.Drawing.Point(432, 42);
|
||||
this.chkCatBoundLessThan.Margin = new System.Windows.Forms.Padding(6, 3, 3, 3);
|
||||
this.chkCatBoundLessThan.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.chkCatBoundLessThan.Location = new System.Drawing.Point(427, 40);
|
||||
this.chkCatBoundLessThan.Margin = new System.Windows.Forms.Padding(3, 5, 0, 0);
|
||||
this.chkCatBoundLessThan.Name = "chkCatBoundLessThan";
|
||||
this.chkCatBoundLessThan.Size = new System.Drawing.Size(64, 21);
|
||||
this.chkCatBoundLessThan.TabIndex = 882;
|
||||
@@ -624,33 +635,37 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
//
|
||||
// txtCatBoundLessThan
|
||||
//
|
||||
this.txtCatBoundLessThan.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.txtCatBoundLessThan.Location = new System.Drawing.Point(499, 41);
|
||||
this.txtCatBoundLessThan.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.txtCatBoundLessThan.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.txtCatBoundLessThan.Font = new System.Drawing.Font("微软雅黑", 10F);
|
||||
this.txtCatBoundLessThan.Location = new System.Drawing.Point(491, 38);
|
||||
this.txtCatBoundLessThan.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
|
||||
this.txtCatBoundLessThan.Name = "txtCatBoundLessThan";
|
||||
this.txtCatBoundLessThan.Size = new System.Drawing.Size(143, 23);
|
||||
this.txtCatBoundLessThan.Size = new System.Drawing.Size(146, 25);
|
||||
this.txtCatBoundLessThan.TabIndex = 883;
|
||||
this.txtCatBoundLessThan.Text = "100000";
|
||||
this.txtCatBoundLessThan.Visible = false;
|
||||
//
|
||||
// cmbGroupFilter
|
||||
//
|
||||
this.cmbGroupFilter.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.cmbGroupFilter.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.cmbGroupFilter.FormattingEnabled = true;
|
||||
this.cmbGroupFilter.Location = new System.Drawing.Point(869, 42);
|
||||
this.cmbGroupFilter.Location = new System.Drawing.Point(866, 38);
|
||||
this.cmbGroupFilter.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
|
||||
this.cmbGroupFilter.Name = "cmbGroupFilter";
|
||||
this.cmbGroupFilter.Size = new System.Drawing.Size(144, 25);
|
||||
this.cmbGroupFilter.Size = new System.Drawing.Size(146, 25);
|
||||
this.cmbGroupFilter.TabIndex = 653;
|
||||
this.cmbGroupFilter.Visible = false;
|
||||
this.cmbGroupFilter.SelectedIndexChanged += new System.EventHandler(this.cmbGroupFilter_SelectedIndexChanged);
|
||||
//
|
||||
// lblSourceType
|
||||
//
|
||||
this.lblSourceType.Anchor = System.Windows.Forms.AnchorStyles.Right;
|
||||
this.lblSourceType.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.lblSourceType.AutoSize = true;
|
||||
this.lblSourceType.Location = new System.Drawing.Point(655, 44);
|
||||
this.lblSourceType.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0);
|
||||
this.lblSourceType.Location = new System.Drawing.Point(650, 42);
|
||||
this.lblSourceType.Margin = new System.Windows.Forms.Padding(3, 7, 0, 0);
|
||||
this.lblSourceType.Name = "lblSourceType";
|
||||
this.lblSourceType.Size = new System.Drawing.Size(32, 17);
|
||||
this.lblSourceType.TabIndex = 651;
|
||||
@@ -659,10 +674,10 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
//
|
||||
// lblGroupFilter
|
||||
//
|
||||
this.lblGroupFilter.Anchor = System.Windows.Forms.AnchorStyles.Right;
|
||||
this.lblGroupFilter.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.lblGroupFilter.AutoSize = true;
|
||||
this.lblGroupFilter.Location = new System.Drawing.Point(837, 44);
|
||||
this.lblGroupFilter.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0);
|
||||
this.lblGroupFilter.Location = new System.Drawing.Point(834, 42);
|
||||
this.lblGroupFilter.Margin = new System.Windows.Forms.Padding(3, 7, 0, 0);
|
||||
this.lblGroupFilter.Name = "lblGroupFilter";
|
||||
this.lblGroupFilter.Size = new System.Drawing.Size(32, 17);
|
||||
this.lblGroupFilter.TabIndex = 641;
|
||||
@@ -671,7 +686,8 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
//
|
||||
// cmbSourceType
|
||||
//
|
||||
this.cmbSourceType.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.cmbSourceType.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.cmbSourceType.FormattingEnabled = true;
|
||||
this.cmbSourceType.Items.AddRange(new object[] {
|
||||
"",
|
||||
@@ -684,10 +700,10 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
"机会商品",
|
||||
"以图搜品",
|
||||
"多多外部数据"});
|
||||
this.cmbSourceType.Location = new System.Drawing.Point(687, 42);
|
||||
this.cmbSourceType.Location = new System.Drawing.Point(682, 38);
|
||||
this.cmbSourceType.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
|
||||
this.cmbSourceType.Name = "cmbSourceType";
|
||||
this.cmbSourceType.Size = new System.Drawing.Size(144, 25);
|
||||
this.cmbSourceType.Size = new System.Drawing.Size(146, 25);
|
||||
this.cmbSourceType.TabIndex = 654;
|
||||
this.cmbSourceType.Text = "厂商直采";
|
||||
this.cmbSourceType.Visible = false;
|
||||
|
||||
@@ -475,20 +475,28 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
// data += "&end_time=" + dtpEnd.Value.ToString("yyyy-MM-dd HH:mm:ss");
|
||||
//}
|
||||
|
||||
if (cmbSourceType.Text != "厂商直采" && cmbSourceType.Text != "1688厂家" && cmbSourceType.Text != "微信店采" && cmbSourceType.Text != "微信小店")
|
||||
//if (cmbSourceType.Text != "厂商直采" && cmbSourceType.Text != "1688厂家" && cmbSourceType.Text != "微信店采" && cmbSourceType.Text != "微信小店")
|
||||
if (lblCat1.Text == "P 类目1")
|
||||
{
|
||||
data += "&search_cat1=" + (cmbCat1.Text.Trim() == "全部" ? "" : cmbCat1.Text.Trim());
|
||||
data += "&search_cat=" + (cmbCat2.Text.Trim() == "全部" ? "" : cmbCat2.Text.Trim());
|
||||
}
|
||||
else
|
||||
{
|
||||
var selectCate1 = GlobalConfig.WxCatList.Where(c => c.level == 1 && (/*cmbCat1.Text.Trim() == cmbCat1.DefaultText ||*/ (";" + cmbCat1.Text.Trim() + ";").Contains(";" + c.name + ";"))).ToList();
|
||||
var cates2 = GlobalConfig.WxCatList.Where(c => selectCate1.Any(c1 => c.f_cat_id == c1.cat_id)).ToList();
|
||||
var selectCate2 = cates2.Where(c => c.level == 2 && (/*cmbCat2.Text.Trim() == cmbCat2.DefaultText ||*/ (";" + cmbCat2.Text.Trim() + ";").Contains(";" + c.name + ";"))).ToList();
|
||||
var cates3 = GlobalConfig.WxCatList.Where(c => selectCate2.Any(c2 => c.f_cat_id == c2.cat_id)).ToList();
|
||||
var selectCate3 = cates3.Where(c => c.level == 3 && (/*cmbCat3.Text.Trim() == cmbCat3.DefaultText ||*/ (";" + cmbCat3.Text.Trim() + ";").Contains(";" + c.name + ";"))).ToList();
|
||||
//var selectCate1 = GlobalConfig.WxCatList.Where(c => c.level == 1 && (/*cmbCat1.Text.Trim() == cmbCat1.DefaultText ||*/ (";" + cmbCat1.Text.Trim() + ";").Contains(";" + c.name + ";"))).ToList();
|
||||
//var cates2 = GlobalConfig.WxCatList.Where(c => selectCate1.Any(c1 => c.f_cat_id == c1.cat_id)).ToList();
|
||||
//var selectCate2 = cates2.Where(c => c.level == 2 && (/*cmbCat2.Text.Trim() == cmbCat2.DefaultText ||*/ (";" + cmbCat2.Text.Trim() + ";").Contains(";" + c.name + ";"))).ToList();
|
||||
//var cates3 = GlobalConfig.WxCatList.Where(c => selectCate2.Any(c2 => c.f_cat_id == c2.cat_id)).ToList();
|
||||
//var selectCate3 = cates3.Where(c => c.level == 3 && (/*cmbCat3.Text.Trim() == cmbCat3.DefaultText ||*/ (";" + cmbCat3.Text.Trim() + ";").Contains(";" + c.name + ";"))).ToList();
|
||||
|
||||
if (!string.IsNullOrEmpty(cmbCat1.Text) && selectCate1?.Count > 0)
|
||||
var selectCate1 = GlobalConfig.WxCatList.Where(c => c.level == 1 && (cmbCat1.Text.Trim() == cmbCat1.DefaultText || (";" + cmbCat1.Text.Trim() + ";").Contains(";" + c.name + ";"))).ToList();
|
||||
var cates2 = GlobalConfig.WxCatList.Where(c => selectCate1.Any(c1 => c.f_cat_id == c1.cat_id)).ToList();
|
||||
var selectCate2 = cates2.Where(c => c.level == 2 && (cmbCat2.Text.Trim() == cmbCat2.DefaultText || (";" + cmbCat2.Text.Trim() + ";").Contains(";" + c.name + ";"))).ToList();
|
||||
var cates3 = GlobalConfig.WxCatList.Where(c => selectCate2.Any(c2 => c.f_cat_id == c2.cat_id)).ToList();
|
||||
var selectCate3 = cates3.Where(c => c.level == 3 && (cmbCat3.Text.Trim() == cmbCat3.DefaultText || (";" + cmbCat3.Text.Trim() + ";").Contains(";" + c.name + ";"))).ToList();
|
||||
|
||||
|
||||
if (!string.IsNullOrEmpty(cmbCat1.Text) && cmbCat1.Text != "全部" && selectCate1?.Count > 0)
|
||||
data += "&wx_cat_1=" + string.Join(",", selectCate1.Select(c => c.cat_id).ToList());
|
||||
//else if (chkSkipQualification.Checked)
|
||||
//{
|
||||
@@ -496,9 +504,9 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
// data += "&wx_cat_1=" + string.Join(",", GlobalConfig.WxCatList.Where(c => c.level == 1 && !(c.name == "图书" || c.name == "食品饮料" || c.name == "成人用品"))
|
||||
// .Select(c => c.cat_id));
|
||||
//}
|
||||
if (!string.IsNullOrEmpty(cmbCat2.Text) && selectCate2?.Count > 0)
|
||||
if (!string.IsNullOrEmpty(cmbCat2.Text) && cmbCat2.Text != "全部" && selectCate2?.Count > 0)
|
||||
data += "&wx_cat_2=" + string.Join(",", selectCate2.Select(c => c.cat_id).ToList());
|
||||
if (!string.IsNullOrEmpty(cmbCat3.Text) && selectCate3?.Count > 0)
|
||||
if (!string.IsNullOrEmpty(cmbCat3.Text) && cmbCat3.Text != "全部" && selectCate3?.Count > 0)
|
||||
data += "&wx_cat_3=" + string.Join(",", selectCate3.Select(c => c.cat_id).ToList());
|
||||
|
||||
if (chkCatBoundMoreThan.Checked || chkCatBoundLessThan.Checked)
|
||||
@@ -523,6 +531,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
}
|
||||
if (!string.IsNullOrEmpty(cmbWxCat.Text))
|
||||
{
|
||||
// 因选品的类目识别选项不可见,所以查询时拿掉,上货时可以动态识别类目
|
||||
//data += "&has_wx_cat=" + (cmbWxCat.Text.Trim() == "是").ParseToString().ToLower();
|
||||
}
|
||||
if (!string.IsNullOrEmpty(cmbExportToOutServer.Text) && cmbGroupFilter.Text != "我的商品") // 用户自己的商品没有聚水潭商品,不用考虑是否导出
|
||||
@@ -701,6 +710,8 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
// cmbCat3.Items.Add(cate3.name);
|
||||
//}
|
||||
cmbCat3.Items.AddRange(cates3.Select(c => c.name).ToArray());
|
||||
|
||||
this.TitleText = cates3.Count + "/" + cates3.Select(c => c.name).Distinct().Count();
|
||||
}
|
||||
|
||||
private void cmbCat3_MultiSelectChanged(object sender, EventArgs e)
|
||||
|
||||
+505
@@ -0,0 +1,505 @@
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace TemuKJD.WXForms.ProductForms
|
||||
{
|
||||
partial class WXUserCollectAuthProdEditNotesForm
|
||||
{
|
||||
/// <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.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(WXUserCollectAuthProdEditNotesForm));
|
||||
this.panel2 = new System.Windows.Forms.Panel();
|
||||
this.lblBound = new System.Windows.Forms.Label();
|
||||
this.btnCloseLst = new DevComponents.DotNetBar.PanelEx();
|
||||
this.lstSelectCateList = new System.Windows.Forms.ListBox();
|
||||
this.btnDelCate = new DevComponents.DotNetBar.PanelEx();
|
||||
this.label5 = new System.Windows.Forms.Label();
|
||||
this.txtCateSearch = new DevComponents.DotNetBar.Controls.TextBoxX();
|
||||
this.cmbCateFilter4Leaf = new System.Windows.Forms.ComboBox();
|
||||
this.label4 = new System.Windows.Forms.Label();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.cmbCateFilter1 = new System.Windows.Forms.ComboBox();
|
||||
this.label14 = new System.Windows.Forms.Label();
|
||||
this.cmbCateFilter2 = new System.Windows.Forms.ComboBox();
|
||||
this.label17 = new System.Windows.Forms.Label();
|
||||
this.cmbCateFilter3 = new System.Windows.Forms.ComboBox();
|
||||
this.label7 = new System.Windows.Forms.Label();
|
||||
this.txtFissionWords = new DevComponents.DotNetBar.Controls.TextBoxX();
|
||||
this.btnOK1 = new DevComponents.DotNetBar.PanelEx();
|
||||
this.btnEditDetail = new DevComponents.DotNetBar.PanelEx();
|
||||
this.txtProductName = new System.Windows.Forms.TextBox();
|
||||
this.txtSpuId = new System.Windows.Forms.TextBox();
|
||||
this.label3 = new System.Windows.Forms.Label();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.pictureBox1 = new System.Windows.Forms.PictureBox();
|
||||
this.label8 = new System.Windows.Forms.Label();
|
||||
this.txtNotes = new DevComponents.DotNetBar.Controls.TextBoxX();
|
||||
this.panel2.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// panel2
|
||||
//
|
||||
this.panel2.BackColor = System.Drawing.Color.White;
|
||||
this.panel2.Controls.Add(this.lblBound);
|
||||
this.panel2.Controls.Add(this.btnCloseLst);
|
||||
this.panel2.Controls.Add(this.lstSelectCateList);
|
||||
this.panel2.Controls.Add(this.btnDelCate);
|
||||
this.panel2.Controls.Add(this.label5);
|
||||
this.panel2.Controls.Add(this.txtCateSearch);
|
||||
this.panel2.Controls.Add(this.cmbCateFilter4Leaf);
|
||||
this.panel2.Controls.Add(this.label4);
|
||||
this.panel2.Controls.Add(this.label2);
|
||||
this.panel2.Controls.Add(this.cmbCateFilter1);
|
||||
this.panel2.Controls.Add(this.label14);
|
||||
this.panel2.Controls.Add(this.cmbCateFilter2);
|
||||
this.panel2.Controls.Add(this.label17);
|
||||
this.panel2.Controls.Add(this.cmbCateFilter3);
|
||||
this.panel2.Controls.Add(this.label7);
|
||||
this.panel2.Controls.Add(this.txtFissionWords);
|
||||
this.panel2.Controls.Add(this.btnOK1);
|
||||
this.panel2.Controls.Add(this.btnEditDetail);
|
||||
this.panel2.Controls.Add(this.txtProductName);
|
||||
this.panel2.Controls.Add(this.txtSpuId);
|
||||
this.panel2.Controls.Add(this.label3);
|
||||
this.panel2.Controls.Add(this.label1);
|
||||
this.panel2.Controls.Add(this.pictureBox1);
|
||||
this.panel2.Controls.Add(this.label8);
|
||||
this.panel2.Controls.Add(this.txtNotes);
|
||||
this.panel2.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.panel2.Location = new System.Drawing.Point(1, 33);
|
||||
this.panel2.Name = "panel2";
|
||||
this.panel2.Size = new System.Drawing.Size(567, 594);
|
||||
this.panel2.TabIndex = 1;
|
||||
//
|
||||
// lblBound
|
||||
//
|
||||
this.lblBound.AutoSize = true;
|
||||
this.lblBound.Location = new System.Drawing.Point(456, 327);
|
||||
this.lblBound.Name = "lblBound";
|
||||
this.lblBound.Size = new System.Drawing.Size(56, 17);
|
||||
this.lblBound.TabIndex = 884;
|
||||
this.lblBound.Text = "保证金:";
|
||||
//
|
||||
// btnCloseLst
|
||||
//
|
||||
this.btnCloseLst.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btnCloseLst.CanvasColor = System.Drawing.SystemColors.Control;
|
||||
this.btnCloseLst.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
this.btnCloseLst.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.btnCloseLst.Location = new System.Drawing.Point(510, 280);
|
||||
this.btnCloseLst.Name = "btnCloseLst";
|
||||
this.btnCloseLst.Size = new System.Drawing.Size(16, 17);
|
||||
this.btnCloseLst.Style.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnCloseLst.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255)))));
|
||||
this.btnCloseLst.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255)))));
|
||||
this.btnCloseLst.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine;
|
||||
this.btnCloseLst.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnCloseLst.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText;
|
||||
this.btnCloseLst.Style.GradientAngle = 90;
|
||||
this.btnCloseLst.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnCloseLst.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnCloseLst.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnCloseLst.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnCloseLst.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White;
|
||||
this.btnCloseLst.TabIndex = 871;
|
||||
this.btnCloseLst.Text = "X";
|
||||
this.btnCloseLst.Visible = false;
|
||||
this.btnCloseLst.Click += new System.EventHandler(this.btnCloseLst_Click);
|
||||
//
|
||||
// lstSelectCateList
|
||||
//
|
||||
this.lstSelectCateList.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.lstSelectCateList.FormattingEnabled = true;
|
||||
this.lstSelectCateList.ItemHeight = 17;
|
||||
this.lstSelectCateList.Location = new System.Drawing.Point(90, 276);
|
||||
this.lstSelectCateList.Name = "lstSelectCateList";
|
||||
this.lstSelectCateList.Size = new System.Drawing.Size(440, 21);
|
||||
this.lstSelectCateList.TabIndex = 858;
|
||||
this.lstSelectCateList.Visible = false;
|
||||
this.lstSelectCateList.SelectedIndexChanged += new System.EventHandler(this.lstSelectCateList_SelectedIndexChanged);
|
||||
//
|
||||
// btnDelCate
|
||||
//
|
||||
this.btnDelCate.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btnDelCate.CanvasColor = System.Drawing.SystemColors.Control;
|
||||
this.btnDelCate.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
this.btnDelCate.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.btnDelCate.Location = new System.Drawing.Point(474, 253);
|
||||
this.btnDelCate.Name = "btnDelCate";
|
||||
this.btnDelCate.Size = new System.Drawing.Size(56, 23);
|
||||
this.btnDelCate.Style.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnDelCate.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255)))));
|
||||
this.btnDelCate.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255)))));
|
||||
this.btnDelCate.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine;
|
||||
this.btnDelCate.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnDelCate.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText;
|
||||
this.btnDelCate.Style.GradientAngle = 90;
|
||||
this.btnDelCate.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnDelCate.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnDelCate.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnDelCate.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnDelCate.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White;
|
||||
this.btnDelCate.TabIndex = 848;
|
||||
this.btnDelCate.Text = "删除类目";
|
||||
this.btnDelCate.Click += new System.EventHandler(this.btnDelCate_Click);
|
||||
//
|
||||
// label5
|
||||
//
|
||||
this.label5.AutoSize = true;
|
||||
this.label5.Location = new System.Drawing.Point(34, 256);
|
||||
this.label5.Name = "label5";
|
||||
this.label5.Size = new System.Drawing.Size(56, 17);
|
||||
this.label5.TabIndex = 834;
|
||||
this.label5.Text = "类目搜索";
|
||||
//
|
||||
// txtCateSearch
|
||||
//
|
||||
this.txtCateSearch.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
//
|
||||
//
|
||||
//
|
||||
this.txtCateSearch.Border.Class = "TextBoxBorder";
|
||||
this.txtCateSearch.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
||||
this.txtCateSearch.Location = new System.Drawing.Point(90, 253);
|
||||
this.txtCateSearch.Name = "txtCateSearch";
|
||||
this.txtCateSearch.PreventEnterBeep = true;
|
||||
this.txtCateSearch.Size = new System.Drawing.Size(378, 23);
|
||||
this.txtCateSearch.TabIndex = 833;
|
||||
this.txtCateSearch.TextChanged += new System.EventHandler(this.txtCateSearch_TextChanged);
|
||||
//
|
||||
// cmbCateFilter4Leaf
|
||||
//
|
||||
this.cmbCateFilter4Leaf.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.cmbCateFilter4Leaf.FormattingEnabled = true;
|
||||
this.cmbCateFilter4Leaf.IntegralHeight = false;
|
||||
this.cmbCateFilter4Leaf.Location = new System.Drawing.Point(310, 323);
|
||||
this.cmbCateFilter4Leaf.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
|
||||
this.cmbCateFilter4Leaf.Name = "cmbCateFilter4Leaf";
|
||||
this.cmbCateFilter4Leaf.Size = new System.Drawing.Size(145, 25);
|
||||
this.cmbCateFilter4Leaf.TabIndex = 822;
|
||||
this.cmbCateFilter4Leaf.SelectedIndexChanged += new System.EventHandler(this.cmbCateFilter4Leaf_SelectedIndexChanged);
|
||||
this.cmbCateFilter4Leaf.TextChanged += new System.EventHandler(this.cmbCateFilter4Leaf_TextChanged);
|
||||
//
|
||||
// label4
|
||||
//
|
||||
this.label4.AutoSize = true;
|
||||
this.label4.Location = new System.Drawing.Point(254, 327);
|
||||
this.label4.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0);
|
||||
this.label4.Name = "label4";
|
||||
this.label4.Size = new System.Drawing.Size(56, 17);
|
||||
this.label4.TabIndex = 821;
|
||||
this.label4.Text = "叶子类目";
|
||||
//
|
||||
// label2
|
||||
//
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Location = new System.Drawing.Point(47, 291);
|
||||
this.label2.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(43, 17);
|
||||
this.label2.TabIndex = 812;
|
||||
this.label2.Text = " 类目1";
|
||||
//
|
||||
// cmbCateFilter1
|
||||
//
|
||||
this.cmbCateFilter1.FormattingEnabled = true;
|
||||
this.cmbCateFilter1.IntegralHeight = false;
|
||||
this.cmbCateFilter1.Location = new System.Drawing.Point(90, 287);
|
||||
this.cmbCateFilter1.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
|
||||
this.cmbCateFilter1.Name = "cmbCateFilter1";
|
||||
this.cmbCateFilter1.Size = new System.Drawing.Size(161, 25);
|
||||
this.cmbCateFilter1.TabIndex = 815;
|
||||
this.cmbCateFilter1.SelectedIndexChanged += new System.EventHandler(this.cmbCateFilter1_SelectedIndexChanged);
|
||||
this.cmbCateFilter1.TextChanged += new System.EventHandler(this.cmbCateFilter1_TextChanged);
|
||||
//
|
||||
// label14
|
||||
//
|
||||
this.label14.AutoSize = true;
|
||||
this.label14.Location = new System.Drawing.Point(267, 291);
|
||||
this.label14.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0);
|
||||
this.label14.Name = "label14";
|
||||
this.label14.Size = new System.Drawing.Size(43, 17);
|
||||
this.label14.TabIndex = 813;
|
||||
this.label14.Text = " 类目2";
|
||||
//
|
||||
// cmbCateFilter2
|
||||
//
|
||||
this.cmbCateFilter2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.cmbCateFilter2.FormattingEnabled = true;
|
||||
this.cmbCateFilter2.IntegralHeight = false;
|
||||
this.cmbCateFilter2.Location = new System.Drawing.Point(310, 287);
|
||||
this.cmbCateFilter2.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
|
||||
this.cmbCateFilter2.Name = "cmbCateFilter2";
|
||||
this.cmbCateFilter2.Size = new System.Drawing.Size(220, 25);
|
||||
this.cmbCateFilter2.TabIndex = 814;
|
||||
this.cmbCateFilter2.SelectedIndexChanged += new System.EventHandler(this.cmbCateFilter2_SelectedIndexChanged);
|
||||
this.cmbCateFilter2.TextChanged += new System.EventHandler(this.cmbCateFilter2_TextChanged);
|
||||
//
|
||||
// label17
|
||||
//
|
||||
this.label17.AutoSize = true;
|
||||
this.label17.Location = new System.Drawing.Point(47, 327);
|
||||
this.label17.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0);
|
||||
this.label17.Name = "label17";
|
||||
this.label17.Size = new System.Drawing.Size(43, 17);
|
||||
this.label17.TabIndex = 816;
|
||||
this.label17.Text = " 类目3";
|
||||
//
|
||||
// cmbCateFilter3
|
||||
//
|
||||
this.cmbCateFilter3.FormattingEnabled = true;
|
||||
this.cmbCateFilter3.IntegralHeight = false;
|
||||
this.cmbCateFilter3.Location = new System.Drawing.Point(90, 323);
|
||||
this.cmbCateFilter3.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
|
||||
this.cmbCateFilter3.Name = "cmbCateFilter3";
|
||||
this.cmbCateFilter3.Size = new System.Drawing.Size(161, 25);
|
||||
this.cmbCateFilter3.TabIndex = 817;
|
||||
this.cmbCateFilter3.SelectedIndexChanged += new System.EventHandler(this.cmbCateFilter3_SelectedIndexChanged);
|
||||
this.cmbCateFilter3.TextChanged += new System.EventHandler(this.cmbCateFilter3_TextChanged);
|
||||
//
|
||||
// label7
|
||||
//
|
||||
this.label7.AutoSize = true;
|
||||
this.label7.Location = new System.Drawing.Point(34, 417);
|
||||
this.label7.Name = "label7";
|
||||
this.label7.Size = new System.Drawing.Size(56, 17);
|
||||
this.label7.TabIndex = 659;
|
||||
this.label7.Text = "裂变标题";
|
||||
//
|
||||
// txtFissionWords
|
||||
//
|
||||
this.txtFissionWords.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||
| System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
//
|
||||
//
|
||||
//
|
||||
this.txtFissionWords.Border.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid;
|
||||
this.txtFissionWords.Border.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid;
|
||||
this.txtFissionWords.Border.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid;
|
||||
this.txtFissionWords.Border.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid;
|
||||
this.txtFissionWords.Border.Class = "CrumbBarBackgroundKey";
|
||||
this.txtFissionWords.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
||||
this.txtFissionWords.Border.PaddingBottom = 2;
|
||||
this.txtFissionWords.Border.PaddingLeft = 2;
|
||||
this.txtFissionWords.Border.PaddingRight = 2;
|
||||
this.txtFissionWords.Border.PaddingTop = 2;
|
||||
this.txtFissionWords.Location = new System.Drawing.Point(90, 417);
|
||||
this.txtFissionWords.Multiline = true;
|
||||
this.txtFissionWords.Name = "txtFissionWords";
|
||||
this.txtFissionWords.ScrollBars = System.Windows.Forms.ScrollBars.Both;
|
||||
this.txtFissionWords.Size = new System.Drawing.Size(440, 123);
|
||||
this.txtFissionWords.TabIndex = 658;
|
||||
this.txtFissionWords.WatermarkText = "一行一个";
|
||||
//
|
||||
// btnOK1
|
||||
//
|
||||
this.btnOK1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btnOK1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
this.btnOK1.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.btnOK1.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.btnOK1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.btnOK1.Location = new System.Drawing.Point(484, 550);
|
||||
this.btnOK1.Name = "btnOK1";
|
||||
this.btnOK1.Size = new System.Drawing.Size(46, 26);
|
||||
this.btnOK1.Style.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnOK1.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnOK1.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnOK1.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
|
||||
this.btnOK1.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
|
||||
this.btnOK1.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
|
||||
this.btnOK1.Style.ForeColor.Color = System.Drawing.Color.White;
|
||||
this.btnOK1.Style.GradientAngle = 90;
|
||||
this.btnOK1.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnOK1.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
|
||||
this.btnOK1.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
|
||||
this.btnOK1.TabIndex = 651;
|
||||
this.btnOK1.Text = "提交";
|
||||
this.btnOK1.Click += new System.EventHandler(this.btnOk_Click);
|
||||
//
|
||||
// btnEditDetail
|
||||
//
|
||||
this.btnEditDetail.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
||||
this.btnEditDetail.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
this.btnEditDetail.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.btnEditDetail.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.btnEditDetail.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.btnEditDetail.Location = new System.Drawing.Point(34, 550);
|
||||
this.btnEditDetail.Name = "btnEditDetail";
|
||||
this.btnEditDetail.Size = new System.Drawing.Size(85, 26);
|
||||
this.btnEditDetail.Style.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnEditDetail.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnEditDetail.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnEditDetail.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
|
||||
this.btnEditDetail.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
|
||||
this.btnEditDetail.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
|
||||
this.btnEditDetail.Style.ForeColor.Color = System.Drawing.Color.White;
|
||||
this.btnEditDetail.Style.GradientAngle = 90;
|
||||
this.btnEditDetail.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnEditDetail.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
|
||||
this.btnEditDetail.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
|
||||
this.btnEditDetail.TabIndex = 647;
|
||||
this.btnEditDetail.Text = "编辑商品SKU";
|
||||
this.btnEditDetail.Click += new System.EventHandler(this.btnEditDetail_Click);
|
||||
//
|
||||
// txtProductName
|
||||
//
|
||||
this.txtProductName.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.txtProductName.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.txtProductName.Location = new System.Drawing.Point(90, 196);
|
||||
this.txtProductName.Multiline = true;
|
||||
this.txtProductName.Name = "txtProductName";
|
||||
this.txtProductName.ReadOnly = true;
|
||||
this.txtProductName.Size = new System.Drawing.Size(440, 46);
|
||||
this.txtProductName.TabIndex = 397;
|
||||
//
|
||||
// txtSpuId
|
||||
//
|
||||
this.txtSpuId.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.txtSpuId.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.txtSpuId.Location = new System.Drawing.Point(90, 162);
|
||||
this.txtSpuId.Name = "txtSpuId";
|
||||
this.txtSpuId.ReadOnly = true;
|
||||
this.txtSpuId.Size = new System.Drawing.Size(440, 23);
|
||||
this.txtSpuId.TabIndex = 395;
|
||||
//
|
||||
// label3
|
||||
//
|
||||
this.label3.AutoSize = true;
|
||||
this.label3.Location = new System.Drawing.Point(34, 196);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new System.Drawing.Size(56, 17);
|
||||
this.label3.TabIndex = 392;
|
||||
this.label3.Text = "商品标题";
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Location = new System.Drawing.Point(34, 165);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(56, 17);
|
||||
this.label1.TabIndex = 390;
|
||||
this.label1.Text = " SPU ID";
|
||||
//
|
||||
// pictureBox1
|
||||
//
|
||||
this.pictureBox1.Anchor = System.Windows.Forms.AnchorStyles.Top;
|
||||
this.pictureBox1.Location = new System.Drawing.Point(216, 15);
|
||||
this.pictureBox1.Name = "pictureBox1";
|
||||
this.pictureBox1.Size = new System.Drawing.Size(136, 136);
|
||||
this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
|
||||
this.pictureBox1.TabIndex = 389;
|
||||
this.pictureBox1.TabStop = false;
|
||||
this.pictureBox1.Click += new System.EventHandler(this.pictureBox1_Click);
|
||||
//
|
||||
// label8
|
||||
//
|
||||
this.label8.AutoSize = true;
|
||||
this.label8.Location = new System.Drawing.Point(34, 359);
|
||||
this.label8.Name = "label8";
|
||||
this.label8.Size = new System.Drawing.Size(56, 17);
|
||||
this.label8.TabIndex = 386;
|
||||
this.label8.Text = " 备注";
|
||||
//
|
||||
// txtNotes
|
||||
//
|
||||
this.txtNotes.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
//
|
||||
//
|
||||
//
|
||||
this.txtNotes.Border.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid;
|
||||
this.txtNotes.Border.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid;
|
||||
this.txtNotes.Border.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid;
|
||||
this.txtNotes.Border.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid;
|
||||
this.txtNotes.Border.Class = "CrumbBarBackgroundKey";
|
||||
this.txtNotes.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
||||
this.txtNotes.Border.PaddingBottom = 2;
|
||||
this.txtNotes.Border.PaddingLeft = 2;
|
||||
this.txtNotes.Border.PaddingRight = 2;
|
||||
this.txtNotes.Border.PaddingTop = 2;
|
||||
this.txtNotes.Location = new System.Drawing.Point(90, 359);
|
||||
this.txtNotes.Multiline = true;
|
||||
this.txtNotes.Name = "txtNotes";
|
||||
this.txtNotes.Size = new System.Drawing.Size(440, 47);
|
||||
this.txtNotes.TabIndex = 385;
|
||||
//
|
||||
// WXUserCollectAuthProdEditNotesForm
|
||||
//
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
||||
this.ClientSize = new System.Drawing.Size(569, 628);
|
||||
this.Controls.Add(this.panel2);
|
||||
this.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||
this.Name = "WXUserCollectAuthProdEditNotesForm";
|
||||
this.Text = "编辑商品备注/货号";
|
||||
this.TitleText = "编辑商品备注/货号";
|
||||
this.Load += new System.EventHandler(this.ProductSelectListForm_Load);
|
||||
this.Controls.SetChildIndex(this.panel2, 0);
|
||||
this.panel2.ResumeLayout(false);
|
||||
this.panel2.PerformLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.Panel panel2;
|
||||
private DevComponents.DotNetBar.Controls.TextBoxX txtNotes;
|
||||
private System.Windows.Forms.Label label3;
|
||||
private System.Windows.Forms.Label label1;
|
||||
private System.Windows.Forms.PictureBox pictureBox1;
|
||||
private System.Windows.Forms.TextBox txtSpuId;
|
||||
public System.Windows.Forms.TextBox txtProductName;
|
||||
private System.Windows.Forms.Label label8;
|
||||
private DevComponents.DotNetBar.PanelEx btnOK1;
|
||||
private DevComponents.DotNetBar.PanelEx btnEditDetail;
|
||||
private System.Windows.Forms.Label label7;
|
||||
private DevComponents.DotNetBar.Controls.TextBoxX txtFissionWords;
|
||||
private ComboBox cmbCateFilter4Leaf;
|
||||
private System.Windows.Forms.Label label4;
|
||||
private System.Windows.Forms.Label label2;
|
||||
private ComboBox cmbCateFilter1;
|
||||
private System.Windows.Forms.Label label14;
|
||||
private ComboBox cmbCateFilter2;
|
||||
private System.Windows.Forms.Label label17;
|
||||
private ComboBox cmbCateFilter3;
|
||||
private System.Windows.Forms.Label label5;
|
||||
private DevComponents.DotNetBar.Controls.TextBoxX txtCateSearch;
|
||||
private DevComponents.DotNetBar.PanelEx btnDelCate;
|
||||
private ListBox lstSelectCateList;
|
||||
private DevComponents.DotNetBar.PanelEx btnCloseLst;
|
||||
private Label lblBound;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,544 @@
|
||||
using AllBase.Helper;
|
||||
using AllBase.Model.Result;
|
||||
using TemuKJD.BaseForms;
|
||||
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 AllBase;
|
||||
using Work;
|
||||
using TemuKJD.ToolForms;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System.IO;
|
||||
using TemuKJD.BLL;
|
||||
using NaiBa.Util.Extension;
|
||||
using AllBase.Model.Result.WXResult;
|
||||
using TemuKJD.PDDForms.ProductSelectForms;
|
||||
|
||||
namespace TemuKJD.WXForms.ProductForms
|
||||
{
|
||||
public partial class WXUserCollectAuthProdEditNotesForm : BaseGeneralForm
|
||||
{
|
||||
KJDDBProduct dbProd = null;
|
||||
KJDDBProduct dbProdDetail = null;
|
||||
|
||||
List<WxCatInfo> selectCate1 = new List<WxCatInfo>();
|
||||
List<WxCatInfo> selectCate2 = new List<WxCatInfo>();
|
||||
List<WxCatInfo> selectCate3 = new List<WxCatInfo>();
|
||||
List<WxCatInfo> selectCate4 = new List<WxCatInfo>();
|
||||
|
||||
public WXUserCollectAuthProdEditNotesForm(KJDDBProduct prod)
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
dbProd = prod;
|
||||
}
|
||||
|
||||
private void ProductSelectListForm_Load(object sender, EventArgs e)
|
||||
{
|
||||
lstSelectCateList.Height = 180;
|
||||
if (dbProd != null)
|
||||
{
|
||||
txtProductName.Text = dbProd.product_name;
|
||||
txtSpuId.Text = dbProd.spu_id;
|
||||
this.pictureBox1.ImageLocation = dbProd.main_img.Replace("https", "http");
|
||||
this.txtNotes.Text = dbProd.notes;
|
||||
this.txtFissionWords.Text = dbProd.fission_words.Replace("fission_goods_names:", "");
|
||||
|
||||
if (string.IsNullOrWhiteSpace(dbProd?.product_json))
|
||||
{
|
||||
dbProdDetail = GetPddProductDetail(dbProd.id.ToString());
|
||||
//if (prodTmp != null)
|
||||
//{
|
||||
// dbProd = prodTmp;
|
||||
//}
|
||||
}
|
||||
|
||||
fillWxCate();
|
||||
string catName = (dbProd.cat_name ?? dbProd.cat_id) + "(未识别)";
|
||||
if (dbProd.wx_cat_1 != null)
|
||||
{
|
||||
var catN = GlobalConfig.WxCatList.FirstOrDefault(c => c.cat_id == dbProd.wx_cat_1.ParseToString())?.name;
|
||||
cmbCateFilter1.Text = catN.ParseToString();
|
||||
if (!string.IsNullOrEmpty(catN))
|
||||
{
|
||||
catName = catN;
|
||||
}
|
||||
}
|
||||
if (dbProd.wx_cat_2 != null)
|
||||
{
|
||||
var catN = GlobalConfig.WxCatList.FirstOrDefault(c => c.cat_id == dbProd.wx_cat_2.ParseToString())?.name;
|
||||
cmbCateFilter2.Text = catN.ParseToString();
|
||||
if (!string.IsNullOrEmpty(catN))
|
||||
{
|
||||
catName = catName + " >> " + catN;
|
||||
}
|
||||
}
|
||||
if (dbProd.wx_cat_3 != null)
|
||||
{
|
||||
var catN = GlobalConfig.WxCatList.FirstOrDefault(c => c.cat_id == dbProd.wx_cat_3.ParseToString())?.name;
|
||||
cmbCateFilter3.Text = catN.ParseToString();
|
||||
if (!string.IsNullOrEmpty(catN))
|
||||
{
|
||||
catName = catName + " >> " + catN;
|
||||
}
|
||||
}
|
||||
if (dbProd.wx_cat_leaf != null)
|
||||
{
|
||||
var catN = GlobalConfig.WxCatList.FirstOrDefault(c => c.cat_id == dbProd.wx_cat_leaf.ParseToString())?.name;
|
||||
cmbCateFilter4Leaf.Text = catN.ParseToString();
|
||||
if (!string.IsNullOrEmpty(catN))
|
||||
{
|
||||
catName = catName + " >> " + catN;
|
||||
}
|
||||
}
|
||||
txtCateSearch.WatermarkText = catName.Replace(">>", ">");
|
||||
if (!dbProd.wx_cat_1.IsNullOrZero() && !dbProd.wx_cat_2.IsNullOrZero() && !dbProd.wx_cat_3.IsNullOrZero() && !dbProd.wx_cat_leaf.IsNullOrZero())
|
||||
{
|
||||
//this.cmbCateFilter1.Text =
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void fillWxCate()
|
||||
{
|
||||
cmbCateFilter1.Items.Clear();
|
||||
cmbCateFilter2.Items.Clear();
|
||||
cmbCateFilter3.Items.Clear();
|
||||
cmbCateFilter4Leaf.Items.Clear();
|
||||
cmbCateFilter1.Text = "";
|
||||
cmbCateFilter2.Text = "";
|
||||
cmbCateFilter3.Text = "";
|
||||
cmbCateFilter4Leaf.Text = "";
|
||||
foreach (var cate in GlobalConfig.WxCatList.Where(c => c.level == 1).ToList())
|
||||
{
|
||||
cmbCateFilter1.Items.Add(cate.name);
|
||||
}
|
||||
}
|
||||
|
||||
private void btnOk_Click(object sender, EventArgs e)
|
||||
{
|
||||
//var url = BaseClass.BuildPDDObjString("product/mdy_product_notes");
|
||||
var url = BaseClass.BuildPDDObjString("product/mdy_db_product");
|
||||
var data = UserLogin.GetSignaturex() +
|
||||
"&db_id=" + dbProd.id + "¬es=" + this.txtNotes.Text.Trim();
|
||||
data += "&product_name=" + this.txtProductName.Text.Trim();
|
||||
|
||||
data += "&wx_cat_1=" + (selectCate1.FirstOrDefault()?.cat_id == null ? "null" : selectCate1.FirstOrDefault()?.cat_id.ParseToString());
|
||||
data += "&wx_cat_2=" + (selectCate2.FirstOrDefault()?.cat_id == null ? "null" : selectCate2.FirstOrDefault()?.cat_id.ParseToString());
|
||||
data += "&wx_cat_3=" + (selectCate3.FirstOrDefault()?.cat_id == null ? "null" : selectCate3.FirstOrDefault()?.cat_id.ParseToString());
|
||||
data += "&wx_cat_leaf=" + (selectCate4.FirstOrDefault()?.cat_id == null ? "null" : selectCate4.FirstOrDefault()?.cat_id.ParseToString());
|
||||
|
||||
if (selectCate1.FirstOrDefault()?.cat_id != null)
|
||||
{
|
||||
data += "&main_cat_id=" + selectCate1.FirstOrDefault()?.cat_id +
|
||||
"&main_cat_name=" + HttpUtility.UrlEncode(selectCate1.FirstOrDefault()?.name, Encoding.UTF8);
|
||||
}
|
||||
if (selectCate4.FirstOrDefault()?.cat_id != null)
|
||||
{
|
||||
data += "&cat_id=" + selectCate4.FirstOrDefault()?.cat_id +
|
||||
"&cat_name=" + HttpUtility.UrlEncode(selectCate4.FirstOrDefault()?.name, Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (string.IsNullOrEmpty(this.txtFissionWords.Text.Trim()))
|
||||
data += "&fission_words=";
|
||||
else
|
||||
data += "&fission_words=" + "fission_goods_names:" + this.txtFissionWords.Text.Trim();
|
||||
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"))
|
||||
html = GetHtml.PostUtf8(url, data);
|
||||
if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))
|
||||
{
|
||||
BaseMsgForm.ShowError("商品备注编辑失败,请重试!" + BaseRegex.GetStringJson(ref html, "msg"));
|
||||
}
|
||||
else
|
||||
{
|
||||
dbProd.notes = this.txtNotes.Text.Trim();
|
||||
dbProd.product_name = this.txtProductName.Text.Trim();
|
||||
dbProd.wx_cat_1 = selectCate1.FirstOrDefault()?.cat_id == null ? null : selectCate1.FirstOrDefault()?.cat_id.ParseToLong();
|
||||
dbProd.wx_cat_2 = selectCate2.FirstOrDefault()?.cat_id == null ? null : selectCate2.FirstOrDefault()?.cat_id.ParseToLong();
|
||||
dbProd.wx_cat_3 = selectCate3.FirstOrDefault()?.cat_id == null ? null : selectCate3.FirstOrDefault()?.cat_id.ParseToLong();
|
||||
dbProd.wx_cat_leaf = selectCate4.FirstOrDefault()?.cat_id == null ? null : selectCate4.FirstOrDefault()?.cat_id.ParseToLong();
|
||||
if (selectCate1.FirstOrDefault()?.cat_id != null)
|
||||
{
|
||||
dbProd.main_cat_id = selectCate1.FirstOrDefault()?.cat_id;
|
||||
dbProd.main_cat_name = selectCate1.FirstOrDefault()?.name;
|
||||
}
|
||||
if (selectCate4.FirstOrDefault()?.cat_id != null)
|
||||
{
|
||||
dbProd.cat_id = selectCate4.FirstOrDefault()?.cat_id;
|
||||
dbProd.cat_name = selectCate4.FirstOrDefault()?.name;
|
||||
}
|
||||
|
||||
if (string.IsNullOrEmpty(this.txtFissionWords.Text.Trim()))
|
||||
dbProd.fission_words = "";
|
||||
else
|
||||
dbProd.fission_words = "fission_goods_names:" + this.txtFissionWords.Text.Trim();
|
||||
this.Close();
|
||||
}
|
||||
}
|
||||
|
||||
private void pictureBox1_Click(object sender, EventArgs e)
|
||||
{
|
||||
ShowImgForm imgFrom = new ShowImgForm(pictureBox1.ImageLocation);
|
||||
imgFrom.ShowDialog();
|
||||
}
|
||||
|
||||
public static KJDDBProduct GetPddProductDetail(string prodDbId)
|
||||
{
|
||||
if (string.IsNullOrEmpty(prodDbId))
|
||||
return new KJDDBProduct();
|
||||
|
||||
List<KJDDBProduct> list = new List<KJDDBProduct>();
|
||||
|
||||
var url = BaseClass.BuildPDDObjString("product/get_product_detail_list");
|
||||
var data = "";
|
||||
|
||||
data = UserLogin.GetSignaturex() + "&search_db_ids=" + prodDbId;
|
||||
if (BaseClass.SaLevel > 0 || BaseClass.UserAuthority.Contains("爆款数据"))
|
||||
data += "&special_prod_type=普通商品,书籍,爆款数据";
|
||||
|
||||
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"))
|
||||
html = GetHtml.PostUtf8(url, data);
|
||||
if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
var jArr = JObject.Parse(html)["data"];
|
||||
if (jArr.Count() == 0)
|
||||
return null;
|
||||
var sProd = JsonHelper.SerializeObject(jArr);
|
||||
|
||||
try
|
||||
{
|
||||
list = JsonHelper.DeserializeJsonToList<KJDDBProduct>(sProd);
|
||||
var item = list.FirstOrDefault();
|
||||
if (item == null)
|
||||
item = new KJDDBProduct();
|
||||
return item;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
private void btnEditDetail_Click(object sender, EventArgs e)
|
||||
{
|
||||
bool canEdit = true;
|
||||
var kjdDbProd = JsonHelper.DeserializeJsonToObject<KJDDBProduct>(JsonHelper.SerializeObject(dbProdDetail));
|
||||
//{"goodsId":"2032007952082477057","warehouseGoodsId":"171C2881E8C6491CA65728683483EDE9","spuCode":"987651321321","skus":[{"skuId":"2032007952837451777","warehouseSkuId":"6B710CE261B240C38B5245006F3622A3","skuCode":"20190311002"},{"skuId":"2032007953839890434","warehouseSkuId":"2FA14AAB600541CAA72DDE7697D8D27A","skuCode":"201607090622"}]}
|
||||
if (kjdDbProd.product_get_type_text == "厂商直采")
|
||||
{
|
||||
canEdit = true;
|
||||
string convertRst = "";
|
||||
var pInfo = new PDDProdFormConverter().JstPddProdToPddConvert(out convertRst, kjdDbProd);
|
||||
if (!string.IsNullOrEmpty(convertRst))
|
||||
{
|
||||
BaseMsgForm.ShowError("商品结构获取失败 " + convertRst);
|
||||
return;
|
||||
}
|
||||
}
|
||||
if (kjdDbProd.product_get_type_text == "微信店采")
|
||||
{
|
||||
canEdit = true;
|
||||
string convertRst = "";
|
||||
var pInfo = new PDDProdFormConverter().WXProdToPddConvert(out convertRst, kjdDbProd);
|
||||
if (!string.IsNullOrEmpty(convertRst))
|
||||
{
|
||||
BaseMsgForm.ShowError("商品结构获取失败");
|
||||
return;
|
||||
}
|
||||
}
|
||||
#region 微信小店app
|
||||
if (dbProd.product_get_type_text == "微信小店")
|
||||
{
|
||||
canEdit = true;
|
||||
string convertRst = "";
|
||||
var pInfo = new PDDProdFormConverter().WXClientToPddConvert(out convertRst, kjdDbProd);
|
||||
if (!string.IsNullOrEmpty(convertRst))
|
||||
{
|
||||
BaseMsgForm.ShowError("商品结构获取失败");
|
||||
return;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
if (kjdDbProd.product_get_type_text == "1688厂家")
|
||||
{
|
||||
canEdit = true;
|
||||
string convertRst = "";
|
||||
var pInfo = new PDDProdFormConverter()._1688ClientToPddConvert(out convertRst, kjdDbProd);
|
||||
if (!string.IsNullOrEmpty(convertRst))
|
||||
{
|
||||
BaseMsgForm.ShowError("商品结构获取失败");
|
||||
return;
|
||||
}
|
||||
}
|
||||
if (kjdDbProd.product_get_type_text == "1688外部数据")
|
||||
{
|
||||
canEdit = true;
|
||||
string convertRst = "";
|
||||
var pInfo = new PDDProdFormConverter()._1688OutToPddConvert(out convertRst, kjdDbProd);
|
||||
if (!string.IsNullOrEmpty(convertRst))
|
||||
{
|
||||
BaseMsgForm.ShowError("商品结构获取失败");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
PDDDBProdEditDetailForm editDetailForm = new PDDDBProdEditDetailForm(kjdDbProd);
|
||||
if (!canEdit)
|
||||
{
|
||||
editDetailForm.btnRestoreAll.Visible = false;
|
||||
editDetailForm.btnSaveSkuLst.Visible = false;
|
||||
}
|
||||
editDetailForm.ShowDialog();
|
||||
if (editDetailForm.IsSave)
|
||||
this.Close();
|
||||
}
|
||||
|
||||
private void btnBookImg_Click(object sender, EventArgs e)
|
||||
{
|
||||
var prodJson = this.dbProd.product_json;
|
||||
var prodInfo = JsonHelper.DeserializeJsonToObject<AllBase.Model.Result.PDDResult.PDDProductInfo>(prodJson);
|
||||
if (prodInfo != null)
|
||||
{
|
||||
string publisher = "出版社:" + new List<string> () { "技术出版社", "文化出版社", "美术出版社" }[Randomx.GetId(3)];
|
||||
string isbn = "ISBN:";
|
||||
string bookName = "书名:";
|
||||
string bookPrice = "定价:" + prodInfo.detail.sku.Max(s => s.multi_price) * 0.01;
|
||||
string author = "作者:王老师";
|
||||
string publishTime = "出版时间:" + DateTime.Now.AddMonths(-3);
|
||||
string edition = "版次:1";
|
||||
string binding = "装帧:平装";
|
||||
|
||||
foreach (var propInfo in prodInfo.property.goods_properties)
|
||||
{
|
||||
if (propInfo.name.Contains("出版社名称"))
|
||||
publisher = "出版社:" + propInfo.values.FirstOrDefault()?.value;
|
||||
else if (propInfo.name.Contains("ISBN"))
|
||||
isbn = "ISBN:" + propInfo.values.FirstOrDefault()?.value;
|
||||
else if (propInfo.name.Contains("书名"))
|
||||
bookName = "书名:" + propInfo.values.FirstOrDefault()?.value;
|
||||
else if (propInfo.name.Contains("定价"))
|
||||
bookPrice = "定价:" + propInfo.values.FirstOrDefault()?.value;
|
||||
else if (propInfo.name.Contains("作者"))
|
||||
author = "作者:" + propInfo.values.FirstOrDefault()?.value;
|
||||
else if (propInfo.name.Contains("出版时间"))
|
||||
publishTime = "出版时间:" + propInfo.values.FirstOrDefault()?.value;
|
||||
else if (propInfo.name.Contains("版次"))
|
||||
edition = "版次:" + propInfo.values.FirstOrDefault()?.value;
|
||||
else if (propInfo.name.Contains("装帧"))
|
||||
binding = "装帧:" + propInfo.values.FirstOrDefault()?.value;
|
||||
}
|
||||
|
||||
var bookStr = publisher + "\r\n" + "\r\n" +
|
||||
isbn + "\r\n" + "\r\n" +
|
||||
bookName + "\r\n" + "\r\n" +
|
||||
bookPrice + "\r\n" + "\r\n" +
|
||||
author + "\r\n" + "\r\n" +
|
||||
publishTime + "\r\n" + "\r\n" +
|
||||
edition + "\r\n" + "\r\n" +
|
||||
binding;
|
||||
|
||||
var imageBg = new Bitmap(800, 800);
|
||||
using (Graphics g = Graphics.FromImage(imageBg))
|
||||
{
|
||||
g.Clear(Color.White);
|
||||
//Font font = new Font("宋体", 15, FontStyle.Bold);
|
||||
Font font = new Font("微软雅黑", 15, FontStyle.Regular);
|
||||
Brush textBrush = Brushes.Black;
|
||||
g.TextRenderingHint = System.Drawing.Text.TextRenderingHint.ClearTypeGridFit;
|
||||
RectangleF rectF = new RectangleF(80, 80, 800 - 80, 800 - 80);
|
||||
g.DrawString(bookStr, font, textBrush, rectF);
|
||||
}
|
||||
ShowImgForm imgFrom = new ShowImgForm(imageBg);
|
||||
imgFrom.ShowDialog();
|
||||
}
|
||||
}
|
||||
|
||||
private void cmbCateFilter1_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
//if (cmbSourceType.Text != "厂商直采" && cmbSourceType.Text != "1688厂家" && cmbSourceType.Text != "微信店采" && cmbSourceType.Text != "微信小店")
|
||||
//if (btnSwitchCatType.Text != "W")
|
||||
// return;
|
||||
|
||||
cmbCateFilter2.Text = "";
|
||||
cmbCateFilter2.Items.Clear();
|
||||
cmbCateFilter3.Text = "";
|
||||
cmbCateFilter3.Items.Clear();
|
||||
selectCate1 = GlobalConfig.WxCatList
|
||||
.Where(c => c.level == 1 && (";" + cmbCateFilter1.Text.Trim() + ";").Contains(";" + c.name + ";")).ToList();
|
||||
var cates2 = GlobalConfig.WxCatList.Where(c => selectCate1.Any(c1 => c.f_cat_id == c1.cat_id)).ToList();
|
||||
cmbCateFilter2.Items.AddRange(cates2.Select(c => c.name).ToArray());
|
||||
}
|
||||
|
||||
private void cmbCateFilter2_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
//if (cmbSourceType.Text != "厂商直采" && cmbSourceType.Text != "1688厂家" && cmbSourceType.Text != "微信店采" && cmbSourceType.Text != "微信小店")
|
||||
//if (btnSwitchCatType.Text != "W")
|
||||
// return;
|
||||
|
||||
cmbCateFilter3.Text = "";
|
||||
cmbCateFilter3.Items.Clear();
|
||||
selectCate1 = GlobalConfig.WxCatList
|
||||
.Where(c => c.level == 1 && (";" + cmbCateFilter1.Text.Trim() + ";").Contains(";" + c.name + ";")).ToList();
|
||||
var cates2 = GlobalConfig.WxCatList.Where(c => selectCate1.Any(c1 => c.f_cat_id == c1.cat_id)).ToList();
|
||||
selectCate2 = cates2
|
||||
.Where(c => c.level == 2 && (";" + cmbCateFilter2.Text.Trim() + ";").Contains(";" + c.name + ";")).ToList();
|
||||
var cates3 = GlobalConfig.WxCatList.Where(c => selectCate2.Any(c2 => c.f_cat_id == c2.cat_id)).ToList();
|
||||
cmbCateFilter3.Items.AddRange(cates3.Select(c => c.name).ToArray());
|
||||
}
|
||||
|
||||
private void cmbCateFilter3_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
//var cate1 = GlobalConfig.WxCatList.FirstOrDefault(c => c.level == 1 && c.name == cmbCat1.Text.Trim());
|
||||
//var cates2 = GlobalConfig.WxCatList.Where(c => c.f_cat_id == cate1?.cat_id).ToList();
|
||||
//var cate2 = cates2.FirstOrDefault(c => c.level == 2 && c.name == cmbCat1.Text.Trim());
|
||||
//var cates3 = GlobalConfig.WxCatList.Where(c => c.f_cat_id == cate2?.cat_id).ToList();
|
||||
//var cate3 = cates3.FirstOrDefault(c => c.level == 3 && c.name == cmbCat1.Text.Trim());
|
||||
|
||||
cmbCateFilter4Leaf.Text = "";
|
||||
cmbCateFilter4Leaf.Items.Clear();
|
||||
|
||||
selectCate1 = GlobalConfig.WxCatList
|
||||
.Where(c => c.level == 1 && (";" + cmbCateFilter1.Text.Trim() + ";").Contains(";" + c.name + ";")).ToList();
|
||||
var cates2 = GlobalConfig.WxCatList.Where(c => selectCate1.Any(c1 => c.f_cat_id == c1.cat_id)).ToList();
|
||||
selectCate2 = cates2
|
||||
.Where(c => c.level == 2 && (";" + cmbCateFilter2.Text.Trim() + ";").Contains(";" + c.name + ";")).ToList();
|
||||
var cates3 = GlobalConfig.WxCatList.Where(c => selectCate2.Any(c2 => c.f_cat_id == c2.cat_id)).ToList();
|
||||
selectCate3 = cates3
|
||||
.Where(c => c.level == 3 && (";" + cmbCateFilter3.Text.Trim() + ";").Contains(";" + c.name + ";")).ToList();
|
||||
var cates4 = GlobalConfig.WxCatList.Where(c => selectCate3.Any(c3 => c.f_cat_id == c3.cat_id) || selectCate3.Any(c3 => c.cat_id == c3.cat_id && c.leaf)).ToList();
|
||||
if (cates4.Count == 1)
|
||||
cmbCateFilter4Leaf.Text = cates4.FirstOrDefault().name;
|
||||
cmbCateFilter4Leaf.Items.AddRange(cates4.Select(c => c.name).ToArray());
|
||||
}
|
||||
|
||||
private void cmbCateFilter4Leaf_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
selectCate1 = GlobalConfig.WxCatList
|
||||
.Where(c => c.level == 1 && (";" + cmbCateFilter1.Text.Trim() + ";").Contains(";" + c.name + ";")).ToList();
|
||||
var cates2 = GlobalConfig.WxCatList.Where(c => selectCate1.Any(c1 => c.f_cat_id == c1.cat_id)).ToList();
|
||||
selectCate2 = cates2
|
||||
.Where(c => c.level == 2 && (";" + cmbCateFilter2.Text.Trim() + ";").Contains(";" + c.name + ";")).ToList();
|
||||
var cates3 = GlobalConfig.WxCatList.Where(c => selectCate2.Any(c2 => c.f_cat_id == c2.cat_id)).ToList();
|
||||
selectCate3 = cates3
|
||||
.Where(c => c.level == 3 && (";" + cmbCateFilter3.Text.Trim() + ";").Contains(";" + c.name + ";")).ToList();
|
||||
var cates4 = GlobalConfig.WxCatList.Where(c => selectCate3.Any(c3 => c.f_cat_id == c3.cat_id) || selectCate3.Any(c3 => c.cat_id == c3.cat_id && c.leaf)).ToList();
|
||||
selectCate4 = cates4
|
||||
.Where(c => c.leaf && (";" + cmbCateFilter4Leaf.Text.Trim() + ";").Contains(";" + c.name + ";")).ToList();
|
||||
var selCat = selectCate4.FirstOrDefault();
|
||||
lblBound.Text ="保证金:" + GlobalConfig.WxCatBoundList.FirstOrDefault(cb => cb.leaf_id == selCat?.cat_id.ParseToLong())?.cat_bound;
|
||||
}
|
||||
|
||||
private void cmbCateFilter1_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void cmbCateFilter2_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void cmbCateFilter3_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void cmbCateFilter4Leaf_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void btnDelCate_Click(object sender, EventArgs e)
|
||||
{
|
||||
cmbCateFilter1.Text = "";
|
||||
txtCateSearch.WatermarkText = "(未识别)";
|
||||
//cmbCateFilter2.Text = "";
|
||||
//cmbCateFilter3.Text = "";
|
||||
//cmbCateFilter4Leaf.Text = "";
|
||||
}
|
||||
|
||||
|
||||
private void txtCateSearch_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
var searchTxt = txtCateSearch.Text.Trim();
|
||||
List<WxCatInfo> wxCatList = new List<WxCatInfo>();
|
||||
if (!string.IsNullOrEmpty(searchTxt))
|
||||
{
|
||||
wxCatList.AddRange(GlobalConfig.WxCatList.Where(c => c.leaf && c.name.Contains(searchTxt)));
|
||||
wxCatList.AddRange(GlobalConfig.WxCatList.Where(c => c.level == 3 && !c.leaf && c.name.Contains(searchTxt)));
|
||||
wxCatList.AddRange(GlobalConfig.WxCatList.Where(c => c.level == 2 && !c.leaf && c.name.Contains(searchTxt)));
|
||||
wxCatList.AddRange(GlobalConfig.WxCatList.Where(c => c.level == 1 && !c.leaf && c.name.Contains(searchTxt)));
|
||||
}
|
||||
wxCatList = wxCatList.Take(50).ToList();
|
||||
|
||||
lstSelectCateList.Items.Clear();
|
||||
foreach (var cate in wxCatList)
|
||||
{
|
||||
var cateTmp = cate;
|
||||
string cateName = cateTmp.name;
|
||||
var parent = GlobalConfig.WxCatList.FirstOrDefault(c => c.cat_id == cateTmp.f_cat_id);
|
||||
while (parent != null)
|
||||
{
|
||||
cateTmp = parent;
|
||||
cateName = cateTmp.name + " >> " + cateName;
|
||||
parent = GlobalConfig.WxCatList.FirstOrDefault(c => c.cat_id == cateTmp.f_cat_id);
|
||||
}
|
||||
string bountStr = " 保证金:" + GlobalConfig.WxCatBoundList.FirstOrDefault(cb => cb.leaf_id == cate.cat_id.ParseToLong())?.cat_bound;
|
||||
lstSelectCateList.Items.Add(cateName + bountStr);
|
||||
}
|
||||
|
||||
if (lstSelectCateList.Items.Count > 0)
|
||||
{
|
||||
lstSelectCateList.Visible = true;
|
||||
btnCloseLst.Visible = true;
|
||||
lstSelectCateList.BringToFront();
|
||||
btnCloseLst.BringToFront();
|
||||
}
|
||||
else
|
||||
{
|
||||
lstSelectCateList.Visible = false;
|
||||
btnCloseLst.Visible = false;
|
||||
}
|
||||
}
|
||||
|
||||
private void lstSelectCateList_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
var cateStr = lstSelectCateList.SelectedItem.ParseToString().Split(new string[] { "保证金" }, StringSplitOptions.RemoveEmptyEntries).FirstOrDefault()?.Trim();
|
||||
var cateItems = cateStr.Split(new string[] { ">", " " }, StringSplitOptions.RemoveEmptyEntries).ToList();
|
||||
if (cateItems.Count > 0)
|
||||
cmbCateFilter1.Text = cateItems[0];
|
||||
if (cateItems.Count > 1)
|
||||
cmbCateFilter2.Text = cateItems[1];
|
||||
if (cateItems.Count > 2)
|
||||
cmbCateFilter3.Text = cateItems[2];
|
||||
if (cateItems.Count > 3)
|
||||
cmbCateFilter4Leaf.Text = cateItems[3];
|
||||
|
||||
txtCateSearch.WatermarkText = lstSelectCateList.SelectedItem.ParseToString();
|
||||
|
||||
lstSelectCateList.Visible = false;
|
||||
btnCloseLst.Visible = false;
|
||||
}
|
||||
|
||||
private void btnCloseLst_Click(object sender, EventArgs e)
|
||||
{
|
||||
lstSelectCateList.Visible = false;
|
||||
btnCloseLst.Visible = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,298 @@
|
||||
<?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>
|
||||
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
AAABAAEAgIAQYAAAAABoKAAAFgAAACgAAACAAAAAAAEAAAEABAAAAAAAACgAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAAACAAACAAAAAgIAAgAAAAIAAgACAgAAAgICAAMDAwAAAAP8AAP8AAAD//wD/AAAA/wD/AP//
|
||||
AAD///8AAAAAAAAAAAAAAAAABEZmbMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMZmZkQAAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAZszMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM
|
||||
zMxmAAAAAAAAAAAAAAAAAAAAAAAAAAAEbMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM
|
||||
zMzMzMzMzMZAAAAAAAAAAAAAAAAAAAAAAAAEbMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM
|
||||
zMzMzMzMzMzMzMzMxkAAAAAAAAAAAAAAAAAAAAAEbMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM
|
||||
zMzMzMzMzMzMzMzMzMzMzMzGQAAAAAAAAAAAAAAAAAAAbMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM
|
||||
zMzMzMzMzMzMzMzMzMzMzMzMzMzMzMYAAAAAAAAAAAAAAAAARszMzMzMzMzMzMzMzMzMzMzMzMzMzMzM
|
||||
zMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMZAAAAAAAAAAAAAAABszMzMzMzMzMzMzMzMzMzMzMzMzM
|
||||
zMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMxgAAAAAAAAAAAAAGzMzMzMzMzMzMzMzMzMzMzM
|
||||
zMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMxgAAAAAAAAAAAAbMzMzMzMzMzMzMzMzM
|
||||
zMzMzMzMzMx3d4iIiIiIiIh3fMzMzMzMzMzMzMzMzMzMzMzMzMzMzMxgAAAAAAAAAABszMzMzMzMzMzM
|
||||
zMzMzMzMzMzHeIiIiIj/////////iIiIiId8zMzMzMzMzMzMzMzMzMzMzMzMxgAAAAAAAAAGzMzMzMzM
|
||||
zMzMzMzMzMzMzMeIiI/////////////////////4iIh8zMzMzMzMzMzMzMzMzMzMzMxgAAAAAAAATMzM
|
||||
zMzMzMzMzMzMzMzMzHiI////////////////////////////iIfMzMzMzMzMzMzMzMzMzMzMxAAAAAAA
|
||||
AGzMzMzMzMzMzMzMzMzMx3iP///////////////////////////////4iHzMzMzMzMzMzMzMzMzMzMYA
|
||||
AAAAAAbMzMzMzMzMzMzMzMzMx3iP//////////////////////////////////+IfMzMzMzMzMzMzMzM
|
||||
zMzMYAAAAABMzMzMzMzMzMzMzMzMx3iP/////////////////////////////////////4h8zMzMzMzM
|
||||
zMzMzMzMzMQAAAAAbMzMzMzMzMzMzMzMzHiP////////////////////////////////////////h3zM
|
||||
zMzMzMzMzMzMzMzGAAAABMzMzMzMzMzMzMzMzHiP////////////////////////////////////////
|
||||
//iHzMzMzMzMzMzMzMzMzEAAAAbMzMzMzMzMzMzMzMeI////////////////////////////////////
|
||||
////////+IfMzMzMzMzMzMzMzMxgAABMzMzMzMzMzMzMzMx4////////////////////////////////
|
||||
//////////////+IfMzMzMzMzMzMzMzMxAAAbMzMzMzMzMzMzMzHj///////////////////////////
|
||||
/////////////////////4fMzMzMzMzMzMzMzMYAAMzMzMzMzMzMzMzMeP//////////////////////
|
||||
///////////////////////////4fMzMzMzMzMzMzMzMAAbMzMzMzMzMzMzMx4//////////////////
|
||||
/////////////////////////////////4fMzMzMzMzMzMzMzGAGzMzMzMzMzMzMzHj/////////////
|
||||
///////////////////////////////////////4fMzMzMzMzMzMzMxgDMzMzMzMzMzMzMyI////////
|
||||
/////////////////////////////////////////////4zMzMzMzMzMzMzMwEzMzMzMzMzMzMzHj///
|
||||
//////////////////////////////////////////////////+HzMzMzMzMzMzMzMRszMzMzMzMzMzM
|
||||
eP//////////////////////////////////////////////////////+HzMzMzMzMzMzMzGbMzMzMzM
|
||||
zMzMzHj///////////////////////////////////////////////////////+MzMzMzMzMzMzMxmzM
|
||||
zMzMzMzMzMyP////+IiP////////////////////////////////////////+I//////h8zMzMzMzMzM
|
||||
zMZszMzMzMzMzMzHj////4iIiI//////////////////////////////////////+IiIj/////jMzMzM
|
||||
zMzMzMzGbMzMzMzMzMzMyP////iIiIiI/////////////////////////////////////4iIiIj////4
|
||||
fMzMzMzMzMzMxszMzMzMzMzMzHj////4iIiIiP////////////////////////////////////+IiIiI
|
||||
j////4zMzMzMzMzMzMbMzMzMzMzMzMx4////iIiIiIj////////////////////////////////////4
|
||||
iIiIiI////+HzMzMzMzMzMzMzMzMzMzMzMzMj////4iIiIiI//////////////+IiP//iI//////////
|
||||
////+IiIiIiP////h8zMzMzMzMzMzMzMzMzMzMzMzI/////4iIiIiP/////////////4d3eIiIeIj///
|
||||
//////////+IiIiIj/////jMzMzMzMzMzMzMzMzMzMzMzMyP////+IiIiIj/////////////iIiId3eI
|
||||
iI//////////////iIiIiI/////4zMzMzMzMzMzMzMzMzMzMzMzHj/////+IiIiP/////////////4//
|
||||
/4d4j/+P//////////////iIiIj/////+MzMzMzMzMzMzMzMzMzMzMzMx4//////+IiP////////////
|
||||
///////4j///////////////////iIiP//////jMzMzMzMzMzMzMzMzMzMzMzMeP//////////+IiIj/
|
||||
///////////////////////////////////////////4fMzMzMzMzMzMzMzMzMzMzMzH//////////+H
|
||||
fMx8eP//////////////////////////iId3iP//////////+HzMzMzMzMzMzMzMzMzMzMzMyP//////
|
||||
///4fMzHh8eP////////////////////////+MzMzMd4//////////h8zMzMzMzMzMzMzMzMzMzMzMf/
|
||||
////////+MzMePjMeP///////////////////////4zMzMeHx4/////////4fMzMzMzMzMzMzMzMzMzM
|
||||
zMzH/////////4fMd3eHzMeP//////////////////////iMzMzIiHx4////////+HzMzMzMzMzMzMzM
|
||||
zMzMzMzMx/////////+Hx4iIfMzMj//////////////////////4h3d8x4h8yP////////jMzMzMzMzM
|
||||
zMzMzMzMzMzMzMeP////////+HiP+IfMzI//////////////////////+HiIiHd3zHj////////4zMzM
|
||||
zMzMzMzMzMzMzMzMzMzHj/////////h4//+HzMeP//////////////////////h4//h8zMyP////////
|
||||
+MzMzMzMzMzMzMzMzMzMzMzMzI/////////4iP//h8x4///////////////////////4j//4fMzHj///
|
||||
//////jMzMzMzMzMzMzMzMzMzMzMzMyP///////4iIiP+IfHj///////////////////////+Ij/+HzM
|
||||
eP/////////4zMzMzMzMzMzMzMzMzMzMzMzMj///////iIiIiIh3eP////////////////////////+I
|
||||
j4h8x3iI////////h8zMzMzMzMzMzMzMzMzMzMzMzH//////+Hj///iIiI//////////////////////
|
||||
/////4iId4iIiIj//////4zMzMzMzMzMzMzMzMzMzMzMzMx4//////iP////iP//////////////////
|
||||
/////////////4iP//iI//////+MzMzMzMzMzMzMzMzMzMzMzMzMyP//////////+I//////////////
|
||||
///////////////////4eP//iP//////jMzMzMzMzMzMzMzMzMzMzMzMzMj///////////iP////////
|
||||
/////////////////////////4j/////////+HzMzMzMzMzMzMzMzMzMzMzMzMzHj///////////////
|
||||
//////////////////////////////+I//////////jMzMzMzMzMzMzMzMzMzMzMzMzMzI//////////
|
||||
//////////////////////////////////////////////+HzMzMzMzMzMzMzMzMzMzMzMzMzMyP////
|
||||
////////////////////////////////////////////////////h8zMzMzMzMzMzMzMzMzMzMzMzMzM
|
||||
eP///////////////////////////////////////////////////////4zMzMzMzMzMzMzMzMzMzMzM
|
||||
zMzMzMj///////////////////////////////////////////////////////h8zMzMzMzMzMzMzMzM
|
||||
zMzMzMzMzMzHj//////////////////////////////////////////////////////4zMzMzMzMzMzM
|
||||
zMzMzMzMzMzMzMzMzI//////////////////////////////////////////////////////h8zMzMzM
|
||||
zMzMzMzMzMzMzMzMzMzMzMx4////////////////////////////////////////////////////+HzM
|
||||
zMzMzMzMzMzMzMzMzMzMzMzMzMzMyI////+I////////////////////////////////////////////
|
||||
//h8zMzMzMzMzMzMzMzMzMzMzMzMzMzMzMeP////+Ij/////////////////////////////////////
|
||||
//////+HzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMeP////+IiIiIj//////////////////////////4
|
||||
////iI/////4fMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMiP/////4iIiP//////////////////////
|
||||
////+IiIiIj/////iHzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzHiP//////////////////////////
|
||||
///////////4iIj//////4fMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzHiP////////////////////
|
||||
//////////////////////////h8zMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzHiP//////////////
|
||||
//////////////////////////////+HzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzHj/////////
|
||||
///////////////////////////////////4fMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMeP////
|
||||
////////////////////////////////////////+MzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzI
|
||||
j/////////////////////////////////////////////h8zMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM
|
||||
zMzMeP//////////////////////////////////////////////h8zMzMzMzMzMzMzMzMzMzMzMzMzM
|
||||
zMzMzMzMx4////////+I//////////////////////////////////////jMzMzMzMzMzMzMzMzMzMzM
|
||||
zMzMzMzMzMzMzMeP///////4iIj///////////////////////////iP///////4fMzMzMzMzMzMzMzM
|
||||
zMzMzMzMzMzMzMzMzMx4////////iIiIiP///////////////////////4iIiP///////4zMzMzMzMzM
|
||||
zMzMzMzMzMzMzMzMzMzMzMzMj///////+IiIiIiI////////////////////+IiIiIj///////+HzMzM
|
||||
zMzMzMzMzMzMzMzMzMzMzMzMzMzMx4////////iIiIiIj////////////////////4iIiIiIj///////
|
||||
+MzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMj///////+IiIiIiI////////////////////+IiIiIiI//
|
||||
//////h8zMzMzMzMzMzMzMzMzMzMzMzMzMzMzMx4////////iIiIiIiP////////////////////iIiI
|
||||
iIiI///////4fMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMj///////+IiIiIiIj/////iIiIiIiIj/////
|
||||
/4iIiIiIiP///////4zMzMzMzMzMzMzMzMzMzMzMzMzMzMzMx4////////iIiIiIiI/////4zMzMzMzM
|
||||
j/////+IiIiIiIiP//////+HzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMeP//////+IiIiIiIj/////+MzM
|
||||
zMzMzI//////+IiIiIiIj///////+MzMzMzMzMzMzMzMzMzMzMzMzMzMzMzI////////iIiIiIiI////
|
||||
//jMzMzMzMyP//////iIiIiIiIj///////jMzMzMzMzMzMzMzMzMzMzMzMzMzMzMeP///////4iIiIiI
|
||||
iP/////4zMzMzMzMj//////4iIiIiIiI///////4fMzMzMzMzMzMzMzMzMzMzMzMzMzMzI////////iI
|
||||
iIiIiI//////+MzMzMzMzI//////+IiIiIiIiP///////4zMzMzMzMzMzMzMzMzMzMzMzMzMzMyP////
|
||||
///4iIiIiIiP//////fMzMzMzMyP//////+IiIiIiIj///////+MzMzMzMzMzMzMzMzMzMzMzMzMzMzH
|
||||
j///////+IiIiIiI//////+HzMzMzMzMeP//////iIiIiIiIj///////jMzMzMzMzMzMzMzMzMzMzMzM
|
||||
zMzMyP////////iIiIiIiP//////jMzMzMzMzHj///////iIiIiIiI///////4fMzMzMzMzMzMzMzMzM
|
||||
zMzMzMzMzMj///////+IiIiIiI///////4zMzMzMzMzI///////4iIiIiIiI///////3zMzMzMzMzMzM
|
||||
zMzMzMzMzMzMzMzI////////iIiIiIiP//////+MzMzMzMzMyP//////+IiIiIiIiP//////+MzMzMzM
|
||||
zMzMzMzMzMzMzMzMzMzMeP///////4iIiIiIj///////jMzMzMzMzMj///////+IiIiIiIj///////jM
|
||||
zMzMzMzMzMzMzMzMzMzMzMzMzI////////+IiIiIiP//////+HzMzMzMzMzHj///////iIiIiIiI////
|
||||
///4zMzMzMzMzMzMzMzMzMzMzMzMzMyP////////iIiIiI////////jMzMzMzMzMzI///////4iIiIiI
|
||||
iI//////+MzMzMzMzMzMzMzMzMzMzMzMzMzMj////////4iIiIiP///////4zMzMzMzMzMyP///////4
|
||||
iIiIiIiP//////jMzMzMzMzMzMzMzMzMzMzMzMzMzI////////+IiIiI////////h8zMzMzMzMzMeP//
|
||||
/////4iIiIiIj//////4fMzMzMzMzMzMzMzMzMzMzMzMzMyP////////iIiIj////////4fMzMzMzMzM
|
||||
zHj///////+IiIiIiI//////+HzMzMzMzMzMzMzMzMzMzMzMzMzHj/////////iIiP////////+MzMzM
|
||||
zMzMzMzI////////+IiIiIiP//////h8zMzMzMzMzMzMxmzMzMzMzMzMx4/////////4iP/////////4
|
||||
fMzMzMzMzMzMx4////////+IiIiIj//////4fMzMzMzMzMzMzMZszMzMzMzMzMeP////////////////
|
||||
////+MzMzMzMzMzMzMyP////////iIiIiP//////+HzMzMzMzMzMzMzGbMzMzMzMzMzH////////////
|
||||
//////////fMzMzMzMzMzMzMeP////////iIiIj///////98zMzMzMzMzMzMxmzMzMzMzMzMyP//////
|
||||
//////////////+HzMzMzMzMzMzMzHj/////////+IiP////////jMzMzMzMzMzMzMZszMzMzMzMzMj/
|
||||
////////////////////jMzMzMzMzMzMzMzIj////////////////////4zMzMzMzMzMzMzGTMzMzMzM
|
||||
zMzH////////////////////+HzMzMzMzMzMzMzMx4////////////////////+MzMzMzMzMzMzMxAzM
|
||||
zMzMzMzMx/////////////////////jMzMzMzMzMzMzMzMyI///////////////////4fMzMzMzMzMzM
|
||||
zMAGzMzMzMzMzMeP//////////////////+HzMzMzMzMzMzMzMzMeP//////////////////+HzMzMzM
|
||||
zMzMzMxgBszMzMzMzMzHj//////////////////4fMzMzMzMzMzMzMzMzMeP//////////////////h8
|
||||
zMzMzMzMzMzMYADMzMzMzMzMzI//////////////////+HzMzMzMzMzMzMzMzMzHj///////////////
|
||||
///4zMzMzMzMzMzMzAAAbMzMzMzMzMyP/////////////////4fMzMzMzMzMzMzMzMzMzHj/////////
|
||||
////////+MzMzMzMzMzMzMYAAEzMzMzMzMzMj/////////////////+MzMzMzMzMzMzMzMzMzMzIj///
|
||||
/////////////4fMzMzMzMzMzMzEAAAGzMzMzMzMzHj////////////////4fMzMzMzMzMzMzMzMzMzM
|
||||
x4////////////////+MzMzMzMzMzMzMYAAABMzMzMzMzMx4////////////////h8zMzMzMzMzMzMzM
|
||||
zMzMzMx4///////////////4fMzMzMzMzMzMzEAAAABszMzMzMzMx4//////////////+HzMzMzMzMzM
|
||||
zMzMzMzMzMzMx4//////////////+MzMzMzMzMzMzMYAAAAATMzMzMzMzMyP/////////////4fMzMzM
|
||||
zMzMzMzMzMzMzMzMzMeI/////////////4fMzMzMzMzMzMzEAAAAAAbMzMzMzMzMeP////////////h8
|
||||
zMzMzMzMzMzMzMzMzMzMzMzMeI////////////h8zMzMzMzMzMzMYAAAAAAAbMzMzMzMzMeP////////
|
||||
//iHzMzMzMzMzMzMzMzMzMzMzMzMzMyI//////////+HzMzMzMzMzMzMxgAAAAAAAEzMzMzMzMzMeP//
|
||||
//////iHfMzMzMzMzMzMzMzMzMzMzMzMzMzMx4/////////4fMzMzMzMzMzMzMQAAAAAAAAGzMzMzMzM
|
||||
zMeI//////iHfMzMzMzMzMzMzMzMzMzMzMzMzMzMzMx4j//////4h8zMzMzMzMzMzMxgAAAAAAAAAGzM
|
||||
zMzMzMzMx4iIiIiHzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzHiIj/+Ih3zMzMzMzMzMzMzGAAAAAAAA
|
||||
AAAGzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMx3iId8zMzMzMzMzMzMzMYAAA
|
||||
AAAAAAAAAGzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM
|
||||
xgAAAAAAAAAAAAAGzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM
|
||||
zMzMzGAAAAAAAAAAAAAAAEbMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM
|
||||
zMzMzMzMzGQAAAAAAAAAAAAAAAAAbMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM
|
||||
zMzMzMzMzMzMzMYAAAAAAAAAAAAAAAAAAARszMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM
|
||||
zMzMzMzMzMzMzMzMzMZAAAAAAAAAAAAAAAAAAAAABGzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM
|
||||
zMzMzMzMzMzMzMzMzMzMzMZAAAAAAAAAAAAAAAAAAAAAAAAEbMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM
|
||||
zMzMzMzMzMzMzMzMzMzMzMzMzMZAAAAAAAAAAAAAAAAAAAAAAAAAAABmzMzMzMzMzMzMzMzMzMzMzMzM
|
||||
zMzMzMzMzMzMzMzMzMzMzMzMzMzMzGYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAARGZmzMzMzMzMzMzMzM
|
||||
zMzMzMzMzMzMzMzMzMzMzMzMzMzMzMZmZEAAAAAAAAAAAAAAAAD////+AAAAAAAAAAD/////////AAAA
|
||||
AAAAAAAAAP//////+AAAAAAAAAAAAAAf/////+AAAAAAAAAAAAAAB/////+AAAAAAAAAAAAAAAH////+
|
||||
AAAAAAAAAAAAAAAAf////AAAAAAAAAAAAAAAAD////AAAAAAAAAAAAAAAAAP///gAAAAAAAAAAAAAAAA
|
||||
B///wAAAAAAAAAAAAAAAAAP//4AAAAAAAAAAAAAAAAAB//8AAAAAAAAAAAAAAAAAAP/+AAAAAAAAAAAA
|
||||
AAAAAAB//gAAAAAAAAAAAAAAAAAAf/wAAAAAAAAAAAAAAAAAAD/4AAAAAAAAAAAAAAAAAAAf+AAAAAAA
|
||||
AAAAAAAAAAAAH/AAAAAAAAAAAAAAAAAAAA/wAAAAAAAAAAAAAAAAAAAP4AAAAAAAAAAAAAAAAAAAB+AA
|
||||
AAAAAAAAAAAAAAAAAAfAAAAAAAAAAAAAAAAAAAADwAAAAAAAAAAAAAAAAAAAA8AAAAAAAAAAAAAAAAAA
|
||||
AAOAAAAAAAAAAAAAAAAAAAABgAAAAAAAAAAAAAAAAAAAAYAAAAAAAAAAAAAAAAAAAAGAAAAAAAAAAAAA
|
||||
AAAAAAABgAAAAAAAAAAAAAAAAAAAAYAAAAAAAAAAAAAAAAAAAAGAAAAAAAAAAAAAAAAAAAABAAAAAAAA
|
||||
AAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABgAAAAAAAAAAAAAAAAAAAAYAAAAAAAAAAAAAAAAAA
|
||||
AAGAAAAAAAAAAAAAAAAAAAABgAAAAAAAAAAAAAAAAAAAAYAAAAAAAAAAAAAAAAAAAAGAAAAAAAAAAAAA
|
||||
AAAAAAABgAAAAAAAAAAAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAPAAAAAAAAAAAAAAAAAAAADwAAAAAAA
|
||||
AAAAAAAAAAAAA+AAAAAAAAAAAAAAAAAAAAfgAAAAAAAAAAAAAAAAAAAH8AAAAAAAAAAAAAAAAAAAD/AA
|
||||
AAAAAAAAAAAAAAAAAA/4AAAAAAAAAAAAAAAAAAAf+AAAAAAAAAAAAAAAAAAAH/wAAAAAAAAAAAAAAAAA
|
||||
AD/+AAAAAAAAAAAAAAAAAAB//gAAAAAAAAAAAAAAAAAAf/8AAAAAAAAAAAAAAAAAAP//gAAAAAAAAAAA
|
||||
AAAAAAH//8AAAAAAAAAAAAAAAAAD///gAAAAAAAAAAAAAAAAB///8AAAAAAAAAAAAAAAAA////wAAAAA
|
||||
AAAAAAAAAAA////+AAAAAAAAAAAAAAAAf////4AAAAAAAAAAAAAAAf/////gAAAAAAAAAAAAAAf/////
|
||||
+AAAAAAAAAAAAAAf//////8AAAAAAAAAAAAA/////////gAAAAAAAAAAf////w==
|
||||
</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -478,7 +478,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
this.tableLayoutPanel1.Controls.Add(this.cmbWxCat, 9, 0);
|
||||
this.tableLayoutPanel1.Controls.Add(this.lblWxSafe, 10, 0);
|
||||
this.tableLayoutPanel1.Controls.Add(this.cmbWxSafe, 11, 0);
|
||||
this.tableLayoutPanel1.Location = new System.Drawing.Point(4, 4);
|
||||
this.tableLayoutPanel1.Location = new System.Drawing.Point(4, 6);
|
||||
this.tableLayoutPanel1.Name = "tableLayoutPanel1";
|
||||
this.tableLayoutPanel1.RowCount = 3;
|
||||
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 33.33444F));
|
||||
@@ -489,24 +489,25 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
//
|
||||
// cmbHasFission
|
||||
//
|
||||
this.cmbHasFission.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.cmbHasFission.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.cmbHasFission.FormattingEnabled = true;
|
||||
this.cmbHasFission.Items.AddRange(new object[] {
|
||||
"",
|
||||
"是",
|
||||
"否"});
|
||||
this.cmbHasFission.Location = new System.Drawing.Point(889, 42);
|
||||
this.cmbHasFission.Location = new System.Drawing.Point(883, 38);
|
||||
this.cmbHasFission.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
|
||||
this.cmbHasFission.Name = "cmbHasFission";
|
||||
this.cmbHasFission.Size = new System.Drawing.Size(100, 25);
|
||||
this.cmbHasFission.Size = new System.Drawing.Size(106, 25);
|
||||
this.cmbHasFission.TabIndex = 982;
|
||||
//
|
||||
// label8
|
||||
//
|
||||
this.label8.Anchor = System.Windows.Forms.AnchorStyles.Left;
|
||||
this.label8.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.label8.AutoSize = true;
|
||||
this.label8.Location = new System.Drawing.Point(829, 44);
|
||||
this.label8.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0);
|
||||
this.label8.Location = new System.Drawing.Point(827, 42);
|
||||
this.label8.Margin = new System.Windows.Forms.Padding(3, 7, 0, 0);
|
||||
this.label8.Name = "label8";
|
||||
this.label8.Size = new System.Drawing.Size(56, 17);
|
||||
this.label8.TabIndex = 885;
|
||||
@@ -514,19 +515,22 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
//
|
||||
// txtCatBoundLessThan
|
||||
//
|
||||
this.txtCatBoundLessThan.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.txtCatBoundLessThan.Location = new System.Drawing.Point(724, 41);
|
||||
this.txtCatBoundLessThan.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.txtCatBoundLessThan.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.txtCatBoundLessThan.Font = new System.Drawing.Font("微软雅黑", 10F);
|
||||
this.txtCatBoundLessThan.Location = new System.Drawing.Point(715, 38);
|
||||
this.txtCatBoundLessThan.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
|
||||
this.txtCatBoundLessThan.Name = "txtCatBoundLessThan";
|
||||
this.txtCatBoundLessThan.Size = new System.Drawing.Size(99, 23);
|
||||
this.txtCatBoundLessThan.Size = new System.Drawing.Size(102, 25);
|
||||
this.txtCatBoundLessThan.TabIndex = 883;
|
||||
this.txtCatBoundLessThan.Text = "100000";
|
||||
//
|
||||
// chkCatBoundLessThan
|
||||
//
|
||||
this.chkCatBoundLessThan.Anchor = System.Windows.Forms.AnchorStyles.Left;
|
||||
this.chkCatBoundLessThan.Location = new System.Drawing.Point(657, 42);
|
||||
this.chkCatBoundLessThan.Margin = new System.Windows.Forms.Padding(10, 3, 3, 3);
|
||||
this.chkCatBoundLessThan.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.chkCatBoundLessThan.Location = new System.Drawing.Point(651, 40);
|
||||
this.chkCatBoundLessThan.Margin = new System.Windows.Forms.Padding(3, 5, 0, 0);
|
||||
this.chkCatBoundLessThan.Name = "chkCatBoundLessThan";
|
||||
this.chkCatBoundLessThan.Size = new System.Drawing.Size(64, 21);
|
||||
this.chkCatBoundLessThan.TabIndex = 882;
|
||||
@@ -536,19 +540,22 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
//
|
||||
// txtSPU
|
||||
//
|
||||
this.txtSPU.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.txtSPU.Location = new System.Drawing.Point(52, 6);
|
||||
this.txtSPU.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.txtSPU.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.txtSPU.Font = new System.Drawing.Font("微软雅黑", 10F);
|
||||
this.txtSPU.Location = new System.Drawing.Point(52, 3);
|
||||
this.txtSPU.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
|
||||
this.txtSPU.Name = "txtSPU";
|
||||
this.txtSPU.Size = new System.Drawing.Size(99, 23);
|
||||
this.txtSPU.Size = new System.Drawing.Size(102, 25);
|
||||
this.txtSPU.TabIndex = 434;
|
||||
//
|
||||
// label5
|
||||
//
|
||||
this.label5.Anchor = System.Windows.Forms.AnchorStyles.Left;
|
||||
this.label5.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.label5.AutoSize = true;
|
||||
this.label5.Location = new System.Drawing.Point(3, 9);
|
||||
this.label5.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0);
|
||||
this.label5.Location = new System.Drawing.Point(3, 7);
|
||||
this.label5.Margin = new System.Windows.Forms.Padding(3, 7, 0, 0);
|
||||
this.label5.Name = "label5";
|
||||
this.label5.Size = new System.Drawing.Size(49, 17);
|
||||
this.label5.TabIndex = 435;
|
||||
@@ -556,19 +563,22 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
//
|
||||
// txtProdName
|
||||
//
|
||||
this.txtProdName.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.txtProdName.Location = new System.Drawing.Point(217, 6);
|
||||
this.txtProdName.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.txtProdName.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.txtProdName.Font = new System.Drawing.Font("微软雅黑", 10F);
|
||||
this.txtProdName.Location = new System.Drawing.Point(220, 3);
|
||||
this.txtProdName.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
|
||||
this.txtProdName.Name = "txtProdName";
|
||||
this.txtProdName.Size = new System.Drawing.Size(99, 23);
|
||||
this.txtProdName.Size = new System.Drawing.Size(102, 25);
|
||||
this.txtProdName.TabIndex = 427;
|
||||
//
|
||||
// label3
|
||||
//
|
||||
this.label3.Anchor = System.Windows.Forms.AnchorStyles.Left;
|
||||
this.label3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.label3.AutoSize = true;
|
||||
this.label3.Location = new System.Drawing.Point(157, 9);
|
||||
this.label3.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0);
|
||||
this.label3.Location = new System.Drawing.Point(160, 7);
|
||||
this.label3.Margin = new System.Windows.Forms.Padding(3, 7, 0, 0);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new System.Drawing.Size(60, 17);
|
||||
this.label3.TabIndex = 428;
|
||||
@@ -576,10 +586,10 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
//
|
||||
// label2
|
||||
//
|
||||
this.label2.Anchor = System.Windows.Forms.AnchorStyles.Right;
|
||||
this.label2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Location = new System.Drawing.Point(9, 44);
|
||||
this.label2.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0);
|
||||
this.label2.Location = new System.Drawing.Point(9, 42);
|
||||
this.label2.Margin = new System.Windows.Forms.Padding(3, 7, 0, 0);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(43, 17);
|
||||
this.label2.TabIndex = 426;
|
||||
@@ -587,16 +597,17 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
//
|
||||
// cmbCat1
|
||||
//
|
||||
this.cmbCat1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.cmbCat1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.cmbCat1.DefaultText = "全部";
|
||||
this.cmbCat1.DropDownHeight = 1;
|
||||
this.cmbCat1.DropDownWidth = 1;
|
||||
this.cmbCat1.FormattingEnabled = true;
|
||||
this.cmbCat1.IntegralHeight = false;
|
||||
this.cmbCat1.Location = new System.Drawing.Point(52, 40);
|
||||
this.cmbCat1.Location = new System.Drawing.Point(52, 38);
|
||||
this.cmbCat1.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
|
||||
this.cmbCat1.Name = "cmbCat1";
|
||||
this.cmbCat1.Size = new System.Drawing.Size(99, 25);
|
||||
this.cmbCat1.Size = new System.Drawing.Size(102, 25);
|
||||
this.cmbCat1.TabIndex = 805;
|
||||
this.cmbCat1.Text = "全部";
|
||||
this.cmbCat1.SelectedIndexChanged += new System.EventHandler(this.cmbCat1_SelectedIndexChanged);
|
||||
@@ -604,19 +615,22 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
//
|
||||
// txtCatBoundMoreThan
|
||||
//
|
||||
this.txtCatBoundMoreThan.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.txtCatBoundMoreThan.Location = new System.Drawing.Point(545, 41);
|
||||
this.txtCatBoundMoreThan.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.txtCatBoundMoreThan.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.txtCatBoundMoreThan.Font = new System.Drawing.Font("微软雅黑", 10F);
|
||||
this.txtCatBoundMoreThan.Location = new System.Drawing.Point(543, 38);
|
||||
this.txtCatBoundMoreThan.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
|
||||
this.txtCatBoundMoreThan.Name = "txtCatBoundMoreThan";
|
||||
this.txtCatBoundMoreThan.Size = new System.Drawing.Size(99, 23);
|
||||
this.txtCatBoundMoreThan.Size = new System.Drawing.Size(102, 25);
|
||||
this.txtCatBoundMoreThan.TabIndex = 882;
|
||||
this.txtCatBoundMoreThan.Text = "1000";
|
||||
//
|
||||
// chkCatBoundMoreThan
|
||||
//
|
||||
this.chkCatBoundMoreThan.Anchor = System.Windows.Forms.AnchorStyles.Left;
|
||||
this.chkCatBoundMoreThan.Location = new System.Drawing.Point(478, 42);
|
||||
this.chkCatBoundMoreThan.Margin = new System.Windows.Forms.Padding(10, 3, 3, 3);
|
||||
this.chkCatBoundMoreThan.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.chkCatBoundMoreThan.Location = new System.Drawing.Point(479, 40);
|
||||
this.chkCatBoundMoreThan.Margin = new System.Windows.Forms.Padding(3, 5, 0, 0);
|
||||
this.chkCatBoundMoreThan.Name = "chkCatBoundMoreThan";
|
||||
this.chkCatBoundMoreThan.Size = new System.Drawing.Size(64, 21);
|
||||
this.chkCatBoundMoreThan.TabIndex = 815;
|
||||
@@ -626,10 +640,10 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
//
|
||||
// label14
|
||||
//
|
||||
this.label14.Anchor = System.Windows.Forms.AnchorStyles.Right;
|
||||
this.label14.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.label14.AutoSize = true;
|
||||
this.label14.Location = new System.Drawing.Point(174, 44);
|
||||
this.label14.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0);
|
||||
this.label14.Location = new System.Drawing.Point(177, 42);
|
||||
this.label14.Margin = new System.Windows.Forms.Padding(3, 7, 0, 0);
|
||||
this.label14.Name = "label14";
|
||||
this.label14.Size = new System.Drawing.Size(43, 17);
|
||||
this.label14.TabIndex = 784;
|
||||
@@ -637,16 +651,17 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
//
|
||||
// cmbCat2
|
||||
//
|
||||
this.cmbCat2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.cmbCat2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.cmbCat2.DefaultText = "全部";
|
||||
this.cmbCat2.DropDownHeight = 1;
|
||||
this.cmbCat2.DropDownWidth = 1;
|
||||
this.cmbCat2.FormattingEnabled = true;
|
||||
this.cmbCat2.IntegralHeight = false;
|
||||
this.cmbCat2.Location = new System.Drawing.Point(217, 40);
|
||||
this.cmbCat2.Location = new System.Drawing.Point(220, 38);
|
||||
this.cmbCat2.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
|
||||
this.cmbCat2.Name = "cmbCat2";
|
||||
this.cmbCat2.Size = new System.Drawing.Size(99, 25);
|
||||
this.cmbCat2.Size = new System.Drawing.Size(102, 25);
|
||||
this.cmbCat2.TabIndex = 804;
|
||||
this.cmbCat2.Text = "全部";
|
||||
this.cmbCat2.SelectedIndexChanged += new System.EventHandler(this.cmbCat2_SelectedIndexChanged);
|
||||
@@ -654,10 +669,10 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
//
|
||||
// label17
|
||||
//
|
||||
this.label17.Anchor = System.Windows.Forms.AnchorStyles.Right;
|
||||
this.label17.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.label17.AutoSize = true;
|
||||
this.label17.Location = new System.Drawing.Point(323, 44);
|
||||
this.label17.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0);
|
||||
this.label17.Location = new System.Drawing.Point(328, 42);
|
||||
this.label17.Margin = new System.Windows.Forms.Padding(3, 7, 0, 0);
|
||||
this.label17.Name = "label17";
|
||||
this.label17.Size = new System.Drawing.Size(43, 17);
|
||||
this.label17.TabIndex = 811;
|
||||
@@ -665,16 +680,17 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
//
|
||||
// cmbCat3
|
||||
//
|
||||
this.cmbCat3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.cmbCat3.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.cmbCat3.DefaultText = "全部";
|
||||
this.cmbCat3.DropDownHeight = 1;
|
||||
this.cmbCat3.DropDownWidth = 1;
|
||||
this.cmbCat3.FormattingEnabled = true;
|
||||
this.cmbCat3.IntegralHeight = false;
|
||||
this.cmbCat3.Location = new System.Drawing.Point(366, 40);
|
||||
this.cmbCat3.Location = new System.Drawing.Point(371, 38);
|
||||
this.cmbCat3.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
|
||||
this.cmbCat3.Name = "cmbCat3";
|
||||
this.cmbCat3.Size = new System.Drawing.Size(99, 25);
|
||||
this.cmbCat3.Size = new System.Drawing.Size(102, 25);
|
||||
this.cmbCat3.TabIndex = 811;
|
||||
this.cmbCat3.Text = "全部";
|
||||
this.cmbCat3.SelectedIndexChanged += new System.EventHandler(this.cmbCat3_SelectedIndexChanged);
|
||||
@@ -682,38 +698,39 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
//
|
||||
// lblSourceType
|
||||
//
|
||||
this.lblSourceType.Anchor = System.Windows.Forms.AnchorStyles.Right;
|
||||
this.lblSourceType.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.lblSourceType.AutoSize = true;
|
||||
this.lblSourceType.Location = new System.Drawing.Point(322, 9);
|
||||
this.lblSourceType.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0);
|
||||
this.lblSourceType.Location = new System.Drawing.Point(339, 7);
|
||||
this.lblSourceType.Margin = new System.Windows.Forms.Padding(3, 7, 0, 0);
|
||||
this.lblSourceType.Name = "lblSourceType";
|
||||
this.lblSourceType.Size = new System.Drawing.Size(44, 17);
|
||||
this.lblSourceType.Size = new System.Drawing.Size(32, 17);
|
||||
this.lblSourceType.TabIndex = 651;
|
||||
this.lblSourceType.Text = "来源:";
|
||||
this.lblSourceType.Text = "来源";
|
||||
//
|
||||
// cmbSourceType
|
||||
//
|
||||
this.cmbSourceType.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.cmbSourceType.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.cmbSourceType.FormattingEnabled = true;
|
||||
this.cmbSourceType.Items.AddRange(new object[] {
|
||||
"",
|
||||
"多多商品",
|
||||
"1688商品",
|
||||
"微信商品"});
|
||||
this.cmbSourceType.Location = new System.Drawing.Point(366, 5);
|
||||
this.cmbSourceType.Location = new System.Drawing.Point(371, 3);
|
||||
this.cmbSourceType.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
|
||||
this.cmbSourceType.Name = "cmbSourceType";
|
||||
this.cmbSourceType.Size = new System.Drawing.Size(99, 25);
|
||||
this.cmbSourceType.Size = new System.Drawing.Size(102, 25);
|
||||
this.cmbSourceType.TabIndex = 654;
|
||||
this.cmbSourceType.SelectedIndexChanged += new System.EventHandler(this.cmbSourceType_SelectedIndexChanged);
|
||||
this.cmbSourceType.TextChanged += new System.EventHandler(this.cmbSourceType_SelectedIndexChanged);
|
||||
//
|
||||
// lblNotes
|
||||
//
|
||||
this.lblNotes.Anchor = System.Windows.Forms.AnchorStyles.Right;
|
||||
this.lblNotes.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.lblNotes.AutoSize = true;
|
||||
this.lblNotes.Location = new System.Drawing.Point(509, 9);
|
||||
this.lblNotes.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0);
|
||||
this.lblNotes.Location = new System.Drawing.Point(507, 7);
|
||||
this.lblNotes.Margin = new System.Windows.Forms.Padding(3, 7, 0, 0);
|
||||
this.lblNotes.Name = "lblNotes";
|
||||
this.lblNotes.Size = new System.Drawing.Size(36, 17);
|
||||
this.lblNotes.TabIndex = 440;
|
||||
@@ -721,19 +738,22 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
//
|
||||
// txtNotes
|
||||
//
|
||||
this.txtNotes.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.txtNotes.Location = new System.Drawing.Point(545, 6);
|
||||
this.txtNotes.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.txtNotes.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.txtNotes.Font = new System.Drawing.Font("微软雅黑", 10F);
|
||||
this.txtNotes.Location = new System.Drawing.Point(543, 3);
|
||||
this.txtNotes.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
|
||||
this.txtNotes.Name = "txtNotes";
|
||||
this.txtNotes.Size = new System.Drawing.Size(99, 23);
|
||||
this.txtNotes.Size = new System.Drawing.Size(102, 25);
|
||||
this.txtNotes.TabIndex = 439;
|
||||
//
|
||||
// label12
|
||||
//
|
||||
this.label12.Anchor = System.Windows.Forms.AnchorStyles.Right;
|
||||
this.label12.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.label12.AutoSize = true;
|
||||
this.label12.Location = new System.Drawing.Point(664, 9);
|
||||
this.label12.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0);
|
||||
this.label12.Location = new System.Drawing.Point(655, 7);
|
||||
this.label12.Margin = new System.Windows.Forms.Padding(3, 7, 0, 0);
|
||||
this.label12.Name = "label12";
|
||||
this.label12.Size = new System.Drawing.Size(60, 17);
|
||||
this.label12.TabIndex = 801;
|
||||
@@ -741,24 +761,25 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
//
|
||||
// cmbWxCat
|
||||
//
|
||||
this.cmbWxCat.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.cmbWxCat.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.cmbWxCat.FormattingEnabled = true;
|
||||
this.cmbWxCat.Items.AddRange(new object[] {
|
||||
"",
|
||||
"是",
|
||||
"否"});
|
||||
this.cmbWxCat.Location = new System.Drawing.Point(724, 5);
|
||||
this.cmbWxCat.Location = new System.Drawing.Point(715, 3);
|
||||
this.cmbWxCat.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
|
||||
this.cmbWxCat.Name = "cmbWxCat";
|
||||
this.cmbWxCat.Size = new System.Drawing.Size(99, 25);
|
||||
this.cmbWxCat.Size = new System.Drawing.Size(102, 25);
|
||||
this.cmbWxCat.TabIndex = 802;
|
||||
//
|
||||
// lblWxSafe
|
||||
//
|
||||
this.lblWxSafe.Anchor = System.Windows.Forms.AnchorStyles.Left;
|
||||
this.lblWxSafe.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.lblWxSafe.AutoSize = true;
|
||||
this.lblWxSafe.Location = new System.Drawing.Point(829, 9);
|
||||
this.lblWxSafe.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0);
|
||||
this.lblWxSafe.Location = new System.Drawing.Point(823, 7);
|
||||
this.lblWxSafe.Margin = new System.Windows.Forms.Padding(3, 7, 0, 0);
|
||||
this.lblWxSafe.Name = "lblWxSafe";
|
||||
this.lblWxSafe.Size = new System.Drawing.Size(60, 17);
|
||||
this.lblWxSafe.TabIndex = 651;
|
||||
@@ -766,17 +787,18 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
//
|
||||
// cmbWxSafe
|
||||
//
|
||||
this.cmbWxSafe.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.cmbWxSafe.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.cmbWxSafe.FormattingEnabled = true;
|
||||
this.cmbWxSafe.Items.AddRange(new object[] {
|
||||
"",
|
||||
"安全+未校验",
|
||||
"安全商品",
|
||||
"未校验"});
|
||||
this.cmbWxSafe.Location = new System.Drawing.Point(889, 5);
|
||||
this.cmbWxSafe.Location = new System.Drawing.Point(883, 3);
|
||||
this.cmbWxSafe.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
|
||||
this.cmbWxSafe.Name = "cmbWxSafe";
|
||||
this.cmbWxSafe.Size = new System.Drawing.Size(100, 25);
|
||||
this.cmbWxSafe.Size = new System.Drawing.Size(106, 25);
|
||||
this.cmbWxSafe.TabIndex = 676;
|
||||
this.cmbWxSafe.Text = "安全+未校验";
|
||||
//
|
||||
|
||||
@@ -1124,6 +1124,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
this.statusBar.lblTaskStatus.Text = "正在导入";
|
||||
}));
|
||||
}
|
||||
SearchDbProd(1);
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
pbLoading.Visible = false;
|
||||
@@ -1137,7 +1138,12 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
private void btnOutProdSaveDb_Click(object sender, EventArgs e)
|
||||
{
|
||||
bool isCollectAuthorityUser = true;
|
||||
Get1688ProductForm.Out1688ProductImport(isCollectAuthorityUser, this.statusBar, this.pbLoading);
|
||||
Get1688ProductForm.Out1688ProductImport(isCollectAuthorityUser, this.statusBar, this.pbLoading, OutProdSaveDbCallBack);
|
||||
}
|
||||
|
||||
void OutProdSaveDbCallBack(object msg)
|
||||
{
|
||||
SearchDbProd(1);
|
||||
}
|
||||
|
||||
private void btnAITitleFission_Click(object sender, EventArgs e)
|
||||
|
||||
Reference in new issue
Block a user