Files
KIN/approval/allow_listall.asp

237 lines
9.6 KiB
Plaintext

<!-- #include virtual = "include/header.asp" -->
<!-- #include virtual = "include/left.asp" -->
<%
x = "2"
if request("gotopage") <> "" then
tmp_currentpage = request("gotopage")
else
tmp_currentpage = 1
end if
%>
<!-- Content Wrapper. Contains page content -->
<%
Function ExtractTargetValue(val)
Dim arr, s, p
arr = Split(val, "^//^")
s = arr(0)
p = InStr(s, "^^")
if p > 0 then
ExtractTargetValue = Mid(s, p + 2)
else
ExtractTargetValue = s
end if
End Function
%>
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<div class="content-header">
<h1>승인 문서</h1>
</div>
<!-- /.content-header -->
<!-- Main content -->
<div class="content-body">
<div class="content">
<div class="container-fluid">
<div class="row">
<div class="col-12">
<%
query = "SELECT * "
query = query & "FROM Document a "
query = query & " INNER JOIN 문서내용 b on a.d_no = b.문서번호 "
query = query & "WHERE b.login_p_no <> '" & Session("User_Number") & "' "
query = query & " AND a.d_delok = 'N' "
query = query & " AND a.d_name <> '업무일지' "
query = query & " AND a.d_order_cnt in ('77') "
query = query & " AND (a.d_order1 = '" & Session("User_Number") & "' "
for tmp_i = 2 to 4
query = query & " OR a.d_order" & tmp_i & " = '" & Session("User_Number") & "' "
next
query = query & " OR a.d_order5 = '" & Session("User_Number") & "') "
query = query & "ORDER BY a.d_sn DESC "
Rs.Open query, adoConn, 1
tmp_count = Rs.RecordCount
%>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td style="padding:5">목록결과 : 총 <b class="tahoma_orange"><%=tmp_count%></b>개의 항목이 있습니다.</td>
</tr>
<tr>
<td align="center">
<table class="table table-sm table-sm2 table-bordered table-head tr-colors">
<tr>
<td width="5%" align="center" height="24" >No.</td>
<td align="center" height="24" >문서분류</td>
<td width="8%" align="center" height="24" >작성일</td>
<td width="5%" align="center" style="text-align:center; white-space:nowrap;" height="24" >작성자</td>
<td width="5%" align="center" height="24" >요청</td>
</tr>
<%
if Rs.RecordCount > 0 then
Rs.PageSize = 20
tmp_ok = 1
PageCount = Rs.PageCount
Rs.absolutepage = tmp_Currentpage
tmp_total_record = Rs.RecordCount
tmp_for = Cint(tmp_total_record) - ((Cint(tmp_Currentpage) - 1) * Rs.PageSize)
if Rs.PageSize <= tmp_for then
if Rs.RecordCount <= Rs.PageSize then
tmp_for = Rs.recordcount
else
tmp_for = Rs.PageSize
end if
else
tmp_for = tmp_for
end if
for i = 1 to tmp_for
tmp_txt = "완료"
if Cint(tmp_Currentpage)=1 then
Num=Cint(tmp_total_record)- i+1
else
Num=Cint(tmp_total_record) - ((Cint(tmp_Currentpage) - 1) * Rs.PageSize) - i +1
end if
tmp_flag = mid(Rs("d_no"), 10, 1)
if Rs("d_name") = "직접비" then
tmpstr = Rs("p_sn")
else
tmpstr = Rs("d_no")
end if
if Rs("d_name") = "문화체육비신청서" then
tmp_flag = "o2"
end If
if Rs("d_name") = "면접원수당지출결의서" then
tmp_flag = "t2"
end If
tmp_display_name = Rs("d_name")
if tmp_display_name = "부서비신청서" then
tmp_display_name = "그룹(장)활동비"
end if
if Rs("d_name") = "면접원수당지출결의서" or Rs("d_name") = "내근직수당지출결의서" then
tmp_doc_code = ExtractTargetValue(Rs("target20"))
tmp_doc_desc = ExtractTargetValue(Rs("target21"))
else
tmp_doc_code = Rs("target10")
tmp_doc_desc = Rs("target1")
end if
%>
<!--- Loop Set Start --->
<tr>
<td align="center" style="vertical-align:middle;" height="24" ><%=Num%></td>
<td align="left" style="vertical-align:middle;" height="24"><a href="javascript:openit('<%=tmp_flag%>','<%=Rs("d_no")%>','1','<%=x%>','<%=Rs("p_sn") %>')" class="blue"><%=tmp_display_name%>[<%=Rs("d_no")%>] ◆([<%=tmp_doc_code%>] <%=tmp_doc_desc%>)</a></td>
<td align="center" style="vertical-align:middle;" height="24" ><%=Rs("d_write_date")%></td>
<td align="center" style="text-align:center; white-space:nowrap; vertical-align:middle;" height="24" class="k_darkorange"><%=Rs("login_이름")%></td>
<td align="center" style="vertical-align:middle;" height="24" class="k_darkorange">처리완료</td>
</tr>
<%
Rs.MoveNext
next
end if
Rs.Close
%>
</table>
<%=Pagelist("allow_listall.asp",tmp_currentpage ,tmp_bcolor , "", pagecount, "&b_type=" & b_type)%>
</td>
</tr>
</table>
</div>
</div>
</div>
</div>
</div>
<!-- /.content -->
<!-- REQUIRED SCRIPTS -->
<script>
function openit(z,x,c,v,p_sn) {
if (z == 'C') {
var url = '/ess/doc_infochange_print.asp?d_no=' + x + '&view_chk=' + c + '&x=' + v;
} else if (z == 'D') {
var url = '/ess/doc_reinstatement_print.asp?d_no=' + x + '&view_chk=' + c + '&x=' + v;
} else if (z == 'E') {
var url = '/ess/doc_timeoff_print.asp?d_no=' + x + '&view_chk=' + c + '&x=' + v;
} else if (z == 'F') {
var url = '/ess/doc_vacation_print.asp?d_no=' + x + '&view_chk=' + c + '&x=' + v;
} else if (z == 'H') {
var url = '/ess/doc_official_print.asp?d_no=' + x + '&view_chk=' + c + '&x=' + v;
} else if (z == 'i' || z == 'S') {
if (z == 'i') {
var title_type = "지출";
} else {
var title_type = "입금";
}
if (new_project_2014(p_sn) == "1") {
var url = '/ess/doc_expense_print.asp?d_no=' + x + '&view_chk=' + c + '&x=' + v + '&title_type+' + title_type;
} else {
var url = '/ess/doc_expense_print_2014.asp?d_no=' + x + '&view_chk=' + c + '&x=' + v + '&title_type+' + title_type;
}
} else if (z == 'A') {
var title_type = "지출";
var url = '/ess/doc_expense2_print_2014.asp?d_no=' + x + '&view_chk=' + c + '&x=' + v + '&title_type+' + title_type;
} else if (z == 'M') {
var url = '/ess/doc_commute_print.asp?d_no=' + x + '&view_chk=' + c + '&x=' + v;
} else if (z == 'N') {
var url = '/ess/doc_entertainment_print.asp?d_no=' + x + '&view_chk=' + c + '&x=' + v;
} else if (z == 'o') {
var url = '/ess/doc_expense_approval_print.asp?d_no=' + x + '&view_chk=' + c + '&x=' + v;
} else if (z == 'o2') {
var url = '/ess/doc_culture_physicaleducation_print.asp?d_no=' + x + '&view_chk=' + c + '&x=' + v;
} else if (z == 'P') {
var url = '/ess/doc_prepayment_print.asp?d_no=' + x + '&view_chk=' + c + '&x=' + v;
} else if (z == 'Q') {
var url = '/ess/doc_prepayment_ex_print.asp?d_no=' + x + '&view_chk=' + c + '&x=' + v;
} else if (z == 'R') {
var url = '/ess/doc_cardiary_print.asp?d_no=' + x + '&view_chk=' + c + '&x=' + v;
} else if (z == 'U') {
var url = '/ess/doc_directcost_modi_print.asp?d_no=' + x + '&view_chk=' + c + '&x=' + v;
} else if (z == 'V') {
if (new_project_2014(p_sn) == "1") {
var url = '/ess/project_report.asp?d_no=' + x + '&view_chk=' + c + '&x=' + v;
} else {
var url = '/ess/project_report_2014.asp?d_no=' + x + '&view_chk=' + c + '&x=' + v;
}
} else if (z == 'w') {
var url = '/ess/doc_expense_approval_depart_print.asp?d_no=' + x + '&view_chk=' + c + '&x=' + v;
} else if (z == 'X') {
var url = '/ess/direct_cost_print.asp?d_no=' + x + '&view_chk=' + c + '&x=' + v;
} else if (z == 'Y') {
var url = '/ess/물품구매서_print.asp?d_no=' + x + '&view_chk=' + c + '&x=' + v;
} else if (z == 'Z') {
var url = '/ess/doc_education_print.asp?d_no=' + x + '&view_chk=' + c + '&x=' + v;
} else if (z == 'PMS') {
var url = '/project/project_list2_chk.asp?p_sn=' + x;
} else if (z == '0') {
var url = '/ess/doc_consultation_print.asp?d_no=' + x + '&view_chk=' + c + '&x=' + v;
} else if (z == '1') {
var url = '/ess/doc_business_print.asp?d_no=' + x + '&view_chk=' + c + '&x=' + v;
} else if (z == '2') {
var url = '/ess/doc_field_print.asp?d_no=' + x + '&view_chk=' + c + '&x=' + v;
} else if (z == '3') {
var url = '/ess/doc_businessreport_print.asp?d_no=' + x + '&view_chk=' + c + '&x=' + v;
} else if (z == '4') {
var url = '/ess/doc_prepayment2_print.asp?d_no=' + x + '&view_chk=' + c + '&x=' + v;
} else if (z == '5') {
var url = '/ess/doc_prepayment2_ex_print.asp?d_no=' + x + '&view_chk=' + c + '&x=' + v;
} else if (z == 'r') {
var url = '/ess/doc_expense2_print.asp?d_no=' + x + '&view_chk=' + c + '&x=' + v + '&title_type+' + title_type;
} else if (z == 't') {
var url = '/ess/doc_myun_pay_print.asp?d_no=' + x + '&view_chk=' + c + '&x=' + v + '&title_type+' + title_type;
} else if (z == 't2') {
var url = '/ess/doc_myun_pay_print2.asp?d_no=' + x + '&view_chk=' + c + '&x=' + v + '&title_type+' + title_type;
} else if (z == 'u') {
var url = '/ess/update_project_money.asp?d_no=' + x + '&view_chk=' + c + '&x=' + v + '&title_type+' + title_type;
} else if (z == '7') {
var url = '/ess/doc_device_print.asp?d_no=' + x + '&view_chk=' + c + '&x=' + v;
}
window.open(url, '', 'left=0,top=0,width=1000,height=1000,scrollbars=yes,resizable=yes');
}
</script>
</div>
<!-- /.content-wrapper -->
<!-- #include virtual = "include/footer.asp" -->