private void TSB_edit_Click(object sender, EventArgs e) { if (DGV_order.Rows.Count == 0) { MessageBox.Show("当前无入库单信息"); return; } int rowsNmb = DGV_order.CurrentRow.Index; if (rowsNmb == -1) { MessageBox.Show("未选中需要修改的入库单"); return; } string status = DGV_order.Rows[rowsNmb].Cells[1].Value.ToString(); if (status != "新制") { MessageBox.Show("非新制单据无法修改"); return; } string orderNmb = DGV_order.Rows[rowsNmb].Cells[0].Value.ToString(); In_StockOrder inStockOrder = new In_StockOrder(orderNmb); inStockOrder.Show(); }
private void TSB_createOrder_Click(object sender, EventArgs e) { In_StockOrder inStockOrder = In_StockOrder.GetInStockOrder(); inStockOrder.Show(); }