Files
KIN/inspection/interviewer_grade_info.asp
2025-09-29 17:55:08 +09:00

127 lines
4.4 KiB
Plaintext
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!-- #include virtual = "lib/config.asp" -->
<%
SET rsa = server.CreateObject("ADODB.RECORDSET")
SET rsp = server.CreateObject("ADODB.RECORDSET")
dim xid : xid=request.item("xid") '-- 면접/내근직 아이디
dim xname : xname=request.item("xname") '-- 면접/내근직 이름
dim xjumin : xjumin=request.item("xjumin") '-- 주민번호 (앞 6자리)
%>
<meta http-equiv="Content-Type" content="application/vnd.ms-excel;charset=euc-kr">
<meta http-equiv="Expires" content="Mon, 06 Jan 1990 00:00:01 GMT">
<meta http-equiv="Expires" content="-1">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-cache">
<title><%=GNB_TITLE%></title>
<link rel="stylesheet" type="text/css" href="../css/basic.css">
<script src="/js/jquery.min.js"></script>
<script src="/js/jquery-ajax-call.js"></script>
<script src="/js/jquery.form.min.js"></script>
<script language="javascript" src="/js/common.js"></script>
<script type="text/javascript" src="valueck.js"></script>
<script language=javascript>
</script>
</head>
<body onclick="javascript:try{if(winObj.window.focus()){}}catch(exception){}" ondblclick="javascript:try{if(winObj.window.focus()){}}catch(exception){}" >
<form name='xform' method='post' >
<!------------------><!------------------><!------------------>
<table border="0" style="width:700px;" align=center >
<tr>
<td align=center valign=top style="height:250px;" >
<table width="818" cellpadding="0" cellspacing="3" border="0">
<tr>
<td align="left" ><font color=blue>※ 등록된 내근직 등급을 표시 합니다</font></td>
</tr>
</table>
<table width="818" cellpadding="0" cellspacing="3" border="0">
<tr>
<td align="left" ><b>내근직/면접원 ID[<font color=blue><%=xid%></font>] 이름[<font color=blue><%=xname%></font>] 주민번호 [<font color=blue><%=xjumin%>-*******</font>]</b></td>
</tr>
</table>
<table width="818" cellpadding="0" cellspacing="3" border="0">
<tr>
<td align="center" width="153">내근직 업무구분</td>
<td align="center" width="125">등급</td>
<td align="center" width="130">금액</td>
<td align="center" width="118">등급시행일</td>
<td align="center" width="110">등록자</td>
<td align="center" >등록일자</td>
</tr>
<%
sql= " select "
sql=sql&" A1.attribute01, A1.m_grade_dt ,A2.name, A2.cost, A1.insert_dt, A3.p_name "
sql=sql&" from "
sql=sql&" ( "
sql=sql&" select AA.* from "
sql=sql&" ( "
sql=sql&" select "
sql=sql&" (ROW_NUMBER() OVER(PARTITION BY attribute01 ORDER BY m_grade_dt desc, id desc)) as RK, "
sql=sql&" id, m_id, m_grade, attribute01, m_grade_dt, insert_dt , insert_user "
sql=sql&" from [dbo].[T_MYUN_GRADE_HISTORY] "
sql=sql&" where m_id in ( "
sql=sql&" select id from man "
sql=sql&" where m_name='"&xname&"' "
sql=sql&" and new_id='"&xid&"' "
sql=sql&" ) "
sql=sql&" and attribute01 is not null AND m_grade <> '' "
sql=sql&" ) AA "
sql=sql&" where AA.RK='1' "
sql=sql&" ) A1 "
sql=sql&" left join "
sql=sql&" ( "
sql=sql&" select * from category a "
sql=sql&" join "
sql=sql&" (select * from t_neakeun_pay_COST where type='cost' and use_end_dt = '') b "
sql=sql&" on a.code = b.grade "
sql=sql&" where 구분='grade' "
sql=sql&" ) A2 "
sql=sql&" on A1.m_grade=A2.code "
sql=sql&" left join "
sql=sql&" ( "
sql=sql&" select p_no, p_name from person "
sql=sql&" ) A3 "
sql=sql&" on A1.insert_user=A3.p_no "
rsp.Open sql, adoConn, 1
if rsp.eof then
response.write "<tr><td align=""center"" class=""tit3"" colspan=""6"" > ※ 적용된 내근직 등급이 없습니다</td></tr>"
end if
while not rsp.Eof
%>
<tr>
<td align="center" ><%=rsp("attribute01")%></td>
<td align="center" ><%=rsp("name")%></td>
<td align="center" ><%=formatnumber(rsp("cost"),0)%></td>
<td align="center" ><%=rsp("m_grade_dt")%></td>
<td align="center" ><%=rsp("p_name")%></td>
<td align="center" ><%=left(rsp("insert_dt"),18)%></td>
</tr>
<%
rsp.movenext
Wend
rsp.Close
%>
</table>
</td>
</tr>
<tr>
<td align=center valign=top >&nbsp;</td>
</tr>
<tr>
<td align=right valign=top> </td>
</tr>
</table>
<!------------------><!------------------><!------------------>
</form>
</body>
</html>