최초커밋
This commit is contained in:
263
approval/request_2014.asp
Normal file
263
approval/request_2014.asp
Normal file
@@ -0,0 +1,263 @@
|
||||
<!-- #include virtual = "include/header.asp" -->
|
||||
<!-- #include virtual = "include/left.asp" -->
|
||||
<%
|
||||
x = request("x")
|
||||
|
||||
if x = "1" then
|
||||
tmp_bg_color = "#FFE3EE"
|
||||
web_position = "<22><>û <20><><EFBFBD><EFBFBD>"
|
||||
elseif x = "2" then
|
||||
tmp_bg_color = "#FFE4B5"
|
||||
web_position = "ó<><C3B3> <20><><EFBFBD><EFBFBD>"
|
||||
elseif x = "all" then
|
||||
tmp_bg_color = "#FFE3EE"
|
||||
web_position = "<22><>û <20><><EFBFBD><EFBFBD> - <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
||||
end if
|
||||
|
||||
if request("gotopage") <> "" then
|
||||
tmp_currentpage = request("gotopage")
|
||||
else
|
||||
tmp_currentpage = 1
|
||||
end if
|
||||
%>
|
||||
<!-- Content Wrapper. Contains page content -->
|
||||
<div class="content-wrapper">
|
||||
<!-- Content Header (Page header) -->
|
||||
<div class="content-header">
|
||||
<h1><%=web_position%></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 RANK() OVER(PARTITION BY d_name, d_write_name order by <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ) as ran, * "
|
||||
query = query & "FROM Document a "
|
||||
query = query & "INNER JOIN <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> b on a.d_no = b.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ "
|
||||
query = query & "WHERE a.d_delok='N' "
|
||||
query = query & "AND b.del_yes_no = 'no' "
|
||||
query = query & "AND a.d_view='Y' "
|
||||
query = query & "AND a.d_write_date > convert(varchar(10), DateAdd(m, -3, GETDATE()), 120) "
|
||||
query = query & "AND b.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <> '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' "
|
||||
if x = "1" or x = "all" then
|
||||
query = query & " AND a.d_order_cnt <> '77' "
|
||||
query = query & " AND a.d_order_cnt <> '99' "
|
||||
'@@ <20>μ<EFBFBD><CEBC><EFBFBD><EFBFBD><EFBFBD>û<EFBFBD><C3BB>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><F1BAB8B0><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ó<><C3B3><EFBFBD>ϹǷ<CFB9> <20><><EFBFBD><EFBFBD> @@
|
||||
query = query & " AND b.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <> '<27>μ<EFBFBD><CEBC><EFBFBD><EFBFBD><EFBFBD>û<EFBFBD><C3BB>' AND b.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <> '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><F1BAB8B0><EFBFBD>' "
|
||||
elseif x = "2" then
|
||||
query = query & " AND a.d_order_cnt = '77' "
|
||||
'<27><><EFBFBD>ݰ<EFBFBD><DDB0>꼭 <20><><EFBFBD><EFBFBD><EFBFBD>ڿ<EFBFBD> <20>ް<EFBFBD><DEB0><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD>ٺ<EFBFBD><D9BA><EFBFBD><EFBFBD><EFBFBD> <20>ۼ<EFBFBD><DBBC>ڴ<EFBFBD> <20>ڽ<EFBFBD><DABD><EFBFBD> <20><> <20><><EFBFBD>繮<EFBFBD><E7B9AE><EFBFBD><EFBFBD> ǥ<>ð<EFBFBD> <20>ȵǴ<C8B5> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>
|
||||
if tmp_admin_chk <> "1" then '(<28><><EFBFBD><EFBFBD><EFBFBD>ڰ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><>û<EFBFBD><C3BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><> <20>ּ<EFBFBD> <20><><EFBFBD><EFBFBD>)
|
||||
query = query & " AND b.login_p_no <> '" & Session("User_Number") & "' "
|
||||
end if
|
||||
end if
|
||||
if x = "1" or x = "2" then
|
||||
if Session("user_number") = "20190301" then
|
||||
'query = query & " AND a.d_orders in ('" & Session("User_Number") & "', '20080101') "
|
||||
query = query & " AND a.d_orders = '" & Session("User_Number") & "' "
|
||||
elseif Session("user_number") = "20080101" then
|
||||
'query = query & " AND a.d_orders in ('" & Session("User_Number") & "', '20190301') "
|
||||
query = query & " AND a.d_orders in ('" & Session("User_Number") & "') "
|
||||
else
|
||||
query = query & " AND a.d_orders = '" & Session("User_Number") & "' "
|
||||
end if
|
||||
|
||||
if x = "1" and (Session("user_number") = "20190301" or Session("user_number") = "20080101") then
|
||||
query = query & " AND dbo.SPLIT(b.target99, '^^', 5) NOT LIKE '%" & Session("loginuser") & "%' "
|
||||
query = query & " AND dbo.SPLIT(b.target99, '^^', 6) NOT LIKE '%" & Session("loginuser") & "%' "
|
||||
end if
|
||||
end if
|
||||
|
||||
query = query & "ORDER BY a.d_sn DESC "
|
||||
'response.Write query
|
||||
Rs.Open query, adoConn, 1
|
||||
tmp_count = Rs.RecordCount
|
||||
%>
|
||||
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td style="padding:5"><3E><><EFBFBD>ϰ<EFBFBD><CFB0><EFBFBD> : <20><> <b class="tahoma_orange"><%=tmp_count%></b><3E><><EFBFBD><EFBFBD> <20><EFBFBD><D7B8><EFBFBD> <20>ֽ<EFBFBD><D6BD>ϴ<EFBFBD>.</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 width="50%" align="center" height="24" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td align="center" height="24" ><3E>ۼ<EFBFBD><DBBC><EFBFBD></td>
|
||||
<td align="center" height="24" ><3E>ۼ<EFBFBD><DBBC><EFBFBD></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
|
||||
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") = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" then
|
||||
tmpstr = Rs("p_sn")
|
||||
else
|
||||
tmpstr = Rs("d_no")
|
||||
end If
|
||||
|
||||
if Rs("d_name") = "<22><>ȭü<C8AD><C3BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>û<EFBFBD><C3BB>" then
|
||||
tmp_flag = "o2"
|
||||
end If
|
||||
|
||||
if Rs("d_name") = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ǽ<EFBFBD>" then
|
||||
tmp_flag = "t2"
|
||||
end If
|
||||
tmp_value=""
|
||||
if right(Rs("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"), 7) = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ǽ<EFBFBD>" then
|
||||
tmp_value = tmp_value & " [" & mid(Rs("target20"), 4, 11) & "] " & split(split(Rs("target21"), "^//^")(0), "^^")(1)
|
||||
end If
|
||||
%>
|
||||
<!--- Loop Set Start --->
|
||||
<tr>
|
||||
<td align="center" height="24" ><%=Num%></td>
|
||||
<td align="left" height="24"><a href="javascript:openit('<%=tmp_flag%>','<%=Rs("d_no")%>','0','','<%=Rs("p_sn") %>', '<%=Rs("ran") %>')" class="blue"><% if Rs("d_name") = "<22>μ<EFBFBD><CEBC><EFBFBD><EFBFBD><EFBFBD>û<EFBFBD><C3BB>" then response.Write "<22><EFBFBD>(<28><>)Ȱ<><C8B0><EFBFBD><EFBFBD>" else response.Write Rs("d_name") end if%>[<%=Rs("d_no")%>]<%=tmp_value%></a></td>
|
||||
<td align="center" height="24" ><%=Rs("login_<6E≯<EFBFBD>")%></td>
|
||||
<td align="center" height="24" ><%=Rs("d_write_date")%></td>
|
||||
</tr>
|
||||
<%
|
||||
Rs.MoveNext
|
||||
next
|
||||
end if
|
||||
Rs.Close
|
||||
%>
|
||||
</table>
|
||||
<%=Pagelist("request_2014.asp",tmp_currentpage ,tmp_bcolor , "", pagecount, "&x=" & x)%>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.content -->
|
||||
<!-- REQUIRED SCRIPTS -->
|
||||
<script>
|
||||
function subit(a){
|
||||
document.ess.action = 'request_2014.asp?x='+a;
|
||||
document.ess.submit();
|
||||
}
|
||||
|
||||
function openit(z,x,c,v,p_sn, neakeun_gubun) {
|
||||
var tmp_height = 800;
|
||||
var tmp_width = 850;
|
||||
if (z == 'C'){
|
||||
var url = '/ess/doc_infochange_print.asp?d_no='+x;
|
||||
}else if (z == 'D'){
|
||||
var url = '/ess/doc_reinstatement_print.asp?d_no='+x;
|
||||
}else if (z == 'E'){
|
||||
var url = '/ess/doc_timeoff_print.asp?d_no='+x;
|
||||
}else if (z == 'F'){
|
||||
var url = '/ess/doc_vacation_print.asp?d_no='+x;
|
||||
}else if (z == 'H'){
|
||||
var url = '/ess/doc_official_print.asp?d_no='+x;
|
||||
}else if (z == 'i' || z == 'S'){
|
||||
if (z == 'i'){
|
||||
var title_type = "<22><><EFBFBD><EFBFBD>";
|
||||
}else{
|
||||
var title_type = "<22>Ա<EFBFBD>";
|
||||
}
|
||||
|
||||
if (new_project_2014(p_sn) == "1") {
|
||||
var url = '/ess/doc_expense_print.asp?d_no=' + x + "&title_type=" + title_type;
|
||||
} else {
|
||||
var url = '/ess/doc_expense_print_2014.asp?d_no=' + x + "&title_type=" + title_type;
|
||||
}
|
||||
}else if (z == 'A'){
|
||||
var title_type = "<22><><EFBFBD><EFBFBD>";
|
||||
var url = '/ess/doc_expense2_print_2014.asp?d_no=' + x + "&title_type=" + title_type;
|
||||
}else if (z == 'M'){
|
||||
var url = '/ess/doc_commute_print.asp?d_no='+x;
|
||||
}else if (z == 'N'){
|
||||
var url = '/ess/doc_entertainment_print.asp?d_no='+x;
|
||||
}else if (z == 'o'){
|
||||
var url = '/ess/doc_expense_approval_print.asp?d_no='+x;
|
||||
}else if (z == 'o2'){
|
||||
var url = '/ess/doc_culture_physicaleducation_print.asp?d_no='+x;
|
||||
}else if (z == 'P'){
|
||||
var url = '/ess/doc_prepayment_print.asp?d_no='+x;
|
||||
}else if (z == 'Q'){
|
||||
var url = '/ess/doc_prepayment_ex_print.asp?d_no='+x;
|
||||
}else if (z == 'R'){
|
||||
var url = '/ess/doc_cardiary_print.asp?d_no='+x;
|
||||
}else if (z == 'U'){
|
||||
var url = '/ess/doc_directcost_modi_print.asp?d_no='+x;
|
||||
}else if (z == 'V'){
|
||||
if (new_project_2014(p_sn) == "1") {
|
||||
var url = '/ess/project_report.asp?d_no='+x+'&view_chk='+c;
|
||||
} else {
|
||||
var url = '/ess/project_report_2014.asp?d_no='+x+'&view_chk='+c;
|
||||
}
|
||||
}else if (z == 'w'){
|
||||
var url = '/ess/doc_expense_approval_depart_print.asp?d_no='+x;
|
||||
}else if (z == 'X'){
|
||||
var url = '/ess/direct_cost_print.asp?d_no='+x + '&view_chk='+c+'&db_chk='+v;
|
||||
tmp_width = 950;
|
||||
}else if (z == 'Y'){
|
||||
var url = '/ess/<2F><>ǰ<EFBFBD><C7B0><EFBFBD>ż<EFBFBD>_print.asp?d_no='+x;
|
||||
}else if (z == 'Z'){
|
||||
var url = '/ess/doc_education_print.asp?d_no='+x;
|
||||
}else if (z == 'PMS'){
|
||||
var url = '/project/project_list2_chk.asp?p_sn=' + x;
|
||||
}else if (z == 'PMS2'){
|
||||
var url = '/pms/modi.asp?p_sn=' + x;
|
||||
}else if (z == '0'){
|
||||
var url = '/ess/doc_consultation_print.asp?d_no='+x;
|
||||
}else if (z == '1'){
|
||||
var url = '/ess/doc_business_print.asp?d_no='+x;
|
||||
}else if (z == '2'){
|
||||
var url = '/ess/doc_field_print.asp?d_no='+x;
|
||||
}else if (z == '3'){
|
||||
var url = '/ess/doc_businessreport_print.asp?d_no='+x;
|
||||
}else if (z == '4'){
|
||||
var url = '/ess/doc_prepayment2_print.asp?d_no='+x;
|
||||
}else if (z == '5'){
|
||||
var url = '/ess/doc_prepayment2_ex_print.asp?d_no='+x;
|
||||
}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;
|
||||
}
|
||||
if (z == "t" && neakeun_gubun > "1" && "<%= x%>" == "1") {
|
||||
alert("<22><><EFBFBD><EFBFBD> <20>ۼ<EFBFBD><DBBC>ڰ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ǽ<EFBFBD><C7BC><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>մϴ<D5B4>.\nó<6E><C3B3> <20><> <20>̿<EFBFBD><CCBF><EFBFBD><EFBFBD>ּ<EFBFBD><D6BC><EFBFBD>.");
|
||||
}else{
|
||||
window.open(url, '', 'left=0,top=0,width=' + tmp_width + ',height=' + tmp_height + ',scrollbars=yes,resizable=yes')
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</div>
|
||||
<!-- /.content-wrapper -->
|
||||
<!-- #include virtual = "include/footer.asp" -->
|
||||
Reference in New Issue
Block a user