Example #1
0
        public static DataTable getClientIssueReasons()
        {
            String selectStatement = "SELECT CIR_RowID As ID,CIR_ReasonText As Name FROM DIC_ClientIssueReason";

            CACHEDAL.ConnectionClass cache = new CACHEDAL.ConnectionClass();
            return(cache.FillCacheDataTable(selectStatement));
        }
Example #2
0
        public static DataTable getDiscountCodes()
        {
            String selectStatement = "SELECT DC_Code As Value, DC_Text As Text FROM DIC_DiscountCode ORDER By DC_Code ASC";

            CACHEDAL.ConnectionClass cache = new CACHEDAL.ConnectionClass();
            return(cache.FillCacheDataTable(selectStatement));
        }
Example #3
0
        public static DataTable getTransferSpeciality()
        {
            String selectStatement = "SELECT SPEC_RowID As RowId, SPEC_Code As SPECCode,SPEC_Name As SPECName FROM DIC_Specialty WHERE SPEC_IsTransferSpecialty='Y'";

            CACHEDAL.ConnectionClass cache = new CACHEDAL.ConnectionClass();
            return(cache.FillCacheDataTable(selectStatement));
        }
Example #4
0
        public static DataTable getAntechLabLocations()
        {
            String selectStatement = "SELECT LABLO_RowID As ID,LABLO_LabName As Name, LABLO_DefaultEmailDR As DefaultMailID  FROM DIC_LabLocation WHERE LABLO_IsAntechLab='Y'";

            CACHEDAL.ConnectionClass cache = new CACHEDAL.ConnectionClass();
            return(cache.FillCacheDataTable(selectStatement));
        }
Example #5
0
        public static DataTable getSpeciality()
        {
            String selectStatement = "SELECT SPEC_RowID As RowId, SPEC_Code As SPECCode,SPEC_Name As SPECName,SPEC_IsDefaultOnSearch As IsDefault FROM DIC_Specialty";

            CACHEDAL.ConnectionClass cache = new CACHEDAL.ConnectionClass();
            return(cache.FillCacheDataTable(selectStatement));
        }
Example #6
0
        public static DataTable getSpecimenTypes()
        {
            String selectStatement = "SELECT SPCTP_RowID As RowId, SPCTP_Code As Code,SPCTP_SpecimenType As SpecimenType  FROM DIC_SpecimenType";

            CACHEDAL.ConnectionClass cache = new CACHEDAL.ConnectionClass();
            return(cache.FillCacheDataTable(selectStatement));
        }
Example #7
0
        public static DataTable getEditableEventCategory()
        {
            string strSQL = "SELECT EVECT_RowID AS CategoryRowId, EVECT_CategoryName AS CategoryName FROM DIC_EventCategory WHERE EVECT_IsEditable = 'Y'";

            CACHEDAL.ConnectionClass cache = new CACHEDAL.ConnectionClass();
            return(cache.FillCacheDataTable(strSQL));
        }
Example #8
0
        public static DataTable getAreaOfInterest()
        {
            String selectStatement = "SELECT INTR_RowID As RowId, INTR_Code As INTRCode,INTR_Description As INTRDescription FROM DIC_Interest";

            CACHEDAL.ConnectionClass cache = new CACHEDAL.ConnectionClass();
            return(cache.FillCacheDataTable(selectStatement));
        }
Example #9
0
        /// <summary>
        /// Get callback note types from lookup table
        /// </summary>
        /// <returns></returns>
        public static DataTable getIssueCallbackTypes()
        {
            String selectStatement = "SELECT CBNT_Note As ID, CBNT_Description As Description FROM DIC_CallbackNoteType";

            CACHEDAL.ConnectionClass cache = new CACHEDAL.ConnectionClass();
            return(cache.FillCacheDataTable(selectStatement));
        }
Example #10
0
        public static DataTable getLabLocations()
        {
            String selectStatement = "SELECT LABLO_RowID As ID,LABLO_LabName As Name FROM DIC_LabLocation";

            CACHEDAL.ConnectionClass cache = new CACHEDAL.ConnectionClass();
            return(cache.FillCacheDataTable(selectStatement));
        }
