20260806 ::
1. 지출결의서 비고 명칭 변경(지출결의서의 비고(내용,수량,단가 등)을 사용내역(상세내역 작성필수) 으로 변경) 2. 면접원수당 및 내근직수당 검토/승인(관리부서) 단계 활성화
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
krc_no = d_no
|
||||
print_type = request("print_type")
|
||||
view_chk= request("view_chk")
|
||||
dim rev_type : rev_type = request("rev_type")
|
||||
|
||||
db_table_name = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
||||
|
||||
@@ -253,6 +254,107 @@ if rsc.RecordCount > 0 Then
|
||||
|
||||
});
|
||||
|
||||
$(document).ready(function(){
|
||||
var today = new Date().getMonth()+1 + " / " + new Date().getDate();
|
||||
<% If rev_type = "1" Then %>
|
||||
var tmpHtml = "";
|
||||
tmpHtml += "<input type='button' id='rev_btn' value='<27><><EFBFBD><EFBFBD>' style='background-color: #c6fccf;cursor: pointer;' />";
|
||||
<% if cstr(tmp_ess(4, 2)) = cstr(session("user_number")) then %>
|
||||
$("#approval_tb > tbody > tr:eq(2) > td:nth-last-child(3)").html(tmpHtml) // <20>μ<EFBFBD><CEBC><EFBFBD>
|
||||
$("#approval_tb > tbody > tr:eq(3) > td:nth-last-child(3)").html(today) // <20>μ<EFBFBD><CEBC><EFBFBD>
|
||||
<% Else %>
|
||||
$("#approval_tb > tbody > tr:eq(2) > td:nth-last-child(4)").html(tmpHtml) // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
$("#approval_tb > tbody > tr:eq(3) > td:nth-last-child(4)").html(today) // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
<% End If %>
|
||||
|
||||
$("#rev_btn").on("click", function(){
|
||||
if(confirm("Ȯ<><C8AE>ó<EFBFBD><C3B3><EFBFBD>Ͻðڽ<C3B0><DABD>ϱ<EFBFBD>?")){
|
||||
$.ajax({
|
||||
url: "/ess/doc_rev_ajax.asp",
|
||||
type: "POST",
|
||||
data: {"command":"revReqApproval", "d_no":"<%=d_no%>", "today":today},
|
||||
success: function(ret){
|
||||
if(ret == "1"){
|
||||
alert("Ȯ<>ο<EFBFBD>û<EFBFBD><C3BB> <20><><EFBFBD><EFBFBD> ó<><C3B3><EFBFBD>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>.");
|
||||
$(opener.document).find("#tr_<%=d_no%>").remove();
|
||||
self.close();
|
||||
}else if(ret == "2"){
|
||||
alert("Ȯ<><C8AE> ó<><C3B3><EFBFBD>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>.");
|
||||
$(opener.document).find("#tr_<%=d_no%>").remove();
|
||||
self.close();
|
||||
}else{
|
||||
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><EFBFBD><DFBB>Ͽ<EFBFBD><CFBF><EFBFBD><EFBFBD>ϴ<EFBFBD>.\n<><6E><EFBFBD><EFBFBD><EFBFBD>μ<EFBFBD><CEBC><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ּ<EFBFBD><D6BC><EFBFBD>.");
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
<% ElseIf rev_type = "2" Then %>
|
||||
<% if cstr(tmp_ess(4, 2)) = cstr(session("user_number")) then %>
|
||||
tmpHtml = ""
|
||||
tmpHtml += "<input type='button' id='rev_comp_btn' value='<27><><EFBFBD><EFBFBD>' style='background-color: #c6fccf;cursor: pointer;' />";
|
||||
$("#approval_tb > tbody > tr:eq(2) > td:nth-last-child(3)").html(tmpHtml) // <20>μ<EFBFBD><CEBC><EFBFBD>
|
||||
|
||||
$("#rev_comp_btn").on("click", function(){
|
||||
if(confirm("Ȯ<><C8AE><EFBFBD>Ͻðڽ<C3B0><DABD>ϱ<EFBFBD>?")){
|
||||
$.ajax({
|
||||
url: "/ess/doc_rev_ajax.asp",
|
||||
type: "POST",
|
||||
data: {"command":"revCompApproval", "d_no":"<%=d_no%>", "today":today},
|
||||
success: function(ret){
|
||||
if(ret == "1"){
|
||||
alert("Ȯ<><C8AE> ó<><C3B3><EFBFBD>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>.");
|
||||
$(opener.document).find("#tr_<%=d_no%>").remove();
|
||||
self.close();
|
||||
}else{
|
||||
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><EFBFBD><DFBB>Ͽ<EFBFBD><CFBF><EFBFBD><EFBFBD>ϴ<EFBFBD>.\n<><6E><EFBFBD><EFBFBD><EFBFBD>μ<EFBFBD><CEBC><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ּ<EFBFBD><D6BC><EFBFBD>.");
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
<% End If %>
|
||||
<% End If %>
|
||||
<% If d_order_cnt = 77 Then %>
|
||||
$.ajax({
|
||||
url: "/ess/doc_rev_ajax.asp",
|
||||
type: "POST",
|
||||
data: {"command":"revIngApproval", "d_no":"<%=d_no%>", "appoval_level":"2"},
|
||||
success: function(ret){
|
||||
if(ret != "0"){
|
||||
var retJson = JSON.parse(ret);
|
||||
$("#approval_tb > tbody > tr:eq(2) > td:nth-last-child(4)").html('<img src="/images/sign/' + retJson.imgFile + '.jpg" border="0" width="40" height="40">') // <20><><EFBFBD><EFBFBD>
|
||||
$("#approval_tb > tbody > tr:eq(3) > td:nth-last-child(4)").html(retJson.day) // <20><><EFBFBD><EFBFBD>
|
||||
}
|
||||
}
|
||||
});
|
||||
$.ajax({
|
||||
url: "/ess/doc_rev_ajax.asp",
|
||||
type: "POST",
|
||||
data: {"command":"revIngApproval", "d_no":"<%=d_no%>", "appoval_level":"3"},
|
||||
success: function(ret){
|
||||
if(ret != "0"){
|
||||
var retJson = JSON.parse(ret);
|
||||
$("#approval_tb > tbody > tr:eq(2) > td:nth-last-child(3)").html('<img src="/images/sign/' + retJson.imgFile + '.jpg" border="0" width="40" height="40">') // <20>μ<EFBFBD><CEBC><EFBFBD>
|
||||
$("#approval_tb > tbody > tr:eq(3) > td:nth-last-child(3)").html(retJson.day) // <20>μ<EFBFBD><CEBC><EFBFBD>
|
||||
}
|
||||
}
|
||||
});
|
||||
$.ajax({
|
||||
url: "/ess/doc_rev_ajax.asp",
|
||||
type: "POST",
|
||||
data: {"command":"revIngApproval", "d_no":"<%=d_no%>", "appoval_level":"5"},
|
||||
success: function(ret){
|
||||
if(ret != "0"){
|
||||
var retJson = JSON.parse(ret);
|
||||
$("#approval_tb > tbody > tr:eq(2) > td:nth-last-child(1)").html('<img src="/images/sign/' + retJson.imgFile + '.jpg" border="0" width="40" height="40">') // <20><>ǥ<EFBFBD>̻<EFBFBD>
|
||||
$("#approval_tb > tbody > tr:eq(3) > td:nth-last-child(1)").html(retJson.day) // <20><>ǥ<EFBFBD>̻<EFBFBD>
|
||||
}
|
||||
}
|
||||
});
|
||||
<% End If %>
|
||||
});
|
||||
|
||||
function win_close()
|
||||
{
|
||||
window.close();
|
||||
@@ -474,7 +576,7 @@ if rsc.RecordCount > 0 Then
|
||||
<table width="100%" cellpadding="5" cellspacing="0" border="0" style="border-collapse:collapse;">
|
||||
<tr>
|
||||
<td width="20%" class="tit2" align="center"><3E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>Ⱓ</td>
|
||||
<td width="35%" class="tit7" align="center"><font class="tahoma"><%=work_month%></font></td>
|
||||
<td width="35%" class="tit7" align="center"><font class="tahoma"><%if pay_type = "2" then%><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE><EFBFBD><EFBFBD><%else%><%=work_month%><%end if%></font></td>
|
||||
<td width="15%" class="tit2" align="center"><3E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="30%" class="tit7" align="center"><font class="tahoma"><%=pay_apply_username%></font></td>
|
||||
</tr>
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
krc_no = d_no
|
||||
print_type = request("print_type")
|
||||
view_chk= request("view_chk")
|
||||
dim rev_type : rev_type = request("rev_type")
|
||||
|
||||
db_table_name = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
||||
|
||||
@@ -252,6 +253,107 @@ if rsc.RecordCount > 0 Then
|
||||
}
|
||||
|
||||
});
|
||||
$(document).ready(function(){
|
||||
var today = new Date().getMonth()+1 + " / " + new Date().getDate();
|
||||
<% If rev_type = "1" Then %>
|
||||
var tmpHtml = "";
|
||||
tmpHtml += "<input type='button' id='rev_btn' value='<27><><EFBFBD><EFBFBD>' style='background-color: #c6fccf;cursor: pointer;' />";
|
||||
<% if cstr(tmp_ess(4, 2)) = cstr(session("user_number")) then %>
|
||||
$("#approval_tb > tbody > tr:eq(2) > td:nth-last-child(3)").html(tmpHtml) // <20>μ<EFBFBD><CEBC><EFBFBD>
|
||||
$("#approval_tb > tbody > tr:eq(3) > td:nth-last-child(3)").html(today) // <20>μ<EFBFBD><CEBC><EFBFBD>
|
||||
<% Else %>
|
||||
$("#approval_tb > tbody > tr:eq(2) > td:nth-last-child(4)").html(tmpHtml) // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
$("#approval_tb > tbody > tr:eq(3) > td:nth-last-child(4)").html(today) // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
<% End If %>
|
||||
|
||||
$("#rev_btn").on("click", function(){
|
||||
if(confirm("Ȯ<><C8AE>ó<EFBFBD><C3B3><EFBFBD>Ͻðڽ<C3B0><DABD>ϱ<EFBFBD>?")){
|
||||
$.ajax({
|
||||
url: "/ess/doc_rev_ajax.asp",
|
||||
type: "POST",
|
||||
data: {"command":"revReqApproval", "d_no":"<%=d_no%>", "today":today},
|
||||
success: function(ret){
|
||||
if(ret == "1"){
|
||||
alert("Ȯ<>ο<EFBFBD>û<EFBFBD><C3BB> <20><><EFBFBD><EFBFBD> ó<><C3B3><EFBFBD>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>.");
|
||||
$(opener.document).find("#tr_<%=d_no%>").remove();
|
||||
self.close();
|
||||
}else if(ret == "2"){
|
||||
alert("Ȯ<><C8AE> ó<><C3B3><EFBFBD>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>.");
|
||||
$(opener.document).find("#tr_<%=d_no%>").remove();
|
||||
self.close();
|
||||
}else{
|
||||
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><EFBFBD><DFBB>Ͽ<EFBFBD><CFBF><EFBFBD><EFBFBD>ϴ<EFBFBD>.\n<><6E><EFBFBD><EFBFBD><EFBFBD>μ<EFBFBD><CEBC><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ּ<EFBFBD><D6BC><EFBFBD>.");
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
<% ElseIf rev_type = "2" Then %>
|
||||
<% if cstr(tmp_ess(4, 2)) = cstr(session("user_number")) then %>
|
||||
tmpHtml = ""
|
||||
tmpHtml += "<input type='button' id='rev_comp_btn' value='<27><><EFBFBD><EFBFBD>' style='background-color: #c6fccf;cursor: pointer;' />";
|
||||
$("#approval_tb > tbody > tr:eq(2) > td:nth-last-child(3)").html(tmpHtml) // <20>μ<EFBFBD><CEBC><EFBFBD>
|
||||
|
||||
$("#rev_comp_btn").on("click", function(){
|
||||
if(confirm("Ȯ<><C8AE><EFBFBD>Ͻðڽ<C3B0><DABD>ϱ<EFBFBD>?")){
|
||||
$.ajax({
|
||||
url: "/ess/doc_rev_ajax.asp",
|
||||
type: "POST",
|
||||
data: {"command":"revCompApproval", "d_no":"<%=d_no%>", "today":today},
|
||||
success: function(ret){
|
||||
if(ret == "1"){
|
||||
alert("Ȯ<><C8AE> ó<><C3B3><EFBFBD>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>.");
|
||||
$(opener.document).find("#tr_<%=d_no%>").remove();
|
||||
self.close();
|
||||
}else{
|
||||
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><EFBFBD><DFBB>Ͽ<EFBFBD><CFBF><EFBFBD><EFBFBD>ϴ<EFBFBD>.\n<><6E><EFBFBD><EFBFBD><EFBFBD>μ<EFBFBD><CEBC><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ּ<EFBFBD><D6BC><EFBFBD>.");
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
<% End If %>
|
||||
<% End If %>
|
||||
<% If d_order_cnt = 77 Then %>
|
||||
$.ajax({
|
||||
url: "/ess/doc_rev_ajax.asp",
|
||||
type: "POST",
|
||||
data: {"command":"revIngApproval", "d_no":"<%=d_no%>", "appoval_level":"2"},
|
||||
success: function(ret){
|
||||
if(ret != "0"){
|
||||
var retJson = JSON.parse(ret);
|
||||
$("#approval_tb > tbody > tr:eq(2) > td:nth-last-child(4)").html('<img src="/images/sign/' + retJson.imgFile + '.jpg" border="0" width="40" height="40">') // <20><><EFBFBD><EFBFBD>
|
||||
$("#approval_tb > tbody > tr:eq(3) > td:nth-last-child(4)").html(retJson.day) // <20><><EFBFBD><EFBFBD>
|
||||
}
|
||||
}
|
||||
});
|
||||
$.ajax({
|
||||
url: "/ess/doc_rev_ajax.asp",
|
||||
type: "POST",
|
||||
data: {"command":"revIngApproval", "d_no":"<%=d_no%>", "appoval_level":"3"},
|
||||
success: function(ret){
|
||||
if(ret != "0"){
|
||||
var retJson = JSON.parse(ret);
|
||||
$("#approval_tb > tbody > tr:eq(2) > td:nth-last-child(3)").html('<img src="/images/sign/' + retJson.imgFile + '.jpg" border="0" width="40" height="40">') // <20>μ<EFBFBD><CEBC><EFBFBD>
|
||||
$("#approval_tb > tbody > tr:eq(3) > td:nth-last-child(3)").html(retJson.day) // <20>μ<EFBFBD><CEBC><EFBFBD>
|
||||
}
|
||||
}
|
||||
});
|
||||
$.ajax({
|
||||
url: "/ess/doc_rev_ajax.asp",
|
||||
type: "POST",
|
||||
data: {"command":"revIngApproval", "d_no":"<%=d_no%>", "appoval_level":"5"},
|
||||
success: function(ret){
|
||||
if(ret != "0"){
|
||||
var retJson = JSON.parse(ret);
|
||||
$("#approval_tb > tbody > tr:eq(2) > td:nth-last-child(1)").html('<img src="/images/sign/' + retJson.imgFile + '.jpg" border="0" width="40" height="40">') // <20><>ǥ<EFBFBD>̻<EFBFBD>
|
||||
$("#approval_tb > tbody > tr:eq(3) > td:nth-last-child(1)").html(retJson.day) // <20><>ǥ<EFBFBD>̻<EFBFBD>
|
||||
}
|
||||
}
|
||||
});
|
||||
<% End If %>
|
||||
});
|
||||
|
||||
|
||||
function win_close()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user