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;
        }
 private void frmNewCraneBill_Load(object sender, EventArgs e)
 {
     this.lblMsg.Text = "堆垛机返回错误," + ErrMsg;
     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.BillDal Bdal = new THOK.XC.Process.Dal.BillDal();
     DataTable dtBill = Bdal.GetCancelBillNo(TaskID, CraneNo);
     this.cmbBill.ValueMember = "BILL_NO";
     this.cmbBill.DisplayMember = "BILL_NO";
     this.cmbBill.DataSource = dtBill;
 }
Exemple #3
0
        private void CellNewBillSelect_Load(object sender, EventArgs e)
        {
            this.lblMsg.Text = "堆垛机返回错误," + ErrMsg;
            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.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;
        }