private List <TimeslipDataModel> GetComboDetails(BillableServices billableServices, string claimId) { try { List <TimeslipDataModel> list = new List <TimeslipDataModel>(); list = billableServices.GetServiceByUserList(claimId, "", "", "", "", ""); return(list); } catch (Exception ex) { throw ex; } }
//[AcceptVerbs(HttpVerbs.Get | HttpVerbs.Post)] public ActionResult _Billing(string claimId) { billableServices = new BillableServices(); var billingTab = new BillingTabModel(); billingTab.ServiceByList = GetComboDetails(billableServices, claimId); billingTab.YesNoList = new List <string>() { "", "Yes", "No" }; billingTab.InvoiceNumberList = billableServices.TeamGetInvoiceNumbersPerClaim(claimId); return(PartialView(billingTab)); }
public RegistrationNewViewModel() { DoB = ""; Room = 0; Currency = new GlobalService().GetGlobalProperties(_Constants.BASE_CURRENCY).Value; Patient = new Patient(); NextOfKin = new NextOfKin(); Billables = new BillableServices(); Gender = InitializeGender(); Nation = InitializeNationality(); Relation = InitializeRelationship(); Destination = InitializeRoomToSend(); }
public ActionResult AjaxBillableTimesLoadLoad(string claimId, string serviceUserId, string isBillable, string serviceFromDate, string serviceToDate, string invoiced, string invoiceNo) { billableTimesList = new List <BillingSimpleModel>(); billableServices = new BillableServices(); if (invoiced == "Yes") { invoiced = "true"; } else if (invoiced == "No") { invoiced = "false"; } billableTimesList = billableServices.GetBillableTimes(claimId, serviceUserId, isBillable, serviceFromDate, serviceToDate, invoiced, invoiceNo); return(Json(billableTimesList, JsonRequestBehavior.AllowGet)); }
public BillableServices GetBillableServices(string code) { BillableServices billable = null; SqlServerConnection conn = new SqlServerConnection(); SqlDataReader dr = conn.SqlServerConnect("SELECT bs_idnt, bs_code, bs_name, bs_amount, bs_description FROM BillableServices WHERE bs_code='" + code + "'"); if (dr.Read()) { billable = new BillableServices { Id = Convert.ToInt16(dr[0]), Code = dr[1].ToString(), Name = dr[2].ToString(), Amount = Convert.ToDouble(dr[3]), Description = dr[4].ToString() }; } return(billable); }