From 21b3db154b6c77507814532cf77895bfcda13d54 Mon Sep 17 00:00:00 2001 From: lch Date: Wed, 28 Apr 2021 09:23:25 +0000 Subject: [PATCH] =?UTF-8?q?=EC=84=B8=EA=B8=88=EA=B3=84=EC=82=B0=EC=84=9C?= =?UTF-8?q?=20=EC=9E=91=EC=97=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BO/Controllers/croomController.cs | 3 +- BO/Views/croom/taxdetail.cshtml | 46 +++++--- Base/Controller/ACommonCRoom.cs | 27 ++--- Base/Popbill/PopbillService.cs | 171 +++++++++++++++++++++++------- Dao/MyBatis/Maps/CRoom.xml | 2 + 5 files changed, 180 insertions(+), 69 deletions(-) diff --git a/BO/Controllers/croomController.cs b/BO/Controllers/croomController.cs index a7759f7..51d4a7f 100644 --- a/BO/Controllers/croomController.cs +++ b/BO/Controllers/croomController.cs @@ -801,7 +801,8 @@ namespace NP.BO.Controllers var result = PopbillService.GetTaxinvoice(payTax); if (result.IsSuccess) { - ViewBag.Taxinvoice = result.Data; + ViewBag.Taxinvoice = result.Data; + ViewBag.TaxinvoiceInfo = PopbillService.GetTaxinvoiceInfo(payTax).Data; } } #endregion diff --git a/BO/Views/croom/taxdetail.cshtml b/BO/Views/croom/taxdetail.cshtml index c829057..5033edd 100644 --- a/BO/Views/croom/taxdetail.cshtml +++ b/BO/Views/croom/taxdetail.cshtml @@ -1,7 +1,10 @@ -@model NP.Model.VMCRoom +@using NP.Base.Popbill +@using Popbill.Taxinvoice; +@model NP.Model.VMCRoom @{ var t = Model.PayTaxes.First(); - var taxinvoice = ViewBag.Taxinvoice; + var taxinvoice = (Taxinvoice)ViewBag.Taxinvoice; + var taxinvoiceInfo = (TaxinvoiceInfo)ViewBag.TaxinvoiceInfo; }