Beispiel #1
0
        private void btnBack_Click(object sender, EventArgs e)
        {
            WaitCursor.Set();
            try
            {
                if (SystemCache.ConnetionType == "USB连接")
                {
                }
                else
                {
                    BillDetail billDetail = new BillDetail();

                    billDetail.BillNo               = billID;
                    billDetail.BillType             = billType;
                    billDetail.DetailID             = Convert.ToInt32(lbID.Text);
                    billDetail.Operator             = Dns.GetHostName();
                    billDetail.OperatePieceQuantity = Convert.ToDecimal(lbPiece.Text);
                    billDetail.OperateBarQuantity   = Convert.ToDecimal(lbItem.Text);
                    httpDataDal.Cancel(billDetail);
                }

                BaseTaskForm baseTaskForm = new BaseTaskForm(this.billType, billID);
                baseTaskForm.index = this.Index;
                baseTaskForm.Show();
                this.Close();
            }
            catch (Exception ex)
            {
                WaitCursor.Restore();
                MessageBox.Show("读取数据失败!" + ex.Message);
            }
        }
Beispiel #2
0
 private void btnNext_Click(object sender, EventArgs e)
 {
     WaitCursor.Set();
     try
     {
         BaseTaskForm baseTaskForm = new BaseTaskForm(billType, this.lbInfo.SelectedValue.ToString());
         baseTaskForm.Show();
         this.Close();
     }
     catch (Exception ex)
     {
         WaitCursor.Restore();
         MessageBox.Show("读取数据失败!" + ex.Message);
     }
 }
Beispiel #3
0
        private void btnComplete_Click(object sender, EventArgs e)
        {
            WaitCursor.Set();
            try
            {
                if (SystemCache.ConnetionType == "USB连接")
                {
                    new XMLBillDal().UpdateBill(billID, detailID, lbPiece.Text, lbItem.Text);
                }
                else
                {
                    BillDetail billDetail = new BillDetail();

                    billDetail.BillNo               = billID;
                    billDetail.BillType             = billType;
                    billDetail.DetailID             = Convert.ToInt32(lbID.Text);
                    billDetail.Operator             = Dns.GetHostName();
                    billDetail.OperatePieceQuantity = Convert.ToDecimal(lbPiece.Text);
                    billDetail.OperateBarQuantity   = Convert.ToDecimal(lbItem.Text);
                    httpDataDal.Execute(billDetail);
                }
                MessageBox.Show("确认成功!");
                BaseTaskForm baseTaskForm = new BaseTaskForm(this.billType, billID);
                if (this.Index > 0)
                {
                    baseTaskForm.index = this.Index;
                }
                baseTaskForm.Show();
                this.Close();
            }
            catch (Exception ex)
            {
                WaitCursor.Restore();
                MessageBox.Show(ex.Message);
                this.Close();
                SystemCache.MainFrom.Visible = true;
            }
        }
Beispiel #4
0
 private void btnNext_Click(object sender, EventArgs e)
 {
     WaitCursor.Set();
     try
     {
         BaseTaskForm baseTaskForm = new BaseTaskForm(this.billType, this.lbInfo.SelectedValue.ToString());
         baseTaskForm.Show();
         this.Close();
     }
     catch (Exception ex)
     {
         WaitCursor.Restore();
         MessageBox.Show("��ȡ����ʧ��!"+ex.Message);
     }
 }
Beispiel #5
0
        private void btnComplete_Click(object sender, EventArgs e)
        {
            WaitCursor.Set();
            try
            {
                if (SystemCache.ConnetionType == "USB����")
                {
                    new XMLBillDal().UpdateBill(billID, detailID, lbPiece.Text, lbItem.Text);
                }
                else
                {
                    BillDetail billDetail = new BillDetail();

                    billDetail.BillNo = billID;
                    billDetail.BillType = billType;
                    billDetail.DetailID = Convert.ToInt32(lbID.Text);
                    billDetail.Operator = Dns.GetHostName();
                    billDetail.OperatePieceQuantity = Convert.ToDecimal(lbPiece.Text);
                    billDetail.OperateBarQuantity = Convert.ToDecimal(lbItem.Text);
                    httpDataDal.Execute(billDetail);
                }
                MessageBox.Show("ȷ�ϳɹ�!");
                BaseTaskForm baseTaskForm = new BaseTaskForm(this.billType, billID);
                if (this.Index > 0)
                {
                     baseTaskForm.index = this.Index;
                }
                baseTaskForm.Show();
                this.Close();
            }
            catch (Exception ex)
            {
                WaitCursor.Restore();
                MessageBox.Show(ex.Message);
                this.Close();
                SystemCache.MainFrom.Visible = true;
            }
        }
Beispiel #6
0
        private void btnBack_Click(object sender, EventArgs e)
        {
            WaitCursor.Set();
            try
            {
                if (SystemCache.ConnetionType == "USB����")
                {

                }
                else
                {
                    BillDetail billDetail = new BillDetail();

                    billDetail.BillNo = billID;
                    billDetail.BillType = billType;
                    billDetail.DetailID = Convert.ToInt32(lbID.Text);
                    billDetail.Operator = Dns.GetHostName();
                    billDetail.OperatePieceQuantity = Convert.ToDecimal(lbPiece.Text);
                    billDetail.OperateBarQuantity = Convert.ToDecimal(lbItem.Text);
                    httpDataDal.Cancel(billDetail);

                }

                BaseTaskForm baseTaskForm = new BaseTaskForm(this.billType, billID);
                baseTaskForm.index = this.Index;
                baseTaskForm.Show();
                this.Close();
            }
            catch (Exception ex)
            {
                WaitCursor.Restore();
                MessageBox.Show("��ȡ����ʧ��!" + ex.Message);
            }
        }