void 领用出库ToolStripMenuItemClick(object sender, EventArgs e) { //新增出库单 FormOutBill tF = new FormOutBill(); tF.Text = "出库单-新增"; tF.ShowDialog(); }
void ButtonAddClick(object sender, EventArgs e) { //新增出库单 FormOutBill tF = new FormOutBill(); tF.Text = "出库单-新增"; tF.ShowDialog(); RefreshDataGridView1(); }
void ButtonModifyClick(object sender, EventArgs e) { //修改出库单 if (dataGridView1.CurrentRow != null) { FormOutBill tF = new FormOutBill(); tF.Text = "出库单-修改"; tF.i_OutStockID = Convert.ToInt32(dataGridView1.CurrentRow.Cells["OutStockID"].Value.ToString()); tF.ShowDialog(); RefreshDataGridView1(); } }