최초커밋
This commit is contained in:
247
other/company_seal.asp
Normal file
247
other/company_seal.asp
Normal file
@@ -0,0 +1,247 @@
|
||||
<!-- #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><3E><><EFBFBD><EFBFBD><EFBFBD>ΰ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD></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"><3E><> <20><></option>
|
||||
<option value="1"><3E><><EFBFBD><EFBFBD>ó</option>
|
||||
<option value="2"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></option>
|
||||
</select>
|
||||
<input type="text" id="searchWord" value="" />
|
||||
<input type="button" id="searchBtn" value="<22><> <20><>" />
|
||||
</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%"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td align="center" class="cs_title" width="19%"><3E><><EFBFBD><EFBFBD>ó</td>
|
||||
<td align="center" class="cs_title" width="26%"><3E><> <20><></td>
|
||||
<td align="center" class="cs_title" width="7%"><3E>μ<EFBFBD></td>
|
||||
<td align="center" class="cs_title" width="6%"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td align="center" class="cs_title" width="14%"><3E><>û<EFBFBD><C3BB><EFBFBD><EFBFBD></td>
|
||||
<td align="center" class="cs_title" width="8%"><3E>濵<EFBFBD><E6BFB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Ȯ<><C8AE></td>
|
||||
<td align="center" class="cs_title" width="6%"><3E><><EFBFBD><EFBFBD></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" style="border-left:1px solid #BDBDBD;"><font color="gray"><3E>ڵ<EFBFBD><DAB5><EFBFBD><EFBFBD><EFBFBD></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"><3E>ڵ<EFBFBD><DAB5><EFBFBD><EFBFBD><EFBFBD></font></td>
|
||||
<td align="center"><input type="button" style="width:80%;" value="<22><> <20><>" 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="<22><> <20><>" style="width:80%;" onclick="chk_cs('<%=adors("id") %>','<%=tmp_currentpage %>','1');" />
|
||||
<%
|
||||
End If
|
||||
Elseif adors("cs_status") = "1" Then
|
||||
%>
|
||||
<font color="#FF4000"><3E><><EFBFBD><EFBFBD></font><font color="#013ADF"> [<%=adors("cs_status_name") %>]</font>
|
||||
<%
|
||||
Else
|
||||
%>
|
||||
<%
|
||||
End If
|
||||
%>
|
||||
</td>
|
||||
<td>
|
||||
<% If adors("cs_status") = "0" Then %>
|
||||
<input type="button" value="<22><> <20><>" 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("<22><>¥<EFBFBD><C2A5> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ּ<EFBFBD><D6BC><EFBFBD>.");
|
||||
return;
|
||||
}
|
||||
if (document.company_seal.cs_client.value.trim() == "") {
|
||||
alert("Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ<EFBFBD><C6AE><EFBFBD><EFBFBD> <20>Է<EFBFBD><D4B7><EFBFBD><EFBFBD>ּ<EFBFBD><D6BC><EFBFBD>.");
|
||||
document.company_seal.cs_client.focus();
|
||||
return;
|
||||
}else if (document.company_seal.cs_client.value.search(spec_str) != -1) {
|
||||
alert("Ư<><C6AF><EFBFBD><EFBFBD><EFBFBD>ڸ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><> <20>ٽ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϱ<EFBFBD> <20><>ư<EFBFBD><C6B0> <20><><EFBFBD><EFBFBD><EFBFBD>ּ<EFBFBD><D6BC><EFBFBD>.");
|
||||
document.company_seal.cs_client.focus();
|
||||
return;
|
||||
}
|
||||
if (document.company_seal.cs_title.value.trim() == "") {
|
||||
alert("<22><> <20><><EFBFBD><EFBFBD> <20>Է<EFBFBD><D4B7><EFBFBD><EFBFBD>ּ<EFBFBD><D6BC><EFBFBD>.");
|
||||
document.company_seal.cs_title.focus();
|
||||
return;
|
||||
} else if (document.company_seal.cs_title.value.search(spec_str) != -1) {
|
||||
alert("Ư<><C6AF><EFBFBD><EFBFBD><EFBFBD>ڸ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><> <20>ٽ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϱ<EFBFBD> <20><>ư<EFBFBD><C6B0> <20><><EFBFBD><EFBFBD><EFBFBD>ּ<EFBFBD><D6BC><EFBFBD>.");
|
||||
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("<22><><EFBFBD><EFBFBD>ó<EFBFBD><C3B3><EFBFBD>Ͻðڽ<C3B0><DABD>ϱ<EFBFBD>?")) {
|
||||
alert("<22><><EFBFBD>ҵǾ<D2B5><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>.");
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
if (!confirm("<22><><EFBFBD><EFBFBD><EFBFBD>Ͻðڽ<C3B0><DABD>ϱ<EFBFBD>?")) {
|
||||
alert("<22><><EFBFBD>ҵǾ<D2B5><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>.");
|
||||
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" -->
|
||||
Reference in New Issue
Block a user