231 lines
6.6 KiB
Plaintext
231 lines
6.6 KiB
Plaintext
<!-- #include virtual = "lib/config.asp" -->
|
|
<%
|
|
d_name = request("d_name")
|
|
txt_d_no = request("txt_d_no")
|
|
target9 = request("target9")
|
|
|
|
SELECT CASE d_name
|
|
CASE "con" tmp_d_name = "품의서"
|
|
END SELECT
|
|
'response.write cint(Month(date))
|
|
query = "SELECT * "
|
|
query = query & "FROM document AS a "
|
|
query = query & " INNER JOIN 문서내용 AS b "
|
|
query = query & " ON a.d_no = b.문서번호 "
|
|
query = query & " left outer JOIN person AS C "
|
|
query = query & " ON C.p_no = b.login_p_no "
|
|
query = query & "WHERE a.d_name = '" & tmp_d_name & "' "
|
|
'query = query & " AND b.login_p_no = '" & Session("user_number") & "' "
|
|
query = query & " AND C.p_depart = '" & Session("depart_code") & "' "
|
|
query = query & " AND a.d_delok = 'N' "
|
|
query = query & " AND a.d_view = 'Y' "
|
|
query = query & " and A.d_order_cnt = '77' "
|
|
'20240502 BI 김혜란님 요청으로 2024년 5월까지 전연도 내용 보이게 수정
|
|
If cint(Month(date)) <= 4 or (Year(date) = "2024" and cint(Month(date)) <= 5) then
|
|
query = query & " and (left(A.d_write_date, 4) = '" & Year(date) & "' or left(A.d_write_date, 4) = '" & Year(date)-1 & "') "
|
|
else
|
|
query = query & " and left(A.d_write_date, 4) = '" & Year(date) & "' "
|
|
end if
|
|
If target9 <> "" Then
|
|
query = query & " and b.target9 like '%" & target9 & "%' "
|
|
End if
|
|
query = query & "ORDER BY d_sn DESC "
|
|
|
|
if tmp_admin_chk = "1" then
|
|
'Response.Write "Query : " & query & "<BR>"
|
|
end if
|
|
%>
|
|
|
|
<script language="javascript">
|
|
function select_end(d_name,txt_d_no,d_no)
|
|
{
|
|
eval("opener.document.forms[0]." + txt_d_no).value = d_no;
|
|
self.close();
|
|
}
|
|
|
|
function openit(z,x,c,v) {
|
|
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')
|
|
{
|
|
var url = '/ess/doc_expense_print.asp?d_no='+x+'&view_chk='+c+'&x='+v;
|
|
}
|
|
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 == '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')
|
|
{
|
|
var url = '/ess/project_report.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;
|
|
}
|
|
window.open(url,'','left=0,top=0,width=850,height=800,scrollbars=yes,resizable=yes')
|
|
}
|
|
|
|
function search(){
|
|
var form = document.list;
|
|
var url = "document_list.asp";
|
|
form.action =url;
|
|
form.submit();
|
|
}
|
|
</script>
|
|
|
|
<HTML>
|
|
<HEAD>
|
|
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
|
|
<TITLE>문서 선택</TITLE>
|
|
<link rel="StyleSheet" href="/css/basic.css" type="text/css">
|
|
|
|
</HEAD>
|
|
<BODY>
|
|
|
|
<form name='list' method='post'>
|
|
<input type="hidden" name="d_name" value="<%=d_name%>"/>
|
|
<input type="hidden" name="txt_d_no" value="<%=txt_d_no%>"/>
|
|
|
|
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
|
<%
|
|
rsc.open query, adoConn, 1
|
|
%>
|
|
<tr>
|
|
<td colspan="6" style="padding:0 0 5 0;">
|
|
건명 : <input type="text" name="target9" value="<%=target9%>"/>
|
|
<img src="/images/common/btn_smallsrch2.gif" align="absmiddle" onclick="search();" style="CURSOR:pointer;">
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td width="3%" align="center" height="24" >No.</td>
|
|
<td width="17%" align="center" height="24" >문서번호</td>
|
|
<td width="27%" align="center" height="24" >건명</td>
|
|
<td width="13%" align="right" height="24" >금액</td>
|
|
<td width="19%" align="center" height="24" >거래처</td>
|
|
<td width="12%" align="center" height="24" >작성일</td>
|
|
<td width="19%" align="center" height="24" >선택</td>
|
|
</tr>
|
|
<%
|
|
if rsc.recordcount > 0 Then
|
|
|
|
Dim temp_title, temp_customer
|
|
temp_title = ""
|
|
temp_customer = ""
|
|
|
|
for i = 1 to rsc.recordcount
|
|
if i mod 2 = 1 then
|
|
tmp_bgcolor = "#ffffff"
|
|
else
|
|
tmp_bgcolor = "#dbe9f2"
|
|
end if
|
|
|
|
tmp_flag = mid(rsc("d_no"), 10, 1)
|
|
|
|
If Len(rsc("target9")) > 13 Then
|
|
temp_title = Left(rsc("target9"), 13) & "..."
|
|
Else
|
|
temp_title = rsc("target9")
|
|
End If
|
|
|
|
If Len(rsc("target8")) > 7 Then
|
|
temp_customer = Left(rsc("target8"), 7) & "..."
|
|
Else
|
|
temp_customer = rsc("target8")
|
|
End if
|
|
%>
|
|
<tr bgcolor="<%=tmp_bgcolor%>">
|
|
<td align="center" height="28" ><%=i%></td>
|
|
<td align="right" height="28" ><a href="javascript:openit('<%=tmp_flag%>','<%=rsc("d_no")%>','1','<%=x%>')" class="blue"><%=rsc("d_no")%></a></td>
|
|
<td align="right" height="28" ><%=temp_title%></td>
|
|
<td align="right" height="28" ><%=rsc("target5")%></td>
|
|
<td align="center" height="28" ><%=temp_customer%></td>
|
|
<td align="center" height="28" ><%=rsc("d_write_date")%></td>
|
|
<td align="center" height="28"><img src='/images/common/btn_add.gif' title = '선택' style='cursor:pointer' onclick="select_end('<%=d_name%>','<%=txt_d_no%>','<%=rsc("d_no")%>');" align=middle></td>
|
|
</tr>
|
|
<%
|
|
rsc.movenext
|
|
next
|
|
else
|
|
end if
|
|
rsc.close
|
|
%>
|
|
</table>
|
|
|
|
</form>
|
|
|
|
</body>
|
|
</html> |