private void toolAdd_Click(object sender, EventArgs e)
        {
            FormRetailBarterBaseBillInput formRetailBarterBaseBillInput = new FormRetailBarterBaseBillInput();

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