Ejemplo n.º 1
0
 public string fnGetLockRelease(string userCode)
 {
     try
     {
         DataSet dsEmail     = new DataSet();
         string  strmail     = "";
         string  strEmailid  = "";
         string  companyCode = _objCurInfo.GetCompanyCode();
         string  userName    = _objCurInfo.GetUserName();
         BLUser  objBLuser   = new BLUser();
         bool    lockrelease = objBLuser.GetLockRelease(companyCode, userCode, userName, DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"), "MANUAL");
         if (lockrelease)
         {
             dsEmail = objBLuser.checkEmailid(Session["Comp_Code"].ToString(), userCode);
         }
         if (dsEmail.Tables[0].Rows.Count > 0)
         {
             string strUserName = dsEmail.Tables[0].Rows[0]["User_Name"].ToString();
             string strPassword = dsEmail.Tables[0].Rows[0]["User_Pass"].ToString();
             strEmailid = dsEmail.Tables[0].Rows[0]["Email_Id"].ToString();
             strmail    = SendMail(strPassword, strUserName, strEmailid);
         }
         return(strmail + "*" + strEmailid);
     }
     catch (Exception ex)
     {
         Dictionary <string, string> dicContext = new Dictionary <string, string>();
         dicContext.Add("Filter:UserName", userCode);
         DataControl.Impl.ExceptionHandler.WriteLog(ex, dicContext);
         throw new Exception("Sorry an error occurred. Please try again later");
     }
 }
Ejemplo n.º 2
0
 public ActionResult DailyReporting(string dcrActualDate)
 {
     ViewBag.CompanyCode  = _objCurrentInfo.GetCompanyCode();
     ViewBag.RegionCode   = _objCurrentInfo.GetRegionCode();
     ViewBag.UserCode     = _objCurrentInfo.GetUserCode();
     ViewBag.UserTypeCode = _objCurrentInfo.GetUserTypeCode();
     ViewBag.dcrdate      = dcrActualDate;
     ViewBag.UserName     = _objCurrentInfo.GetUserName();
     ViewBag.RegionName   = _objCurrentInfo.GetRegionName();
     return(View());
 }
Ejemplo n.º 3
0
        public string GetFormManagementURL()
        {
            CurrentInfo _objcurrentinfo   = new CurrentInfo();
            string      formManagementURL = string.Empty;

            try
            {
                string formmanagementstring = _objcurrentinfo.GetFormManagementURL();
                string subDomainName        = _objcurrentinfo.GetSubDomain();
                string userName             = _objcurrentinfo.GetUserName();

                byte[] companyEncode           = System.Text.Encoding.UTF8.GetBytes(_objcurrentinfo.GetCompanyCode());
                String EncodeCompanyCodeString = Convert.ToBase64String(companyEncode);

                byte[] Userencode           = System.Text.Encoding.UTF8.GetBytes(_objcurrentinfo.GetUserCode());
                String EncodeUserCodeString = Convert.ToBase64String(Userencode);


                if (!string.IsNullOrEmpty(formmanagementstring))
                {
                    formManagementURL = "" + formmanagementstring + "?C=" + EncodeCompanyCodeString + "&U=" + EncodeUserCodeString + "";
                }
                return(formManagementURL);
            }
            catch (Exception ex)
            {
                DataControl.Impl.ExceptionHandler.WriteLog(ex, null);
                return(ex.Message.ToString());
            }
        }
Ejemplo n.º 4
0
        public string GetHrmsURL()
        {
            CurrentInfo _objCurrInfo        = new CurrentInfo();
            string      LoginParams         = string.Empty;
            string      HRMS_Url            = string.Empty;
            string      HRMS_RedirectingUrl = string.Empty;

            try
            {
                HRMS_RedirectingUrl = _objCurrInfo.GetHRMURL();
                CompanyDetails lstcompdetails = new CompanyDetails();
                lstcompdetails.Company_Code    = _objCurrInfo.GetCompanyCode();
                lstcompdetails.Region_Code     = _objCurrInfo.GetRegionCode();
                lstcompdetails.User_Code       = _objCurrInfo.GetUserCode();
                lstcompdetails.Employee_Code   = _objCurrInfo.GetEmployeeCode();
                lstcompdetails.Employee_Number = _objCurrInfo.GetEmployeeNumber();
                lstcompdetails.UserName        = _objCurrInfo.GetUserName();
                lstcompdetails.User_Type_Code  = _objCurrInfo.GetUserTypeCode();

                LoginParams = JsonConvert.SerializeObject(lstcompdetails);
                byte[] LoginParamsEncode = System.Text.Encoding.UTF8.GetBytes(LoginParams);
                LoginParams = Convert.ToBase64String(LoginParamsEncode);

                if (!string.IsNullOrEmpty(HRMS_RedirectingUrl))
                {
                    HRMS_Url = "" + HRMS_RedirectingUrl + "?SSID=" + LoginParams;
                }
                return(HRMS_Url);
            }
            catch (Exception ex)
            {
                DataControl.Impl.ExceptionHandler.WriteLog(ex, null);
                return(string.Empty);
            }
        }
Ejemplo n.º 5
0
        public bool InsertNewMappingQuestions(string usertypeCode, string Questions)
        {
            bool result = false;

            try
            {
                string companyCode = null;
                string createdBy   = null;
                if (!string.IsNullOrEmpty(Questions))
                {
                    var questions = JsonConvert.DeserializeObject <List <string> >(Questions);

                    foreach (string qstns in questions)
                    {
                        BL_ICE      objmapqstns        = new BL_ICE();
                        CurrentInfo _ObjectCurrentInfo = new CurrentInfo();
                        companyCode = ViewBag.Company_Code = _ObjectCurrentInfo.GetCompanyCode();
                        createdBy   = ViewBag.Created_By = _ObjectCurrentInfo.GetUserName();
                        result      = objmapqstns.InsertNewMappingQuestions(companyCode, usertypeCode, createdBy, qstns);
                    }
                }
            }
            catch (Exception ex)
            {
                throw;
            }
            return(result);
        }
Ejemplo n.º 6
0
        public string GetOneLibURL()
        {
            CurrentInfo objCurInfo = new CurrentInfo();
            string      oneLibUrl  = string.Empty;

            try
            {
                string companyCode          = objCurInfo.GetCompanyCode();
                string userTypeCode         = objCurInfo.GetUserTypeCode();
                string userCode             = objCurInfo.GetUserCode();
                string oneLibRedirectionUrl = objCurInfo.GetOneLibUrl();
                string sessionId            = objCurInfo.GetSessionId();
                string regionCode           = objCurInfo.GetRegionCode();
                string userName             = objCurInfo.GetUserName();

                if (!string.IsNullOrEmpty(oneLibRedirectionUrl))
                {
                    oneLibUrl = "" + oneLibRedirectionUrl + "?User_Code=" + userCode + "&Comp_Code=" + companyCode + "&Session_Id=" + sessionId + "&Return_URL=" + Request.Url.Authority + "&User_Type_Code=" + userTypeCode + "&Region_Code=" + regionCode + "&User_Name=" + userName + "";
                }
                return(oneLibUrl);
            }
            catch (Exception ex)
            {
                DataControl.Impl.ExceptionHandler.WriteLog(ex, null);
                return(string.Empty);
            }
        }
Ejemplo n.º 7
0
        public string GetWideAngleURL()
        {
            CurrentInfo objCurInfo   = new CurrentInfo();
            string      wideAngleUrl = string.Empty;

            try
            {
                string companyCode  = objCurInfo.GetCompanyCode();
                string userTypeCode = objCurInfo.GetUserTypeCode();
                string userCode     = objCurInfo.GetUserCode();
                string waUrl        = objCurInfo.GetWideAngleUrl();
                string sessionId    = objCurInfo.GetSessionId();
                string regionCode   = objCurInfo.GetRegionCode();
                string userName     = objCurInfo.GetUserName();

                if (!string.IsNullOrEmpty(waUrl))
                {
                    wideAngleUrl = "" + waUrl + "?User_Code=" + userCode + "&Comp_Code=" + companyCode + "&Session_Id=" + sessionId + "&Return_URL=" + Request.Url.Authority + "&User_Type_Code=" + userTypeCode + "&Region_Code=" + regionCode + "&User_Name=" + userName + "";
                }
                return(wideAngleUrl);
            }
            catch (Exception ex)
            {
                ErrorLog.LogError(ex, "GetWideAngleURL()");
                return(ex.Message.ToString());
            }
        }
Ejemplo n.º 8
0
        public string GetGroupDetails()
        {
            DataSet       ds            = new DataSet();
            StringBuilder sbHtmlContent = new StringBuilder();
            string        Group_All     = "ALL";
            //ds = _objDALNoticeBoard.GetGroupDetails();

            CurrentInfo objCurInfo = new CurrentInfo();
            string      UserName   = objCurInfo.GetUserName();
            List <MVCModels.HiDoctor_Master.GroupDetails> lstGroup = new List <MVCModels.HiDoctor_Master.GroupDetails>();

            DataControl.HD_MasterFactoryClasses.BL_SplashScreen _objBLSplashScreen = new DataControl.HD_MasterFactoryClasses.BL_SplashScreen();
            lstGroup = _objBLSplashScreen.GetGroupDetails(UserName).ToList();

            //sbHtmlContent.Append("&nbsp;<input type=\"radio\" onclick=\"userGroupcheckAll();\" id=\"chk_UG_ALL" + Group_All + "\" name=\"chck_UGALL\" value=\"" + Group_All + "\">");
            // sbHtmlContent.Append("&nbsp;<label for=\"chk_UGALL_" + Group_All + "\">" + Group_All + "</label>");


            foreach (var item in lstGroup)
            {
                sbHtmlContent.Append("&nbsp;<input type=\"radio\"  onclick='fnUserGroupChk(\"" + item.Group_ID + "\")' Class=\"clsCheckUserGroup\" id=\"chk_UG_" + item.Group_Name + "\" name=\"chck_UG\" value=\"" + item.Group_Name + "\">");
                sbHtmlContent.Append("&nbsp;<label for=\"chk_UG_" + item.Group_Name + "\">" + item.Group_Name + "</label>");
            }
            // foreach (DataRow dr in ds.Tables[0].Rows)
            // {
            //     sbHtmlContent.Append("&nbsp;<input type=\"checkbox\"  onclick='fnUserGroupChk(\"" + ds.Tables[0].Rows.Count + "\")' Class=\"clsCheckUserGroup\" id=\"chk_UG_" + dr["Group_Name"].ToString() + "\" name=\"chck_UG\" value=\"" + dr["Group_Name"].ToString() + "\">");
            //      sbHtmlContent.Append("&nbsp;<label for=\"chk_UG_" + dr["Group_Name"].ToString() + "\">" + dr["Group_Name"].ToString() + "</label>");
            // }
            return(sbHtmlContent.ToString());
        }
Ejemplo n.º 9
0
        public void DownloadSFCExcelFormat(FormCollection col)
        {
            System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls12;
            DataControl.Repository.FileDownload   objFileDownload = new DataControl.Repository.FileDownload();
            DataControl.Abstraction.IFileProvider objProvider     = new DataControl.Impl.FileSystemProvider();
            _objCurrentInfo = new CurrentInfo();
            string regioncode  = col["hdnRegionCode"].ToString();
            string sfcStatus   = col["SFCStatus"].ToString();
            int    archived    = Convert.ToInt32(col["rdoShowArchived"].ToString());
            int    totalPageNo = 0;
            string error       = "";
            List <SFCRegionModel> lstRegionModel = GetSFCRegions(regioncode, 1, true, ref totalPageNo, "", "", "", sfcStatus, archived).ToList();
            string SFCGrid = SFCExcelTable(lstRegionModel);

            DataControl.Abstraction.IConfigProvider iConfigPro   = new DataControl.Impl.ConfigProvider();
            DataControl.Repository.AzureBlobUpload  objAzureBlob = new DataControl.Repository.AzureBlobUpload();
            string accKey = iConfigPro.GetConfigValue("SWAASBLOBACCKEY");

            string userName = _objCurrentInfo.GetUserName();
            string compCode = _objCurrentInfo.GetCompanyCode();

            string fileName = "SFCMASTER" + "_" + compCode + "_" + userName + ".xls";
            string blobUrl  = objAzureBlob.AzureBlobUploadText(SFCGrid, accKey, fileName, "bulkdatasvc");

            objFileDownload.DownloadFile(blobUrl, fileName, out error);
        }
Ejemplo n.º 10
0
        public string GetCRMURL()
        {
            CurrentInfo _objCurrInfo = new CurrentInfo();
            string      LoginParams  = string.Empty;
            string      CRMURL       = string.Empty;

            try
            {
                CompanyDetails lstcompdetails = new CompanyDetails();
                lstcompdetails.Company_Code    = _objCurrInfo.GetCompanyCode();
                lstcompdetails.Region_Code     = _objCurrInfo.GetRegionCode();
                lstcompdetails.User_Code       = _objCurrInfo.GetUserCode();
                lstcompdetails.Employee_Code   = _objCurrInfo.GetEmployeeCode();
                lstcompdetails.Employee_Number = _objCurrInfo.GetEmployeeNumber();
                lstcompdetails.UserName        = _objCurrInfo.GetUserName();
                lstcompdetails.User_Type_Code  = _objCurrInfo.GetUserTypeCode();

                LoginParams = JsonConvert.SerializeObject(lstcompdetails);
                byte[] LoginParamsEncode = System.Text.Encoding.UTF8.GetBytes(LoginParams);
                LoginParams = Convert.ToBase64String(LoginParamsEncode);


                CRMURL = LoginParams;
                return(CRMURL);
            }
            catch (Exception ex)
            {
                DataControl.Impl.ExceptionHandler.WriteLog(ex, null);
                return(string.Empty);
            }
        }
Ejemplo n.º 11
0
        // To View In Chamber Effectiveness Form
        public ActionResult InChamberEffectivenessForm()
        {
            CurrentInfo _ObjectCurrentInfo = new CurrentInfo();

            ViewBag.User_Code = _ObjectCurrentInfo.GetUserCode();
            ViewBag.User_Name = _ObjectCurrentInfo.GetUserName();
            return(View());
        }
Ejemplo n.º 12
0
        public string SetDCRUnapprove(string dcrDate, string unapprovealReason, string flag, string calcFieldStatus)
        {
            string companyCode = _objCurrentInfo.GetCompanyCode();
            string userName    = _objCurrentInfo.GetUserName();
            string userCode    = _objCurrentInfo.GetUserCode();
            string dcrCode     = _objCurrentInfo.GetDCRCode(dcrDate);

            calcFieldStatus = calcFieldStatus.ToUpper() == "APPLIED" ? "1" : "2";
            string result = string.Empty;

            result = _objSPData.CheckTheDCRCanbeUnapprove(companyCode, userCode, dcrCode, flag);
            if (result == "SUCCESS")
            {
                result = _objSPData.SetDCRUnapprove(companyCode, userCode, userName, dcrDate, dcrCode, flag, unapprovealReason, calcFieldStatus);
            }
            return(result);
        }
Ejemplo n.º 13
0
 //ActionResult to Direct into  Purchase Requisition Form
 public ActionResult PurchaseRequisitionForm(string CampaignCode, string StartDate, string EndDate)
 {
     ViewBag.User_Name    = ObjCurrInfo.GetUserName();
     ViewBag.User_Code    = ObjCurrInfo.GetUserCode();
     ViewBag.CampaignCode = CampaignCode;
     ViewBag.StartDate    = StartDate;
     ViewBag.EndDate      = EndDate;
     return(View());
 }
Ejemplo n.º 14
0
 public ActionResult Index()
 {
     _objCurrentInfo            = new CurrentInfo();
     ViewBag.CompanyCode        = _objCurrentInfo.GetCompanyCode();
     ViewBag.LoggedUserName     = _objCurrentInfo.GetUserName();
     ViewBag.LoggedEmployeeName = _objCurrentInfo.GetEmployeeName();
     ViewBag.loggedUserTypeName = _objCurrentInfo.GetUserTypeName();
     ViewBag.RequestUserCode    = _objCurrentInfo.GetUserCode();
     return(View());
 }
Ejemplo n.º 15
0
 public ActionResult InwardAllocation()
 {
     _objCurrentInfo      = new CurrentInfo();
     ViewBag.CompanyCode  = _objCurrentInfo.GetCompanyCode();
     ViewBag.RegionCode   = _objCurrentInfo.GetRegionCode();
     ViewBag.RegionName   = _objCurrentInfo.GetRegionName();
     ViewBag.UserCode     = _objCurrentInfo.GetUserCode();
     ViewBag.UserName     = _objCurrentInfo.GetUserName();
     ViewBag.UserTypeName = _objCurrentInfo.GetUserTypeName();
     return(View());
 }
Ejemplo n.º 16
0
 public ActionResult STOS_Approval()
 {
     _objCurrentInfo      = new CurrentInfo();
     ViewBag.CompanyCode  = _objCurrentInfo.GetCompanyCode();
     ViewBag.RegionCode   = _objCurrentInfo.GetRegionCode();
     ViewBag.RegionName   = _objCurrentInfo.GetRegionName();
     ViewBag.UserCode     = _objCurrentInfo.GetUserCode();
     ViewBag.UserName     = _objCurrentInfo.GetUserName();
     ViewBag.UserTypeName = _objCurrentInfo.GetUserTypeName();
     return(View());
 }
Ejemplo n.º 17
0
        public string InsertDistanceFareChart(string DFCJson)
        {
            try
            {
                string result      = string.Empty;
                string companyCode = _objCurr.GetCompanyCode();
                string userName    = _objCurr.GetUserName();


                BLMaster _objMast = new BLMaster();

                result = _objMast.InsertDistanceFareChart(companyCode, DFCJson, userName);

                return(result);
            }
            catch (Exception ex)
            {
                Dictionary <string, string> dicObj = new Dictionary <string, string>();
                DataControl.Impl.ExceptionHandler.WriteLog(ex: ex, dic: dicObj);
                return("FAIL^" + ex.Message);
            }
        }
Ejemplo n.º 18
0
        public ActionResult STOSEmailTrigger()
        {
            _objCurrentInfo             = new CurrentInfo();
            ViewBag.CompanyCode         = _objCurrentInfo.GetCompanyCode();
            ViewBag.RequestRegionCode   = _objCurrentInfo.GetRegionCode();
            ViewBag.RequestRegionName   = _objCurrentInfo.GetRegionName();
            ViewBag.RequestUserCode     = _objCurrentInfo.GetUserCode();
            ViewBag.RequestUserName     = _objCurrentInfo.GetUserName();
            ViewBag.RequestUserTypeName = _objCurrentInfo.GetUserTypeName();
            ViewBag.RequestUserTypeCode = _objCurrentInfo.GetUserTypeCode();


            return(View());
        }
Ejemplo n.º 19
0
 public ActionResult Request(string regionCode, int?stosId)
 {
     _objCurrentInfo             = new CurrentInfo();
     ViewBag.CompanyCode         = _objCurrentInfo.GetCompanyCode();
     ViewBag.RequestRegionCode   = _objCurrentInfo.GetRegionCode();
     ViewBag.RequestRegionName   = _objCurrentInfo.GetRegionName();
     ViewBag.RequestUserCode     = _objCurrentInfo.GetUserCode();
     ViewBag.RequestUserName     = _objCurrentInfo.GetUserName();
     ViewBag.RequestUserTypeName = _objCurrentInfo.GetUserTypeName();
     ViewBag.RequestUserTypeCode = _objCurrentInfo.GetUserTypeCode();
     ViewBag.StosId       = stosId;
     ViewBag.SelectedUser = regionCode;
     return(View());
 }
Ejemplo n.º 20
0
        public JsonResult GetAllTasksByMe()
        {
            string assignedBy = null;

            try
            {
                BL_ICE      objlstdtsks        = new BL_ICE();
                CurrentInfo _ObjectCurrentInfo = new CurrentInfo();
                assignedBy = ViewBag.User_Code = _ObjectCurrentInfo.GetUserName();
                return(Json(objlstdtsks.GetAllTasksByMe(assignedBy), JsonRequestBehavior.AllowGet));
            }
            catch (Exception ex)
            {
                throw;
            }
        }
Ejemplo n.º 21
0
 private void CreateFileName(string product_type_name, string division_name)
 {
     #region File Name Generated
     _fileNameString.Append(_objCurrentInfo.GetSubDomain() + "_");
     _fileNameString.Append(_objCurrentInfo.GetUserName() + "_");
     _fileNameString.Append("Inward_Bulk_upload_");
     _fileNameString.Append(division_name == null ? "NoDivision" : division_name);
     _fileNameString.Append("_");
     _fileNameString.Append(product_type_name);
     _fileNameString.Append("_");
     _fileNameString.Append(DateTime.Now.ToString("dd-MM-yyyy"));
     _fileNameString.Append("_");
     _fileNameString.Append((DateTime.Now.ToString("HH-mm-ss-ffffff")));
     _fileNameString.Append(".xls");
     #endregion File Name Generated
 }
Ejemplo n.º 22
0
        public JsonResult GetClosedTasks(string userCode)
        {
            string createdBy = null;

            try
            {
                BL_ICE      objlstclsdtsks     = new BL_ICE();
                CurrentInfo _ObjectCurrentInfo = new CurrentInfo();
                createdBy = ViewBag.Created_By = _ObjectCurrentInfo.GetUserName();
                return(Json(objlstclsdtsks.GetClosedTasks(userCode, createdBy), JsonRequestBehavior.AllowGet));
            }
            catch (Exception ex)
            {
                throw;
            }
        }
Ejemplo n.º 23
0
        public string ExecuteAPI(FormCollection coll)
        {
            try
            {
                string error = string.Empty;
                Repository.APIRepository objAPIRepo = new Repository.APIRepository();
                //public string ExecuteService(string companyCode, string userName, System.Web.Mvc.FormCollection coll,string subDominName, out string error)
                string url = objAPIRepo.ExecuteService(_objCur.GetCompanyCode(), _objCur.GetUserName(), coll, _objCur.GetSubDomain(), out error);

                return(url);
            }
            catch (Exception ex)
            {
                Dictionary <string, string> dicObj = new Dictionary <string, string>();
                DataControl.Impl.ExceptionHandler.WriteLog(ex: ex, dic: dicObj);
                return(null);
            }
        }
Ejemplo n.º 24
0
        public bool UpdateQuestionStatus(string usertypeCode, int questionId)
        {
            bool result = false;

            try
            {
                BL_ICE      objStatQstn        = new BL_ICE();
                CurrentInfo _ObjectCurrentInfo = new CurrentInfo();
                string      companyCode        = ViewBag.Company_Code = _ObjectCurrentInfo.GetCompanyCode();
                string      modifiedBy         = ViewBag.Created_By = _ObjectCurrentInfo.GetUserName();
                result = objStatQstn.UpdateQuestionStatus(companyCode, usertypeCode, modifiedBy, questionId);
            }
            catch (Exception ex)
            {
                throw;
            }
            return(result);
        }
Ejemplo n.º 25
0
        public JsonResult GetEvaluationDates(string userCode)
        {
            string companyCode = null;
            string createdBy   = null;

            try
            {
                BL_ICE      objEvaldtslst      = new BL_ICE();
                CurrentInfo _ObjectCurrentInfo = new CurrentInfo();
                companyCode = ViewBag.Company_Code = _ObjectCurrentInfo.GetCompanyCode();
                createdBy   = ViewBag.Created_By = _ObjectCurrentInfo.GetUserName();
                return(Json(objEvaldtslst.GetEvaluationDates(companyCode, userCode, createdBy), JsonRequestBehavior.AllowGet));
            }
            catch (Exception ex)
            {
                throw;
            }
        }
Ejemplo n.º 26
0
        public bool UpdateTaskStatus(int Task_Id, int Task_Status, string Remarks)
        {
            bool   result   = false;
            string updateBy = null;

            try
            {
                BL_ICE      objupdttsk         = new BL_ICE();
                CurrentInfo _ObjectCurrentInfo = new CurrentInfo();
                updateBy = ViewBag.Updated_By = _ObjectCurrentInfo.GetUserName();
                result   = objupdttsk.UpdateTaskStatus(Task_Id, Task_Status, Remarks, updateBy);
            }
            catch (Exception ex)
            {
                throw;
            }
            return(result);
        }
Ejemplo n.º 27
0
        public string urlEncodeing()
        {
            MVCModels.UserInfoModel objuser    = new MVCModels.UserInfoModel();
            CurrentInfo             objCurInfo = new CurrentInfo();
            string userParam = string.Empty;

            objuser.Company_Code   = objCurInfo.GetCompanyCode();
            objuser.User_Code      = objCurInfo.GetUserCode();
            objuser.User_Type_Code = objCurInfo.GetUserTypeCode();
            objuser.Region_Code    = objCurInfo.GetRegionCode();
            objuser.Company_Id     = objCurInfo.GetCompanyId();
            objuser.User_Details   = objCurInfo.GetUserName() + " (" + objCurInfo.GetUserTypeName() + ")";
            objuser.Is_Mobile      = "NO";
            userParam = Newtonsoft.Json.JsonConvert.SerializeObject(objuser);
            byte[] LoginParamsEncode = System.Text.Encoding.UTF8.GetBytes(userParam);
            userParam = Convert.ToBase64String(LoginParamsEncode);
            return(userParam);
        }
Ejemplo n.º 28
0
        public JsonResult GetJointWorkingDates(string childuserCode, string childuserName, string startDate, string endDate)
        {
            string companyCode    = null;
            string parentuserCode = null;
            string parentuserName = null;

            try
            {
                BL_ICE      objjntdtes         = new BL_ICE();
                CurrentInfo _ObjectCurrentInfo = new CurrentInfo();
                companyCode    = ViewBag.Company_Code = _ObjectCurrentInfo.GetCompanyCode();
                parentuserCode = ViewBag.PUser_Code = _ObjectCurrentInfo.GetUserCode();
                parentuserName = ViewBag.PUser_Name = _ObjectCurrentInfo.GetUserName();
                return(Json(objjntdtes.GetJointWorkingDates(companyCode, parentuserCode, parentuserName, childuserCode, childuserName, startDate, endDate), JsonRequestBehavior.AllowGet));
            }
            catch (Exception ex)
            {
                throw;
            }
        }
Ejemplo n.º 29
0
        public JsonResult GetTaskLiveCount()
        {
            string companyCode = null;
            string userCode    = null;
            string createdBy   = null;

            try
            {
                BL_ICE      objtskscount       = new BL_ICE();
                CurrentInfo _ObjectCurrentInfo = new CurrentInfo();
                companyCode = ViewBag.Company_Code = _ObjectCurrentInfo.GetCompanyCode();
                userCode    = ViewBag.User_Code = _ObjectCurrentInfo.GetUserCode();
                createdBy   = ViewBag.Created_By = _ObjectCurrentInfo.GetUserName();
                return(Json(objtskscount.GetTaskLiveCount(companyCode, userCode, createdBy), JsonRequestBehavior.AllowGet));
            }
            catch (Exception ex)
            {
                throw;
            }
        }
Ejemplo n.º 30
0
        public bool UpdateQuestionStatusToActive(string usertypeCode, int questionId)
        {
            string companyCode = null;
            string modifiedBy  = null;
            bool   result      = false;

            try
            {
                BL_ICE      objchngstaAct      = new BL_ICE();
                CurrentInfo _ObjectCurrentInfo = new CurrentInfo();
                companyCode = ViewBag.Company_Code = _ObjectCurrentInfo.GetCompanyCode();
                modifiedBy  = ViewBag.Created_By = _ObjectCurrentInfo.GetUserName();
                result      = objchngstaAct.UpdateQuestionStatusToActive(companyCode, usertypeCode, questionId, modifiedBy);
            }
            catch (Exception Ex)
            {
                throw;
            }
            return(result);
        }