최초커밋
This commit is contained in:
245
inspection/neakeun_status2_2014.asp
Normal file
245
inspection/neakeun_status2_2014.asp
Normal file
@@ -0,0 +1,245 @@
|
||||
<!-- #include virtual = "include/header.asp" -->
|
||||
<%
|
||||
dim command, txtmonth
|
||||
dim cnt
|
||||
dim Query
|
||||
dim end_date
|
||||
dim sort_condi(4), sort_condi2
|
||||
sort_condi(1) = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE>"
|
||||
sort_condi(2) = "<22><><EFBFBD>αٹ<CEB1>"
|
||||
sort_condi(3) = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
||||
sort_condi(4) = "<22>ٹ<EFBFBD><D9B9><EFBFBD>¥"
|
||||
sort_condi2 = request("sort_condi")
|
||||
command = request("command")
|
||||
end_date = Request("end_date")
|
||||
if end_date = "" then
|
||||
end_date = mid(cdate(date),1,7)
|
||||
end if
|
||||
|
||||
if command <> "excel" then
|
||||
%>
|
||||
<!-- #include virtual = "include/left.asp" -->
|
||||
<!-- Content Wrapper. Contains page content -->
|
||||
<div class="content-wrapper">
|
||||
<style>
|
||||
button.ui-datepicker-current {
|
||||
display: none;
|
||||
}
|
||||
</style>
|
||||
<!-- Content Header (Page header) -->
|
||||
<div class="content-header">
|
||||
<h1><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><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">
|
||||
<%
|
||||
End If
|
||||
if command = "excel" then
|
||||
Response.ContentType = "application/vnd.ms-excel"
|
||||
Response.AddHeader "Content-Disposition","attachment;filename=" & replace(txtmonth,"-","<22><>") & "<22><>_<EFBFBD><5F><EFBFBD><EFBFBD><EFBFBD><EFBFBD>_<EFBFBD><5F><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȳ.xls"
|
||||
end if
|
||||
if command <> "excel" then
|
||||
%>
|
||||
<% Dim f_menu : f_menu = "nk" %>
|
||||
<!-- #include file = "f_menu.asp" -->
|
||||
<%
|
||||
End If
|
||||
%>
|
||||
<form method='post' name='frm_search_work'>
|
||||
<table class="table table-sm table-sm2 table-bordered table-head tr-colors">
|
||||
<%
|
||||
if command <> "excel" then
|
||||
%>
|
||||
<tr>
|
||||
<td><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><br><3E>˻<EFBFBD><CBBB><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ش<EFBFBD><D8B4><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ǵ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>˻<EFBFBD></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<09>˻<EFBFBD> <20><><EFBFBD><EFBFBD> : <20>ǻ<EFBFBD><C7BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
<09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
<select name=sel_sort>
|
||||
<%for i=1 to ubound(sort_condi)%>
|
||||
<option value='<%=i%>' <%= iif(cint(sort_condi2) = i, " selected ", "") %>><%=sort_condi(i)%></option>
|
||||
<%next%>
|
||||
</select>
|
||||
|
||||
<09>ǻ<EFBFBD><C7BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
<input type="text" style="width:120;text-align:center;CURSOR:pointer;" value="<%=end_date%>" name='txt_end_date' readonly class='selectMonth'>
|
||||
<img src="/images/common/btn_smallsrch.gif" align="absmiddle" onClick="goView('view');" style='cursor:pointer'>
|
||||
<img src="/images/common/btn_smallexcel.gif" align="absmiddle" onclick="goView('excel');" style='CURSOR:pointer;'>
|
||||
</td>
|
||||
</tr>
|
||||
<%
|
||||
end if
|
||||
|
||||
if command <> "" then
|
||||
|
||||
'#### <20><><EFBFBD>ν<EFBFBD><CEBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD> 10<31><30> 31<33><31><EFBFBD>ڷ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
query = " SELECT * "
|
||||
query = query & " FROM ( "
|
||||
query = query & " SELECT nw.p_sn, nw.p_child_sn, nw.p_sebu, nw.neakeun_name, nw.date, nw.yoil, nw.job_in_time, nw.job_out_time, nw.job_jumal_time, nw.in_time, nw.out_time, p.p_subject "
|
||||
query = query & " FROM neakeun_work as nw INNER JOIN project as p ON nw.p_sn = p.p_sn "
|
||||
query = query & " WHERE (p.p_field_end LIKE '" & end_date & "%') "
|
||||
query = query & " UNION "
|
||||
query = query & " SELECT nw.p_sn, nw.p_child_sn, nw.p_sebu, nw.neakeun_name, nw.date, nw.yoil, nw.job_in_time, nw.job_out_time, nw.job_jumal_time, nw.in_time, nw.out_time, TPM.p_subject "
|
||||
query = query & " FROM neakeun_work as nw INNER JOIN T_PROJECT_METHOD as TPM ON nw.p_sn = TPM.p_sn AND nw.p_child_sn = TPM.p_child_sn "
|
||||
query = query & " WHERE (TPM.p_field_date_end LIKE '" & end_date & "%') "
|
||||
query = query & " ) A"
|
||||
|
||||
if cint(sort_condi2) = 1 then
|
||||
query = query & " order by A.p_subject"
|
||||
elseif cint(sort_condi2) = 2 then
|
||||
query = query & " order by A.p_sebu"
|
||||
elseif cint(sort_condi2) = 3 then
|
||||
query = query & " order by A.neakeun_name"
|
||||
elseif cint(sort_condi2) = 4 then
|
||||
query = query & " order by A.[date]"
|
||||
end if
|
||||
|
||||
Rs.open query, adoconn, adopenstatic, adlockreadonly
|
||||
'#### <20><><EFBFBD>ν<EFBFBD><CEBD><EFBFBD>
|
||||
%>
|
||||
<tr>
|
||||
<td>
|
||||
<table class="table table-sm table-sm2 table-bordered table-head tr-colors">
|
||||
<tr>
|
||||
<td width="38%" align="center" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> [<5B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD>ڵ<EFBFBD>]</td>
|
||||
<td width="8%" align="center" ><3E><><EFBFBD><EFBFBD><EFBFBD>ڵ<EFBFBD></td>
|
||||
<td width="8%" align="center" ><3E><><EFBFBD>αٹ<CEB1></td>
|
||||
<td width="6%" align="center" ><3E≯<EFBFBD></td>
|
||||
<td width="7%" align="center" ><3E><>¥</td>
|
||||
<td width="5%" align="center" ><3E><><EFBFBD><EFBFBD></td>
|
||||
<td width="5%" align="center" ><3E>ð<EFBFBD><C3B0><EFBFBD></td>
|
||||
<td width="5%" align="center" ><3E>ð<EFBFBD><C3B0><EFBFBD></td>
|
||||
<td width="4%" align="center" ><3E>ָ<EFBFBD></td>
|
||||
<td width="4%" align="center" ><3E><></td>
|
||||
<td width="5%" align="center" ><3E><><EFBFBD><EFBFBD></td>
|
||||
<td width="5%" align="center" ><3E><><EFBFBD><EFBFBD></td>
|
||||
</tr>
|
||||
<!-- loop start -->
|
||||
<%
|
||||
do until Rs.eof
|
||||
%>
|
||||
<tr>
|
||||
<td align="left">[<%=rs("p_sn")%>] <%=rs("p_subject")%></td>
|
||||
<td align="center" ><%=rs("p_child_sn")%></td>
|
||||
<td align="center">
|
||||
<%
|
||||
if isnull(Rs("p_sebu")) = true then
|
||||
Response.Write " "
|
||||
else
|
||||
Response.Write Rs("p_sebu")
|
||||
end if
|
||||
%>
|
||||
</td>
|
||||
<td align="center"><%=Rs("neakeun_name")%></td>
|
||||
<td align="center" ><%=Rs("date")%></td>
|
||||
<td align="center"><%=Rs("yoil")%></td>
|
||||
<td align="center" >
|
||||
<%
|
||||
sum = 0
|
||||
if isnull(Rs("job_in_time")) = true or Rs("job_in_time") ="" then
|
||||
response.write " "
|
||||
else
|
||||
Response.write formatnumber(Rs("job_in_time") - Rs("job_out_time"),2)
|
||||
sum = cdbl(sum) + cdbl(Rs("job_in_time") - Rs("job_out_time"))
|
||||
end if
|
||||
%>
|
||||
</td>
|
||||
<td align="center" >
|
||||
<%
|
||||
if isnull(Rs("job_out_time")) = true or Rs("job_out_time") ="" then
|
||||
response.write " "
|
||||
else
|
||||
Response.write formatnumber(Rs("job_out_time"),2)
|
||||
sum = cdbl(sum) + cdbl(Rs("job_out_time"))
|
||||
end if
|
||||
%>
|
||||
</td>
|
||||
<td align="center" >
|
||||
<%
|
||||
if isnull(Rs("job_jumal_time")) = true or Rs("job_jumal_time") ="" then
|
||||
response.write " "
|
||||
else
|
||||
Response.write formatnumber(Rs("job_jumal_time"),2)
|
||||
sum = cdbl(sum) + cdbl(Rs("job_jumal_time"))
|
||||
end if
|
||||
%>
|
||||
</td>
|
||||
<td align="center" ><%=formatnumber(sum,2)%></td>
|
||||
<td align="center" ><%=Rs("in_time")%></td>
|
||||
<td align="center" ><%=Rs("out_time")%></td>
|
||||
</tr>
|
||||
<%
|
||||
Rs.movenext
|
||||
loop
|
||||
%>
|
||||
<!-- loop end -->
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<%
|
||||
Rs.close
|
||||
end if
|
||||
%>
|
||||
</table>
|
||||
</form>
|
||||
<%if command <> "excel" then%>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.content -->
|
||||
<!-- REQUIRED SCRIPTS -->
|
||||
<script>
|
||||
function goView(command){
|
||||
var url="";
|
||||
var end_date = document.frm_search_work.txt_end_date.value;
|
||||
var sel_sort = document.frm_search_work.sel_sort.value;
|
||||
|
||||
url ="neakeun_status2_2014.asp?end_date="+end_date+ "&sort_condi=" + sel_sort;
|
||||
url = url + "&command=" + command;
|
||||
|
||||
document.frm_search_work.action = url;
|
||||
document.frm_search_work.submit();
|
||||
}
|
||||
$(function(){
|
||||
$(".selectMonth").datepicker({
|
||||
dateFormat: 'mm-yy',
|
||||
changeMonth: true,
|
||||
changeYear: true,
|
||||
showButtonPanel: true,
|
||||
onClose: function(dateText, inst) {
|
||||
var month = $("#ui-datepicker-div .ui-datepicker-month :selected").val();
|
||||
var year = $("#ui-datepicker-div .ui-datepicker-year :selected").val();
|
||||
$(this).val($.datepicker.formatDate('yy-mm', new Date(year, month, 1)));
|
||||
}
|
||||
});
|
||||
|
||||
$(".selectMonth").focus(function () {
|
||||
$(".ui-datepicker-calendar").hide();
|
||||
$("#ui-datepicker-div").position({
|
||||
my: "center top",
|
||||
at: "center bottom",
|
||||
of: $(this)
|
||||
});
|
||||
});
|
||||
|
||||
$(".selectMonth").on('click', function () {
|
||||
var selDate = new Date($(".selectMonth").val());
|
||||
$("#ui-datepicker-div .ui-datepicker-year option[value='" + selDate.getFullYear() + "']").prop("selected", true);
|
||||
$("#ui-datepicker-div .ui-datepicker-month option[value='" + selDate.getMonth() + "']").prop("selected", true);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
<!-- /.content-wrapper -->
|
||||
<!-- #include virtual = "include/footer.asp" -->
|
||||
<% end if %>
|
||||
Reference in New Issue
Block a user