temu客户端程序
This commit is contained in:
commit
4aaf264e89
694 files changed
+263780
No files matched your search
@@ -0,0 +1,101 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Drawing;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace LittleRabbit.LittleRabbitForms.SalesCenterForms
|
||||
{
|
||||
public partial class UcCouponAddParam : UserControl
|
||||
{
|
||||
int number = 1;
|
||||
|
||||
public UcCouponAddParam()
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
this.Load += CouponAddParamControl_Load;
|
||||
}
|
||||
|
||||
public UcCouponAddParam(int _number)
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
number = _number;
|
||||
this.Load += CouponAddParamControl_Load;
|
||||
}
|
||||
|
||||
public delegate void CloseCouponAdd(object obj);
|
||||
public event CloseCouponAdd OnClose;
|
||||
|
||||
private void CouponAddParamControl_Load(object sender, EventArgs e)
|
||||
{
|
||||
cmbType.SelectedIndex = cmbUserCountLimited.SelectedIndex = 0;
|
||||
txtName.Text = "新人券" + number;
|
||||
this.dtpStartApplyTime.Value = DateTime.Now.Date;
|
||||
this.dtpEndApplyTime.Value = this.dtpStartApplyTime.Value.AddDays(1).AddSeconds(-1);
|
||||
}
|
||||
|
||||
private void lblClose_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (this.Parent != null)
|
||||
{
|
||||
this.Parent.Controls.Remove(this);
|
||||
OnClose?.Invoke(this);
|
||||
}
|
||||
}
|
||||
|
||||
private void cmbType_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (cmbType.Text == "商品折扣券")
|
||||
{
|
||||
this.lblDiscountText.Text = "折扣";
|
||||
this.lblDiscountText.AutoSize = true;
|
||||
this.lblDiscountText.Width = 32;
|
||||
nudCredit.Minimum = 0.1M;
|
||||
nudCredit.Increment = 0.1M;
|
||||
nudCredit.Maximum = 9.9M;
|
||||
nudCredit.DecimalPlaces = 1;
|
||||
nudCredit.Value = 9.9M;
|
||||
lblCreditText.Text = "折";
|
||||
lblCreditText.Visible = true;
|
||||
nudThresHold.Visible = false;
|
||||
lblThresHold.Visible = false;
|
||||
}
|
||||
else if (cmbType.Text == "商品直减券")
|
||||
{
|
||||
this.lblDiscountText.Text = "直减";
|
||||
this.lblDiscountText.AutoSize = true;
|
||||
this.lblDiscountText.Width = 32;
|
||||
nudCredit.Minimum = 1;
|
||||
nudCredit.Increment = 1;
|
||||
nudCredit.Maximum = 1000;
|
||||
nudCredit.DecimalPlaces = 0;
|
||||
nudCredit.Value = 1;
|
||||
lblCreditText.Text = "元";
|
||||
lblCreditText.Visible = true;
|
||||
nudThresHold.Visible = false;
|
||||
lblThresHold.Visible = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.lblDiscountText.Text = "满";
|
||||
this.lblDiscountText.AutoSize = false;
|
||||
this.lblDiscountText.Width = 16;
|
||||
nudCredit.Minimum = 1;
|
||||
nudCredit.Increment = 1;
|
||||
nudCredit.Maximum = 99999;
|
||||
nudCredit.DecimalPlaces = 0;
|
||||
nudCredit.Value = 1;
|
||||
lblCreditText.Text = "元";
|
||||
lblCreditText.Visible = false;
|
||||
nudThresHold.Visible = true;
|
||||
lblThresHold.Visible = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user