Example #11
0
        public static DataTable getDepartments()
        {
            String selectStatement = "SELECT DISTINCT DEPT_Name As Name, DEPT_RowID As ID FROM DIC_Department WHERE DEPT_Name <> '' AND DEPT_IsCSMDepartment = 'Y' ORDER BY DEPT_Name";

            CACHEDAL.ConnectionClass cache = new CACHEDAL.ConnectionClass();
            return(cache.FillCacheDataTable(selectStatement));
        }
Example #12
0
        public static DataTable getProblemTypes()
        {
            String selectStatement = "SELECT PTYP_ProblemType As Type,PTYP_Description As Description  FROM DIC_ProblemType";

            CACHEDAL.ConnectionClass cache = new CACHEDAL.ConnectionClass();
            return(cache.FillCacheDataTable(selectStatement));
        }
Example #13
0
        public static DataTable getProblemGroups()
        {
            String selectStatement = "SELECT PTYPG_RowID As Row,PTYPG_GroupName As GroupName  FROM DIC_ProblemTypeGroup";

            CACHEDAL.ConnectionClass cache = new CACHEDAL.ConnectionClass();
            return(cache.FillCacheDataTable(selectStatement));
        }
Example #14
0
        public static DataTable getMessage()
        {
            String selectStatement = "SELECT Distinct MSG_Code AS MSGID, MSG_MessageText As MESSAGE FROM DIC_Message";

            CACHEDAL.ConnectionClass cache = new CACHEDAL.ConnectionClass();
            return(cache.FillCacheDataTable(selectStatement));
        }
Example #15
0
        public static DataTable getSalesTerritory()
        {
            String selectStatement = "SELECT ST_RowID, ST_TerritoryCode As Territory FROM DIC_SalesTerritory ORDER BY ST_TerritoryCode";

            CACHEDAL.ConnectionClass cache = new CACHEDAL.ConnectionClass();
            return(cache.FillCacheDataTable(selectStatement));
        }
Example #16
0
        public static DataTable getILCMessages()
        {
            String selectStatement = "Select ILCMC_RowID As ID, ILCMC_Code As Name, ILCMC_Message As Message FROM DIC_ILCMessage";

            CACHEDAL.ConnectionClass cache = new CACHEDAL.ConnectionClass();
            return(cache.FillCacheDataTable(selectStatement));
        }
Example #17
0
        public static DataTable getLabLocationsCI()
        {
            String selectStatement = "SELECT LABLO_RowID As ID,LABLO_LabName As Name FROM DIC_LabLocation WHERE LABLO_IsAntechLab='Y' AND LABLO_ProcessesCI='Y'";

            CACHEDAL.ConnectionClass cache = new CACHEDAL.ConnectionClass();
            return(cache.FillCacheDataTable(selectStatement));
        }
Example #18
0
        public static DataTable getEventCategory()
        {
            String selectStatement = "SELECT EVECT_RowID As ID,EVECT_CategoryName As Name  FROM DIC_EventCategory";

            CACHEDAL.ConnectionClass cache = new CACHEDAL.ConnectionClass();
            return(cache.FillCacheDataTable(selectStatement));
        }
Example #19
0
        public static DataTable getEmail()
        {
            DataTable returnData      = new DataTable();
            String    selectStatement = "SELECT EMLLO_LocationText AS Email_Location,EMLLO_DefaultLabLocationDR DefaultLabName, EMLLO_RowID AS Email_RowID FROM DIC_EmailLocation";

            CACHEDAL.ConnectionClass cache = new CACHEDAL.ConnectionClass();
            return(cache.FillCacheDataTable(selectStatement));
        }
Example #20
0
        public static string getUserAlerts(String userId)
        {
            Dictionary <String, String> UserData = new Dictionary <String, String>();

            UserData.Add("User", userId);

            CACHEDAL.ConnectionClass cache = new CACHEDAL.ConnectionClass();
            return(cache.StoredProcedure("?=call SP2_GetUserAlerts(?)", UserData).Value.ToString());
        }
