199 lines
11 KiB
Plaintext
199 lines
11 KiB
Plaintext
<!-- #include virtual = "include/header.asp" -->
|
|
<!-- #include virtual = "include/left.asp" -->
|
|
<%
|
|
dim query
|
|
dim official_no
|
|
official_no = request("official_no")
|
|
|
|
dim official_title
|
|
dim official_client
|
|
dim official_date
|
|
dim official_etc
|
|
%>
|
|
<!-- 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="official" method="post">
|
|
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<td style="padding:0 0 5 0;">
|
|
<font class="brown">공문 번호 생성기 입니다. 번호는 KRI-년월일-순번으로 생성됩니다. (예 : 2018년 1월까지 -> KRI-20161128-01, 2019년 02월 이후 -> KRI-20190220-01) </font><br />
|
|
<font color="red"><b>※ 번호는 생성하기 버튼 클릭 후 생성됩니다.</b></font><br />
|
|
<font color="red"><b>※ 공문 직인 날인 후 보관을 위해 사본을 경영전략실에 제출 바랍니다.</b></font><br />
|
|
<font color="red"><b>※ [미제출]건은 생성자가 공문번호의 하이퍼링크를 클릭하여 [미제출] 처리를 할 수 있습니다.</b></font>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<table class="table table-sm table-sm2 table-bordered table-head tr-colors">
|
|
<tr height="24">
|
|
<td align="center" colspan="4">공문 번호 생성기</td>
|
|
</tr>
|
|
<%
|
|
official_title = ""
|
|
official_client = ""
|
|
official_date = ""
|
|
official_etc = ""
|
|
|
|
If official_no <> "" Then
|
|
%>
|
|
<tr>
|
|
<td align="center" >공문 번호</td>
|
|
<td colspan="3" >
|
|
<input type="text" style="width:100%;" value='<%=official_no %>' readonly />
|
|
</td>
|
|
</tr>
|
|
<%
|
|
query = ""
|
|
query = query & " SELECT official_date, official_client, official_title, official_etc "
|
|
query = query & " FROM T_OFFICIAL_NO "
|
|
query = query & " WHERE official_no = '" & official_no & "' "
|
|
query = query & " AND use_div = '1' "
|
|
|
|
adors.open query, adoConn, adopenstatic, adlockreadonly
|
|
If adors.recordCount = 1 Then
|
|
official_title = adors("official_title")
|
|
official_client = adors("official_client")
|
|
official_date = adors("official_date")
|
|
official_etc = adors("official_etc")
|
|
End If
|
|
adors.close
|
|
End If
|
|
%>
|
|
<tr>
|
|
<td align="center" >공문 제목</td>
|
|
<td colspan="3" >
|
|
<input type="text" style="width:100%;" name="official_title" id="official_title" value='<%=official_title %>' <% If official_date <> "" Then %> readonly <% End If %> />
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td width="15%" align="center" >클라이언트명</td>
|
|
<td width="35%" >
|
|
<%
|
|
If official_date = "" Then
|
|
%>
|
|
<input type="hidden" name="official_div" id="official_div" value="" />
|
|
<input type="hidden" name="official_cli_prj" id="official_cli_prj" value="" />
|
|
<%
|
|
End If
|
|
%>
|
|
<input type="text" style="<% If official_date <> "" Then %>width:100%;<% Else %>width:90%;cursor:pointer;<% End If %>" name="official_client" id="official_client" value='<%=official_client %>' <% If official_client = "" Then %> onclick="c_prj_sel('official_div', 'official_cli_prj', 'official_client');" <% End If %> readonly />
|
|
<%
|
|
If official_date = "" Then
|
|
%>
|
|
<img src="/images/common/btn_smallsrch2.gif" style="vertical-align:top;cursor:pointer;" onclick="c_prj_sel('official_div', 'official_cli_prj', 'official_client');" />
|
|
<%
|
|
End If
|
|
%>
|
|
</td>
|
|
<td width="15%" align="center" >공문 기준일</td>
|
|
<td width="35%" >
|
|
<input type="text" style="width:100%;cursor:pointer;text-align:right;" name="official_date" id="official_date" value='<%=official_date %>' <% If official_date = "" Then %> class='selectDate' <% End If %> readonly />
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="center" >비 고</td>
|
|
<td colspan="3" >
|
|
<input type="text" style="width:100%;" name="official_etc" id="official_etc" value='<%=official_etc %>' <% If official_date <> "" Then %> readonly <% End If %> />
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
<%
|
|
If official_no = "" Then
|
|
%>
|
|
<tr>
|
|
<td style="padding:0 0 5px 0;" align="center">
|
|
<img src="/images/common/btn_create.jpg" onclick="c_official();" style="CURSOR:pointer;" title='생성하기'>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<div id="official_list">
|
|
<iframe name="official_frame" src="./official_list.asp" style="width:100%; height:480px; border:0;"></iframe>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<%
|
|
Else
|
|
%>
|
|
<tr>
|
|
<td style="padding:5 0 0 0;" align="center">
|
|
<img src="/images/common/btn_return.jpg" onclick="c_return();" style="CURSOR:pointer;" title='돌아가기'>
|
|
</td>
|
|
</tr>
|
|
<%
|
|
End If
|
|
%>
|
|
</table>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- /.content -->
|
|
<!-- REQUIRED SCRIPTS -->
|
|
<script>
|
|
$(function(){
|
|
$(".selectDate").datepicker();
|
|
});
|
|
|
|
function c_official() {
|
|
var spec_str = /[$\\@\\\#%\^\&\{\}\`\-\=\|\/\;\"\']/;
|
|
if (document.official.official_title.value.trim() == "") {
|
|
alert("건 명을 작성해주세요.");
|
|
document.official.official_title.focus();
|
|
return;
|
|
} else if (document.official.official_title.value.search(spec_str) != -1) {
|
|
alert("특수문자를 제거 후 다시 생성하기 버튼을 눌러주세요.");
|
|
document.official.official_title.focus();
|
|
return;
|
|
}
|
|
if (document.official.official_client.value.trim() == "") {
|
|
alert("업체 명을 선택해주세요.");
|
|
document.official.official_client.focus();
|
|
return;
|
|
} else if (document.official.official_client.value.search(spec_str) != -1) {
|
|
alert("특수문자를 제거 후 다시 생성하기 버튼을 눌러주세요.");
|
|
document.official.official_client.focus();
|
|
return;
|
|
}
|
|
if (document.official.official_date.value.trim() == "") {
|
|
alert("공문 기준일을 선택해주세요.");
|
|
return;
|
|
}
|
|
if (document.official.official_etc.value.trim() != "") {
|
|
if (document.official.official_etc.value.search(spec_str) != -1) {
|
|
alert("특수문자를 제거 후 다시 생성하기 버튼을 눌러주세요.");
|
|
document.official.official_etc.focus();
|
|
return;
|
|
}
|
|
}
|
|
|
|
document.official.action = "./official_no_gen_ok.asp";
|
|
document.official.submit();
|
|
}
|
|
|
|
function c_return() {
|
|
location.href = "./official_no_gen.asp";
|
|
}
|
|
function c_prj_sel(obj_type, obj_prj, obj_cli) {
|
|
var url = "/project_list/project_other_list.asp?obj_type=" + obj_type + "&obj_prj=" + obj_prj + "&obj_cli=" + obj_cli;
|
|
window.open(url, "wins", "left=50, top=50, menubar=no, location=no, status=no, toolbar=no, width=850, height=600, scrollbars=yes ,resizable=no");
|
|
}
|
|
</script>
|
|
</div>
|
|
<!-- /.content-wrapper -->
|
|
<!-- #include virtual = "include/footer.asp" --> |