新增营销工具设置三种优惠券
This commit is contained in:
1 parent
19af531572
commit
0210b76c45
28 files changed
+4697
-557
No files matched your search
+11
-11
@@ -30,6 +30,7 @@
|
||||
{
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(DbProductSelectEditNotesForm));
|
||||
this.panel2 = new System.Windows.Forms.Panel();
|
||||
this.label7 = new System.Windows.Forms.Label();
|
||||
this.btnOk = new DevComponents.DotNetBar.PanelEx();
|
||||
this.cmbUserNotes = new System.Windows.Forms.ComboBox();
|
||||
this.cmbStatus = new System.Windows.Forms.ComboBox();
|
||||
@@ -49,7 +50,6 @@
|
||||
this.pictureBox1 = new System.Windows.Forms.PictureBox();
|
||||
this.label8 = new System.Windows.Forms.Label();
|
||||
this.txtNotes = new DevComponents.DotNetBar.Controls.TextBoxX();
|
||||
this.label7 = new System.Windows.Forms.Label();
|
||||
this.panel2.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
@@ -83,6 +83,15 @@
|
||||
this.panel2.Size = new System.Drawing.Size(391, 546);
|
||||
this.panel2.TabIndex = 1;
|
||||
//
|
||||
// label7
|
||||
//
|
||||
this.label7.AutoSize = true;
|
||||
this.label7.Location = new System.Drawing.Point(32, 464);
|
||||
this.label7.Name = "label7";
|
||||
this.label7.Size = new System.Drawing.Size(56, 17);
|
||||
this.label7.TabIndex = 494;
|
||||
this.label7.Text = "客户备注";
|
||||
//
|
||||
// btnOk
|
||||
//
|
||||
this.btnOk.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
@@ -193,7 +202,7 @@
|
||||
this.lblTextCount.Name = "lblTextCount";
|
||||
this.lblTextCount.Size = new System.Drawing.Size(106, 17);
|
||||
this.lblTextCount.TabIndex = 399;
|
||||
this.lblTextCount.Text = "label5";
|
||||
this.lblTextCount.Text = "lblTextCount";
|
||||
this.lblTextCount.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
||||
//
|
||||
// txtSkc
|
||||
@@ -316,15 +325,6 @@
|
||||
this.txtNotes.Size = new System.Drawing.Size(265, 44);
|
||||
this.txtNotes.TabIndex = 385;
|
||||
//
|
||||
// label7
|
||||
//
|
||||
this.label7.AutoSize = true;
|
||||
this.label7.Location = new System.Drawing.Point(32, 464);
|
||||
this.label7.Name = "label7";
|
||||
this.label7.Size = new System.Drawing.Size(56, 17);
|
||||
this.label7.TabIndex = 494;
|
||||
this.label7.Text = "客户备注";
|
||||
//
|
||||
// DbProductSelectEditNotesForm
|
||||
//
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
||||
|
||||
@@ -71,11 +71,16 @@ namespace TemuKJD.KJDForms.ProductSelectForms
|
||||
if (selectNotesType == SetProductSelectNotesType.DbProduct)
|
||||
{
|
||||
byte[] bytes = Encoding.GetEncoding("gb2312").GetBytes(txtProdName.Text.Trim());
|
||||
if (bytes.Length > 250)
|
||||
if (bytes.Length > 1250)
|
||||
{
|
||||
BaseMsgForm.ShowError("商品标题不能大于250个字符!");
|
||||
return;
|
||||
}
|
||||
if (txtProdName.Text.Trim().Length > 500)
|
||||
{
|
||||
BaseMsgForm.ShowError("商品标题不能大于500个字!");
|
||||
return;
|
||||
}
|
||||
data += "&fission_product_name=" + txtProdName.Text.Trim();
|
||||
}
|
||||
var html = GetHtml.PostUtf8(url, data);
|
||||
@@ -106,9 +111,10 @@ namespace TemuKJD.KJDForms.ProductSelectForms
|
||||
|
||||
private void txtProdName_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
var textNumber = Encoding.GetEncoding("gb2312").GetBytes(txtProdName.Text.Trim()).Length;
|
||||
lblTextCount.Text = "" + textNumber + "/250";
|
||||
if (textNumber > 250)
|
||||
var textNumber = Encoding.GetEncoding("gb2312").GetBytes(txtProdName.Text.Trim()).Length; //250
|
||||
textNumber = txtProdName.Text.Trim().Length; //500
|
||||
lblTextCount.Text = "" + textNumber + "/500";
|
||||
if (textNumber > 500)
|
||||
lblTextCount.ForeColor = Color.Red;
|
||||
else
|
||||
lblTextCount.ForeColor = Color.Gray;
|
||||
|
||||
Reference in new issue
Block a user