UI/特价管理窗口/添加单品特价窗口.cs
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using 收银系统.Data.模型;
namespace 收银系统.UI.特价管理窗口
{
public delegate void 特价完成事件委托();
public partial class 添加单品特价窗口 : Form
{
/// <summary>
/// 添加单品特价完成时发送事件
/// </summary>
public event 特价完成事件委托 特价添加完成事件;
public long 特价商品ID { get; set; }
public 添加单品特价窗口()
{
InitializeComponent();
}
private void 添加单品特价窗口_Shown(object sender, EventArgs e)
{
dateTimePicker1.Value = DateTime.Now.AddMonths(1);
dateTimePicker1.Format = DateTimePickerFormat.Custom;
dateTimePicker1.CustomFormat = "yyyy年MM月dd日";
textBox1.Focus();
}
private void 添加单品特价窗口_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode== Keys.Escape )
{
this.Close();
}
}
private void textBox1_KeyDown(object sender, KeyEventArgs e)
{
协助.只读输数字(true, 15, sender,e);
}
//保存
private void button1_Click(object sender, EventArgs e)
{
if (textBox1.Text.Trim() == "")
{
MessageBox.Show("请输入特价!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
textBox1.Text = "";
textBox1.Focus();
return;
}
后面还有 46 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读 AI
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
