242 lines
9.0 KiB
Plaintext
242 lines
9.0 KiB
Plaintext
<!-- #include virtual = "include/header.asp" -->
|
|
<!-- #include virtual = "include/left.asp" -->
|
|
<%
|
|
dim i, j
|
|
dim title()
|
|
dim st_date, end_date
|
|
dim Max_Title
|
|
dim Query
|
|
dim krft_send
|
|
|
|
Max_Title = 29
|
|
redim title(Max_Title, 3)
|
|
|
|
title(1, 1) = "휴 가 원" '2022-01-02 KOWORKS 도입으로 사용 중단
|
|
title(2, 1) = "DELFax 커버"
|
|
title(3, 1) = "DEL공문(외부제출용)"
|
|
title(4, 1) = "DEL변경 신청원"
|
|
title(5, 1) = "휴 직 계" '2022-01-02 KOWORKS 도입으로 사용 중단
|
|
title(6, 1) = "DEL복 직 계"
|
|
title(7, 1) = "DEL사 직 원"
|
|
title(8, 1) = "지출결의서"
|
|
title(9, 1) = "마케팅비"
|
|
title(10, 1) = "DEL지출정산승인신청서" '2014-08-10 이문서 사용을 중단
|
|
title(11, 1) = "DEL업무일지 기록 비용 정산" '2014-08-10 이문서 사용을 중단
|
|
title(12, 1) = "출퇴근보고서" '2022-01-02 KOWORKS 도입으로 사용 중단
|
|
title(13, 1) = "DEL가지급금"
|
|
title(14, 1) = "DEL차량운행일지"
|
|
title(15, 1) = "DEL직접비 수정 신청서"
|
|
title(16, 1) = "DEL교육 참가 신청서"
|
|
title(17, 1) = "DEL물품구매서"
|
|
title(18, 1) = "DEL부서비신청서"
|
|
title(19, 1) = "품 의 서"
|
|
title(20, 1) = "DEL출장품의서"
|
|
title(21, 1) = "DEL외주실사의뢰서"
|
|
title(22, 1) = "DEL출장보고서"
|
|
title(23, 1) = "가지급금-운영본부용"
|
|
title(24, 1) = "DEL입금결의서" '양영은 전용
|
|
title(25, 1) = "DEL가지급금2"
|
|
title(26, 1) = "신규 지출결의서"
|
|
title(27, 1) = "DEL문화체육비신청서"
|
|
title(28, 1) = "자금집행서" '양영은 전용
|
|
title(29, 1) = "내근직수당지출결의서" '양영은 전용
|
|
|
|
title(1, 2) = "휴가원을 제출 하고자 할 때 사용"
|
|
title(2, 2) = "Fax를 보낼고자 할 때 사용하는 팩스 커버"
|
|
title(3, 2) = "다른 회사에 협조 공문을 발송 할 때 사용"
|
|
title(4, 2) = "개인 신상의 변경 사항(주소 등)이 발생 할 때 사용"
|
|
title(5, 2) = "개인 신상의 이유로 휴직계을 제출 할 때 사용"
|
|
title(6, 2) = "휴직계 제출 후 복직 할 때 사용"
|
|
title(7, 2) = "회사를 사직 하고자 할 경우 사용"
|
|
title(8, 2) = "물품 구매, 외주비, Gift,택배비 등의 프로젝트관련(구매 신청서)"
|
|
title(9, 2) = "마케팅비 임시 문서 작성"
|
|
title(10, 2) = "교통비,식대 등의 개인 출납용"
|
|
title(11, 2) = "업무일지 기록 비용 정산(업무일지 관련)"
|
|
title(12, 2) = "출퇴근 시각이 틀릴경우 사용"
|
|
title(13, 2) = "가지급금 신규 작성 및 정산(연구본부 전용)"
|
|
title(14, 2) = "업무상 차량은 운행시 사용"
|
|
title(15, 2) = "직접비를 수정 하고자 할 때 사용"
|
|
title(16, 2) = "외부교육 참가를 하고자 할 때 사용"
|
|
title(17, 2) = "물품 구매를 하고자 할 때 사용"
|
|
title(18, 2) = "부서비 전용"
|
|
title(19, 2) = "품의를 올리고자 할 때 사용"
|
|
title(20, 2) = "출장 품의를 올리고자 할 때 사용"
|
|
title(21, 2) = "실사 외주 품의를 올리고자 할 때 사용"
|
|
title(22, 2) = "출장 결과 보고를 올리고자 할 때 사용"
|
|
title(23, 2) = "가지급금 신규 작성 및 정산(운영본부 전용)"
|
|
title(24, 2) = "입금 결의서(양영은 전용)"
|
|
title(25, 2) = "직접비 관련 가지급금 신규 작성 및 정산"
|
|
title(26, 2) = "예상직접비에 대한 지출결의서"
|
|
title(27, 2) = "문화체육비신청서"
|
|
title(28, 2) = "카드 결제한 내역을 문서로 기록" '양영은 전용
|
|
title(29, 2) = "내근직/면접원 수당지출결의서" '양영은 전용
|
|
%>
|
|
<!-- Content Wrapper. Contains page content -->
|
|
<div class="content-wrapper">
|
|
<!-- Content Header (Page header) -->
|
|
<div class="content-header">
|
|
<h1>문서 작성</h1>
|
|
</div>
|
|
<!-- /.content-header -->
|
|
<!-- Main content -->
|
|
<div class="content-body">
|
|
<div class="content">
|
|
<div class="container-fluid">
|
|
<div class="row">
|
|
<div class="col-12">
|
|
<form name='frm_list' method='post' style="TEXT-ALIGN: left" >
|
|
<input type=hidden name=txt_curr_date size=50 value='<%=date()%>'>
|
|
<input type=hidden name=depart_code size=50 value='<%=Session("Depart_Code")%>'>
|
|
<table width="600px" class="table table-sm table-bordered table-head tr-colors" id="docTb">
|
|
<tr>
|
|
<td colspan="2">
|
|
회사내 각종 문서를 작성하는 부분입니다. 원하시는 항목을 선택후 작성 버튼을 클릭 하세요.
|
|
</td>
|
|
</tr>
|
|
<%
|
|
for i=1 to Max_Title
|
|
|
|
tmp_view = "1"
|
|
|
|
if (i = 7 OR i = 14 OR i = 17) AND tmp_admin_chk = "0" then '물품구매서(현재안보임), 사직서, 업무일지 기록 비용 정산, 차량운행일지
|
|
tmp_view = "0"
|
|
end If
|
|
|
|
if i = 21 then '외주의뢰서(어드민과 실사부서장만 보임)
|
|
if (int(tmp_ess(3, 2)) = Session("User_Number") or tmp_admin_chk = "0") then
|
|
tmp_view = "0"
|
|
end if
|
|
end If
|
|
if i = 13 AND (int(Session("Depart_Code")) > 10 AND int(Session("Depart_Code")) < 20 AND tmp_admin_chk <> "1") then '가지급금(연구본부용)
|
|
tmp_view = "0"
|
|
end If
|
|
'Koworks 도입으로 인하여 IT and 경영문화본부 말고는 미제시
|
|
if i = 1 AND (int(Session("Depart_Code")) <> 18) then
|
|
tmp_view = "0"
|
|
end if
|
|
'Koworks 도입으로 인하여 IT and 경영문화본부 말고는 미제시
|
|
if i = 5 AND (int(Session("Depart_Code")) <> 18) then
|
|
tmp_view = "0"
|
|
end if
|
|
'Koworks 도입으로 인하여 IT and 경영문화본부 말고는 미제시
|
|
if i = 12 AND (int(Session("Depart_Code")) <> 18) then
|
|
tmp_view = "0"
|
|
end if
|
|
if i = 13 then
|
|
tmp_view = "0"
|
|
end if
|
|
|
|
if i = 22 then
|
|
tmp_view = "0" ''''2014-07-08 출장보고서 부활~! 2020-01-23 출장보고서 재사망
|
|
end If
|
|
|
|
if i = 23 AND ((int(Session("Depart_Code")) < 10 OR int(Session("Depart_Code")) >= 20) AND tmp_admin_chk <> "1" AND 1=2) then '가지급금(운영본부용)
|
|
tmp_view="0"
|
|
end if
|
|
|
|
if i = 24 then
|
|
if (Session("loginuser") = "양영은" or session("admin_ip") = Request.ServerVariables("remote_addr")) then '입금의뢰서(양영은전용)
|
|
tmp_view = "1"
|
|
else
|
|
tmp_view = "0"
|
|
end if
|
|
end If
|
|
|
|
if i = 28 Or i = 29 then
|
|
If (int(Session("Depart_Code")) = 12 Or int(Session("Depart_Code")) = 18 Or int(Session("Depart_Code")) = 17 Or session("admin_ip") = Request.ServerVariables("remote_addr")) then '자금집행서, 내근직수당지출결의서
|
|
tmp_view = "1"
|
|
else
|
|
tmp_view = "0"
|
|
end if
|
|
end if
|
|
|
|
if i = 27 or i = 4 then
|
|
tmp_view = "0"
|
|
end if
|
|
|
|
if i = 18 then
|
|
tmp_view = "0"
|
|
end if
|
|
|
|
'사용 중단 문서 숨김: 휴가원, 휴직계, 출퇴근보고서, 가지급금-운영본부용
|
|
if i = 1 Or i = 5 Or i = 12 Or i = 23 then
|
|
tmp_view = "0"
|
|
end if
|
|
|
|
If Left(title(i, 1), 3) <> "DEL" Then
|
|
if month(now()) < 10 then
|
|
temp_approval_activity_date = "0" & month(now())
|
|
else
|
|
temp_approval_activity_date = month(now())
|
|
end if
|
|
|
|
if day(now()) < 10 then
|
|
temp_approval_activity_date = temp_approval_activity_date & "-0" & day(now())
|
|
else
|
|
temp_approval_activity_date = temp_approval_activity_date & "-" & day(now())
|
|
end if
|
|
|
|
if Not ((title(i, 1) = "부서비신청서" and Session("teamplace") < 3) or (tmp_view = "0" Or ((title(i, 1) = "지출정산승인신청서" Or title(i, 1) = "직접비 수정 신청서" Or title(i, 1) = "업무일지 기록 비용 정산" Or title(i, 1) = "지출결의서" Or title(i, 1) = "접대비보고서")) And clng(year(now()) & replace(temp_approval_activity_date, "-", "")) > 20140805 )) then
|
|
%>
|
|
<tr>
|
|
<td class='pl-3 h5' style="cursor:pointer;"><input type="radio" class="none" name="radio_title" value="<%=i%>" style="CURSOR:pointer;"> <%= title(i, 1)%></td>
|
|
<td><%= title(i, 2)%></td>
|
|
</tr>
|
|
<%
|
|
End If
|
|
End If
|
|
next
|
|
%>
|
|
<tr>
|
|
<td align="center" colspan="2">
|
|
<button type="button" class="btn btn-primary my-2" onclick="goRun();">문서 작성하기</button>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- /.content -->
|
|
<!-- REQUIRED SCRIPTS -->
|
|
<script>
|
|
$(function(){
|
|
$("input[name=radio_title]").parent().on("click", function(e){
|
|
e.stopPropagation();
|
|
$(this).children("input[name=radio_title]").prop("checked", true);
|
|
});
|
|
});
|
|
|
|
function goRun(){
|
|
var command = $("input[name=radio_title]:checked").val();
|
|
|
|
if(command == "1"){ //휴가원
|
|
document.frm_list.action="doc_list.asp?title=휴가원";
|
|
}else if(command == "5"){ //휴직계
|
|
document.frm_list.action="doc_list.asp?title=휴직계";
|
|
}else if(command == "9"){ //접대비보고서
|
|
document.frm_list.action="doc_list.asp?title=접대비보고서";
|
|
}else if(command == "12"){ //출퇴근 보고서
|
|
document.frm_list.action="doc_list.asp?title=출퇴근보고서";
|
|
}else if(command == "19"){ // 품의서
|
|
document.frm_list.action="doc_list.asp?title=품의서";
|
|
}else if(command == "23"){ //가지급금지출-운영본부용
|
|
document.frm_list.action="doc_list.asp?title=가지급금지출2";
|
|
}else if(command == "26"){ //신규 지출결의서
|
|
document.frm_list.action="doc_list.asp?title=신규 지출결의서";
|
|
}else if(command == "28"){ //자금집행서
|
|
document.frm_list.action="doc_list.asp?title=자금집행서";
|
|
}else if(command == "29"){ //내근직수당지출결의서
|
|
document.frm_list.action="doc_myun_pay.asp?title=내근직수당지출결의서";
|
|
}else{
|
|
alert("작성을 원하는 문서 항목을 선택하세요");
|
|
return;
|
|
}
|
|
document.frm_list.submit();
|
|
}
|
|
</script>
|
|
</div>
|
|
<!-- /.content-wrapper -->
|
|
<!-- #include virtual = "include/footer.asp" --> |