<% tmp_split = split(d_no, "-") if int(tmp_split(1)) < int(confirm_date) then '2011년 이전 자료라면 구버전 직접비 결재라인을 사용 confirm_flag = "1" else if int(tmp_split(1)) >= 2013 then confirm_flag = "2" else if int(tmp_split(3)) <= int(confirm_no) then '2012년 이후 자료중 문서순서가 15번째 이하라면 구버전 confirm_flag = "1" else '이도 저도 아니라면 신버전 confirm_flag = "2" end if end if 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 'Response.Write confirm_flag & "
" %> <% if confirm_flag = "1" then %> <% elseif confirm_flag = "2" then %> <% end if %> <% 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 elseif view_chk = "0" then tmp_approval = "" tmp_reject = "" elseif view_chk = "2" then '실사->직접비에서 더블클릭으로 올때의 경우 tmp_approval = "결재중" end if tmp_txt = split(target99, "^^") tmp_8 = split(target100, "^^") if instr(1,tmp_txt(0), "반려") then tmp_txt1 = tmp_txt(0) elseif instr(1,tmp_txt(0), "
") then tmp_t1 = split(tmp_txt(0), "
") tmp_txt1 = "" else tmp_txt1 = tmp_txt(0) end if if instr(1,tmp_txt(1), "반려") then tmp_txt2 = tmp_txt(1) elseif instr(1,tmp_txt(1), "
") then tmp_t2 = split(tmp_txt(1), "
") tmp_txt2 = "" else tmp_txt2 = tmp_txt(1) end if if instr(1,tmp_txt(2), "반려") then tmp_txt3 = tmp_txt(2) elseif instr(1,tmp_txt(2), "
") then tmp_t3 = split(tmp_txt(2), "
") tmp_txt3 = "" else tmp_txt3 = tmp_txt(2) end if if instr(1,tmp_txt(3), "반려") then tmp_txt4 = tmp_txt(3) elseif instr(1,tmp_txt(3), "
") then tmp_t4 = split(tmp_txt(3), "
") tmp_txt4 = "" else tmp_txt4 = tmp_txt(3) end if if instr(1,tmp_txt(4), "반려") then tmp_txt5 = tmp_txt(4) elseif instr(1,tmp_txt(4), "
") then tmp_t5 = split(tmp_txt(4), "
") tmp_txt5 = "" else tmp_txt5 = tmp_txt(4) end if if confirm_flag = "1" then tmp_txt6 = tmp_8(0) tmp_txt7 = tmp_8(1) tmp_txt8 = tmp_8(2) tmp_txt9 = tmp_8(3) tmp_txt10 = tmp_8(4) elseif confirm_flag = "2" then if instr(1,tmp_txt(5), "반려") then tmp_txt6 = tmp_txt(5) elseif instr(1,tmp_txt(5), "
") then tmp_t6 = split(tmp_txt(5), "
") tmp_txt6 = "" else tmp_txt6 = tmp_txt(5) end if tmp_txt7 = tmp_8(0) tmp_txt8 = tmp_8(1) tmp_txt9 = tmp_8(2) tmp_txt10 = tmp_8(3) tmp_txt11 = tmp_8(4) tmp_txt12 = tmp_8(5) end if %> <% d_order_cnt = int(d_order_cnt) '특수로직 (view_chk = 1이면 결재완료로 처리해서 승인기능을 생성치 않음, 그냥 문서보기만 할 때) '특수로직 (만약 완료(77)이 아닌 문서라면 99로 처리하여 승인버튼이 보이지 않도록 함) if d_order_cnt <> "77" and view_chk = "1" then '20100802 부재자 선결재 사항 적용으로 작성자는 뷰대신 부재 버튼이 보임 'd_order_cnt = 99 end if if confirm_flag = "1" then if d_order_cnt = 77 or d_order_cnt = 99 then '결재완료, 또는 반려 %> <% elseif d_order_cnt = 5 then '사장결재 tmp_txt10 = month(now()) & " / " & day(now()) %> <% elseif d_order_cnt = 4 then '임원결재 tmp_txt9 = month(now()) & " / " & day(now()) %> <% elseif d_order_cnt = 3 then '부서장결재 tmp_txt8 = month(now()) & " / " & day(now()) %> <% elseif d_order_cnt = 2 then '팀장결재 tmp_txt7 = month(now()) & " / " & day(now()) %> <% end if elseif confirm_flag = "2" then if d_order_cnt = 77 or d_order_cnt = 99 then '결재완료, 또는 반려 %> <% elseif d_order_cnt = 6 then '부회장결재 tmp_txt12 = month(now()) & " / " & day(now()) %> <% elseif d_order_cnt = 5 then '임원결재 tmp_txt11 = month(now()) & " / " & day(now()) %> <% elseif d_order_cnt = 4 then '부서장결재 tmp_txt10 = month(now()) & " / " & day(now()) %> <% elseif d_order_cnt = 3 then '팀장결재 tmp_txt9 = month(now()) & " / " & day(now()) %> <% elseif d_order_cnt = 2 then '부서장결재 tmp_txt8 = month(now()) & " / " & day(now()) %> <% end if %> <% end if %>
기안/승인(소속부서) 검토/승인(관리부서)
본인 팀장 부서장 임원 <%=tmp_title%> 담당 부서장 임원 <%=tmp_title%>
기안/승인(자료조사부) 기안/승인(연구부서) 기안/승인(임원) 검토/승인(관리부서)
본인 부서장 팀장 부서장 임원 <%=tmp_title%> 담당 부서장 임원 <%=tmp_title%>

