Exemplo n.º 1
0
        private void toolAdd_Click(object sender, EventArgs e)
        {
            FormRetailSaleConsignBillInput formRetailSaleConsignBillInput = new FormRetailSaleConsignBillInput();

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