Esempio n. 1
0
        public ActionResult MasterSetting(KeystoneProject.Models.Master.MasterSetting MasterSetting)
        {
            Buisness_Logic.Master.BL_MasterSetting setting = new Buisness_Logic.Master.BL_MasterSetting();
            MasterSetting.ShowAllMasterSetting = setting.GetMasterSetting();
            MasterSetting.dsFinancial          = setting.GetAllFinancialYear();

            if (MasterSetting.ShowAllMasterSetting.Tables[0].Rows.Count != 0)
            {
                MasterSetting.OPDBillsOutSidePatient = Convert.ToBoolean(MasterSetting.ShowAllMasterSetting.Tables[0].Rows[0]["OPDBillsOutSidePatient"].ToString());

                MasterSetting.ForAuthorization = Convert.ToBoolean(MasterSetting.ShowAllMasterSetting.Tables[0].Rows[0]["ForAuthorization"].ToString());

                MasterSetting.OPDLabBillsOutSidePatient = Convert.ToBoolean(MasterSetting.ShowAllMasterSetting.Tables[0].Rows[0]["OPDLabBillsOutSidePatient"].ToString());
                MasterSetting.MasterSettingID           = Convert.ToInt32(MasterSetting.ShowAllMasterSetting.Tables[0].Rows[0]["MasterSettingID"].ToString());
                MasterSetting.DoctorNameInLabReport     = MasterSetting.ShowAllMasterSetting.Tables[0].Rows[0]["DoctorNameInLabReport"].ToString();
                MasterSetting.DoctorNameInLabReport1    = MasterSetting.ShowAllMasterSetting.Tables[0].Rows[0]["DoctorNameInLabReport1"].ToString();
                MasterSetting.LogoSize        = MasterSetting.ShowAllMasterSetting.Tables[0].Rows[0]["LogoSize"].ToString();
                MasterSetting.LabReportFooter = MasterSetting.ShowAllMasterSetting.Tables[0].Rows[0]["LabReportFooter"].ToString();

                MasterSetting.OPDRegistration = Convert.ToBoolean(MasterSetting.ShowAllMasterSetting.Tables[0].Rows[0]["OPDRegistration"].ToString());

                MasterSetting.OpdBill                   = Convert.ToBoolean(MasterSetting.ShowAllMasterSetting.Tables[0].Rows[0]["OpdBill"].ToString());
                MasterSetting.IPDAdmission              = Convert.ToBoolean(MasterSetting.ShowAllMasterSetting.Tables[0].Rows[0]["IPDAdmission"].ToString());
                MasterSetting.IpdBill                   = Convert.ToBoolean(MasterSetting.ShowAllMasterSetting.Tables[0].Rows[0]["IpdBill"].ToString());
                MasterSetting.ProvisionalBill           = Convert.ToBoolean(MasterSetting.ShowAllMasterSetting.Tables[0].Rows[0]["ProvisionalBill"].ToString());
                MasterSetting.IpdFinalBill              = Convert.ToBoolean(MasterSetting.ShowAllMasterSetting.Tables[0].Rows[0]["IpdFinalBill"].ToString());
                MasterSetting.IPDDischargeSummary       = Convert.ToBoolean(MasterSetting.ShowAllMasterSetting.Tables[0].Rows[0]["IPDDischargeSummary"].ToString());
                MasterSetting.PatientPaymentAndDeposite = Convert.ToBoolean(MasterSetting.ShowAllMasterSetting.Tables[0].Rows[0]["PatientPaymentAndDeposite"].ToString());
                MasterSetting.PatientPrescription       = Convert.ToBoolean(MasterSetting.ShowAllMasterSetting.Tables[0].Rows[0]["PatientPrescription"].ToString());
                MasterSetting.PatientPrescreptionNew    = Convert.ToBoolean(MasterSetting.ShowAllMasterSetting.Tables[0].Rows[0]["PatientPrescreptionNew"].ToString());
                MasterSetting.LabBills                  = Convert.ToBoolean(MasterSetting.ShowAllMasterSetting.Tables[0].Rows[0]["LabBills"].ToString());
                MasterSetting.LabReport                 = Convert.ToBoolean(MasterSetting.ShowAllMasterSetting.Tables[0].Rows[0]["LabReport"].ToString());

                MasterSetting.Authorized = Convert.ToBoolean(MasterSetting.ShowAllMasterSetting.Tables[0].Rows[0]["Authorized"].ToString());

                MasterSetting.DateTimeSetting = Convert.ToBoolean(MasterSetting.ShowAllMasterSetting.Tables[0].Rows[0]["DateTimeSetting"].ToString());

                MasterSetting.FinancialYearID     = Convert.ToInt32(MasterSetting.ShowAllMasterSetting.Tables[0].Rows[0]["FinancialYearID"].ToString());
                MasterSetting.FinalBillWithHeader = Convert.ToBoolean(MasterSetting.ShowAllMasterSetting.Tables[0].Rows[0]["FinalBillWithHeader"].ToString());
            }
            return(View(MasterSetting));
        }
Esempio n. 2
0
        public JsonResult GetAllFinancialYear()
        {
            List <MasterSetting> masterSetting = new List <Models.Master.MasterSetting>();

            KeystoneProject.Buisness_Logic.Master.BL_MasterSetting Bl_obj = new Buisness_Logic.Master.BL_MasterSetting();
            MasterSetting AddServiceMod = new MasterSetting();
            DataSet       ds            = Bl_obj.GetAllFinancialYear();

            foreach (DataRow dr in ds.Tables[0].Rows)
            {
                masterSetting.Add(
                    new MasterSetting
                {
                    FinancialYearID = Convert.ToInt32(dr["FinancialYearID"]),
                    FinancialYears  = Convert.ToString(dr["FinancialYear"]),
                });
            }

            return(new JsonResult {
                Data = masterSetting, JsonRequestBehavior = JsonRequestBehavior.AllowGet
            });
        }