コード例 #1
0
ファイル: frmModelContained.cs プロジェクト: B06-0253/NVTHAO
        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();
        }