public void ExecuteCommand(DataRow dr, DataTable dtModule) { if (dr == null) { return; } SysUser sysUser = new SysUser(); //bo sung quan ly dang nhap theo gio lam viec if (!sysUser.CheckLoginTime()) { XtraMessageBox.Show("Đã hết thời gian quy định cho bạn sử dụng phần mềm!"); Config.NewKeyValue("NoBackup", 1); Application.Exit(); return; } Config.NewKeyValue("sysMenuID", dr["SysMenuID"]); Config.NewKeyValue("MenuName", dr["MenuName"]); try { if (dr["sysTableID"].ToString() != string.Empty) { ShowTable(dr, FormAction.Default); } else { if (dr["sysReportID"].ToString() != string.Empty) { ShowReport(dr); } else { if (dr["MenuPluginID"].ToString() != string.Empty) { ExecutePlugin(dr); } else { ShowModule(dr, dtModule); } } } } catch (Exception ex) { LogFile.UnknowError(ex); } }