Пример #1
0
        public IEnumerable <MVCModels.HiDoctor_Master.UserTypeSplashModel> GetselectedUserTypes(string companyCode, string userCode, string divisionCodes, string UserTypeCodes)
        {
            _objDALSplashScreen = new DAL_SplashScreen();
            var       DivisionCodes   = divisionCodes.Split(',');
            DataTable dtdivisionCodes = null;

            if (DivisionCodes.Length >= 1)
            {
                dtdivisionCodes = new DataTable();
                dtdivisionCodes.Columns.Add("Company_Code", typeof(string));
                dtdivisionCodes.Columns.Add("Division_Code", typeof(string));

                for (int i = 0; i < DivisionCodes.Length; i++)
                {
                    dtdivisionCodes.Rows.Add(companyCode, DivisionCodes[i]);
                }
            }
            var       UsrTypeCodes    = UserTypeCodes.Split(',');
            DataTable dtUserTypeCodes = null;

            if (UsrTypeCodes.Length >= 1)
            {
                dtUserTypeCodes = new DataTable();
                dtUserTypeCodes.Columns.Add("Company_Code", typeof(string));
                dtUserTypeCodes.Columns.Add("User_Type_Code", typeof(string));

                for (int i = 0; i < UsrTypeCodes.Length; i++)
                {
                    dtUserTypeCodes.Rows.Add(companyCode, UsrTypeCodes[i]);
                }
            }
            return(_objDALSplashScreen.GetselectedUserTypes(companyCode, userCode, dtdivisionCodes, dtUserTypeCodes));
        }
Пример #2
0
        public IEnumerable <MVCModels.HiDoctor_Master.GroupDetails> GetselectedGroupCodes(string companyCode, string GroupCodes)
        {
            _objDALSplashScreen = new DAL_SplashScreen();
            var       Groupcodes   = GroupCodes.Split(',');
            DataTable dtGroupcodes = null;

            if (Groupcodes.Length >= 1)
            {
                dtGroupcodes = new DataTable();
                dtGroupcodes.Columns.Add("Group_ID", typeof(string));

                for (int i = 0; i < Groupcodes.Length; i++)
                {
                    dtGroupcodes.Rows.Add(Groupcodes[i]);
                }
            }
            return(_objDALSplashScreen.GetselectedGroupCodes(companyCode, dtGroupcodes));
        }
Пример #3
0
        public IEnumerable <MVCModels.SplashScreenModel> GetTodaysSplashScreen(string companyCode, string userCode)
        {
            try
            {
                _objDALSplashScreen = new DAL_SplashScreen();
                return(_objDALSplashScreen.GetTodaysSplashScreen(companyCode, userCode));
                //string tableContent = string.Empty;
                //string companyCode = GetCompanyCode();

                //SplashScreenModel objSplashScreenModel;
                //System.Web.UI.HtmlControls.HtmlImage img;

                //objSplashScreenModel = _objDALSplashScreen.GetTodaysSplashScreen(companyCode);

                //if (objSplashScreenModel != null && objSplashScreenModel.Title != null)
                //{
                //    img = new System.Web.UI.HtmlControls.HtmlImage();
                //    img.Src = "" + BLOB_URL + GetCompanyCode().ToLower() + "/" + objSplashScreenModel.File_Path + "";

                //    tableContent = "<table cellpadding='0' cellsapcing='0' id='tblSplashScreen' width='100%'>";
                //    tableContent += "<tr>";
                //    tableContent += "<td colspan='2' class='splashTitle'>" + objSplashScreenModel.Title + "";
                //    tableContent += "<span style='float: right; cursor: pointer' onclick=\"HideModalPopup('modalSplash'); return false;\">X</span>";
                //    tableContent += "</tr>";
                //    tableContent += "<tr>";
                //    tableContent += "<td class='splashDescription'><p>" + objSplashScreenModel.Description + "</p></td>";
                //    tableContent += "<td class='splashImage'> <img src = '" + BLOB_URL + GetCompanyCode().ToLower() + "/" + objSplashScreenModel.File_Path + "' /></td>";
                //    tableContent += "</tr>";
                //    tableContent += "</table>";
                //}

                // return tableContent;
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Пример #4
0
 public IEnumerable <MVCModels.HiDoctor_Master.UserModel> GetSplashMappedUsers(string companyCode, int splashId)
 {
     _objDALSplashScreen = new DAL_SplashScreen();
     return(_objDALSplashScreen.GetSplashMappedUsers(companyCode, splashId));
 }
Пример #5
0
 public int InsertSplashUsers(List <MVCModels.SplashUsersModel> lstSplashUsers, int splashId, string Splashtype, string companyCode, string mode)
 {
     _objDALSplashScreen = new DAL_SplashScreen();
     return(_objDALSplashScreen.InsertSplashUsers(lstSplashUsers, splashId, Splashtype, companyCode, mode));
 }
Пример #6
0
 public IEnumerable <MVCModels.HiDoctor_Master.UserModel> GetUnderUsersByDivisionAndUT(string companyCode, string userCode, string divisionCodes, string userTypeCodes)
 {
     _objDALSplashScreen = new DAL_SplashScreen();
     return(_objDALSplashScreen.GetUnderUsersByDivisionAndUT(companyCode, userCode, divisionCodes, userTypeCodes));
 }
Пример #7
0
 public IEnumerable <MVCModels.HiDoctor_Master.GroupDetails> GetGroupDetails(string UserName)
 {
     _objDALSplashScreen = new DAL_SplashScreen();
     return(_objDALSplashScreen.GetGroupDetails(UserName));
 }
Пример #8
0
 public IEnumerable <MVCModels.HiDoctor_Master.UserTypeModel> GetUnderUserTypes(string companyCode, string userCode)
 {
     _objDALSplashScreen = new DAL_SplashScreen();
     return(_objDALSplashScreen.GetUnderUserTypes(companyCode, userCode));
 }