Пример #1
0
        //[CustomAuthorize(Roles = "OpdCreate, OpdMain, superadmin, admin")]
        public ActionResult ViewOldPatient(int id)
        {
            OpdModel model = new OpdModel();

            model = pro.Getlist().Where(x => x.OpdID == id).FirstOrDefault();
            DateTime TodayDate       = DateTime.Now;
            DateTime PreviousRegDate = model.RegistrationDate;
            decimal  totalDays       = Math.Round(Convert.ToDecimal((TodayDate - PreviousRegDate).TotalDays));

            model.OpdFeeDetailsModel = new OpdFeeDetailsModel();
            model.OpdFeeDetailsModel = new OpdFeeDetailsModel();
            model.OpdDoctorListModel = new OpdDoctorListModel();

            model.OpdFeeDetailsModel.RegistrationFee = Utility.GetCurrentRegistrationFeeForOldPatient();
            model.OpdFeeDetailsModel.TotalAmount     = Utility.GetCurrentRegistrationFeeForOldPatient();

            if (totalDays > 7)//New registration fee
            {
                model.OpdFeeDetailsModel.RegistrationFee = Utility.GetCurrentRegistrationFee();
                model.OpdFeeDetailsModel.TotalAmount     = Utility.GetCurrentRegistrationFee();
            }



            var mod = new OpdDoctorListModel();

            model.OpdDoctorList.Add(mod);
            return(View(model));
        }
Пример #2
0
        public ActionResult MemberSelf(int Id, string FirstName, int MembertypeId, int MaxDepend, int DueDepend)
        {
            OpdModel opdobj = new OpdModel();

            // SetUpMemberShipModel setupmemobj = new SetUpMemberShipModel();
            EHMSEntities ent = new EHMSEntities();


            var obj = ent.SetupMemberShips.Where(x => x.SetupMemberID == Id).FirstOrDefault();

            SetUpMemberShipModel setupmemobj = AutoMapper.Mapper.Map <SetupMemberShip, SetUpMemberShipModel>(obj);

            // opdobj = AutoMapper.Mapper.Map<SetUpMemberShipModel, OpdModel>(setupmemobj);


            // OpdModel opdobj = AutoMapper.Mapper.Map<SetUpMemberShipModel, OpdModel>(setupmemobj);
            opdobj.IsMember     = 1;
            opdobj.CountryID    = setupmemobj.CountryID;
            opdobj.FirstName    = setupmemobj.FirstName;
            opdobj.MiddleName   = setupmemobj.MiddleName;
            opdobj.LastName     = setupmemobj.LastName;
            opdobj.Address      = setupmemobj.Address;
            obj.Gender          = setupmemobj.Gender;
            opdobj.BloodGroup   = setupmemobj.BloodGroupID.ToString();
            opdobj.ContactName  = setupmemobj.ContactNumber;
            opdobj.MobileNumber = setupmemobj.MobileNumber;
            opdobj.Email        = setupmemobj.Email;
            opdobj.MemberTypeID = setupmemobj.MemberTypeID;

            opdobj.AgeYear = DateTime.Now.Year - setupmemobj.DateofBirth.Year;

            opdobj.OpdFeeDetailsModel = new OpdFeeDetailsModel();
            opdobj.OpdFeeDetailsModel.RegistrationFee = Utility.GetCurrentRegistrationFee();
            opdobj.OpdFeeDetailsModel.TotalAmount     = Utility.GetCurrentRegistrationFee();


            for (int i = 1; i <= 1; i++)
            {
                var mod = new OpdDoctorListModel();

                opdobj.OpdDoctorList.Add(mod);
            }

            return(View("Create", opdobj));
        }
Пример #3
0
        public ActionResult Create()
        {
            OpdModel model = new OpdModel();

            model.OpdMedicalDetailModel = new OpdMedicalDetailModel();
            model.OpdFeeDetailsModel    = new OpdFeeDetailsModel();
            model.OpdFeeDetailsModel    = new OpdFeeDetailsModel();
            model.OpdDoctorListModel    = new OpdDoctorListModel();
            model.OpdFeeDetailsModel.RegistrationFee = Utility.GetCurrentRegistrationFee();
            model.OpdFeeDetailsModel.TotalAmount     = Utility.GetGrandtotalamount();
            model.OpdMedicalDetailModel.Amount       = HospitalManagementSystem.Utility.GetGrandtotalamount();


            for (int i = 1; i <= 1; i++)
            {
                var mod = new OpdDoctorListModel();

                model.OpdDoctorList.Add(mod);
            }

            return(View(model));
        }
