Пример #1
0
        public ActionResult AddMoreParticulars()
        {
            BillingCounterNewTestListModel model = new BillingCounterNewTestListModel();

            return(PartialView("AddMoreParticulars", model));
        }
Пример #2
0
        //[CustomAuthorize(Roles = "BillingAdmin, BillingCreate,superadmin, admin")]
        public ActionResult Create(string ipValue, string memebershipId)
        {
            Session.Clear();

            BillingCounterModel model = new BillingCounterModel();
            int  n;
            bool isNumeric = int.TryParse(ipValue, out n);

            if (string.IsNullOrWhiteSpace(ipValue) == false && isNumeric == true)
            {
                int patLog = pro.getPatientLog(Convert.ToInt32(ipValue));

                if (patLog != 0)
                {
                    model.BillingCounterPatientInformationModel = pro.GetPatientBasicInformationFromOpd(Convert.ToInt32(ipValue), 0).FirstOrDefault();
                    model.BalanceDeposit = pro.getBalanceDeposit(Convert.ToInt32(model.BillingCounterPatientInformationModel.AccountHeadId));
                }
                else
                {
                    //ViewBag.message = "Patient Not Found..!";
                    model.BalanceDeposit = Convert.ToDecimal(0);
                    model.BillingCounterPatientInformationModel.CountryID = 153;
                    int  Mn;
                    bool isNumericMember = int.TryParse(memebershipId, out Mn);
                    if (!string.IsNullOrWhiteSpace(memebershipId) && isNumericMember == true)
                    {
                        //check is member exist or not

                        int  MembershipIdInt         = Convert.ToInt32(isNumericMember);
                        bool CheckIfMemberExistOrnot = pro.CheckIsMemberExistOrNot(memebershipId);
                        if (CheckIfMemberExistOrnot)
                        {
                            model.BillingCounterPatientInformationModel = pro.GetMemberDetailsFromMembership(memebershipId, 0).FirstOrDefault();
                            model.BalanceDeposit = pro.getBalanceDeposit(Convert.ToInt32(model.BillingCounterPatientInformationModel.AccountHeadId));
                        }

                        else
                        {
                            ViewBag.message      = "Patient Not Found..!";
                            model.BalanceDeposit = Convert.ToDecimal(0);
                            model.BillingCounterPatientInformationModel.CountryID = 153;
                        }
                    }
                    else
                    {
                        ViewBag.message      = "Patient Not Found..!";
                        model.BalanceDeposit = Convert.ToDecimal(0);
                        model.BillingCounterPatientInformationModel.CountryID = 153;
                    }
                }
            }

            else
            {
                model.BillingCounterPatientInformationModel.CountryID = 153;
            }

            tempList.Clear();


            // model.BillingCounterNewTestListModelList = new List<BillingCounterNewTestListModel>();

            BillingCounterNewTestListModel obj = new BillingCounterNewTestListModel();

            model.BillingCounterNewTestListModelList.Add(obj);
            return(View(model));
        }