diff --git a/BO/obj/Debug/BO.csprojAssemblyReference.cache b/BO/obj/Debug/BO.csprojAssemblyReference.cache index 95ff005..3cc7d20 100644 Binary files a/BO/obj/Debug/BO.csprojAssemblyReference.cache and b/BO/obj/Debug/BO.csprojAssemblyReference.cache differ diff --git a/Base/Controller/FCommonPay.cs b/Base/Controller/FCommonPay.cs index 95ab813..105e1db 100644 --- a/Base/Controller/FCommonPay.cs +++ b/Base/Controller/FCommonPay.cs @@ -513,6 +513,10 @@ namespace NP.Base.Controllers { var rtn = new Hashtable() { }; var h = Dao.Get("pay.pay", new Hashtable() { { "payno", payno }, { "userno", SUserInfo.UserNo },{"pstatus",1 },{ "rstatusnot",2} }).FirstOrDefault(); + if(h == null) + { + return JsonBack(new JsonRtn() { code = -1 }); + } rtn.Add("h", h); if (h != null) { @@ -569,7 +573,25 @@ namespace NP.Base.Controllers return JsonOK(Dao.Save("pay.payrfdcancel.up", p)); } - + [HttpPost] + public JsonResult ShowPayTax(Int64 payno) + { + var rtn = new Hashtable() { }; + var PayTaxes = Dao.Get("cr.paytaxes", new Hashtable() { { "payno",payno } }); + if(PayTaxes.Count() < 1) + { + return JsonBack(new JsonRtn() { code = -1 }); + } + var paytax = Dao.Get("cr.paytaxes", new Hashtable() { { "payno", payno } }).FirstOrDefault(); + rtn.Add("paytax", paytax); + IList filelist = new List() { }; + if (paytax.fgno != null) + { + filelist = GetFiles(paytax.fgno.Value); + } + rtn.Add("filelist", filelist); + return JsonBack(rtn); + } } } \ No newline at end of file diff --git a/Base/obj/Debug/Base.csprojAssemblyReference.cache b/Base/obj/Debug/Base.csprojAssemblyReference.cache index d4a7db7..2e0f685 100644 Binary files a/Base/obj/Debug/Base.csprojAssemblyReference.cache and b/Base/obj/Debug/Base.csprojAssemblyReference.cache differ diff --git a/Dao/MyBatis/Maps/Lect.xml b/Dao/MyBatis/Maps/Lect.xml index 3f2c010..2bbceac 100644 --- a/Dao/MyBatis/Maps/Lect.xml +++ b/Dao/MyBatis/Maps/Lect.xml @@ -1363,10 +1363,11 @@ ,c.tyear,c.tseq ,u.username,u.userid ,ass.asname - ,e.payno,e.pstatus,e.payamt,e.ptype,e.ispg,e.pgkey + ,e.payno,e.pstatus,e.payamt,e.ptype,e.ispg,e.pgkey,e.payoktime,e.rstatus + ,e2.pino,e2.payamt pipayamt,e2.itemname ,f.estart,f.eend ,cc.cname studyplacename - ,pt.taxno,pt.taxdate + ,pt.taxno,pt.taxdate taxdate2 ,a.cdt ,row_number() over(order by a.cdt desc) rno ,count(a.lectno) over() pagetotalcount @@ -1374,6 +1375,18 @@ inner join cm b on b.cmno = a.cmno inner join term c on c.tmno = b.tmno inner join pay e on e.payno = a.payno + left outer join( + select c.payno,c.pino,c.payamt + ,case c.ptype when 0 then c0.cname when 2 then c2.bkname when 4 then c0.cname when 3 then c3.exname else '-' end itemname + from lect a + inner join pay b on b.payno = a.payno + left outer join payitem c on c.payno = b.payno + left outer join cm c0 on c.ptype in (0,1,4) and c0.cmno=c.itemno + left outer join book c2 on c.ptype=2 and c2.bkno=c.itemno + left outer join exam c3 on c.ptype=3 and c3.exno=c.itemno + where a.status=1 and a.ischanged = 0 and a.userno = #userno# + group by a.payno + ) e2 on e2.payno = e.payno left outer join users u on u.userno = a.userno left outer join assign ass on ass.asno = u.asno left outer join cminningscd f on f.cmisno = a.cmisno diff --git a/Dao/MyBatis/SqlMapStaging.config b/Dao/MyBatis/SqlMapStaging.config index 9814afe..427143b 100644 --- a/Dao/MyBatis/SqlMapStaging.config +++ b/Dao/MyBatis/SqlMapStaging.config @@ -12,7 +12,7 @@ - + diff --git a/Dao/obj/Debug/Dao.csprojAssemblyReference.cache b/Dao/obj/Debug/Dao.csprojAssemblyReference.cache index 5e4fe9c..3fa2a6e 100644 Binary files a/Dao/obj/Debug/Dao.csprojAssemblyReference.cache and b/Dao/obj/Debug/Dao.csprojAssemblyReference.cache differ diff --git a/FO/Views/My/Document.cshtml b/FO/Views/My/Document.cshtml index f6d092b..16e6d57 100644 --- a/FO/Views/My/Document.cshtml +++ b/FO/Views/My/Document.cshtml @@ -84,7 +84,7 @@ } - @if (item.pstatus == 1) + @if (item.pstatus == 1 && item.rstatus == 0) { if (item.ptype == 6) { @@ -92,21 +92,29 @@ } else if (item.ptype == 1 && item.ispg == 1) { - [카드사 매출전표] + [영수증] } else if (item.ptype == 3 && item.ispg == 1) { - [서마터빌] + //일단대체? + [영수증] } else { if (item.taxno > 0) { - [@(item.taxdate == null ? "신청중" : "발행")] + [@(item.taxdate2 == null ? "신청중" : "발행")] } else { - [요청] + if (Convert.ToDateTime(Convert.ToDateTime(item.payoktime).ToString("yyyy-MM-dd")) <= Convert.ToDateTime(DateTime.Now.AddMonths(1).ToString("yyyy-MM-dd"))) + { + [요청] + } + else + { + [요청] + } } } } @@ -119,6 +127,150 @@ } + + @Html.Pager2((int)Model.pagenum, 10, Model.pagerowcount, Model.pagetotalcount) @section scripts{ @if (ViewBag.isPayTest == "1") { diff --git a/Model/CM.cs b/Model/CM.cs index a45c061..33ba04c 100644 --- a/Model/CM.cs +++ b/Model/CM.cs @@ -922,10 +922,17 @@ namespace NP.Model public int ptype { get; set; } public int ispg { get; set; } public String ptypename { get; set; } + public String ptypename2 { + get + { + return ptype == 1 ? "신용카드" : ptype == 2 ? "계좌이체" : ptype == 3 ? "가상계좌" : ptype == 4 ? "현금" : ptype == 5 ? "복합" : ptype == 6 ? "무료" : ptype == 9 ? "위탁" : "-"; + } + } public int? pcno { get; set; } public String pcno2 { get; set; } public String pcname { get; set; } public int payamt { get; set; } + public int pipayamt { get; set; } public int payamtcash { get; set; } public int payamtcard { get; set; } public String payamt2 { get; set; } @@ -1080,6 +1087,7 @@ namespace NP.Model public String studyplacename { get; set; } public int taxno { get; set; } public DateTime taxdate { get; set; } + public DateTime? taxdate2 { get; set; } public Int64 cmisno { get; set; } /// /// 기술인분류 @@ -1103,6 +1111,7 @@ namespace NP.Model } } public String pgkey { get; set; } + public String itemname { get; set; } } /// /// 자격검정시험