//[-] protected void Show_EventMsg(string Msg, ClsBaseMain_Master.eStatus Status) { this.Master.Show_EventMsg(Msg, Status); }
public void LoadConfig(ClsBaseMain_Master Master) { Interface_DataAccess Da = this.mDa; try { Da.Connect(); Interface_Connection Cn = Da.Connection; this.mNoItemsTotal = Do_Methods.Convert_Int64(Da.GetSystemParameter(Cn, CnsExam_NoItemsTotal)); this.mNoItemsPerPage = Do_Methods.Convert_Int64(Da.GetSystemParameter(Cn, CnsExam_NoItemsPerPage)); this.mNoRequiredAnswers = Do_Methods.Convert_Int64(Da.GetSystemParameter(Cn, CnsExam_NoRequiredAnswers)); //[-] this.mDt_DefaultContributor_RightsIDs = new DataTable(); this.mDt_DefaultContributor_RightsIDs.Columns.Add("RightsID", typeof(Int64)); this.mDt_DefaultContributor_RightsIDs.Columns.Add("Name", typeof(string)); //PreparedQuery Pq = new ClsPreparedQuery((ClsConnection_SqlServer)Cn); PreparedQuery Pq = Do_Methods.CreatePreparedQuery(); Pq.pQuery = "Select Name From RecruitmentTestRights Where RecruitmentTestRightsID = @RightsID"; Pq.Add_Parameter("RightsID", Do_Constants.eParameterType.Long); Pq.Prepare(); string[] mArrTmp = Do_Methods.Convert_String(Da.GetSystemParameter(Cn, CnsExam_DefaultContributor_RightsIDs)).Split(','); foreach (string Tmp in mArrTmp) { Int64 RightsID = Do_Methods.Convert_Int64(Tmp); Pq.pParameters.GetParameter("RightsID").Value = RightsID; DataTable InnerDt = Pq.ExecuteQuery().Tables[0]; if (InnerDt.Rows.Count > 0) { Do_Methods.AddDataRow(ref this.mDt_DefaultContributor_RightsIDs, new string[] { "RightsID", "Name" }, new object[] { RightsID, InnerDt.Rows[0][0] }); } } this.Session[CnsExam_DefaultContributor_RightsIDs + Master.pObjID] = this.mDt_DefaultContributor_RightsIDs; } catch (Exception Ex) { throw Ex; } finally { Da.Close(); } }