Exemplo n.º 1
0
        static void Main()
        {
            try
            {

                //IP.Core.IPSystemAdmin.f101_Dang_Nhap v_frm_login_form = new f101_Dang_Nhap();
                //US_HT_NGUOI_SU_DUNG v_us_user = new US_HT_NGUOI_SU_DUNG();
                //CLoginInformation_302 v_obj_login_info = new CLoginInformation_302(v_us_user);
                //DialogResult v_login_result = DialogResult.Cancel;
                //bool v_UserWant2ExitFromSystem = false;
                //IPConstants.HowUserWantTo_Exit_MainForm v_exitmode = IPConstants.HowUserWantTo_Exit_MainForm.ExitFromSystem;
                //// Login lan 1
                //v_frm_login_form.displayLogin(ref v_obj_login_info, ref v_login_result);
                //if (v_login_result == DialogResult.Cancel)
                //{
                //    v_frm_login_form.Dispose();
                //    v_frm_login_form.Close();
                //    return;
                //}
                //v_frm_login_form.Dispose();
                //while (!v_UserWant2ExitFromSystem)
                //{
                //    CAppContext_201.InitializeContext(v_obj_login_info);
                //    CAppContext_201.LoadDecentralizationByUserLogin();
                //    f002_main_form v_frm_main = new f002_main_form();
                //    //f002_main_form v_frm_main = new f002_main_form();
                //    v_frm_main.display(ref v_exitmode);
                //    v_frm_main.Dispose();
                //    // sau main form hiện thì login hoặc thóat
                //    switch (v_exitmode)
                //    {
                //        case IPConstants.HowUserWantTo_Exit_MainForm.ExitFromSystem:
                //            HelpUtils.ghi_log_he_thong(LOG_TRUY_CAP.DANG_XUAT, "Đăng xuất", "", "");
                //            v_UserWant2ExitFromSystem = true;
                //            break;
                //        case IPConstants.HowUserWantTo_Exit_MainForm.Login_As_DifferentUser:
                //            // vào bằng user khác ( hoặc nhóm khác)
                //            v_frm_login_form = new f101_Dang_Nhap();
                //            v_frm_login_form.displayLogin(ref v_obj_login_info, ref v_login_result);
                //            v_frm_login_form.Dispose();
                //            break;
                //        default:
                //            // should never happens
                //            Debug.Assert(false);
                //            break;
                //    }
                //}
                f200_ds_dat_hang_new v_f200 = new f200_ds_dat_hang_new();
                v_f200.display();

            }
            catch (Exception v_e)
            {
                CSystemLog_301.ExceptionHandle(v_e);
            }
        }
Exemplo n.º 2
0
 private void show_ds_dat_hang_moi()
 {
     if (!CAppContext_201.IsHavingQuyen(IP.Core.IPSystemAdmin.PHAN_QUYEN.QLNV_DS_DAT_HANG))
     {
         BaseMessages.MsgBox_Infor(THONG_BAO.ER_KHONG_CO_QUYEN_SU_DUNG);
         return;
     }
     f200_ds_dat_hang_new v_f200 = new f200_ds_dat_hang_new();
     v_f200.display();
 }