コード例 #1
0
        public ActionResult SaveMedicalTestBillInfo(TestBill objTestBill, List <TestBillDetails> objTestBillDetails)
        {
            var laboratoryBilling = _objIInvoice.GetLaboratoryBillingDetailsById(0);

            laboratoryBilling.BILLNAME    = objTestBill.BILLNAME;
            laboratoryBilling.CONTACT     = objTestBill.CONTACT;
            laboratoryBilling.BILLDATE    = DateTime.Now;
            laboratoryBilling.CREATEDDATE = DateTime.Now;
            laboratoryBilling.BILLBY      = LoginId.ToString();
            var totalTax = objTestBillDetails.Select(x => x.TAXAMOUNT).Sum();

            laboratoryBilling.BILLAMOUNT = objTestBillDetails.Select(x => x.COST).Sum() + totalTax;
            objTestBillDetails.ForEach(x =>
            {
                laboratoryBilling.lmsLaboratoryBillingDetails.Add(new lmsLaboratoryBillingDetail
                {
                    TESTID     = x.TESTID,
                    ITEMCOST   = x.COST,
                    TESTRESULT = x.TESTRESULT,
                    TAXAMOUNT  = x.TAXAMOUNT
                });
            });

            var saveLaboratoryBillingDetails = _objIInvoice.SaveLaboratoryBilling(laboratoryBilling);

            return(Json(saveLaboratoryBillingDetails, JsonRequestBehavior.AllowGet));
        }
コード例 #2
0
        public void initalizeState()
        {
            switch (crtState)
            {
            case ARstate.AR_Adventure:
                arAdv = new AR_Adventure();
                break;

            case ARstate.AR_Conception:
                arConception = new AR_Conception();
                break;

            case ARstate.AR_Continue:
                arContinue = new AR_Continue();
                break;

            case ARstate.AR_Launch:
                arLaunch = new AR_Launch();
                break;

            case ARstate.AR_Leave:
                arLeave = new AR_Leave();
                break;

            case ARstate.AR_Main:
                arMain = new AR_Main();
                break;

            case ARstate.AR_Profile:
                arProfile = new AR_Profile();
                break;

            case ARstate.AR_Start:
                arStart = new AR_Start();
                break;

            case ARstate.AR_Options:
                arOptions = new AR_Options();
                break;

            case ARstate.TestTri:
                testTri = new TestTri();
                break;

            case ARstate.TestBill:
                testBill = new TestBill();
                break;

            case ARstate.Test_v1:
                test_v1 = new Test_v1();
                break;
            }
        }