<% dim title dim Query dim tmpstr2 dim i dim max_cnt '문서내용 테이블에서 원하는 문서를 가져온 갯수 dim txt_date '출퇴근보고서 작성시 사용되는 시작일자 dim db_table_name dim Currdate dim sel_month Currdate = year(date) & "-" & zeroformat(month(date),2) & "-" & zeroformat(day(date),2) db_table_name = "문서내용" title=request("title") txt_date = request("txt_date") sel_month = request("sel_month") if trim(sel_month) = "" then sel_month = mid(date,1,7) end if '문서번호의 년도가 현년도 인것만 보기 query = "select * from " & db_table_name If title = "신규 지출결의서" then query = query & " where 문서제목 ='지출결의서' " query = query & " and target16 is not null " Else query = query & " where 문서제목 ='" & title & "' " End If query = query & " and login_p_no = '" & Session("User_Number") & "'" if title = "접대비보고서" then query = query & " and (convert(varchar(7), target3) = '" & sel_month & "' " else query = query & " and (substring(발급일,1,7) = '" & sel_month & "' " end if query = query & ") and del_yes_no = 'no' order by 문서번호 desc, 발급시각 desc" adors.open query, adoconn, adopenstatic, adlockreadonly %>

문서 작성

※ <% if title = "접대비보고서" then response.Write "마케팅비" else response.Write title end if%>의 기존 입력 자료를 보여줍니다.
※ 가장 최근의 것이 맨 위에 있습니다. 즉, 작성일자의 내림차순 소트입니다.
※ 자신이 작성한 문서만 보입니다.
<%if title = "접대비보고서" then%>접대월별 보기<%else%>작성월별 보기<%end if%>  <%if title = "신규 지출결의서" then%>     프로젝트비용    일반비용      <% End If %>
<% if title="휴가원" then%> <% do while not adoRs.eof %> <%adoRs.movenext loop elseif title = "휴직계" then%> <% do while not adoRs.eof %> <%adoRs.movenext loop elseif title = "지출결의서" Or title = "신규 지출결의서" or title = "입금결의서" Or title = "예산제어시스템 테스트" then%> <% do while not adoRs.eof %> <%adoRs.movenext loop elseif title = "접대비보고서" then%> <% do while not adoRs.eof %> <%adoRs.movenext loop elseif title = "출퇴근보고서" then%> <% do while not adoRs.eof tmpstr= "" for i=1 to 10 tmpstr2 = "target" & trim(i) if trim(adors(tmpstr2)) = "" or isnull(adors(tmpstr2)) then exit for end if tmpstr2 = replace(adors(tmpstr2),"^^", ", ") tmpstr = tmpstr & " " & tmpstr2 & chr(13) next %> <%tmpstr = split(adors("target1"),"^^") for i=0 to 5 if tmpstr(i) = "" then tmpstr(i) = " " end if next %> <%adoRs.movenext loop elseif title = "가지급금지출" or title = "가지급금지출2" or title = "가지급금지출-직접비" then%> <% if title = "가지급금지출" then chk = 2 elseif title = "가지급금지출2" then chk = 3 elseif title = "가지급금지출-직접비" then chk = 4 end if do while not adoRs.eof %> <%adoRs.movenext loop elseif title = "품의서" then%> <% do while not adoRs.eof %> <%adoRs.movenext loop End IF adoRs.close %>
작성일 휴가기간 휴가사유
<%=adors("발급일")%> <%=adors("target1")%>∼<%=adors("target2")%> <%=adors("target3")%>
휴직사유 휴직희망일 복직희망일
<%=adors("target1")%> <%=adors("target2")%> <%=adors("target3")%>
프로젝트명 지출일자 지급방법 공급가액 부가세액 거래처 인쇄여부
<%tmpstr=adors("target1") if tmpstr = "" then tmpstr = " " end if%> <%=tmpstr%> <%=adors("target3")%> <%=adors("target4")%> <%=formatnumber(adors("target5"),0)%> <%=adors("target6")%> <%=adors("target8")%> <%=adors("print_chk")%>
문서번호 삭제 프로젝트명 접대일자 지급방법 공급가액 부가세액 거래처 인쇄여부
')"><%=adors("문서번호")%> ');" style='CURSOR:pointer;' align="absmiddle"> <%tmpstr=adors("target1") if tmpstr = "" then tmpstr = " " end if%> <%=tmpstr%> <%=adors("target3")%> <%=adors("target15")%> <%=adors("target4")%> <%=adors("target5")%> <%=adors("target9")%> <%=adors("print_chk")%>
작성일 작성시각 첫줄일자 첫줄보고사유 첫줄출근조정시각 첫줄퇴근조정시각
<%=adors("발급일")%> <%=adors("발급시각")%><%=tmpstr(0)%> <%=tmpstr(3)%> <%=tmpstr(4)%> <%=tmpstr(5)%>
작성일 프로젝트명 지급처 지급처담당자 지급일자 지출사유 합계액 정산작성 정산완료
<%=adors("발급일")%> <%=adors("target12")%> <%=adors("target1")%> <%=adors("target3")%> <%=adors("target4")%> <%=adors("target6")%> <%=adors("target10")%>
프로젝트명 납품일자 결재일자 공급가액 부가세액 거래처 인쇄여부
<%tmpstr=adors("target1") if tmpstr = "" then tmpstr = " " end if%> <%=tmpstr%> <%=adors("target3")%> <%=adors("target4")%> <%=adors("target5")%> <%=adors("target6")%> <%=adors("target8")%> <%=adors("print_chk")%>