Пример #4
0
        public ActionResult AddDoctorList()
        {
            OpdDoctorListModel model = new OpdDoctorListModel();

            return(PartialView("AddDoctorList", model));
        }
Пример #5
0
        //[CustomAuthorize(Roles = "OpdAdmin, OpdCreate,superadmin, admin")]
        public ActionResult Create()
        {
            OpdModel model = new OpdModel();

            model.OpdFeeDetailsModel = new OpdFeeDetailsModel();
            model.OpdFeeDetailsModel = new OpdFeeDetailsModel();
            model.OpdDoctorListModel = new OpdDoctorListModel();

            //model.OpdFeeDetailsModel.RegistrationFee = Utility.GetCurrentRegistrationFee();
            //model.OpdFeeDetailsModel.TotalAmount = Utility.GetCurrentRegistrationFee();
            //model.OpdFeeDetailsModel.FeeTaxAmount = Utility.GetCurrentRegistrationTaxFee();
            //model.OpdFeeDetailsModel.RegistrationFeeOnly = Utility.GetCurrentRegistrationFeeOnly();
            //model.OpdFeeDetailsModel.FeeTaxAmount = Utility.GetCurrentOldRegistrationTaxFee();
            //var ThisSession = this.Session["OpdTypeIdInt"];
            //if (ThisSession != null)
            //{
            //    model.opdtype = ThisSession.ToString();
            //}
            //else
            //{
            //    model.opdtype = "1";
            //}

            //if (model.opdtype == "2")
            //{
            //    model.OpdFeeDetailsModel.RegistrationFee = Utility.GetCurrentPayableRegFee();
            //    model.OpdFeeDetailsModel.TotalAmount = Utility.GetCurrentPayableRegFee();
            //    model.OpdFeeDetailsModel.FeeTaxAmount = Utility.GetCurrentRegistrationTaxFeePay();
            //    model.OpdFeeDetailsModel.FeeTaxAmount = Utility.GetCurrentRegistrationTaxFee();
            //    model.OpdFeeDetailsModel.RegistrationFeeOnly = Utility.GetCurrentRegistrationFeeOnlyPay();
            //    model.OpdFeeDetailsModel.RegistrationFeeOnly = Utility.GetCurrentRegistrationFeeOnly();
            //    model.OpdFeeDetailsModel.FeeTaxAmount = Utility.GetCurrentOldRegistrationTaxFee();
            //}


            model.OpdFeeDetailsModel.RegistrationFee     = Utility.GetCurrentRegistrationFee();
            model.OpdFeeDetailsModel.TotalAmount         = Utility.GetCurrentRegistrationFee();
            model.OpdFeeDetailsModel.FeeTaxAmount        = Utility.GetCurrentRegistrationTaxFee();
            model.OpdFeeDetailsModel.RegistrationFeeOnly = Utility.GetCurrentRegistrationFeeOnly();
            //model.OpdFeeDetailsModel.FeeTaxAmount = Utility.GetCurrentOldRegistrationTaxFee();

            var ThisSession = this.Session["OpdTypeIdInt"];

            if (ThisSession != null)
            {
                model.opdtype = ThisSession.ToString();
            }
            else
            {
                model.opdtype = "1";
            }

            if (model.opdtype == "2")
            {
                model.OpdFeeDetailsModel.RegistrationFee     = Utility.GetCurrentPayableRegFee();
                model.OpdFeeDetailsModel.TotalAmount         = Utility.GetCurrentPayableRegFee();
                model.OpdFeeDetailsModel.FeeTaxAmount        = Utility.GetCurrentRegistrationTaxFeePay();
                model.OpdFeeDetailsModel.RegistrationFeeOnly = Utility.GetCurrentRegistrationFeeOnlyPay();
                //model.OpdFeeDetailsModel.FeeTaxAmount = Utility.GetCurrentOldRegistrationTaxFee();
                //model.OpdFeeDetailsModel.RegistrationFeeOnly = Utility.GetCurrentRegistrationFeeOnly();
                //model.OpdFeeDetailsModel.FeeTaxAmount = Utility.GetCurrentOldRegistrationTaxFee();
            }



            for (int i = 1; i <= 1; i++)
            {
                var mod = new OpdDoctorListModel();

                model.OpdDoctorList.Add(mod);
            }

            model.CountryID = 153;
            return(View(model));
        }