20260907 :: 김현정 > 260824 PMS 개선 요청_경영문화본부 1차 반영

This commit is contained in:
2026-09-07 14:55:51 +09:00
parent 60caf35218
commit e46f88d6fb
13 changed files with 729 additions and 1725 deletions

View File

@@ -2,6 +2,45 @@
<!-- #include virtual = "include/left.asp" -->
<%
x = "2"
Dim title()
Max_Title = 26
Dim sel_type
ReDim title(Max_Title, 3)
Dim sel_year
Dim doc_year_list()
sel_year = CStr(Year(Now))
If Request("sel_year") <> "" Then
sel_year = Request("sel_year")
End If
query = "select distinct <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> order by <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
Rs.Open query, adoConn, 1
ReDim title(Rs.RecordCount, 3)
title(0, 1) = "<22><>ü"
i = 0
Do While Not Rs.EOF
i = i + 1
title(i, 1) = Rs("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>")
Rs.MoveNext
Loop
Rs.Close
query = "select distinct left(<28>߱<EFBFBD><DFB1><EFBFBD>,4) as <20>߱<EFBFBD><DFB1><EFBFBD> from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> order by left(<28>߱<EFBFBD><DFB1><EFBFBD>,4) desc"
Rs.Open query, adoConn, 1
ReDim doc_year_list(Rs.RecordCount)
i = 0
Do While Not Rs.EOF
i = i + 1
doc_year_list(i) = Rs("<22>߱<EFBFBD><DFB1><EFBFBD>")
Rs.MoveNext
Loop
Rs.Close
sel_type = Request("sel_type")
If Trim(sel_type) = "" Then
sel_type = "0"
End If
p_hotvalue = Request("p_hotvalue")
if request("gotopage") <> "" then
tmp_currentpage = request("gotopage")
else
@@ -34,13 +73,65 @@ End Function
<div class="container-fluid">
<div class="row">
<div class="col-12">
<form name="approval" method="post">
<%
query = "SELECT * "
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 = "SELECT a.*, b.* "
query = query & "FROM Document a WITH(NOLOCK) "
query = query & " INNER JOIN <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> b WITH(NOLOCK) on a.d_no = b.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ "
query = query & " LEFT OUTER JOIN direct_costcode D1 WITH(NOLOCK) ON CONVERT(VARCHAR(5), b.target11) = CONVERT(VARCHAR(5), D1.id) "
query = query & " LEFT OUTER JOIN direct_costcode D2 WITH(NOLOCK) ON CONVERT(VARCHAR(5), b.target12) = CONVERT(VARCHAR(5), D2.id) "
query = query & "WHERE b.login_p_no <> '" & Session("User_Number") & "' "
query = query & " AND a.d_delok = 'N' "
query = query & " AND a.d_name <> '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' "
If sel_type <> "0" Then
query = query & " AND a.d_name = '" & title(sel_type, 1) & "' "
Else
query = query & " AND a.d_name <> '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' "
End If
If sel_year <> "all" Then
query = query & " AND a.d_no LIKE 'KRC-" & sel_year & "%' "
End If
If p_hotvalue <> "" Then
query = query & " AND ( "
query = query & " b.p_sn LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
query = query & " a.d_write_name LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
query = query & " D1.d_cost_name LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
query = query & " D2.d_cost_name LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
query = query & " a.d_no LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
query = query & " b.target8 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
query = query & " b.target9 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
query = query & " b.target20 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
query = query & " b.target21 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
query = query & " b.target22 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
query = query & " b.target23 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
query = query & " b.target24 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
query = query & " b.target25 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
query = query & " b.target26 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
query = query & " b.target27 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
query = query & " b.target28 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
query = query & " b.target29 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
query = query & " b.target30 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
query = query & " b.target31 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
query = query & " b.target32 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
query = query & " b.target33 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
query = query & " b.target34 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
query = query & " b.target35 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
query = query & " b.target36 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
query = query & " b.target37 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
query = query & " b.target38 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
query = query & " b.target39 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
query = query & " b.target40 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
query = query & " b.target41 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
query = query & " b.target42 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
query = query & " b.target43 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
query = query & " b.target44 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
query = query & " b.target45 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
query = query & " b.target46 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
query = query & " b.target47 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
query = query & " b.target48 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
query = query & " b.target49 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
query = query & " b.target50 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' "
query = query & " ) "
End If
query = query & " AND a.d_order_cnt in ('77') "
query = query & " AND (a.d_order1 = '" & Session("User_Number") & "' "
for tmp_i = 2 to 4
@@ -54,7 +145,31 @@ End Function
%>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td style="padding:5"><EFBFBD><EFBFBD><EFBFBD>ϰ<EFBFBD><EFBFBD><EFBFBD> : <20><> <b class="tahoma_orange"><%=tmp_count%></b><3E><><EFBFBD><EFBFBD> <20>׸<EFBFBD><D7B8><EFBFBD> <20>ֽ<EFBFBD><D6BD>ϴ<EFBFBD>.</td>
<td style="padding:5">
<09>߱<EFBFBD><DFB1><EFBFBD> :
<select name="sel_year" onchange="javascript:subit(0);">
<option value="all" <%if sel_year = "all" then %> selected <% end if %>><3E><>ü</option>
<%
for i=1 To ubound(doc_year_list)
%>
<option value="<%=doc_year_list(i) %>" <%if doc_year_list(i) = sel_year then %> selected <% end if %>><%=doc_year_list(i) %><3E><></option>
<%
next
%>
</select> <20><><EFBFBD>ϰ<EFBFBD><CFB0><EFBFBD> : <20><> <b class="tahoma_orange"><%=formatnumber(tmp_count,0)%></b><3E><><EFBFBD><EFBFBD> <20>׸<EFBFBD><D7B8><EFBFBD> <20>ֽ<EFBFBD><D6BD>ϴ<EFBFBD>.
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<%if tmp_project_chk = "1" OR tmp_admin_chk = "1" then%>
<09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
<select name="sel_type" onchange="subit('2')" >
<%for i = 0 to ubound(title)%>
<OPTION value='<%=i%>' <%if cint(sel_type) = cint(i) then%>selected<%end if%>><% if title(i,1) = "<22><><EFBFBD><EFBFBD><EFBFBD>񺸰<EFBFBD><F1BAB8B0><EFBFBD>" then response.write "<22><><EFBFBD><EFBFBD><EFBFBD>ú<EFBFBD>" else response.Write title(i,1) end if %></option>
<%next%>
</select>
<%end if%>
&nbsp;&nbsp;&nbsp;
<input type="text" name='p_hotvalue' style="width:120;text-align:center;" value="<%=p_hotvalue%>">
<img src="/images/common/btn_smallsrch.gif" align="absmiddle" onClick="subit('1')" style="cursor:pointer;"> <b class="tahoma_orange">&nbsp;&nbsp; <20>ۼ<EFBFBD><DBBC><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20>ڵ<EFBFBD>, <20>ŷ<EFBFBD>ó, <20>׸<EFBFBD>, <20><><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ, ǰ<>ǹ<EFBFBD><C7B9><EFBFBD><EFBFBD><EFBFBD> <20>˻<EFBFBD> <20><><EFBFBD><EFBFBD></b>
</td>
</tr>
<tr>
<td align="center">
@@ -137,10 +252,11 @@ End Function
Rs.Close
%>
</table>
<%=Pagelist("allow_listall.asp",tmp_currentpage ,tmp_bcolor , "", pagecount, "&b_type=" & b_type)%>
<%=Pagelist("allow_listall.asp",tmp_currentpage ,tmp_bcolor , "", pagecount, "&b_type=" & b_type & "&sel_type=" & sel_type & "&p_hotvalue=" & p_hotvalue & "&sel_year=" & sel_year)%>
</td>
</tr>
</table>
</form>
</div>
</div>
</div>
@@ -149,6 +265,11 @@ End Function
<!-- /.content -->
<!-- REQUIRED SCRIPTS -->
<script>
function subit(a){
document.approval.action = "allow_listall.asp";
document.approval.submit();
}
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;