<기능개선>

1. PMS NO : 7907
2. (주요)작업내용 
(1) Base/Controller/ACommonCRoom.cs
 - web.config 에서 "popbillManager" 정보를 불러와서 "미발행"시 업데이트
(2) Base/Popbill/PopbillService.cs
 - 발행시 web.config 에서 "popbillManager" 정보로 담당자 이름,연락처 업데이트
(3) BO/Controllers/croomController.cs
 - 발행시 web.config 에서 "popbillManager" 정보를 팝빌 발행정보에 넘김
(4) BO/Web.config
 - "popbillManager" 정보 추가
(5) Dao/MyBatis/Maps/CRoom.xml
 - mgtkey 값 없을때 업데이트 제외 (db에서 uipaytaxmgtkey 중복 오류)
This commit is contained in:
jity7777 2023-05-18 02:02:41 +00:00
parent 40af01d993
commit 26c40944f0
5 changed files with 30 additions and 12 deletions

View File

@ -1182,6 +1182,15 @@ namespace NP.BO.Controllers
{
ViewBag.Taxinvoice = result.Data;
ViewBag.TaxinvoiceInfo = PopbillService.GetTaxinvoiceInfo(payTax).Data;
string[] popbillManager = GetConfig("popbillManager").Split(';');
if (payTax.statecode == 0)
{
ViewBag.Taxinvoice.invoicerTEL = popbillManager[0];
ViewBag.Taxinvoice.invoicerContactName = popbillManager[1];
}
if (ViewBag.TaxinvoiceInfo != null && payTax.statecode == 0)
{
#region
@ -1193,6 +1202,9 @@ namespace NP.BO.Controllers
}
}
}
#endregion
return View(vm);

View File

@ -37,6 +37,8 @@
<add key="isstaging" value="1" />
<!--<add key="masteremail" value="edu@ynicte.or.kr;mail.ynicte.or.kr;25;ynicte@ynicte.or.kr;k7758870!%" />-->
<add key="masteremail" value="yicte@cte.or.kr;smtp.daum.net;465;yicte2020;yicte04003" />
<add key="popbillManager" value="070-5088-4781;박희란" />
<add key="usessl" value="Y" />
<add key="daokey" value="ynictelms2020" />
@ -55,8 +57,8 @@
<!--<add key="talk" value="https://alimtalk-api.bizmsg.kr/v2/sender/send,?,?,?,?,?,023103312" />-->
<!--<add key="configpath" value="Product" />-->
<add key="configpath" value="ProductDev" />
<!--<add key="configpath" value="staging" />-->
<!--<add key="configpath" value="ProductDev" />-->
<add key="configpath" value="staging" />
<add key="lgdacomConfigPath" value="D:\3rdparti\lgdacomyicte" />

View File

@ -1422,7 +1422,9 @@ namespace NP.Base.Controllers
if (Dao.Save("cr.paytax.save", payTax) > 0)
{
var payItems = Dao.Get<PayItem>("cr.paytaxitem2", new System.Collections.Hashtable() { { "taxno", payTax.taxno } });
var result = Popbill.PopbillService.RegistIssue(Dao, payTax, payItems);
string[] popbillManager = GetConfig("popbillManager").Split(';');
var result = Popbill.PopbillService.RegistIssue(Dao, payTax, payItems, popbillManager[0], popbillManager[1]);
if (result.IsSuccess)
{
#region

View File

@ -430,7 +430,7 @@ namespace NP.Base.Popbill
/// <param name="memo">메모</param>
/// <returns>IssueResponse</returns>
/// <remarks>작성된 세금계산서 데이터를 팝빌에 저장과 동시에 발행(전자서명)하여 "발행완료" 상태로 처리합니다.</remarks>
public static Result<IssueResponse> RegistIssue(CommonDao Dao, PayTax payTax, IList<PayItem> payItems, MgtKeyType keyType = MgtKeyType.SELL, bool forceIssue = false, string memo = "")
public static Result<IssueResponse> RegistIssue(CommonDao Dao, PayTax payTax, IList<PayItem> payItems, string managerPhone = "", string managerName = "", MgtKeyType keyType = MgtKeyType.SELL, bool forceIssue = false, string memo = "")
{
Result<IssueResponse> result = new Result<IssueResponse>(); ;
try
@ -453,6 +453,8 @@ namespace NP.Base.Popbill
else
{
var taxinvoice = GetTaxinvoice(payTax, payItems, keyType).Data;
taxinvoice.invoicerTEL = managerPhone; // 세금계산서 발행시 invoicerTEL번호를 기업에 등록된 연락처로 변경 2023.05.17 (pms: 7903)
taxinvoice.invoicerContactName = managerName;// 세금계산서 발행시 invoicerTEL번호를 기업에 등록된 연락처로 변경 2023.05.17 (pms: 7903)
result.Data = PopbillConfig.taxinvoiceService.RegistIssue(PopbillConfig.CorpNum, taxinvoice, forceIssue, memo);
result.Code = result.Data.code;
result.Message = result.Data.message;

View File

@ -1516,7 +1516,7 @@
,isreceipt=#isreceipt#
,iscancel=#iscancel#
,asaddr=#asaddr#
,mgtkey=#mgtkey#
<isNotEmpty property="mgtkey" >,mgtkey=#mgtkey#</isNotEmpty>
,taxdatereq=#taxdatereq#
,statecode=#statecode#
,realtaxdate=case when #statecode#=300 and realtaxdate is null then now() else realtaxdate end