优化web查询 新增学员数据 尝试64位软件
This commit is contained in:
1 parent
30beb00fc4
commit
caba307ed1
44 files changed
+738
-1769
No files matched your search
+42
-11
@@ -1,15 +1,17 @@
|
||||
using System;
|
||||
using AllBase;
|
||||
using AllBase.Helper;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Diagnostics;
|
||||
using System.Drawing;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
using AllBase;
|
||||
using AllBase.Helper;
|
||||
//using TemuKJD.ChatForms;
|
||||
//using TemuKJD.DashBoardForms;
|
||||
using TemuKJD.BaseForms;
|
||||
@@ -62,6 +64,11 @@ namespace TemuKJD
|
||||
pnlChat.Visible = false;
|
||||
//pnlUpload_Click(null, null);
|
||||
}
|
||||
if (BaseClass.ForbiddenPage.Contains("拍单"))
|
||||
{
|
||||
pnlPurchase.Visible = false;
|
||||
//pnlUpload_Click(null, null);
|
||||
}
|
||||
}
|
||||
this.pnlChat.StyleMouseOver.BorderColor.Color = GlobalConfig.BorderColor;
|
||||
this.pnlUploadGoods.StyleMouseOver.BorderColor.Color = GlobalConfig.BorderColor;
|
||||
@@ -87,21 +94,45 @@ namespace TemuKJD
|
||||
Hide();
|
||||
}
|
||||
|
||||
[DllImport("user32.dll")]
|
||||
[return: MarshalAs(UnmanagedType.Bool)]
|
||||
static extern bool SetForegroundWindow(IntPtr hWnd);
|
||||
private void panel3_Click(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
Process p = new Process();
|
||||
p.StartInfo.FileName = "FindLittleRabbitOrder.exe";
|
||||
p.StartInfo.Arguments = BaseClass.UserName + " " + BaseClass.PassWord;
|
||||
p.StartInfo.UseShellExecute = true;
|
||||
p.StartInfo.Verb = "runas";
|
||||
p.Start();
|
||||
Process.GetCurrentProcess().Kill();
|
||||
if (File.Exists("29WxFindOrder.exe"))
|
||||
{
|
||||
Process p = new Process();
|
||||
p.StartInfo.FileName = "29WxFindOrder.exe";
|
||||
//p.StartInfo.Arguments = "user_name:" + BaseClass.UserName + " " + "user_name:" + BaseClass.PassWord;
|
||||
p.StartInfo.Arguments = BaseClass.UserName + " " + BaseClass.PassWord;
|
||||
// 新版cef不能使用管理员权限启动,否则win10下会报错
|
||||
//p.StartInfo.UseShellExecute = true;
|
||||
p.StartInfo.UseShellExecute = false;
|
||||
// "runas" 权限继承主程序
|
||||
//p.StartInfo.Verb = "runas";
|
||||
|
||||
p.Start();
|
||||
|
||||
// 强制客服窗口打开时在最上层,win10可能会导致错误
|
||||
p.WaitForInputIdle();
|
||||
IntPtr hWnd = p.MainWindowHandle;
|
||||
if (hWnd != IntPtr.Zero)
|
||||
{
|
||||
// 尝试将窗口设为最顶层窗口
|
||||
SetForegroundWindow(hWnd);
|
||||
}
|
||||
|
||||
Process.GetCurrentProcess().Kill();
|
||||
}
|
||||
else
|
||||
{
|
||||
BaseMsgForm.ShowInfo("未找到拍单程序启动文件");
|
||||
}
|
||||
}
|
||||
catch
|
||||
{
|
||||
BaseMsgForm.ShowInfo("未找到拍单王启动文件");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Generated
+15
-16
@@ -30,7 +30,7 @@
|
||||
{
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ChangeForm));
|
||||
this.panel4 = new DevComponents.DotNetBar.PanelEx();
|
||||
this.panel3 = new DevComponents.DotNetBar.PanelEx();
|
||||
this.pnlPurchase = new DevComponents.DotNetBar.PanelEx();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.pnlUploadGoods = new DevComponents.DotNetBar.PanelEx();
|
||||
this.panel1 = new DevComponents.DotNetBar.PanelEx();
|
||||
@@ -54,19 +54,18 @@
|
||||
this.panel4.Visible = false;
|
||||
this.panel4.Click += new System.EventHandler(this.panel4_Click);
|
||||
//
|
||||
// panel3
|
||||
// pnlPurchase
|
||||
//
|
||||
this.panel3.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.panel3.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.panel3.Location = new System.Drawing.Point(44, 171);
|
||||
this.panel3.Name = "panel3";
|
||||
this.panel3.Size = new System.Drawing.Size(104, 37);
|
||||
this.panel3.Style.BackgroundImage = global::TemuKJD.Properties.Resources.choice_buyer_blast;
|
||||
this.panel3.StyleMouseOver.Border = DevComponents.DotNetBar.eBorderType.RaisedInner;
|
||||
this.panel3.StyleMouseOver.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(7)))), ((int)(((byte)(157)))), ((int)(((byte)(235)))));
|
||||
this.panel3.TabIndex = 2;
|
||||
this.panel3.Visible = false;
|
||||
this.panel3.Click += new System.EventHandler(this.panel3_Click);
|
||||
this.pnlPurchase.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.pnlPurchase.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.pnlPurchase.Location = new System.Drawing.Point(34, 143);
|
||||
this.pnlPurchase.Name = "pnlPurchase";
|
||||
this.pnlPurchase.Size = new System.Drawing.Size(172, 65);
|
||||
this.pnlPurchase.Style.BackgroundImage = global::TemuKJD.Properties.Resources.choice_buyer_blast;
|
||||
this.pnlPurchase.StyleMouseOver.Border = DevComponents.DotNetBar.eBorderType.RaisedInner;
|
||||
this.pnlPurchase.StyleMouseOver.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(7)))), ((int)(((byte)(157)))), ((int)(((byte)(235)))));
|
||||
this.pnlPurchase.TabIndex = 2;
|
||||
this.pnlPurchase.Click += new System.EventHandler(this.panel3_Click);
|
||||
//
|
||||
// label1
|
||||
//
|
||||
@@ -109,7 +108,7 @@
|
||||
//
|
||||
this.pnlExtend.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.pnlExtend.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.pnlExtend.Location = new System.Drawing.Point(171, 171);
|
||||
this.pnlExtend.Location = new System.Drawing.Point(300, 128);
|
||||
this.pnlExtend.Name = "pnlExtend";
|
||||
this.pnlExtend.Size = new System.Drawing.Size(104, 37);
|
||||
this.pnlExtend.Style.BackgroundImage = global::TemuKJD.Properties.Resources.choice_extend;
|
||||
@@ -138,7 +137,7 @@
|
||||
this.panel2.Controls.Add(this.pnlExtend);
|
||||
this.panel2.Controls.Add(this.label1);
|
||||
this.panel2.Controls.Add(this.pnlChat);
|
||||
this.panel2.Controls.Add(this.panel3);
|
||||
this.panel2.Controls.Add(this.pnlPurchase);
|
||||
this.panel2.Controls.Add(this.panel4);
|
||||
this.panel2.Controls.Add(this.pnlUploadGoods);
|
||||
this.panel2.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
@@ -170,7 +169,7 @@
|
||||
|
||||
private DevComponents.DotNetBar.PanelEx panel1;
|
||||
private DevComponents.DotNetBar.PanelEx pnlUploadGoods;
|
||||
private DevComponents.DotNetBar.PanelEx panel3;
|
||||
private DevComponents.DotNetBar.PanelEx pnlPurchase;
|
||||
private DevComponents.DotNetBar.PanelEx panel4;
|
||||
private DevComponents.DotNetBar.PanelEx pnlChat;
|
||||
private DevComponents.DotNetBar.PanelEx pnlExtend;
|
||||
|
||||
+24
-3
@@ -34,7 +34,7 @@
|
||||
<BootstrapperEnabled>true</BootstrapperEnabled>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<PlatformTarget>x64</PlatformTarget>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
@@ -43,7 +43,7 @@
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<AllowUnsafeBlocks>false</AllowUnsafeBlocks>
|
||||
<Prefer32Bit>true</Prefer32Bit>
|
||||
<Prefer32Bit>false</Prefer32Bit>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
@@ -57,6 +57,26 @@
|
||||
<PropertyGroup>
|
||||
<ApplicationIcon>29common_icon.ico</ApplicationIcon>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<OutputPath>..\bin\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<DebugType>full</DebugType>
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<LangVersion>7.3</LangVersion>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<Prefer32Bit>false</Prefer32Bit>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
|
||||
<OutputPath>..\bin\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<Optimize>true</Optimize>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<PlatformTarget>x64</PlatformTarget>
|
||||
<LangVersion>7.3</LangVersion>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<Prefer32Bit>true</Prefer32Bit>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="CefSharp, Version=138.0.340.0, Culture=neutral, PublicKeyToken=40c4b6fc221f4138, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\CefSharp.Common.138.0.340\lib\net462\CefSharp.dll</HintPath>
|
||||
@@ -74,7 +94,8 @@
|
||||
<Reference Include="FiddlerCore4">
|
||||
<HintPath>..\DllReference\FiddlerCore4.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="NaiBa.CefHelper.138">
|
||||
<Reference Include="NaiBa.CefHelper.138, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\DllReference\NaiBa.CefHelper.138.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="NaiBa.Util">
|
||||
|
||||
@@ -17,7 +17,7 @@ using Work;
|
||||
|
||||
namespace TemuKJD.KJDForms.AdminForms
|
||||
{
|
||||
public partial class AdminCardCodeForm : Form
|
||||
public partial class AdminCardCodeForm : BaseForm
|
||||
{
|
||||
public List<JitCardCodeInfo> lstCardCodeInfo = new List<JitCardCodeInfo>();
|
||||
public AdminCardCodeForm()
|
||||
|
||||
+1
-108
@@ -49,16 +49,8 @@
|
||||
this.pictureBox1 = new System.Windows.Forms.PictureBox();
|
||||
this.label8 = new System.Windows.Forms.Label();
|
||||
this.txtNotes = new DevComponents.DotNetBar.Controls.TextBoxX();
|
||||
this.pnlSkuOption = new System.Windows.Forms.Panel();
|
||||
this.label9 = new System.Windows.Forms.Label();
|
||||
this.btnBookImg = new DevComponents.DotNetBar.PanelEx();
|
||||
this.pictureBox2 = new System.Windows.Forms.PictureBox();
|
||||
this.buttonEx1 = new TemuKJD.UserControls.ButtonEx();
|
||||
this.btnSelect = new TemuKJD.UserControls.ButtonEx();
|
||||
this.panel2.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
|
||||
this.pnlSkuOption.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// panel2
|
||||
@@ -83,7 +75,6 @@
|
||||
this.panel2.Controls.Add(this.pictureBox1);
|
||||
this.panel2.Controls.Add(this.label8);
|
||||
this.panel2.Controls.Add(this.txtNotes);
|
||||
this.panel2.Controls.Add(this.pnlSkuOption);
|
||||
this.panel2.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.panel2.Location = new System.Drawing.Point(1, 33);
|
||||
this.panel2.Name = "panel2";
|
||||
@@ -137,7 +128,7 @@
|
||||
this.txtFissionWords.Multiline = true;
|
||||
this.txtFissionWords.Name = "txtFissionWords";
|
||||
this.txtFissionWords.ScrollBars = System.Windows.Forms.ScrollBars.Both;
|
||||
this.txtFissionWords.Size = new System.Drawing.Size(337, 93);
|
||||
this.txtFissionWords.Size = new System.Drawing.Size(337, 211);
|
||||
this.txtFissionWords.TabIndex = 402;
|
||||
this.txtFissionWords.WatermarkText = "一行一个";
|
||||
//
|
||||
@@ -315,95 +306,6 @@
|
||||
this.txtNotes.Size = new System.Drawing.Size(337, 47);
|
||||
this.txtNotes.TabIndex = 385;
|
||||
//
|
||||
// pnlSkuOption
|
||||
//
|
||||
this.pnlSkuOption.Controls.Add(this.label9);
|
||||
this.pnlSkuOption.Controls.Add(this.btnBookImg);
|
||||
this.pnlSkuOption.Controls.Add(this.pictureBox2);
|
||||
this.pnlSkuOption.Controls.Add(this.buttonEx1);
|
||||
this.pnlSkuOption.Controls.Add(this.btnSelect);
|
||||
this.pnlSkuOption.Location = new System.Drawing.Point(10, 483);
|
||||
this.pnlSkuOption.Name = "pnlSkuOption";
|
||||
this.pnlSkuOption.Size = new System.Drawing.Size(417, 147);
|
||||
this.pnlSkuOption.TabIndex = 661;
|
||||
//
|
||||
// label9
|
||||
//
|
||||
this.label9.AutoSize = true;
|
||||
this.label9.Location = new System.Drawing.Point(8, 10);
|
||||
this.label9.Name = "label9";
|
||||
this.label9.Size = new System.Drawing.Size(68, 17);
|
||||
this.label9.TabIndex = 404;
|
||||
this.label9.Text = "SKU替换图";
|
||||
//
|
||||
// btnBookImg
|
||||
//
|
||||
this.btnBookImg.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
this.btnBookImg.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.btnBookImg.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.btnBookImg.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.btnBookImg.Location = new System.Drawing.Point(332, 5);
|
||||
this.btnBookImg.Name = "btnBookImg";
|
||||
this.btnBookImg.Size = new System.Drawing.Size(85, 26);
|
||||
this.btnBookImg.Style.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnBookImg.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnBookImg.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnBookImg.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
|
||||
this.btnBookImg.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
|
||||
this.btnBookImg.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
|
||||
this.btnBookImg.Style.ForeColor.Color = System.Drawing.Color.White;
|
||||
this.btnBookImg.Style.GradientAngle = 90;
|
||||
this.btnBookImg.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnBookImg.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
|
||||
this.btnBookImg.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
|
||||
this.btnBookImg.TabIndex = 654;
|
||||
this.btnBookImg.Text = "生成书籍图片";
|
||||
this.btnBookImg.Visible = false;
|
||||
this.btnBookImg.Click += new System.EventHandler(this.btnBookImg_Click);
|
||||
//
|
||||
// pictureBox2
|
||||
//
|
||||
this.pictureBox2.Location = new System.Drawing.Point(154, 5);
|
||||
this.pictureBox2.Name = "pictureBox2";
|
||||
this.pictureBox2.Size = new System.Drawing.Size(136, 136);
|
||||
this.pictureBox2.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
|
||||
this.pictureBox2.TabIndex = 405;
|
||||
this.pictureBox2.TabStop = false;
|
||||
this.pictureBox2.Click += new System.EventHandler(this.pictureBox2_Click);
|
||||
//
|
||||
// buttonEx1
|
||||
//
|
||||
this.buttonEx1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.buttonEx1.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.buttonEx1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.buttonEx1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.buttonEx1.ForeColor = System.Drawing.Color.White;
|
||||
this.buttonEx1.Location = new System.Drawing.Point(79, 114);
|
||||
this.buttonEx1.Margin = new System.Windows.Forms.Padding(2);
|
||||
this.buttonEx1.Name = "buttonEx1";
|
||||
this.buttonEx1.Size = new System.Drawing.Size(70, 26);
|
||||
this.buttonEx1.TabIndex = 406;
|
||||
this.buttonEx1.Text = "上传图片";
|
||||
this.buttonEx1.UseVisualStyleBackColor = false;
|
||||
this.buttonEx1.Visible = false;
|
||||
this.buttonEx1.Click += new System.EventHandler(this.buttonEx1_Click);
|
||||
//
|
||||
// btnSelect
|
||||
//
|
||||
this.btnSelect.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnSelect.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.btnSelect.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.btnSelect.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.btnSelect.ForeColor = System.Drawing.Color.White;
|
||||
this.btnSelect.Location = new System.Drawing.Point(79, 5);
|
||||
this.btnSelect.Margin = new System.Windows.Forms.Padding(2);
|
||||
this.btnSelect.Name = "btnSelect";
|
||||
this.btnSelect.Size = new System.Drawing.Size(70, 26);
|
||||
this.btnSelect.TabIndex = 407;
|
||||
this.btnSelect.Text = "选择图片";
|
||||
this.btnSelect.UseVisualStyleBackColor = false;
|
||||
this.btnSelect.Click += new System.EventHandler(this.btnSelect_Click);
|
||||
//
|
||||
// PDDDBProdEditForm
|
||||
//
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
||||
@@ -419,9 +321,6 @@
|
||||
this.panel2.ResumeLayout(false);
|
||||
this.panel2.PerformLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
|
||||
this.pnlSkuOption.ResumeLayout(false);
|
||||
this.pnlSkuOption.PerformLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
@@ -444,13 +343,7 @@
|
||||
private System.Windows.Forms.Label label6;
|
||||
private System.Windows.Forms.TextBox txtHeadWords;
|
||||
private System.Windows.Forms.Label label5;
|
||||
private System.Windows.Forms.PictureBox pictureBox2;
|
||||
private System.Windows.Forms.Label label9;
|
||||
private UserControls.ButtonEx buttonEx1;
|
||||
private UserControls.ButtonEx btnSelect;
|
||||
private DevComponents.DotNetBar.PanelEx btnEditDetail;
|
||||
private DevComponents.DotNetBar.PanelEx btnBookImg;
|
||||
public System.Windows.Forms.Panel pnlSkuOption;
|
||||
public System.Windows.Forms.TextBox txtExtCode;
|
||||
public System.Windows.Forms.TextBox txtProductName;
|
||||
public System.Windows.Forms.Label lblSkcId;
|
||||
|
||||
@@ -53,16 +53,6 @@ namespace TemuKJD.PDDForms.ProductSelectForms
|
||||
if (prodTmp != null)
|
||||
dbProd = prodTmp;
|
||||
}
|
||||
//var prodTmp = GetProductDetail(dbProd.id.ToString());
|
||||
//dbProd.sku_img_replace_base64 = prodTmp.sku_img_replace_base64;
|
||||
//dbProd.sku_img_replace_url = prodTmp.sku_img_replace_url;
|
||||
if (!string.IsNullOrWhiteSpace(dbProd.sku_img_replace_url))
|
||||
this.pictureBox2.ImageLocation = dbProd.sku_img_replace_url;
|
||||
else if (!string.IsNullOrWhiteSpace(dbProd.sku_img_replace_base64))
|
||||
this.pictureBox2.Image = Base64ChangeImgUrl.Base64ToImage(dbProd.sku_img_replace_base64); // Convert.FromBase64String(dbProd.sku_img_replace_base64);
|
||||
|
||||
//if (dbProd.product_get_type_text == "厂商直采" || dbProd.product_get_type_text == "微信店采")
|
||||
//btnEditDetail.Text = "查看商品SKU";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -153,100 +143,6 @@ namespace TemuKJD.PDDForms.ProductSelectForms
|
||||
}
|
||||
}
|
||||
|
||||
private void buttonEx1_Click(object sender, EventArgs e)
|
||||
{
|
||||
string text = "";
|
||||
OpenFileDialog openFileDialog = new OpenFileDialog();
|
||||
openFileDialog.Multiselect = false;
|
||||
// 设置过滤条件,只显示文本文件
|
||||
openFileDialog.Filter = "图片文件 (*.jpeg;*.jpg;*.png)|*.jpeg;*.jpg;*.png|All files (*.*)|*.*";
|
||||
// 显示对话框并获取结果
|
||||
if (openFileDialog.ShowDialog() == DialogResult.OK)
|
||||
{
|
||||
try
|
||||
{
|
||||
string filePath = openFileDialog.FileName;
|
||||
//using (Image image = Image.FromFile(filePath))
|
||||
//{
|
||||
// // 现在你可以使用image对象进行各种操作,比如绘制、保存等
|
||||
// //Console.WriteLine("Image loaded successfully.");
|
||||
// this.pictureBox2.Image = image;
|
||||
//}
|
||||
Image image = Image.FromFile(filePath);
|
||||
this.pictureBox2.Image = image;
|
||||
|
||||
string imgBase64 = "";
|
||||
using (MemoryStream memoryStream = new MemoryStream())
|
||||
{
|
||||
image.Save(memoryStream, System.Drawing.Imaging.ImageFormat.Jpeg);
|
||||
byte[] imageBytes = memoryStream.ToArray();
|
||||
imgBase64 = Convert.ToBase64String(imageBytes);
|
||||
}
|
||||
string img_md5 = BaseClass.GetMd5(imgBase64);
|
||||
|
||||
var url = BaseClass.BuildPDDObjString("product/add_sku_img_replace");
|
||||
var data = UserLogin.GetSignaturex() +
|
||||
"&product_db_id=" + dbProd.id;
|
||||
data += "&img_base64=" + imgBase64;
|
||||
data += "&img_md5=" + img_md5;
|
||||
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.sku_img_replace_base64 = imgBase64;
|
||||
dbProd.sku_img_replace_id = BaseRegex.GetIntJson(ref html, "sku_img_replace_id");
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
//Console.WriteLine("An error occurred: " + ex.Message);
|
||||
BaseMsgForm.ShowError("打开自定义图片失败 " + ex.Message);
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void pictureBox2_Click(object sender, EventArgs e)
|
||||
{
|
||||
ShowImgForm imgFrom = new ShowImgForm(pictureBox2.Image);
|
||||
imgFrom.ShowDialog();
|
||||
}
|
||||
|
||||
private void btnSelect_Click(object sender, EventArgs e)
|
||||
{
|
||||
PDDDBProdImgListForm imgListForm = new PDDDBProdImgListForm("select");
|
||||
imgListForm.ShowDialog();
|
||||
if (imgListForm.SelectDbImgId > 0)
|
||||
{
|
||||
var url = BaseClass.BuildPDDObjString("product/mdy_prod_sku_img_replace_id");
|
||||
var data = UserLogin.GetSignaturex() +
|
||||
"&product_db_id=" + dbProd.id;
|
||||
data += "&img_db_id=" + imgListForm.SelectDbImgId;
|
||||
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
|
||||
{
|
||||
this.pictureBox2.ImageLocation = imgListForm.SelectDbImgUrl;
|
||||
dbProd.sku_img_replace_id = imgListForm.SelectDbImgId;
|
||||
dbProd.sku_img_replace_url = imgListForm.SelectDbImgUrl;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void btnEditDetail_Click(object sender, EventArgs e)
|
||||
{
|
||||
bool canEdit = true;
|
||||
@@ -322,65 +218,5 @@ namespace TemuKJD.PDDForms.ProductSelectForms
|
||||
}
|
||||
editDetailForm.ShowDialog();
|
||||
}
|
||||
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -414,7 +414,6 @@ namespace TemuKJD.PDDForms.ProductSelectForms
|
||||
|
||||
if (!string.IsNullOrEmpty(cmbExportToOutServer.Text))
|
||||
{
|
||||
//data += "&has_send_to_out_server=" + (cmbExportToOutServer.Text.Trim() == "是").ParseToString().ToLower();
|
||||
if (cmbExportToOutServer.Text.Trim() == "是")
|
||||
data += "&send_to_out_server=1";
|
||||
else if (cmbExportToOutServer.Text.Trim() == "否")
|
||||
@@ -422,6 +421,10 @@ namespace TemuKJD.PDDForms.ProductSelectForms
|
||||
else if (cmbExportToOutServer.Text.Trim() == "导出未拉回")
|
||||
data += "&send_to_out_server=2";
|
||||
}
|
||||
else
|
||||
{
|
||||
data += "&send_to_out_server=0,1,2";
|
||||
}
|
||||
|
||||
if (cmbSourceType.Text.Trim() != "全部")
|
||||
{
|
||||
@@ -627,7 +630,6 @@ namespace TemuKJD.PDDForms.ProductSelectForms
|
||||
PDDDBProdEditForm editForm = new PDDDBProdEditForm(dbProduct);
|
||||
if (BaseClass.MainPath != "29pdd")
|
||||
{
|
||||
editForm.pnlSkuOption.Visible = false;
|
||||
editForm.txtProductName.ReadOnly = true;
|
||||
editForm.txtExtCode.ReadOnly = true;
|
||||
editForm.lblSkcId.Text = "仓库编码";
|
||||
@@ -1317,19 +1319,37 @@ namespace TemuKJD.PDDForms.ProductSelectForms
|
||||
|
||||
void GetProdWxCat(List<KJDDBProduct> dbProdLst)
|
||||
{
|
||||
var taskCount = Math.Min(5, GlobalConfig.ShopLoginList.Count);
|
||||
List<Task> tList = new List<Task>();
|
||||
foreach (var prod in dbProdLst)
|
||||
{
|
||||
if (cancellationTokenSource.IsCancellationRequested)
|
||||
break;
|
||||
|
||||
Invoke(new Action(() =>
|
||||
var t = Task.Run(() =>
|
||||
{
|
||||
this.statusBar.UpdateProgressBar(this.statusBar.pgbTaskProgress.Value + 1);
|
||||
this.statusBar.lblTaskStatus.Text = "正在识别微信类目 " + this.statusBar.pgbTaskProgress.Value + "/" + dbProdLst.Count;
|
||||
}));
|
||||
if (cancellationTokenSource.IsCancellationRequested)
|
||||
return;
|
||||
|
||||
var row = dgvDbProduct.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["col_spu_id"].Value.ParseToString() == prod.spu_id);
|
||||
GetProdWxCat(prod, row);
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
this.statusBar.UpdateProgressBar(this.statusBar.pgbTaskProgress.Value + 1);
|
||||
this.statusBar.lblTaskStatus.Text = "正在识别微信类目 " + this.statusBar.pgbTaskProgress.Value + "/" + dbProdLst.Count;
|
||||
}));
|
||||
|
||||
var row = dgvDbProduct.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["col_spu_id"].Value.ParseToString() == prod.spu_id);
|
||||
GetProdWxCat(prod, row);
|
||||
});
|
||||
tList.Add(t);
|
||||
|
||||
while (tList.Count >= taskCount)
|
||||
{
|
||||
Thread.Sleep(50);
|
||||
tList.RemoveAll(ta => ta.IsFaulted || ta.IsCanceled || ta.IsCompleted);
|
||||
}
|
||||
}
|
||||
|
||||
while (tList.Count > 0)
|
||||
{
|
||||
Thread.Sleep(200);
|
||||
tList.RemoveAll(ta => ta.IsFaulted || ta.IsCanceled || ta.IsCompleted);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1337,27 +1357,41 @@ namespace TemuKJD.PDDForms.ProductSelectForms
|
||||
{
|
||||
var shop = GlobalConfig.ShopLoginList.OrderBy(x => Guid.NewGuid()).FirstOrDefault();
|
||||
WXShopTokenInfo token = WXDBProdUploadForm.lstWXShopTokenInfo.FirstOrDefault(t => t.shopId == shop.ShopId);
|
||||
if (token == null)
|
||||
token = new WXShopTokenInfo();
|
||||
if (token.isExpire || string.IsNullOrEmpty(token.accessToken))
|
||||
for (int i = 0; i < 5; i++)
|
||||
{
|
||||
AuthInfo auth = GlobalConfig.lstWxShopAuthInfo.FirstOrDefault(sa => sa.ShopId == shop.ShopId);
|
||||
//if (auth != null && auth.ExpiresTime > DateTime.Now.AddMinutes(5))
|
||||
if (token == null)
|
||||
token = new WXShopTokenInfo();
|
||||
if (token.isExpire || string.IsNullOrEmpty(token.accessToken))
|
||||
{
|
||||
token = new WxApiBLL().GetShopWxToken(shop);
|
||||
|
||||
if (!string.IsNullOrEmpty(token.accessToken))
|
||||
AuthInfo auth = GlobalConfig.lstWxShopAuthInfo.FirstOrDefault(sa => sa.ShopId == shop.ShopId);
|
||||
//if (auth != null && auth.ExpiresTime > DateTime.Now.AddMinutes(5))
|
||||
{
|
||||
WXDBProdUploadForm.lstWXShopTokenInfo.RemoveAll(t => t.shopId == shop.ShopId);
|
||||
WXDBProdUploadForm.lstWXShopTokenInfo.Add(token);
|
||||
NaiBa.Util.Helper.ConfigHelper.SaveConfig("wx_shop_token_list", WXDBProdUploadForm.lstWXShopTokenInfo);
|
||||
token = new WxApiBLL().GetShopWxToken(shop);
|
||||
|
||||
if (!string.IsNullOrEmpty(token.accessToken))
|
||||
{
|
||||
WXDBProdUploadForm.lstWXShopTokenInfo.RemoveAll(t => t.shopId == shop.ShopId);
|
||||
WXDBProdUploadForm.lstWXShopTokenInfo.Add(token);
|
||||
NaiBa.Util.Helper.ConfigHelper.SaveConfig("wx_shop_token_list", WXDBProdUploadForm.lstWXShopTokenInfo);
|
||||
}
|
||||
}
|
||||
}
|
||||
// 如果店铺token不可用,随机获取一个上传图片的accessToken
|
||||
if (token == null || token.isExpire || string.IsNullOrEmpty(token.accessToken))
|
||||
{
|
||||
// 获取微信accessToken
|
||||
//token = new WxApiBLL().GetRandomWxToken();
|
||||
|
||||
shop = GlobalConfig.ShopLoginList.OrderBy(x => Guid.NewGuid()).FirstOrDefault();
|
||||
token = WXDBProdUploadForm.lstWXShopTokenInfo.FirstOrDefault(t => t.shopId == shop.ShopId);
|
||||
continue;
|
||||
}
|
||||
else
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
// 如果店铺token不可用,随机获取一个上传图片的accessToken
|
||||
if (token == null || token.isExpire || string.IsNullOrEmpty(token.accessToken))
|
||||
// 获取微信accessToken
|
||||
token = new WxApiBLL().GetRandomWxToken();
|
||||
|
||||
try
|
||||
{
|
||||
JObject obj = new JObject();
|
||||
@@ -1657,7 +1691,8 @@ namespace TemuKJD.PDDForms.ProductSelectForms
|
||||
{
|
||||
row.Cells["colMainCate"].Value = mainCatName;
|
||||
row.Cells["col_cat_name"].Value = catName;
|
||||
row.Cells["colCatBound"].Value = GlobalConfig.WxCatBoundList.FirstOrDefault(cb => cb.leaf_id == dbProd.wx_cat_leaf)?.cat_bound;
|
||||
if (row.Cells.Cast<DataGridViewCell>().FirstOrDefault(c => c.OwningColumn.Name == "colCatBound") is DataGridViewCell boundCell)
|
||||
boundCell.Value = GlobalConfig.WxCatBoundList.FirstOrDefault(cb => cb.leaf_id == dbProd.wx_cat_leaf)?.cat_bound;
|
||||
}));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -874,12 +874,6 @@ namespace TemuKJD.PDDForms.ProductSelectForms
|
||||
if (kjdDbProd?.id == 0)
|
||||
{
|
||||
prod.status = "已清除";
|
||||
//var empty_url = BaseClass.BuildObjString("product/mdy_user_select_product_status");
|
||||
//var empty_data = UserLogin.GetSignaturex() +
|
||||
// "&select_add_time=" + prod.add_time.ToString("yyyy-MM-dd HH:mm:ss") +
|
||||
// "&db_id=" + prod.id +
|
||||
// "&status=已清除";
|
||||
//GetHtml.PostUtf8(empty_url, empty_data);
|
||||
}
|
||||
|
||||
Invoke(new Action(() =>
|
||||
|
||||
+14
-2
@@ -39,6 +39,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
|
||||
this.dgvSelectProduct = new TemuKJD.UserComponent.DataGridViewEx();
|
||||
this.colCheck = new System.Windows.Forms.DataGridViewCheckBoxColumn();
|
||||
this.colId = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colGetType = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colSpuId = new System.Windows.Forms.DataGridViewLinkColumn();
|
||||
this.colImgUrl = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colProductSkcPic = new System.Windows.Forms.DataGridViewImageColumn();
|
||||
@@ -143,6 +144,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
|
||||
this.dgvSelectProduct.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
|
||||
this.colCheck,
|
||||
this.colId,
|
||||
this.colGetType,
|
||||
this.colSpuId,
|
||||
this.colImgUrl,
|
||||
this.colProductSkcPic,
|
||||
@@ -154,6 +156,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
|
||||
this.ColDelete});
|
||||
this.dgvSelectProduct.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.dgvSelectProduct.Location = new System.Drawing.Point(5, 0);
|
||||
this.dgvSelectProduct.MultiSelectCheckBox = true;
|
||||
this.dgvSelectProduct.Name = "dgvSelectProduct";
|
||||
this.dgvSelectProduct.ReadOnly = true;
|
||||
this.dgvSelectProduct.RowTemplate.Height = 23;
|
||||
@@ -178,6 +181,13 @@ namespace TemuKJD.PDDForms.ProductSelectForms
|
||||
this.colId.ReadOnly = true;
|
||||
this.colId.Width = 45;
|
||||
//
|
||||
// colGetType
|
||||
//
|
||||
this.colGetType.HeaderText = "来源";
|
||||
this.colGetType.Name = "colGetType";
|
||||
this.colGetType.ReadOnly = true;
|
||||
this.colGetType.Visible = false;
|
||||
//
|
||||
// colSpuId
|
||||
//
|
||||
this.colSpuId.HeaderText = "商品ID";
|
||||
@@ -243,14 +253,15 @@ namespace TemuKJD.PDDForms.ProductSelectForms
|
||||
this.ColDelete.ReadOnly = true;
|
||||
this.ColDelete.Width = 75;
|
||||
//
|
||||
// PDDDBProdUserSelectCacheForm
|
||||
// PDDDBProdUploadSelectCacheForm
|
||||
//
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
||||
this.ClientSize = new System.Drawing.Size(1112, 600);
|
||||
this.Controls.Add(this.splitContainer1);
|
||||
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 = "PDDDBProdUserSelectCacheForm";
|
||||
this.KeyPreview = true;
|
||||
this.Name = "PDDDBProdUploadSelectCacheForm";
|
||||
this.Text = "待上传商品";
|
||||
this.TitleText = "待上传商品";
|
||||
this.Load += new System.EventHandler(this.PDDDBProdUserSelectCacheForm_Load);
|
||||
@@ -275,6 +286,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
|
||||
private DevComponents.DotNetBar.PanelEx btnClearDgv;
|
||||
private System.Windows.Forms.DataGridViewCheckBoxColumn colCheck;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colId;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colGetType;
|
||||
private System.Windows.Forms.DataGridViewLinkColumn colSpuId;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colImgUrl;
|
||||
private System.Windows.Forms.DataGridViewImageColumn colProductSkcPic;
|
||||
|
||||
@@ -29,6 +29,10 @@ namespace TemuKJD.PDDForms.ProductSelectForms
|
||||
|
||||
private void PDDDBProdUserSelectCacheForm_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (BaseClass.UserName == "15288888888")
|
||||
{
|
||||
dgvSelectProduct.Columns["colGetType"].Visible = true;
|
||||
}
|
||||
if (BaseClass.MainPath == "29pdd")
|
||||
{
|
||||
dgvSelectProduct.Columns["colBound"].Visible = false;
|
||||
@@ -45,6 +49,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
|
||||
int rowIndex = this.dgvSelectProduct.Rows.Add(
|
||||
false,
|
||||
prodSelect.id,
|
||||
prodSelect.product_get_type_text,
|
||||
BaseClass.SaLevel > 0 ? prodSelect.spu_id : prodSelect.spu_id.ParseToString().GetHashCode().ParseToString().Trim('-'),
|
||||
prodSelect.main_img,
|
||||
DataGridViewExtension.defaultBitmap,
|
||||
|
||||
@@ -123,6 +123,9 @@
|
||||
<metadata name="colId.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colGetType.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">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
|
||||
@@ -565,171 +565,6 @@ namespace TemuKJD.PDDForms.ShopForms
|
||||
return "";
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 第三方获取商品并直接提交到第三方待上传列表
|
||||
/// </summary>
|
||||
/// <param name="sProdId"></param>
|
||||
/// <param name="supplierId"></param>
|
||||
/// <returns></returns>
|
||||
public string getThirdProduct(string sProdId, string supplierId)
|
||||
{
|
||||
var prodId = sProdId.ParseToLong();
|
||||
if (prodId <= 0)
|
||||
{
|
||||
BaseMsgForm.ShowError("商品Id不存在!");
|
||||
return "failed";
|
||||
}
|
||||
var shop = GlobalConfig.ShopLoginList.FirstOrDefault(s => s.ShopId == supplierId.ParseToString());
|
||||
if (string.IsNullOrEmpty(supplierId) || shop == null)
|
||||
{
|
||||
BaseMsgForm.ShowError("店铺不存在!");
|
||||
return "failed";
|
||||
}
|
||||
|
||||
Task.Run(() =>
|
||||
{
|
||||
try
|
||||
{
|
||||
var sourceShop = shop;
|
||||
var sourceProdId = prodId;
|
||||
string success_err_msg = "";
|
||||
string errorMsg = "";
|
||||
var html = GetPddProdCommitId(sourceShop, sourceProdId.ToString());
|
||||
if (!html.Contains("\"success\":true") || !html.Contains("\"result\""))
|
||||
{
|
||||
var errMsg = BaseRegex.GetStringJson(ref html, "error_msg");
|
||||
if (string.IsNullOrEmpty(errMsg))
|
||||
errMsg = html;
|
||||
OnInfoReceived("商品获取失败!" + errMsg);
|
||||
return;
|
||||
}
|
||||
var commitId = BaseRegex.GetStringJson(ref html, "goods_commit_id");
|
||||
if (string.IsNullOrEmpty(commitId))
|
||||
{
|
||||
OnInfoReceived("商品获取失败!商品提交编号获取失败!");
|
||||
return;
|
||||
}
|
||||
html = GetPddProdDetail(sourceShop, sourceProdId.ToString(), commitId);
|
||||
|
||||
JObject obj = JObject.Parse(html);
|
||||
var result = JsonHelper.SerializeObject(obj["result"]);
|
||||
var sizeRst = "";
|
||||
PDDProductDetailInfo product = JsonHelper.DeserializeJsonToObject<PDDProductDetailInfo>(result);
|
||||
if (product == null)
|
||||
{
|
||||
OnInfoReceived("商品获取失败!商品数据格式获取失败!");
|
||||
return;
|
||||
}
|
||||
|
||||
//拼多多暂时注释尺码
|
||||
//if (product.sizeTemplateId > 0)
|
||||
//{
|
||||
// html = SizeSpecQuery(sourceShop, sourceProdId.ToString(), product.sizeTemplateId.ToString());
|
||||
// if (!html.Contains("\"success\":true"))
|
||||
// {
|
||||
// success_err_msg += " 尺码表获取失败!" + BaseRegex.GetStringJson(ref html, "errorMsg");
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// obj = JObject.Parse(html);
|
||||
// sizeRst = JsonHelper.SerializeObject(obj["result"]);
|
||||
// }
|
||||
//}
|
||||
|
||||
List<ShopLoginInfo> shopLst = new List<ShopLoginInfo>();
|
||||
PDDShopListForm.Instance.Invoke(new Action(() =>
|
||||
{
|
||||
PDDThirdProdSelectAddShopForm shopForm = new PDDThirdProdSelectAddShopForm();
|
||||
shopForm.ShowDialog();
|
||||
shopLst.AddRange(shopForm.lstSelectShop);
|
||||
}));
|
||||
if (shopLst.Count == 0)
|
||||
{
|
||||
OnInfoReceived("库存上传操作取消或未选择上传店铺!");
|
||||
return;
|
||||
}
|
||||
|
||||
string main_img = "";
|
||||
//if (string.IsNullOrEmpty(main_img))
|
||||
// main_img = product.image_url;
|
||||
//if (string.IsNullOrEmpty(main_img))
|
||||
// main_img = product.hd_thumb_url;
|
||||
//if (string.IsNullOrEmpty(main_img))
|
||||
// main_img = product.thumb_url;
|
||||
if (string.IsNullOrEmpty(main_img))
|
||||
main_img = (product.galleries?.FirstOrDefault(img => img.type == 1)?.url).ParseToString();
|
||||
if (string.IsNullOrEmpty(main_img))
|
||||
main_img = (product.galleries?.FirstOrDefault()?.url).ParseToString();
|
||||
var url = BaseClass.BuildObjString("product_third/add_product");
|
||||
var data = UserLogin.GetSignaturex() +
|
||||
"&from_shop_id=" + shop.ShopId +
|
||||
"&spu_id=" + product.goods_id.ParseToString() +
|
||||
"&skc_id=" + product.goods_id.ParseToString() +
|
||||
"&cat_id=" + (product.cat_id).ParseToString() +
|
||||
"&cat_name=" + HttpUtility.UrlEncode((product.cats?.LastOrDefault(c => !string.IsNullOrEmpty(c))).ParseToString(), Encoding.UTF8) +
|
||||
"&ext_code=" + HttpUtility.UrlEncode(product.out_goods_sn, Encoding.UTF8) +
|
||||
"&product_name=" + HttpUtility.UrlEncode(product.goods_name, Encoding.UTF8) +
|
||||
"&product_json=" + HttpUtility.UrlEncode(result, Encoding.UTF8) +
|
||||
"&size_json=" + HttpUtility.UrlEncode(sizeRst, Encoding.UTF8) +
|
||||
"&main_img=" + HttpUtility.UrlEncode(main_img, Encoding.UTF8);
|
||||
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"))
|
||||
{
|
||||
errorMsg = "库存商品保存失败!请检查网络连接:" +
|
||||
BaseRegex.GetStringJson(ref html, "msg").ParseToString().Replace("'", "\\'").Replace("\"", "\\\"");
|
||||
}
|
||||
var id = BaseRegex.GetLongJson(ref html, "id");
|
||||
if (id == 0)
|
||||
goto end;
|
||||
|
||||
foreach (var addProdShop in shopLst)
|
||||
{
|
||||
url = BaseClass.BuildObjString("product_third/add_user_select_product");
|
||||
data = UserLogin.GetSignaturex() +
|
||||
"&out_product_id=" + id +
|
||||
"&shop_id=" + addProdShop.ShopId +
|
||||
"&shop_account=" + addProdShop.ShopAccount +
|
||||
"&main_user_name=" + addProdShop.UserName +
|
||||
"&sub_user_name=" + addProdShop.SubUserName +
|
||||
"&add_product_remaining=" + addProdShop.AddProductRemaining +
|
||||
"&status=待上传";
|
||||
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"))
|
||||
{
|
||||
errorMsg += product?.goods_id + " " + BaseRegex.GetStringJson(ref html, "msg") + "; ";
|
||||
}
|
||||
else
|
||||
{
|
||||
addProdShop.AddProductRemaining = addProdShop.AddProductRemaining - 1;
|
||||
}
|
||||
}
|
||||
end:;
|
||||
if (!string.IsNullOrEmpty(errorMsg))
|
||||
{
|
||||
OnInfoReceived(errorMsg);
|
||||
}
|
||||
else
|
||||
{
|
||||
OnInfoReceived("库存上传保存成功!" + success_err_msg);
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
OnInfoReceived("发生错误:" + ex.Message);
|
||||
}
|
||||
});
|
||||
|
||||
return "success";
|
||||
}
|
||||
|
||||
TemuCat GetCat(TemuDetailProductInfo product)
|
||||
{
|
||||
if (product == null)
|
||||
|
||||
@@ -564,47 +564,6 @@ namespace TemuKJD.PDDForms.ShopForms
|
||||
sb.Append("CefSharp.BindObjectAsync('shopObj');");
|
||||
sb.Append("})();");
|
||||
cefWebBrowser.GetBrowser().MainFrame.EvaluateScriptAsync(sb.ToString());
|
||||
|
||||
// 库存上传按钮 pdd不需要
|
||||
if (1 == 2 && currentUrl.StartsWith("https://mms.pinduoduo.com/goods/goods_list"))
|
||||
{
|
||||
Task.Run(() => {
|
||||
string sAddInputJs = @"
|
||||
document.addEventListener('wheel', function(event) {
|
||||
// 检查滚动方向
|
||||
//if (event.deltaY < 0) {
|
||||
// console.log('向上滚动');
|
||||
//} else {
|
||||
// console.log('向下滚动');
|
||||
//}
|
||||
// 或者使用 event.deltaX 来检查水平滚动
|
||||
//if (event.deltaX < 0) {
|
||||
// console.log('向左滚动');
|
||||
//} else if (event.deltaX > 0) {
|
||||
// console.log('向右滚动');
|
||||
//}
|
||||
|
||||
// 阻止默认的滚动行为(如果有需要)
|
||||
//event.preventDefault();
|
||||
|
||||
addGetProdButton();
|
||||
});
|
||||
addGetProdButton();
|
||||
|
||||
function addGetProdButton() {
|
||||
var productLst = document.getElementsByClassName('goods-id');
|
||||
for(i=0; i<productLst.length; i++) {
|
||||
var addBtnItem = productLst[i].parentElement.parentElement;
|
||||
if (addBtnItem.parentElement.innerHTML.indexOf('库存上传') < 0 && addBtnItem.parentElement.innerHTML.indexOf('ID:') >= 0) {
|
||||
var sSpuId = addBtnItem.innerText.replace('\r','').replace('\n','').replace('ID: ', '');
|
||||
addBtnItem.outerHTML = addBtnItem.outerHTML.replace(""<section>"",""<section style=\""display:inline; float:left; \"">"")
|
||||
.replace(""</section>"", ""</section><input type=\""button\"" style=\""display:inline; width:60px; margin-left:10px; margin-top:0px; cursor:pointer; border:1px solid\"" value =\""库存上传\"" onclick=\""shopObj.getThirdProduct('"" + sSpuId + ""','" + this.shop.ShopId + @"')\"">"");
|
||||
}
|
||||
}
|
||||
}";
|
||||
cefWebBrowser.GetBrowser().MainFrame.EvaluateScriptAsync(sAddInputJs);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
//public Func<object, string, string, request, bool> BeforeResourceLoadEvent; // sender, requestUrl, postData, request, true(表示取消执行)
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 6.4 KiB After Width: | Height: | Size: 4.7 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 6.4 KiB |
@@ -393,7 +393,6 @@ namespace TemuKJD.ToolForms
|
||||
PDDDBProdEditForm editForm = new PDDDBProdEditForm(dbProduct);
|
||||
if (BaseClass.MainPath != "29pdd")
|
||||
{
|
||||
editForm.pnlSkuOption.Visible = false;
|
||||
editForm.txtProductName.ReadOnly = true;
|
||||
editForm.txtExtCode.ReadOnly = true;
|
||||
editForm.lblSkcId.Text = "仓库编码";
|
||||
|
||||
+21
-9
@@ -81,6 +81,7 @@ namespace TemuKJD.WXForms.AdminForms
|
||||
this.line1 = new DevComponents.DotNetBar.Controls.Line();
|
||||
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
|
||||
this.pnlShopPointsPerMonth = new System.Windows.Forms.Panel();
|
||||
this.lblShopPointsPerMonthUserId = new System.Windows.Forms.Label();
|
||||
this.lblShopPointsPerMonthUserInfo = new System.Windows.Forms.Label();
|
||||
this.panel3 = new System.Windows.Forms.Panel();
|
||||
this.numShopPointsPerMonth = new System.Windows.Forms.NumericUpDown();
|
||||
@@ -114,7 +115,7 @@ namespace TemuKJD.WXForms.AdminForms
|
||||
this.editColumn = new System.Windows.Forms.DataGridViewLinkColumn();
|
||||
this.deleteColumn = new System.Windows.Forms.DataGridViewLinkColumn();
|
||||
this.btnExportShopErp = new DevComponents.DotNetBar.PanelEx();
|
||||
this.lblShopPointsPerMonthUserId = new System.Windows.Forms.Label();
|
||||
this.chkTraineeData = new TemuKJD.UserComponent.UcCheckBox(this.components);
|
||||
((System.ComponentModel.ISupportInitialize)(this.splitContainer5)).BeginInit();
|
||||
this.splitContainer5.Panel1.SuspendLayout();
|
||||
this.splitContainer5.Panel2.SuspendLayout();
|
||||
@@ -143,6 +144,7 @@ namespace TemuKJD.WXForms.AdminForms
|
||||
// splitContainer5.Panel1
|
||||
//
|
||||
this.splitContainer5.Panel1.BackColor = System.Drawing.Color.WhiteSmoke;
|
||||
this.splitContainer5.Panel1.Controls.Add(this.chkTraineeData);
|
||||
this.splitContainer5.Panel1.Controls.Add(this.line2);
|
||||
this.splitContainer5.Panel1.Controls.Add(this.btnFilter);
|
||||
this.splitContainer5.Panel1.Controls.Add(this.txtAuth);
|
||||
@@ -699,6 +701,16 @@ namespace TemuKJD.WXForms.AdminForms
|
||||
this.pnlShopPointsPerMonth.TabIndex = 9;
|
||||
this.pnlShopPointsPerMonth.Visible = false;
|
||||
//
|
||||
// lblShopPointsPerMonthUserId
|
||||
//
|
||||
this.lblShopPointsPerMonthUserId.AutoSize = true;
|
||||
this.lblShopPointsPerMonthUserId.Location = new System.Drawing.Point(256, 19);
|
||||
this.lblShopPointsPerMonthUserId.Name = "lblShopPointsPerMonthUserId";
|
||||
this.lblShopPointsPerMonthUserId.Size = new System.Drawing.Size(47, 17);
|
||||
this.lblShopPointsPerMonthUserId.TabIndex = 456;
|
||||
this.lblShopPointsPerMonthUserId.Text = "UserId";
|
||||
this.lblShopPointsPerMonthUserId.Visible = false;
|
||||
//
|
||||
// lblShopPointsPerMonthUserInfo
|
||||
//
|
||||
this.lblShopPointsPerMonthUserInfo.AutoSize = true;
|
||||
@@ -1107,15 +1119,14 @@ namespace TemuKJD.WXForms.AdminForms
|
||||
this.btnExportShopErp.Visible = false;
|
||||
this.btnExportShopErp.Click += new System.EventHandler(this.btnExportShopErp_Click);
|
||||
//
|
||||
// lblUserId
|
||||
// chkTraineeData
|
||||
//
|
||||
this.lblShopPointsPerMonthUserId.AutoSize = true;
|
||||
this.lblShopPointsPerMonthUserId.Location = new System.Drawing.Point(256, 19);
|
||||
this.lblShopPointsPerMonthUserId.Name = "lblUserId";
|
||||
this.lblShopPointsPerMonthUserId.Size = new System.Drawing.Size(47, 17);
|
||||
this.lblShopPointsPerMonthUserId.TabIndex = 456;
|
||||
this.lblShopPointsPerMonthUserId.Text = "UserId";
|
||||
this.lblShopPointsPerMonthUserId.Visible = false;
|
||||
this.chkTraineeData.Location = new System.Drawing.Point(192, 453);
|
||||
this.chkTraineeData.Name = "chkTraineeData";
|
||||
this.chkTraineeData.Size = new System.Drawing.Size(68, 21);
|
||||
this.chkTraineeData.TabIndex = 829;
|
||||
this.chkTraineeData.Text = "学员数据";
|
||||
this.chkTraineeData.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// WXAdminAccountForm
|
||||
//
|
||||
@@ -1236,5 +1247,6 @@ namespace TemuKJD.WXForms.AdminForms
|
||||
private DevComponents.DotNetBar.PanelEx btnShopPointsPerMonthCancel;
|
||||
private DevComponents.DotNetBar.PanelEx btnShopPointsPerMonth;
|
||||
private System.Windows.Forms.Label lblShopPointsPerMonthUserId;
|
||||
private UserComponent.UcCheckBox chkTraineeData;
|
||||
}
|
||||
}
|
||||
@@ -96,6 +96,8 @@ namespace TemuKJD.WXForms.AdminForms
|
||||
authority += chkShopPoints.Text + ","; // 充值用户
|
||||
if (chkProdFission.Checked)
|
||||
authority += chkProdFission.Text + ","; // 裂变调试
|
||||
if (chkTraineeData.Checked)
|
||||
authority += chkTraineeData.Text + ","; // 学员数据
|
||||
data.Append("&authority=" + authority.Trim(','));
|
||||
|
||||
string url = BaseClass.BuildObjString("user/add_user");
|
||||
@@ -210,6 +212,7 @@ namespace TemuKJD.WXForms.AdminForms
|
||||
chkWXComplateProd.Checked = false;
|
||||
chkWXShowProdGetFromType.Checked = false;
|
||||
chkChanceProdCollect.Checked = false;
|
||||
chkTraineeData.Checked = false;
|
||||
chkShopOptimize.Checked = false;
|
||||
chkEcWaybill.Checked = false;
|
||||
chkCommissionUpdate.Checked = false;
|
||||
@@ -253,6 +256,7 @@ namespace TemuKJD.WXForms.AdminForms
|
||||
chkShopPoints.Checked = authority.Contains(chkShopPoints.Text);
|
||||
chkProdFission.Checked = authority.Contains(chkProdFission.Text);
|
||||
chkChanceProdCollect.Checked = authority.Contains(chkChanceProdCollect.Text);
|
||||
chkTraineeData.Checked = authority.Contains(chkTraineeData.Text);
|
||||
chkShopOptimize.Checked = authority.Contains(chkShopOptimize.Text);
|
||||
chkEcWaybill.Checked = authority.Contains(chkEcWaybill.Text);
|
||||
chkCommissionUpdate.Checked = authority.Contains(chkCommissionUpdate.Text);
|
||||
|
||||
@@ -352,7 +352,12 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
}
|
||||
if (BaseClass.UserAuthority.Contains("商品采集") || BaseClass.ParentAuthority.Contains("商品采集"))
|
||||
{
|
||||
cmbSourceType.Items.Insert(1, "------");
|
||||
if (BaseClass.UserAuthority.Contains("学员数据") || BaseClass.ParentAuthority.Contains("学员数据"))
|
||||
{
|
||||
cmbSourceType.Items.Insert(1, "--------");
|
||||
cmbSourceType.Items.Insert(1, "学员数据");
|
||||
}
|
||||
cmbSourceType.Items.Insert(1, "--------");
|
||||
cmbSourceType.Items.Insert(1, "微信商品");
|
||||
cmbSourceType.Items.Insert(1, "1688商品");
|
||||
cmbSourceType.Items.Insert(1, "多多商品");
|
||||
@@ -362,6 +367,12 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
this.lblSourceType.Visible = true;
|
||||
this.cmbSourceType.Visible = true;
|
||||
this.cmbSourceType.Items.Clear();
|
||||
cmbSourceType.Items.Add("");
|
||||
if (BaseClass.UserAuthority.Contains("学员数据") || BaseClass.ParentAuthority.Contains("学员数据"))
|
||||
{
|
||||
cmbSourceType.Items.Add("学员数据");
|
||||
cmbSourceType.Items.Add("--------");
|
||||
}
|
||||
this.cmbSourceType.Items.Add("多多商品,1688商品,微信商品");
|
||||
this.cmbSourceType.Items.Add("多多商品");
|
||||
this.cmbSourceType.Items.Add("1688商品");
|
||||
@@ -584,9 +595,9 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
//cmbGroupFilter.Items.Remove("用户" + mainUserName);
|
||||
cmbGroupFilter.Items.Remove("------");
|
||||
cmbGroupFilter.Items.Remove("--------");
|
||||
cmbGroupFilter.Items.Remove("我的商品");
|
||||
cmbGroupFilter.Items.Insert(0, "------");
|
||||
cmbGroupFilter.Items.Insert(0, "--------");
|
||||
cmbGroupFilter.Items.Insert(0, "我的商品");
|
||||
}));
|
||||
}
|
||||
@@ -1386,7 +1397,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
if (noBanWx)
|
||||
data += "&ban_wx=0";
|
||||
if (BaseClass.SaLevel > 0 || BaseClass.UserAuthority.Contains("爆款数据"))
|
||||
data += "&special_prod_type=普通商品,书籍,爆款数据";
|
||||
data += "&special_prod_type=普通商品,爆款数据";
|
||||
|
||||
var html = GetHtml.PostUtf8(url, data);
|
||||
if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))
|
||||
@@ -3410,6 +3421,15 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
attrValue = match + " cm";
|
||||
}
|
||||
}
|
||||
else if (attr.value == "mm")
|
||||
{
|
||||
var propValue = propInfo.values.FirstOrDefault()?.value;
|
||||
var match = BaseRegex.GetMatchRegexString(ref propValue, @"([\d]{1,4})mm");
|
||||
if (!string.IsNullOrEmpty(match))
|
||||
{
|
||||
attrValue = match + " mm";
|
||||
}
|
||||
}
|
||||
else if (attr.value.Contains("岁以上") && attr.value.Contains("个月以上"))
|
||||
{
|
||||
attrValue = "7 岁以上";
|
||||
@@ -3698,6 +3718,8 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
attrValue = "100 g";
|
||||
else if (attr.value == "cm")
|
||||
attrValue = "20 cm";
|
||||
else if (attr.value == "mm")
|
||||
attrValue = "20 mm";
|
||||
else if (attr.value.Contains("岁以上") && attr.value.Contains("个月以上"))
|
||||
attrValue = "7 岁以上";
|
||||
else if (attr.value == "只;个")
|
||||
@@ -5434,6 +5456,11 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
if ((BaseClass.UserAuthority.Contains("商品采集") || BaseClass.UserAuthority.Contains("商品采集")) &&
|
||||
cmbHot.Text != "爆款数据" && !BaseClass.UserAuthority.Contains("货源选择"))
|
||||
data += "&add_user_name=" + (BaseClass.GroupId == 3 ? BaseClass.UserName : BaseClass.ParentUserName);
|
||||
|
||||
if (!BaseClass.UserAuthority.Contains("学员数据") && !BaseClass.ParentAuthority.Contains("学员数据") && cmbSourceType.Text.Contains("学员数据"))
|
||||
{
|
||||
cmbSourceType.Text = cmbSourceType.Text.Replace("学员数据", "");
|
||||
}
|
||||
// 如果指定只有自己采集的商品,则只会随机自己采集的商品
|
||||
else if ((cmbSourceType.Text.Trim().Contains("多多商品") || cmbSourceType.Text.Trim().Contains("1688商品") || cmbSourceType.Text.Trim().Contains("微信商品")) &&
|
||||
cmbSourceType.Text.Trim().Replace("多多商品", "").Replace("1688商品", "").Replace("微信商品", "").Trim(',').IsNullOrEmpty())
|
||||
@@ -5448,30 +5475,12 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
.Replace("多多商品", "机会商品,多多外部数据").Replace("1688商品", "1688厂家,1688外部数据").Replace("微信商品", "微信店采");
|
||||
}
|
||||
|
||||
//if (cmbSourceType.Text != "厂商直采" && cmbSourceType.Text != "1688厂家" && cmbSourceType.Text != "微信店采" && cmbSourceType.Text != "微信小店")
|
||||
|
||||
|
||||
if (btnSwitchCatType.Text == "P")
|
||||
data += "&in_cates=" + (cmbCateFilter1.Text == "全部" ? "" : cmbCateFilter1.Text);
|
||||
else
|
||||
{
|
||||
//var selectCate1 = GlobalConfig.WxCatList.FirstOrDefault(c => c.level == 1 && c.name == cmbCateFilter1.Text.Trim());
|
||||
//var cates2 = GlobalConfig.WxCatList.Where(c => c.f_cat_id == selectCate1?.cat_id).ToList();
|
||||
//var selectCate2 = cates2.FirstOrDefault(c => c.level == 2 && c.name == cmbCateFilter2.Text.Trim());
|
||||
//var cates3 = GlobalConfig.WxCatList.Where(c => c.f_cat_id == selectCate2?.cat_id).ToList();
|
||||
//var selectCate3 = cates3.FirstOrDefault(c => c.level == 3 && c.name == cmbCateFilter3.Text.Trim());
|
||||
|
||||
//if (!string.IsNullOrEmpty(cmbCateFilter1.Text) && selectCate1 != null)
|
||||
// data += "&wx_cat_1=" + selectCate1.cat_id;
|
||||
//else if (chkSkipQualification.Checked)
|
||||
//{
|
||||
// // 厂商直采普通店铺不要随特殊商品
|
||||
// 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(cmbCateFilter2.Text) && selectCate2 != null)
|
||||
// data += "&wx_cat_2=" + selectCate2.cat_id;
|
||||
//if (!string.IsNullOrEmpty(cmbCateFilter3.Text) && selectCate3 != null)
|
||||
// data += "&wx_cat_3=" + selectCate3.cat_id;
|
||||
|
||||
var 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();
|
||||
var selectCate2 = cates2.Where(c => c.level == 2 && (";" + cmbCateFilter2.Text.Trim() + ";").Contains(";" + c.name + ";")).ToList();
|
||||
@@ -5496,12 +5505,12 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
// 爆款数据商品
|
||||
// 不为空搜内容
|
||||
if (!string.IsNullOrWhiteSpace(cmbHot.Text.Trim()))
|
||||
data += "&special_prod_type=" + cmbHot.Text.Replace("普通商品", "普通商品,书籍");
|
||||
data += "&special_prod_type=" + cmbHot.Text;
|
||||
// 为空按照权限搜
|
||||
else if (BaseClass.SaLevel > 0 || BaseClass.UserAuthority.Contains("爆款数据"))
|
||||
data += "&special_prod_type=爆款数据,普通商品,书籍";
|
||||
data += "&special_prod_type=爆款数据,普通商品";
|
||||
else
|
||||
data += "&special_prod_type=普通商品,书籍";
|
||||
data += "&special_prod_type=普通商品";
|
||||
|
||||
// 聚水潭商品处理条件校验
|
||||
data += "&is_supplier_prod_ok=" + cmbJstInitSet.Text.Trim();
|
||||
@@ -5525,8 +5534,8 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
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"))
|
||||
// html = GetHtml.PostUtf8(url, data);
|
||||
if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))
|
||||
{
|
||||
Invoke(new Action(() =>
|
||||
|
||||
+175
-120
@@ -71,22 +71,20 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
this.btnClearDgv = new DevComponents.DotNetBar.PanelEx();
|
||||
this.btnSetPreSale = new DevComponents.DotNetBar.PanelEx();
|
||||
this.ucGroupBoxEx4 = new TemuKJD.UserComponent.UcGroupBoxEx(this.components);
|
||||
this.label9 = new System.Windows.Forms.Label();
|
||||
this.label5 = new System.Windows.Forms.Label();
|
||||
this.chkSearchPromotionLink = new TemuKJD.UserComponent.UcCheckBox(this.components);
|
||||
this.cmbOnSaleStatus = new System.Windows.Forms.ComboBox();
|
||||
this.dtpEndTime = new System.Windows.Forms.DateTimePicker();
|
||||
this.chkProdTime = new TemuKJD.UserComponent.UcCheckBox(this.components);
|
||||
this.dtpStartTime = new System.Windows.Forms.DateTimePicker();
|
||||
this.cmbPreType = new System.Windows.Forms.ComboBox();
|
||||
this.label3 = new System.Windows.Forms.Label();
|
||||
this.txtIdFilter = new System.Windows.Forms.TextBox();
|
||||
this.lblIdFilter = new System.Windows.Forms.Label();
|
||||
this.btnStopSearch = new DevComponents.DotNetBar.PanelEx();
|
||||
this.txtPageEnd = new System.Windows.Forms.TextBox();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.txtProductName = new System.Windows.Forms.TextBox();
|
||||
this.label11 = new System.Windows.Forms.Label();
|
||||
this.btnClearFilter = new DevComponents.DotNetBar.PanelEx();
|
||||
this.txtExtCodeFilter = new System.Windows.Forms.TextBox();
|
||||
this.lblExtCodeFilter = new System.Windows.Forms.Label();
|
||||
this.btnSearchProd = new DevComponents.DotNetBar.PanelEx();
|
||||
this.label5 = new System.Windows.Forms.Label();
|
||||
this.ucGroupBoxEx1 = new TemuKJD.UserComponent.UcGroupBoxEx(this.components);
|
||||
this.cmbFilterShopGroup = new TemuKJD.UserComponent.UcComboBoxMutiSelect();
|
||||
this.label24 = new System.Windows.Forms.Label();
|
||||
@@ -107,6 +105,12 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
this.pbLoadingShop = new System.Windows.Forms.PictureBox();
|
||||
this.txtPageBegin = new System.Windows.Forms.TextBox();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.txtIdFilter = new System.Windows.Forms.TextBox();
|
||||
this.label11 = new System.Windows.Forms.Label();
|
||||
this.lblIdFilter = new System.Windows.Forms.Label();
|
||||
this.txtProductName = new System.Windows.Forms.TextBox();
|
||||
this.lblExtCodeFilter = new System.Windows.Forms.Label();
|
||||
this.txtExtCodeFilter = new System.Windows.Forms.TextBox();
|
||||
this.dgvShop = new TemuKJD.UserComponent.DataGridViewEx();
|
||||
this.colSelect = new System.Windows.Forms.DataGridViewCheckBoxColumn();
|
||||
this.colShopLoginName = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
@@ -125,8 +129,6 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
this.pbLoading = new System.Windows.Forms.PictureBox();
|
||||
this.chkTestNoAuditUpload = new TemuKJD.UserComponent.UcCheckBox(this.components);
|
||||
this.dgvSelectProduct = new TemuKJD.UserComponent.DataGridViewEx();
|
||||
this.splitContainer4 = new System.Windows.Forms.SplitContainer();
|
||||
this.statusBar = new TemuKJD.UserControls.StatusBarUserControl();
|
||||
this.colCheck = new System.Windows.Forms.DataGridViewCheckBoxColumn();
|
||||
this.colSelectId = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colSupplierId = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
@@ -154,6 +156,8 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
this.ColDelete = new System.Windows.Forms.DataGridViewLinkColumn();
|
||||
this.colAddTime = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colOpResult = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.splitContainer4 = new System.Windows.Forms.SplitContainer();
|
||||
this.statusBar = new TemuKJD.UserControls.StatusBarUserControl();
|
||||
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
|
||||
this.splitContainer1.Panel1.SuspendLayout();
|
||||
this.splitContainer1.Panel2.SuspendLayout();
|
||||
@@ -708,22 +712,18 @@ 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.label5);
|
||||
this.ucGroupBoxEx4.Controls.Add(this.chkSearchPromotionLink);
|
||||
this.ucGroupBoxEx4.Controls.Add(this.cmbOnSaleStatus);
|
||||
this.ucGroupBoxEx4.Controls.Add(this.dtpStartTime);
|
||||
this.ucGroupBoxEx4.Controls.Add(this.cmbPreType);
|
||||
this.ucGroupBoxEx4.Controls.Add(this.label3);
|
||||
this.ucGroupBoxEx4.Controls.Add(this.txtIdFilter);
|
||||
this.ucGroupBoxEx4.Controls.Add(this.lblIdFilter);
|
||||
this.ucGroupBoxEx4.Controls.Add(this.btnStopSearch);
|
||||
this.ucGroupBoxEx4.Controls.Add(this.txtPageEnd);
|
||||
this.ucGroupBoxEx4.Controls.Add(this.label2);
|
||||
this.ucGroupBoxEx4.Controls.Add(this.txtProductName);
|
||||
this.ucGroupBoxEx4.Controls.Add(this.label11);
|
||||
this.ucGroupBoxEx4.Controls.Add(this.btnClearFilter);
|
||||
this.ucGroupBoxEx4.Controls.Add(this.txtExtCodeFilter);
|
||||
this.ucGroupBoxEx4.Controls.Add(this.lblExtCodeFilter);
|
||||
this.ucGroupBoxEx4.Controls.Add(this.btnSearchProd);
|
||||
this.ucGroupBoxEx4.Controls.Add(this.label5);
|
||||
this.ucGroupBoxEx4.Controls.Add(this.chkProdTime);
|
||||
this.ucGroupBoxEx4.Location = new System.Drawing.Point(186, 2);
|
||||
this.ucGroupBoxEx4.Name = "ucGroupBoxEx4";
|
||||
this.ucGroupBoxEx4.Size = new System.Drawing.Size(410, 165);
|
||||
@@ -731,10 +731,32 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
this.ucGroupBoxEx4.TabStop = false;
|
||||
this.ucGroupBoxEx4.Text = "商品查询";
|
||||
//
|
||||
// label9
|
||||
//
|
||||
this.label9.AutoSize = true;
|
||||
this.label9.Location = new System.Drawing.Point(17, 144);
|
||||
this.label9.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0);
|
||||
this.label9.Name = "label9";
|
||||
this.label9.Size = new System.Drawing.Size(32, 17);
|
||||
this.label9.TabIndex = 988;
|
||||
this.label9.Text = "结束";
|
||||
this.label9.Visible = false;
|
||||
//
|
||||
// label5
|
||||
//
|
||||
this.label5.AutoSize = true;
|
||||
this.label5.Location = new System.Drawing.Point(14, 61);
|
||||
this.label5.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0);
|
||||
this.label5.Name = "label5";
|
||||
this.label5.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
|
||||
this.label5.Size = new System.Drawing.Size(56, 17);
|
||||
this.label5.TabIndex = 818;
|
||||
this.label5.Text = "商品状态";
|
||||
//
|
||||
// chkSearchPromotionLink
|
||||
//
|
||||
this.chkSearchPromotionLink.AutoSize = true;
|
||||
this.chkSearchPromotionLink.Location = new System.Drawing.Point(231, 61);
|
||||
this.chkSearchPromotionLink.Location = new System.Drawing.Point(17, 91);
|
||||
this.chkSearchPromotionLink.Name = "chkSearchPromotionLink";
|
||||
this.chkSearchPromotionLink.Size = new System.Drawing.Size(147, 21);
|
||||
this.chkSearchPromotionLink.TabIndex = 827;
|
||||
@@ -752,7 +774,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
"审核待处理",
|
||||
"草稿箱",
|
||||
"回收站"});
|
||||
this.cmbOnSaleStatus.Location = new System.Drawing.Point(68, 59);
|
||||
this.cmbOnSaleStatus.Location = new System.Drawing.Point(71, 57);
|
||||
this.cmbOnSaleStatus.Name = "cmbOnSaleStatus";
|
||||
this.cmbOnSaleStatus.Size = new System.Drawing.Size(134, 25);
|
||||
this.cmbOnSaleStatus.TabIndex = 817;
|
||||
@@ -760,6 +782,38 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
this.cmbOnSaleStatus.SelectedIndexChanged += new System.EventHandler(this.cmbOnSaleStatus_SelectedIndexChanged);
|
||||
this.cmbOnSaleStatus.TextChanged += new System.EventHandler(this.cmbOnSaleStatus_TextChanged);
|
||||
//
|
||||
// dtpEndTime
|
||||
//
|
||||
this.dtpEndTime.CustomFormat = "yyyy-MM-dd HH:mm";
|
||||
this.dtpEndTime.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
|
||||
this.dtpEndTime.Location = new System.Drawing.Point(49, 141);
|
||||
this.dtpEndTime.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
|
||||
this.dtpEndTime.Name = "dtpEndTime";
|
||||
this.dtpEndTime.Size = new System.Drawing.Size(134, 23);
|
||||
this.dtpEndTime.TabIndex = 986;
|
||||
this.dtpEndTime.Visible = false;
|
||||
//
|
||||
// chkProdTime
|
||||
//
|
||||
this.chkProdTime.AutoSize = true;
|
||||
this.chkProdTime.Location = new System.Drawing.Point(211, 59);
|
||||
this.chkProdTime.Name = "chkProdTime";
|
||||
this.chkProdTime.Size = new System.Drawing.Size(60, 21);
|
||||
this.chkProdTime.TabIndex = 837;
|
||||
this.chkProdTime.Text = "时间>";
|
||||
this.chkProdTime.UseVisualStyleBackColor = true;
|
||||
this.chkProdTime.CheckedChanged += new System.EventHandler(this.chkProdTime_CheckedChanged);
|
||||
//
|
||||
// dtpStartTime
|
||||
//
|
||||
this.dtpStartTime.CustomFormat = "yyyy-MM-dd HH:mm";
|
||||
this.dtpStartTime.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
|
||||
this.dtpStartTime.Location = new System.Drawing.Point(262, 58);
|
||||
this.dtpStartTime.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
|
||||
this.dtpStartTime.Name = "dtpStartTime";
|
||||
this.dtpStartTime.Size = new System.Drawing.Size(134, 23);
|
||||
this.dtpStartTime.TabIndex = 985;
|
||||
//
|
||||
// cmbPreType
|
||||
//
|
||||
this.cmbPreType.FormattingEnabled = true;
|
||||
@@ -767,7 +821,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
"",
|
||||
"预售",
|
||||
"非预售"});
|
||||
this.cmbPreType.Location = new System.Drawing.Point(262, 25);
|
||||
this.cmbPreType.Location = new System.Drawing.Point(263, 25);
|
||||
this.cmbPreType.Name = "cmbPreType";
|
||||
this.cmbPreType.Size = new System.Drawing.Size(134, 25);
|
||||
this.cmbPreType.TabIndex = 807;
|
||||
@@ -784,27 +838,6 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
this.label3.TabIndex = 806;
|
||||
this.label3.Text = "预售状态";
|
||||
//
|
||||
// txtIdFilter
|
||||
//
|
||||
this.txtIdFilter.Font = new System.Drawing.Font("微软雅黑", 10F);
|
||||
this.txtIdFilter.Location = new System.Drawing.Point(262, 93);
|
||||
this.txtIdFilter.Margin = new System.Windows.Forms.Padding(0, 2, 0, 2);
|
||||
this.txtIdFilter.Name = "txtIdFilter";
|
||||
this.txtIdFilter.Size = new System.Drawing.Size(134, 25);
|
||||
this.txtIdFilter.TabIndex = 652;
|
||||
this.txtIdFilter.Visible = false;
|
||||
//
|
||||
// lblIdFilter
|
||||
//
|
||||
this.lblIdFilter.AutoSize = true;
|
||||
this.lblIdFilter.Location = new System.Drawing.Point(242, 97);
|
||||
this.lblIdFilter.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0);
|
||||
this.lblIdFilter.Name = "lblIdFilter";
|
||||
this.lblIdFilter.Size = new System.Drawing.Size(21, 17);
|
||||
this.lblIdFilter.TabIndex = 651;
|
||||
this.lblIdFilter.Text = "ID";
|
||||
this.lblIdFilter.Visible = false;
|
||||
//
|
||||
// btnStopSearch
|
||||
//
|
||||
this.btnStopSearch.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
@@ -834,7 +867,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
// txtPageEnd
|
||||
//
|
||||
this.txtPageEnd.Font = new System.Drawing.Font("微软雅黑", 10F);
|
||||
this.txtPageEnd.Location = new System.Drawing.Point(68, 25);
|
||||
this.txtPageEnd.Location = new System.Drawing.Point(70, 25);
|
||||
this.txtPageEnd.Margin = new System.Windows.Forms.Padding(0, 2, 0, 2);
|
||||
this.txtPageEnd.Name = "txtPageEnd";
|
||||
this.txtPageEnd.Size = new System.Drawing.Size(134, 25);
|
||||
@@ -845,7 +878,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
// label2
|
||||
//
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Location = new System.Drawing.Point(13, 29);
|
||||
this.label2.Location = new System.Drawing.Point(14, 30);
|
||||
this.label2.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
|
||||
@@ -853,27 +886,6 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
this.label2.TabIndex = 793;
|
||||
this.label2.Text = "查询页数";
|
||||
//
|
||||
// txtProductName
|
||||
//
|
||||
this.txtProductName.Font = new System.Drawing.Font("微软雅黑", 10F);
|
||||
this.txtProductName.Location = new System.Drawing.Point(68, 93);
|
||||
this.txtProductName.Margin = new System.Windows.Forms.Padding(0, 2, 0, 2);
|
||||
this.txtProductName.Name = "txtProductName";
|
||||
this.txtProductName.Size = new System.Drawing.Size(134, 25);
|
||||
this.txtProductName.TabIndex = 784;
|
||||
this.txtProductName.Visible = false;
|
||||
//
|
||||
// label11
|
||||
//
|
||||
this.label11.AutoSize = true;
|
||||
this.label11.Location = new System.Drawing.Point(37, 99);
|
||||
this.label11.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0);
|
||||
this.label11.Name = "label11";
|
||||
this.label11.Size = new System.Drawing.Size(32, 17);
|
||||
this.label11.TabIndex = 785;
|
||||
this.label11.Text = "标题";
|
||||
this.label11.Visible = false;
|
||||
//
|
||||
// btnClearFilter
|
||||
//
|
||||
this.btnClearFilter.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
@@ -900,27 +912,6 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
this.btnClearFilter.Text = "清空条件";
|
||||
this.btnClearFilter.Click += new System.EventHandler(this.btnClearFilter_Click);
|
||||
//
|
||||
// txtExtCodeFilter
|
||||
//
|
||||
this.txtExtCodeFilter.Font = new System.Drawing.Font("微软雅黑", 10F);
|
||||
this.txtExtCodeFilter.Location = new System.Drawing.Point(68, 127);
|
||||
this.txtExtCodeFilter.Margin = new System.Windows.Forms.Padding(0, 2, 0, 2);
|
||||
this.txtExtCodeFilter.Name = "txtExtCodeFilter";
|
||||
this.txtExtCodeFilter.Size = new System.Drawing.Size(134, 25);
|
||||
this.txtExtCodeFilter.TabIndex = 555;
|
||||
this.txtExtCodeFilter.Visible = false;
|
||||
//
|
||||
// lblExtCodeFilter
|
||||
//
|
||||
this.lblExtCodeFilter.AutoSize = true;
|
||||
this.lblExtCodeFilter.Location = new System.Drawing.Point(37, 131);
|
||||
this.lblExtCodeFilter.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0);
|
||||
this.lblExtCodeFilter.Name = "lblExtCodeFilter";
|
||||
this.lblExtCodeFilter.Size = new System.Drawing.Size(32, 17);
|
||||
this.lblExtCodeFilter.TabIndex = 560;
|
||||
this.lblExtCodeFilter.Text = "货号";
|
||||
this.lblExtCodeFilter.Visible = false;
|
||||
//
|
||||
// btnSearchProd
|
||||
//
|
||||
this.btnSearchProd.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
@@ -945,17 +936,6 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
this.btnSearchProd.Text = "商品查询";
|
||||
this.btnSearchProd.Click += new System.EventHandler(this.btnSearchProd_Click);
|
||||
//
|
||||
// label5
|
||||
//
|
||||
this.label5.AutoSize = true;
|
||||
this.label5.Location = new System.Drawing.Point(13, 63);
|
||||
this.label5.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0);
|
||||
this.label5.Name = "label5";
|
||||
this.label5.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
|
||||
this.label5.Size = new System.Drawing.Size(56, 17);
|
||||
this.label5.TabIndex = 818;
|
||||
this.label5.Text = "商品状态";
|
||||
//
|
||||
// ucGroupBoxEx1
|
||||
//
|
||||
this.ucGroupBoxEx1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||
@@ -1269,9 +1249,17 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
//
|
||||
// splitContainer2.Panel1
|
||||
//
|
||||
this.splitContainer2.Panel1.Controls.Add(this.label9);
|
||||
this.splitContainer2.Panel1.Controls.Add(this.pbLoadingShop);
|
||||
this.splitContainer2.Panel1.Controls.Add(this.txtPageBegin);
|
||||
this.splitContainer2.Panel1.Controls.Add(this.label1);
|
||||
this.splitContainer2.Panel1.Controls.Add(this.dtpEndTime);
|
||||
this.splitContainer2.Panel1.Controls.Add(this.txtIdFilter);
|
||||
this.splitContainer2.Panel1.Controls.Add(this.label11);
|
||||
this.splitContainer2.Panel1.Controls.Add(this.lblIdFilter);
|
||||
this.splitContainer2.Panel1.Controls.Add(this.txtProductName);
|
||||
this.splitContainer2.Panel1.Controls.Add(this.lblExtCodeFilter);
|
||||
this.splitContainer2.Panel1.Controls.Add(this.txtExtCodeFilter);
|
||||
this.splitContainer2.Panel1.Controls.Add(this.dgvShop);
|
||||
this.splitContainer2.Panel1.Padding = new System.Windows.Forms.Padding(4, 0, 0, 0);
|
||||
//
|
||||
@@ -1321,6 +1309,69 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
this.label1.Text = "开始页";
|
||||
this.label1.Visible = false;
|
||||
//
|
||||
// txtIdFilter
|
||||
//
|
||||
this.txtIdFilter.Font = new System.Drawing.Font("微软雅黑", 10F);
|
||||
this.txtIdFilter.Location = new System.Drawing.Point(138, 71);
|
||||
this.txtIdFilter.Margin = new System.Windows.Forms.Padding(0, 2, 0, 2);
|
||||
this.txtIdFilter.Name = "txtIdFilter";
|
||||
this.txtIdFilter.Size = new System.Drawing.Size(44, 25);
|
||||
this.txtIdFilter.TabIndex = 652;
|
||||
this.txtIdFilter.Visible = false;
|
||||
//
|
||||
// label11
|
||||
//
|
||||
this.label11.AutoSize = true;
|
||||
this.label11.Location = new System.Drawing.Point(17, 77);
|
||||
this.label11.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0);
|
||||
this.label11.Name = "label11";
|
||||
this.label11.Size = new System.Drawing.Size(32, 17);
|
||||
this.label11.TabIndex = 785;
|
||||
this.label11.Text = "标题";
|
||||
this.label11.Visible = false;
|
||||
//
|
||||
// lblIdFilter
|
||||
//
|
||||
this.lblIdFilter.AutoSize = true;
|
||||
this.lblIdFilter.Location = new System.Drawing.Point(117, 75);
|
||||
this.lblIdFilter.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0);
|
||||
this.lblIdFilter.Name = "lblIdFilter";
|
||||
this.lblIdFilter.Size = new System.Drawing.Size(21, 17);
|
||||
this.lblIdFilter.TabIndex = 651;
|
||||
this.lblIdFilter.Text = "ID";
|
||||
this.lblIdFilter.Visible = false;
|
||||
//
|
||||
// txtProductName
|
||||
//
|
||||
this.txtProductName.Font = new System.Drawing.Font("微软雅黑", 10F);
|
||||
this.txtProductName.Location = new System.Drawing.Point(48, 71);
|
||||
this.txtProductName.Margin = new System.Windows.Forms.Padding(0, 2, 0, 2);
|
||||
this.txtProductName.Name = "txtProductName";
|
||||
this.txtProductName.Size = new System.Drawing.Size(43, 25);
|
||||
this.txtProductName.TabIndex = 784;
|
||||
this.txtProductName.Visible = false;
|
||||
//
|
||||
// lblExtCodeFilter
|
||||
//
|
||||
this.lblExtCodeFilter.AutoSize = true;
|
||||
this.lblExtCodeFilter.Location = new System.Drawing.Point(17, 111);
|
||||
this.lblExtCodeFilter.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0);
|
||||
this.lblExtCodeFilter.Name = "lblExtCodeFilter";
|
||||
this.lblExtCodeFilter.Size = new System.Drawing.Size(32, 17);
|
||||
this.lblExtCodeFilter.TabIndex = 560;
|
||||
this.lblExtCodeFilter.Text = "货号";
|
||||
this.lblExtCodeFilter.Visible = false;
|
||||
//
|
||||
// txtExtCodeFilter
|
||||
//
|
||||
this.txtExtCodeFilter.Font = new System.Drawing.Font("微软雅黑", 10F);
|
||||
this.txtExtCodeFilter.Location = new System.Drawing.Point(48, 107);
|
||||
this.txtExtCodeFilter.Margin = new System.Windows.Forms.Padding(0, 2, 0, 2);
|
||||
this.txtExtCodeFilter.Name = "txtExtCodeFilter";
|
||||
this.txtExtCodeFilter.Size = new System.Drawing.Size(134, 25);
|
||||
this.txtExtCodeFilter.TabIndex = 555;
|
||||
this.txtExtCodeFilter.Visible = false;
|
||||
//
|
||||
// dgvShop
|
||||
//
|
||||
this.dgvShop.AllowUserToAddRows = false;
|
||||
@@ -1558,31 +1609,6 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
this.dgvSelectProduct.TabIndex = 187;
|
||||
this.dgvSelectProduct.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvSelectProduct_CellContentClick);
|
||||
//
|
||||
// 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(1346, 26);
|
||||
this.splitContainer4.SplitterDistance = 1165;
|
||||
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(1165, 26);
|
||||
this.statusBar.TabIndex = 2;
|
||||
//
|
||||
// colCheck
|
||||
//
|
||||
this.colCheck.Frozen = true;
|
||||
@@ -1806,6 +1832,31 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
this.colOpResult.ReadOnly = true;
|
||||
this.colOpResult.Width = 240;
|
||||
//
|
||||
// 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(1346, 26);
|
||||
this.splitContainer4.SplitterDistance = 1165;
|
||||
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(1165, 26);
|
||||
this.statusBar.TabIndex = 2;
|
||||
//
|
||||
// WXProdPreSaleForm
|
||||
//
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
||||
@@ -1965,5 +2016,9 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
private System.Windows.Forms.DataGridViewLinkColumn ColDelete;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colAddTime;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colOpResult;
|
||||
private UserComponent.UcCheckBox chkProdTime;
|
||||
private System.Windows.Forms.DateTimePicker dtpStartTime;
|
||||
private System.Windows.Forms.DateTimePicker dtpEndTime;
|
||||
private System.Windows.Forms.Label label9;
|
||||
}
|
||||
}
|
||||
@@ -122,41 +122,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
|
||||
dgvSelectProduct.Columns["colSkuFakeImg"].Visible = false;
|
||||
|
||||
//foreach (var selectProd in upload_draft_product_lst)
|
||||
//{
|
||||
// int rowIndex = 0;
|
||||
// this.dgvSelectProduct.Rows.Insert(rowIndex,
|
||||
// true,
|
||||
// selectProd.id,
|
||||
// selectProd.shop_id,
|
||||
// selectProd.shop_account,
|
||||
// "登录",
|
||||
// "进店",
|
||||
// BaseClass.SaLevel > 0 ? selectProd.spu_id : selectProd.spu_id.ParseToString().GetHashCode().ParseToString().Trim('-'),
|
||||
// selectProd.skc_id,
|
||||
// selectProd.main_img,
|
||||
// DataGridViewExtension.defaultBitmap,
|
||||
// "",
|
||||
// null,
|
||||
// selectProd.product_name, // 用户端显示商品原名
|
||||
// selectProd.cat_name,
|
||||
// BaseClass.SaLevel > 0 ? selectProd.ext_code : selectProd.ext_code.ParseToString().GetHashCode().ParseToString().Trim('-'),
|
||||
// selectProd.status,
|
||||
// selectProd.draft_id,
|
||||
// selectProd.notes,
|
||||
// (selectProd.user_notes + " 编辑").Trim(),
|
||||
// "删除",
|
||||
// selectProd.add_time.ToString("yy-MM-dd HH:mm:ss"),
|
||||
// "");
|
||||
|
||||
// dgvSelectProduct.Rows[rowIndex].Height = 60;
|
||||
|
||||
// int maxRowCount = 10000;
|
||||
// while (dgvSelectProduct.Rows.Count > maxRowCount)
|
||||
// {
|
||||
// dgvSelectProduct.Rows.RemoveAt(maxRowCount);
|
||||
// }
|
||||
//}
|
||||
dtpStartTime.Value = DateTime.Now.Date.AddMonths(-1);
|
||||
|
||||
//#if DEBUG
|
||||
if (BaseClass.SaLevel == 1)
|
||||
@@ -779,11 +745,19 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
//this.statusBar.pgbTaskProgress.Maximum = lstTemuDBProductSelect.Count;
|
||||
//this.statusBar.UpdateProgressBar(0);
|
||||
}));
|
||||
bool istTimeOver = false;
|
||||
List<Task> tList = new List<Task>();
|
||||
foreach (JObject prod in prodObjs["productList"])
|
||||
{
|
||||
string StatusStr = "";
|
||||
int rowIndex = 0;
|
||||
var pStr = JsonHelper.SerializeObject(prod);
|
||||
var editTime = BaseClass.StampToDateTime(prod["editTime"].ParseToInt());
|
||||
if (chkProdTime.Checked && editTime < dtpStartTime.Value)
|
||||
{
|
||||
istTimeOver = true;
|
||||
break;
|
||||
}
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
decimal? minPrice = prod["skuList"]?.Min(sk => sk["price"].ParseToDecimal() / 100);
|
||||
@@ -791,7 +765,6 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
var prodId = prod["productId"].ParseToString();
|
||||
if (dgvSelectProduct.Rows.Cast<DataGridViewRow>().Any(r => r.Cells["colDraftId"].ParseToString() == prodId))
|
||||
{
|
||||
|
||||
}
|
||||
StatusStr = "其他";
|
||||
if (prod["status"].ParseToInt() == 5)
|
||||
@@ -839,8 +812,8 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
"", // 备注
|
||||
"",
|
||||
"删除",
|
||||
BaseClass.StampToDateTime(prod["lastEditDraftTime"].ParseToInt()).ToString("yy-MM-dd HH:mm"),
|
||||
"");
|
||||
editTime.ToString("yy-MM-dd HH:mm"),
|
||||
"");
|
||||
|
||||
dgvSelectProduct.Rows[rowIndex].Height = 60;
|
||||
Color color = Color.Red;
|
||||
@@ -856,37 +829,56 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
dgvSelectProduct.Rows[rowIndex].Cells["colPreSale"].Style.ForeColor = dgvSelectProduct.Rows[rowIndex].Cells["colPreSale"].Value.ParseToString().Contains("预售") ? Color.Green : Color.Blue;
|
||||
}));
|
||||
|
||||
// 获取商品链接
|
||||
if (StatusStr.ParseToString().StartsWith("在售") && chkSearchPromotionLink.Checked == true)
|
||||
{
|
||||
Task.Run(() => { });
|
||||
var PromotionRst = WXPreSale.GetPromotionLink(shop, prod["productId"].ParseToString(), page);
|
||||
Thread.Sleep(Randomx.GetId(50, 150));
|
||||
if (PromotionRst.ParseToString().Contains("\"code\":0"))
|
||||
var t = Task.Run(() =>
|
||||
{
|
||||
var shareUrl = BaseRegex.GetStringJson(ref PromotionRst, "shareUrl");
|
||||
var shortLink = BaseRegex.GetStringJson(ref PromotionRst, "shortLink");
|
||||
if (!string.IsNullOrEmpty(shareUrl))
|
||||
var PromotionRst = WXPreSale.GetPromotionLink(shop, prod["productId"].ParseToString(), page);
|
||||
Thread.Sleep(Randomx.GetId(50, 150));
|
||||
if (PromotionRst.ParseToString().Contains("\"code\":0"))
|
||||
{
|
||||
Invoke(new Action(() => {
|
||||
dgvSelectProduct.Rows[rowIndex].Cells["colPromotionLink"].Value = shareUrl;
|
||||
}));
|
||||
var shareUrl = BaseRegex.GetStringJson(ref PromotionRst, "shareUrl");
|
||||
var shortLink = BaseRegex.GetStringJson(ref PromotionRst, "shortLink");
|
||||
if (!string.IsNullOrEmpty(shareUrl))
|
||||
{
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
dgvSelectProduct.Rows[rowIndex].Cells["colPromotionLink"].Value = shareUrl;
|
||||
}));
|
||||
}
|
||||
else
|
||||
{
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
dgvSelectProduct.Rows[rowIndex].Cells["colPromotionLink"].Value = "链接获取失败";
|
||||
}));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Invoke(new Action(() => {
|
||||
dgvSelectProduct.Rows[rowIndex].Cells["colPromotionLink"].Value = "链接获取失败";
|
||||
var errMsg = BaseRegex.GetStringJsonByRegs(ref PromotionRst, PromotionRst, "errMsg", "errorMsg", "err_msg", "error_msg", "errormsg");
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
dgvSelectProduct.Rows[rowIndex].Cells["colPromotionLink"].Value = errMsg;
|
||||
}));
|
||||
}
|
||||
}
|
||||
else
|
||||
});
|
||||
tList.Add(t);
|
||||
while (tList.Count >= 5)
|
||||
{
|
||||
var errMsg = BaseRegex.GetStringJsonByRegs(ref PromotionRst, PromotionRst, "errMsg", "errorMsg", "err_msg", "error_msg", "errormsg");
|
||||
Invoke(new Action(() => {
|
||||
dgvSelectProduct.Rows[rowIndex].Cells["colPromotionLink"].Value = errMsg;
|
||||
}));
|
||||
Thread.Sleep(200);
|
||||
tList.RemoveAll(ta => ta.IsFaulted || ta.IsCanceled || ta.IsCompleted);
|
||||
}
|
||||
}
|
||||
}
|
||||
while (tList.Count > 0)
|
||||
{
|
||||
Thread.Sleep(200);
|
||||
tList.RemoveAll(ta => ta.IsFaulted || ta.IsCanceled || ta.IsCompleted);
|
||||
}
|
||||
if (istTimeOver)
|
||||
break;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
@@ -1799,7 +1791,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
}
|
||||
});
|
||||
tList.Add(t);
|
||||
while(tList.Count > 20)
|
||||
while(tList.Count >= 20)
|
||||
{
|
||||
Thread.Sleep(200);
|
||||
tList.RemoveAll(ta => ta.IsFaulted || ta.IsCanceled || ta.IsCompleted);
|
||||
@@ -2019,7 +2011,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
}
|
||||
});
|
||||
tList.Add(t);
|
||||
while (tList.Count > 20)
|
||||
while (tList.Count >= 20)
|
||||
{
|
||||
Thread.Sleep(200);
|
||||
tList.RemoveAll(ta => ta.IsFaulted || ta.IsCanceled || ta.IsCompleted);
|
||||
@@ -2032,6 +2024,11 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void chkProdTime_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public class WXPreSale
|
||||
|
||||
@@ -560,7 +560,6 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
}
|
||||
if (!string.IsNullOrEmpty(cmbExportToOutServer.Text) && cmbGroupFilter.Text != "我的商品") // 用户自己的商品没有聚水潭商品,不用考虑是否导出
|
||||
{
|
||||
////data += "&has_send_to_out_server=" + (cmbExportToOutServer.Text.Trim() == "是").ParseToString().ToLower();
|
||||
//if (cmbExportToOutServer.Text.Trim() == "是")
|
||||
// data += "&send_to_out_server=1";
|
||||
//else if (cmbExportToOutServer.Text.Trim() == "否")
|
||||
|
||||
@@ -441,7 +441,6 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
}
|
||||
if (!string.IsNullOrEmpty(cmbExportToOutServer.Text))
|
||||
{
|
||||
//data += "&has_send_to_out_server=" + (cmbExportToOutServer.Text.Trim() == "是").ParseToString().ToLower();
|
||||
if (cmbExportToOutServer.Text.Trim() == "是")
|
||||
data += "&send_to_out_server=1";
|
||||
else if (cmbExportToOutServer.Text.Trim() == "否")
|
||||
|
||||
@@ -524,47 +524,6 @@ namespace TemuKJD.WXForms.ShopForms
|
||||
sb.Append("CefSharp.BindObjectAsync('shopObj');");
|
||||
sb.Append("})();");
|
||||
cefWebBrowser.GetBrowser().MainFrame.EvaluateScriptAsync(sb.ToString());
|
||||
|
||||
// 库存上传按钮 pdd不需要
|
||||
if (1 == 2 && currentUrl.StartsWith("https://mms.pinduoduo.com/goods/goods_list"))
|
||||
{
|
||||
Task.Run(() => {
|
||||
string sAddInputJs = @"
|
||||
document.addEventListener('wheel', function(event) {
|
||||
// 检查滚动方向
|
||||
//if (event.deltaY < 0) {
|
||||
// console.log('向上滚动');
|
||||
//} else {
|
||||
// console.log('向下滚动');
|
||||
//}
|
||||
// 或者使用 event.deltaX 来检查水平滚动
|
||||
//if (event.deltaX < 0) {
|
||||
// console.log('向左滚动');
|
||||
//} else if (event.deltaX > 0) {
|
||||
// console.log('向右滚动');
|
||||
//}
|
||||
|
||||
// 阻止默认的滚动行为(如果有需要)
|
||||
//event.preventDefault();
|
||||
|
||||
addGetProdButton();
|
||||
});
|
||||
addGetProdButton();
|
||||
|
||||
function addGetProdButton() {
|
||||
var productLst = document.getElementsByClassName('goods-id');
|
||||
for(i=0; i<productLst.length; i++) {
|
||||
var addBtnItem = productLst[i].parentElement.parentElement;
|
||||
if (addBtnItem.parentElement.innerHTML.indexOf('库存上传') < 0 && addBtnItem.parentElement.innerHTML.indexOf('ID:') >= 0) {
|
||||
var sSpuId = addBtnItem.innerText.replace('\r','').replace('\n','').replace('ID: ', '');
|
||||
addBtnItem.outerHTML = addBtnItem.outerHTML.replace(""<section>"",""<section style=\""display:inline; float:left; \"">"")
|
||||
.replace(""</section>"", ""</section><input type=\""button\"" style=\""display:inline; width:60px; margin-left:10px; margin-top:0px; cursor:pointer; border:1px solid\"" value =\""库存上传\"" onclick=\""shopObj.getThirdProduct('"" + sSpuId + ""','" + this.shop.ShopId + @"')\"">"");
|
||||
}
|
||||
}
|
||||
}";
|
||||
cefWebBrowser.GetBrowser().MainFrame.EvaluateScriptAsync(sAddInputJs);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
//public Func<object, string, string, request, bool> BeforeResourceLoadEvent; // sender, requestUrl, postData, request, true(表示取消执行)
|
||||
|
||||
+32
-33
@@ -70,6 +70,8 @@
|
||||
this.pbLoading = new System.Windows.Forms.PictureBox();
|
||||
this.btnImport = new TemuKJD.UserControls.ButtonEx();
|
||||
this.dgvShop = new TemuKJD.UserComponent.DataGridViewEx();
|
||||
this.chkAutoDrag = new System.Windows.Forms.CheckBox();
|
||||
this.statusBar = new TemuKJD.UserControls.StatusBarUserControl();
|
||||
this.colSelect = new System.Windows.Forms.DataGridViewCheckBoxColumn();
|
||||
this.colLoginName = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colShopId = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
@@ -99,8 +101,6 @@
|
||||
this.colCopyCookies = new System.Windows.Forms.DataGridViewLinkColumn();
|
||||
this.colEdit = new System.Windows.Forms.DataGridViewLinkColumn();
|
||||
this.colDelete = new System.Windows.Forms.DataGridViewLinkColumn();
|
||||
this.chkAutoDrag = new System.Windows.Forms.CheckBox();
|
||||
this.statusBar = new TemuKJD.UserControls.StatusBarUserControl();
|
||||
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
|
||||
this.splitContainer1.Panel1.SuspendLayout();
|
||||
this.splitContainer1.Panel2.SuspendLayout();
|
||||
@@ -358,7 +358,7 @@
|
||||
this.cmbGroup.DropDownWidth = 1;
|
||||
this.cmbGroup.FormattingEnabled = true;
|
||||
this.cmbGroup.IntegralHeight = false;
|
||||
this.cmbGroup.Location = new System.Drawing.Point(385, 8);
|
||||
this.cmbGroup.Location = new System.Drawing.Point(385, 5);
|
||||
this.cmbGroup.Margin = new System.Windows.Forms.Padding(0, 0, 0, 4);
|
||||
this.cmbGroup.Name = "cmbGroup";
|
||||
this.cmbGroup.Size = new System.Drawing.Size(74, 25);
|
||||
@@ -384,7 +384,7 @@
|
||||
this.cmbNotes.DropDownWidth = 1;
|
||||
this.cmbNotes.FormattingEnabled = true;
|
||||
this.cmbNotes.IntegralHeight = false;
|
||||
this.cmbNotes.Location = new System.Drawing.Point(276, 8);
|
||||
this.cmbNotes.Location = new System.Drawing.Point(276, 5);
|
||||
this.cmbNotes.Margin = new System.Windows.Forms.Padding(0, 0, 0, 4);
|
||||
this.cmbNotes.Name = "cmbNotes";
|
||||
this.cmbNotes.Size = new System.Drawing.Size(74, 25);
|
||||
@@ -517,7 +517,7 @@
|
||||
this.cmbSubAccount.DropDownWidth = 1;
|
||||
this.cmbSubAccount.FormattingEnabled = true;
|
||||
this.cmbSubAccount.IntegralHeight = false;
|
||||
this.cmbSubAccount.Location = new System.Drawing.Point(506, 8);
|
||||
this.cmbSubAccount.Location = new System.Drawing.Point(506, 5);
|
||||
this.cmbSubAccount.Margin = new System.Windows.Forms.Padding(0, 0, 0, 4);
|
||||
this.cmbSubAccount.Name = "cmbSubAccount";
|
||||
this.cmbSubAccount.Size = new System.Drawing.Size(74, 25);
|
||||
@@ -826,6 +826,31 @@
|
||||
this.dgvShop.TabIndex = 5;
|
||||
this.dgvShop.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvShop_CellContentClick);
|
||||
//
|
||||
// chkAutoDrag
|
||||
//
|
||||
this.chkAutoDrag.Anchor = System.Windows.Forms.AnchorStyles.Right;
|
||||
this.chkAutoDrag.AutoSize = true;
|
||||
this.chkAutoDrag.BackColor = System.Drawing.Color.White;
|
||||
this.chkAutoDrag.Location = new System.Drawing.Point(1238, 2);
|
||||
this.chkAutoDrag.Name = "chkAutoDrag";
|
||||
this.chkAutoDrag.Size = new System.Drawing.Size(159, 21);
|
||||
this.chkAutoDrag.TabIndex = 3;
|
||||
this.chkAutoDrag.Text = "登录时自动滑动拼图验证";
|
||||
this.chkAutoDrag.UseVisualStyleBackColor = false;
|
||||
this.chkAutoDrag.Visible = false;
|
||||
this.chkAutoDrag.Click += new System.EventHandler(this.chkAutoDrag_Click);
|
||||
//
|
||||
// statusBar
|
||||
//
|
||||
this.statusBar.BackColor = System.Drawing.Color.White;
|
||||
this.statusBar.Dock = System.Windows.Forms.DockStyle.Bottom;
|
||||
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, -1);
|
||||
this.statusBar.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.statusBar.Name = "statusBar";
|
||||
this.statusBar.Size = new System.Drawing.Size(1394, 29);
|
||||
this.statusBar.TabIndex = 1;
|
||||
//
|
||||
// colSelect
|
||||
//
|
||||
this.colSelect.FillWeight = 26F;
|
||||
@@ -999,7 +1024,6 @@
|
||||
this.colBuyApi.ReadOnly = true;
|
||||
this.colBuyApi.Resizable = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.colBuyApi.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
|
||||
this.colBuyApi.Visible = false;
|
||||
//
|
||||
// colMultiLogin
|
||||
//
|
||||
@@ -1065,31 +1089,6 @@
|
||||
this.colDelete.Name = "colDelete";
|
||||
this.colDelete.ReadOnly = true;
|
||||
//
|
||||
// chkAutoDrag
|
||||
//
|
||||
this.chkAutoDrag.Anchor = System.Windows.Forms.AnchorStyles.Right;
|
||||
this.chkAutoDrag.AutoSize = true;
|
||||
this.chkAutoDrag.BackColor = System.Drawing.Color.White;
|
||||
this.chkAutoDrag.Location = new System.Drawing.Point(1238, 2);
|
||||
this.chkAutoDrag.Name = "chkAutoDrag";
|
||||
this.chkAutoDrag.Size = new System.Drawing.Size(159, 21);
|
||||
this.chkAutoDrag.TabIndex = 3;
|
||||
this.chkAutoDrag.Text = "登录时自动滑动拼图验证";
|
||||
this.chkAutoDrag.UseVisualStyleBackColor = false;
|
||||
this.chkAutoDrag.Visible = false;
|
||||
this.chkAutoDrag.Click += new System.EventHandler(this.chkAutoDrag_Click);
|
||||
//
|
||||
// statusBar
|
||||
//
|
||||
this.statusBar.BackColor = System.Drawing.Color.White;
|
||||
this.statusBar.Dock = System.Windows.Forms.DockStyle.Bottom;
|
||||
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, -1);
|
||||
this.statusBar.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.statusBar.Name = "statusBar";
|
||||
this.statusBar.Size = new System.Drawing.Size(1394, 29);
|
||||
this.statusBar.TabIndex = 1;
|
||||
//
|
||||
// WXShopListForm
|
||||
//
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
||||
@@ -1172,6 +1171,8 @@
|
||||
private DevComponents.DotNetBar.PanelEx btnTopUpOK;
|
||||
private System.Windows.Forms.Label lblShopId;
|
||||
private System.Windows.Forms.Label txtPrice;
|
||||
private DevComponents.DotNetBar.PanelEx btnBatchRenewal;
|
||||
private DevComponents.DotNetBar.PanelEx btnOpenOrderPage;
|
||||
private System.Windows.Forms.DataGridViewCheckBoxColumn colSelect;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colLoginName;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colShopId;
|
||||
@@ -1201,7 +1202,5 @@
|
||||
private System.Windows.Forms.DataGridViewLinkColumn colCopyCookies;
|
||||
private System.Windows.Forms.DataGridViewLinkColumn colEdit;
|
||||
private System.Windows.Forms.DataGridViewLinkColumn colDelete;
|
||||
private DevComponents.DotNetBar.PanelEx btnBatchRenewal;
|
||||
private DevComponents.DotNetBar.PanelEx btnOpenOrderPage;
|
||||
}
|
||||
}
|
||||
@@ -842,7 +842,8 @@ namespace TemuKJD.WXForms.ShopForms
|
||||
WXShopLoginForm shopLoginForm = new WXShopLoginForm(shop);
|
||||
shopLoginForm.openType = EnumOpenType.manage;
|
||||
shopLoginForm.WindowState = FormWindowState.Maximized;
|
||||
shopLoginForm.InitUrl = "https://store.weixin.qq.com/shop/servicemarket/detail?serviceId=3984039898079707139";
|
||||
shopLoginForm.InitUrl = "https://store.weixin.qq.com/shop/servicemarket/detail?serviceId=3984039898079707139"; // 店统领
|
||||
shopLoginForm.InitUrl = "https://store.weixin.qq.com/shop/servicemarket/detail?serviceId=4431685489938137094";
|
||||
shopLoginForm.Show();
|
||||
}
|
||||
break;
|
||||
|
||||
+1
-1
@@ -144,7 +144,7 @@
|
||||
this.ucCheckBox2.Name = "ucCheckBox2";
|
||||
this.ucCheckBox2.Size = new System.Drawing.Size(51, 21);
|
||||
this.ucCheckBox2.TabIndex = 1;
|
||||
this.ucCheckBox2.Text = "采购";
|
||||
this.ucCheckBox2.Text = "拍单";
|
||||
this.ucCheckBox2.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// lblForbiddenPage
|
||||
|
||||
@@ -242,6 +242,7 @@ namespace TemuKJD.WXForms.ShopForms
|
||||
{
|
||||
this.flowLayoutPanel1.Controls.Clear();
|
||||
this.flowLayoutPanel1.Controls.Add(new UcCheckBox() { Name = "客服", Text = "客服", AutoSize = true });
|
||||
this.flowLayoutPanel1.Controls.Add(new UcCheckBox() { Name = "拍单", Text = "拍单", AutoSize = true });
|
||||
this.flowLayoutPanel1.Controls.Add(new Label() { Text = "-------------------------------------", AutoSize = true });
|
||||
//this.flowLayoutPanel1.Controls.Add(new UcCheckBox() { Name = "采购", Text = "采购", AutoSize = true });
|
||||
List<string> subUserNoAuthorityPageNames = new List<string>() { "子账号管理", "店铺地址管理", "充值二维码", "1688商品采集", "多多商品采集" };
|
||||
|
||||
Reference in new issue
Block a user