%
if view_chk = "1" then
'### 부재버튼 표시 로직-------
tmp_pass_chk = "0"
query = "SELECT * "
query = query & "FROM [Document] "
query = query & "WHERE d_no = '" & d_no & "' "
adors.Open query, adoConn, 1
if adors.recordcount > 0 then
if int(adors("d_order_cnt")) < 10 then
tmp_pass_psn = adors("d_orders")
end if
end if
adors.close
'휴가원체크
query = "SELECT * "
query = query & "FROM [문서내용] "
query = query & "WHERE login_p_no = '" & tmp_pass_psn & "' "
query = query & " AND del_yes_no = 'no' "
query = query & " AND (문서제목 = '휴가원' "
query = query & " OR 문서제목 = '휴직계') "
query = query & " AND SUBSTRING(target1, 1, 4) LIKE '" & year(date) & "' "
'Response.Write query & "
"
adors.open query, adoConn, 1
if adors.recordcount > 0 then
for i = 1 to adors.recordcount
tmp_pass_sdate = adors("target1")
tmp_pass_edate = adors("target2")
if cdate(tmp_pass_sdate) <= date() AND cdate(tmp_pass_edate) >= date() then
tmp_pass_chk = "1"
end if
adors.movenext
next
end if
adors.close
'### 부재버튼 표시 로직-------
if tmp_pass_chk = "1" then
tmp_approval = "
"
'tmp_approval = "
"
else
tmp_approval = ""
end if
tmp_reject = ""
set rsp = server.CreateObject("ADODB.RECORDSET")
query = "SELECT * "
query = query & "FROM person "
query = query & "WHERE p_no = '" & rsc("d_orders") & "' "
rsp.Open query, adoConn, 1
if rsp.RecordCount > 0 then
tmp_name = rsp("p_name")
end if
rsp.Close
else
tmp_approval = "
"
tmp_reject = "
"
end if
query = "SELECT * FROM [Document] " & _
"WHERE d_no = '" & d_no & "' "
adors.Open query, adoConn, 1
if adors("d_write_date") > "2014-01-07" then
tmp_title = "대표이사"
else
tmp_title = "부회장"
end if
adors.close
%>
| 기안/승인 (실사) |
기안/승인 (임원) |
검토/승인(관리부서) | |||||
| 본인 | 부서장 | 임원 | <%=tmp_title%> | 담당 | 부서장 | 임원 | <%=tmp_title%> |
| <%=tmp_txt1%> | <%=tmp_txt3%> | <%=tmp_txt4%> | <%=tmp_txt5%> | ||||
| <%=tmp_txt7%> | <%=tmp_txt9%> | <%=tmp_txt11%> | <%=tmp_txt12%> | / | / | / | / |
| <%=tmp_txt1%> | <%=tmp_txt3%> | <%=tmp_txt4%> |
<%=tmp_approval%>
<%=tmp_reject%> <%=tmp_name%> |
||||
| <%=tmp_txt7%> | <%=tmp_txt9%> | <%=tmp_txt10%> | <%=tmp_txt11%> | / | / | / | / |
| <%=tmp_txt1%> | <%=tmp_txt3%> | <%=tmp_txt4%> |
<%=tmp_approval%>
<%=tmp_reject%> <%=tmp_name%> |
||||
| <%=tmp_txt7%> | <%=tmp_txt9%> | <%=tmp_txt10%> | <%=tmp_txt11%> | / | / | / | / |
| <%=tmp_txt1%> | <%=tmp_txt3%> |
<%=tmp_approval%>
<%=tmp_reject%> <%=tmp_name%> |
|||||
| <%=tmp_txt7%> | <%=tmp_txt9%> | <%=tmp_txt10%> | <%=tmp_txt11%> | / | / | / | / |
| <%=tmp_txt1%> |
<%=tmp_approval%>
<%=tmp_reject%> <%=tmp_name%> |
||||||
| <%=tmp_txt7%> | <%=tmp_txt9%> | <%=tmp_txt10%> | <%=tmp_txt11%> | / | / | / | / |
| <%=tmp_txt1%> |
<%=tmp_approval%>
<%=tmp_reject%> <%=tmp_name%> |
||||||
| <%=tmp_txt7%> | <%=tmp_txt8%> | <%=tmp_txt11%> | <%=tmp_txt12%> | / | / | / | / |