Esempio n. 1
0
        public string GetDoctorSufPreColumns()
        {
            IConfigSettings IConfig_Settings = new Config_Settings();

            _objCurrentInfo = new CurrentInfo();
            return(IConfig_Settings.GetConfigDefaultValue(_objCurrentInfo.GetCompanyCode(), CONFIG_TYPE.DCR, CONFIG_KEY.DCR_DOCTOR_SUFIX_COLUMNS));
        }
        public string GetConfigvalues(string companyCode)
        {
            string configValue = string.Empty;

            _objIconfigsettings = new Config_Settings();
            return(_objIconfigsettings.GetConfigDefaultValue(companyCode, CONFIG_TYPE.DCR, CONFIG_KEY.DCR_NO_PREFIL_EXPENSE_VALUE));
        }
Esempio n. 3
0
        /// <summary>
        /// Retrive the Inward Acknowledgement Value.
        /// </summary>
        /// <returns>JsonResult</returns>
        public JsonResult GetUserDashboardInwardAcknowlegementConfigValue()
        {
            CurrentInfo     _objcurrentInfo  = new CurrentInfo();
            IConfigSettings IConfig_Settings = new Config_Settings();
            string          INWARD_ACKNOWLEDGEMENT_NEEDED = IConfig_Settings.GetConfigDefaultValue(_objcurrentInfo.GetCompanyCode(), CONFIG_TYPE.INWARD, CONFIG_KEY.INWARD_ACKNOWLEDGEMENT_NEEDED);

            return(Json(INWARD_ACKNOWLEDGEMENT_NEEDED, JsonRequestBehavior.AllowGet));
        }
Esempio n. 4
0
        public ActionResult Index()
        {
            string companyCode = _objCurrentInfo.GetCompanyCode();

            IConfig_Settings    = new Config_Settings();
            ViewBag.PS_filesize = IConfig_Settings.GetConfigDefaultValue(companyCode, CONFIG_TYPE.PRIMARY_SALES,
                                                                         CONFIG_KEY.MAX_FILE_SIZE_PS);
            return(View());
        }
Esempio n. 5
0
        public ActionResult Index(string bpType)
        {
            CurrentInfo     _objcurrentInfo  = new CurrentInfo();
            IConfigSettings IConfig_Settings = new Config_Settings();
            string          INWARD_ACKNOWLEDGEMENT_NEEDED = IConfig_Settings.GetConfigDefaultValue(_objcurrentInfo.GetCompanyCode(), CONFIG_TYPE.INWARD, CONFIG_KEY.INWARD_ACKNOWLEDGEMENT_NEEDED);

            ViewBag.InwardType = INWARD_ACKNOWLEDGEMENT_NEEDED;
            ViewBag.BpType     = bpType == null ? "" : bpType;
            return(View());
        }
Esempio n. 6
0
        private string GetUnapprovedDCRCheckConfigValue()
        {
            _objcurrentInfo = new CurrentInfo();
            IConfigSettings IConfig_Settings = new Config_Settings();
            string          companyCode      = _objcurrentInfo.GetCompanyCode();

            // Retrives the DCR_ENTRY_TIME_GAP value.
            string CHK_UNAPPROVED_DCR_SEQ = IConfig_Settings.GetConfigDefaultValue(companyCode, CONFIG_TYPE.DCR,
                                                                                   CONFIG_KEY.DCR_UNAPPROVED_INCLUDE_IN_SEQ);

            // Returns the dcrTimeGapValue.
            return(CHK_UNAPPROVED_DCR_SEQ);
        }
Esempio n. 7
0
        private string GetGreyTipPayRollShortNameConfigValue()
        {
            _objcurrentInfo = new CurrentInfo();
            IConfigSettings IConfig_Settings = new Config_Settings();
            string          companyCode      = _objcurrentInfo.GetCompanyCode();

            // Retrives the DCR_ENTRY_TIME_GAP value.
            string LEAVE_SHORT_NAME = IConfig_Settings.GetConfigDefaultValue(companyCode, CONFIG_TYPE.DCR,
                                                                             CONFIG_KEY.PAYROLL_VENDOR_SHORT_NAME);

            // Returns the dcrTimeGapValue.
            return(LEAVE_SHORT_NAME);
        }
