예제 #1
0
        private void xemDanhSáchDựÁnChứaModuleToolStripMenuItem_Click(object sender, EventArgs e)
        {
            string       code  = TextUtils.ToString(gridView1.GetFocusedRowCellValue(colModuleCode));
            ModulesModel model = (ModulesModel)ModulesBO.Instance.FindByCode(code);

            if (model.Status != 2)
            {
                MessageBox.Show("Module chưa có trên nguồn chuẩn!");
                return;
            }

            frmListProjectContainModule frm = new frmListProjectContainModule();

            frm.Module = model;
            frm.Show();
        }
예제 #2
0
        private void xemDanhSáchDựÁnChứaModuleToolStripMenuItem_Click(object sender, EventArgs e)
        {
            int id = TextUtils.ToInt(grvData.GetFocusedRowCellValue(colID));

            if (id == 0)
            {
                return;
            }
            ModulesModel model = (ModulesModel)ModulesBO.Instance.FindByPK(id);

            if (model.Status != 2)
            {
                MessageBox.Show("Module chưa có trên nguồn chuẩn!");
                return;
            }

            frmListProjectContainModule frm = new frmListProjectContainModule();

            frm.Module = model;
            frm.Show();
        }