コード例 #1
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            frmProductPlanDetail frm = new frmProductPlanDetail();

            if (frm.ShowDialog() == DialogResult.OK)
            {
                LoadInfoSearch();
            }
        }
コード例 #2
0
        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();
            }
        }