Exemple #1
0
        void 采购入库ToolStripMenuItemClick(object sender, EventArgs e)
        {
            //新入库
            FormReceiptBill tF = new FormReceiptBill();

            tF.Text = "入库单-新增";
            tF.ShowDialog();
        }
        void ButtonAddClick(object sender, EventArgs e)
        {
            //新入库
            FormReceiptBill tF = new FormReceiptBill();

            tF.Text = "入库单-新增";
            tF.ShowDialog();
            RefreshDataGridView1();
        }
 void ButtonModifyClick(object sender, EventArgs e)
 {
     //修改入库单
     if (dataGridView1.CurrentRow != null)
     {
         FormReceiptBill tF = new FormReceiptBill();
         tF.Text        = "入库单-修改";
         tF.i_ReceiptID = Convert.ToInt32(dataGridView1.CurrentRow.Cells["ReceiptID"].Value.ToString());
         tF.ShowDialog();
         RefreshDataGridView1();
     }
 }