This commit is contained in:
hyunho 2021-03-18 08:14:50 +00:00
parent fce927d0b1
commit 3b39b88bb2
5 changed files with 49 additions and 4 deletions

View File

@ -92,7 +92,7 @@
<td>@d.rnorvt</td>
<td class="link text-center"><a href="#" onclick="viewas(@d.asno);">@d.asname</a></td>
<td>@(d.cnoname)(@d.cnoid)</td>
<td class="link text-center"><a href="#" onclick="viewlect(this, @d.ustatus, @d.lectno, @d.fileno, '@d.fileurl', '@d.orgname', @d.status, @d.pstatus,@d.rstatus,'@string.Format("{0}:{1}:{2}:{3}:{4}:{5}:{6}:{7}:{8}:{9}:{10}:{11}:{12}:{13}:{14}:{15}:{16}",d.asname??"",d.username, d.userid??"", d.uduty??"", d.depart??"", d.email, d.telno, d.mobile,d.ckfcfyear,d.assignuser,d.edus,d.sdate==null?"":d.sdate.Value.ToString("yyyy-MM-dd"),d.edate==null?"":d.edate.Value.ToString("yyyy-MM-dd"),d.typeman,d.typejob,d.typeedu,d.typegrade)')">@d.username</a>@Html.Raw(string.IsNullOrEmpty(d.fileurl) ? "" : ("<a href=\"/aCommon/DownFile?fno=" + d.fileno + "&loginfo=\"> <i class=\"fa fa-paperclip\"></i></a>"))</td>
<td class="link text-center"><a href="#" onclick="viewlect(this, @d.ustatus, @d.lectno, @d.fileno, '@d.fileurl', '@d.orgname', @d.status, @d.pstatus,@d.rstatus,'@string.Format("{0}:{1}:{2}:{3}:{4}:{5}:{6}:{7}:{8}:{9}:{10}:{11}:{12}:{13}:{14}:{15}:{16}:{17}",d.asname??"",d.username, d.userid??"", d.uduty??"", d.depart??"", d.email, d.telno, d.mobile,d.ckfcfyear,d.assignuser,d.edus,d.sdate==null?"":d.sdate.Value.ToString("yyyy-MM-dd"),d.edate==null?"":d.edate.Value.ToString("yyyy-MM-dd"),d.typeman,d.typejob,d.typeedu,d.typegrade,d.pplno)')">@d.username</a>@Html.Raw(string.IsNullOrEmpty(d.fileurl) ? "" : ("<a href=\"/aCommon/DownFile?fno=" + d.fileno + "&loginfo=\"> <i class=\"fa fa-paperclip\"></i></a>"))</td>
<td>@d.cdtymd</td>
<td>@d.statusname</td>
<td class="link text-center"><a href="#" onclick="viewrefund(@d.payno, @d.pstatus, @d.payuserno)">@d.pstatusname</a></td>
@ -183,7 +183,11 @@
<div class="findboxbtnbox" id="btnsavelect">
<a href="#" class="btn btn-primary" onclick="save();">심사여부 저장</a>
</div>
<div class="findboxbtnbox" id="btnsavetype">
<a href="#" class="btn btn-primary" onclick="savetype();">교육신청정보 저장</a>
</div>
<br /><br />
<input type="hidden" id="hidpplno" />
</div>
<div id="changebox" class="findbox draggable regbox" style="width: 500px; z-index: 1041; top: 60px; overflow: auto;">
@ -310,6 +314,8 @@
$("#selTypejob").val(ds[14]).attr("selected", "selected");
$("#selTypeedu").val(ds[15]).attr("selected", "selected");
$("#selTypegrade").val(ds[16]).attr("selected", "selected");
$("#txtpplno").val(ds[17]);
$("#hidpplno").val(ds[17]);
}
}
function change() {
@ -482,8 +488,8 @@
}
function afterUpdateScd() {
if (capResult.code > 0) {
msg("교육일정을 변경하였습니다.");
submit("mform", 500, true);
msgok(1, "", true);
submit("mform", 800, true);
}
else {
msg("관리자에게 문의하세요.");
@ -494,5 +500,27 @@
function viewas(asno) {
winopen("/croom/asrpop?intval=" + asno, 'asrpop', 1200, screen.height - 500);
}
function savetype() {
if (confirm("교육신청 정보를 저장하시겠습니까??")) {
capp("/acommon/pplogtypechange", {
pplno: $("#hidpplno").val(),
typeman: $("#selTypeman").val(),
typejob: $("#selTypejob").val(),
typeedu: $("#selTypeedu").val(),
typegrade: $("#selTypegrade").val()
}, "afterUpdateType");
}
}
function afterUpdateType() {
if (capResult.code > 0) {
msgok(1, "", true);
submit("mform", 800, true);
}
else {
msg("관리자에게 문의하세요.");
return;
}
}
</script>
}

View File

@ -1020,5 +1020,11 @@ namespace NP.Base.Controllers
return JsonOK(Dao.Save("lect.cmisno.up", new Hashtable() { { "lectno", lectno }, { "cmisno" , cmisno} }));
}
[HttpPost]
public JsonResult PPlogTypeChange(Int64 pplno, string typeman, string typejob, string typeedu, string typegrade)
{
return JsonOK(Dao.Save("pay.pplogtype.up", new Hashtable() { { "pplno", pplno }, { "typeman", typeman }, { "typejob", typejob }, { "typeedu", typeedu }, { "typegrade", typegrade } }));
}
}
}

View File

@ -166,7 +166,7 @@
,a2.rstime,a2.retime,a2.sstime,a2.setime,a2.cshape,a2.studydays
,a.sdate,a.edate,a.isrebate
,scd.estart,scd.eend
,pp.typeman, pp.typeedu, pp.typegrade, pp.typejob
,pp.typeman, pp.typeedu, pp.typegrade, pp.typejob, pp.pplno
,row_number() over(order by <isNotNull property="orderby">$orderby$</isNotNull><isNull property="orderby">a.payno,a.pino</isNull>) rno
,count(a.cdt) over() pagetotalcount
from lect a

View File

@ -932,6 +932,16 @@
inner join pplog a on a.pplno=b.pplno
where b.payno=#payno# and a.userno=#userno#
</select>
<update id="pay.pplogtype.up" parameterClass="hashtable">
update pplog
set
typeman = #typeman#
,typejob = #typejob#
,typeedu = #typeedu#
,typegrade = #typegrade#
where pplno = #pplno#
</update>
</statements>
</sqlMap>

View File

@ -1188,6 +1188,7 @@ namespace NP.Model
public int typeedu { get; set; }
public int typegrade { get; set; }
public int typejob { get; set; }
public Int64 pplno { get; set; }
}
/// <summary>
/// 자격검정시험