<%=tmp_txt1%> 

<%=tmp_txt2%> 

<%=tmp_txt3%> 

<%=tmp_txt4%> 

<%=tmp_txt5%> 

       

<%=tmp_txt6%>

<%=tmp_txt7%>

<%=tmp_txt8%>

<%=tmp_txt9%>

<%=tmp_txt10%>

/

/

/

/

<%=tmp_txt1%> 

<%=tmp_txt2%> 

<%=tmp_txt3%> 

<%=tmp_txt4%> 

<%=tmp_approval%>
<%=tmp_reject%>

       

<%=tmp_txt6%>

<%=tmp_txt7%>

<%=tmp_txt8%>

<%=tmp_txt9%>

<%=tmp_txt10%>

/

/

/

/

<%=tmp_txt1%> 

<%=tmp_txt2%> 

<%=tmp_txt3%> 

<%=tmp_approval%>
<%=tmp_reject%>

 

       

<%=tmp_txt6%>

<%=tmp_txt7%>

<%=tmp_txt8%>

<%=tmp_txt9%>

<%=tmp_txt10%>

/

/

/

/

<%=tmp_txt1%> 

<%=tmp_txt2%> 

<%=tmp_approval%>
<%=tmp_reject%>

           

<%=tmp_txt6%>

<%=tmp_txt7%>

<%=tmp_txt8%>

<%=tmp_txt9%>

<%=tmp_txt10%>

/

/

/

/

<%=tmp_txt1%> 

<%=tmp_approval%>
<%=tmp_reject%>

             

<%=tmp_txt6%>

<%=tmp_txt7%>

<%=tmp_txt8%>

<%=tmp_txt9%>

<%=tmp_txt10%>

/

/

/

/

<%=tmp_txt1%> 

<%=tmp_txt2%> 

<%=tmp_txt3%> 

<%=tmp_txt4%> 

<%=tmp_txt5%> 

<%=tmp_txt6%> 

       

<%=tmp_txt7%>

<%=tmp_txt8%>

<%=tmp_txt9%>

<%=tmp_txt10%>

<%=tmp_txt11%>

<%=tmp_txt12%>

/

/

/

/

<%=tmp_txt1%> 

<%=tmp_txt2%> 

<%=tmp_txt3%> 

<%=tmp_txt4%> 

<%=tmp_txt5%> 

<%=tmp_approval%>
<%=tmp_reject%>
<%=tmp_name%>

       

<%=tmp_txt7%>

<%=tmp_txt8%>

<%=tmp_txt9%>

<%=tmp_txt10%>

<%=tmp_txt11%>

<%=tmp_txt12%>

/

/

/

/

<%=tmp_txt1%> 

<%=tmp_txt2%> 

<%=tmp_txt3%> 

<%=tmp_txt4%> 

<%=tmp_approval%>
<%=tmp_reject%>
<%=tmp_name%>

 

       

<%=tmp_txt7%>

<%=tmp_txt8%>

<%=tmp_txt9%>

<%=tmp_txt10%>

<%=tmp_txt11%>

<%=tmp_txt12%>

/

/

/

/

<%=tmp_txt1%> 

<%=tmp_txt2%> 

<%=tmp_txt3%> 

<%=tmp_approval%>
<%=tmp_reject%>
<%=tmp_name%>

 

 

       

<%=tmp_txt7%>

<%=tmp_txt8%>

<%=tmp_txt9%>

<%=tmp_txt10%>

<%=tmp_txt11%>

<%=tmp_txt12%>

/

/

/

/

<%=tmp_txt1%> 

<%=tmp_txt2%> 

<%=tmp_approval%>
<%=tmp_reject%>
<%=tmp_name%>

 

 

 

       

<%=tmp_txt7%>

<%=tmp_txt8%>

<%=tmp_txt9%>

<%=tmp_txt10%>

<%=tmp_txt11%>

<%=tmp_txt12%>

/

/

/

/

<%=tmp_txt1%> 

<%=tmp_approval%>
<%=tmp_reject%>
<%=tmp_name%>

 

 

 

 

       

<%=tmp_txt7%>

<%=tmp_txt8%>

<%=tmp_txt9%>

<%=tmp_txt10%>

<%=tmp_txt11%>

<%=tmp_txt12%>

/

/

/

/