Esempio n. 1
0
        private void CannelBillSelect_Load(object sender, EventArgs e)
        {
            if (dtProductInfo.Rows.Count > 0)
            {
                DataRow dr = dtProductInfo.Rows[0];
                this.txtBill_No.Text = dr["BILL_NO"].ToString();
                this.txtCIGARETTE_NAME.Text = dr["CIGARETTE_NAME"].ToString();
                this.txtGRADE_NAME.Text = dr["GRADE_NAME"].ToString();
                this.txtORIGINAL_NAME.Text = dr["ORIGINAL_NAME"].ToString();
                this.txtProductBarCode.Text = dr["PRODUCT_BARCODE"].ToString();
                this.txtSTYLE_NAME.Text = dr["STYLE_NAME"].ToString();
                this.txtWeight.Text = dr["WEIGHT"].ToString();
            }

            THOK.XC.Process.Dal.ProductStateDal dal = new THOK.XC.Process.Dal.ProductStateDal();
            DataTable dt = dal.GetProductInfoByBarCode(NewPalletCode);
            if (dt.Rows.Count > 0)
            {

                DataRow dr = dt.Rows[0];
                this.txtBill_No2.Text = dr["BILL_NO"].ToString();
                this.txtCIGARETTE_NAME2.Text = dr["CIGARETTE_NAME"].ToString();
                this.txtGRADE_NAME2.Text = dr["GRADE_NAME"].ToString();
                this.txtORIGINAL_NAME2.Text = dr["ORIGINAL_NAME"].ToString();
                this.txtScanCode.Text = dr["PRODUCT_BARCODE"].ToString();
                this.txtSTYLE_NAME2.Text = dr["STYLE_NAME"].ToString();
                this.txtWeight2.Text = dr["WEIGHT"].ToString();
            }

            THOK.XC.Process.Dal.BillDal Bdal = new THOK.XC.Process.Dal.BillDal();
            DataTable dtBill = Bdal.GetCancelBillNo(TaskID);
            this.cmbBill.ValueMember = "BILL_NO";
            this.cmbBill.DisplayMember = "BILL_NO";
            this.cmbBill.DataSource = dtBill;
        }
Esempio n. 2
0
        private void CannelBillSelect_Load(object sender, EventArgs e)
        {
            if (dtProductInfo.Rows.Count > 0)
            {
                DataRow dr = dtProductInfo.Rows[0];
                this.txtBill_No.Text        = dr["BILL_NO"].ToString();
                this.txtCIGARETTE_NAME.Text = dr["CIGARETTE_NAME"].ToString();
                this.txtGRADE_NAME.Text     = dr["GRADE_NAME"].ToString();
                this.txtORIGINAL_NAME.Text  = dr["ORIGINAL_NAME"].ToString();
                this.txtProductBarCode.Text = dr["PRODUCT_BARCODE"].ToString();
                this.txtSTYLE_NAME.Text     = dr["STYLE_NAME"].ToString();
                this.txtWeight.Text         = dr["WEIGHT"].ToString();
            }



            THOK.XC.Process.Dal.ProductStateDal dal = new THOK.XC.Process.Dal.ProductStateDal();
            DataTable dt = dal.GetProductInfoByBarCode(NewPalletCode);

            if (dt.Rows.Count > 0)
            {
                DataRow dr = dt.Rows[0];
                this.txtBill_No2.Text        = dr["BILL_NO"].ToString();
                this.txtCIGARETTE_NAME2.Text = dr["CIGARETTE_NAME"].ToString();
                this.txtGRADE_NAME2.Text     = dr["GRADE_NAME"].ToString();
                this.txtORIGINAL_NAME2.Text  = dr["ORIGINAL_NAME"].ToString();
                this.txtScanCode.Text        = dr["PRODUCT_BARCODE"].ToString();
                this.txtSTYLE_NAME2.Text     = dr["STYLE_NAME"].ToString();
                this.txtWeight2.Text         = dr["WEIGHT"].ToString();
            }

            THOK.XC.Process.Dal.BillDal Bdal = new THOK.XC.Process.Dal.BillDal();
            DataTable dtBill = Bdal.GetCancelBillNo(TaskID);

            this.cmbBill.ValueMember   = "BILL_NO";
            this.cmbBill.DisplayMember = "BILL_NO";
            this.cmbBill.DataSource    = dtBill;
        }
Esempio n. 3
0
        private void txtRightBarcode_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.Enter)
            {
                THOK.XC.Process.Dal.ProductStateDal dal = new THOK.XC.Process.Dal.ProductStateDal();
                DataTable dt = dal.GetProductInfoByBarCode(this.txtRightBarcode.Text.Trim());
                this.txtRightBarcode.Text = "";
                if (dt.Rows.Count > 0)
                {
                    DataRow dr = dt.Rows[0];
                    this.txtBill_No2.Text        = dr["BILL_NO"].ToString();
                    this.txtCIGARETTE_NAME2.Text = dr["CIGARETTE_NAME"].ToString();
                    this.txtGRADE_NAME2.Text     = dr["GRADE_NAME"].ToString();
                    this.txtORIGINAL_NAME2.Text  = dr["ORIGINAL_NAME"].ToString();
                    this.txtScanCode.Text        = dr["PRODUCT_BARCODE"].ToString();
                    this.txtSTYLE_NAME2.Text     = dr["STYLE_NAME"].ToString();
                    this.txtWeight2.Text         = dr["WEIGHT"].ToString();
                }

                this.txtLeftBarcode.SelectAll();
                this.txtLeftBarcode.Focus();
            }
        }
Esempio n. 4
0
        private void txtRightBarcode_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.Enter)
            {
                THOK.XC.Process.Dal.ProductStateDal dal = new THOK.XC.Process.Dal.ProductStateDal();
                DataTable dt = dal.GetProductInfoByBarCode(this.txtRightBarcode.Text.Trim());
                this.txtRightBarcode.Text = "";
                if (dt.Rows.Count > 0)
                {
                    DataRow dr = dt.Rows[0];
                    this.txtBill_No2.Text = dr["BILL_NO"].ToString();
                    this.txtCIGARETTE_NAME2.Text = dr["CIGARETTE_NAME"].ToString();
                    this.txtGRADE_NAME2.Text = dr["GRADE_NAME"].ToString();
                    this.txtORIGINAL_NAME2.Text = dr["ORIGINAL_NAME"].ToString();
                    this.txtScanCode.Text = dr["PRODUCT_BARCODE"].ToString();
                    this.txtSTYLE_NAME2.Text = dr["STYLE_NAME"].ToString();
                    this.txtWeight2.Text = dr["WEIGHT"].ToString();
                }

                this.txtLeftBarcode.SelectAll();
                this.txtLeftBarcode.Focus();
            }
        }