Exemplo n.º 1
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            _rownIndex = grvData.FocusedRowHandle;
            frmDesignSummary frm = new frmDesignSummary();

            frm.LoadDataChange += main_LoadDataChange;
            frm.Show();
        }
Exemplo n.º 2
0
        private void btnEdit_Click(object sender, EventArgs e)
        {
            long id = TextUtils.ToInt64(grvData.GetFocusedRowCellValue(colID));

            if (id == 0)
            {
                return;
            }
            DesignSummaryModel model = (DesignSummaryModel)DesignSummaryBO.Instance.FindByPK(id);

            //if (model.UpdatedBy != Global.AppUserName)
            //{
            //    MessageBox.Show("Bạn không có quyền sửa THTK này.", TextUtils.Caption,
            //       MessageBoxButtons.OK, MessageBoxIcon.Stop);
            //    return;
            //}

            frmDesignSummary frm = new frmDesignSummary();

            frm.DesignSummary   = model;
            frm.LoadDataChange += main_LoadDataChange;
            frm.Show();
        }