1店铺折扣活动逻辑 2数据库选品上货记录每次提交的draft_id以备后续使用
This commit is contained in:
1 parent
f73f56eea4
commit
85ed4137d2
13 files changed
+861
-104
No files matched your search
@@ -0,0 +1,93 @@
|
||||
using NaiBa.Util.Extension;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace TemuKJD.KJDForms.SalesCenterForms
|
||||
{
|
||||
public partial class UcActivityDiscountCtrl : UserControl
|
||||
{
|
||||
public UcActivityDiscountCtrl()
|
||||
{
|
||||
InitializeComponent();
|
||||
this.Load += UcActivityDiscountCtrl_Load;
|
||||
}
|
||||
|
||||
private void UcActivityDiscountCtrl_Load(object sender, EventArgs e)
|
||||
{
|
||||
this.label1.Text = "设置" + discount.ToString().Trim('0').PadLeft(2, ' ') + "折报名活动库存";
|
||||
}
|
||||
|
||||
private int discount = 90;
|
||||
/// <summary>
|
||||
/// 折扣数值
|
||||
/// </summary>
|
||||
[Description("折扣数值"), Category("UserProperty")]
|
||||
public int Discount
|
||||
{
|
||||
get
|
||||
{
|
||||
return discount;
|
||||
}
|
||||
set
|
||||
{
|
||||
if (discount != value)
|
||||
{
|
||||
discount = value;
|
||||
this.label1.Text = "设置" + discount.ToString().Trim('0').PadLeft(2, ' ') + "折报名活动库存";
|
||||
this.Invalidate();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private int inventory = 10;
|
||||
/// <summary>
|
||||
/// 活动库存
|
||||
/// </summary>
|
||||
[Description("活动库存"), Category("UserProperty")]
|
||||
public int Inventory
|
||||
{
|
||||
get
|
||||
{
|
||||
return inventory;
|
||||
}
|
||||
set
|
||||
{
|
||||
if (inventory != value)
|
||||
{
|
||||
inventory = value;
|
||||
this.numInventory.Value = inventory;
|
||||
this.Invalidate();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[Description("默认库存"), Category("UserProperty")]
|
||||
public bool IsDefaultInventory
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.chkDefaultInventory.Checked;
|
||||
}
|
||||
set
|
||||
{
|
||||
if (this.chkDefaultInventory.Checked != value)
|
||||
{
|
||||
this.chkDefaultInventory.Checked = value;
|
||||
this.Invalidate();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void numInventory_ValueChanged(object sender, EventArgs e)
|
||||
{
|
||||
this.inventory = numInventory.Value.ParseToInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user