Exemple #1
0
        // GET: /OperationTheatreMaster/Create

        public ActionResult Create(int id, int Billno)
        {
            OpdModel               opdmodel = new OpdModel();
            OpdProvider            pro      = new OpdProvider();
            BillingCounterProvider Brpro    = new BillingCounterProvider();

            opdmodel.OpdModelList = pro.Getlist().Where(x => x.OpdID == id).ToList();

            //model.BillingCounterPatientInformationModel = pro.GetPatientBasicInformationFromOpd(Convert.ToInt32(ipValue), 0).FirstOrDefault();
            //model.BalanceDeposit = pro.getBalanceDeposit(Convert.ToInt32(model.BillingCounterPatientInformationModel.AccountHeadId));

            OperationTheatreMasterModel obj = new OperationTheatreMasterModel();

            obj.refOfOpdModel = new OpdModel();
            foreach (var item in opdmodel.OpdModelList)
            {
                obj.refOfOpdModel.FirstName  = item.FirstName;
                obj.refOfOpdModel.MiddleName = item.MiddleName;
                obj.refOfOpdModel.LastName   = item.LastName;
                obj.refOfOpdModel.COA        = item.COA;
            }
            obj.PatientACHeadId   = (int)obj.refOfOpdModel.COA;
            obj.PatientDepoAmount = Brpro.getBalanceDeposit(obj.PatientACHeadId);
            obj.SourceID          = id;
            ViewBag.value         = 0;
            return(View(obj));
        }
        public ActionResult PatientBillDetails(int id)
        {
            IpdPatientDeischargedModel    model = new IpdPatientDeischargedModel();
            IpdRegistrationMasterProvider pro   = new IpdRegistrationMasterProvider();
            BillingCounterProvider        Bpro  = new BillingCounterProvider();

            model.OpdID = HospitalManagementSystem.Utility.GetPatientOpdIdFromIpdId(id);

            model = pro.GetPatientBillDetails(id);
            model.IpdRegistrationID = id;

            //model.ObjPatientBillDetailsViewModelNew.AccsubgroupHeadId=
            int PatientAccountHeadId = HospitalManagementSystem.Utility.GetPatientAccHeadIdFromOpdId(model.OpdID);

            if (PatientAccountHeadId > 0)
            {
                model.ObjPatientBillDetailsViewModelNew.BalanceDeposit    = Bpro.getBalanceDeposit(Convert.ToInt32(PatientAccountHeadId));
                model.ObjPatientBillDetailsViewModelNew.AccsubgroupHeadId = PatientAccountHeadId;
            }
            else
            {
                model.ObjPatientBillDetailsViewModelNew.BalanceDeposit = Convert.ToDecimal(0);
            }


            return(View(model));
        }
Exemple #3
0
        public ActionResult ShowPatientTranRpts(int id)
        {
            BillingCounterModel    model = new BillingCounterModel();
            BillingCounterProvider pro   = new BillingCounterProvider();

            model = pro.GetAllDischargeBillSummary(id);

            int          AccountHeadID = Convert.ToInt32(0);
            EHMSEntities ent           = new EHMSEntities();
            var          AccHeadId     = ent.OpdMasters.Where(x => x.OpdID == id).FirstOrDefault().AccountHeadId;

            if (AccHeadId != null)
            {
                AccountHeadID = (int)AccHeadId;
                model.ObjDepositRefundViewModel.RemainingAmount = pro.getBalanceDeposit(AccountHeadID);
                //model.ObjDepositRefundViewModel.AccountSubHeadId = AccountHeadID;
            }
            else
            {
                model.ObjDepositRefundViewModel.RemainingAmount = Convert.ToDecimal(0);
            }

            return(View(model));
        }