using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace APSM { public partial class Sc_ProcPlanMultilevelSortBill_ChangQty : Form { public Sc_ProcPlanMultilevelSortBill_ChangQty() { InitializeComponent(); } public long HInterID; public long HICMOInterID; public string HICMOBillNo; public DateTime HDate; public double HQty; public double sReturnQty; public int IsOk; private void cmdCancel_Click(object sender, EventArgs e) { IsOk = 2; this.Visible = false; } private void cmdOK_Click(object sender, EventArgs e) { IsOk = 1; Save(); sReturnQty = DBUtility.ClsPub.isDoule(txtHChangeQty.Text); this.Visible = false; } private void Xs_SellOutDayReportDlg_Activated(object sender, EventArgs e) { } private void timer1_Tick(object sender, EventArgs e) { timer1.Enabled = false; IsOk = 0; this.txtHICMOInterID.Text = HICMOBillNo; //this.txtHICMOInterID.Tag = HICMOInterID.ToString(); this.txtHDate.Text = HDate.ToShortDateString(); this.txtHQty.Text = HQty.ToString(); this.txtHChangeQty.Text = ""; } private void Save() { SQLHelper.ClsCN oCn = new SQLHelper.ClsCN(); oCn.RunProc("exec h_p_Sc_WorkBillAutoSortBill_ChangeQty " + HInterID.ToString() + ",'" + HDate.ToShortDateString() + "'," + DBUtility.ClsPub.isDoule(txtHChangeQty.Text).ToString()); MessageBox.Show("±ä¸üÅųÌÊýÁ¿³É¹¦£¡", "Ìáʾ"); } private void txtHChangeQty_TextChanged(object sender, EventArgs e) { } } }