Esempio n. 8
0
        public ActionResult PrimarySalesAutomation()
        {
            CurrentInfo     _objcurrentInfo  = new CurrentInfo();
            IConfigSettings IConfig_Settings = new Config_Settings();
            string          INWARD_ACKNOWLEDGEMENT_NEEDED = IConfig_Settings.GetConfigDefaultValue(_objcurrentInfo.GetCompanyCode(), CONFIG_TYPE.INWARD, CONFIG_KEY.INWARD_ACKNOWLEDGEMENT_NEEDED);

            ViewBag.InwardType = INWARD_ACKNOWLEDGEMENT_NEEDED;
            string bpType = "PS_AUTOMATION_UPLOAD";

            ViewBag.BpType       = bpType == null ? "" : bpType;
            ViewBag.Company_Code = _objcurrentInfo.GetCompanyCode();
            ViewBag.User_Code    = _objcurrentInfo.GetUserCode();
            return(View());
        }
Esempio n. 9
0
        public JsonResult GetDoctors(string accRegions, string accChemist, string dcrActualDate)
        {
            List <JsonResult> lstJSON     = new List <JsonResult>();
            string            companyCode = _objcurrentInfo.GetCompanyCode();
            string            regionCode  = _objcurrentInfo.GetRegionCode();
            string            regionCodes = accRegions.Trim().Length > 0 ? accRegions + regionCode + "^" : regionCode + "^";
            string            regions     = string.Empty;
            string            userCode    = _objcurrentInfo.GetUserCode();
            int regionLength = 31;

            if (!accChemist.Trim().ToUpper().Contains("DOCTOR"))
            {
                regions = regionCode + "^";
            }
            else
            {
                regions      = regionCodes;
                regionLength = regionCodes.Length;
            }

            DataSet dsDoctors = new DataSet();

            IConfigSettings config_Settings = new Config_Settings();
            string          DoctorSufPreColumnConfigValue = config_Settings.GetConfigDefaultValue(companyCode, DataControl.EnumType.CONFIG_TYPE.DCR, DataControl.EnumType.CONFIG_KEY.DCR_DOCTOR_SUFIX_COLUMNS);

            // Execute the Query and returns the DataSet.
            dsDoctors = _objSPData.GetSelectedDoctors(companyCode, regions, regionCode, DoctorSufPreColumnConfigValue, dcrActualDate);
            DataTable dtDoctors = dsDoctors.Tables[0];

            // Convert the DataTable to list.
            List <DCRDoctorVisitModel> lstDoctor = (from Doctor in dtDoctors.AsEnumerable()
                                                    select new DCRDoctorVisitModel
            {
                label = Doctor["Customer_Name"].ToString() + "_" + Doctor["MDL"].ToString() + "_" + Doctor["Speciality_Name"].ToString() + "_" + Doctor["Region_Name"].ToString(),
                value = Doctor["Customer_Code"].ToString(),
                Category = Doctor["Category_Name"].ToString(),
                Category_Code = Doctor["Category_Code"].ToString(),
                Is_Acc_Doctor = Doctor["Is_Acc_Doctor"].ToString(),
                Speciality_Code = Doctor["Speciality_Code"].ToString(),
                Speciality_Name = Doctor["Speciality_Name"].ToString(),
                Doctor_Region_Code = Doctor["Region_Code"].ToString(),
                Doctor_Code = Doctor["Customer_Code"].ToString()
            }).ToList <DCRDoctorVisitModel>();

            // returns the list.
            lstJSON.Add(Json(lstDoctor, JsonRequestBehavior.AllowGet));

            DataSet dsSpeciality = new DataSet();

            // Execute the Query and returns the DataSet.
            dsSpeciality = _objSPData.GetSpeciality(companyCode, userCode);
            DataTable dtSpeciality = dsSpeciality.Tables[0];

            // Convert the DataTable to list.
            List <DCRDoctorVisitModel> lstSpeciality = (from Speciality in dtSpeciality.AsEnumerable()
                                                        select new DCRDoctorVisitModel
            {
                label = Speciality["Speciality_Name"].ToString(),
                value = Speciality["Speciality_Code"].ToString()
            }).ToList <DCRDoctorVisitModel>();

            // returns the list.
            lstJSON.Add(Json(lstSpeciality, JsonRequestBehavior.AllowGet));
            return(Json(lstJSON));
        }