private void btnAdd_Click(object sender, EventArgs e) { frmProductPlanDetail frm = new frmProductPlanDetail(); if (frm.ShowDialog() == DialogResult.OK) { LoadInfoSearch(); } }
private void btnEdit_Click(object sender, EventArgs e) { int id = TextUtils.ToInt(grvData.GetFocusedRowCellValue(colID)); if (id == 0) { return; } ProductionPlanModel model = (ProductionPlanModel)ProductionPlanBO.Instance.FindByPK(id); frmProductPlanDetail frm = new frmProductPlanDetail(); frm.ProductionPlan = model; if (frm.ShowDialog() == DialogResult.OK) { LoadInfoSearch(); } }