private void contextAdd_Click(object sender, EventArgs e)
 {
     if (this.CustomerNo != 0)
     {
         FormRetailSaleOrderBillInput formRetailSaleOrderBillInput = new FormRetailSaleOrderBillInput();
         formRetailSaleOrderBillInput.Tag   = "Add";
         formRetailSaleOrderBillInput.Owner = this;
         formRetailSaleOrderBillInput.ShowDialog();
     }
 }
 private void contextAmend_Click(object sender, EventArgs e)
 {
     if (this.CustomerNo != 0)
     {
         if (dgvSaleOrderBill.RowCount > 0)
         {
             if (GlobalProperty.OperatorCode != dgvSaleOrderBill.CurrentRow.Cells["OperatorCode"].Value.ToString())
             {
                 MessageBox.Show("非本记录的录入人员,不许允许修改!", "软件提示");
                 return;
             }
             FormRetailSaleOrderBillInput formRetailSaleOrderBillInput = new FormRetailSaleOrderBillInput();
             formRetailSaleOrderBillInput.Tag   = "Edit";
             formRetailSaleOrderBillInput.Owner = this;
             formRetailSaleOrderBillInput.ShowDialog();
         }
     }
 }