Example #21
0
        public static string validateUserLogin(String userName, String password, String passwordExpiryPeriod)
        {
            Dictionary <string, string> userInfo = new Dictionary <string, string>();

            userInfo.Add("USERID", userName);
            userInfo.Add("PASSWORD", password);
            userInfo.Add("PASSEXPPERIOD", passwordExpiryPeriod);
            CACHEDAL.ConnectionClass cache = new CACHEDAL.ConnectionClass();
            return(cache.StoredProcedure("?=call SP2_ValidateUserLogin(?,?,?)", userInfo, 32000).Value.ToString());
        }
Example #22
0
        public static string changeUserPassword(string userId, string oldPassword, string newPassword)
        {
            Dictionary <String, String> UserData = new Dictionary <String, String>();

            UserData.Add("USER", userId);
            UserData.Add("OLDPASSWORD", oldPassword);
            UserData.Add("NEWPASSWORD", newPassword);
            CACHEDAL.ConnectionClass cache = new CACHEDAL.ConnectionClass();
            return(cache.StoredProcedure("?=call SP2_UpdateUserPassword(?,?,?)", UserData).Value.ToString());
        }
Example #23
0
 public static DataTable getUserDetails(String userName)
 {
     System.Text.StringBuilder sb = new System.Text.StringBuilder();
     sb.Append("SELECT ");
     sb.Append("USER_UserID As UserID,");
     sb.Append("USER_LastFirstName As Name,");
     sb.Append("USER_LabLocationDR->LABLO_RowID1 As LabID,");
     sb.Append("USER_NumberOfNewMessages As NewMessageCount,");
     sb.Append("USER_IsClientServicesUser As IsCSUser,");
     sb.Append("USER_HasSupervisoryPrivilege As IsSupervisor,");
     sb.Append("USER_EmailAddress As UserEmail,");
     sb.Append("USER_DisplayUserID As UserDispName,");
     sb.Append("USER_IsSuperUser As IsSuperUser ");
     sb.Append("FROM DIC_User");
     sb.Append(" WHERE %SQLUPPER USER_UserID=%SQLUPPER '" + userName + "'");
     CACHEDAL.ConnectionClass cache = new CACHEDAL.ConnectionClass();
     return(cache.FillCacheDataTable(sb.ToString()));
 }
Example #24
0
 public static DataTable getUserDetails(String userName, String password)
 {
     System.Text.StringBuilder sb = new System.Text.StringBuilder();
     sb.Append("SELECT ");
     sb.Append("USER_UserID As UserID,");
     sb.Append("USER_LastFirstName As Name,");
     sb.Append("USER_LabLocationDR->LABLO_RowID1 As LabID,");
     sb.Append("USER_IsClientServicesUser As IsCSUser,");
     sb.Append("USER_HasSupervisoryPrivilege As IsSupervisor,");
     sb.Append("USER_ConsultantDR As ConsultantID, ");
     sb.Append("USER_CanChangeClientPassword As CanChangeClientPassword, ");
     sb.Append("USER_IsLabC As IsLabC,");
     sb.Append("USER_EmailAddress As UserEmail,");
     sb.Append("USER_IsActive As IsActive,");
     sb.Append("USER_DisplayUserID As UserDispName,");
     sb.Append("USER_IsSuperUser As IsSuperUser ");
     sb.Append("FROM DIC_User");
     sb.Append(" WHERE %SQLUPPER USER_UserID=%SQLUPPER '" + userName + "'");
     sb.Append(" AND USER_Password='******'");
     CACHEDAL.ConnectionClass cache = new CACHEDAL.ConnectionClass();
     return(cache.FillCacheDataTable(sb.ToString()));
 }
Example #25
0
 public static String getILCStatusValues()
 {
     CACHEDAL.ConnectionClass cache = new CACHEDAL.ConnectionClass();
     return(cache.StoredProcedure("? = CALL SP_getILCStatus()").Value.ToString());
 }
Example #26
0
 public static String getChangeRequestTypes()
 {
     CACHEDAL.ConnectionClass cache = new CACHEDAL.ConnectionClass();
     return(cache.StoredProcedure("? = CALL SP_getAddOnVerificationTypes()").Value.ToString());
 }