zzr99
2022-06-17 5b7184598c83f56080eb0a336f28d06b202a151f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
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)
        {
 
        }
        
    }
}