private void DeletePlan()
        {
            string VoucherID = _QC21View.SelectVoucherID;

            if (VoucherID == "")
            {
                return;
            }

            _QC21Dialog.Reason = string.Format("Do you want to delete VoucherID: {0} ?", VoucherID);
            _QC21Dialog.ShowDialog();
            if (_QC21Dialog.rValue)
            {
                string msg    = "";
                DOCBiz docBiz = new DOCBiz();
                if (docBiz.DocDelete(VoucherID))
                {
                    WriteTips(8, "Delete successfull, VoucherID: " + VoucherID, false);

                    _QC21View.dtGrid = GetPlan();
                }
                else
                {
                    WriteTips(5, "Delete fail", false);
                }

                //WriteTips(5, CultureLanuage.Translator(this.Name, 9, "Delete VoucherID : {0} Fail. Error : {1}", VoucherID, msg));
            }
        }
        void butReturn_Click(object sender, EventArgs e)
        {
            string[] VoucherIDs = _SerchPlanView.VoucherIDs;
            if (VoucherIDs.Length <= 0)
            {
                return;
            }

            if (DialogResult.OK == MessageBox.Show("WILL DELETE,CONTINUE?", "ITEM DELETE", MessageBoxButtons.OKCancel, MessageBoxIcon.Asterisk, MessageBoxDefaultButton.Button2))
            {
                string msg   = "";
                int    count = 0;
                foreach (string item in VoucherIDs)
                {
                    DOCBiz _docBiz = new DOCBiz();
                    if (!_docBiz.DocDelete(item))
                    {
                        msg += "[" + item + "]";
                    }
                    else
                    {
                        count++;
                    }
                }
                if (count != VoucherIDs.Length)
                {
                    MessageBox.Show("ITEM " + msg + "DELETE FAILED!");
                }

                Query();
            }
        }
 private void btYes_Click(object sender, EventArgs e)
 {
     if (ReadyWork == "")
     {
         DOCBiz docbiz = new DOCBiz();
         //WriteTips(5, "NO implementation",false);
         _rValue = docbiz.DocUpdateMaterialNo(txtVoucherID.Text, cmbMaterialList.SelectedValue.ToString(), txtRemark.Text);
         if (_rValue)
         {
             msg = string.Format("Change Material from {0} --> {1} successful!", txtMaterialNo.Text, cmbMaterialList.SelectedValue.ToString());
             this.Close();
         }
         else
         {
             msg = string.Format("Change Material from {0} --> {1} failure!", txtMaterialNo.Text, cmbMaterialList.SelectedValue.ToString());
         }
     }
     else
     {
         msg = ReadyWork;
     }
 }