247 lines
14 KiB
Plaintext
247 lines
14 KiB
Plaintext
<!-- #include virtual = "include/header.asp" -->
|
|
<!-- #include virtual = "include/left.asp" -->
|
|
<%
|
|
If tmp_support_chk = "1" Then
|
|
query = ""
|
|
query = query & " UPDATE T_COMPANY_SEAL "
|
|
query = query & " SET support_check = '1' "
|
|
query = query & " WHERE support_check = '0' "
|
|
|
|
adoConn.Execute query
|
|
End If
|
|
|
|
if request("gotopage") <> "" then
|
|
tmp_currentpage = request("gotopage")
|
|
else
|
|
tmp_currentpage = 1
|
|
end if
|
|
searchtype = request("searchtype")
|
|
if searchtype = "" then
|
|
searchtype = "0"
|
|
end if
|
|
searchword = request("searchword")
|
|
%>
|
|
<!-- 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">
|
|
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<td align="right">
|
|
<select id="searchType">
|
|
<option value="0">건 명</option>
|
|
<option value="1">제출처</option>
|
|
<option value="2">담당자</option>
|
|
</select>
|
|
<input type="text" id="searchWord" value="" />
|
|
<input type="button" id="searchBtn" value="검 색" />
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="center">
|
|
<form name="company_seal" method="post">
|
|
<table class="table table-sm table-sm2 table-bordered table-head tr-colors mt-2">
|
|
<tr>
|
|
<td align="center" class="cs_title" style="border-left:1px solid #BDBDBD;" width="5%">No.</td>
|
|
<td align="center" class="cs_title" width="11%">제출일자</td>
|
|
<td align="center" class="cs_title" width="19%">제출처</td>
|
|
<td align="center" class="cs_title" width="26%">건 명</td>
|
|
<td align="center" class="cs_title" width="7%">부서</td>
|
|
<td align="center" class="cs_title" width="6%">담당자</td>
|
|
<td align="center" class="cs_title" width="14%">신청일자</td>
|
|
<td align="center" class="cs_title" width="8%">경영전략실 확인</td>
|
|
<td align="center" class="cs_title" width="6%">삭제</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="center" style="border-left:1px solid #BDBDBD;"><font color="gray">자동생성</font></td>
|
|
<td align="center">
|
|
<input type="text" style="width:100%;cursor:pointer;text-align:center;" name="cs_date" id="cs_date" value='' readonly>
|
|
</td>
|
|
<td align="center">
|
|
<input type="hidden" name="cs_div" id="cs_div" value="" />
|
|
<input type="hidden" name="cs_cli_prj" id="cs_cli_prj" value="" />
|
|
<input type="text" class="gray" style="width:85%;text-align:Left;" name="cs_client" id="cs_client" value='' onclick="c_prj_sel('cs_div', 'cs_cli_prj', 'cs_client');" readonly />
|
|
<img src="/images/common/btn_smallsrch2.gif" style="vertical-align:top;cursor:pointer;" onclick="c_prj_sel('cs_div', 'cs_cli_prj', 'cs_client');" />
|
|
</td>
|
|
<td align="center"><input type="text" class="gray" style="width:99%;text-align:Left;" name="cs_title" id="cs_title" value='' /></td>
|
|
<td align="center"><%=session("Depart_name") %></td>
|
|
<td align="center"><%=session("loginuser") %></td>
|
|
<td align="center"><font color="gray">자동생성</font></td>
|
|
<td align="center"><input type="button" style="width:80%;" value="작 성" onclick="write_cs();" /></td>
|
|
<td align="center"></td>
|
|
</tr>
|
|
<%
|
|
query = " SELECT TCS.id, cs_date, cs_client, cs_title, cs_status, P2.p_name as cs_status_name, "
|
|
query = query & " P.p_team_name as team_name, TCS.insert_date, P.p_name "
|
|
query = query & " FROM T_COMPANY_SEAL TCS "
|
|
query = query & " LEFT OUTER JOIN V_person P ON TCS.insert_user = P.p_no "
|
|
query = query & " LEFT OUTER JOIN person P2 ON TCS.cs_status_user = P2.p_no "
|
|
query = query & " WHERE TCS.use_div = '1' "
|
|
if searchtype = "0" then
|
|
query = query & "and cs_title like '%" & searchword & "%' "
|
|
elseif searchtype = "1" then
|
|
query = query & "and cs_client like '%" & searchword & "%' "
|
|
elseif searchtype = "2" then
|
|
query = query & "and P.p_name like '%" & searchword & "%' "
|
|
end if
|
|
query = query & " ORDER BY insert_date DESC "
|
|
|
|
adors.Open query, adoConn, 1
|
|
if adors.RecordCount > 0 then
|
|
adors.PageSize = 20
|
|
PageCount = adors.PageCount
|
|
adors.absolutepage = tmp_Currentpage
|
|
tmp_total_record = adors.RecordCount
|
|
tmp_for = Cint(tmp_total_record) - ((Cint(tmp_Currentpage) - 1) * adors.PageSize)
|
|
|
|
if adors.PageSize <= tmp_for then
|
|
if adors.RecordCount <= adors.PageSize then
|
|
tmp_for = adors.recordcount
|
|
else
|
|
tmp_for = adors.PageSize
|
|
end if
|
|
else
|
|
tmp_for = tmp_for
|
|
end if
|
|
|
|
for i=1 To tmp_for
|
|
%>
|
|
<!--- Loop Set Start --->
|
|
<tr>
|
|
<td align="center"><%=adors("id")%></td>
|
|
<td align="center"><%=adors("cs_date")%></td>
|
|
<td align="left"><%=adors("cs_client")%></td>
|
|
<td align="left"><%=adors("cs_title")%></td>
|
|
<td align="center"><%=adors("team_name")%></td>
|
|
<td align="center"><%=adors("p_name")%></td>
|
|
<td align="center"><%=adors("insert_date")%></td>
|
|
<td align="center">
|
|
<%
|
|
If adors("cs_status") = "0" Then
|
|
If session("Depart_Code") = "18" Then
|
|
%>
|
|
<input type="button" value="불 출" style="width:80%;" onclick="chk_cs('<%=adors("id") %>','<%=tmp_currentpage %>','1');" />
|
|
<%
|
|
End If
|
|
Elseif adors("cs_status") = "1" Then
|
|
%>
|
|
<font color="#FF4000">불출</font><font color="#013ADF"> [<%=adors("cs_status_name") %>]</font>
|
|
<%
|
|
Else
|
|
%>
|
|
<%
|
|
End If
|
|
%>
|
|
</td>
|
|
<td>
|
|
<% If adors("cs_status") = "0" Then %>
|
|
<input type="button" value="삭 제" style="width:80%;" onclick="chk_cs('<%=adors("id") %>', '<%=tmp_currentpage %>','0');"/>
|
|
<%End If %>
|
|
</td>
|
|
</tr>
|
|
<!--- Loop Set End --->
|
|
<%
|
|
adors.MoveNext
|
|
next
|
|
end if
|
|
%>
|
|
</table>
|
|
</form>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="center">
|
|
<%= Pagelist("company_seal.asp", tmp_currentpage, tmp_bcolor , "", pagecount, "&searchtype=" & searchtype & "&searchword=" & searchword) %>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- /.content -->
|
|
<!-- REQUIRED SCRIPTS -->
|
|
<script>
|
|
function write_cs(){
|
|
var spec_str = /[$\\@\\\#%\^\&\{\}\`\-\=\|\/\;\"\']/;
|
|
if (document.company_seal.cs_date.value.trim() == "") {
|
|
alert("날짜를 선택해주세요.");
|
|
return;
|
|
}
|
|
if (document.company_seal.cs_client.value.trim() == "") {
|
|
alert("클라이언트명을 입력해주세요.");
|
|
document.company_seal.cs_client.focus();
|
|
return;
|
|
}else if (document.company_seal.cs_client.value.search(spec_str) != -1) {
|
|
alert("특수문자를 제거 후 다시 생성하기 버튼을 눌러주세요.");
|
|
document.company_seal.cs_client.focus();
|
|
return;
|
|
}
|
|
if (document.company_seal.cs_title.value.trim() == "") {
|
|
alert("건 명을 입력해주세요.");
|
|
document.company_seal.cs_title.focus();
|
|
return;
|
|
} else if (document.company_seal.cs_title.value.search(spec_str) != -1) {
|
|
alert("특수문자를 제거 후 다시 생성하기 버튼을 눌러주세요.");
|
|
document.company_seal.cs_title.focus();
|
|
return;
|
|
}
|
|
|
|
document.company_seal.action = "./company_seal_ok.asp";
|
|
document.company_seal.submit();
|
|
}
|
|
|
|
function chk_cs(id, now_page, ok){
|
|
if(ok=="1"){
|
|
if (!confirm("반출처리하시겠습니까?")) {
|
|
alert("취소되었습니다.");
|
|
return;
|
|
}
|
|
} else {
|
|
if (!confirm("삭제하시겠습니까?")) {
|
|
alert("취소되었습니다.");
|
|
return;
|
|
}
|
|
}
|
|
location.href = "./company_seal_chk.asp?id=" + id + "&now_page=" + now_page + "&ok=" + ok;
|
|
}
|
|
|
|
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");
|
|
}
|
|
|
|
$(function(){
|
|
$("#cs_date").datepicker();
|
|
|
|
$("#searchBtn").on("click", function(){
|
|
var searchType = $("#searchType option:selected").val();
|
|
var searchWord = $("#searchWord").val();
|
|
searchWord = searchWord.replace(/'/g, "");
|
|
|
|
location.href="./company_seal.asp?searchtype=" + searchType + "&searchword=" + searchWord;
|
|
});
|
|
$("#searchWord").on("keyup", function(e){
|
|
e.preventDefault();
|
|
var keycode = event.which ? event.which : event.keyCode;
|
|
if(keycode == 13){
|
|
$("#searchBtn").click();
|
|
}
|
|
});
|
|
$("#searchType").val("<%=searchtype%>");
|
|
$("#searchWord").val("<%=searchword%>");
|
|
});
|
|
</script>
|
|
</div>
|
|
<!-- /.content-wrapper -->
|
|
<!-- #include virtual = "include/footer.asp" --> |