최초커밋
This commit is contained in:
123
inspection/Ajax_Money.asp
Normal file
123
inspection/Ajax_Money.asp
Normal file
@@ -0,0 +1,123 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<!-- #include virtual = "include/JSON_2.0.4.asp" -->
|
||||
<%
|
||||
Response.CharSet="euc-kr"
|
||||
Response.AddHeader "Pragma","no-cache"
|
||||
Response.AddHeader "cache-control", "no-staff"
|
||||
Response.Expires = -1
|
||||
|
||||
MoneyDate = Request("MoneyDate")
|
||||
|
||||
query = ""
|
||||
query = query &" select *, CASE WHEN p_subject LIKE '%KRC%' THEN 'KRC' WHEN p_subject LIKE '%KRD%' THEN 'KRD' ELSE 'KRI' END as comp from"&VbCrlf
|
||||
query = query &" ("&VbCrlf
|
||||
query = query &" --<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<28>ڵ<EFBFBD> <20><><EFBFBD><EFBFBD>)"&VbCrlf
|
||||
query = query &" select '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' as m_n, TMP.m_name, left(m.M_JUMIN,6) + '-' + right(m.M_JUMIN,7) as M_JUMIN, M.m_mobile, b.b_fullname, isnull(m.m_b_no,'') m_b_no, TMP.p_sn, TPM.p_subject, work_dt, D.d_write_date, s_gubun,"&VbCrlf
|
||||
query = query &" s_pay_unit, s_wan, s_sum, convert(varchar(15),insert_dt,23) as insert_dt, p.p_no, p.p_name, isnull(tmp.attribute05, ' ') as attribute05"&VbCrlf
|
||||
query = query &" from project2.dbo.t_neakeun_pay TMP WITH(NOLOCK) "&VbCrlf
|
||||
query = query &" LEFT OUTER JOIN project2.dbo.neakeun_work NW WITH(NOLOCK) ON TMP.attribute01 = cast(NW.id as varchar)"&VbCrlf
|
||||
query = query &" LEFT OUTER JOIN project2.dbo.T_PROJECT_METHOD TPM WITH(NOLOCK) ON TMP.p_sn = TPM.p_child_sn"&VbCrlf
|
||||
query = query &" LEFT OUTER JOIN project2.dbo.person P WITH(NOLOCK) on TMP.insert_user = p.p_no"&VbCrlf
|
||||
query = query &" LEFT OUTER JOIN project2.dbo.man M WITH(NOLOCK) ON left(tmp.m_jumin,6) = LEFT(m.m_jumin,6) and TMP.m_name = m.m_name"&VbCrlf
|
||||
query = query &" LEFT OUTER JOIN project2.dbo.bank B WITH(NOLOCK) ON m.M_bank = b.b_code"&VbCrlf
|
||||
query = query &" LEFT OUTER JOIN project2.dbo.Document D WITH(NOLOCK) ON isnull(TMP.attribute05,'') = D.d_no"&VbCrlf
|
||||
query = query &" where D.d_order_cnt = '77' "
|
||||
if MoneyDate = "2022-04" Then
|
||||
query = query &" and work_dt between '"&MoneyDate&"-01' and '"&MoneyDate&"-25' "
|
||||
elseif MoneyDate > "2022-04" Then
|
||||
'''''''''''''''''''20230807 <20><><EFBFBD>ؼ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>ϵ<EFBFBD><CFB5>ڵ<EFBFBD><DAB5><EFBFBD> Ư<><C6AF> <20><><EFBFBD><EFBFBD> 2023-07<30><37><EFBFBD><EFBFBD> <20><><EFBFBD>ü<EFBFBD> <20>ֵ<EFBFBD><D6B5><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
'''''''''''''''''''query = query &" and work_dt between cast(DATEADD(m,-1,cast('"&MoneyDate&"-26' as date))as varchar) and '"&MoneyDate&"-25' "
|
||||
query = query &" and ( work_dt between cast(DATEADD(m,-1,cast('"&MoneyDate&"-26' as date))as varchar) and '"&MoneyDate&"-25' "
|
||||
query = query &" or ( '"&MoneyDate&"' = '2023-07' and TMP.attribute05 in ('KRC-2023-t-00507','KRC-2023-t-00506','KRC-2023-t-00505')))"
|
||||
'''''''''''''''''''20241205 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>ξ<EFBFBD> å<><C3A5><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>ϵ<EFBFBD><CFB5>ڵ<EFBFBD><DAB5><EFBFBD> Ư<><C6AF> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(n) 2024-11<31><31><EFBFBD><EFBFBD> <20><><EFBFBD>ü<EFBFBD> <20>ֵ<EFBFBD><D6B5><EFBFBD> <20><><EFBFBD><EFBFBD> but <20>ݿ<EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
' query = query &" or ( '"&MoneyDate&"' = '2023-07' and TMP.attribute05 in ('KRC-2023-t-00507','KRC-2023-t-00506','KRC-2023-t-00505'))"
|
||||
' query = query &" or ( '"&MoneyDate&"' = '2024-11' and TMP.attribute05 in ('KRC-2024-t-01104')))"
|
||||
else
|
||||
query = query & " and LEFT(work_dt, 7) = '" & MoneyDate & "' "
|
||||
end if
|
||||
query = query &" AND NW.in_time + NW.out_time + NW.p_sebu_code <> '000000004'"&VbCrlf
|
||||
query = query &" "&VbCrlf
|
||||
query = query &" union all"&VbCrlf
|
||||
query = query &" --<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<28>ڵ<EFBFBD>)"&VbCrlf
|
||||
query = query &" select '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' as m_n, TMP.m_name, left(m.M_JUMIN,6) + '-' + right(m.M_JUMIN,7) as M_JUMIN, M.m_mobile, b.b_fullname, isnull(m.m_b_no,'') m_b_no, TMP.p_sn, TPM.p_subject, work_dt, D.d_write_date, s_gubun,"&VbCrlf
|
||||
query = query &" s_pay_unit, s_wan, s_sum, convert(varchar(15),insert_dt,23) as insert_dt, p.p_no, p.p_name, isnull(tmp.attribute05, ' ') as attribute05"&VbCrlf
|
||||
query = query &" from project2.dbo.t_neakeun_pay TMP WITH(NOLOCK)"&VbCrlf
|
||||
query = query &" LEFT OUTER JOIN project2.dbo.neakeun_work NW WITH(NOLOCK) ON TMP.attribute01 = cast(NW.id as varchar)"&VbCrlf
|
||||
query = query &" LEFT OUTER JOIN project2.dbo.T_PROJECT_METHOD TPM WITH(NOLOCK) ON TMP.p_sn = TPM.p_child_sn"&VbCrlf
|
||||
query = query &" LEFT OUTER JOIN project2.dbo.person P WITH(NOLOCK) on TMP.insert_user = p.p_no"&VbCrlf
|
||||
query = query &" LEFT OUTER JOIN project2.dbo.man M WITH(NOLOCK) ON left(tmp.m_jumin,6) = LEFT(m.m_jumin,6) and TMP.m_name = m.m_name"&VbCrlf
|
||||
query = query &" LEFT OUTER JOIN project2.dbo.bank B WITH(NOLOCK) ON m.M_bank = b.b_code"&VbCrlf
|
||||
query = query &" LEFT OUTER JOIN project2.dbo.Document D WITH(NOLOCK) ON isnull(TMP.attribute05,'') = D.d_no"&VbCrlf
|
||||
query = query &" where D.d_order_cnt = '77'"&VbCrlf
|
||||
if MoneyDate = "2022-04" Then
|
||||
query = query &" and D.d_write_date between '"&MoneyDate&"-16' and cast(DATEADD(m,1,cast('"&MoneyDate&"-05' as date)) as varchar)"&VbCrlf
|
||||
elseif MoneyDate > "2022-04" Then
|
||||
query = query &" and D.d_write_date between '"&MoneyDate&"-06' and cast(DATEADD(m,1,cast('"&MoneyDate&"-05' as date)) as varchar)"&VbCrlf
|
||||
else
|
||||
query = query &" and D.d_write_date between '"&MoneyDate&"-16' and cast(DATEADD(m,1,cast('"&MoneyDate&"-15' as date)) as varchar)"&VbCrlf
|
||||
end if
|
||||
query = query &" AND NW.in_time + NW.out_time + NW.p_sebu_code = '000000004'"&VbCrlf
|
||||
query = query &" "&VbCrlf
|
||||
query = query &" union all"&VbCrlf
|
||||
query = query &" --<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(CATI)"&VbCrlf
|
||||
query = query &" select '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' as m_n, TMP.m_name, left(m.M_JUMIN,6) + '-' + right(m.M_JUMIN,7) as M_JUMIN, M.m_mobile, b.b_fullname, isnull(m.m_b_no,'') m_b_no, TMP.p_sn, TPM.p_subject, TMP.work_dt, D.d_write_date, s_gubun,"&VbCrlf
|
||||
query = query &" s_pay_unit, s_wan + isnull(add_count, 0) as s_wan, s_sum, convert(varchar(15),insert_dt,23) as insert_dt, p.p_no, p.p_name, isnull(tmp.attribute05, ' ') as attribute05"&VbCrlf
|
||||
query = query &" from project2.dbo.t_myun_pay TMP WITH(NOLOCK)"&VbCrlf
|
||||
query = query &" LEFT OUTER JOIN project2.dbo.T_PROJECT_METHOD TPM WITH(NOLOCK) ON TMP.p_sn = TPM.p_child_sn"&VbCrlf
|
||||
query = query &" LEFT OUTER JOIN project2.dbo.person P WITH(NOLOCK) on TMP.insert_user = p.p_no"&VbCrlf
|
||||
query = query &" LEFT OUTER JOIN project2.dbo.man M WITH(NOLOCK) ON left(tmp.m_jumin,6) = LEFT(m.m_jumin,6) and TMP.m_name = m.m_name"&VbCrlf
|
||||
query = query &" LEFT OUTER JOIN project2.dbo.bank B WITH(NOLOCK) ON m.M_bank = b.b_code"&VbCrlf
|
||||
query = query &" LEFT OUTER JOIN project2.dbo.Document D WITH(NOLOCK) ON isnull(TMP.attribute05,'') = D.d_no"&VbCrlf
|
||||
query = query &" where TMP.confirm_yn = 'Y' and s_sum <> '0' and D.d_order_cnt = '77'"&VbCrlf
|
||||
if MoneyDate = "2022-04" Then
|
||||
query = query &" and D.d_write_date between '"&MoneyDate&"-16' and cast(DATEADD(m,1,cast('"&MoneyDate&"-05' as date)) as varchar)"&VbCrlf
|
||||
elseif MoneyDate > "2022-04" Then
|
||||
query = query &" and D.d_write_date between '"&MoneyDate&"-06' and cast(DATEADD(m,1,cast('"&MoneyDate&"-05' as date)) as varchar)"&VbCrlf
|
||||
else
|
||||
query = query &" and D.d_write_date between '"&MoneyDate&"-16' and cast(DATEADD(m,1,cast('"&MoneyDate&"-15' as date)) as varchar)"&VbCrlf
|
||||
end if
|
||||
query = query &" ) T"&VbCrlf
|
||||
query = query &" order by p_sn, s_gubun"&VbCrlf
|
||||
'Response.Write query
|
||||
Rs.Open query, adoConn, 1
|
||||
set json = jsObject()
|
||||
Redim data(Rs.recordcount-1)
|
||||
iCnt = 0
|
||||
|
||||
if not Rs.eof then
|
||||
while not Rs.eof
|
||||
set MoneyList = jsObject()
|
||||
MoneyList("Company") = Rs("comp")
|
||||
MoneyList("P_Sn") = Rs("p_sn")
|
||||
MoneyList("P_Subject") = Rs("p_subject")
|
||||
MoneyList("P_Name") = Rs("m_name")
|
||||
MoneyList("M_Jumin") = Rs("M_JUMIN")
|
||||
MoneyList("M_Work") = Rs("s_gubun")
|
||||
MoneyList("Danga") = Rs("s_pay_unit")
|
||||
MoneyList("Cnt") = Rs("s_wan")
|
||||
MoneyList("Allowance") = Rs("s_sum")
|
||||
MoneyList("WorkDate") = Rs("work_dt")
|
||||
MoneyList("Doc_Date") = Rs("d_write_date")
|
||||
MoneyList("M_Phone") = Rs("m_mobile")
|
||||
MoneyList("M_Bank") = Rs("b_fullname")
|
||||
MoneyList("M_Acount") = CStr(Rs("m_b_no"))
|
||||
MoneyList("P_No") = Rs("p_no")
|
||||
MoneyList("P_SV") = Rs("p_name")
|
||||
MoneyList("ConfirmDate") = Rs("insert_dt")
|
||||
MoneyList("D_No") = Rs("attribute05")
|
||||
MoneyList("M_Gubun") = Rs("m_n")
|
||||
set data(iCnt) = MoneyList
|
||||
iCnt = iCnt + 1
|
||||
Rs.movenext
|
||||
wend
|
||||
json("recordsTotal") = Rs.recordcount
|
||||
json("recordsFiltered") = Rs.recordcount
|
||||
json("data") = data
|
||||
Else
|
||||
json("data") = ""
|
||||
End If
|
||||
|
||||
Rs.close
|
||||
|
||||
response.write toJSON(json)
|
||||
%>
|
||||
305
inspection/MoneyList.asp
Normal file
305
inspection/MoneyList.asp
Normal file
@@ -0,0 +1,305 @@
|
||||
<!-- #include virtual = "include/header.asp" -->
|
||||
<!-- #include virtual = "include/left.asp" -->
|
||||
<!-- Content Wrapper. Contains page content -->
|
||||
<div class="content-wrapper">
|
||||
<style>
|
||||
button.ui-datepicker-current {
|
||||
display: none;
|
||||
}
|
||||
.txt{
|
||||
font-size: 11px;
|
||||
letter-spacing: 0px;
|
||||
}
|
||||
th.t_label{
|
||||
vertical-align:middle;
|
||||
text-align:center;
|
||||
}
|
||||
.ui-datepicker-trigger{
|
||||
cursor: pointer;
|
||||
}
|
||||
.DTFC_Cloned tbody{
|
||||
cursor:pointer
|
||||
}
|
||||
.dataTables_wrapper .dataTables_filter input{
|
||||
background:#fff;
|
||||
}
|
||||
table.dataTable tbody th, table.dataTable tbody td{
|
||||
padding:2px;
|
||||
}
|
||||
.dataTables_scrollBody > table.dataTable{
|
||||
margin-left:0;
|
||||
}
|
||||
.DTFC_LeftBodyLiner > table.dataTable{
|
||||
width: calc(100% - 2px) !important;
|
||||
}
|
||||
.DTFC_ScrollWrapper{
|
||||
overflow-x: auto;
|
||||
height:536px !important;
|
||||
}
|
||||
.MoneyList_filterSelect{
|
||||
width:220px !important;
|
||||
display:inline-block;
|
||||
}
|
||||
</style>
|
||||
<!-- Content Header (Page header) -->
|
||||
<div class="content-header">
|
||||
<h1><3E><><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 class='table table-sm table-sm2 table-bordered table-head tr-colors' id="MoneyList" style="font-size:11px;">
|
||||
<thead class="ui-widget-header">
|
||||
<tr>
|
||||
<th class="t_label select-filter">ȸ<br><3E><></th>
|
||||
<th class="t_label select-filter"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<br><3E>ڵ<EFBFBD></th>
|
||||
<th class="t_label select-filter"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<br><3E><></th>
|
||||
<th class="t_label select-filter"><3E><><br><3E><></th>
|
||||
<th class="t_label select-filter"><3E>ֹ<EFBFBD><br><3E><>ȣ</th>
|
||||
<th class="t_label select-filter"><3E><><br><3E><></th>
|
||||
<th class="t_label select-filter"><3E><><br><3E><></th>
|
||||
<th class="t_label select-filter"><3E><><br><3E><></th>
|
||||
<th class="t_label select-filter"><3E><><br><3E>ݾ<EFBFBD></th>
|
||||
<th class="t_label select-filter"><3E>ٹ<EFBFBD><br><3E><>¥</th>
|
||||
<th class="t_label select-filter"><3E><><EFBFBD><EFBFBD><br><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></th>
|
||||
<th class="t_label select-filter"><3E><>ȭ<br><3E><>ȣ</th>
|
||||
<th class="t_label select-filter"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></th>
|
||||
<th class="t_label select-filter"><3E><><EFBFBD><EFBFBD><br><3E><>ȣ</th>
|
||||
<th class="t_label select-filter"><3E><><EFBFBD><EFBFBD>No</th>
|
||||
<th class="t_label select-filter"><3E><><EFBFBD><EFBFBD><br>S/V</th>
|
||||
<th class="t_label select-filter"><3E>Է<EFBFBD><br><3E><>¥</th>
|
||||
<th class="t_label select-filter"><3E><><EFBFBD><EFBFBD><br><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ</th>
|
||||
<th class="t_label select-filter"><3E><><br><3E><></th>
|
||||
</tr>
|
||||
</thead>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.content -->
|
||||
<!-- REQUIRED SCRIPTS -->
|
||||
<script>
|
||||
var lang_kor = {
|
||||
"decimal" : "",
|
||||
"emptyTable" : "<22>˻<EFBFBD><CBBB><EFBFBD> <20><><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD>.(<28>ٹ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ͽ<EFBFBD> <20>ֽʽÿ<CABD>.)",
|
||||
"info" : "_START_ - _END_ (<28><> _TOTAL_ <20><>)",
|
||||
"infoEmpty" : "0<><30>",
|
||||
"infoFiltered" : "(<28><>ü _MAX_ <20><> <20><> <20>˻<EFBFBD><CBBB><EFBFBD><EFBFBD><EFBFBD>)",
|
||||
"infoPostFix" : "",
|
||||
"thousands" : ",",
|
||||
"lengthMenu" : "_MENU_ <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>",
|
||||
"loadingRecords" : " ",
|
||||
"processing" : "Loading...",
|
||||
"search" : "<22>˻<EFBFBD> : ",
|
||||
"zeroRecords" : "<22>˻<EFBFBD><CBBB><EFBFBD> <20><><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD>.(<28>ٹ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ͽ<EFBFBD> <20>ֽʽÿ<CABD>.)",
|
||||
"paginate" : {
|
||||
"first" : "ù <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||
"last" : "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||
"next" : "<22><><EFBFBD><EFBFBD>",
|
||||
"previous" : "<22><><EFBFBD><EFBFBD>"
|
||||
},
|
||||
"aria" : {
|
||||
"sortAscending" : " : <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>",
|
||||
"sortDescending" : " : <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>"
|
||||
},
|
||||
"buttons":{
|
||||
"colvisRestore": "<22>ʱ<EFBFBD>ȭ"
|
||||
}
|
||||
};
|
||||
|
||||
var table = $('#MoneyList').DataTable({
|
||||
"ajax":{
|
||||
"type": "POST",
|
||||
"url": "Ajax_Money.asp",
|
||||
"dataType": "JSON",
|
||||
"async": "true",
|
||||
"data":{
|
||||
MoneyDate: function(){ if($("#MoneyDate").val() !=undefined){return $("#MoneyDate").val()}else{ return (new Date()).format("yyyy-MM") }}
|
||||
}
|
||||
},
|
||||
"columns":[
|
||||
{"data": "Company", "class":"txt dt-body-center details-control",},//0
|
||||
{"data": "P_Sn", "class":"txt dt-body-center",},//1
|
||||
{"data": "P_Subject", "class":"txt dt-body-center",},//2
|
||||
{"data": "P_Name", "class":"txt dt-body-center",},//3
|
||||
{"data": "M_Jumin", "class":"txt dt-body-center",},//4
|
||||
{"data": "M_Work", "class":"txt dt-body-center",},//5
|
||||
{"data": "Danga", "class":"txt dt-body-center",},//6
|
||||
{"data": "Cnt", "class":"txt dt-body-center",},//7
|
||||
{"data": "Allowance", "class":"txt dt-body-center",},//8
|
||||
{"data": "WorkDate", "class":"txt dt-body-center",},//9
|
||||
{"data": "Doc_Date", "class":"txt dt-body-center",},//10
|
||||
{"data": "M_Phone", "class":"txt dt-body-center",},//11
|
||||
{"data": "M_Bank", "class":"txt dt-body-center",},//12
|
||||
{"data": "M_Acount", "class":"txt dt-body-center",},//13
|
||||
{"data": "P_No", "class":"txt dt-body-center",},//14
|
||||
{"data": "P_SV", "class":"txt dt-body-center",},//15
|
||||
{"data": "ConfirmDate", "class":"txt dt-body-center",},//16
|
||||
{"data": "D_No", "class":"txt dt-body-center",},//17
|
||||
{"data": "M_Gubun", "class":"txt dt-body-center",},//18
|
||||
],
|
||||
"columnDefs":[
|
||||
{"width":"12%", "targets":2},
|
||||
{"searchable":false, "visible":false, "targets":14},
|
||||
],
|
||||
"dom":'lBfrtip',
|
||||
"scrollY":"450px",
|
||||
'processing': true,
|
||||
"fixedHeader": true,
|
||||
"language":lang_kor,
|
||||
"paging":false,
|
||||
"order": [[ 1, "asc" ]],
|
||||
"cache":true,
|
||||
"autoWidth":false,
|
||||
"buttons": [
|
||||
{
|
||||
extend: 'copy',
|
||||
text: 'List Copy',
|
||||
},
|
||||
{
|
||||
extend: 'excel',
|
||||
text: 'Excel Down',
|
||||
title: '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>(Excel)'
|
||||
},
|
||||
{
|
||||
extend: 'csv',
|
||||
text: 'CSV',
|
||||
title: '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)',
|
||||
exportOptions: {
|
||||
modifier: {
|
||||
search: 'none'
|
||||
}
|
||||
}
|
||||
},
|
||||
],
|
||||
"filterDropDown": {
|
||||
columns: [
|
||||
{ idx: 9 },
|
||||
{ idx: 3 },
|
||||
{ idx: 1 },
|
||||
{ idx: 2 },
|
||||
{ idx: 15}
|
||||
],
|
||||
}
|
||||
});
|
||||
|
||||
function TableFilter(json){
|
||||
$("#MoneyList_filterSelect9").empty();
|
||||
$("#MoneyList_filterSelect3").empty();
|
||||
$("#MoneyList_filterSelect1").empty();
|
||||
$("#MoneyList_filterSelect2").empty();
|
||||
$("#MoneyList_filterSelect15").empty();
|
||||
|
||||
var arr=[];
|
||||
var arr2=[];
|
||||
for(var i=0; i<json.data.length; i++){
|
||||
if(arr.indexOf(json.data[i].WorkDate) == -1){
|
||||
arr.push(json.data[i].WorkDate);
|
||||
}
|
||||
}
|
||||
arr.sort();
|
||||
$("#MoneyList_filterSelect9").append("<option value=''><3E>ٹ<EFBFBD><D9B9><EFBFBD>¥</option>");
|
||||
for(var i=0; i<arr.length; i++){
|
||||
$("#MoneyList_filterSelect9").append("<option value='"+arr[i]+"'>"+arr[i]+"</option>");
|
||||
}
|
||||
arr.length=0;
|
||||
|
||||
for(var i=0; i<json.data.length; i++){
|
||||
if(arr.indexOf(json.data[i].P_Name) == -1){
|
||||
arr.push(json.data[i].P_Name);
|
||||
}
|
||||
}
|
||||
arr.sort();
|
||||
$("#MoneyList_filterSelect3").append("<option value=''><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></option>");
|
||||
for(var i=0; i<arr.length; i++){
|
||||
$("#MoneyList_filterSelect3").append("<option value='"+arr[i]+"'>"+arr[i]+"</option>");
|
||||
}
|
||||
arr.length=0;
|
||||
|
||||
for(var i=0; i<json.data.length; i++){
|
||||
if(arr.indexOf(json.data[i].P_Sn) == -1){
|
||||
arr.push(json.data[i].P_Sn);
|
||||
}
|
||||
}
|
||||
arr.sort();
|
||||
$("#MoneyList_filterSelect1").append("<option value=''><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD>ڵ<EFBFBD></option>");
|
||||
for(var i=0; i<arr.length; i++){
|
||||
$("#MoneyList_filterSelect1").append("<option value='"+arr[i]+"'>"+arr[i]+"</option>");
|
||||
}
|
||||
arr.length=0;
|
||||
|
||||
|
||||
for(var i=0; i<json.data.length; i++){
|
||||
if(arr.indexOf(json.data[i].P_Subject) == -1){
|
||||
arr.push(json.data[i].P_Subject);
|
||||
}
|
||||
}
|
||||
arr.sort();
|
||||
$("#MoneyList_filterSelect2").append("<option value=''><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE></option>");
|
||||
for(var i=0; i<arr.length; i++){
|
||||
$("#MoneyList_filterSelect2").append("<option value='"+arr[i]+"'>"+arr[i]+"</option>");
|
||||
}
|
||||
arr.length=0;
|
||||
for(var i=0; i<json.data.length; i++){
|
||||
if(arr.indexOf(json.data[i].P_SV) == -1){
|
||||
arr.push(json.data[i].P_SV);
|
||||
}
|
||||
}
|
||||
arr.sort();
|
||||
$("#MoneyList_filterSelect15").append("<option value=''><3E><><EFBFBD><EFBFBD>S/V</option>");
|
||||
for(var i=0; i<arr.length; i++){
|
||||
$("#MoneyList_filterSelect15").append("<option value='"+arr[i]+"'>"+arr[i]+"</option>");
|
||||
}
|
||||
arr.length=0;
|
||||
}
|
||||
|
||||
$(function() {
|
||||
var hh="";
|
||||
hh += "<div style='display: inline-block;float: right;'>";
|
||||
hh += " <label><3E>ٹ<EFBFBD><D9B9><EFBFBD>: </label>";
|
||||
hh += " <input type='text' style='cursor:pointer;' class='date' name='MoneyDate' id='MoneyDate' value='"+(new Date()).format("yyyy-MM")+"' readonly='readonly' />";
|
||||
hh += "</div>";
|
||||
|
||||
$("#MoneyList_filterWrapper").append(hh);
|
||||
|
||||
$('#MoneyDate').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)));
|
||||
|
||||
table.ajax.reload( function ( json ){
|
||||
TableFilter(json);
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
$("#MoneyDate").focus(function () {
|
||||
$(".ui-datepicker-calendar").hide();
|
||||
$("#ui-datepicker-div").position({
|
||||
my: "center top",
|
||||
at: "center bottom",
|
||||
of: $(this)
|
||||
});
|
||||
});
|
||||
|
||||
$("#MoneyDate").on('click', function () {
|
||||
var selDate = new Date($("#MoneyDate").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" -->
|
||||
61
inspection/capi_device_log.asp
Normal file
61
inspection/capi_device_log.asp
Normal file
@@ -0,0 +1,61 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<%
|
||||
device_id = request("device_id")
|
||||
|
||||
Response.CharSet = "EUC-KR" '<27>ѱ<EFBFBD>
|
||||
Response.AddHeader "Pragma","no-cache"
|
||||
Response.AddHeader "cache-control", "no-staff"
|
||||
Response.Expires = -1
|
||||
|
||||
query = ""
|
||||
query = query & " SELECT ROW_NUMBER() OVER(ORDER BY D.ID) AS NO, D.ID, DU.ID as UID, D.T_DEVICE_MODEL, D.T_NO, "
|
||||
query = query & " ISNULL(DU.P_CHILD_SN, '') AS P_CHILD_SN, "
|
||||
query = query & " ISNULL(VPM.P_SUBJECT, '') AS P_SUBJECT, "
|
||||
query = query & " ISNULL(DU.MAN_ID, '') AS MAN_ID,"
|
||||
query = query & " ISNULL(M.M_NAME, '') AS M_NAME,"
|
||||
query = query & " ISNULL(DU.USE_ST_DT, '') AS USE_ST_DT,"
|
||||
query = query & " ISNULL(DU.USE_ED_DT, '') AS USE_ED_DT,"
|
||||
query = query & " ISNULL(DU.D_NO, '') AS D_NO,"
|
||||
query = query & " ISNULL(DU.INSERT_USER, '') AS INSERT_USER,"
|
||||
query = query & " ISNULL(P.p_name, '') AS INSERT_USER_NAME,"
|
||||
query = query & " INSERT_DT, MODIFY_DT "
|
||||
query = query & " FROM project2.dbo.T_DEVICE D"
|
||||
query = query & " LEFT JOIN project2.dbo.T_DEVICE_USE DU ON D.ID = DU.DEVICE_ID"
|
||||
query = query & " LEFT JOIN project2.dbo.V_PROJECT_METHOD VPM ON DU.P_CHILD_SN = VPM.p_child_sn"
|
||||
query = query & " LEFT JOIN project2.dbo.man M ON DU.MAN_ID = M.new_id"
|
||||
query = query & " LEFT JOIN project2.dbo.V_Person P ON DU.INSERT_USER = P.p_no "
|
||||
query = query & " WHERE D.ID = " & device_id & " AND DU.USE_YN = 'N' "
|
||||
query = query & " ORDER BY MODIFY_DT DESC "
|
||||
|
||||
response.write "<table class='table table-sm table-sm2 table-bordered table-head tr-colors'>"
|
||||
response.write "<tr>"
|
||||
response.write " <td class='tit7' style='text-align:center; width:40%; font-weight:bold;'><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ</td>"
|
||||
response.write " <td class='tit7' style='text-align:center; width:14%; font-weight:bold;'><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>"
|
||||
response.write " <td class='tit7' style='text-align:center; width:18%; font-weight:bold;'><3E>뿩<EFBFBD>Ⱓ</td>"
|
||||
response.write " <td class='tit7' style='text-align:center; width:8%; font-weight:bold;'><3E>뿩<EFBFBD><EBBFA9>û<EFBFBD><C3BB></td>"
|
||||
response.write " <td class='tit7' style='text-align:center; width:15%; font-weight:bold;'><3E><><EFBFBD><EFBFBD><EFBFBD>Ͻ<EFBFBD></td>"
|
||||
response.write " <td class='tit7' style='text-align:center; width:5%; font-weight:bold;'> </td>"
|
||||
response.write "</tr>"
|
||||
Rs.Open query, adoConn, 1
|
||||
do while not Rs.eof
|
||||
response.write "<tr>"
|
||||
response.write " <td class='tit7' align='left'>[" & Rs("P_CHILD_SN") & "] " & Rs("P_SUBJECT") & "</td>"
|
||||
response.write " <td class='tit7' align='center'>"
|
||||
if Rs("MAN_ID") <> "" Then
|
||||
response.write "[" & Rs("MAN_ID") & "] " & Rs("M_NAME")
|
||||
End if
|
||||
response.write "</td>"
|
||||
response.write " <td class='tit7' align='center'>" & Rs("USE_ST_DT") & " ~ " & Rs("USE_ED_DT") & "</td>"
|
||||
response.write " <td class='tit7' align='center'>" & Rs("INSERT_USER_NAME") & "</td>"
|
||||
response.write " <td class='tit7' align='center'>" & Rs("MODIFY_DT") & "</td>"
|
||||
response.write " <td class='tit7' align='center'>"
|
||||
if Rs("INSERT_USER") = Cstr(Session("User_Number")) Then
|
||||
response.write "<input type='button' value='<27><><EFBFBD><EFBFBD>' class='del_log_btn' data-use_id='" & Rs("UID") & "' />"
|
||||
End if
|
||||
response.write "</td>"
|
||||
response.write "</tr>"
|
||||
Rs.movenext
|
||||
loop
|
||||
Rs.close
|
||||
response.write "</table>"
|
||||
%>
|
||||
26
inspection/capi_device_log_del.asp
Normal file
26
inspection/capi_device_log_del.asp
Normal file
@@ -0,0 +1,26 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<%
|
||||
set dbin = server.CreateObject("ADODB.CONNECTION")
|
||||
|
||||
use_id = request("use_id")
|
||||
|
||||
Response.CharSet = "EUC-KR" '<27>ѱ<EFBFBD>
|
||||
Response.AddHeader "Pragma","no-cache"
|
||||
Response.AddHeader "cache-control", "no-staff"
|
||||
Response.Expires = -1
|
||||
|
||||
query = ""
|
||||
query = query & " UPDATE project2.dbo.T_DEVICE_USE "
|
||||
query = query & " SET USE_YN = '' "
|
||||
query = query & " WHERE ID = " & use_id & " AND USE_YN = 'N' "
|
||||
|
||||
dbin.Open adoConn
|
||||
dbin.Execute query, i
|
||||
dbin.Close
|
||||
|
||||
if i > 0 Then
|
||||
response.Write "1"
|
||||
else
|
||||
response.Write "0"
|
||||
end if
|
||||
%>
|
||||
28
inspection/capi_device_man_reg.asp
Normal file
28
inspection/capi_device_man_reg.asp
Normal file
@@ -0,0 +1,28 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<%
|
||||
|
||||
set dbin = server.CreateObject("ADODB.CONNECTION")
|
||||
|
||||
man_id = request("man_id")
|
||||
device_id = request("device_id")
|
||||
|
||||
Response.CharSet = "EUC-KR" '<27>ѱ<EFBFBD>
|
||||
Response.AddHeader "Pragma","no-cache"
|
||||
Response.AddHeader "cache-control", "no-staff"
|
||||
Response.Expires = -1
|
||||
|
||||
query = ""
|
||||
query = query & " UPDATE project2.dbo.T_DEVICE_USE "
|
||||
query = query & " SET MAN_ID = '" & man_id & "' "
|
||||
query = query & " WHERE DEVICE_ID = " & device_id & " AND USE_YN = 'Y' "
|
||||
|
||||
dbin.Open adoConn
|
||||
dbin.Execute query, i
|
||||
dbin.Close
|
||||
|
||||
if i > 0 Then
|
||||
response.Write "1"
|
||||
else
|
||||
response.Write "0"
|
||||
end if
|
||||
%>
|
||||
61
inspection/capi_device_mod.asp
Normal file
61
inspection/capi_device_mod.asp
Normal file
@@ -0,0 +1,61 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<%
|
||||
set dbin = server.CreateObject("ADODB.CONNECTION")
|
||||
|
||||
p_child_sn = request("p_child_sn")
|
||||
use_ed_dt = request("use_ed_dt")
|
||||
man_id = request("man_id")
|
||||
device_id = request("device_id")
|
||||
|
||||
if man_id = "" then
|
||||
man_value = "MAN_ID"
|
||||
else
|
||||
man_value = "'" & man_id & "'"
|
||||
end if
|
||||
|
||||
Response.CharSet = "EUC-KR" '<27>ѱ<EFBFBD>
|
||||
Response.AddHeader "Pragma","no-cache"
|
||||
Response.AddHeader "cache-control", "no-staff"
|
||||
Response.Expires = -1
|
||||
|
||||
query = ""
|
||||
query = query & " SELECT ID "
|
||||
query = query & " FROM project2.dbo.T_DEVICE_USE "
|
||||
query = query & " WHERE DEVICE_ID = " & device_id & " AND USE_YN = 'Y' "
|
||||
|
||||
Rs.Open Query, adoConn, 1
|
||||
if Rs.recordCount > 0 then
|
||||
row_id = Rs("ID")
|
||||
else
|
||||
row_id = "0"
|
||||
end if
|
||||
Rs.close
|
||||
|
||||
if cint(row_id) > 0 then
|
||||
query = ""
|
||||
query = query & " UPDATE project2.dbo.T_DEVICE_USE "
|
||||
query = query & " SET USE_YN = 'N', MODIFY_DT = getdate() "
|
||||
query = query & " WHERE ID = " & row_id & " "
|
||||
|
||||
dbin.Open adoConn
|
||||
dbin.Execute query, i
|
||||
dbin.Close
|
||||
|
||||
if i > 0 Then
|
||||
query = ""
|
||||
query = query & " INSERT INTO project2.dbo.T_DEVICE_USE "
|
||||
query = query & " (DEVICE_ID, P_CHILD_SN, USE_ST_DT, USE_ED_DT, MAN_ID, USE_YN, D_NO, MODIFY_DT, INSERT_DT, INSERT_USER) "
|
||||
query = query & " SELECT " & device_id & ", '" & p_child_sn & "', USE_ST_DT, '" & use_ed_dt & "', " & man_value & ", 'Y', D_NO, getdate(), getdate(), INSERT_USER "
|
||||
query = query & " FROM project2.dbo.T_DEVICE_USE "
|
||||
query = query & " WHERE ID = " & row_id & " "
|
||||
|
||||
dbin.Open adoConn
|
||||
dbin.Execute query
|
||||
dbin.Close
|
||||
|
||||
response.Write "1"
|
||||
else
|
||||
response.Write "0"
|
||||
end if
|
||||
end if
|
||||
%>
|
||||
69
inspection/capi_device_reg.asp
Normal file
69
inspection/capi_device_reg.asp
Normal file
@@ -0,0 +1,69 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<%
|
||||
|
||||
set dbin = server.CreateObject("ADODB.CONNECTION")
|
||||
|
||||
p_child_sn = URLDecode(request("p_child_sn"))
|
||||
use_st_dt = request("use_st_dt")
|
||||
use_ed_dt = request("use_ed_dt")
|
||||
use_device_cnt = request("use_device_cnt")
|
||||
use_device_id = request("use_device_id")
|
||||
|
||||
Response.CharSet = "EUC-KR" '<27>ѱ<EFBFBD>
|
||||
Response.AddHeader "Pragma","no-cache"
|
||||
Response.AddHeader "cache-control", "no-staff"
|
||||
Response.Expires = -1
|
||||
|
||||
query = ""
|
||||
query = query & " SELECT ID "
|
||||
query = query & " FROM project2.dbo.V_DEVICE_STATUS "
|
||||
query = query & " WHERE P_CHILD_SN = '' "
|
||||
query = query & " AND ID IN (" & use_device_id & ")"
|
||||
|
||||
Rs.Open Query, adoConn, 1
|
||||
|
||||
if Rs.recordcount < cint(use_device_cnt) Then
|
||||
Rs.Close
|
||||
response.Write "2"
|
||||
response.End
|
||||
End if
|
||||
insertCnt = 0
|
||||
|
||||
now_year = Right(left(now(),4),2)
|
||||
now_month = mid(now(),6,2)
|
||||
now_day = mid(now(),9,2)
|
||||
now_hour = right("0" & hour(now), 2)
|
||||
now_minute = right("0" & minute(now), 2)
|
||||
now_second = right("0" & second(now), 2)
|
||||
now_micro = right("000" & (timer * 1000) Mod 1000, 3)
|
||||
|
||||
d_no = "G" & now_year & now_month & now_day & now_hour & now_minute & now_second & now_micro ' <20><EFBFBD>ID
|
||||
|
||||
for k=1 To Rs.recordcount
|
||||
query = ""
|
||||
query = query & " INSERT INTO project2.dbo.T_DEVICE_USE "
|
||||
query = query & " (DEVICE_ID, P_CHILD_SN, USE_ST_DT, USE_ED_DT, D_NO, USE_YN, MODIFY_DT, INSERT_DT, INSERT_USER) VALUES "
|
||||
query = query & " (" & Rs("ID") & ", '" & p_child_sn & "', '" & use_st_dt & "', '" & use_ed_dt & "', '" & d_no & "', 'Y', getdate(), getdate(), '" & session("User_number") & "'); "
|
||||
|
||||
dbin.Open adoConn
|
||||
dbin.Execute query
|
||||
dbin.Close
|
||||
insertCnt = insertCnt + 1
|
||||
|
||||
Rs.moveNext
|
||||
Next
|
||||
Rs.close
|
||||
if insertCnt = cint(use_device_cnt) Then
|
||||
response.Write "1"
|
||||
else
|
||||
response.Write "0"
|
||||
end if
|
||||
|
||||
function URLDecode(str)
|
||||
Dim objScript
|
||||
Set objScript = Server.CreateObject("ScriptControl")
|
||||
objScript.Language = "JavaScript"
|
||||
URLDecode = objScript.Eval("decodeURIComponent(""" & str & """.replace(/\+/g,"" ""))")
|
||||
Set objScript = Nothing
|
||||
end function
|
||||
%>
|
||||
27
inspection/capi_device_return.asp
Normal file
27
inspection/capi_device_return.asp
Normal file
@@ -0,0 +1,27 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<%
|
||||
|
||||
set dbin = server.CreateObject("ADODB.CONNECTION")
|
||||
|
||||
device_id = request("device_id")
|
||||
|
||||
Response.CharSet = "EUC-KR" '<27>ѱ<EFBFBD>
|
||||
Response.AddHeader "Pragma","no-cache"
|
||||
Response.AddHeader "cache-control", "no-staff"
|
||||
Response.Expires = -1
|
||||
|
||||
query = ""
|
||||
query = query & " UPDATE project2.dbo.T_DEVICE_USE "
|
||||
query = query & " SET USE_YN = 'N', MODIFY_DT = getdate() "
|
||||
query = query & " WHERE DEVICE_ID IN (" & device_id & ") AND USE_YN = 'Y' "
|
||||
|
||||
dbin.Open adoConn
|
||||
dbin.Execute query, i
|
||||
dbin.Close
|
||||
|
||||
if i > 0 Then
|
||||
response.Write "1"
|
||||
else
|
||||
response.Write "0"
|
||||
end if
|
||||
%>
|
||||
895
inspection/capi_device_status.asp
Normal file
895
inspection/capi_device_status.asp
Normal file
@@ -0,0 +1,895 @@
|
||||
<!-- #include virtual = "include/header.asp" -->
|
||||
<!-- #include virtual = "include/left.asp" -->
|
||||
<%
|
||||
Dim query, p_no
|
||||
p_no = session("User_Number")
|
||||
%>
|
||||
<!-- Content Wrapper. Contains page content -->
|
||||
<div class="content-wrapper">
|
||||
<style>
|
||||
#searchDiv{
|
||||
margin-bottom:10px;
|
||||
}
|
||||
#searchDiv > div:nth-child(1){
|
||||
display: inline-block;
|
||||
}
|
||||
#searchDiv > div:nth-child(1) > span{
|
||||
font-weight: bold;
|
||||
margin-right: 35px;
|
||||
}
|
||||
#searchDiv > div:nth-child(1) > span > select{
|
||||
margin-left: 5px;
|
||||
width: 120px;
|
||||
}
|
||||
#searchDiv > div:nth-child(2){
|
||||
display: inline-block;
|
||||
}
|
||||
#searchDiv > div:nth-child(2) > span{
|
||||
color:#00f;
|
||||
font-weight: bold;
|
||||
font-family: 'malgun gothic';
|
||||
font-size:13px;
|
||||
letter-spacing:0px;
|
||||
}
|
||||
#searchDiv > div:nth-child(3){
|
||||
display: inline-block;
|
||||
float: right;
|
||||
}
|
||||
input[type=button]{
|
||||
cursor:pointer;
|
||||
font-family: 'malgun gothic';
|
||||
}
|
||||
.all_ret_device_btn{
|
||||
font-weight: bold;
|
||||
font-size: 12px;
|
||||
margin-right:10px;
|
||||
}
|
||||
.reg_device_btn{
|
||||
font-weight: bold;
|
||||
font-size: 12px;
|
||||
}
|
||||
.ret_device_btn, .mod_device_btn, .del_log_btn {
|
||||
|
||||
}
|
||||
#device_status{
|
||||
width:100%;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
#device_status > tbody > tr > td{
|
||||
text-align:center;
|
||||
padding:3px;
|
||||
line-height: 20px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
#device_status > tbody > tr:first-child > td{
|
||||
text-align:center;
|
||||
font-weight:bold;
|
||||
padding:4px;
|
||||
}
|
||||
#device_status > tbody > tr:nth-child(n+2) > td:nth-child(5){
|
||||
text-align:left;
|
||||
}
|
||||
#device_status > tbody > tr:nth-child(n+2) > td:nth-child(5) span{
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
width: 360px;
|
||||
display: inline-block;
|
||||
}
|
||||
#device_status > tbody > tr:nth-child(n+2) > td:nth-child(6) span{
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
width: 120px;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
#deviceRegDialog table tr td {
|
||||
padding:4px;
|
||||
}
|
||||
#deviceRegDialog table tr td:first-child {
|
||||
text-align:center;
|
||||
}
|
||||
|
||||
#deviceModDialog table tr td {
|
||||
padding:4px;
|
||||
}
|
||||
|
||||
#deviceModDialog table tr td:first-child {
|
||||
text-align:center;
|
||||
}
|
||||
|
||||
#regPrjDialog table tr td {
|
||||
padding:2px;
|
||||
text-align:center;
|
||||
}
|
||||
#regPrjDialog table tr:nth-child(n+2) td:nth-child(2) {
|
||||
text-align:left;
|
||||
}
|
||||
#regPrjDialog table tr:first-child td {
|
||||
|
||||
}
|
||||
#mod_t_m_name, #mod_ori_m_name{
|
||||
width: 120px;
|
||||
display: inline-block;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
#deviceSelectDialog{
|
||||
text-align:center;
|
||||
}
|
||||
#deviceSelectDialog > div {
|
||||
display:inline-block;
|
||||
vertical-align: middle;
|
||||
top:15px;
|
||||
position:relative;
|
||||
}
|
||||
#deviceSelectDialog select {
|
||||
width: 120px;
|
||||
text-align: center;
|
||||
}
|
||||
#deviceSelectDialog > div:nth-child(1){
|
||||
width:35%;
|
||||
}
|
||||
#deviceSelectDialog > div:nth-child(2){
|
||||
width:20%;
|
||||
}
|
||||
#deviceSelectDialog > div:nth-child(3){
|
||||
width:35%;
|
||||
}
|
||||
#deviceSelectDialog #selDev_btn{
|
||||
font-size: 30px;
|
||||
font-weight: bold;
|
||||
font-family: dotum;
|
||||
}
|
||||
#deviceSelectDialog #delDev_btn{
|
||||
font-size: 15px;
|
||||
font-weight: bold;
|
||||
font-family: dotum;
|
||||
}
|
||||
</style>
|
||||
<!-- Content Header (Page header) -->
|
||||
<div class="content-header">
|
||||
<h1>CAPI <20><><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">
|
||||
<div>
|
||||
<div id="searchDiv">
|
||||
<div>
|
||||
<span><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ : <select id="selPrj"><option value=""><3E><>ü</option></select></span>
|
||||
<span><3E>뿩<EFBFBD><EBBFA9>û<EFBFBD><C3BB> : <select id="selUser"><option value=""><3E><>ü</option></select></span>
|
||||
<span><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> : <select id="selMan"><option value=""><3E><>ü</option></select></span>
|
||||
</div>
|
||||
<div><3E><>ȸ<EFBFBD><C8B8> <20><><EFBFBD><EFBFBD> <20><> : <span id="deviceCount"></span></div>
|
||||
<div>
|
||||
<input type="button" value="<22>ϰ<EFBFBD> <20>ݳ<EFBFBD>" class="all_ret_device_btn" />
|
||||
<input type="button" value="<22>뿩 <20><><EFBFBD><EFBFBD>" class="reg_device_btn" />
|
||||
</div>
|
||||
</div>
|
||||
<%
|
||||
dim availity_device_cnt, chk_user
|
||||
availity_device_cnt = 0
|
||||
query = ""
|
||||
query = query & " SELECT NO, ID, T_DEVICE_MODEL, T_NO, T_PHONE_NO, P_CHILD_SN, P_SUBJECT, "
|
||||
query = query & " MAN_ID, M_NAME, USE_ST_DT, USE_ED_DT, D_NO, INSERT_USER, INSERT_USER_NAME, "
|
||||
query = query & " (SELECT COUNT(*) FROM project2.dbo.T_DEVICE_USE WHERE USE_YN = 'N' AND DEVICE_ID = VDS.ID) AS LOG_CNT "
|
||||
query = query & " FROM project2.dbo.V_DEVICE_STATUS VDS "
|
||||
query = query & " ORDER BY NO "
|
||||
|
||||
adors.open query, adoconn, adopenstatic, adlockreadonly
|
||||
%>
|
||||
<table id="device_status" class="table table-sm table-sm2 table-bordered table-head tr-colors">
|
||||
<tr>
|
||||
<td style="width:3%;">No</td>
|
||||
<td style="width:8%;"><3E><><EFBFBD><EFBFBD></td>
|
||||
<td style="width:9%;"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ</td>
|
||||
<td style="width:9%;"><3E>ڵ<EFBFBD><DAB5><EFBFBD><EFBFBD><EFBFBD>ȣ</td>
|
||||
<td style="width:33%;"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ</td>
|
||||
<td style="width:13%;"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td style="width:7%;"><3E>뿩<EFBFBD><EBBFA9><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td style="width:7%;"><3E>ݳ<EFBFBD><DDB3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td style="width:9%;"><3E><><EFBFBD><EFBFBD> / <20>ݳ<EFBFBD></td>
|
||||
<td style="width:7%;"><3E>뿩<EFBFBD><EBBFA9>û<EFBFBD><C3BB></td>
|
||||
<td style="width:4%;"><3E><><EFBFBD><EFBFBD></td>
|
||||
</tr>
|
||||
|
||||
<%
|
||||
|
||||
Do While Not adors.Eof
|
||||
chk_user = iif(adors("INSERT_USER") = cstr(session("User_Number")), true, false) ' insert_user<65><72> <20>α<EFBFBD><CEB1><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> true
|
||||
|
||||
if adors("P_CHILD_SN") = "" then '<27>뿩 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>϶<EFBFBD>
|
||||
availity_device_cnt = availity_device_cnt + 1
|
||||
end if
|
||||
%>
|
||||
<tr>
|
||||
<td ><%=adors("NO")%><input type="hidden" value="<%=adors("ID")%>" name="DEVICE_ID"/></td>
|
||||
<td ><%=adors("T_DEVICE_MODEL")%></td>
|
||||
<td ><%=adors("T_NO")%></td>
|
||||
<td ><%=adors("T_PHONE_NO")%></td>
|
||||
<td ><span><%=iif(adors("P_CHILD_SN") = "", "", "[" & adors("P_CHILD_SN") & "] ")%><%=adors("P_SUBJECT")%></span></td>
|
||||
<td ><%
|
||||
if adors("P_CHILD_SN") <> "" Then
|
||||
if adors("MAN_ID") = "" Then
|
||||
if chk_user = true Then
|
||||
%><input type="text" style="width:120px;" id="man_device_<%=adors("ID")%>" onkeyup="if(event.keyCode==13){search_Name(this.value, '<%=adors("ID")%>');}" value="" placeholder="<22≯<EFBFBD> + Enter"><%
|
||||
End if
|
||||
Else
|
||||
%><span>[<%=adors("MAN_ID")%>] <%=adors("M_NAME")%></span><%
|
||||
End if
|
||||
End if
|
||||
%></td>
|
||||
<td ><%=adors("USE_ST_DT")%></td>
|
||||
<td ><%=adors("USE_ED_DT")%></td>
|
||||
<td ><%
|
||||
if adors("P_CHILD_SN") <> "" Then
|
||||
if chk_user = true Then
|
||||
%>
|
||||
<input type="button" value="<22><><EFBFBD><EFBFBD>" class="mod_device_btn" data-device_id="<%=adors("ID")%>"/>
|
||||
<input type="button" value="<22>ݳ<EFBFBD>" class="ret_device_btn" data-device_id="<%=adors("ID")%>"/><%
|
||||
End if
|
||||
end if
|
||||
%></td>
|
||||
<td ><%=adors("INSERT_USER_NAME")%></td>
|
||||
<td ><%
|
||||
if cint(adors("LOG_CNT")) > 0 then
|
||||
%><input type="button" value="<22><>" id="device_log" style="cursor:pointer;margin:0;padding:1px 10px;border:0;background:rgba(255,255,255,0);" data-rowinf="<%=adoRs("ID")%>"/><%
|
||||
end if
|
||||
%></td>
|
||||
</tr>
|
||||
<%
|
||||
adors.MoveNext
|
||||
Loop
|
||||
%>
|
||||
</table>
|
||||
</div>
|
||||
<div id="deviceRegDialog">
|
||||
<table class="table table-sm table-sm2 table-bordered table-head tr-colors mb-0">
|
||||
<tr>
|
||||
<td ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ</td>
|
||||
<td ><input type="hidden" id="reg_p_child_sn" /><input type="text" id="reg_p_subject" class="project_search" style="cursor:pointer; width:100%;" palceHolder="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD><EFBFBD>Ͽ<EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>" readonly/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ><3E>뿩<EFBFBD>Ⱓ</td>
|
||||
<td >
|
||||
<input type="text" id="use_st_dt" style="cursor:pointer; width:100px;text-align:center;" readonly/>
|
||||
~
|
||||
<input type="text" id="use_ed_dt" style="cursor:pointer; width:100px;text-align:center;" readonly/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ><3E><><EFBFBD>⼱<EFBFBD><E2BCB1></td>
|
||||
<td ><input type="text" id="use_device_cnt" value="0" style="cursor:pointer; width:100px;text-align:right;padding-right:5px;" readonly/><span> - <20>뿩<EFBFBD><EBBFA9><EFBFBD>ɼ<EFBFBD><C9BC><EFBFBD> : <span id="availity_device_cnt"><%=availity_device_cnt%></span></span></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div id="deviceSelectDialog">
|
||||
<div>
|
||||
<select multiple size="16" id="devList">
|
||||
<%
|
||||
adors.moveFirst
|
||||
Do While Not adors.Eof
|
||||
if adors("P_CHILD_SN") = "" then
|
||||
%>
|
||||
<option value="<%=adors("ID")%>"><%=adors("T_NO")%></option>
|
||||
<%
|
||||
end if
|
||||
adors.MoveNext
|
||||
Loop
|
||||
%>
|
||||
</select><br>
|
||||
<div id="posiDevCnt"><span style="color:#FF0000;">0</span> / <span><%=availity_device_cnt%></span></div>
|
||||
</div>
|
||||
<div><input type="button" value="<22><>" id="selDev_btn" /><br> <br><input type="button" value="<22><>" id="delDev_btn" /></div>
|
||||
<div>
|
||||
<select multiple size="16" id="selList">
|
||||
<%
|
||||
adors.moveFirst
|
||||
Do While Not adors.Eof
|
||||
if adors("P_CHILD_SN") = "" then
|
||||
%>
|
||||
<option value="<%=adors("ID")%>"><%=adors("T_NO")%></option>
|
||||
<%
|
||||
end if
|
||||
adors.MoveNext
|
||||
Loop
|
||||
%>
|
||||
</select><br>
|
||||
<div id="selDevCnt"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> : <span style="color:#0000FF;">0</span></div>
|
||||
</div>
|
||||
</div>
|
||||
<%
|
||||
adors.close
|
||||
%>
|
||||
<div id="regPrjDialog">
|
||||
<table class="table table-sm table-sm2 table-bordered table-head tr-colors">
|
||||
<tr>
|
||||
<td style="width:8%"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20>ڵ<EFBFBD></td>
|
||||
<td style="width:37%"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><></td>
|
||||
<td style="width:15%"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td style="width:15%"><3E><><EFBFBD><EFBFBD><EFBFBD>μ<EFBFBD></td>
|
||||
</tr>
|
||||
<%
|
||||
Query = " SELECT p_child_sn, p_subject, p_method_nm, p_intention, ISNULL(D.T_name, '') as d_name "
|
||||
Query = Query & " FROM V_PROJECT_METHOD VPM LEFT OUTER JOIN v_Department D "
|
||||
Query = Query & " ON VPM.p_rsch_dept = D.before_t_cd1 "
|
||||
Query = Query & " WHERE ISNULL(p_child_sn, '') <> '' "
|
||||
Query = Query & " AND p_progress_status >= '006' "
|
||||
Query = Query & " AND (p_research_complete + p_field_complete + p_dp_complete) IS NULL "
|
||||
Query = Query & " AND ( "
|
||||
Query = Query & " p_rsch_1_a = '" & p_no & "' OR p_rsch_2_a = '" & p_no & "' OR p_rsch_3_a = '" & p_no & "' OR p_rsch_4_a = '" & p_no & "' OR "
|
||||
Query = Query & " p_rsch_1_b = '" & p_no & "' OR p_rsch_2_b = '" & p_no & "' OR p_rsch_3_b = '" & p_no & "' OR p_rsch_4_b = '" & p_no & "' OR "
|
||||
Query = Query & " p_rsch_1_c = '" & p_no & "' OR p_rsch_2_c = '" & p_no & "' OR p_rsch_3_c = '" & p_no & "' OR p_rsch_4_c = '" & p_no & "' OR "
|
||||
Query = Query & " p_sv_1 = '" & p_no & "' OR p_sv_2 = '" & p_no & "' OR p_sv_3 = '" & p_no & "' OR p_sv_4 = '" & p_no & "' OR "
|
||||
Query = Query & " p_code_1 = '" & p_no & "' OR p_code_2 = '" & p_no & "' OR p_code_3 = '" & p_no & "' OR p_code_4 = '" & p_no & "' OR "
|
||||
Query = Query & " p_verify_1 = '" & p_no & "' OR p_verify_2 = '" & p_no & "' OR p_verify_3 = '" & p_no & "' OR p_verify_4 = '" & p_no & "' OR "
|
||||
Query = Query & " p_dp_1 = '" & p_no & "' OR p_dp_2 = '" & p_no & "' OR p_dp_3 = '" & p_no & "' OR p_dp_4 = '" & p_no & "' OR "
|
||||
Query = Query & " p_it_1 = '" & p_no & "' OR p_it_2 = '" & p_no & "' OR p_it_3 = '" & p_no & "' OR p_it_4 = '" & p_no & "' OR "
|
||||
Query = Query & " p_supp_1 = '" & p_no & "' OR p_supp_2 = '" & p_no & "' OR p_supp_3 = '" & p_no & "' OR p_supp_4 = '" & p_no & "' "
|
||||
Query = Query & " ) "
|
||||
Query = Query & " ORDER BY p_child_sn "
|
||||
|
||||
|
||||
Rs.Open Query, adoConn, 1
|
||||
for i = 1 to Rs.RecordCount
|
||||
%>
|
||||
<tr>
|
||||
<td ><%=Rs("p_child_sn")%></td>
|
||||
<td ><a href="javascript:selectPrj('<%=Rs("p_child_sn")%>','<%=Rs("p_subject")%>')"><%=Rs("p_subject")%></a></td>
|
||||
<td ><%=Rs("p_method_nm")%></td>
|
||||
<td ><%=Rs("d_name")%></td>
|
||||
</tr>
|
||||
<%
|
||||
Rs.MoveNext
|
||||
next
|
||||
Rs.Close
|
||||
%>
|
||||
<tr>
|
||||
<td colspan="4"><3E><><EFBFBD><EFBFBD><EFBFBD>Է<EFBFBD> : <input type="text" id="tmpComment" value=""/> <input type="button" onclick="selectPrjTmp();" value="<22><> <20><>" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div id="deviceModDialog">
|
||||
<table class="table table-sm table-sm2 table-bordered table-head tr-colors mb-0">
|
||||
<tr>
|
||||
<td ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ</td>
|
||||
<td ><input type="hidden" id="mod_id" /><input type="hidden" id="mod_p_child_sn" /><input type="text" id="mod_p_subject" class="project_search" style="cursor:pointer; width:100%;" palceHolder="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD><EFBFBD>Ͽ<EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>" readonly/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ><3E>ݳ<EFBFBD><DDB3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td >
|
||||
<input type="text" id="mod_use_ed_dt" style="cursor:pointer; width:100px;text-align:center;" readonly/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td ><input type="text" id="mod_man_device" style="width:90px;" onkeyup="if(event.keyCode==13){search_Name(this.value, 'mod');}" value="" placeholder="<22≯<EFBFBD> + Enter"> <20><><EFBFBD><EFBFBD> : <span id="mod_t_m_name"></span><input type="hidden" id="mod_m_name" value="" /> <20><><EFBFBD><EFBFBD> : <span id="mod_ori_m_name"></span></td>
|
||||
</tr>
|
||||
</table>
|
||||
<input type="hidden" id="mod_beforeValue" value="" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.content -->
|
||||
<!-- REQUIRED SCRIPTS -->
|
||||
<script>
|
||||
var agent = navigator.userAgent.toLowerCase();
|
||||
var chromeChk = false;
|
||||
if (agent.indexOf("chrome") != -1) {
|
||||
chromeChk = true;
|
||||
}
|
||||
$.ui.dialog.prototype._focusTabbable = $.noop;
|
||||
|
||||
var selProjectSearch = "";
|
||||
$(function(){
|
||||
$("#use_st_dt").datepicker();
|
||||
$("#use_ed_dt").datepicker();
|
||||
$("#mod_use_ed_dt").datepicker();
|
||||
|
||||
deviceRegDialog = $("#deviceRegDialog").dialog({
|
||||
autoOpen: false,
|
||||
modal: true,
|
||||
resizable: false,
|
||||
height: 220,
|
||||
width: 600,
|
||||
title: '<27>뿩 <20><>û <20><><EFBFBD><EFBFBD>',
|
||||
close: function(){ clearDeviceValue(); },
|
||||
buttons: {
|
||||
"<22><><EFBFBD><EFBFBD>": deviceReg,
|
||||
"<22><><EFBFBD><EFBFBD>": deviceCancel
|
||||
}
|
||||
});
|
||||
|
||||
deviceRegDialog.dialog("option", "position", {
|
||||
my: 'center',
|
||||
at: 'center',
|
||||
of: window
|
||||
});
|
||||
|
||||
$(".all_ret_device_btn").click(function(){
|
||||
var deviceIDs = $("#device_status > tbody > tr:nth-child(n+2):visible > td:nth-child(9) > input.ret_device_btn").map(function(idx, obj){ return $(obj).data("device_id") }).toArray().join(",");
|
||||
if(deviceIDs == ""){
|
||||
alert("<22><><EFBFBD>̴<EFBFBD> <20><><EFBFBD><EFBFBD> <20><> <20>뿩<EFBFBD><EBBFA9>û<EFBFBD>ڰ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>Ⱑ <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD>.");
|
||||
return;
|
||||
}
|
||||
if(confirm("ȭ<>鿡 <20><><EFBFBD>̴<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD>⸦ <20>ݳ<EFBFBD><DDB3>Ͻðڽ<C3B0><DABD>ϱ<EFBFBD>?\n(<28>뿩<EFBFBD><EBBFA9>û<EFBFBD>ڰ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>)")){
|
||||
$.ajax({
|
||||
url: './capi_device_return.asp',
|
||||
data: {
|
||||
'device_id' : deviceIDs
|
||||
},
|
||||
success: function(result){
|
||||
if(result == "1"){ // <20><><EFBFBD><EFBFBD>
|
||||
location.reload();
|
||||
}else{
|
||||
alert("Web Service Error !!");
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
$(".reg_device_btn").click(function(){
|
||||
deviceRegDialog.dialog("open");
|
||||
});
|
||||
|
||||
regPrjDialog = $("#regPrjDialog").dialog({
|
||||
autoOpen: false,
|
||||
modal: true,
|
||||
resizable: false,
|
||||
height: 600,
|
||||
width: 800,
|
||||
title: '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD>'
|
||||
});
|
||||
|
||||
$(".project_search").click(function(){
|
||||
selProjectSearch = $(this).attr("id").split("_")[0];
|
||||
$("#tmpComment").val("");
|
||||
regPrjDialog.dialog("open");
|
||||
});
|
||||
|
||||
deviceSelectDialog = $("#deviceSelectDialog").dialog({
|
||||
autoOpen: false,
|
||||
modal: true,
|
||||
resizable: false,
|
||||
height: 480,
|
||||
width: 400,
|
||||
title: '<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>',
|
||||
//close: function(){ clearDeviceSelect(); },
|
||||
buttons: {
|
||||
"<22><><EFBFBD><EFBFBD>": deviceSelect,
|
||||
"<22><><EFBFBD><EFBFBD>": deviceCancel3
|
||||
}
|
||||
});
|
||||
|
||||
chromeChk == true ?
|
||||
$("#selList > option").css("display", "none") :
|
||||
$("#selList > option").css("visibility", "hidden").prop("disabled", true);
|
||||
|
||||
$("#use_device_cnt").click(function(){
|
||||
deviceSelectDialog.dialog("open");
|
||||
|
||||
});
|
||||
|
||||
$("#selDev_btn").click(function(){
|
||||
$.each($("#selList option"), function(i, v){
|
||||
if($.inArray($(v).val(), $("#devList option:selected").map(function(idx, obj){ return $(obj).val(); })) > -1){
|
||||
chromeChk == true ?
|
||||
$(v).css("display", "") :
|
||||
$(v).css("visibility", "visible").prop("disabled", false);
|
||||
}
|
||||
});
|
||||
chromeChk == true ?
|
||||
$("#devList option:selected").css("display", "none") :
|
||||
$("#devList option:selected").css("visibility", "hidden").prop("disabled", true);
|
||||
|
||||
$("#devList option").prop("selected", false);
|
||||
devCountRef();
|
||||
});
|
||||
|
||||
$("#delDev_btn").click(function(){
|
||||
$.each($("#devList option"), function(i, v){
|
||||
if($.inArray($(v).val(), $("#selList option:selected").map(function(idx, obj){ return $(obj).val(); })) > -1){
|
||||
chromeChk == true ?
|
||||
$(v).css("display", "") :
|
||||
$(v).css("visibility", "visible").prop("disabled", false);
|
||||
}
|
||||
});
|
||||
chromeChk == true ?
|
||||
$("#selList option:selected").css("display", "none") :
|
||||
$("#selList option:selected").css("visibility", "hidden").prop("disabled", true);
|
||||
|
||||
$("#selList option").prop("selected", false);
|
||||
devCountRef();
|
||||
});
|
||||
|
||||
$(".ret_device_btn").click(function () {
|
||||
if(confirm("<22>ݳ<EFBFBD>ó<EFBFBD><C3B3><EFBFBD>ϰڽ<CFB0><DABD>ϱ<EFBFBD>?")){
|
||||
$.ajax({
|
||||
url: './capi_device_return.asp',
|
||||
data: {
|
||||
'device_id' : $(this).data("device_id")
|
||||
},
|
||||
success: function(result){
|
||||
if(result == "1"){ // <20><><EFBFBD><EFBFBD>
|
||||
location.reload();
|
||||
}else{
|
||||
alert("Web Service Error !!");
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
deviceModDialog = $("#deviceModDialog").dialog({
|
||||
autoOpen: false,
|
||||
modal: true,
|
||||
resizable: false,
|
||||
height: 220,
|
||||
width: 600,
|
||||
title: '<27>뿩 <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>',
|
||||
close: function(){ clearDeviceValueMod(); },
|
||||
buttons: {
|
||||
"<22><><EFBFBD><EFBFBD>": deviceMod,
|
||||
"<22><><EFBFBD><EFBFBD>": deviceCancel2
|
||||
}
|
||||
});
|
||||
|
||||
deviceModDialog.dialog("option", "position", {
|
||||
my: 'center',
|
||||
at: 'center',
|
||||
of: window
|
||||
});
|
||||
|
||||
$(".mod_device_btn").click(function () {
|
||||
deviceModDialog.dialog("open");
|
||||
|
||||
$("#mod_id").val($(this).data("device_id"));
|
||||
|
||||
var projectStr = $("input[name=DEVICE_ID][VALUE='" + $(this).data("device_id") + "']").parents("tr").eq(0).find("td").eq(4).find("span").html();
|
||||
var p_child_sn = projectStr.split("]")[0].split("[")[1];
|
||||
$("#mod_p_subject").val(projectStr);
|
||||
$("#mod_p_child_sn").val(p_child_sn);
|
||||
|
||||
var use_ed_dt = $("input[name=DEVICE_ID][VALUE='" + $(this).data("device_id") + "']").parents("tr").eq(0).find("td").eq(7).html();
|
||||
$("#mod_use_ed_dt").val(use_ed_dt);
|
||||
|
||||
var m_name = $("input[name=DEVICE_ID][VALUE='" + $(this).data("device_id") + "']").parents("tr").eq(0).find("td").eq(5).text();
|
||||
$("#mod_ori_m_name").text(m_name);
|
||||
|
||||
$("#mod_beforeValue").val(p_child_sn+"||"+use_ed_dt+"||"+m_name);
|
||||
});
|
||||
|
||||
$("input[id=device_log]").click(function (){
|
||||
var obj = $(this);
|
||||
if(obj.val() == "<22><>"){
|
||||
obj.val("<22><>");
|
||||
obj.parent().parent().next("tr").remove();
|
||||
}else{
|
||||
var device_id = $(this).data("rowinf")
|
||||
$.ajax({
|
||||
url: './capi_device_log.asp',
|
||||
data: {
|
||||
'device_id' : device_id
|
||||
},
|
||||
success: function(result){
|
||||
if(result != ""){
|
||||
obj.parent().parent().after("<tr><td colspan='" + obj.parent().parent().find("td").length + "' align='right'>" + result + "</td></tr>");
|
||||
obj.val("<22><>");
|
||||
}else{
|
||||
alert("Web Service Error !!");
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
$("#devList").on('change mousemove', function(){
|
||||
devCountRef();
|
||||
});
|
||||
|
||||
createSelect("");
|
||||
|
||||
$("#searchDiv > div:nth-child(1) > span > select").on("click change", function(e){
|
||||
var selPrjVal = $("#selPrj").val();
|
||||
var selUserVal = $("#selUser").val();
|
||||
var selManVal = $("#selMan").val();
|
||||
|
||||
$("#device_status > tbody > tr:nth-child(n+2)").css("display", "");
|
||||
$.each($("#device_status > tbody > tr:nth-child(n+2)"), function(idx, obj){
|
||||
if($(this).children("td").eq(4).text() != selPrjVal && selPrjVal != ""){
|
||||
$(this).css("display", "none");
|
||||
}
|
||||
if($(this).children("td").eq(9).text() != selUserVal && selUserVal != ""){
|
||||
$(this).css("display", "none");
|
||||
}
|
||||
if($(this).children("td").eq(5).text() != selManVal && selManVal != ""){
|
||||
$(this).css("display", "none");
|
||||
}
|
||||
if(idx > 0 && $(this).children("td").length == 1){
|
||||
if($(this).prev().css("display") != "none"){
|
||||
$(this).css("display", "");
|
||||
}
|
||||
}
|
||||
});
|
||||
var rowCount = $.grep($("#device_status > tbody > tr:nth-child(n+2)"), function(obj, idx){
|
||||
return $(obj).children("td").length != 1 && $(obj).css("display") != "none";
|
||||
}).length;
|
||||
$("#deviceCount").html(rowCount);
|
||||
createSelect();
|
||||
});
|
||||
$("#searchDiv > div:nth-child(1) > span > select").click();
|
||||
|
||||
$(document).off("click", ".del_log_btn").on("click", ".del_log_btn", function () {
|
||||
var clickBtnObj = $(this);
|
||||
if(confirm("<22>ش<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϰڽ<CFB0><DABD>ϱ<EFBFBD>?")){
|
||||
$.ajax({
|
||||
url: './capi_device_log_del.asp',
|
||||
data: {
|
||||
'use_id' : clickBtnObj.data("use_id")
|
||||
},
|
||||
success: function(result){
|
||||
if(result == "1"){ // <20><><EFBFBD><EFBFBD>
|
||||
//location.reload();
|
||||
if(clickBtnObj.parents("tbody").eq(0).children("tr").length == 2){
|
||||
clickBtnObj.parents("tr").eq(1).prev().children("td").eq(9).html("");
|
||||
clickBtnObj.parents("tr").eq(1).remove();
|
||||
}else{
|
||||
clickBtnObj.parents("tr").eq(0).remove();
|
||||
}
|
||||
}else{
|
||||
alert("Web Service Error !!");
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
function createSelect(){
|
||||
var prevPrjVal = $("#selPrj").val();
|
||||
var prevUserVal = $("#selUser").val();
|
||||
var prevManVal = $("#selMan").val();
|
||||
|
||||
var baseOption = '<option value=""><3E><>ü</option>';
|
||||
$("#selPrj").html(baseOption);
|
||||
$("#selUser").html(baseOption);
|
||||
$("#selMan").html(baseOption);
|
||||
$.each($("#device_status > tbody > tr:nth-child(n+2)"), function(idx, obj){
|
||||
// $(obj).children("td").eq(4).text() - <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ
|
||||
// $(obj).children("td").eq(9).text() - <20>뿩<EFBFBD><EBBFA9>û<EFBFBD><C3BB>
|
||||
// $(obj).children("td").eq(5).text() - <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
if($(obj).css("display") != "none"){
|
||||
if($("#selPrj").find("option[value='" + $(obj).children("td").eq(4).text() + "']").length == 0 && $(obj).children("td").eq(4).text() != ""){
|
||||
$("#selPrj").append("<option value='" + $(obj).children("td").eq(4).text() + "'>" + $(obj).children("td").eq(4).text() + "</option>");
|
||||
}
|
||||
if($("#selUser").find("option[value='" + $(obj).children("td").eq(9).text() + "']").length == 0 && $(obj).children("td").eq(9).text() != ""){
|
||||
$("#selUser").append("<option value='" + $(obj).children("td").eq(9).text() + "'>" + $(obj).children("td").eq(9).text() + "</option>");
|
||||
}
|
||||
if($("#selMan").find("option[value='" + $(obj).children("td").eq(5).text() + "']").length == 0 && $(obj).children("td").eq(5).text() != ""){
|
||||
$("#selMan").append("<option value='" + $(obj).children("td").eq(5).text() + "'>" + $(obj).children("td").eq(5).text() + "</option>");
|
||||
}
|
||||
}
|
||||
});
|
||||
sortSelect("selPrj", prevPrjVal);
|
||||
sortSelect("selUser", prevUserVal);
|
||||
sortSelect("selMan", prevManVal);
|
||||
}
|
||||
|
||||
function sortSelect(selId, selVal){
|
||||
var sel = $('#'+selId);
|
||||
var optionList = sel.find('option');
|
||||
optionList.sort(function(a, b){
|
||||
if (a.value > b.value) return 1;
|
||||
else { return -1; }
|
||||
});
|
||||
sel.html(optionList);
|
||||
sel.find("option[value='" + selVal + "']").length > 0 ? sel.val(selVal) : sel.val("");
|
||||
}
|
||||
|
||||
function devCountRef(){
|
||||
$("#posiDevCnt span").eq(0).text($("#devList option:selected").length);
|
||||
$("#posiDevCnt span").eq(1).text(
|
||||
chromeChk == true ?
|
||||
$("#devList > option:visible").length :
|
||||
$.grep($("#devList > option"), function(v, i){ return $(v).css("visibility") == "visible"; }).length
|
||||
);
|
||||
$("#selDevCnt span").text(
|
||||
chromeChk == true ?
|
||||
$("#selList > option:visible").length :
|
||||
$.grep($("#selList > option"), function(v, i){ return $(v).css("visibility") == "visible"; }).length
|
||||
);
|
||||
}
|
||||
|
||||
function clearDeviceValue(){
|
||||
$("#reg_p_child_sn").val("");
|
||||
$("#reg_p_subject").val("");
|
||||
$("#use_st_dt").val("");
|
||||
$("#use_ed_dt").val("");
|
||||
$("#use_device_cnt").val("0");
|
||||
}
|
||||
|
||||
function clearDeviceSelect(){
|
||||
$("#devList option:selected").prop("selected", false);
|
||||
$("#selList option:selected").prop("selected", false);
|
||||
|
||||
chromeChk == true ?
|
||||
$("#devList option").css("display", "") :
|
||||
$("#devList option").css("visibility", "visible").prop("disabled", false);
|
||||
|
||||
chromeChk == true ?
|
||||
$("#selList option").css("display", "none") :
|
||||
$("#selList option").css("visibility", "hidden").prop("disabled", true);
|
||||
|
||||
$("#use_device_cnt").val("0");
|
||||
$("#posiDevCnt span").eq(0).text("0");
|
||||
$("#posiDevCnt span").eq(1).text(
|
||||
chromeChk == true ?
|
||||
$("#devList > option:visible").length :
|
||||
$.grep($("#devList > option"), function(v, i){ return $(v).css("visibility") == "visible"; }).length
|
||||
);
|
||||
$("#selDevCnt span").text("0");
|
||||
}
|
||||
|
||||
function deviceSelect(){
|
||||
$("#devList option:selected").prop("selected", false);
|
||||
$("#selList option:selected").prop("selected", false);
|
||||
$("#use_device_cnt").val(
|
||||
chromeChk == true ?
|
||||
$("#selList > option:visible").length :
|
||||
$.grep($("#selList > option"), function(v, i){ return $(v).css("visibility") == "visible"; }).length
|
||||
);
|
||||
deviceSelectDialog.dialog("close");
|
||||
}
|
||||
|
||||
function deviceReg(){
|
||||
if($("#reg_p_child_sn").val() == ""){
|
||||
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ּ<EFBFBD><D6BC><EFBFBD>.");
|
||||
return;
|
||||
}
|
||||
if($("#use_st_dt").val() == "" || $("#use_ed_dt").val() == ""){
|
||||
alert("<22>뿩<EFBFBD>Ⱓ<EFBFBD><E2B0A3> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ּ<EFBFBD><D6BC><EFBFBD>.");
|
||||
return;
|
||||
}
|
||||
if($("#use_st_dt").val() > $("#use_ed_dt").val()){
|
||||
alert("<22>뿩<EFBFBD>Ⱓ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n<><6E><EFBFBD><EFBFBD><EFBFBD>Ϻ<EFBFBD><CFBA><EFBFBD> <20>۾ƾ<DBBE><C6BE>մϴ<D5B4>.");
|
||||
return;
|
||||
}
|
||||
|
||||
if($("#use_device_cnt").val()*1 == 0){
|
||||
alert("<22><><EFBFBD>⸦ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ּ<EFBFBD><D6BC><EFBFBD>.");
|
||||
return;
|
||||
}
|
||||
|
||||
$.ajax({
|
||||
url: './capi_device_reg.asp',
|
||||
data: {
|
||||
'p_child_sn' : encodeURIComponent($("#reg_p_child_sn").val()),
|
||||
'use_st_dt' : $("#use_st_dt").val(),
|
||||
'use_ed_dt' : $("#use_ed_dt").val(),
|
||||
'use_device_cnt' : $("#use_device_cnt").val(),
|
||||
'use_device_id' : $.grep($('#selList option'), function(obj, idx){
|
||||
return chromeChk == true ? $(obj).css("display") != "none" : $(obj).css("visibility") == "visible";
|
||||
}).map(function(v){ return $(v).val(); }).join(",")
|
||||
},
|
||||
success: function(result){
|
||||
if(result == "1"){ // <20><><EFBFBD><EFBFBD>
|
||||
deviceRegDialog.dialog("close");
|
||||
location.reload();
|
||||
}else if(result == "0"){ // <20><><EFBFBD><EFBFBD>?
|
||||
|
||||
}else if(result == "2"){ // <20>ܿ<EFBFBD><DCBF><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
alert("<22>뿩<EFBFBD><EBBFA9><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>մϴ<D5B4>.\n<><6E><EFBFBD>ΰ<EFBFBD>ħ <20><> <20>ٽ<EFBFBD> <20>̿<EFBFBD><CCBF><EFBFBD><EFBFBD>ּ<EFBFBD><D6BC><EFBFBD>.");
|
||||
}else{
|
||||
alert("Web Service Error !!");
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function clearDeviceValueMod(){
|
||||
$("#mod_man_device").val("");
|
||||
$("#mod_m_name").val("");
|
||||
$("#mod_t_m_name").html("");
|
||||
$("#mod_id").val("");
|
||||
}
|
||||
|
||||
function deviceMod(){
|
||||
var mod_val = $("#mod_p_child_sn").val()+"||"+$("#mod_use_ed_dt").val()+"||"+($("#mod_t_m_name").text() == "" ? $("#mod_ori_m_name").text() : $("#mod_t_m_name").text());
|
||||
if(mod_val == $("#mod_beforeValue").val()){
|
||||
alert("<22><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ٸ<EFBFBD><D9B8><EFBFBD> <20><><EFBFBD><EFBFBD> <20><> Ŭ<><C5AC><EFBFBD><EFBFBD><EFBFBD>ּ<EFBFBD><D6BC><EFBFBD>.");
|
||||
return;
|
||||
}
|
||||
if(!confirm("<22><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ͻðڽ<C3B0><DABD>ϱ<EFBFBD>?")){
|
||||
return;
|
||||
}
|
||||
|
||||
$.ajax({
|
||||
url: './capi_device_mod.asp',
|
||||
data: {
|
||||
'p_child_sn' : $("#mod_p_child_sn").val(),
|
||||
'use_ed_dt' : $("#mod_use_ed_dt").val(),
|
||||
'man_id' : $("#mod_m_name").val(),
|
||||
'device_id' : $("#mod_id").val()
|
||||
},
|
||||
success: function(result){
|
||||
if(result == "1"){ // <20><><EFBFBD><EFBFBD>
|
||||
location.reload();
|
||||
}else{
|
||||
alert("Web Service Error !!");
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function deviceCancel(){
|
||||
deviceRegDialog.dialog("close");
|
||||
}
|
||||
|
||||
function deviceCancel2(){
|
||||
deviceModDialog.dialog("close");
|
||||
}
|
||||
|
||||
function deviceCancel3(){
|
||||
clearDeviceSelect();
|
||||
deviceSelectDialog.dialog("close");
|
||||
}
|
||||
|
||||
function selectPrj(p_child_sn, p_subject){
|
||||
$("#"+selProjectSearch+"_p_child_sn").val(p_child_sn);
|
||||
$("#"+selProjectSearch+"_p_subject").val("["+p_child_sn+"]"+p_subject);
|
||||
regPrjDialog.dialog("close");
|
||||
}
|
||||
|
||||
function selectPrjTmp(){
|
||||
var tmpComment = $("#tmpComment").val();
|
||||
selectPrj(tmpComment, "");
|
||||
}
|
||||
|
||||
var winpop = null;
|
||||
function search_Name(txt, device_id) {
|
||||
var url = "/project_list/myun_search.asp?cutmenu=1&part=man_device";
|
||||
var m_name = txt;
|
||||
if (m_name == "") {
|
||||
return false;
|
||||
}
|
||||
url = url + "&m_name=" + m_name + "&device_id=" + device_id;
|
||||
if(winpop == null || winpop.closed == true){
|
||||
winpop = window.open (url,"", "left=0, top=5, width=500, height=500, scrollbars=yes, statbar=no" );
|
||||
}
|
||||
}
|
||||
|
||||
function deviceManSave(man_id, device_id){
|
||||
$.ajax({
|
||||
url: './capi_device_man_reg.asp',
|
||||
data: {
|
||||
'man_id' : man_id,
|
||||
'device_id' : device_id
|
||||
},
|
||||
success: function(result){
|
||||
if(result == "1"){ // <20><><EFBFBD><EFBFBD>
|
||||
//location.reload();
|
||||
createSelect();
|
||||
}else{
|
||||
alert("Web Service Error !!");
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
</script>
|
||||
</div>
|
||||
<!-- /.content-wrapper -->
|
||||
<!-- #include virtual = "include/footer.asp" -->
|
||||
|
||||
301
inspection/cati_confirm_save.asp
Normal file
301
inspection/cati_confirm_save.asp
Normal file
@@ -0,0 +1,301 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<OBJECT RUNAT=Server PROGID=ADODB.Recordset id=ckRs></OBJECT>
|
||||
<%
|
||||
'####################################################################################
|
||||
'-- <20><><EFBFBD><EFBFBD><EFBFBD>Ϸ<EFBFBD> <20>ߺ<EFBFBD><DFBA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> üũ(20170824) <20><><EFBFBD><EFBFBD>----------------------------------------------
|
||||
query = " select top 1 "
|
||||
query = query & " prj_code, tel_cnt, count(tel_cnt) as <20>ߺ<EFBFBD>ī<EFBFBD><C4AB>Ʈ "
|
||||
query = query & " from [new_cati].[dbo].[T_INSPECTION_CATI] with(nolock) "
|
||||
query = query & " where prj_code='" & request("prj_code") & "' "
|
||||
query = query & " and qc_ok='1' " '-- <20><><EFBFBD><EFBFBD><EFBFBD>Ϸ<EFBFBD>(1)
|
||||
query = query & " and tel_result<>'2' " '-- <20>ҷ<EFBFBD><D2B7><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (<28>Ϸ<EFBFBD>)
|
||||
query = query & " and tel_del_yn='N' " '-- <20><><EFBFBD><EFBFBD>(N)
|
||||
query = query & " group by prj_code, tel_cnt "
|
||||
query = query & " having count(tel_cnt)>1 "
|
||||
' response.Write query
|
||||
' response.end
|
||||
ckRs.Open query, adoConn, 1
|
||||
if Not ckRs.eof then '-- <20>ߺ<EFBFBD><DFBA><EFBFBD><EFBFBD><EFBFBD>
|
||||
ckRs.close
|
||||
response.write "<br><br><br><font color=red><b><3E><> <20><><EFBFBD><EFBFBD><EFBFBD>Ϸ<EFBFBD><CFB7><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ϳ<EFBFBD> <20>ߺ<EFBFBD><DFBA><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ϸ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ֽ<EFBFBD><D6BD>ϴ<EFBFBD>. IT<49><54><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ͽ<EFBFBD> <20>ֽñ<D6BD> <20>ٶ<EFBFBD><D9B6>ϴ<EFBFBD> </b></font><br><br><br>"
|
||||
Response.End
|
||||
end if
|
||||
ckRs.close
|
||||
|
||||
|
||||
'-- <20><><EFBFBD><EFBFBD><EFBFBD>Ϸ<EFBFBD> <20>ߺ<EFBFBD><DFBA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> üũ(20170824) <20><><EFBFBD><EFBFBD>----------------------------------------------
|
||||
|
||||
'-- CATI <20>Ϸᵥ<CFB7><E1B5A5><EFBFBD><EFBFBD> <20>ߺ<EFBFBD> üũ(20170824) <20><><EFBFBD><EFBFBD>----------------------------------------------
|
||||
|
||||
query = " select top 1 prj_code, s_tcnt "
|
||||
query = query & " from [new_cati].[dbo].[sheet1] with(nolock) "
|
||||
query = query & " where prj_code='" & request("prj_code") & "' "
|
||||
query = query & " group by prj_code, s_tcnt "
|
||||
query = query & " having count(s_tcnt)>1 " '-- ī<><C4AB><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 1<><31><EFBFBD><EFBFBD> ū<><C5AB>(<28>ߺ<EFBFBD>)
|
||||
'response.Write query
|
||||
'response.end
|
||||
ckRs.Open query, adoConn, 1
|
||||
if not ckRs.eof then '-- <20>ߺ<EFBFBD><DFBA><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
ckRs.close
|
||||
response.write "<br><br><br><font color=blue><b><3E><> <20>ߺ<EFBFBD><DFBA><EFBFBD> <20>Ϸ<EFBFBD><CFB7><EFBFBD><EFBFBD><EFBFBD> <20>ֽ<EFBFBD><D6BD>ϴ<EFBFBD>. IT<49><54><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ͽ<EFBFBD> <20>ֽñ<D6BD> <20>ٶ<EFBFBD><D9B6>ϴ<EFBFBD></b></font><br><br><br>"
|
||||
response.end
|
||||
end if
|
||||
ckRs.close
|
||||
|
||||
'-- CATI <20>Ϸᵥ<CFB7><E1B5A5><EFBFBD><EFBFBD> <20>ߺ<EFBFBD> üũ(20170824) <20><><EFBFBD><EFBFBD>----------------------------------------------
|
||||
|
||||
|
||||
'####################################################################################
|
||||
|
||||
%>
|
||||
|
||||
|
||||
<%
|
||||
set dbin = server.CreateObject("ADODB.CONNECTION")
|
||||
|
||||
dbin.Open adoConn
|
||||
|
||||
Dim add_count
|
||||
Dim lunchYN
|
||||
Dim dinnerYN
|
||||
'response.Write "cnt : " & request("cnt") &"<BR>"
|
||||
|
||||
p_field_date_st = request("p_field_date_st")
|
||||
|
||||
|
||||
for i=1 to request("cnt")
|
||||
'd_order_cnt = request("d_order_cnt")(i)
|
||||
'response.Write "---------------------------------------------------------------------------"&"<BR>"
|
||||
'response.Write "i : "& i & "<BR>"
|
||||
'response.Write "d_order_cnt : " & request("d_order_cnt")(i) & "<BR>"
|
||||
'response.Write "m_name : " & request("m_name")(i) & "<BR>"
|
||||
'response.Write "s_client_no : " & request("s_client_no")(i) & "<BR>"
|
||||
'response.Write "money_type : " & request("money_type") & "<BR>"
|
||||
'response.Write "add_count : " & request("add_count")(i) & "<BR>"
|
||||
'response.Write "add_count_memo : " & request("addCntReason")(i) & "<BR>"
|
||||
'response.Write "addMoney : " & request("addMoney")(i) & "<BR>"
|
||||
'response.Write "add_Money_memo : " & request("addMoneyReason")(i) & "<BR>"
|
||||
'response.Write "cati_confirm : " & request("cati_confirm_"&i) & "<BR>"
|
||||
'response.Write "request(tok_cnt)(i) : " & request("tok_cnt")(i) & "<BR>"
|
||||
'response.Write "paperMoney : " & request("paperMoney") & "<BR>"
|
||||
'response.Write "tok_cnt + add_count : " & cint(request("tok_cnt")(i)) + request("add_count")(i) & "<BR>"
|
||||
|
||||
if d_order_cnt = "<22><><EFBFBD><EFBFBD> <20>ݷ<EFBFBD>" OR d_order_cnt = "" OR isnull(d_order_cnt) then
|
||||
If Trim(request("add_count")(i)) = "" Then
|
||||
add_count = 0
|
||||
Else
|
||||
add_count = Cstr(request("add_count")(i))
|
||||
End if
|
||||
|
||||
If Trim(request("addMoney")(i)) = "" Then
|
||||
addMoney = 0
|
||||
Else
|
||||
addMoney = Cstr(request("addMoney")(i))
|
||||
End if
|
||||
|
||||
if request("lunch_"&i) = "Y" then
|
||||
lunch_money = "5000"
|
||||
lunchYN = "Y"
|
||||
else
|
||||
lunch_money = "0"
|
||||
lunchYN = "N"
|
||||
end if
|
||||
|
||||
if request("dinner_"&i) = "Y" then
|
||||
dinner_money = "5000"
|
||||
dinnerYN = "Y"
|
||||
else
|
||||
dinner_money = "0"
|
||||
dinnerYN = "N"
|
||||
end if
|
||||
|
||||
|
||||
|
||||
|
||||
'<27>ٸ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20>ݾ<EFBFBD><DDBE><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>߰<EFBFBD> <20>ݾ<DDBE> <20>ֱ<EFBFBD>.
|
||||
If Trim(request("alreadyMoney")(i)) = "N" Then
|
||||
'<27>μ<EFBFBD><CEBC><EFBFBD><EFBFBD>϶<EFBFBD><CFB6><EFBFBD> sum<75><6D><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> : ((<28>μ<EFBFBD>+<2B>߰<EFBFBD><DFB0>μ<EFBFBD>)*<2A>ܰ<EFBFBD>)+<2B>߰<EFBFBD><DFB0>ݾ<EFBFBD>+<2B><><EFBFBD><EFBFBD>+<2B><><EFBFBD><EFBFBD>
|
||||
if request("money_type") = "<22>μ<EFBFBD>" then
|
||||
s_sum = cstr((CLng((request("tok_cnt")(i)) + CLng(add_count)) * request("paperMoney")) + addMoney + lunch_money + dinner_money)
|
||||
else
|
||||
s_sum = cstr(CLng(request("dayMoney")) + addMoney)
|
||||
end if
|
||||
if request("money_type") = "<22>ϴ<EFBFBD>" then
|
||||
s_pay_unit = request("dayMoney")
|
||||
elseif request("money_type") = "<22>μ<EFBFBD>" then
|
||||
s_pay_unit = request("paperMoney")
|
||||
end if
|
||||
else
|
||||
s_pay_unit = 0
|
||||
s_sum = addMoney
|
||||
end if
|
||||
|
||||
id = request("id")(i)
|
||||
|
||||
sql = " SELECT T.prj_code, T.s_client_no, T.s_client_name, T.s_client_jumin, s_date, SUM(T.no_cnt) as no_cnt, "
|
||||
sql = sql & " SUM(T.tok_cnt) as tok_cnt, SUM(T.error_cnt) as error_cnt, tmp.confirm_yn, tmp.lunch, tmp.dinner "
|
||||
sql = sql & " , add_count, cast(add_count_memo as varchar) as add_count_memo, add_money, add_money_memo, isnull(qc_ok,'0') as qc_ok, tmp.id, tmp.s_pay_unit, isnull(tmp.money_type,'<27>μ<EFBFBD>') as money_type , "
|
||||
sql = sql & " CASE "
|
||||
sql = sql & " WHEN d.d_order_cnt = '99' THEN '<27><><EFBFBD><EFBFBD> <20>ݷ<EFBFBD>' "
|
||||
sql = sql & " WHEN d.d_order_cnt = '77' THEN '<27><><EFBFBD><EFBFBD> <20>Ϸ<EFBFBD>' "
|
||||
sql = sql & " WHEN d.d_order_cnt IS NULL THEN '' "
|
||||
sql = sql & " ELSE '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' "
|
||||
sql = sql & " END AS d_order_cnt "
|
||||
sql = sql & " FROM "
|
||||
sql = sql & " ( "
|
||||
sql = sql & " SELECT s.prj_code, P.prj_name, s_client_jumin, s_client as s_client_no, s_client_name, s_date, "
|
||||
sql = sql & " case when c.tel_result IS null then 1 else 0 end as no_cnt, "
|
||||
sql = sql & " case when c.tel_result != 2 then 1 else 0 end as tok_cnt, "
|
||||
sql = sql & " case when c.tel_result = 2 then 1 else 0 end as error_cnt, c.intranet_pay, C.qc_ok "
|
||||
sql = sql & " FROM new_cati.dbo.Sheet1 s "
|
||||
sql = sql & " Left Outer Join "
|
||||
|
||||
'-- 20170811(<28><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ҽ<EFBFBD>) sql = sql & " new_cati.dbo.T_Inspection_Cati c "
|
||||
'-- <20>ߺ<EFBFBD><DFBA><EFBFBD><EFBFBD><EFBFBD> ---<2D><> ------------------------------------------------------------------------------
|
||||
sql = sql & " ( "
|
||||
sql = sql & " select "
|
||||
sql = sql & " prj_code,tel_cnt,tel_client_no, tel_result, tel_del_yn, intranet_pay, qc_ok "
|
||||
sql = sql & " from [new_cati].[dbo].[T_INSPECTION_CATI] with(nolock) "
|
||||
sql = sql & " where prj_code='" & request("prj_code") & "' "
|
||||
sql = sql & " AND tel_result is not null "
|
||||
sql = sql & " AND tel_del_yn = 'N' "
|
||||
sql = sql & " group by prj_code,tel_cnt,tel_client_no, tel_result, tel_del_yn, intranet_pay, qc_ok "
|
||||
sql = sql & " ) c "
|
||||
'-- <20>ߺ<EFBFBD><DFBA><EFBFBD><EFBFBD><EFBFBD> ---<2D><> ------------------------------------------------------------------------------
|
||||
sql = sql & " ON s.prj_code = c.prj_code "
|
||||
sql = sql & " AND s.s_tcnt = c.tel_cnt "
|
||||
sql = sql & " AND c.tel_result is not null "
|
||||
sql = sql & " LEFT OUTER JOIN new_cati.dbo.project P ON S.prj_code = P.prj_code "
|
||||
sql = sql & " WHERE s.prj_code = '" & request("prj_code") & "' "
|
||||
sql = sql & " AND s.s_client_name not in ('Cati_Test', '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>') "
|
||||
sql = sql & " AND s.s_client = '" & request("s_client_no")(i) & "' "
|
||||
sql = sql & " AND c.tel_del_yn = 'N' "
|
||||
'sql = sql & " and convert(varchar(20),c.tel_date,23) = '" & request("date") & "' "
|
||||
sql = sql & " AND s_date = '" & request("date") & "' "
|
||||
sql = sql & " ) T left outer join T_MYUN_PAY TMP ON T.prj_code = TMP.prj_code and t.s_client_jumin = tmp.m_jumin and T.s_date = tmp.work_dt "
|
||||
sql = sql & " left outer join Document d on tmp.attribute05 = d.d_no AND d_delok = 'N' "
|
||||
sql = sql & " left outer join <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> m on tmp.attribute05 = m.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ AND m.del_yes_no = 'no' "
|
||||
sql = sql & " GROUP BY T.prj_code, s_client_no, s_client_name, T.s_client_jumin, s_date, tmp.confirm_yn, tmp.lunch, tmp.dinner, "
|
||||
sql = sql & " add_count, add_count_memo, add_money, add_money_memo, qc_ok, tmp.id, tmp.s_pay_unit, tmp.money_type, d_order_cnt "
|
||||
sql = sql & " ORDER BY qc_ok desc, s_pay_unit desc, cast(s_client_no as int) "
|
||||
|
||||
'response.Write sql
|
||||
rs.open sql, adoConn, adopenstatic, adlockreadonly
|
||||
Dim savaGubun
|
||||
savaGubun = false
|
||||
if rs.recordCount > 0 then
|
||||
if rs("qc_ok") = "1" then
|
||||
savaGubun = true
|
||||
end if
|
||||
end if
|
||||
rs.close
|
||||
'<27><><EFBFBD><EFBFBD> <20>̿Ϸ<CCBF><CFB7><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD> <20>ʱ<EFBFBD>.
|
||||
'response.Write "approvalYn : " & trim(request("approvalYn")(i)) & "<BR>"
|
||||
if trim(request("qc_ok")(i)) = "1" and trim(request("approvalYn")(i)) = "" and savaGubun then
|
||||
'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> update
|
||||
if id <> "" then
|
||||
if request("money_type") = "<22>ϴ<EFBFBD>" then
|
||||
query = " SET NOCOUNT ON;update T_MYUN_PAY "
|
||||
query = query & " set confirm_yn = '" & request("cati_confirm_"&i) & "' "
|
||||
query = query & " , money_type = '" & request("money_type") & "' "
|
||||
query = query & " , s_pay_unit = '" & s_pay_unit & "', s_wan = '' "
|
||||
query = query & " , lunch = 'N' "
|
||||
query = query & " , dinner = 'N' "
|
||||
query = query & " , s_sum = '" & s_sum & "' "
|
||||
query = query & " , add_count = '" & add_count & "' "
|
||||
query = query & " , add_count_memo = '" & request("addCntReason")(i) & "' "
|
||||
query = query & " , add_money = '" & addMoney & "' "
|
||||
query = query & " , add_money_memo = '" & request("addMoneyReason")(i) & "' "
|
||||
query = query & " where id = '"& id &"' "
|
||||
query = query & " SET NOCOUNT OFF; SELECT SCOPE_IDENTITY() ID; "
|
||||
elseif request("money_type") = "<22>μ<EFBFBD>" then
|
||||
query = " SET NOCOUNT ON;update T_MYUN_PAY "
|
||||
query = query & " set confirm_yn = '" & request("cati_confirm_"&i) & "' "
|
||||
query = query & " , money_type = '" & request("money_type") & "' "
|
||||
query = query & " , lunch = '" & lunchYN & "' "
|
||||
query = query & " , dinner = '" & dinnerYN & "' "
|
||||
query = query & " , s_pay_unit = '" & s_pay_unit & "', s_wan = '" & request("tok_cnt")(i) & "' "
|
||||
query = query & " , s_sum = '" & s_sum & "' "
|
||||
query = query & " , add_count = '" & add_count & "' "
|
||||
query = query & " , add_count_memo = '" & request("addCntReason")(i) & "' "
|
||||
query = query & " , add_money = '" & addMoney & "' "
|
||||
query = query & " , add_money_memo = '" & request("addMoneyReason")(i) & "' "
|
||||
query = query & " where id = '"& id &"' "
|
||||
query = query & " SET NOCOUNT OFF; SELECT SCOPE_IDENTITY() ID; "
|
||||
end if
|
||||
else
|
||||
if request("money_type") = "<22>ϴ<EFBFBD>" then
|
||||
query = " SET NOCOUNT ON;insert into T_MYUN_PAY( "
|
||||
query = query & " p_sn, prj_code, money_type, m_name, m_jumin, work_dt, pay_type, lunch, dinner, est_money, s_gubun, s_pay_unit, s_wan, s_sum, pay_month, confirm_yn "
|
||||
query = query & " , add_count, add_count_memo, add_money, add_money_memo, insert_dt, insert_user) "
|
||||
query = query & " values ( "
|
||||
query = query & " '" & request("intranet_project") & "', '" & request("prj_code") & "', '" & request("money_type") & "', '" & request("m_name")(i) & "', '" & request("m_jumin")(i) & "', "
|
||||
query = query & " '" & request("date") & "', '2', 'N', 'N', '" & request("myun") & "', 'CATI', '" & s_pay_unit & "', "
|
||||
query = query & " '" & request("tok_cnt")(i) & "', "
|
||||
query = query & " '" & s_sum & "', '', "
|
||||
query = query & " '" & request("cati_confirm_"&i) & "', '" & (add_count) & "', "
|
||||
query = query & " '" & request("addCntReason")(i) & "', '" & (addMoney) & "', '" & request("addMoneyReason")(i) & "', getdate(), '" & Session("User_Number") & "') "
|
||||
query = query & " SET NOCOUNT OFF; SELECT SCOPE_IDENTITY() ID; "
|
||||
elseif request("money_type") = "<22>μ<EFBFBD>" then
|
||||
query = " SET NOCOUNT ON;insert into T_MYUN_PAY( "
|
||||
query = query & " p_sn, prj_code, money_type, m_name, m_jumin, work_dt, pay_type, lunch, dinner, est_money, s_gubun, s_pay_unit, s_wan, s_sum, pay_month, confirm_yn "
|
||||
query = query & " , add_count, add_count_memo, add_money, add_money_memo, insert_dt, insert_user) "
|
||||
query = query & " values ( "
|
||||
query = query & " '" & request("intranet_project") & "', '" & request("prj_code") & "', '" & request("money_type") & "', '" & request("m_name")(i) & "', '" & request("m_jumin")(i) & "', "
|
||||
query = query & " '" & request("date") & "', '2', '"& lunchYN & "', '" & dinnerYN & "', '" & request("myun") & "', 'CATI', '" & s_pay_unit & "', "
|
||||
query = query & " '" & request("tok_cnt")(i) & "', "
|
||||
query = query & " '" & s_sum & "', '', "
|
||||
query = query & " '" & request("cati_confirm_"&i) & "', '" & (add_count) & "', "
|
||||
query = query & " '" & request("addCntReason")(i) & "', '" & (addMoney) & "', '" & request("addMoneyReason")(i) & "', getdate(), '" & Session("User_Number") & "') "
|
||||
query = query & " SET NOCOUNT OFF; SELECT SCOPE_IDENTITY() ID; "
|
||||
end if
|
||||
end if
|
||||
|
||||
'response.Write "INSERT, UPDATE : " & query & "<BR>"
|
||||
|
||||
Dim rsp
|
||||
set rsp = dbin.Execute(query)
|
||||
if id = "" then
|
||||
id = rsp("id")
|
||||
end if
|
||||
|
||||
query = " update new_cati.dbo.T_INSPECTION_CATI "
|
||||
query = query & " set intranet_pay = '"& id &"' "
|
||||
query = query & " where convert(varchar(20),tel_date,23) = '"& request("date") &"' "
|
||||
query = query & " and prj_code = '"& request("prj_code") &"' "
|
||||
query = query & " and tel_client_no = '"& request("s_client_no")(i) &"' "
|
||||
'response.Write "ID UPDATE : " & query & "<BR>"
|
||||
dbin.Execute query
|
||||
end if
|
||||
|
||||
'response.Write " id : " & rsp("id") & "<BR>"
|
||||
'response.Write " j : " & j & "<BR>"
|
||||
'response.Write " k : " & k & "<BR>"
|
||||
|
||||
END if
|
||||
next
|
||||
|
||||
dbin.Close
|
||||
%>
|
||||
<html>
|
||||
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
|
||||
<script>
|
||||
function goit() {
|
||||
alert('<27><><EFBFBD><EFBFBD><EFBFBD>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>');
|
||||
document.pms.action = 'interviewer_cati_check.asp';
|
||||
document.pms.submit();
|
||||
}
|
||||
</script>
|
||||
<body onLoad="goit()">
|
||||
<form name="pms" method="post">
|
||||
<input type="hidden" name="prj_code" id="prj_code" value="<%=request("prj_code") %>" >
|
||||
<input type="hidden" name="prj_name" id="prj_name" value="<%=request("prj_name") %>" >
|
||||
<input type="hidden" name="date" id="date" value="<%=request("date") %>" >
|
||||
<input type="hidden" name="money_type" value="<%=request("money_type") %>" >
|
||||
<input type="hidden" name="paperMoney" value="<%=request("paperMoney") %>" >
|
||||
<input type="hidden" name="dayMoney" value="<%=request("dayMoney") %>" >
|
||||
<input type="hidden" name="intranet_project" id="intranet_project" value=<%=request("intranet_project") %> >
|
||||
<input type="hidden" name="myun" value="<%=request("myun") %>" >
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
439
inspection/check_jumin.asp
Normal file
439
inspection/check_jumin.asp
Normal file
@@ -0,0 +1,439 @@
|
||||
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<OBJECT RUNAT=Server PROGID=ADODB.Recordset id=Rs></OBJECT>
|
||||
<%
|
||||
|
||||
|
||||
Response.Expires = 0
|
||||
'Response.Buffer = false
|
||||
dim jumin
|
||||
dim jumin_chk
|
||||
dim sql
|
||||
|
||||
dim err
|
||||
dim re_Db_value
|
||||
dim bank_name
|
||||
dim gubun_name
|
||||
dim m_grade_name
|
||||
dim grade_name_1
|
||||
dim grade_name_2
|
||||
dim grade_name_3
|
||||
dim grade_name_4
|
||||
dim grade_name_5
|
||||
dim grade_name_6
|
||||
dim grade_name_7
|
||||
|
||||
dim new_id
|
||||
dim web_posi
|
||||
|
||||
|
||||
jumin = Request.QueryString("jumin")
|
||||
web_posi = request("web_posi")
|
||||
|
||||
|
||||
Dim j
|
||||
Dim k
|
||||
Dim t
|
||||
Dim i
|
||||
Dim e
|
||||
Dim w
|
||||
Dim w2
|
||||
Dim d
|
||||
Dim m
|
||||
|
||||
Dim mm
|
||||
Dim dd
|
||||
Dim yy
|
||||
|
||||
Dim o
|
||||
|
||||
j = Trim(Replace(jumin, "-", ""))
|
||||
k = "234567892345"
|
||||
|
||||
e = ""
|
||||
w2 = ""
|
||||
w = ""
|
||||
|
||||
|
||||
If Len(j) = 0 Then
|
||||
e = "<22>߸<EFBFBD><DFB8><EFBFBD> <20>Է<EFBFBD>"
|
||||
else
|
||||
For i = 1 To Len(j) - 1
|
||||
If Asc(Mid(j, i, 1)) < Asc("0") Or Asc(Mid(j, i, 1)) > Asc("9") Then
|
||||
e = "<22>߸<EFBFBD><DFB8><EFBFBD> <20>Է<EFBFBD>"
|
||||
exit for
|
||||
end if
|
||||
t = t + (clng(Mid(j, i, 1)) * clng(Mid(k, i, 1)))
|
||||
Next
|
||||
|
||||
Select Case clng(Mid(j, 7, 1))
|
||||
Case 1, 2, 3, 4
|
||||
t = (11 - (t Mod 11)) Mod 10
|
||||
Case 5, 6, 7, 8
|
||||
t = (13 - (t Mod 11)) Mod 10
|
||||
Case Else
|
||||
e = "<22>߸<EFBFBD><DFB8><EFBFBD> <20><><EFBFBD><EFBFBD> ǥ<><C7A5>"
|
||||
End Select
|
||||
|
||||
Select Case clng(Mid(j, 7, 1))
|
||||
Case 1, 2, 5, 6
|
||||
m = 1900
|
||||
Case 3, 4, 7, 8
|
||||
m = 2000
|
||||
Case Else
|
||||
e = "<22>߸<EFBFBD><DFB8><EFBFBD> <20><><EFBFBD><EFBFBD> ǥ<><C7A5>"
|
||||
End Select
|
||||
|
||||
yy = clng(Mid(j, 1, 2)) + m
|
||||
mm = clng(Mid(j, 3, 2))
|
||||
dd = clng(Mid(j, 5, 2))
|
||||
|
||||
Select Case mm
|
||||
Case 1, 3, 5, 7, 8, 10, 12
|
||||
If clng(Mid(j, 5, 2)) > 31 Then
|
||||
e = "<22>ִ<EFBFBD> <20><> <20>ʰ<EFBFBD>"
|
||||
elseIf clng(Mid(j, 5, 2)) < 0 Then
|
||||
e = "<22><><EFBFBD><EFBFBD> <20><> <20>ʰ<EFBFBD>"
|
||||
end if
|
||||
Case 4, 6, 9, 11
|
||||
If clng(Mid(j, 5, 2)) > 30 Then
|
||||
e = "<22>ִ<EFBFBD> <20><> <20>ʰ<EFBFBD>"
|
||||
elseif clng(Mid(j, 5, 2)) < 0 Then
|
||||
e = "<22><><EFBFBD><EFBFBD> <20><> <20>ʰ<EFBFBD>"
|
||||
end if
|
||||
Case 2
|
||||
o = 28
|
||||
If yy Mod 4 = 0 Then
|
||||
o = 29
|
||||
end if
|
||||
If yy Mod 100 = 0 Then
|
||||
o = 28
|
||||
end if
|
||||
If yy Mod 400 = 0 Then
|
||||
o = 29
|
||||
end if
|
||||
|
||||
If clng(Mid(j, 5, 2)) > o Then
|
||||
e = "<22>ִ<EFBFBD> <20><> <20>ʰ<EFBFBD>"
|
||||
elseif clng(Mid(j, 5, 2)) < 0 Then
|
||||
e = "<22><><EFBFBD><EFBFBD> <20><> <20>ʰ<EFBFBD>"
|
||||
end if
|
||||
Case Else
|
||||
e = "<22>ִ<EFBFBD> <20><> <20>ʰ<EFBFBD>"
|
||||
End Select
|
||||
|
||||
|
||||
d = cStr(yy) & "-" & cStr(mm) & "-" & cStr(dd)
|
||||
' Response.Write yy & "<br>"
|
||||
' Response.Write year(date)
|
||||
|
||||
If cint(yy) > cint(year(date)) Then
|
||||
w = "<22><><EFBFBD><EFBFBD>:<3A><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ֹε<D6B9><CEB5>Ϲ<EFBFBD>ȣ"
|
||||
end if
|
||||
|
||||
If clng(Mid(j, Len(j), 1)) <> t Then
|
||||
e = "<22>߸<EFBFBD><DFB8><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>"
|
||||
End If
|
||||
end if
|
||||
|
||||
''/////////===============================
|
||||
'//==============
|
||||
'<27><>ȭ <20>ܱ<EFBFBD><DCB1><EFBFBD> <20>ֹι<D6B9>ȣ
|
||||
''<27>ܱ<EFBFBD><DCB1><EFBFBD><EFBFBD>ֹι<D6B9>ȣ<EFBFBD≯<EFBFBD>
|
||||
if mid(jumin,7,1) = "5" or mid(jumin,7,1) = "6" then
|
||||
e = ""
|
||||
w = ""
|
||||
end if
|
||||
'//==============
|
||||
''/////////===============================
|
||||
|
||||
|
||||
If e = "" Then
|
||||
jumin_chk = "<22><><EFBFBD><EFBFBD>"
|
||||
If w <> "" Then jumin_chk = "<22><><EFBFBD><EFBFBD>"
|
||||
Else
|
||||
jumin_chk = "<22><><EFBFBD><EFBFBD>"
|
||||
End If
|
||||
|
||||
|
||||
if web_posi = "fgi_jumin_chk" then
|
||||
sql = "select * from man_fgi where m_jumin = '" & jumin & "'"
|
||||
Rs.open sql, adoconn, adopenstatic, adlockreadonly
|
||||
if Rs.recordcount > 0 then
|
||||
jumin_chk = "<22><><EFBFBD><EFBFBD>"
|
||||
err = "<22>̹<EFBFBD> <20><><EFBFBD>ϵ<EFBFBD> <20>ֹι<D6B9>ȣ <20>Դϴ<D4B4>."
|
||||
end if
|
||||
Rs.close
|
||||
else
|
||||
sql = "select * from man where m_jumin = '" & jumin & "'"
|
||||
Rs.open sql, adoconn, adopenstatic, adlockreadonly
|
||||
if Rs.recordcount > 0 then
|
||||
jumin_chk = "<22><><EFBFBD><EFBFBD>"
|
||||
err = "<22>̹<EFBFBD> <20><><EFBFBD>ϵ<EFBFBD> <20>ֹι<D6B9>ȣ <20>Դϴ<D4B4>."
|
||||
end if
|
||||
Rs.close
|
||||
end if
|
||||
|
||||
|
||||
%>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<script language=javascript>
|
||||
|
||||
function select_jumin(sel_myun)
|
||||
{
|
||||
//##### IE<49><45> <20><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>(showmodal <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ٸ<EFBFBD> -- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 2018-03-14)
|
||||
var agent = navigator.userAgent.toLowerCase();
|
||||
if ((navigator.appName == 'Netscape' && agent.indexOf('trident') != -1) || (agent.indexOf("msie") != -1)) {
|
||||
window.returnValue = sel_myun;
|
||||
window.close();
|
||||
}else{
|
||||
setReturnValue(sel_myun);
|
||||
parent.window.returnValue = sel_myun;
|
||||
parent.window.close();
|
||||
}
|
||||
|
||||
//window.dialogArguments.re_value = sel_myun;
|
||||
//self.close();
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
<LINK rel="stylesheet" type="text/css" href="/lib/text.css">
|
||||
<meta http-equiv="content-type" content="text/html; charset=ks_c_5601-1987">
|
||||
<link rel="stylesheet" type="text/css" href="/css/basic.css">
|
||||
<script language="javascript" src="/js/common.js"></script>
|
||||
<script src="../../js/showModalDialogCallee.js"></script>
|
||||
<TITLE><3E>ֹι<D6B9>ȣ üũ</TITLE>
|
||||
</head>
|
||||
<body bgcolor='#FAFAD2'>
|
||||
<br><br>
|
||||
<form method=post name='go_pay'>
|
||||
<!-- <20><><EFBFBD><EFBFBD><EFBFBD>ɰ͵<C9B0> -->
|
||||
<div align=center>
|
||||
<table cellpadding="3" cellspacing="0" border="0" style="border-collapse:collapse;" width=750>
|
||||
<%if jumin_chk="<22><><EFBFBD><EFBFBD>" then %>
|
||||
<tr>
|
||||
<td >
|
||||
<09>Է<EFBFBD><D4B7>Ͻ<EFBFBD> <20>ֹι<D6B9>ȣ <%=jumin%> <20><> <font color=red><b><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>ȣ</b></font> <20>Դϴ<D4B4>.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align=right>
|
||||
<img src='/images/common/btn_input.jpg' title='<27><><EFBFBD><EFBFBD>' onclick="javascript:select_jumin('1')" style=" cursor:pointer">
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<% elseif err<>"" then %>
|
||||
|
||||
<%
|
||||
if web_posi = "fgi_jumin_chk" then
|
||||
sql = "select a.*, b.p_subject, b.p_intention from man_fgi as a "
|
||||
sql = sql & " inner join project as b on a.p_sn = b.p_sn "
|
||||
sql = sql & " where m_jumin = '" & jumin & "'"
|
||||
'& _
|
||||
' " and substring(b.p_field_end2,1,4) <> '2010'"
|
||||
Rs.open sql, adoconn, adopenstatic, adlockreadonly
|
||||
re_Db_value = ""
|
||||
re_Db_value = re_Db_value & left(Rs("m_jumin"),6) & "$$$"
|
||||
re_Db_value = re_Db_value & right(Rs("m_jumin"),7) & "$$$"
|
||||
re_Db_value = re_Db_value & Rs("m_name") & "$$$"
|
||||
re_Db_value = re_Db_value & Rs("m_tel") & "$$$"
|
||||
re_Db_value = re_Db_value & Rs("m_mobile") & "$$$"
|
||||
if isnull(Rs("m_note")) then
|
||||
re_Db_value = re_Db_value & Rs("m_note") & "$$$"
|
||||
else
|
||||
tmpstr = Rs("m_note")
|
||||
tmpstr = replace(Rs("m_note"),chr(10)+chr(13),"<br>")
|
||||
tmpstr = replace(Rs("m_note"),chr(13),"<br>")
|
||||
re_Db_value = re_Db_value & tmpstr & "$$$"
|
||||
end if
|
||||
re_Db_value = re_Db_value & Rs("m_filename") & "$$$"%>
|
||||
<tr>
|
||||
<td >
|
||||
<09>Է<EFBFBD><D4B7>Ͻ<EFBFBD> <20>ֹι<D6B9>ȣ <%=jumin%> <20><> <br>
|
||||
<%tmpstr = ""
|
||||
do while not Rs.EOF
|
||||
tmpstr = tmpstr & "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> : " & Rs("p_subject") & " ==> " & Rs("p_intention") & " ==> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> : " & rs("insert_date") & "<br>"
|
||||
Rs.MoveNext
|
||||
loop
|
||||
Rs.Close %>
|
||||
<font color=red><b><%=tmpstr%></b></font> <br><br>
|
||||
<09><> <20>̹<EFBFBD> <20>Է<EFBFBD><D4B7><EFBFBD> <20>Ǿ<EFBFBD> <20>ֽ<EFBFBD><D6BD>ϴ<EFBFBD>. "<22><><EFBFBD><EFBFBD>" <20><>ư<EFBFBD><C6B0> <20><><EFBFBD><EFBFBD><EFBFBD>ּ<EFBFBD><D6BC><EFBFBD>"<br><br>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align=right>
|
||||
<img src='/images/common/btn_cancel.jpg' title='<27><><EFBFBD><EFBFBD>' onclick='select_jumin("2");' style=" cursor:pointer">
|
||||
</td>
|
||||
</tr>
|
||||
<% re_Db_value = re_Db_value & tmpstr & "$$$"
|
||||
|
||||
else%>
|
||||
<tr>
|
||||
<td >
|
||||
<09>Է<EFBFBD><D4B7>Ͻ<EFBFBD> <20>ֹι<D6B9>ȣ <%=jumin%> <20><> <font color=red><b><3E>̹<EFBFBD> <20><><EFBFBD>ϵǾ<CFB5> <20>ִ<EFBFBD> <20><>ȣ</b></font> <20>Դϴ<D4B4>.<br><br>
|
||||
<09><><EFBFBD><EFBFBD><EFBFBD>ϽǷ<CFBD><C7B7><EFBFBD> "<22><><EFBFBD><EFBFBD>" <20><>ư<EFBFBD><C6B0> <20>ٸ<EFBFBD> <20><>ȣ<EFBFBD><C8A3> <20>Է<EFBFBD><D4B7>ϽǷ<CFBD><C7B7><EFBFBD> "<22>ݱ<EFBFBD>" <20><>ư<EFBFBD><C6B0> <20><><EFBFBD><EFBFBD><EFBFBD>ּ<EFBFBD><D6BC><EFBFBD>"<br><br>
|
||||
</td>
|
||||
</tr>
|
||||
<%sql = "select * from man where m_jumin = '" & jumin & "'"
|
||||
Rs.open sql, adoconn, adopenstatic, adlockreadonly
|
||||
'm_jumin m_offer_date m_name, m_bank, m_b_no, m_addres, m_tel, m_mobile, m_gubun, m_note
|
||||
bank_name = Rs("m_bank")
|
||||
gubun_name = Rs("m_gubun")
|
||||
m_grade_name = Rs("m_Grade")
|
||||
grade_name_1 = Rs("grade_1")
|
||||
grade_name_2 = Rs("grade_2")
|
||||
grade_name_3 = Rs("grade_3")
|
||||
grade_name_4 = Rs("grade_4")
|
||||
grade_name_5 = Rs("grade_5")
|
||||
grade_name_6 = Rs("grade_6")
|
||||
grade_name_7 = Rs("grade_7")
|
||||
m_id = Rs("id")
|
||||
new_id = Rs("new_id")
|
||||
re_Db_value = ""
|
||||
re_Db_value = re_Db_value & left(Rs("m_jumin"),6) & "$$$"
|
||||
re_Db_value = re_Db_value & right(Rs("m_jumin"),7) & "$$$"
|
||||
re_Db_value = re_Db_value & Rs("m_offer_date") & "$$$"
|
||||
re_Db_value = re_Db_value & Rs("m_name") & "$$$"
|
||||
re_Db_value = re_Db_value & Rs("m_bank") & "$$$"
|
||||
re_Db_value = re_Db_value & Rs("m_b_no") & "$$$"
|
||||
re_Db_value = re_Db_value & Rs("m_addres") & "$$$"
|
||||
re_Db_value = re_Db_value & Rs("m_tel") & "$$$"
|
||||
re_Db_value = re_Db_value & Rs("m_mobile") & "$$$"
|
||||
re_Db_value = re_Db_value & Rs("m_gubun") & "$$$"
|
||||
' re_Db_value = re_Db_value & TransHTML(Rs("m_note")) & "$$$"
|
||||
if isnull(Rs("m_note")) then
|
||||
re_Db_value = re_Db_value & Rs("m_note") & "$$$"
|
||||
else
|
||||
tmpstr = Rs("m_note")
|
||||
tmpstr = replace(Rs("m_note"),chr(10)+chr(13),"<br>")
|
||||
tmpstr = replace(Rs("m_note"),chr(13)," ")
|
||||
re_Db_value = re_Db_value & tmpstr & "$$$"
|
||||
end if
|
||||
re_Db_value = re_Db_value & Rs("m_Grade") & "$$$"
|
||||
re_Db_value = re_Db_value & Rs("grade_1") & "$$$"
|
||||
re_Db_value = re_Db_value & Rs("grade_2") & "$$$"
|
||||
re_Db_value = re_Db_value & Rs("grade_3") & "$$$"
|
||||
re_Db_value = re_Db_value & Rs("grade_4") & "$$$"
|
||||
re_Db_value = re_Db_value & Rs("grade_5") & "$$$"
|
||||
re_Db_value = re_Db_value & Rs("grade_6") & "$$$"
|
||||
re_Db_value = re_Db_value & Rs("grade_7") & "$$$"
|
||||
re_Db_value = re_Db_value & Rs("m_activity") & "$$$"
|
||||
|
||||
Rs.close
|
||||
|
||||
'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20≯<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
sql = "select * from category where <20><><EFBFBD><EFBFBD> = 'work' and code = '" & gubun_name & "'"
|
||||
Rs.open sql, adoconn, adopenstatic, adlockreadonly
|
||||
re_Db_value = re_Db_value & Rs("name") & "$$$"
|
||||
Rs.close
|
||||
|
||||
'<27><><EFBFBD><EFBFBD><EFBFBD≯<EFBFBD> <20><><EFBFBD>ٿ<EFBFBD><D9BF><EFBFBD>
|
||||
sql = "select * from bank where b_code = '" & bank_name & "'"
|
||||
Rs.open sql, adoconn, adopenstatic, adlockreadonly
|
||||
re_Db_value = re_Db_value & Rs("b_name") & "$$$"
|
||||
Rs.close
|
||||
|
||||
|
||||
'Grade<64≯<EFBFBD> <20><><EFBFBD>ٿ<EFBFBD><D9BF><EFBFBD>
|
||||
sql = "select * from category where <20><><EFBFBD><EFBFBD> = 'grade' and code = '" & m_grade_name & "'"
|
||||
Rs.open sql, adoconn, adopenstatic, adlockreadonly
|
||||
if Rs.recordCount > 0 then
|
||||
re_Db_value = re_Db_value & Rs("name") & "$$$"
|
||||
else
|
||||
re_Db_value = re_Db_value & "$$$"
|
||||
end if
|
||||
Rs.close
|
||||
|
||||
sql = "select * from category where <20><><EFBFBD><EFBFBD> = 'grade' and code = '" & grade_name_1 & "'"
|
||||
Rs.open sql, adoconn, adopenstatic, adlockreadonly
|
||||
if Rs.recordCount > 0 then
|
||||
re_Db_value = re_Db_value & Rs("name") & "$$$"
|
||||
else
|
||||
re_Db_value = re_Db_value & "$$$"
|
||||
end if
|
||||
Rs.close
|
||||
sql = "select * from category where <20><><EFBFBD><EFBFBD> = 'grade' and code = '" & grade_name_2 & "'"
|
||||
Rs.open sql, adoconn, adopenstatic, adlockreadonly
|
||||
if Rs.recordCount > 0 then
|
||||
re_Db_value = re_Db_value & Rs("name") & "$$$"
|
||||
else
|
||||
re_Db_value = re_Db_value & "$$$"
|
||||
end if
|
||||
Rs.close
|
||||
sql = "select * from category where <20><><EFBFBD><EFBFBD> = 'grade' and code = '" & grade_name_3 & "'"
|
||||
Rs.open sql, adoconn, adopenstatic, adlockreadonly
|
||||
if Rs.recordCount > 0 then
|
||||
re_Db_value = re_Db_value & Rs("name") & "$$$"
|
||||
else
|
||||
re_Db_value = re_Db_value & "$$$"
|
||||
end if
|
||||
Rs.close
|
||||
sql = "select * from category where <20><><EFBFBD><EFBFBD> = 'grade' and code = '" & grade_name_4 & "'"
|
||||
Rs.open sql, adoconn, adopenstatic, adlockreadonly
|
||||
if Rs.recordCount > 0 then
|
||||
re_Db_value = re_Db_value & Rs("name") & "$$$"
|
||||
else
|
||||
re_Db_value = re_Db_value & "$$$"
|
||||
end if
|
||||
Rs.close
|
||||
sql = "select * from category where <20><><EFBFBD><EFBFBD> = 'grade' and code = '" & grade_name_5 & "'"
|
||||
Rs.open sql, adoconn, adopenstatic, adlockreadonly
|
||||
if Rs.recordCount > 0 then
|
||||
re_Db_value = re_Db_value & Rs("name") & "$$$"
|
||||
else
|
||||
re_Db_value = re_Db_value & "$$$"
|
||||
end if
|
||||
Rs.close
|
||||
sql = "select * from category where <20><><EFBFBD><EFBFBD> = 'grade' and code = '" & grade_name_6 & "'"
|
||||
Rs.open sql, adoconn, adopenstatic, adlockreadonly
|
||||
if Rs.recordCount > 0 then
|
||||
re_Db_value = re_Db_value & Rs("name") & "$$$"
|
||||
else
|
||||
re_Db_value = re_Db_value & "$$$"
|
||||
end if
|
||||
Rs.close
|
||||
sql = "select * from category where <20><><EFBFBD><EFBFBD> = 'grade' and code = '" & grade_name_7 & "'"
|
||||
Rs.open sql, adoconn, adopenstatic, adlockreadonly
|
||||
if Rs.recordCount > 0 then
|
||||
re_Db_value = re_Db_value & Rs("name") & "$$$"
|
||||
else
|
||||
re_Db_value = re_Db_value & "$$$"
|
||||
end if
|
||||
Rs.close
|
||||
|
||||
|
||||
re_Db_value = re_Db_value & m_id & "$$$"
|
||||
re_Db_value = re_Db_value & new_id & "$$$"
|
||||
|
||||
%>
|
||||
<tr>
|
||||
<td align=right>
|
||||
<img src='/images/common/btn_modify2.jpg' title='<27><><EFBFBD><EFBFBD>' onclick='select_jumin("<%=re_Db_value%>");' style=" cursor:pointer">
|
||||
|
||||
<img src='/images/project/btn_sclose.gif' title='<27>ݱ<EFBFBD>' onclick='select_jumin("0");' style=" cursor:pointer">
|
||||
</td>
|
||||
</tr>
|
||||
<%end if%>
|
||||
<% else %>
|
||||
<tr>
|
||||
<td >
|
||||
<09>Է<EFBFBD><D4B7>Ͻ<EFBFBD> <20>ֹι<D6B9>ȣ <%=jumin%> <20><> <font color=red><b><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>ȣ</b></font> <20>Դϴ<D4B4>.<br>
|
||||
<09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> : <%=e%> <%=w%> <%=err%>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align=right>
|
||||
<img src='/images/common/btn_cancel.jpg' onclick="select_jumin('2');" style='CURSOR:pointer;' title='<27><><EFBFBD><EFBFBD>'>
|
||||
</td>
|
||||
</tr>
|
||||
<% end if %>
|
||||
</table>
|
||||
</div>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
61
inspection/cins_cnt.asp
Normal file
61
inspection/cins_cnt.asp
Normal file
@@ -0,0 +1,61 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<%
|
||||
Response.CharSet = "EUC-KR"
|
||||
|
||||
dim prj_code : prj_code = Request("prj_code")
|
||||
dim prj_name : prj_name = unescape(Request("prj_name"))
|
||||
%>
|
||||
<form id="prj_search" method="post">
|
||||
<table class="table table-sm table-sm2 table-bordered table-head tr-colors">
|
||||
<tr>
|
||||
<td align="center" colspan="5">(<%=prj_code %>) <%=prj_name %></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td align="center" ><3E>ٹ<EFBFBD><D9B9><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td align="center" ><3E>Ϸ<EFBFBD></td>
|
||||
<td align="center" ><3E><><EFBFBD><EFBFBD></td>
|
||||
<td align="center" ><3E>簨û</td>
|
||||
</tr>
|
||||
<%
|
||||
query = ""
|
||||
query = query &" select AA.* from "&VbCrlf
|
||||
query = query &" ( "&VbCrlf
|
||||
query = query &" select prj_code, tel_inspection_user as n_name, n_birth, tel_inspection_date as n_date, "&VbCrlf
|
||||
query = query &" count(case when b.tel_del_yn='N' and b.tel_result = '1' then '1' end) as t_cnt, "&VbCrlf
|
||||
query = query &" count(case when b.tel_del_yn='Y' and b.tel_result = '2' then '2' end) as r_cnt, "&VbCrlf
|
||||
query = query &" count(case when b.tel_del_yn='N' and b.tel_result = '2' then '3' end) as e_cnt "&VbCrlf
|
||||
query = query &" from "&VbCrlf
|
||||
query = query &" ( "&VbCrlf
|
||||
query = query &" select (select intranet_project from new_cati.dbo.project where prj_code = a.prj_code) as prj_code, tel_inspection_user, "&VbCrlf
|
||||
query = query &" case "&VbCrlf
|
||||
query = query &" when len(tel_inspection_uid) = 8 then (select p_no from project2.dbo.person where p_no=tel_inspection_uid) "&VbCrlf
|
||||
query = query &" else (select left(m_jumin,6) from project2.dbo.man where id=tel_inspection_uid) "&VbCrlf
|
||||
query = query &" end as n_birth, "&VbCrlf
|
||||
query = query &" convert(varchar,tel_inspection_date,23) as tel_inspection_date, "&VbCrlf
|
||||
query = query &" tel_del_yn, tel_result "&VbCrlf
|
||||
query = query &" from new_cati.dbo.T_INSPECTION_CATI as a "&VbCrlf
|
||||
query = query &" where a.tel_del_yn <> '' and a.tel_inspection_user <> '' "&VbCrlf
|
||||
query = query &" ) as b "&VbCrlf
|
||||
query = query &" group by b.prj_code, b.tel_inspection_user, b.n_birth, b.tel_inspection_date "&VbCrlf
|
||||
query = query &" ) as AA "&VbCrlf
|
||||
query = query &" where AA.prj_code = '" & prj_code & "' "&VbCrlf
|
||||
query = query &" order by AA.prj_code, AA.n_name, AA.n_birth "&VbCrlf
|
||||
|
||||
Rs.open query, adoconn, adopenstatic, adlockreadonly
|
||||
while not rs.eof
|
||||
%>
|
||||
<tr class="prj_pick">
|
||||
<td class='text-center'><%=Rs("n_name") %></td>
|
||||
<td class='text-center'><%=Rs("n_date") %></td>
|
||||
<td class='text-center'><%=Rs("t_cnt") %></td>
|
||||
<td class='text-center'><%=Rs("e_cnt") %></td>
|
||||
<td class='text-center'><%=Rs("r_cnt") %></td>
|
||||
</tr>
|
||||
<%
|
||||
rs.movenext
|
||||
wend
|
||||
Rs.close
|
||||
%>
|
||||
</table>
|
||||
</form>
|
||||
429
inspection/cins_confirm.asp
Normal file
429
inspection/cins_confirm.asp
Normal file
@@ -0,0 +1,429 @@
|
||||
<!-- #include virtual = "include/header.asp" -->
|
||||
<!-- #include virtual = "include/left.asp" -->
|
||||
<%
|
||||
Dim prj_code : prj_code = Request("prj_code")
|
||||
Dim prj_name : prj_name = Request("prj_name")
|
||||
%>
|
||||
<!-- Content Wrapper. Contains page content -->
|
||||
<div class="content-wrapper">
|
||||
<!-- Content Header (Page header) -->
|
||||
<div class="content-header">
|
||||
<h1><3E><>û <20>ٹ<EFBFBD>Ȯ<EFBFBD><C8AE></h1>
|
||||
</div>
|
||||
<!-- /.content-header -->
|
||||
<!-- Main content -->
|
||||
<div class="content-body">
|
||||
<div class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<% Dim f_menu : f_menu = "nk" %>
|
||||
<!-- #include file = "f_menu.asp" -->
|
||||
<form name='punchform' id="punchform" method='post'>
|
||||
<div id="prj_list"></div>
|
||||
<table width="1200px" class="table table-sm table-sm2 table-bordered table-head tr-colors">
|
||||
<tr>
|
||||
<td align="center" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ</td>
|
||||
<td align="center" id="prj_sel" style="cursor:pointer;">
|
||||
<span class="prj_name"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD></span>
|
||||
<!--<button type="button" id="prj_sel"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD></button>-->
|
||||
</td>
|
||||
<td align="center"><button type="button" id="all_cnt" ><3E><>ü Ÿ<><C5B8> <20><><EFBFBD><EFBFBD></button></td>
|
||||
<td align="center"><button type="button" id="excel_down" ><3E><><EFBFBD><EFBFBD> <20>ٿ<EFBFBD><D9BF>ε<EFBFBD></button></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align:center;"><3E>ܰ<EFBFBD> <20><><EFBFBD><EFBFBD></td>
|
||||
<td style="text-align:left;"><input type="text" name="all_unit_cost" id="all_unit_cost" value="" /> <20><> <button type="button" id="all_unit"><3E>ϰ<EFBFBD> <20><><EFBFBD><EFBFBD></button></td>
|
||||
<td style="text-align:center;">Confrim ó<><C3B3></td>
|
||||
<td style="text-align:center;"><button type="button" id="all_check"><3E><>ü Ȯ<><C8AE></button></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='text-center' colspan="4">
|
||||
<table id="p_list" class="table table-sm table-sm2 table-bordered table-head tr-colors">
|
||||
<tr>
|
||||
<td align="center" ><3E><><EFBFBD><EFBFBD></td>
|
||||
<td align="center" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20>ڵ<EFBFBD></td>
|
||||
<td align="center" ><3E><>ó</td>
|
||||
<td align="center" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td align="center" ><3E>ٹ<EFBFBD><D9B9><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td align="center" ><3E>Ϸ<EFBFBD></td>
|
||||
<td align="center" ><3E><><EFBFBD><EFBFBD></td>
|
||||
<td align="center" ><3E>簨û</td>
|
||||
<td align="center" style="width:15%;"><3E>ܰ<EFBFBD></td>
|
||||
<td align="center" style="width:10%;"><3E>հ<EFBFBD></td>
|
||||
<td align="center" ><3E><><EFBFBD><EFBFBD></td>
|
||||
<td align="center" >Ȯ<><C8AE></td>
|
||||
</tr>
|
||||
<%
|
||||
dim no : no = 0
|
||||
query = ""
|
||||
query = query &" select isnull(cast(BB.Id as varchar),'') as ID, isnull(cast(CC.Id as varchar),'') as Pay_id, AA.*,isnull(BB.job_add_time_memo,'') as job_add_time_memo, isnull(BB.job_confirm_yn,'N') as job_confirm_yn, "&VbCrlf
|
||||
query = query &" isnull(CC.s_pay_unit,'0') as s_pay_unit, isnull(CC.s_wan,'0') as s_wan, isnull(CC.s_sum, '0') as s_sum, isnull(CC.insert_user,'') as insert_user, "&VbCrlf
|
||||
query = query &" isnull(CC.attribute01,'') as attribute01, isnull(CC.attribute05,'') as attribute05, "&VbCrlf
|
||||
query = query &" case when DD.d_order_cnt = '77' then '<27><><EFBFBD><EFBFBD> <20>Ϸ<EFBFBD>' when DD.d_order_cnt is null then '' else '<27><><EFBFBD><EFBFBD> <20><>' end as d_order_cnt from "&VbCrlf
|
||||
query = query &" ( "&VbCrlf
|
||||
query = query &" select prj_code, tel_inspection_user as n_name, n_birth, tel_inspection_date as n_date, "&VbCrlf
|
||||
query = query &" count(case when b.tel_del_yn='N' and b.tel_result = '1' then '1' end) as t_cnt, "&VbCrlf
|
||||
query = query &" count(case when b.tel_del_yn='Y' and b.tel_result = '2' then '2' end) as r_cnt, "&VbCrlf
|
||||
query = query &" count(case when b.tel_del_yn='N' and b.tel_result = '2' then '3' end) as e_cnt "&VbCrlf
|
||||
query = query &" from "&VbCrlf
|
||||
query = query &" ( "&VbCrlf
|
||||
query = query &" select (select intranet_project from new_cati.dbo.project where prj_code = a.prj_code) as prj_code, tel_inspection_user, "&VbCrlf
|
||||
query = query &" case "&VbCrlf
|
||||
query = query &" when len(tel_inspection_uid) = 8 then (select cast(p_no as varchar) as p_no from project2.dbo.person where p_no=tel_inspection_uid) "&VbCrlf
|
||||
query = query &" else (select left(m_jumin,6) from project2.dbo.man where id=tel_inspection_uid) "&VbCrlf
|
||||
query = query &" end as n_birth, "&VbCrlf
|
||||
query = query &" convert(varchar,tel_inspection_date,23) as tel_inspection_date, "&VbCrlf
|
||||
query = query &" tel_del_yn, tel_result "&VbCrlf
|
||||
query = query &" from new_cati.dbo.T_INSPECTION_CATI as a "&VbCrlf
|
||||
query = query &" where a.tel_del_yn <> '' and a.tel_inspection_user <> '' "&VbCrlf
|
||||
query = query &" ) as b "&VbCrlf
|
||||
query = query &" group by b.prj_code, b.tel_inspection_user, b.n_birth, b.tel_inspection_date "&VbCrlf
|
||||
query = query &" ) as AA "&VbCrlf
|
||||
query = query &" left join "&VbCrlf
|
||||
query = query &" ( "&VbCrlf
|
||||
query = query &" select id, p_child_sn, neakeun_name, left(neakeun_jumin,6) as neakeun_jumin, date, job_add_time_memo, job_confirm_yn, workload from project2.dbo.neakeun_work "&VbCrlf
|
||||
query = query &" where p_sebu='<27><>û' and ISNULL(workload, '') = '' "&VbCrlf
|
||||
query = query &" ) BB on AA.n_name=BB.neakeun_name and AA.n_birth=BB.neakeun_jumin and left(AA.prj_code,11)=BB.p_child_sn and AA.n_date=BB.date "&VbCrlf
|
||||
query = query &" left join "&VbCrlf
|
||||
query = query &" ( "&VbCrlf
|
||||
query = query &" select id, p_sn, m_name, left(m_jumin,6) as m_jumin, s_pay_unit, s_wan, s_sum, insert_user, attribute01, attribute05 from project2.dbo.T_NEAKEUN_PAY "&VbCrlf
|
||||
query = query &" where s_gubun='<27><>û' AND ISNULL(attribute02, '') = '' "&VbCrlf
|
||||
query = query &" ) CC on AA.n_name=CC.m_name and AA.n_birth=CC.m_jumin and left(AA.prj_code,11)=CC.p_sn and BB.id=CC.attribute01 "&VbCrlf
|
||||
query = query &" left join "&VbCrlf
|
||||
query = query &" ( "&VbCrlf
|
||||
query = query &" select d_no, d_order_cnt from project2.dbo.Document "&VbCrlf
|
||||
query = query &" where d_delok='N' "&VbCrlf
|
||||
query = query &" ) DD on CC.attribute05=DD.d_no "&VbCrlf
|
||||
query = query &" where prj_code = '" & prj_code & "' "&VbCrlf
|
||||
query = query &" and (n_birth is not null and len(cast(n_birth as varchar)) <> 8) "&VbCrlf
|
||||
query = query &" order by AA.prj_code, AA.n_name, AA.n_birth,AA.n_date "&VbCrlf
|
||||
'Response.Write query
|
||||
Rs.open query, adoconn, adopenstatic, adlockreadonly
|
||||
Dim input_readonly
|
||||
while not rs.eof
|
||||
If rs("job_confirm_yn") = "Y" Then
|
||||
input_readonly = "readonly='reaonldy'"
|
||||
else
|
||||
input_readonly = ""
|
||||
End If
|
||||
no = no + 1
|
||||
%>
|
||||
<tr>
|
||||
<td ><%=no %></td>
|
||||
<td ><%=rs("prj_code") %></td>
|
||||
<td ><%=rs("n_name") %><input type="hidden" name="n_id" class="n_id" value="<%=rs("ID") %>" /><input type="hidden" name="n_pay_id" class="n_pay_id" value="<%=rs("Pay_id") %>" /></td>
|
||||
<td ><%=rs("n_birth") %></td>
|
||||
<td ><%=rs("n_date") %></td>
|
||||
<td ><%=rs("t_cnt") %></td>
|
||||
<td ><%=rs("e_cnt") %></td>
|
||||
<td ><%=rs("r_cnt") %></td>
|
||||
<td style="text-align:right;"><input type="text" name="p_unit" value="<%=rs("s_pay_unit") %>" class="p_unit" tabindex="<%=no %>" <%=input_readonly %>/><3E><></td>
|
||||
<td style="text-align:right;"><%=FormatNumber(rs("s_sum"),0) %><3E><></td>
|
||||
<td ><input type="text" name="p_etc" value="<%=rs("job_add_time_memo") %>" class="p_etc" tabindex="1000+<%=no %>" <%=input_readonly %> style="width:100%;"/></td>
|
||||
<td >
|
||||
<%If rs("job_confirm_yn") = "N" Then%>
|
||||
<button type="button" class="confirm" data-value="save">Ȯ<><C8AE></button>
|
||||
<%Else %>
|
||||
<%If rs("attribute05") = "" Then %>
|
||||
<button type="button" class="confirm" data-value="del" style="background:#CA7C7B;"><3E><><EFBFBD><EFBFBD></button>
|
||||
<%Else %>
|
||||
<b style="color:red;"><%=rs("d_order_cnt") %></b>
|
||||
<%End If %>
|
||||
<%End If %>
|
||||
</td>
|
||||
</tr>
|
||||
<%
|
||||
rs.movenext
|
||||
wend
|
||||
|
||||
rs.Close
|
||||
%>
|
||||
</table>
|
||||
<button type="button" id="pay_go"><3E><><EFBFBD><EFBFBD></button>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.content -->
|
||||
<!-- REQUIRED SCRIPTS -->
|
||||
<script>
|
||||
var prjDialog;
|
||||
$(function () {
|
||||
prj_code = "<%=prj_code %>";
|
||||
prj_name = "<%=prj_name %>";
|
||||
|
||||
if (prj_code != "") {
|
||||
$(".prj_name").text("(" + prj_code + ") " + prj_name);
|
||||
}else{
|
||||
$("#p_list").css("display", "none");
|
||||
$("#p_list").parent("td").text("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD><EFBFBD>Ͽ<EFBFBD> <20>ֽʽÿ<CABD>.");
|
||||
}
|
||||
|
||||
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD>
|
||||
$("#prj_sel").click(function () {
|
||||
var url = "prj_list_modal.asp?gubun=v2";
|
||||
modal_open(url, "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD>");
|
||||
});
|
||||
|
||||
//<2F><>ü Ÿ<><C5B8>
|
||||
$("#all_cnt").click(function () {
|
||||
if (prj_code == "") {
|
||||
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD><EFBFBD>Ͽ<EFBFBD> <20>ֽʽÿ<CABD>.");
|
||||
return false;
|
||||
} else {
|
||||
var url = "cins_cnt.asp?prj_code=" + prj_code + "&prj_name=" + escape(prj_name);
|
||||
modal_open(url, "<22><>ü Ÿ<><C5B8> <20><><EFBFBD><EFBFBD>");
|
||||
}
|
||||
});
|
||||
|
||||
//<2F><>ü <20>ܰ<EFBFBD>
|
||||
$("#all_unit_cost").click(function () {
|
||||
unit_evt($(this));
|
||||
});
|
||||
|
||||
//<2F><>ü <20>ܰ<EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
$("#all_unit").click(function () {
|
||||
if($("#all_unit_cost").val() == ""){
|
||||
alert("<22><>ü <20>ܰ<EFBFBD><DCB0><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ͽ<EFBFBD> <20>ֽñ<D6BD> <20>ٶ<EFBFBD><D9B6>ϴ<EFBFBD>.");
|
||||
return false;
|
||||
}else{
|
||||
if (confirm("<22>ϰ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ÿ<EFBFBD><C3BF><EFBFBD> <20>κ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ܰ<EFBFBD><DCB0><EFBFBD> <20><><EFBFBD><EFBFBD> <20>˴ϴ<CBB4>.\n<><6E><EFBFBD><EFBFBD> <20>Ͻðڽ<C3B0><DABD>ϱ<EFBFBD>?")) {
|
||||
var all_unit_cost = $("#all_unit_cost").val();
|
||||
$(".p_unit").each(function (e) {
|
||||
if ($(".p_unit").eq(e).prop("readonly") == false) {
|
||||
$(".p_unit").eq(e).val(all_unit_cost);
|
||||
|
||||
var sum = cnt_sum($(this));
|
||||
if (isNaN(sum)) {
|
||||
$(this).parent("td").next().text(0 + " <20><>");
|
||||
} else {
|
||||
$(this).parent("td").next().text(commify(Math.ceil(sum)));
|
||||
}
|
||||
}
|
||||
});
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
//<2F><>ü Confirm
|
||||
$("#all_check").click(function () {
|
||||
if (confirm("Ȯ<><C8AE> ó<><C3B3> <20>ȵ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>鸸 ó<><C3B3> <20>˴ϴ<CBB4>.\n<><6E><EFBFBD><EFBFBD> <20>Ͻðڽ<C3B0><DABD>ϱ<EFBFBD>?")) {
|
||||
$(".confirm").each(function () {
|
||||
var gubun = $(this).text();
|
||||
if (gubun == "Ȯ<><C8AE>") {
|
||||
$(this).trigger("click");
|
||||
}
|
||||
});
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
//<2F><><EFBFBD><EFBFBD> Confirm
|
||||
$(".confirm").click(function () {
|
||||
var gubun = "v2";
|
||||
var obj = $(this);
|
||||
var prj_code = $(this).parent("td").siblings().eq(1).text();
|
||||
var n_name = $(this).parent("td").siblings().eq(2).text();
|
||||
var n_id = $(this).parent("td").siblings().eq(2).children(".n_id").val();
|
||||
var n_pay_id = $(this).parent("td").siblings().eq(2).children(".n_pay_id").val();
|
||||
var n_birth = $(this).parent("td").siblings().eq(3).text();
|
||||
var n_date = $(this).parent("td").siblings().eq(4).text();
|
||||
var n_cnt = parseInt($(this).parent("td").siblings().eq(5).text()) + parseInt($(this).parent("td").siblings().eq(6).text()) + parseInt($(this).parent("td").siblings().eq(7).text());
|
||||
var p_danga = $(this).parent("td").siblings().eq(8).children($(".p_unit")).val();
|
||||
var p_sum = $(this).parent("td").siblings().eq(9).text().replace(/,/g, "");
|
||||
p_sum = p_sum.replace('<27><>', '');
|
||||
var p_etc = $(this).parent("td").siblings().eq(10).children($(".p_etc")).val();
|
||||
|
||||
if (p_danga == "" || p_sum == "") {
|
||||
alert("<22>ݾ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ȵǾ<C8B5> <20>ֽ<EFBFBD><D6BD>ϴ<EFBFBD>.");
|
||||
$(this).parent("td").siblings().eq(8).children($(".p_unit")).focus();
|
||||
return false
|
||||
}
|
||||
|
||||
if (obj.text() == "Ȯ<><C8AE>") {
|
||||
url = "neakeun_save_ajax.asp";
|
||||
} else {
|
||||
url = "neakeun_del_ajax.asp";
|
||||
}
|
||||
|
||||
ajax_confirm(url, gubun, prj_code, escape(n_name), n_id, n_pay_id, n_birth, n_date, n_cnt, p_danga, p_sum, escape(p_etc), obj);
|
||||
});
|
||||
|
||||
//<2F><><EFBFBD><EFBFBD> <20>ܰ<EFBFBD>
|
||||
$(".p_unit").click(function () {
|
||||
unit_evt($(this));
|
||||
});
|
||||
|
||||
//<2F>ܰ<EFBFBD><DCB0><EFBFBD> <20>հ<EFBFBD>
|
||||
$(".p_unit").each(function (e) {
|
||||
$(this).keyup(function () {
|
||||
|
||||
var sum = cnt_sum($(this));
|
||||
|
||||
if (isNaN(sum)) {
|
||||
$(this).parent("td").next().text(0+" <20><>");
|
||||
} else {
|
||||
$(this).parent("td").next().text(commify(Math.ceil(sum)));
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
$("#pay_go").click(function () {
|
||||
var url = "/approval/doc_myun_pay.asp?title=<3D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ǽ<EFBFBD>";
|
||||
$("#punchform").attr("action", url);
|
||||
$("#punchform").submit();
|
||||
});
|
||||
|
||||
$("#excel_down").click(function () {
|
||||
var d = new Date()
|
||||
$("#p_list").table2excel({
|
||||
name: "<%=prj_code %>_" + d.getFullYear() + d.getMonth() + d.getDate(),
|
||||
filename: "<%=prj_code %>_" + d.getFullYear() + d.getMonth() + d.getDate(),
|
||||
fileext: ".xls",
|
||||
exclude_inputs: true
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
//<2F>ܰ<EFBFBD>, <20>հ<EFBFBD>
|
||||
function cnt_sum(obj){
|
||||
var tok = parseInt(obj.parent("td").siblings().eq(5).text());
|
||||
var error = parseInt(obj.parent("td").siblings().eq(6).text());
|
||||
var notel = parseInt(obj.parent("td").siblings().eq(7).text());
|
||||
var cnt = tok + error + notel;
|
||||
var unit_cost = parseFloat(obj.val());
|
||||
|
||||
return cnt * unit_cost;
|
||||
}
|
||||
|
||||
function modal_open(url, x) {
|
||||
$("body").css({
|
||||
overflow: 'hidden'
|
||||
});
|
||||
prjDialog = $("#prj_list").dialog({
|
||||
autoOpen: false,
|
||||
modal: true,
|
||||
resizable: false,
|
||||
position: { my: "center", at: "top" },
|
||||
show: "blind",
|
||||
width: "600",
|
||||
height: "500",
|
||||
title: x,
|
||||
open: function () {
|
||||
$(".ui-widget-overlay").css({
|
||||
opacity: 0.5,
|
||||
filter: "Alpha(Opacity=50)",
|
||||
backgroundColor: "gray"
|
||||
});
|
||||
},
|
||||
close: function (event, ui) {
|
||||
$("body").css({
|
||||
overflow: 'inherit'
|
||||
});
|
||||
url = "";
|
||||
prjDialog.dialog("close");
|
||||
}
|
||||
});
|
||||
|
||||
prjDialog.load(url, function () {
|
||||
prjDialog.dialog("open");
|
||||
});
|
||||
}
|
||||
|
||||
function unit_evt(obj) {
|
||||
$(obj).css('imeMode', 'disabled').keypress(function (evt) {
|
||||
if (evt.which && (evt.which < 45 || evt.which > 57)) {
|
||||
evt.preventDefault();
|
||||
}
|
||||
|
||||
var charCode = (evt.which) ? evt.which : event.keyCode;
|
||||
if (charCode != 46 && charCode > 31 && (charCode < 48 || charCode > 57)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
var regexp = /^\d*[.]\d*$/;//<2F>Ҽ<EFBFBD><D2BC><EFBFBD>
|
||||
var val = $(this).val();
|
||||
|
||||
if (regexp.test(val)) {//<2F>Ҽ<EFBFBD><D2BC><EFBFBD> Prevent
|
||||
if (charCode == 46) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}).keyup(function (evt) {
|
||||
if ($(this).val() != null && $(this).val() != '') {
|
||||
$(this).val($(this).val().replace(/[^\.0-9]/g, ''));
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
//Confirm
|
||||
function ajax_confirm(url, gubun, prj_code, n_name, n_id, n_pay_id, n_birth, n_date, n_cnt, p_danga, p_sum, p_etc, obj) {
|
||||
$.ajax({
|
||||
url: url,
|
||||
type: "get",
|
||||
data:
|
||||
{
|
||||
"gubun": gubun,
|
||||
"n_id": n_id,
|
||||
"n_pay_id": n_pay_id,
|
||||
"prj_code": prj_code,
|
||||
"n_name": n_name,
|
||||
"n_birth": n_birth,
|
||||
"n_date": n_date,
|
||||
"n_cnt": n_cnt,
|
||||
"p_danga": p_danga,
|
||||
"p_sum": p_sum,
|
||||
"p_etc": p_etc,
|
||||
},
|
||||
dataType:"JSON",
|
||||
success: function (data) {
|
||||
console.log(data);
|
||||
if (data.ok == "1") {
|
||||
if (obj.text() == "Ȯ<><C8AE>") {
|
||||
if (n_pay_id == "") {
|
||||
obj.parent("td").siblings().eq(2).children(".n_id").val(data.id);
|
||||
obj.parent("td").siblings().eq(2).children(".n_pay_id").val(data.pay_id);
|
||||
obj.parent("td").siblings().eq(8).children(".p_unit").prop("readonly",true);
|
||||
obj.parent("td").siblings().eq(10).children(".p_etc").prop("readonly", true);
|
||||
}
|
||||
obj.text("<22><><EFBFBD><EFBFBD>");
|
||||
obj.css("background", "#CA7C7B");
|
||||
} else {
|
||||
if (n_pay_id != "") {
|
||||
obj.parent("td").siblings().eq(2).children(".n_id").val("");
|
||||
obj.parent("td").siblings().eq(2).children(".n_pay_id").val("");
|
||||
obj.parent("td").siblings().eq(8).children(".p_unit").prop("readonly", false);
|
||||
obj.parent("td").siblings().eq(10).children(".p_etc").prop("readonly", false);
|
||||
}
|
||||
obj.text("Ȯ<><C8AE>");
|
||||
obj.css("background", "");
|
||||
}
|
||||
} else {
|
||||
if (data.ok == "2") {
|
||||
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ֽ<EFBFBD><D6BD>ϴ<EFBFBD>.\n<><6E><EFBFBD><EFBFBD><EFBFBD>ڿ<EFBFBD><DABF><EFBFBD> <20><><EFBFBD><EFBFBD> <20>ٶ<EFBFBD><D9B6>ϴ<EFBFBD>.");
|
||||
} else {
|
||||
alert("<22><><EFBFBD><EFBFBD>!\n <20>Է<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ٽ<EFBFBD> Ȯ<><C8AE> <20>Ͽ<EFBFBD> <20>ֽñ<D6BD> <20>ٶ<EFBFBD><D9B6>ϴ<EFBFBD>.");
|
||||
}
|
||||
|
||||
}
|
||||
},
|
||||
error: function () {
|
||||
alert("<22><><EFBFBD><EFBFBD> <20><EFBFBD>\n<><6E><EFBFBD><EFBFBD><EFBFBD>ڿ<EFBFBD><DABF><EFBFBD> <20><><EFBFBD><EFBFBD> <20>Ͻʽÿ<CABD>.");
|
||||
}
|
||||
});
|
||||
}
|
||||
</script>
|
||||
</div>
|
||||
<!-- /.content-wrapper -->
|
||||
<!-- #include virtual = "include/footer.asp" -->
|
||||
651
inspection/coding_confirm.asp
Normal file
651
inspection/coding_confirm.asp
Normal file
@@ -0,0 +1,651 @@
|
||||
<!-- #include virtual = "include/header.asp" -->
|
||||
<!-- #include virtual = "include/left.asp" -->
|
||||
<%
|
||||
Dim query, p_no : p_no = session("User_Number")
|
||||
%>
|
||||
<!-- Content Wrapper. Contains page content -->
|
||||
<div class="content-wrapper">
|
||||
<style>
|
||||
#ufile{
|
||||
width:100%;
|
||||
}
|
||||
#regPrjDialog table tr td {
|
||||
padding:2px;
|
||||
text-align:center;
|
||||
}
|
||||
#regPrjDialog table tr:nth-child(n+2) td:nth-child(2) {
|
||||
text-align:left;
|
||||
}
|
||||
#historyTb > tbody > tr > td{
|
||||
text-align:center;
|
||||
letter-spacing: 0px;
|
||||
}
|
||||
#historyTb > tbody > tr:first-child > td{
|
||||
text-align:left;
|
||||
}
|
||||
#historyTb > tbody > tr:nth-child(-n+2) > td{
|
||||
font-weight:bold;
|
||||
}
|
||||
.delPay_btn{
|
||||
cursor: pointer;
|
||||
}
|
||||
#resTb > tbody > tr > td{
|
||||
text-align:center;
|
||||
letter-spacing: 0px;
|
||||
}
|
||||
#resTb > tbody > tr > td:nth-child(1){ width:160px; }
|
||||
#resTb > tbody > tr > td:nth-child(2){ width:135px; }
|
||||
#resTb > tbody > tr > td:nth-child(3){ width:135px; }
|
||||
#resTb > tbody > tr > td:nth-child(4){ width:90px; }
|
||||
#resTb > tbody > tr > td:nth-child(5){ width:110px; }
|
||||
#resTb > tbody > tr > td:nth-child(6){ width:170px; }
|
||||
#resTb > tbody > tr:nth-child(n+2) > td:nth-child(2), #resTb > tbody > tr > td:nth-child(3){
|
||||
text-align:right;
|
||||
padding-right:15px;
|
||||
}
|
||||
#resTb > tbody > tr:nth-child(-n+2) > td{
|
||||
font-weight:bold;
|
||||
}
|
||||
#resTb input[type='checkbox']{
|
||||
transform: scale(1.2);
|
||||
}
|
||||
#loadingBar{
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
top: 0px;
|
||||
left: 0px;
|
||||
background-color: rgba(255,255,255,0.5);
|
||||
z-index: 5001;
|
||||
}
|
||||
#loadingBar img{
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
top: 50%;
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
}
|
||||
#resTb input[name='calcPay'], #confirmTb input[name='resultCalcPay']{
|
||||
cursor: default;
|
||||
border: 0;
|
||||
width: 100px;
|
||||
font-size:12px;
|
||||
text-align: center;
|
||||
outline: none;
|
||||
background-color:transparent;
|
||||
}
|
||||
|
||||
input{
|
||||
letter-spacing: 0px;
|
||||
}
|
||||
|
||||
#confirmTb > tbody > tr > td{
|
||||
text-align:center;
|
||||
letter-spacing: 0px;
|
||||
}
|
||||
#confirmTb > tbody > tr:nth-child(-n+2) > td{
|
||||
font-weight:bold;
|
||||
}
|
||||
|
||||
#lastSumTb > tbody > tr > td{
|
||||
text-align:center;
|
||||
letter-spacing: 0px;
|
||||
}
|
||||
#lastSumTb > tbody > tr:nth-child(-n+2) > td{
|
||||
font-weight:bold;
|
||||
}
|
||||
</style>
|
||||
<!-- Content Header (Page header) -->
|
||||
<div class="content-header">
|
||||
<h1><3E>ڵ<EFBFBD> <20>ٹ<EFBFBD>Ȯ<EFBFBD><C8AE></h1>
|
||||
</div>
|
||||
<!-- /.content-header -->
|
||||
<!-- Main content -->
|
||||
<div class="content-body">
|
||||
<div class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<% Dim f_menu : f_menu = "nk" %>
|
||||
<!-- #include file = "f_menu.asp" -->
|
||||
<div id="loadingBar" style="display: none;"><img src="/images/loadingBar.gif"></div>
|
||||
<table>
|
||||
<tr>
|
||||
<td style="padding:5px 0px 10px 0px;">
|
||||
<input type="button" id="fudialog_btn" value="<22>ڵ<EFBFBD> <20>۾<EFBFBD><DBBE><EFBFBD> EXCEL <20><><EFBFBD><EFBFBD>"/>
|
||||
<div id="fileUploadDialog">
|
||||
<form id='codingform' method='post' enctype="multipart/form-data" action="">
|
||||
<input type="file" id="ufile" name="ufile" />
|
||||
</form>
|
||||
</div>
|
||||
<input type="button" id="history_btn" value="<22><><EFBFBD>ϳ<EFBFBD><CFB3><EFBFBD> <20><><EFBFBD><EFBFBD>"/>
|
||||
<div id="historyDialog">
|
||||
<table id="historyTb" class="table table-sm table-sm2 table-bordered table-head tr-colors">
|
||||
<tr>
|
||||
<td colspan="8"><3E><><EFBFBD><EFBFBD><EFBFBD>Ϸ<EFBFBD><CFB7><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>Ͽ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ʽ<EFBFBD><CABD>ϴ<EFBFBD>.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Excel<65><6C><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD>ڵ<EFBFBD></td>
|
||||
<td><3E>ڵ<EFBFBD><DAB5>ٹ<EFBFBD><D9B9><EFBFBD></td>
|
||||
<td><3E><><EFBFBD><EFBFBD></td>
|
||||
<td><3E>ܰ<EFBFBD></td>
|
||||
<td><3E><><EFBFBD><EFBFBD> <20><> <20>ܰ<EFBFBD></td>
|
||||
<td><3E><><EFBFBD><EFBFBD></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<%
|
||||
Query = " SELECT NP.attribute01, NP.p_sn, NP.m_name, LEFT(NP.m_jumin, 6) AS m_jumin, "
|
||||
Query = Query & " NP.work_dt, NP.s_wan, NP.s_pay_unit, NP.s_sum, "
|
||||
Query = Query & " ISNULL(NP.attribute05, '') AS attribute05, "
|
||||
Query = Query & " ISNULL(D.d_order_cnt, 0) AS d_order_cnt "
|
||||
Query = Query & " FROM project2.dbo.neakeun_work NW "
|
||||
Query = Query & " LEFT JOIN project2.dbo.T_NEAKEUN_PAY NP ON CONVERT(varchar, NW.id) = NP.attribute01"
|
||||
Query = Query & " LEFT JOIN project2.dbo.Document D ON NP.attribute05 = D.d_no AND D.d_delok = 'N'"
|
||||
Query = Query & " WHERE NW.p_sebu = '<27>ڵ<EFBFBD>' "
|
||||
Query = Query & " AND NW.in_time + NW.out_time = '00000000' "
|
||||
Query = Query & " AND ISNULL(D.d_order_cnt, 0) <> 77"
|
||||
Query = Query & " ORDER BY NP.work_dt DESC, NP.p_sn DESC, NP.m_name, NP.s_sum "
|
||||
|
||||
Rs.Open Query, adoConn, 1
|
||||
for i = 1 to Rs.RecordCount
|
||||
%>
|
||||
<tr>
|
||||
<td ><%=Rs("work_dt")%></td>
|
||||
<td ><%=Rs("p_sn")%></td>
|
||||
<td ><%=Rs("m_name")%> (<%=Rs("m_jumin")%>)</td>
|
||||
<td ><%=formatNumber(Rs("s_wan"), 0)%></td>
|
||||
<td ><%=formatNumber(Rs("s_pay_unit"), 0)%></td>
|
||||
<td ><%=formatNumber(Rs("s_sum"), 0)%></td>
|
||||
<td ><%
|
||||
if Rs("d_order_cnt") = "0" then
|
||||
Response.Write "<22>̰<EFBFBD><CCB0><EFBFBD> <20>Ǵ<EFBFBD> <20>ݷ<EFBFBD>"
|
||||
else
|
||||
Response.Write "<22><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
||||
end if
|
||||
%></td>
|
||||
<td ><%
|
||||
if Rs("d_order_cnt") = "0" then
|
||||
%>
|
||||
<input type="button" value="<22><><EFBFBD><EFBFBD>" id="delPay_<%=Rs("attribute01")%>" class="delPay_btn" />
|
||||
<%
|
||||
end if
|
||||
%></td>
|
||||
</tr>
|
||||
<%
|
||||
Rs.MoveNext
|
||||
next
|
||||
Rs.Close
|
||||
%>
|
||||
</table>
|
||||
</div>
|
||||
<input type="button" id="confirm_btn" style="display:none;" value="Confirm <20><><EFBFBD><EFBFBD>"/>
|
||||
<div id="confirmDialog">
|
||||
<table id="confirmTb" class="table table-sm table-sm2 table-bordered table-head tr-colors">
|
||||
<tr>
|
||||
<td colspan="4"><3E>ܰ<EFBFBD> <20><> <20>ڵ<EFBFBD><DAB5>ٹ<EFBFBD><D9B9>ں<EFBFBD> <20><><EFBFBD><EFBFBD></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><3E><><EFBFBD><EFBFBD>(<28><>)</td>
|
||||
<td><3E>ܰ<EFBFBD></td>
|
||||
<td><3E><><EFBFBD><EFBFBD>(<28><>) <20><> <20>ܰ<EFBFBD></td>
|
||||
<td><3E>ڵ<EFBFBD><DAB5>ٹ<EFBFBD><D9B9><EFBFBD></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<table id="resTb" style="display:none;width:1000px;" class="table table-sm table-sm2 table-bordered table-head tr-colors">
|
||||
<tr>
|
||||
<td><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ</td>
|
||||
<td colspan="5">
|
||||
<input type="hidden" id="p_child_sn" /><input type="text" id="p_subject" style="cursor:pointer; width:100%;" palceHolder="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD><EFBFBD>Ͽ<EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>" readonly/>
|
||||
<div id="regPrjDialog">
|
||||
<table class="table table-sm table-sm2 table-bordered table-head tr-colors">
|
||||
<tr>
|
||||
<td style="width:8%"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20>ڵ<EFBFBD></td>
|
||||
<td style="width:37%"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><></td>
|
||||
<td style="width:15%"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td style="width:15%"><3E><><EFBFBD><EFBFBD><EFBFBD>μ<EFBFBD></td>
|
||||
</tr>
|
||||
<%
|
||||
Query = " SELECT p_child_sn, p_subject, p_method_nm, p_intention, ISNULL(D.T_name, '') as d_name "
|
||||
Query = Query & " FROM V_PROJECT_METHOD VPM LEFT OUTER JOIN v_Department D "
|
||||
Query = Query & " ON VPM.p_rsch_dept = D.before_t_cd1 "
|
||||
Query = Query & " WHERE ISNULL(p_child_sn, '') <> '' "
|
||||
Query = Query & " AND p_progress_status >= '006' "
|
||||
Query = Query & " AND (p_research_complete + p_field_complete + p_dp_complete) IS NULL "
|
||||
Query = Query & " AND ( "
|
||||
Query = Query & " p_rsch_1_a = '" & p_no & "' OR p_rsch_2_a = '" & p_no & "' OR p_rsch_3_a = '" & p_no & "' OR p_rsch_4_a = '" & p_no & "' OR "
|
||||
Query = Query & " p_rsch_1_b = '" & p_no & "' OR p_rsch_2_b = '" & p_no & "' OR p_rsch_3_b = '" & p_no & "' OR p_rsch_4_b = '" & p_no & "' OR "
|
||||
Query = Query & " p_rsch_1_c = '" & p_no & "' OR p_rsch_2_c = '" & p_no & "' OR p_rsch_3_c = '" & p_no & "' OR p_rsch_4_c = '" & p_no & "' OR "
|
||||
Query = Query & " p_sv_1 = '" & p_no & "' OR p_sv_2 = '" & p_no & "' OR p_sv_3 = '" & p_no & "' OR p_sv_4 = '" & p_no & "' OR "
|
||||
Query = Query & " p_code_1 = '" & p_no & "' OR p_code_2 = '" & p_no & "' OR p_code_3 = '" & p_no & "' OR p_code_4 = '" & p_no & "' OR "
|
||||
Query = Query & " p_verify_1 = '" & p_no & "' OR p_verify_2 = '" & p_no & "' OR p_verify_3 = '" & p_no & "' OR p_verify_4 = '" & p_no & "' OR "
|
||||
Query = Query & " p_dp_1 = '" & p_no & "' OR p_dp_2 = '" & p_no & "' OR p_dp_3 = '" & p_no & "' OR p_dp_4 = '" & p_no & "' OR "
|
||||
Query = Query & " p_it_1 = '" & p_no & "' OR p_it_2 = '" & p_no & "' OR p_it_3 = '" & p_no & "' OR p_it_4 = '" & p_no & "' OR "
|
||||
Query = Query & " p_supp_1 = '" & p_no & "' OR p_supp_2 = '" & p_no & "' OR p_supp_3 = '" & p_no & "' OR p_supp_4 = '" & p_no & "' "
|
||||
Query = Query & " ) "
|
||||
Query = Query & " ORDER BY p_child_sn "
|
||||
|
||||
Rs.Open Query, adoConn, 1
|
||||
for i = 1 to Rs.RecordCount
|
||||
%>
|
||||
<tr>
|
||||
<td ><%=Rs("p_child_sn")%></td>
|
||||
<td ><a href="javascript:selectPrj('<%=Rs("p_child_sn")%>','<%=Rs("p_subject")%>')"><%=Rs("p_subject")%></a></td>
|
||||
<td ><%=Rs("p_method_nm")%></td>
|
||||
<td ><%=Rs("d_name")%></td>
|
||||
</tr>
|
||||
<%
|
||||
Rs.MoveNext
|
||||
next
|
||||
Rs.Close
|
||||
%>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><3E><><EFBFBD><EFBFBD></td>
|
||||
<td><3E>ڵ<EFBFBD><DAB5><EFBFBD><EFBFBD><EFBFBD>(ù<><C3B9>) <input type="checkbox" id="firstChkAll" value="fir" /></td>
|
||||
<td><3E>ڵ<EFBFBD><DAB5><EFBFBD><EFBFBD><EFBFBD>(<28>հ<EFBFBD>) <input type="checkbox" id="allChkAll" value="all" /></td>
|
||||
<td><3E>ܰ<EFBFBD></td>
|
||||
<td><3E><><EFBFBD><EFBFBD> <20><> <20>ܰ<EFBFBD></td>
|
||||
<td><3E>ڵ<EFBFBD><DAB5>ٹ<EFBFBD><D9B9><EFBFBD></td>
|
||||
</tr>
|
||||
</table>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.content -->
|
||||
<!-- REQUIRED SCRIPTS -->
|
||||
<script>
|
||||
$(function () {
|
||||
fileUploadDialog = $("#fileUploadDialog").dialog({
|
||||
autoOpen: false,
|
||||
modal: true,
|
||||
resizable: false,
|
||||
height: 170,
|
||||
width: 400,
|
||||
title: 'EXCEL <20><><EFBFBD><EFBFBD>',
|
||||
close: function(){
|
||||
var $el = $('#ufile');
|
||||
$el.wrap('<form>').closest('form').get(0).reset();
|
||||
$el.unwrap();
|
||||
},
|
||||
buttons: {
|
||||
"<22><><EFBFBD><EFBFBD>": uploadOk,
|
||||
"<22><><EFBFBD><EFBFBD>": uploadCancel
|
||||
}
|
||||
});
|
||||
|
||||
fileUploadDialog.dialog("option", "position", {
|
||||
my: 'center',
|
||||
at: 'center',
|
||||
of: window
|
||||
});
|
||||
|
||||
$("#fudialog_btn").click(function () {
|
||||
fileUploadDialog.dialog("open");
|
||||
});
|
||||
|
||||
historyDialog = $("#historyDialog").dialog({
|
||||
autoOpen: false,
|
||||
modal: true,
|
||||
resizable: false,
|
||||
height: 600,
|
||||
width: 600,
|
||||
title: '<27><><EFBFBD>ϳ<EFBFBD><CFB3><EFBFBD> <20><><EFBFBD><EFBFBD>',
|
||||
close: function(){
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
historyDialog.dialog("option", "position", {
|
||||
my: 'center',
|
||||
at: 'center',
|
||||
of: window
|
||||
});
|
||||
|
||||
$("#history_btn").click(function () {
|
||||
historyDialog.dialog("open");
|
||||
});
|
||||
|
||||
$(".delPay_btn").click(function(){
|
||||
var neakeunWorkID = $(this).prop("id").split("_")[1];
|
||||
if(!confirm("<22>ش<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ͻðڽ<C3B0><DABD>ϱ<EFBFBD>?")){
|
||||
return;
|
||||
}
|
||||
$.ajax({
|
||||
url:'./coding_confirm_delete.asp',
|
||||
data:{"id" : neakeunWorkID},
|
||||
type:'POST',
|
||||
success:function(res){
|
||||
if(res == "1"){
|
||||
alert("<22><><EFBFBD><EFBFBD>ó<EFBFBD><C3B3><EFBFBD>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>.");
|
||||
$("#delPay_"+neakeunWorkID).parents("tr").eq(0).remove();
|
||||
}else{
|
||||
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><EFBFBD><DFBB>Ͽ<EFBFBD><CFBF><EFBFBD><EFBFBD>ϴ<EFBFBD>.\n<><6E><EFBFBD><EFBFBD><EFBFBD>ڿ<EFBFBD><DABF><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ͻñ<CFBD><C3B1>ٶ<EFBFBD><D9B6>ϴ<EFBFBD>.");
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
confirmDialog = $("#confirmDialog").dialog({
|
||||
autoOpen: false,
|
||||
modal: true,
|
||||
resizable: false,
|
||||
height: 500,
|
||||
width: 500,
|
||||
title: 'Confirm <20><><EFBFBD><EFBFBD>',
|
||||
close: function(){
|
||||
$("#confirmTb > tbody > tr:nth-child(n+3)").remove();
|
||||
},
|
||||
buttons: {
|
||||
"<22><><EFBFBD><EFBFBD>": confirmOK,
|
||||
"<22><><EFBFBD><EFBFBD>": confirmCancel
|
||||
}
|
||||
});
|
||||
|
||||
confirmDialog.dialog("option", "position", {
|
||||
my: 'center',
|
||||
at: 'center',
|
||||
of: window
|
||||
});
|
||||
|
||||
$("#confirm_btn").click(function () {
|
||||
if($("#p_child_sn").val() == ""){
|
||||
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ּ<EFBFBD><D6BC><EFBFBD>.");
|
||||
return;
|
||||
}
|
||||
if($("input[name='allChk']").length != ($("input[name='allChk']:checked").length + $("input[name='firstChk']:checked").length)){
|
||||
alert("<22>ڵ<EFBFBD><DAB5><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ּ<EFBFBD><D6BC><EFBFBD>.");
|
||||
return;
|
||||
}
|
||||
calcTotalSum();
|
||||
confirmDialog.dialog("open");
|
||||
});
|
||||
|
||||
regPrjDialog = $("#regPrjDialog").dialog({
|
||||
autoOpen: false,
|
||||
modal: true,
|
||||
resizable: false,
|
||||
height: 600,
|
||||
width: 800,
|
||||
title: '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD>'
|
||||
});
|
||||
|
||||
$("#p_subject").click(function(){
|
||||
regPrjDialog.dialog("open");
|
||||
});
|
||||
|
||||
$("#firstChkAll").click(function(){
|
||||
if($(this).is(":checked")){
|
||||
$("input[name='allChk']").prop("checked", false);
|
||||
$("#allChkAll").prop("checked", false);
|
||||
$("input[name='firstChk']").prop("checked", true);
|
||||
}else{
|
||||
$(this).prop("checked", false);
|
||||
$("input[name='firstChk']").prop("checked", false);
|
||||
}
|
||||
calcPayAll();
|
||||
});
|
||||
|
||||
$("#allChkAll").click(function(){
|
||||
if($(this).is(":checked")){
|
||||
$("input[name='allChk']").prop("checked", true);
|
||||
$("#firstChkAll").prop("checked", false);
|
||||
$("input[name='firstChk']").prop("checked", false);
|
||||
}else{
|
||||
$(this).prop("checked", false);
|
||||
$("input[name='allChk']").prop("checked", false);
|
||||
}
|
||||
calcPayAll();
|
||||
});
|
||||
|
||||
$(document).on("click", "input[name='firstChk']", function(){
|
||||
var idx = $("input[name='firstChk']").index($(this));
|
||||
if($(this).prop("checked") == true){
|
||||
$("input[name='allChk']").eq(idx).prop("checked", false);
|
||||
}
|
||||
chkControl();
|
||||
});
|
||||
|
||||
$(document).on("click", "input[name='allChk']", function(){
|
||||
var idx = $("input[name='allChk']").index($(this));
|
||||
if($(this).prop("checked") == true){
|
||||
$("input[name='firstChk']").eq(idx).prop("checked", false);
|
||||
}
|
||||
chkControl();
|
||||
});
|
||||
});
|
||||
|
||||
var coderJsonArr = new Array();
|
||||
|
||||
function chkControl(){
|
||||
if($("input[name='allChk']:not(:checked)").length == 0){
|
||||
$("#allChkAll").prop("checked", true);
|
||||
}else{
|
||||
$("#allChkAll").prop("checked", false);
|
||||
}
|
||||
if($("input[name='firstChk']:not(:checked)").length == 0){
|
||||
$("#firstChkAll").prop("checked", true);
|
||||
}else{
|
||||
$("#firstChkAll").prop("checked", false);
|
||||
}
|
||||
calcPayAll();
|
||||
}
|
||||
|
||||
function calcPayAll(){
|
||||
$.each($("input[name='calcPay']"), function(idx, obj){
|
||||
var calcPay = 0;
|
||||
var CodingCount = 0;
|
||||
if($("input[name='firstChk']").eq(idx).prop("checked")){
|
||||
CodingCount = $("input[name='firstCount']").eq(idx).val()*1;
|
||||
}
|
||||
if($("input[name='allChk']").eq(idx).prop("checked")){
|
||||
CodingCount = $("input[name='totalCount']").eq(idx).val()*1;
|
||||
}
|
||||
calcPay = CodingCount * $("input[name='unitPay']").eq(idx).val()*1;
|
||||
|
||||
$(obj).val(commify(calcPay));
|
||||
});
|
||||
}
|
||||
|
||||
function uploadOk(){
|
||||
var frm = $("#codingform")[0];
|
||||
var frmData = new FormData(frm);
|
||||
if($("#ufile")[0].files.length == 0){
|
||||
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ּ<EFBFBD><D6BC><EFBFBD>.");
|
||||
return;
|
||||
}
|
||||
$.ajax({
|
||||
url:'./coding_confirm_fileupload.asp',
|
||||
processData:false,
|
||||
contentType:false,
|
||||
data:frmData,
|
||||
type:'POST',
|
||||
beforeSend:function(){
|
||||
$("#loadingBar").show();
|
||||
},
|
||||
success:function(res){
|
||||
if(res == "1"){
|
||||
excelReadFunc($("#ufile")[0].files[0].name);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function uploadCancel(){
|
||||
fileUploadDialog.dialog("close");
|
||||
}
|
||||
|
||||
function calcTotalSum(){
|
||||
var calcArr = new Array();
|
||||
$.each($("input[name='calcPay']"), function(idx, obj){
|
||||
var calcObj = new Object();
|
||||
calcObj.codingCount = $("input[name='firstChk']").eq(idx).prop("checked") ? $("input[name='firstCount']").eq(idx).val() : $("input[name='totalCount']").eq(idx).val();
|
||||
calcObj.unitPay = $("input[name='unitPay']").eq(idx).val();
|
||||
calcObj.coderID = $("input[name='coderID']").eq(idx).val();
|
||||
calcArr.push(calcObj);
|
||||
});
|
||||
var calcArrUnique = $.unique(calcArr.map(function(obj, idx){
|
||||
return obj.unitPay + "|" + obj.coderID;
|
||||
}).sort());
|
||||
|
||||
var resultArr = new Array();
|
||||
$.each(calcArrUnique, function(idx, obj){
|
||||
var groupBy = obj.split("|");
|
||||
var groupUnitPay = groupBy[0];
|
||||
var groupCoderID = groupBy[1];
|
||||
var sumCodingCount = 0;
|
||||
$.each(calcArr, function(i, o){
|
||||
if(o.unitPay == groupUnitPay && o.coderID == groupCoderID){
|
||||
sumCodingCount = sumCodingCount + o.codingCount*1;
|
||||
}
|
||||
});
|
||||
var tmpObj = new Object();
|
||||
tmpObj.codingCount = sumCodingCount;
|
||||
tmpObj.unitPay = groupUnitPay;
|
||||
tmpObj.coderID = groupCoderID;
|
||||
resultArr.push(tmpObj);
|
||||
});
|
||||
resultArr.sort(function(a, b){ return a.coderID < b.coderID ? -1 : a.coderID > b.coderID ? 1 : 0; });
|
||||
$.each(resultArr, function(idx, obj){
|
||||
var coderInfo = $.grep(coderJsonArr, function(v, i){ return v.id == obj.coderID; })[0];
|
||||
$("#confirmTb tbody").append("<tr>"+
|
||||
"<td class='tit7'><input type='hidden' name='resultCount' value='" + obj.codingCount + "'/>" + commify(obj.codingCount) + "</td>"+
|
||||
"<td class='tit7'><input type='hidden' name='resultUnitPay' value='" + obj.unitPay + "'/>" + commify(obj.unitPay) + "</td>"+
|
||||
"<td class='tit7'><input type='text' name='resultCalcPay' value='0' tabindex='-1' readOnly /></td>"+
|
||||
"<td class='tit7'><input type='hidden' name='resultCoderID' value='" + obj.coderID + "'/>[" + obj.coderID + "] " + coderInfo.name + "(" + coderInfo.birth + ")</td>"+
|
||||
"</tr>");
|
||||
var calcPay = 0;
|
||||
var CodingCount = 0;
|
||||
CodingCount = $("input[name='resultCount']").eq(idx).val()*1;
|
||||
calcPay = CodingCount * $("input[name='resultUnitPay']").eq(idx).val()*1;
|
||||
$("input[name='resultCalcPay']").eq(idx).val(commify(calcPay));
|
||||
});
|
||||
$("#lastSumTb").remove();
|
||||
$("#confirmDialog").append(
|
||||
"<table id='lastSumTb' style='width:70%;margin-top:15px;padding:3px;' class='table table-sm table-sm2 table-bordered table-head tr-colors'>"+
|
||||
"<tr>"+
|
||||
"<td class='tit8' colspan='2'><3E>ڵ<EFBFBD><DAB5>ٹ<EFBFBD><D9B9>ں<EFBFBD> <20><><EFBFBD><EFBFBD></td>"+
|
||||
"</tr>"+
|
||||
"<tr>"+
|
||||
"<td class='tit8'><3E>ڵ<EFBFBD><DAB5>ٹ<EFBFBD><D9B9><EFBFBD></td>"+
|
||||
"<td class='tit8'><3E><><EFBFBD><EFBFBD></td>"+
|
||||
"</tr>"+
|
||||
"</table>"
|
||||
);
|
||||
|
||||
$.each($.unique(resultArr.map(function(obj){ return obj.coderID; })), function(idx, coderID){
|
||||
var coderInfo = $.grep(coderJsonArr, function(v, i){ return v.id == coderID; })[0];
|
||||
var codingCountTotal = 0;
|
||||
$.each(resultArr, function(i, o){
|
||||
if(o.coderID == coderID){
|
||||
codingCountTotal = codingCountTotal + (o.codingCount*o.unitPay);
|
||||
}
|
||||
});
|
||||
$("#lastSumTb tbody").append(
|
||||
"<tr>"+
|
||||
"<td class='tit7'>[" + coderID + "] " + coderInfo.name + "(" + coderInfo.birth + ")</td>"+
|
||||
"<td class='tit7'>" + commify(codingCountTotal) + "</td>"+
|
||||
"</tr>"
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
function confirmOK(){
|
||||
$("#loadingBar").show();
|
||||
var resultArr = new Array();
|
||||
$.each($("input[name='resultCalcPay']"), function(idx, obj){
|
||||
var resultObj = new Object();
|
||||
resultObj.codingCount = $("input[name='resultCount']").eq(idx).val();
|
||||
resultObj.unitPay = $("input[name='resultUnitPay']").eq(idx).val();
|
||||
resultObj.coderID = $("input[name='resultCoderID']").eq(idx).val();
|
||||
resultArr.push(resultObj);
|
||||
});
|
||||
|
||||
$.ajax({
|
||||
url:'./coding_confirm_approval.asp',
|
||||
data:{
|
||||
"result" : JSON.stringify(resultArr),
|
||||
"p_child_sn" : $("#p_child_sn").val()
|
||||
},
|
||||
dataType:'json',
|
||||
type:'POST',
|
||||
success:function(res){
|
||||
if(res == "1"){
|
||||
if(confirm("Confirm<72><6D> <20>Ϸ<EFBFBD><CFB7>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>.\n<><6E><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> Page<67><65> <20>̵<EFBFBD><CCB5>ұ<EFBFBD><D2B1><EFBFBD>?")){
|
||||
location.href = "/approval/doc_myun_pay.asp";
|
||||
}
|
||||
}else{
|
||||
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><EFBFBD><DFBB>Ͽ<EFBFBD><CFBF><EFBFBD><EFBFBD>ϴ<EFBFBD>.\n<><6E><EFBFBD><EFBFBD><EFBFBD>ڿ<EFBFBD><DABF><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ͻñ<CFBD><C3B1>ٶ<EFBFBD><D9B6>ϴ<EFBFBD>.");
|
||||
}
|
||||
},
|
||||
complete:function(){
|
||||
$("#loadingBar").hide();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function confirmCancel(){
|
||||
confirmDialog.dialog("close");
|
||||
}
|
||||
|
||||
function excelReadFunc(excelFileName){
|
||||
$.ajax({
|
||||
url:'./coding_confirm_excelRead.asp',
|
||||
data:{"excelName" : encodeURIComponent(excelFileName)},
|
||||
type:'POST',
|
||||
success:function(resJson){
|
||||
excelResValSetting(eval(resJson));
|
||||
$("#confirm_btn").css("display", "");
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function selectPrj(p_child_sn, p_subject){
|
||||
$("#p_child_sn").val(p_child_sn);
|
||||
$("#p_subject").val("["+p_child_sn+"]"+p_subject);
|
||||
regPrjDialog.dialog("close");
|
||||
}
|
||||
|
||||
function excelResValSetting(resJson){
|
||||
uploadCancel();
|
||||
$("#resTb").css("display", "");
|
||||
var coderIDs = $.unique(resJson.map(function(obj){ return obj.coderID }).sort()).join(",");
|
||||
$.ajax({
|
||||
url:'./manJson.asp',
|
||||
data:{"mans" : coderIDs},
|
||||
type:'POST',
|
||||
async:false,
|
||||
success:function(coderJson){
|
||||
coderJsonArr = eval(coderJson);
|
||||
}
|
||||
});
|
||||
$.each(resJson, function(idx, obj){
|
||||
var coderInfo = $.grep(coderJsonArr, function(v, i){ return v.id == obj.coderID; })[0];
|
||||
if(obj.unitPay * 1 > 0){
|
||||
$("#resTb tbody").append("<tr>"+
|
||||
"<td class='tit7'>" + obj.qusNo + "</td>"+
|
||||
"<td class='tit7'><input type='hidden' name='firstCount' value='" + obj.firstCount + "'/>" + commify(obj.firstCount) + " <input type='checkbox' name='firstChk' value='fir' /></td>"+
|
||||
"<td class='tit7'><input type='hidden' name='totalCount' value='" + obj.totalCount + "'/>" + commify(obj.totalCount) + " <input type='checkbox' name='allChk' value='all' /></td>"+
|
||||
"<td class='tit7'><input type='hidden' name='unitPay' value='" + obj.unitPay + "'/>" + commify(obj.unitPay) + "</td>"+
|
||||
"<td class='tit7'><input type='text' name='calcPay' value='0' tabindex='-1' readOnly /></td>"+
|
||||
"<td class='tit7'><input type='hidden' name='coderID' value='" + obj.coderID + "'/>[" + obj.coderID + "] " + coderInfo.name + "(" + coderInfo.birth + ")</td>"+
|
||||
"</tr>");
|
||||
}
|
||||
});
|
||||
$("#loadingBar").hide();
|
||||
}
|
||||
</script>
|
||||
</div>
|
||||
<!-- /.content-wrapper -->
|
||||
<!-- #include virtual = "include/footer.asp" -->
|
||||
57
inspection/coding_confirm_approval.asp
Normal file
57
inspection/coding_confirm_approval.asp
Normal file
@@ -0,0 +1,57 @@
|
||||
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<!-- #include file = "../lib/json2.asp" -->
|
||||
<%
|
||||
|
||||
set dbin = server.CreateObject("ADODB.CONNECTION")
|
||||
dbin.Open adoConn
|
||||
Response.CharSet = "EUC-KR" '<27>ѱ<EFBFBD>
|
||||
Response.AddHeader "Pragma","no-cache"
|
||||
Response.AddHeader "cache-control", "no-staff"
|
||||
Response.Expires = -1
|
||||
|
||||
dim p_child_sn : p_child_sn = request("p_child_sn")
|
||||
dim info : set info = JSON.parse(request("result"))
|
||||
Dim rsp
|
||||
executeCount = 0
|
||||
chk = 0
|
||||
for i = 0 To info.length - 1
|
||||
query = "SET NOCOUNT ON;"
|
||||
query = query & " INSERT INTO project2.dbo.neakeun_work"
|
||||
query = query & " (neakeun_jumin, neakeun_name, p_sn, p_sebu, date, yoil, in_time, out_time, job_in_time, job_out_time, job_jumal_time, "
|
||||
query = query & " insert_date, insert_time, insert_ip, p_sv_no, p_sv_main, p_child_sn, job_start_time, job_end_time, job_total_time, "
|
||||
query = query & " job_lunch_yn, job_dinner_yn, job_confirm_yn, p_sebu_code) "
|
||||
query = query & " VALUES "
|
||||
query = query & " ( "
|
||||
query = query & " (SELECT TOP 1 LEFT(m_jumin, 6) + '0000000' FROM project2.dbo.man WHERE new_id = '" & info.get(i).coderID & "'),"
|
||||
query = query & " (SELECT TOP 1 m_name FROM project2.dbo.man WHERE new_id = '" & info.get(i).coderID & "'),"
|
||||
query = query & " LEFT('" & p_child_sn & "', 7), '<27>ڵ<EFBFBD>', CONVERT(varchar(10), getdate(), 120), datename(dw, getdate()), "
|
||||
query = query & " '0000', '0000', " & info.get(i).codingCount & ", 0, 0, CONVERT(varchar(10), getdate(), 120), RIGHT(CONVERT(varchar(16), getdate(), 120), 5), "
|
||||
query = query & " '" & Request.ServerVariables("Remote_Addr") & "', '" & Session("User_Number") & "', '" & Session("User_Number") & "', '" & p_child_sn & "', '1000', '2400', 0, '', '', 'Y', '4'"
|
||||
query = query & " )"
|
||||
query = query & " SET NOCOUNT OFF; SELECT SCOPE_IDENTITY() ID; "
|
||||
set rsp = dbin.Execute(query)
|
||||
|
||||
if rsp("ID") <> "" then
|
||||
query = ""
|
||||
query = query & " INSERT INTO project2.dbo.T_NEAKEUN_PAY "
|
||||
query = query & " (p_sn, m_name, m_jumin, work_dt, s_ot, s_gubun, s_pay_unit, s_wan, s_sum, "
|
||||
query = query & " s_time_style, pay_type, pay_month, insert_dt, insert_user, attribute01) "
|
||||
query = query & " SELECT p_child_sn, neakeun_name, neakeun_jumin, date, '0', p_sebu, "
|
||||
query = query & " " & info.get(i).unitPay & ", " & info.get(i).codingCount & ", " & cdbl(info.get(i).unitPay) * cdbl(info.get(i).codingCount) & ", "
|
||||
query = query & " '', '1', CONVERT(varchar(7), dateadd(m, 1, getdate()), 120) + '-15', "
|
||||
query = query & " getdate(), '" & Session("User_Number") & "', '" & rsp("ID") & "' "
|
||||
query = query & " FROM project2.dbo.neakeun_work WHERE id = '" & rsp("ID") & "' "
|
||||
|
||||
dbin.Execute query, chk
|
||||
executeCount = executeCount + chk
|
||||
End if
|
||||
Next
|
||||
|
||||
if executeCount = info.length then
|
||||
Response.Write "1"
|
||||
else
|
||||
Response.Write "0"
|
||||
end if
|
||||
dbin.Close
|
||||
%>
|
||||
36
inspection/coding_confirm_delete.asp
Normal file
36
inspection/coding_confirm_delete.asp
Normal file
@@ -0,0 +1,36 @@
|
||||
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<%
|
||||
|
||||
set dbin = server.CreateObject("ADODB.CONNECTION")
|
||||
dbin.Open adoConn
|
||||
Response.CharSet = "EUC-KR" '<27>ѱ<EFBFBD>
|
||||
Response.AddHeader "Pragma","no-cache"
|
||||
Response.AddHeader "cache-control", "no-staff"
|
||||
Response.Expires = -1
|
||||
|
||||
Dim id : id = request("id")
|
||||
Dim i : i = 0
|
||||
Dim j : j = 0
|
||||
|
||||
query = ""
|
||||
query = query & " DELETE FROM project2.dbo.T_NEAKEUN_PAY WHERE attribute01 = '" & id & "' "
|
||||
|
||||
dbin.Execute query, i
|
||||
|
||||
if i = 1 then
|
||||
query = ""
|
||||
query = query & " DELETE FROM project2.dbo.neakeun_work WHERE id = " & id & " "
|
||||
|
||||
dbin.Execute query, j
|
||||
|
||||
if j = 1 then
|
||||
Response.Write "1"
|
||||
end if
|
||||
end if
|
||||
|
||||
if i <> 1 or j <> 1 then
|
||||
Response.Write "0"
|
||||
end if
|
||||
dbin.Close
|
||||
%>
|
||||
103
inspection/coding_confirm_excelRead.asp
Normal file
103
inspection/coding_confirm_excelRead.asp
Normal file
@@ -0,0 +1,103 @@
|
||||
<%@ LANGUAGE="VBSCRIPT" CodePage=65001 %>
|
||||
<%
|
||||
On Error Resume Next
|
||||
Response.charset="UTF-8"
|
||||
|
||||
Set xlDb = Server.CreateObject("ADODB.Connection")
|
||||
Set oRs = Server.CreateObject("ADODB.RecordSet")
|
||||
|
||||
excelName = URLDecode(Request("excelName"))
|
||||
FileName = "D:\TEMP\" & excelName
|
||||
|
||||
|
||||
connectString = "Provider=Microsoft.ACE.OLEDB.12.0; Data Source=" & FileName & "; Extended Properties='Excel 12.0;HDR=NO;IMEX=1'"
|
||||
xlDb.Open connectString
|
||||
|
||||
Dim resultTb(3, 16384)
|
||||
fieldCount = 0
|
||||
|
||||
Dim excelRow
|
||||
If LCase(Right(excelName, 4)) = "xlsx" Then
|
||||
excelRow = "300000"
|
||||
Else
|
||||
excelRow = "65536"
|
||||
End If
|
||||
|
||||
For i=0 To 63 ' 255 * 50 = 12,750번째 컬럼까지 확인 (빈칸나오면 멈춤)
|
||||
stCol_n = 1 + (255 * i)
|
||||
edCol_n = 255 + (255 * i)
|
||||
Query = "SELECT * FROM [코딩 단가$" & excelColName(stCol_n) & "1:" & excelColName(edCol_n) & "3" & "] "
|
||||
oRs.Open Query, xlDb, 1
|
||||
If Err.number <> 0 Then '오류 발생 시 이 부분 실행
|
||||
Exit For
|
||||
End If
|
||||
For row=1 To 3
|
||||
For f=0 To oRs.Fields.Count-1
|
||||
resultTb(row, f+fieldCount) = oRs.Fields(f).Value
|
||||
Next
|
||||
oRs.moveNext
|
||||
Next
|
||||
fieldCount = fieldCount + oRs.Fields.Count
|
||||
oRs.Close
|
||||
Next
|
||||
|
||||
Dim resultJson, qusNo, coderID, unitPay, firCount, totCount
|
||||
resultJson = ""
|
||||
qusNo = ""
|
||||
coderID = ""
|
||||
unitPay = ""
|
||||
firCount = 0
|
||||
totCount = 0
|
||||
|
||||
For i=0 To fieldCount
|
||||
If Trim(resultTb(1, i)) = "코딩" Then
|
||||
Query = "SELECT count(*) FROM [코딩 단가$" & excelColName(i+1) & "4:" & excelColName(i+1) & excelRow & "] "
|
||||
Query = Query & "WHERE IIF(IsNull(F1), '', cstr(F1)) NOT IN ('', '998', '999', '9998', '9999')"
|
||||
oRs.Open Query, xlDb, 1
|
||||
If firCount = 0 Then
|
||||
firCount = cLng(oRs.Fields(0).Value)
|
||||
End If
|
||||
totCount = totCount + cLng(oRs.Fields(0).Value)
|
||||
oRs.Close
|
||||
End If
|
||||
If Trim(resultTb(2, i)) = "내근직코드" Then
|
||||
If firCount <> 0 Then
|
||||
resultJson = resultJson & "{""qusNo"":""" & qusNo & """,""firstCount"":""" & firCount & """,""totalCount"":""" & totCount & """,""coderID"":""" & coderID & """,""unitPay"":""" & unitPay & """},"
|
||||
End If
|
||||
qusNo = Trim(resultTb(1, i))
|
||||
coderID = Trim(resultTb(2, i+1))
|
||||
unitPay = Trim(resultTb(3, i+1))
|
||||
firCount = 0
|
||||
totCount = 0
|
||||
End If
|
||||
If i = fieldCount-1 Then
|
||||
resultJson = resultJson & "{""qusNo"":""" & qusNo & """,""firstCount"":""" & firCount & """,""totalCount"":""" & totCount & """,""coderID"":""" & coderID & """,""unitPay"":""" & unitPay & """}"
|
||||
End If
|
||||
Next
|
||||
xlDb.Close
|
||||
|
||||
Response.Write "[" & resultJson & "]"
|
||||
|
||||
function excelColName(num)
|
||||
if num <= 26 then
|
||||
excelColName = chr(num + 64)
|
||||
else
|
||||
div = int(num / 26)
|
||||
modval = num mod 26
|
||||
if modval = 0 then
|
||||
modval = 26
|
||||
div = div - 1
|
||||
end if
|
||||
excelColName = excelColName(div) + excelColName(modval)
|
||||
End if
|
||||
end function
|
||||
|
||||
function URLDecode(str)
|
||||
Dim objScript
|
||||
Set objScript = Server.CreateObject("ScriptControl")
|
||||
objScript.Language = "JavaScript"
|
||||
URLDecode = objScript.Eval("decodeURIComponent(""" & str & """.replace(/\+/g,"" ""))")
|
||||
Set objScript = Nothing
|
||||
end function
|
||||
%>
|
||||
|
||||
15
inspection/coding_confirm_fileupload.asp
Normal file
15
inspection/coding_confirm_fileupload.asp
Normal file
@@ -0,0 +1,15 @@
|
||||
<%@ LANGUAGE="VBSCRIPT" %>
|
||||
<%
|
||||
Response.charset="EUC-KR"
|
||||
On Error Resume Next
|
||||
Set uploadform = Server.CreateObject("DEXT.FileUpload")
|
||||
uploadform.DefaultPath = "D:\TEMP"
|
||||
uploadform.Save
|
||||
Set uploadform = Nothing
|
||||
If Err Then
|
||||
Response.Write "Error occured :"
|
||||
Response.Write Err.Description
|
||||
Else
|
||||
Response.Write "1"
|
||||
End If
|
||||
%>
|
||||
201
inspection/date_neakeun_work.asp
Normal file
201
inspection/date_neakeun_work.asp
Normal file
@@ -0,0 +1,201 @@
|
||||
<!-- #include virtual = "include/header.asp" -->
|
||||
<%
|
||||
dim command
|
||||
command = Request("command")
|
||||
|
||||
p_sn = request("p_sn")
|
||||
work_type = request("work_type")
|
||||
neakeun_jumin = request("neakeun_jumin")
|
||||
neakeun_name = request("neakeun_name")
|
||||
work_date = request("work_date")
|
||||
|
||||
if work_date = "" or isnull(work_date) then
|
||||
work_date = date()
|
||||
end if
|
||||
|
||||
dim tmp_p_sn
|
||||
dim sum_job_in_time
|
||||
dim sum_job_out_time
|
||||
dim sum_job_add_time
|
||||
dim sum_all_work_time
|
||||
|
||||
if command <> "excel" then
|
||||
%>
|
||||
<!-- #include virtual = "include/left.asp" -->
|
||||
<!-- Content Wrapper. Contains page content -->
|
||||
<div class="content-wrapper">
|
||||
<!-- Content Header (Page header) -->
|
||||
<div class="content-header">
|
||||
<h1><3E><><EFBFBD>ں<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ٹ<EFBFBD><D9B9><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=<3D><><EFBFBD>ں<EFBFBD>_<EFBFBD><5F><EFBFBD><EFBFBD><EFBFBD><EFBFBD>_<EFBFBD>ٹ<EFBFBD><D9B9><EFBFBD>Ȳ.xls"
|
||||
end if
|
||||
%>
|
||||
<%if command <> "excel" then%>
|
||||
<% Dim f_menu : f_menu = "np" %>
|
||||
<!-- #include file = "f_menu.asp" -->
|
||||
<%End If%>
|
||||
<form name="pms" method="post">
|
||||
<table width="1200px" class="table table-sm table-sm2 table-bordered table-head tr-colors">
|
||||
<%if command <> "excel" then %>
|
||||
<tr>
|
||||
<td width="15%" height="30px" align="center" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><>ȣ</td>
|
||||
<td width="35%" height="30px" ><input name="p_sn" type="text" value="<%=p_sn %>" style="width:200px" ></td>
|
||||
<%
|
||||
query = " select *"
|
||||
query = query & " from direct_costcode "
|
||||
query = query & " where d_cost_kind = 'field' "
|
||||
query = query & " and d_cost_useyn = 'y' "
|
||||
query = query & " and d_cost_parents = '2' "
|
||||
Adors.Open query, adoConn, 1
|
||||
%>
|
||||
<td width="15%" height="30px" align="center" ><3E><><EFBFBD><EFBFBD></td>
|
||||
<td width="35%" height="30px" >
|
||||
<select name="work_type">
|
||||
<option value=""><3E><>ü</option>
|
||||
<% for i=1 to Adors.recordcount %>
|
||||
<option value="<%=Adors("d_cost_code")%>" <% if CStr(Adors("d_cost_code")) = work_type then %>selected <%end if %>><%=Adors("d_cost_name") %></option>
|
||||
<% Adors.movenext
|
||||
next
|
||||
Adors.close
|
||||
%>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="15%" height="30px" align="center" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ֹι<D6B9>ȣ</td>
|
||||
<td width="35%" height="30px" ><input name="neakeun_jumin" type="text" value="<%=neakeun_jumin %>" style="width:200px" ></td>
|
||||
<td width="15%" height="30px" align="center" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20≯<EFBFBD></td>
|
||||
<td width="35%" height="30px" ><input name="neakeun_name" type="text" value="<%=neakeun_name %>" style="width:200px" ></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="15%" height="30px" align="center" ><3E>ٹ<EFBFBD> <20><><EFBFBD><EFBFBD></td>
|
||||
<td colspan="3" height="30px" >
|
||||
<input type="text" style="width:200px;text-align:right;" name="work_date" id="work_date" readonly value="<%=work_date%>">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" colspan="4" class="pt-2">
|
||||
<img src="/images/common/btn_search.jpg" align="absmiddle" style="cursor:pointer" onclick="search('search')">
|
||||
<img src="/images/common/btn_excel.jpg" align="absmiddle" onclick="search('excel')" style='CURSOR:pointer;' title ='<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>'></p>
|
||||
</td>
|
||||
</tr>
|
||||
<%end if %>
|
||||
<% if command <> "" then %>
|
||||
<tr>
|
||||
<td align="center" colspan="4">
|
||||
<table class="table table-sm table-sm2 table-bordered table-head tr-colors">
|
||||
<tr>
|
||||
<td align="center" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td align="center" ><3E≯<EFBFBD></td>
|
||||
<td align="center" ><3E><><EFBFBD>ٽð<D9BD></td>
|
||||
<td align="center" ><3E><><EFBFBD>ٽð<D9BD></td>
|
||||
<td align="center" ><3E><> <20>ٹ<EFBFBD><D9B9>ð<EFBFBD></td>
|
||||
<td align="center" ><3E>ʰ<EFBFBD> <20>ٹ<EFBFBD><D9B9>ð<EFBFBD></td>
|
||||
<td align="center" ><3E>߰<EFBFBD> <20>ٹ<EFBFBD><D9B9>ð<EFBFBD></td>
|
||||
<td align="center" ><3E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>ð<EFBFBD></td>
|
||||
</tr>
|
||||
<%
|
||||
'--<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ҿ<EFBFBD><D2BF><EFBFBD><EFBFBD><EFBFBD> <20>˻<EFBFBD>-<2D><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ
|
||||
query = " select nw.neakeun_jumin, nw.neakeun_name, in_time, out_time, round(SUM(nw.job_in_time),2) as job_in_time, round(SUM(nw.job_out_time),2) as job_out_time, "
|
||||
query = query & " sum(convert(float,nw.job_add_time)) as job_add_time, round(SUM(nw.job_in_time) + sum(convert(float,nw.job_add_time)),2) as all_work_time "
|
||||
query = query & " from neakeun_work nw left outer join T_PROJECT_METHOD tpm on nw.p_child_sn = tpm.p_child_sn "
|
||||
query = query & " left outer join project p on nw.p_child_sn = p.p_sn "
|
||||
query = query & " where date = '"&work_date&"' "
|
||||
if p_sn <> "" then
|
||||
query = query & " AND nw.p_child_sn LIKE '%"& p_sn &"%' "
|
||||
end if
|
||||
if work_type <> "" then
|
||||
query = query & " AND p_sebu_code = '"&work_type&"' "
|
||||
end if
|
||||
if neakeun_jumin <> "" then
|
||||
query = query & " AND nw.neakeun_jumin like '%"&neakeun_jumin&"%' "
|
||||
end if
|
||||
if neakeun_name <> "" then
|
||||
query = query & " AND nw.neakeun_name like '%"&neakeun_name&"%' "
|
||||
end if
|
||||
query = query & " group by nw.neakeun_jumin, nw.neakeun_name, in_time, out_time "
|
||||
query = query & " order by nw.neakeun_name "
|
||||
|
||||
Adors.open query,adoconn,1
|
||||
|
||||
sum_job_in_time = 0
|
||||
sum_job_out_time = 0
|
||||
sum_job_add_time = 0
|
||||
sum_all_work_time = 0
|
||||
|
||||
for i=1 to Adors.recordcount
|
||||
if not isnull(Adors("neakeun_jumin")) then
|
||||
sum_job_in_time = sum_job_in_time + Adors("job_in_time")
|
||||
sum_job_out_time = sum_job_out_time + Adors("job_out_time")
|
||||
sum_job_add_time = sum_job_add_time + Adors("job_add_time")
|
||||
sum_all_work_time = sum_all_work_time + Adors("all_work_time")
|
||||
end if
|
||||
|
||||
%>
|
||||
<tr>
|
||||
<td align="center"><%= left(Adors("neakeun_jumin"), 6)%></td>
|
||||
<td align="center"><%= Adors("neakeun_name")%></td>
|
||||
<td align="center"><%= Adors("in_time")%></td>
|
||||
<td align="center"><%= Adors("out_time")%></td>
|
||||
<td align="center"><%= Adors("job_in_time")%></td>
|
||||
<td align="center"><%= Adors("job_out_time")%></td>
|
||||
<td align="center"><%= Adors("job_add_time")%></td>
|
||||
<td align="center"><%= Adors("all_work_time")%></td>
|
||||
</tr>
|
||||
<% Adors.movenext
|
||||
next
|
||||
Adors.close
|
||||
%>
|
||||
<tr>
|
||||
<td align="right" colspan="4"><b><3E><> <20>հ<EFBFBD></b></td>
|
||||
<td align="center"><b><%= sum_job_in_time%></b></td>
|
||||
<td align="center"><b><%= sum_job_out_time%></b></td>
|
||||
<td align="center"><b><%= sum_job_add_time%></b></td>
|
||||
<td align="center"><b><%= sum_all_work_time%></b></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<% end if %>
|
||||
</table>
|
||||
</form>
|
||||
<%if command <> "excel" then%>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.content -->
|
||||
<!-- REQUIRED SCRIPTS -->
|
||||
<script>
|
||||
$(function(){
|
||||
$("#work_date").datepicker();
|
||||
});
|
||||
|
||||
function search(a) {
|
||||
if (document.pms.work_date.value == null || document.pms.work_date.value == "") {
|
||||
alert("<22>ٹ<EFBFBD><D9B9><EFBFBD><EFBFBD>ڸ<EFBFBD> <20>ݵ<EFBFBD><DDB5><EFBFBD> <20>Է<EFBFBD><D4B7>ؾ<EFBFBD> <20>մϴ<D5B4>.");
|
||||
return false;
|
||||
} else {
|
||||
document.pms.action = "date_neakeun_work.asp?command=" + a;
|
||||
document.pms.submit();
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</div>
|
||||
<!-- /.content-wrapper -->
|
||||
<!-- #include virtual = "include/footer.asp" -->
|
||||
<% end if %>
|
||||
369
inspection/direct_cost_prjSearch_2014.asp
Normal file
369
inspection/direct_cost_prjSearch_2014.asp
Normal file
@@ -0,0 +1,369 @@
|
||||
<!-- #include virtual = "include/header.asp" -->
|
||||
<!-- #include virtual = "include/left.asp" -->
|
||||
<%
|
||||
Response.Expires = 0
|
||||
Dim Sql
|
||||
dim i
|
||||
dim j
|
||||
Dim txtHtml
|
||||
dim tempStr
|
||||
Dim PrjCnt
|
||||
dim direct_cost_PrjCnt
|
||||
dim user_name
|
||||
dim tmp_year
|
||||
dim tmp_month
|
||||
dim p_depart
|
||||
dim sc_name
|
||||
dim sc_name_type
|
||||
dim sc_method
|
||||
dim direct_cost_type
|
||||
dim Search_flag
|
||||
dim prj_list() 'ȫ<><C8AB> <20>߰<EFBFBD>
|
||||
dim krc_team()
|
||||
dim krc_team_cnt
|
||||
dim cost_type
|
||||
|
||||
p_depart = Session("Depart_Code")
|
||||
if p_depart <= 10 or (p_depart >= 20 and p_depart <= 95) then
|
||||
p_depart_name = "research"
|
||||
elseif p_depart = 12 then
|
||||
p_depart_name = "field"
|
||||
else
|
||||
p_depart_name = "admin"
|
||||
end if
|
||||
|
||||
tmp_year = Request("tmp_year")
|
||||
tmp_month = Request("tmp_month")
|
||||
p_depart = Request("p_depart")
|
||||
sc_name = Request("sc_name")
|
||||
sc_name_type = Request("sc_name_type")
|
||||
sc_method = Request("sc_method")
|
||||
cost_type = request("cost_type")
|
||||
if cost_type = "" then
|
||||
cost_type = "field"
|
||||
end if
|
||||
|
||||
if tmp_year = "" and tmp_month = "" and p_depart = "" and sc_method = "" then
|
||||
search_flag = 1
|
||||
else
|
||||
search_flag = 2
|
||||
end if
|
||||
|
||||
if tmp_year = "" then
|
||||
tmp_year = year(date)
|
||||
end if
|
||||
|
||||
if tmp_month = "" then
|
||||
tmp_month = 0
|
||||
end if
|
||||
if p_depart = "" then
|
||||
p_depart = 0
|
||||
end if
|
||||
|
||||
if sc_method = "" then
|
||||
sc_method = 100
|
||||
end if
|
||||
|
||||
if sc_name_type = "" then
|
||||
sc_name_type = 0
|
||||
end if
|
||||
|
||||
sql = ""
|
||||
sql = sql & " SELECT DISTINCT before_t_cd1 as d_code, LEFT(T_Name, 8) as d_name "
|
||||
sql = sql & " FROM project2.dbo.v_Department "
|
||||
sql = sql & " WHERE (before_t_cd1 in (12, 90) or before_t_cd1 between 20 and 99) "
|
||||
sql = sql & " order by LEFT(T_Name, 8) "
|
||||
Rs.open sql, adoconn,adopenstatic, adlockreadonly
|
||||
krc_team_cnt = Rs.recordcount
|
||||
redim krc_team(krc_team_cnt,2)
|
||||
krc_team_cnt = 0
|
||||
do while not Rs.eof
|
||||
krc_team_cnt = krc_team_cnt + 1
|
||||
krc_team(krc_team_cnt,1) = rs("d_code")
|
||||
krc_team(krc_team_cnt,2) = rs("d_name")
|
||||
Rs.movenext
|
||||
loop
|
||||
Rs.close
|
||||
|
||||
Sql = "select p_name from person where p_no ='" & Session("user_number") & "'"
|
||||
Rs.open sql, adoconn,adopenstatic, adlockreadonly
|
||||
user_name = Rs.fields("p_name")
|
||||
Rs.close
|
||||
%>
|
||||
<!-- 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></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 method='post' name='frm_direct_cost' onsubmit="return false;" >
|
||||
<input type = 'hidden' readonly name = 'cost_type' value = '<%=cost_type%>'>
|
||||
<input type = 'hidden' readonly name = 'p_depart_name' value = '<%=p_depart_name%>'>
|
||||
<ul class="nav nav-tabs mb-0">
|
||||
<li class="nav-item"><button onclick="location.href='./direct_cost_prjSearch_2014.asp?cost_type=field'" class="p-2 nav-link <% If cost_type="field" then %>active<% end if %>" type="button"><3E>ǻ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></button></li>
|
||||
<li class="nav-item"><button onclick="location.href='./direct_cost_prjSearch_2014.asp?cost_type=research'" class="p-2 nav-link <% If cost_type="research" then %>active<% end if %>" type="button"><3E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></button></li>
|
||||
</ul>
|
||||
<table width="1200px" cellpadding="3" cellspacing="0" border="0" style="border-collapse:collapse;">
|
||||
<tr>
|
||||
<td style="padding:5 0 5 0" class="brown">
|
||||
<09><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD> <20><>/<2F><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ǹ<EFBFBD><C7B9>մϴ<D5B4>.
|
||||
<09>Ʒ<EFBFBD><C6B7><EFBFBD><EFBFBD><EFBFBD> ã<><C3A3> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ͻð<CFBD> "ã<><C3A3>"<22><> <20><><EFBFBD><EFBFBD><EFBFBD>ּ<EFBFBD><D6BC><EFBFBD>.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding:5 0 5 0">
|
||||
<table width="100%" height="37" cellpadding="0" cellspacing="1" border="0" bgcolor="#c0c0c0">
|
||||
<tr>
|
||||
<td bgcolor="#DFDFDF" style="padding:0 10 0 10">
|
||||
<09><><EFBFBD>ϳ
|
||||
<select name=tmp_year>
|
||||
<%for i=cint(year(date)) to 2009 step -1 %>
|
||||
<OPTION value='<%=i%>' <%if cint(i) = cint(tmp_year) then%> selected <%end if%>><%=i%></OPTION>
|
||||
<%next%>
|
||||
</SELECT>
|
||||
<09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ۿ<EFBFBD>
|
||||
<select name=tmp_month>
|
||||
<OPTION value='0'><3E><>ü</OPTION>
|
||||
<% for i=1 to 12%>
|
||||
<OPTION value='<%=zeroFormat(i,2)%>' <%if cint(i) = cint(tmp_month) then%> selected <%end if%>><%=i%><3E><></OPTION>
|
||||
<%next%>
|
||||
</select>
|
||||
<09><><EFBFBD><EFBFBD>
|
||||
<select name=p_depart>
|
||||
<OPTION value='0' <%if cint(p_depart) = 0 then%> selected <%end if%>><3E><>ü</OPTION>
|
||||
<%for i=1 to krc_team_cnt%>
|
||||
<OPTION value='<%=krc_team(i,1)%>' <%if cint(p_depart) = cint(krc_team(i,1)) then%> selected <%end if%>><%=krc_team(i,2)%></OPTION>
|
||||
<%next%>
|
||||
</select>
|
||||
<%
|
||||
dim dir_cost_method_type() '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>(<28>з<EFBFBD>)
|
||||
dim cost_sql
|
||||
dim iii
|
||||
|
||||
cost_sql = "SELECT * FROM T_PROJECT_METHOD_CD WHERE p_method_yn = 'y' ORDER BY p_method_cd "
|
||||
Rs.open cost_sql, adoconn, adopenstatic, adlockreadonly
|
||||
redim dir_cost_method_type(rs.recordcount+1,2) '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>(<28>з<EFBFBD>)
|
||||
dir_cost_method_type(0,1) = "100"
|
||||
dir_cost_method_type(0,2) = "<22><>ü"
|
||||
dir_cost_method_type(1,1) = "0"
|
||||
dir_cost_method_type(1,2) = "<22><>Ƽ(M)"
|
||||
iii = 1
|
||||
do while not Rs.eof
|
||||
iii = iii + 1
|
||||
dir_cost_method_type(iii,1) = trim(rs("p_method_cd"))
|
||||
dir_cost_method_type(iii,2) = trim(rs("p_method_nm"))
|
||||
Rs.movenext
|
||||
loop
|
||||
Rs.close
|
||||
%>
|
||||
<09><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
<select name="sc_method">
|
||||
<%for i=0 to ubound(dir_cost_method_type)%>
|
||||
<OPTION value='<%=dir_cost_method_type(i,1)%>' <%if cint(dir_cost_method_type(i,1))=cint(sc_method) then%> selected <%end if%>><%=dir_cost_method_type(i,2)%></OPTION>
|
||||
<%next%>
|
||||
</select>
|
||||
<09><><EFBFBD><EFBFBD>
|
||||
<select name=sc_name_type>
|
||||
<OPTION value='0' <% if cint(sc_name_type) = 0 then %> selected <% end if %>><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20>ڵ<EFBFBD></option>
|
||||
<OPTION value='1' <% if cint(sc_name_type) = 1 then %> selected <% end if %>><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE></option>
|
||||
</select>
|
||||
<input type="text" style="width:100" name=sc_name maxlength=20 style='ime-mode:inactive;' value='<%=sc_name%>'>
|
||||
<img src="/images/common/btn_smallsrch.gif" align="absmiddle" onclick='go_search();' style='cursor:pointer' >
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<% if search_flag = 2 then %>
|
||||
<br>
|
||||
<%
|
||||
query = "SELECT T.*, TPMC.p_method_nm "
|
||||
query = query & "FROM ( "
|
||||
query = query & " SELECT "
|
||||
query = query & " CASE "
|
||||
query = query & " WHEN TPM.p_child_sn = '' THEN TPM.p_sn ELSE TPM.p_child_sn "
|
||||
query = query & " END AS p_sn "
|
||||
query = query & " , TPM.p_subject "
|
||||
query = query & " , TPM.p_sub_type "
|
||||
query = query & " , TPM.p_method_cd "
|
||||
query = query & " , TPM.p_method_nm "
|
||||
query = query & " , TPM.p_intention "
|
||||
query = query & " , TPM.p_input_dt "
|
||||
query = query & " , ISNULL(D.dc_yn, 'N') as dc_yn "
|
||||
query = query & " FROM V_PROJECT as TPB "
|
||||
query = query & " INNER JOIN V_PROJECT_METHOD as TPM "
|
||||
query = query & " ON TPB.p_sn = TPM.p_sn "
|
||||
query = query & " AND TPM.p_progress_status >= '006' "
|
||||
query = query & " AND TPM.p_sub_type = 'C' "
|
||||
query = query & " LEFT JOIN ( SELECT DISTINCT p_child_sn, 'Y' as dc_yn "
|
||||
query = query & " FROM direct_cost dc WHERE del_yes_no = 'no' AND cost_type = '" & cost_type & "' AND p_child_sn is not null ) D "
|
||||
query = query & " ON TPM.p_child_sn = D.p_child_sn "
|
||||
'<27><>ȸ <20>ɼ<EFBFBD>
|
||||
if p_depart <> "0" AND p_depart <> "" then
|
||||
query = query & " WHERE ( p_depart_dep = " & p_depart & " "
|
||||
query = query & " or p_rsch_dept = " & p_depart & " "
|
||||
query = query & " or p_field_dept = " & p_depart & " "
|
||||
query = query & " or p_is_dept = " & p_depart & " "
|
||||
query = query & " or p_supp_dept = " & p_depart & " "
|
||||
query = query & " ) "
|
||||
else
|
||||
' query = query & " WHERE (p_depart_dep <= 10 or (p_depart_dep >= 31 and p_depart_dep <=49)) "
|
||||
end If
|
||||
query = query & " ) as T LEFT OUTER JOIN T_PROJECT_METHOD_CD TPMC ON T.p_method_cd = TPMC.p_method_cd"
|
||||
'<27><> <20>ɼ<EFBFBD>
|
||||
if tmp_year <> "0" and tmp_year <> "" then
|
||||
query = query & " WHERE SUBSTRING(convert(varchar(30), T.p_input_dt, 112), 1, 4) = '" & tmp_year & "' "
|
||||
else
|
||||
query = query & " WHERE SUBSTRING(convert(varchar(30), T.p_input_dt, 112), 1, 4) = '" & year(date()) & "' "
|
||||
end if
|
||||
'<27><> <20>ɼ<EFBFBD>
|
||||
if tmp_month <> "0" and tmp_month <> "" then
|
||||
query = query & " AND SUBSTRING(convert(varchar(30), T.p_input_dt, 112), 5, 2) = '" & right("0" & tmp_month, 2) & "' "
|
||||
end if
|
||||
'<27><><EFBFBD><EFBFBD> <20>ɼ<EFBFBD>
|
||||
if sc_method <> "100" and sc_method <> ""then
|
||||
query = query & " AND T.p_method_cd = '" & sc_method & "' "
|
||||
end if
|
||||
if sc_name <> "" then
|
||||
if cint(sc_name_type) = "0" then
|
||||
query = query & " and p_sn like '%" & sc_name & "%'" '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20>ڵ<EFBFBD>
|
||||
else
|
||||
query = query & " and p_subject like '%" & sc_name & "%'" '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD≯<EFBFBD><CCB8><EFBFBD>
|
||||
end if
|
||||
end if
|
||||
query = query & " order by p_sn DESC"
|
||||
Rs.open query, adoconn, adopenstatic, adlockreadonly
|
||||
PrjCnt = Rs.recordcount
|
||||
|
||||
redim prj_list(PrjCnt, 6)
|
||||
i=0
|
||||
do while not Rs.eof
|
||||
i = i + 1
|
||||
prj_list(i, 1) = Rs.fields("p_sn")
|
||||
prj_list(i, 2) = Rs.fields("p_subject")
|
||||
if rs("p_sub_type") = "C" then
|
||||
prj_list(i, 3) = Rs.fields("p_method_nm")
|
||||
elseif rs("p_sub_type") = "M" then
|
||||
prj_list(i, 3) = "<22><>Ƽ"
|
||||
end if
|
||||
prj_list(i, 4) = Rs.fields("p_intention")
|
||||
prj_list(i, 5) = Rs.fields("p_sub_type")
|
||||
prj_list(i, 6) = Rs.fields("dc_yn")
|
||||
Rs.movenext
|
||||
loop
|
||||
Rs.close
|
||||
%>
|
||||
<tr>
|
||||
<td>
|
||||
<SELECT style='width:100%;HEIGHT: 300px' size=2 name=prj_list OnDblClick='direct_cost_print();'>
|
||||
<%for i=1 to PrjCnt%>
|
||||
<option value='<%=prj_list(i, 1)%>@<%=prj_list(i, 5) %>' <% if prj_list(i, 6) = "Y" Then %> style="font-weight:bold;color:red;" <% End If %>>
|
||||
[<%=prj_list(i, 1) %>] <%=prj_list(i, 2)%> -- <%=prj_list(i, 3)%> --- <%= prj_list(i, 4)%>
|
||||
</option>
|
||||
<%next%>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" style="padding:10 0 0 0">
|
||||
<% if p_depart_name = cost_type or p_depart_name = "admin" then %>
|
||||
<img src="/images/common/btn_write.jpg" align="absmiddle" onclick='direct_cost();' style="cursor:pointer">
|
||||
<img src="/images/common/btn_print.jpg" align="absmiddle" onclick='direct_cost_print();' style="cursor:pointer" >
|
||||
<% end if %>
|
||||
</td>
|
||||
</tr>
|
||||
<% end if ' if search_flag = 2 then %>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.content -->
|
||||
<!-- REQUIRED SCRIPTS -->
|
||||
<script>
|
||||
function go_search(){
|
||||
var tmp_year = document.frm_direct_cost.tmp_year.value;
|
||||
var tmp_month = document.frm_direct_cost.tmp_month.value;
|
||||
var p_depart = document.frm_direct_cost.p_depart.value;
|
||||
var sc_name = document.frm_direct_cost.sc_name.value;
|
||||
var sc_name_type = document.frm_direct_cost.sc_name_type.value;
|
||||
var sc_method = document.frm_direct_cost.sc_method.value;
|
||||
var cost_type = document.frm_direct_cost.cost_type.value;
|
||||
var p_depart_name = document.frm_direct_cost.p_depart_name.value;
|
||||
|
||||
if (p_depart_name == "admin") {
|
||||
if (cost_type == "field" || cost_type == "") {
|
||||
p_depart_name = "field"
|
||||
} else if (cost_type == "research") {
|
||||
p_depart_name = "research"
|
||||
} else if (cost_type == "dp") { //#####DP(<28>ڵ<EFBFBD>) <20>߰<EFBFBD> 2018-02-28 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
p_depart_name = "dp"
|
||||
} else {
|
||||
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ͻÿ<CFBD>");
|
||||
}
|
||||
} else if (cost_type != "" && cost_type != null) {
|
||||
p_depart_name = cost_type;
|
||||
}
|
||||
document.frm_direct_cost.action = "direct_cost_prjSearch_2014.asp?tmp_year=" + tmp_year + "&tmp_month=" + tmp_month + "&p_depart=" + p_depart + "&sc_name=" + sc_name + "&sc_method=" + sc_method + "&sc_name_type=" + sc_name_type + "&cost_type=" + p_depart_name;
|
||||
document.frm_direct_cost.submit();
|
||||
}
|
||||
|
||||
function direct_cost() {//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Է<EFBFBD>ȭ<EFBFBD><C8AD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
if (document.frm_direct_cost.prj_list.value == "") {
|
||||
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ۼ<EFBFBD><DBBC><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>.");
|
||||
return false;
|
||||
}else{
|
||||
var p_sn = document.frm_direct_cost.prj_list.value;
|
||||
var url;
|
||||
if (new_project_2014(p_sn) == "1") {
|
||||
url = "project_direct_cost.asp?p_sn=" + p_sn;
|
||||
} else if (new_project_2014(p_sn) == "2") {
|
||||
url = "project_direct_cost_2014.asp?p_sn=" + p_sn;
|
||||
}
|
||||
url = url + "&tmp_year=" + document.frm_direct_cost.tmp_year.value;
|
||||
url = url + "&tmp_month=" + document.frm_direct_cost.tmp_month.value;
|
||||
url = url + "&p_depart=" + document.frm_direct_cost.p_depart.value;
|
||||
url = url + "&sc_name=" + document.frm_direct_cost.sc_name.value;
|
||||
url = url + "&sc_method=" + document.frm_direct_cost.sc_method.value;
|
||||
url = url + "&cost_type=" + document.frm_direct_cost.cost_type.value;
|
||||
document.frm_direct_cost.action = url
|
||||
document.frm_direct_cost.submit();
|
||||
}
|
||||
}
|
||||
|
||||
function direct_cost_print(){//<2F>Էµ<D4B7> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
if (document.frm_direct_cost.prj_list.value == ""){
|
||||
alert ("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ϴ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>.");
|
||||
return false;
|
||||
}else {
|
||||
var p_sn = document.frm_direct_cost.prj_list.value;
|
||||
var url;
|
||||
if (new_project_2014(p_sn) == "1") {
|
||||
url = "/ess/direct_cost_print.asp?p_sn=" + p_sn;
|
||||
} else if (new_project_2014(p_sn) == "2") {
|
||||
url = "/ess/direct_cost_print_2014.asp?p_sn=" + p_sn;
|
||||
}
|
||||
|
||||
url = url + "&tmp_year=" + document.frm_direct_cost.tmp_year.value;
|
||||
url = url + "&tmp_month=" + document.frm_direct_cost.tmp_month.value;
|
||||
url = url + "&p_depart=" + document.frm_direct_cost.p_depart.value;
|
||||
url = url + "&sc_name=" + document.frm_direct_cost.sc_name.value;
|
||||
url = url + "&sc_method=" + document.frm_direct_cost.sc_method.value;
|
||||
url = url + "&view_chk=2";
|
||||
url = url + "&cost_type=" + document.frm_direct_cost.cost_type.value;
|
||||
window.open (url,"<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>Ȳ","left=50, top=50, menubar=no, location=no, status=no, toolbar=no, width=1200, height=800, scrollbars=yes ,resizable=no","");
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</div>
|
||||
<!-- /.content-wrapper -->
|
||||
<!-- #include virtual = "include/footer.asp" -->
|
||||
383
inspection/direct_cost_save_2014.asp
Normal file
383
inspection/direct_cost_save_2014.asp
Normal file
@@ -0,0 +1,383 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<OBJECT RUNAT=Server PROGID=ADODB.Recordset id=Rs_tmp></OBJECT>
|
||||
<%
|
||||
Response.Expires = 0
|
||||
|
||||
Dim Sql, query
|
||||
dim i, j, k
|
||||
Dim txtHtml
|
||||
Dim PrjCnt
|
||||
dim user_name
|
||||
dim p_sn
|
||||
dim direct_cost_save_gubun
|
||||
dim line_total
|
||||
dim write_count '<27><><EFBFBD><EFBFBD>Ƚ<EFBFBD><C8BD>(<28><EFBFBD><D7B7><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϱ <20><>)
|
||||
dim db_table_name
|
||||
dim title
|
||||
dim krc_no
|
||||
dim target99
|
||||
dim txt_memo(2) '1:<3A><EFBFBD>, 2 : <20>濵<EFBFBD><E6BFB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><EFBFBD>
|
||||
dim project_type_code
|
||||
dim tmp_memo
|
||||
dim p_sample
|
||||
dim gap()
|
||||
|
||||
dim url_posi
|
||||
dim tmpstr
|
||||
dim cnt
|
||||
|
||||
dim sc_team
|
||||
dim sc_name
|
||||
dim sc_method
|
||||
dim sc_year
|
||||
dim sc_month
|
||||
dim user_team
|
||||
dim cost_type
|
||||
dim count
|
||||
dim progressFlag '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ܰ<EFBFBD><DCB0><EFBFBD> <20>Է<EFBFBD> <20><><EFBFBD><EFBFBD> <20>ʾ<EFBFBD><CABE><EFBFBD> <20><><EFBFBD><EFBFBD> <20>ؿ<EFBFBD> <20>ҽ<EFBFBD><D2BD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>ʴ´<CAB4>..
|
||||
|
||||
progressFlag = "true"
|
||||
|
||||
cost_type = request("cost_type")
|
||||
db_table_name = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
||||
|
||||
title="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
||||
|
||||
user_name = session("loginuser")
|
||||
url_posi = request("url_posi")
|
||||
user_team = request("user_team")
|
||||
|
||||
sc_year = request("sc_year")
|
||||
sc_month = request("sc_month")
|
||||
sc_team = request("sc_team")
|
||||
sc_name = request("sc_name")
|
||||
sc_method = request("sc_method")
|
||||
p_subject_group = request("txt_p_subject_group")
|
||||
p_sn_group = request("txt_p_sn_group")
|
||||
|
||||
p_sn = Request.Form("p_sn")
|
||||
direct_cost_save_gubun = Request("gubun")'<27><><EFBFBD><EFBFBD><EFBFBD>̳<EFBFBD>? <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>?
|
||||
line_total = request("line_total")
|
||||
txt_memo(1) = request("txt_memo")
|
||||
if session("Depart_Code") = "18" then
|
||||
txt_memo(2) = request("txt_memo2")
|
||||
end if
|
||||
project_type_code = request("project_type_code")
|
||||
|
||||
p_method_cd = request("p_method_cd")
|
||||
complete = request("complete")
|
||||
p_sub_type = request("p_sub_type")
|
||||
|
||||
if Instr(p_method_cd,"@") > 0 then
|
||||
list_p_sn = split(p_method_cd,"@")
|
||||
p_method_cd = list_p_sn(0)
|
||||
p_child_sn = list_p_sn(1)
|
||||
end if
|
||||
p_child_sn = request("p_child_sn")
|
||||
|
||||
count = 1 '<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><>
|
||||
redim gap(line_total, 12)
|
||||
|
||||
for i=1 to line_total
|
||||
gap(i, 11) = replace(request("gap_cha")(i),",","")
|
||||
|
||||
hangmok = request("hangmok")(i)
|
||||
if gap(i, 11) <> "" then
|
||||
gap(count, 1) = request("hangmok")(i)
|
||||
gap(count, 2) = request("sebu")(i)
|
||||
gap(count, 3) = replace(request("est_gap1")(i),",","")
|
||||
gap(count, 4) = replace(request("est_gap2")(i),",","")
|
||||
gap(count, 5) = replace(request("est_gap3")(i),",","")
|
||||
gap(count, 6) = replace(request("est_gap4")(i),",","")
|
||||
gap(count, 7) = replace(request("act_gap1")(i),",","")
|
||||
gap(count, 8) = replace(request("act_gap2")(i),",","")
|
||||
gap(count, 9) = replace(request("act_gap3")(i),",","")
|
||||
gap(count, 10) = replace(request("act_gap4")(i),",","")
|
||||
gap(count, 11) = replace(request("gap_cha")(i),",","")
|
||||
gap(count, 12) = request("line_memo")(i)
|
||||
|
||||
if trim(gap(count, 3)) = "" and gap(count,6) > "0" then
|
||||
Response.write ("<script>")
|
||||
Response.write ("alert ('[" & gap(count, 2) & "] <20>ܰ<EFBFBD><DCB0><EFBFBD> <20>Է<EFBFBD> <20>ȵǾ<C8B5> <20>ֽ<EFBFBD><D6BD>ϴ<EFBFBD>. \n<>ܰ<EFBFBD><DCB0><EFBFBD> <20><><EFBFBD><EFBFBD> <20>Է<EFBFBD><D4B7>Ͻðų<C3B0> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ư<EFBFBD><C6B0> <20><><EFBFBD><EFBFBD><EFBFBD>ּ<EFBFBD><D6BC><EFBFBD>.'); ")
|
||||
response.Write ("window.history.back(-1);")
|
||||
Response.write ("</script>")
|
||||
progressFlag = "False"
|
||||
exit for
|
||||
end if
|
||||
|
||||
if trim(gap(count, 6)) = "" then
|
||||
gap(count, 6) = "0"
|
||||
end if
|
||||
if trim(gap(count, 10)) = "" then
|
||||
gap(count, 10) = "0"
|
||||
end if
|
||||
count = count + 1
|
||||
end if
|
||||
next
|
||||
|
||||
if progressFlag = "true" then
|
||||
for i=1 to line_total
|
||||
for j=1 to 12
|
||||
gap(i, j) = trim(gap(i,j))
|
||||
next
|
||||
next
|
||||
Sql = "select max(write_count) as write_count from direct_cost where p_sn='" & trim(p_sn) & "' and cost_type = '" & cost_type & "' "
|
||||
|
||||
Rs.open sql, adoconn, adopenstatic, adlockreadonly
|
||||
if isnull(Rs("write_count")) then
|
||||
write_count = 0
|
||||
else
|
||||
write_count = Rs("write_count")
|
||||
end if
|
||||
rs.close
|
||||
|
||||
PrjCnt = 0
|
||||
Sql = "select p_sn from direct_cost where p_sn='" & trim(p_sn) & "'"
|
||||
sql = sql & " and del_yes_no = 'no' and cost_type = '" & cost_type & "' "
|
||||
sql = sql & " and hangmok not like '<27><EFBFBD>%' "
|
||||
|
||||
Rs.open sql, adoconn, adopenstatic, adlockreadonly
|
||||
|
||||
PrjCnt = Rs.recordcount
|
||||
Rs.close
|
||||
|
||||
ConDate=year(date) & "-" & zeroFormat(month(date),2) & "-" & zeroFormat(day(date),2)
|
||||
|
||||
if cint(PrjCnt) > 0 then '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Ǿ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
query = "select memo , krc_no, hangmok from direct_cost where p_sn = '" & p_sn & "' and del_yes_no = 'no' and hangmok like '<27><EFBFBD>%' and cost_type = '" & cost_type & "' "
|
||||
rs.open query,adoconn,adOpenStatic,adLockReadOnly
|
||||
|
||||
do while not rs.eof
|
||||
if rs("hangmok") = "<22><EFBFBD>" then
|
||||
else
|
||||
tmp_memo = rs("memo")
|
||||
end if
|
||||
krc_no = rs("krc_no")
|
||||
rs.movenext
|
||||
loop
|
||||
rs.close
|
||||
|
||||
sql = "update direct_cost set del_yes_no = 'yes', "
|
||||
sql = sql & " del_date = '" & ConDate & "', "
|
||||
sql = sql & " del_time = '" & time() & "', "
|
||||
sql = sql & " del_user = '" & session("loginuser") & "',"
|
||||
sql = sql & " del_user_code = '" & session("user_number") & "', "
|
||||
sql = sql & " del_ip = '" & Request.ServerVariables("REMOTE_HOST") & "' "
|
||||
sql = sql & " where p_sn = '" & p_sn & "'"
|
||||
sql = sql & " and del_yes_no = 'no' and cost_type = '" & cost_type & "' "
|
||||
sql = sql & " and p_child_sn = '" & p_child_sn & "' "
|
||||
|
||||
if complete <> "cancle" then
|
||||
adoConn.execute sql
|
||||
end if
|
||||
end if
|
||||
|
||||
query = "select * from T_PROJECT_BASE where p_sn = '" & p_sn & "'"
|
||||
Rs.open query, adoconn, adopenstatic, adlockreadonly
|
||||
p_subject = rs("p_subject")
|
||||
rs.close
|
||||
|
||||
krc_no = replace(krc_no," ","")
|
||||
''<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
''//========================
|
||||
''//========================
|
||||
for i=1 to count-1
|
||||
query = "insert into direct_cost ("
|
||||
query = query & " p_sn, krc_no, p_subject, hangmok, sebu, est_danga, est_bu_or_cnt, est_dosu_or_time, est_money, act_danga, "
|
||||
query = query & " act_bu_or_cnt, act_dosu_or_time, act_money, cha_money, memo, "
|
||||
query = query & " modify_date, modify_time, modify_user, modify_user_code, modify_ip, write_count,p_subject_group, p_sn_group, cost_type, p_child_sn"
|
||||
query = query & " ) values ("
|
||||
query = query & "'" & p_sn & "', "
|
||||
query = query & "'" & krc_no & "', "
|
||||
query = query & "'" & p_subject & "', "
|
||||
'query = query & project_type_code & ", "
|
||||
query = query & "'" & gap(i, 1) & "', "
|
||||
query = query & "'" & gap(i, 2) & "', "
|
||||
query = query & "'" & gap(i, 3) & "', "
|
||||
query = query & "'" & gap(i, 4) & "', "
|
||||
query = query & "'" & gap(i, 5) & "', "
|
||||
query = query & "'" & gap(i, 6) & "', "
|
||||
query = query & "'" & gap(i, 7) & "', "
|
||||
query = query & "'" & gap(i, 8) & "', "
|
||||
query = query & "'" & gap(i, 9) & "', "
|
||||
query = query & "'" & gap(i, 10) & "', "
|
||||
query = query & "'" & gap(i, 11) & "', "
|
||||
query = query & "'" & gap(i, 12) & "', "
|
||||
query = query & "'" & ConDate & "',"
|
||||
query = query & "'" & time() & "',"
|
||||
query = query & "'" & session("loginuser") & "', "
|
||||
query = query & "'" & session("user_number") & "', "
|
||||
query = query & "'" & Request.ServerVariables("REMOTE_HOST") & "', "
|
||||
query = query & "'" & write_count+1 & "', "
|
||||
query = query & "'" & p_subject_group & "', "
|
||||
query = query & "'" & p_sn_group & "', '" & cost_type & "', '" & p_child_sn & "')"
|
||||
'Response.Write query & "<br>"
|
||||
|
||||
if complete <> "cancle" and (gap(i, 6) <> "0" or gap(i, 10) <> "0") then
|
||||
adoConn.Execute query
|
||||
end if
|
||||
next
|
||||
|
||||
if cost_type = "field" then
|
||||
query = "insert into direct_cost ("
|
||||
query = query & " p_sn, krc_no, p_subject, hangmok, memo, "
|
||||
query = query & " modify_date, modify_time, modify_user, modify_user_code, modify_ip, write_count,p_subject_group, p_sn_group, cost_type, p_child_sn "
|
||||
query = query & " ) values ("
|
||||
query = query & "'" & p_sn & "', "
|
||||
query = query & "'" & krc_no & "', "
|
||||
query = query & "'" & p_subject & "', "
|
||||
query = query & "'<27><EFBFBD>',"
|
||||
query = query & "'" & txt_memo(1) & "',"
|
||||
query = query & "'" & ConDate & "',"
|
||||
query = query & "'" & time() & "',"
|
||||
query = query & "'" & session("loginuser") & "', "
|
||||
query = query & "'" & session("user_number") & "', "
|
||||
query = query & "'" & Request.ServerVariables("REMOTE_HOST") & "', "
|
||||
query = query & "'" & write_count+1 & "', "
|
||||
query = query & "'" & p_subject_group & "', "
|
||||
query = query & "'" & p_sn_group & "', '" & cost_type & "', '" & p_child_sn & "')"
|
||||
'Response.Write query & "<br>"
|
||||
if complete <> "cancle" then
|
||||
adoConn.Execute query
|
||||
end if
|
||||
|
||||
query = "insert into direct_cost ("
|
||||
query = query & " p_sn, krc_no, p_subject, hangmok, memo, "
|
||||
query = query & " modify_date, modify_time, modify_user, modify_user_code, modify_ip, write_count,p_subject_group, p_sn_group, cost_type, p_child_sn "
|
||||
query = query & " ) values ("
|
||||
query = query & "'" & p_sn & "', "
|
||||
query = query & "'" & krc_no & "', "
|
||||
query = query & "'" & p_subject & "', "
|
||||
query = query & "'<27><EFBFBD>_<EFBFBD>濵<EFBFBD><E6BFB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>',"
|
||||
if session("Depart_Code") = "18" then '<27>濵<EFBFBD><E6BFB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD≯<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD>̴<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><DEB8><EFBFBD>
|
||||
query = query & "'" & txt_memo(2) & "',"
|
||||
else
|
||||
query = query & "'" & tmp_memo & "',"
|
||||
end if
|
||||
query = query & "'" & ConDate & "',"
|
||||
query = query & "'" & time() & "',"
|
||||
query = query & "'" & session("loginuser") & "', "
|
||||
query = query & "'" & session("user_number") & "', "
|
||||
query = query & "'" & Request.ServerVariables("REMOTE_HOST") & "', "
|
||||
query = query & "'" & write_count+1 & "', "
|
||||
query = query & "'" & p_subject_group & "', "
|
||||
query = query & "'" & p_sn_group & "', '" & cost_type & "', '" & p_child_sn & "')"
|
||||
'Response.Write query & "<br>"
|
||||
|
||||
if complete <> "cancle" then
|
||||
adoConn.Execute query
|
||||
end if
|
||||
end if
|
||||
''//========================================================================
|
||||
if cost_type = "research" or cost_type = "field" or cost_type = "dp" then
|
||||
query = " SELECT p_sn, p_method_cd , p_child_sn, p_sub_type, p_input_complete "
|
||||
query = query & " FROM T_PROJECT_METHOD "
|
||||
query = query & " WHERE p_sn = '"& p_sn &"' "
|
||||
query = query & " AND p_child_sn = '"& p_child_sn &"' "
|
||||
|
||||
adors.Open query, adoconn, 1
|
||||
|
||||
'##### p_input_complete => index 1 <20><><EFBFBD><EFBFBD>, index 2 <20>ǻ<EFBFBD>, index 3 DP<44><50>(2018-02-27 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)
|
||||
if complete = "yes" and cost_type = "field" then
|
||||
if user_team = "8" then
|
||||
complete_str = mid(adors("p_input_complete"),1,1) & "o" & mid(adors("p_input_complete"),3,1)
|
||||
Else
|
||||
complete_str = mid(adors("p_input_complete"),1,1) & "o" & mid(adors("p_input_complete"),3,1)
|
||||
end if
|
||||
elseif complete = "yes" and cost_type = "research" then
|
||||
complete_str = "o" & mid(adors("p_input_complete"),2,1) & mid(adors("p_input_complete"),3,1)
|
||||
elseif complete = "cancle" and cost_type = "field" then
|
||||
if user_team = "8" then
|
||||
complete_str = mid(adors("p_input_complete"),1,1) & "x" & mid(adors("p_input_complete"),3,1)
|
||||
Else
|
||||
complete_str = mid(adors("p_input_complete"),1,1) & "x" & mid(adors("p_input_complete"),3,1)
|
||||
end if
|
||||
elseif complete = "cancle" and cost_type = "research" then
|
||||
complete_str = "x" & mid(adors("p_input_complete"),2,1) & mid(adors("p_input_complete"),3,1)
|
||||
end if
|
||||
|
||||
if complete = "yes" OR complete = "cancle" then
|
||||
query = " UPDATE T_PROJECT_METHOD "
|
||||
query = query & " SET p_input_complete = '"& complete_str &"' "
|
||||
query = query & " WHERE p_sn = '"& p_sn &"' "
|
||||
query = query & " AND p_child_sn = '"& adors("p_child_sn") &"' "
|
||||
|
||||
adoConn.execute query
|
||||
end if
|
||||
|
||||
adors.close
|
||||
|
||||
if complete_str = "ooo" Or complete_str = "oooo" then '##### index 1 <20><><EFBFBD><EFBFBD>, index 2 <20>ǻ<EFBFBD>, index 3 DP<44><50>(2018-02-27 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)
|
||||
'<27>˶<EFBFBD><CBB6><EFBFBD><EFBFBD><EFBFBD> <20>߰<EFBFBD> ***********************************************
|
||||
query = ""
|
||||
query = query & " insert into Intranet_Alarm Values "
|
||||
query = query & " ( "
|
||||
query = query & " '" & p_child_sn & "', "
|
||||
query = query & " '', "
|
||||
query = query & " '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>°<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>', "
|
||||
query = query & " '', "
|
||||
query = query & " '', "
|
||||
query = query & " (SELECT TOP 1 cast(p2.p_no as varchar) +','+ cast(p.p_no as varchar) "
|
||||
query = query & " FROM T_PROJECT_BASE tpb INNER JOIN person p ON tpb.p_input_user = p.p_no "
|
||||
query = query & " INNER JOIN (select p_no, p_depart, p_team_place, p_resign from person) p2 ON p.p_depart = p2.p_depart and p2.p_resign = '0' "
|
||||
query = query & " WHERE tpb.p_sn = '" & p_sn & "' and p2.p_team_place between '0' and '5' "
|
||||
query = query & " ORDER BY p2.p_team_place DESC) "
|
||||
query = query & " ) "
|
||||
|
||||
adoConn.execute query
|
||||
end if
|
||||
|
||||
if complete = "sv" Or complete = "qc" Then
|
||||
query = ""
|
||||
query = query & " UPDATE direct_cost_field "
|
||||
query = query & " SET " & complete & "_prog = 'complete' "
|
||||
query = query & " WHERE p_child_sn = '" & p_child_sn & "' "
|
||||
|
||||
adoConn.execute query, i
|
||||
|
||||
if i = 0 Then
|
||||
query = ""
|
||||
query = query & " INSERT INTO direct_cost_field (p_child_sn, " & complete & "_prog, del_yn) "
|
||||
query = query & " VALUES ('" & p_child_sn & "', 'complete', 'n') "
|
||||
|
||||
adoConn.execute query
|
||||
End If
|
||||
End If
|
||||
end if
|
||||
end if ' progressFlag
|
||||
''//========================
|
||||
''<27><><EFBFBD><EFBFBD> <20><>
|
||||
''//========================
|
||||
%>
|
||||
<html>
|
||||
<head>
|
||||
<LINK rel="stylesheet" type="text/css" href="/lib/text.css">
|
||||
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
|
||||
</head>
|
||||
<TITLE><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ۼ<EFBFBD></TITLE>
|
||||
<script>
|
||||
function goit(p_child_sn) {
|
||||
var url;
|
||||
url = "project_direct_cost_2014.asp?p_sn=" + p_child_sn + "&isSaved=true";
|
||||
document.dir_cost.action = url;
|
||||
document.dir_cost.submit();
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body onLoad="goit('<%=p_child_sn%>')">
|
||||
<form name="dir_cost" method="post">
|
||||
<input type="hidden" name="sc_year" value='<%=sc_year%>'><!--<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>˻<EFBFBD><CBBB><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ٴϱ<D9B4>-->
|
||||
<input type="hidden" name="sc_month" value='<%=sc_month%>'><!--<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>˻<EFBFBD><CBBB><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ٴϱ<D9B4>-->
|
||||
<input type="hidden" name="sc_team" value='<%=sc_team%>'><!--<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>˻<EFBFBD><CBBB><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ٴϱ<D9B4>-->
|
||||
<input type="hidden" name="sc_name" value='<%=sc_name%>'><!--<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>˻<EFBFBD><CBBB><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ٴϱ<D9B4>-->
|
||||
<input type="hidden" name="sc_method" value='<%=sc_method%>'><!--<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>˻<EFBFBD><CBBB><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ٴϱ<D9B4>-->
|
||||
<input type="hidden" name="url_posi" value='<%=url_posi%>'><!--<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>˻<EFBFBD><CBBB><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ٴϱ<D9B4>-->
|
||||
<input type="hidden" name="completeYN" value='<%=complete%>'>
|
||||
<input type="hidden" name="p_child_sn" value='<%=p_child_sn%>' >
|
||||
<input type='hidden' name ='cost_type' value = '<%=cost_type%>'>
|
||||
<input type='hidden' name ='p_sub_type' value = '<%=p_sub_type%>'>
|
||||
</body>
|
||||
</html>
|
||||
<%
|
||||
|
||||
%>
|
||||
41
inspection/direct_cost_sv_memo_save_2014.asp
Normal file
41
inspection/direct_cost_sv_memo_save_2014.asp
Normal file
@@ -0,0 +1,41 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<%
|
||||
p_child_sn = Request("p_child_sn")
|
||||
txt_memo = request("txt_memo")
|
||||
sql = "update direct_cost set memo = '" & txt_memo & "'"
|
||||
sql = sql & " where p_child_sn = '" & p_child_sn & "'"
|
||||
sql = sql & " and del_yes_no = 'no'"
|
||||
sql = sql & " and hangmok='<27><EFBFBD>' "
|
||||
'response.write sql
|
||||
adoConn.execute sql, i
|
||||
''//========================
|
||||
%>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<script language=javascript>
|
||||
|
||||
</script>
|
||||
<LINK rel="stylesheet" type="text/css" href="/lib/text.css">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
|
||||
</head>
|
||||
<TITLE><3E><EFBFBD><DEB8><EFBFBD><EFBFBD><EFBFBD></TITLE>
|
||||
<script language=javascript>
|
||||
function goit() {
|
||||
<% if i > 0 Then %>
|
||||
alert("<22><><EFBFBD><EFBFBD><EFBFBD>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>.");
|
||||
<% else %>
|
||||
alert("<22><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><> <20>̿<EFBFBD><CCBF><EFBFBD><EFBFBD>ֽñ<D6BD> <20>ٶ<EFBFBD><D9B6>ϴ<EFBFBD>.");
|
||||
<% End IF %>
|
||||
<% if Request("ref") <> "" Then %>
|
||||
location.href = decodeURIComponent("<%=Request("ref")%>");
|
||||
<% Else %>
|
||||
location.href = "project_direct_cost_2014.asp?p_sn=<%=p_child_sn%>&isSaved=true";
|
||||
<% End If %>
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body onLoad="goit()">
|
||||
</body>
|
||||
</html>
|
||||
<% %>
|
||||
282
inspection/end_project_neakun_expence.asp
Normal file
282
inspection/end_project_neakun_expence.asp
Normal file
@@ -0,0 +1,282 @@
|
||||
<!-- #include virtual = "include/header.asp" -->
|
||||
<%
|
||||
dim command
|
||||
command = Request("command")
|
||||
|
||||
p_sn = request("p_sn")
|
||||
p_subject = request("p_subject")
|
||||
work_type = request("work_type")
|
||||
p_depart = request("p_depart")
|
||||
year_from = request("year_from")
|
||||
year_to = request("year_to")
|
||||
month_from = request("month_from")
|
||||
month_to = request("month_to")
|
||||
|
||||
dim tmp_p_sn
|
||||
dim subTotal
|
||||
dim subTime
|
||||
dim allTotal
|
||||
dim allTime
|
||||
|
||||
if month_from = "" or month_from = "00" then
|
||||
month_from = "01"
|
||||
elseif cint(month_from) < 10 and len(month_from) < 2 then
|
||||
month_from = "0" & month_from
|
||||
end if
|
||||
if month_to = "" or month_to = "00" then
|
||||
month_to = "12"
|
||||
elseif cint(month_to) < 10 and len(month_to) < 2 then
|
||||
month_to = "0" & month_to
|
||||
end if
|
||||
|
||||
if tmp_month = "" then
|
||||
tmp_month = cstr(month(date()))
|
||||
end if
|
||||
|
||||
if command <> "excel" then
|
||||
%>
|
||||
<!-- #include virtual = "include/left.asp" -->
|
||||
<!-- Content Wrapper. Contains page content -->
|
||||
<div class="content-wrapper">
|
||||
<!-- Content Header (Page header) -->
|
||||
<div class="content-header">
|
||||
<h1><3E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ҿ<EFBFBD><D2BF><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=<3D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE>_<EFBFBD><5F><EFBFBD><EFBFBD><EFBFBD><EFBFBD>_<EFBFBD>ҿ<EFBFBD><D2BF><EFBFBD><EFBFBD><EFBFBD>.xls"
|
||||
end if
|
||||
%>
|
||||
<%if command <> "excel" then%>
|
||||
<% Dim f_menu : f_menu = "np" %>
|
||||
<!-- #include file = "f_menu.asp" -->
|
||||
<%End If%>
|
||||
<form name="pms" method="post">
|
||||
<table width="1200px" class="table table-sm table-sm2 table-bordered table-head tr-colors">
|
||||
<%if command <> "excel" then%>
|
||||
<tr>
|
||||
<td width="15%" height="30px" align="center" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><>ȣ</td>
|
||||
<td width="35%" height="30px" ><input name="p_sn" type="text" value="<%=p_sn %>" style="width:200px" ></td>
|
||||
<td width="15%" height="30px" align="center" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE></td>
|
||||
<td width="35%" height="30px" ><input name="p_subject" type="text" value="<%=p_subject %>" style="width:200px" ></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<%
|
||||
query = " select *"
|
||||
query = query & " from direct_costcode "
|
||||
query = query & " where d_cost_kind = 'field' "
|
||||
query = query & " and d_cost_useyn = 'y' "
|
||||
query = query & " and d_cost_parents = '2' "
|
||||
Adors.Open query, adoConn, 1
|
||||
%>
|
||||
<td width="15%" height="30px" align="center" ><3E><><EFBFBD><EFBFBD></td>
|
||||
<td width="35%" height="30px" >
|
||||
<select name="work_type">
|
||||
<option value=""><3E><>ü</option>
|
||||
<% for i=1 to Adors.recordcount %>
|
||||
<option value="<%=Adors("d_cost_code")%>" <% if CStr(Adors("d_cost_code")) = work_type then %>selected <%end if %>><%=Adors("d_cost_name") %></option>
|
||||
<% Adors.movenext
|
||||
next
|
||||
Adors.close
|
||||
%>
|
||||
</select>
|
||||
</td>
|
||||
<%
|
||||
query = ""
|
||||
query = query & " SELECT DISTINCT before_t_cd1 as d_code, LEFT(T_Name, 8) as d_name "
|
||||
query = query & " FROM project2.dbo.v_Department "
|
||||
query = query & " WHERE before_t_cd1 between 20 and 99 "
|
||||
query = query & " order by LEFT(T_Name, 8) "
|
||||
Adors.Open query, adoConn, 1
|
||||
%>
|
||||
<td width="15%" height="30px" align="center" ><3E><><EFBFBD><EFBFBD><EFBFBD>μ<EFBFBD></td>
|
||||
<td width="35%" height="30px" >
|
||||
<select name="p_depart">
|
||||
<option value=""><3E><>ü</option>
|
||||
<% for i=1 to Adors.recordcount %>
|
||||
<option value="<%=Adors("d_code")%>" <% if CStr(Adors("d_code")) = p_depart then %>selected <%end if %>><%=Adors("d_name") %></option>
|
||||
<% Adors.movenext
|
||||
next
|
||||
Adors.close
|
||||
%>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="15%" height="30px" align="center" ><3E>˻<EFBFBD><CBBB>Ⱓ <20><><EFBFBD><EFBFBD></td>
|
||||
<td width="75%" height="30px" colspan="3" >
|
||||
<input type="text" name="year_from" <% if year_from = "" then %> value="<%=year(date) %>" <% else %> value="<%=year_from %>" <% end if %> style="width:46px;text-align:right" /><3E><>
|
||||
<input type="text" name="month_from" value="<%=month_from %>" style="width:40px;text-align:right" /><3E><>
|
||||
  ~  
|
||||
<input type="text" name="year_to" <% if year_to = "" then %> value="<%=year(date) %>" <% else %> value="<%=year_to %>" <% end if %> style="width:46px;text-align:right" /><3E><>
|
||||
<input type="text" name="month_to" value="<%=month_to %>" style="width:40px;text-align:right" /><3E><>   (* <20>ش<EFBFBD> <20>Ⱓ<EFBFBD><E2B0A3> <20><><EFBFBD><EFBFBD> <20><>ȹ<EFBFBD><C8B9> <20><><EFBFBD><EFBFBD> <20>ǻ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Դϴ<D4B4>.)
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" colspan="4" class="pt-2">
|
||||
<img src="/images/common/btn_search.jpg" align="absmiddle" style="cursor:pointer" onclick="search('search')">
|
||||
<img src="/images/common/btn_excel.jpg" align="absmiddle" onclick="search('excel')" style='CURSOR:pointer;' title ='<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>'></p>
|
||||
</td>
|
||||
</tr>
|
||||
<%end if %>
|
||||
<% if command <> "" then %>
|
||||
<tr>
|
||||
<td align="center" colspan="4">
|
||||
<table class="table table-sm table-sm2 table-bordered table-head tr-colors">
|
||||
<tr>
|
||||
<td align="center" ><3E><><EFBFBD><EFBFBD><EFBFBD>μ<EFBFBD></td>
|
||||
<td align="center" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><>ȣ</td>
|
||||
<td align="center" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><></td>
|
||||
<td align="center" ><3E><><EFBFBD><EFBFBD></td>
|
||||
<td align="center" ><3E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD>۳<EFBFBD>¥</td>
|
||||
<td align="center" ><3E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD>ᳯ¥</td>
|
||||
<td align="center" ><3E><> <20><><EFBFBD>Խð<D4BD></td>
|
||||
<td align="center" ><3E><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
</tr>
|
||||
<%
|
||||
'--<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ҿ<EFBFBD><D2BF><EFBFBD><EFBFBD><EFBFBD> <20>˻<EFBFBD>-<2D><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ
|
||||
query = " select isnull(d2.d_name,d1.d_name) as d_name, tmp.p_sn, tmp.p_child_sn as p_child_sn, isnull(tpm.p_subject,p.p_subject) as p_subject, tmp.p_sebu_code, tmp.s_gubun as p_sebu, "
|
||||
query = query & " st_date, ed_date, job_total_time, s_sum, isnull(tpm.p_method_cd,'') as p_method_cd, isnull(tpm.p_sub_type,'') as p_sub_type "
|
||||
query = query & " from ( "
|
||||
query = query & " select nw.p_sn, tmp.p_sn as p_child_sn, s_gubun, ROUND(SUM(tmp.s_wan),2) as job_total_time, SUM(tmp.s_sum) as s_sum, MIN(work_dt) as st_date, MAX(work_dt) as ed_date, nw.p_sebu_code "
|
||||
query = query & " from t_neakeun_pay tmp left outer join neakeun_work nw on tmp.attribute01 = convert(varchar(15),nw.id) "
|
||||
query = query & " where s_gubun not like '<27>߰<EFBFBD>%' "
|
||||
query = query & " group by tmp.p_sn, tmp.s_gubun, nw.p_sn, nw.p_sebu_code "
|
||||
query = query & " union "
|
||||
query = query & " select nw.p_sn, tmp.p_sn as p_child_sn, s_gubun, '' as job_total_time, SUM(tmp.s_sum) as s_sum, MIN(work_dt) as st_date, MAX(work_dt) as ed_date, '0' as p_sebu_code "
|
||||
query = query & " from t_neakeun_pay tmp left outer join neakeun_work nw on tmp.attribute01 = convert(varchar(15),nw.id) "
|
||||
query = query & " where tmp.s_gubun like '<27>߰<EFBFBD>%' "
|
||||
query = query & " group by tmp.p_sn, tmp.s_gubun, nw.p_sn "
|
||||
query = query & " ) tmp "
|
||||
query = query & " left outer join T_PROJECT_METHOD tpm on tmp.p_child_sn = tpm.p_child_sn "
|
||||
query = query & " left outer join project p on tmp.p_sn = p.p_sn "
|
||||
query = query & " left outer join Depart d1 on tpm.p_rsch_dept = d1.d_code "
|
||||
query = query & " left outer join Depart d2 on p.p_depart = d2.d_code "
|
||||
query = query & " where tmp.p_child_sn != '' AND (p.p_field_complete = 1 or tpm.p_field_complete = 1) "
|
||||
if p_sn <> "" then
|
||||
query = query & " AND tmp.p_sn LIKE '%"& p_sn &"%' "
|
||||
end if
|
||||
if p_subject <> "" then
|
||||
query = query & " AND (p.p_subject LIKE '%"&p_subject&"%' OR tpm.p_subject like '%"&p_subject&"%') "
|
||||
end if
|
||||
if work_type <> "" then
|
||||
query = query & " AND tmp.p_sebu_code = '"&work_type&"' "
|
||||
end if
|
||||
if p_depart <> "" then
|
||||
query = query & " AND (p.p_depart = '"&p_depart&"' OR tpm.p_rsch_dept = '"&p_depart&"') "
|
||||
end if
|
||||
if month_from <> "" then
|
||||
query = query & " AND (tpm.p_field_date_st >= '"&year_from&"-"&month_from&"-00' OR P.p_field_st >= '"&year_from&"-"&month_from&"-00') "
|
||||
end if
|
||||
if month_to <> "" then
|
||||
query = query & " AND (tpm.p_field_date_st <= '"&year_to&"-"&month_to&"-32' OR P.p_field_st <= '"&year_to&"-"&month_to&"-32') "
|
||||
end if
|
||||
query = query & " order by p_child_sn, p_sebu_code desc "
|
||||
|
||||
Adors.open query,adoconn,1
|
||||
|
||||
if Adors.recordcount > 0 then
|
||||
tmp_p_sn = Adors("p_child_sn")
|
||||
end if
|
||||
|
||||
subTime = 0
|
||||
subTotal = 0
|
||||
allTime = 0
|
||||
allTotal = 0
|
||||
|
||||
for i=1 to Adors.recordcount
|
||||
if not isnull(Adors("job_total_time")) then
|
||||
subTime = subTime + Adors("job_total_time")
|
||||
allTime = allTime + Adors("job_total_time")
|
||||
end if
|
||||
if not isnull(Adors("s_sum")) then
|
||||
subTotal = subTotal + Adors("s_sum")
|
||||
allTotal = allTotal + Adors("s_sum")
|
||||
end if
|
||||
|
||||
%>
|
||||
<tr>
|
||||
<td align="center"><%= Adors("d_name")%></td>
|
||||
<td align="center"><%= Adors("p_child_sn")%></td>
|
||||
<td align="left"><a href="javascript:openit('1','<%=Adors("p_sn")%>','<%=Adors("p_sub_type")%>','<%=Adors("p_method_cd")%>','<%=Adors("p_child_sn")%>')" class="blue"><%= Adors("p_subject")%></a></td>
|
||||
<td align="center"><%= Adors("p_sebu")%></td>
|
||||
<td align="center"><%= Adors("st_date")%></td>
|
||||
<td align="center"><%= Adors("ed_date")%></td>
|
||||
<td align="center"><%= Adors("job_total_time")%></td>
|
||||
<td align="center"><%= formatnumber(Adors("s_sum") ,0)%></td>
|
||||
</tr>
|
||||
<% Adors.movenext
|
||||
if i < Adors.recordcount then
|
||||
if tmp_p_sn <> Adors("p_child_sn") then
|
||||
%>
|
||||
<tr>
|
||||
<td align="right" colspan="6"><b>[<%= tmp_p_sn%>]<5D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20>Ұ<EFBFBD></b></td>
|
||||
<td align="center"><b><%= subTime%></b></td>
|
||||
<td align="center"><b><%= formatnumber(subTotal,0)%></b></td>
|
||||
</tr>
|
||||
<%
|
||||
tmp_p_sn = Adors("p_child_sn")
|
||||
subTime = 0
|
||||
subTotal = 0
|
||||
end if
|
||||
else
|
||||
%>
|
||||
<tr>
|
||||
<td align="right" colspan="6"><b>[<%= tmp_p_sn%>]<5D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20>Ұ<EFBFBD></b></td>
|
||||
<td align="center"><b><%= subTime%></b></td>
|
||||
<td align="center"><b><%= formatnumber(subTotal,0)%></b></td>
|
||||
</tr>
|
||||
<%
|
||||
end if
|
||||
next
|
||||
Adors.close
|
||||
%>
|
||||
<tr>
|
||||
<td align="right" colspan="6"><b><3E><> <20>հ<EFBFBD></b></td>
|
||||
<td align="center"><b><%= allTime%></b></td>
|
||||
<td align="center"><b><%= formatnumber(allTotal,0)%></b></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<% end if %>
|
||||
</table>
|
||||
</form>
|
||||
<%if command <> "excel" then%>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.content -->
|
||||
<!-- REQUIRED SCRIPTS -->
|
||||
<script>
|
||||
function search(a) {
|
||||
document.pms.action = "end_project_neakun_expence.asp?command=" + a;
|
||||
document.pms.submit();
|
||||
}
|
||||
|
||||
function openit(a, z, x, y, v) {
|
||||
if (a == 1) {
|
||||
var url = '/project/project_list2_dep.asp?p_sn=' + z;
|
||||
var tmp_width = 1050;
|
||||
var tmp_height = 800;
|
||||
url = url + "&p_sub_type=" + x + "&p_method_cd=" + y + "&p_child_sn=" + v;
|
||||
}
|
||||
window.open(url, '', 'left=0,top=0,width=' + tmp_width + ',height=' + tmp_height + ',scrollbars=yes,resizable=yes')
|
||||
}
|
||||
</script>
|
||||
</div>
|
||||
<!-- /.content-wrapper -->
|
||||
<!-- #include virtual = "include/footer.asp" -->
|
||||
<% end if %>
|
||||
344
inspection/etc_confirm.asp
Normal file
344
inspection/etc_confirm.asp
Normal file
@@ -0,0 +1,344 @@
|
||||
<!-- #include virtual = "include/header.asp" -->
|
||||
<!-- #include virtual = "include/left.asp" -->
|
||||
<!-- Content Wrapper. Contains page content -->
|
||||
<div class="content-wrapper">
|
||||
<!-- Content Header (Page header) -->
|
||||
<div class="content-header">
|
||||
<h1><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Ȯ<><C8AE>(<28><>Ÿ)</h1>
|
||||
</div>
|
||||
<!-- /.content-header -->
|
||||
<!-- Main content -->
|
||||
<div class="content-body">
|
||||
<div class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<% Dim f_menu : f_menu = "my" %>
|
||||
<!-- #include file = "f_menu.asp" -->
|
||||
<form method='post' id='etc_check' name='etc_check'>
|
||||
<input type="hidden" name="prj_code" id="prj_code" value="<%=request("prj_code") %>" />
|
||||
<input type="hidden" name="p_child_sn" id="p_child_sn" value="<%=request("p_child_sn") %>" />
|
||||
<input type="hidden" name="p_subject" id="p_subject" value="<%=request("p_subject") %>" />
|
||||
<input type="hidden" name="searchType" id="searchType" value="<%=request("searchType") %>" />
|
||||
<%
|
||||
query = ""
|
||||
query = query & " select sebu, est_danga FROM direct_cost where p_child_sn = '"& request("p_child_sn") &"' "
|
||||
query = query & " and del_yes_no = 'no' "
|
||||
query = query & " and sebu IN ('<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>', '<27>Ұ<EFBFBD><D2B0><EFBFBD>','<27>ص<EFBFBD><D8B5><EFBFBD>', '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>1','<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>2','<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>3','<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>4','<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>5') "
|
||||
'response.Write query
|
||||
Rs.Open query, adoConn, 1
|
||||
%>
|
||||
<table width="1200px" class="table table-sm table-sm2 table-bordered table-head tr-colors">
|
||||
<tr>
|
||||
<td align="center"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ</td>
|
||||
<td align="left">
|
||||
<input type="text" class="gray" style="width:calc(100% - 30px);" name="prj_name" id="prj_name" value='<%=iif(request("p_child_sn") <> "", "["&request("p_child_sn")&"] "&request("p_subject"), "") %>' onclick="winnewoepn('txt_prj_name','txt_p_sn');" readonly>
|
||||
<img src="/images/common/btn_smallsrch2.gif" align="absmiddle" onclick="winnewoepn('txt_prj_name','txt_p_sn');" style="cursor:pointer;width:24px;">
|
||||
</td>
|
||||
<td><img src="/images/common/btn_smallsrch.gif" align="absmiddle" onclick="search()" style='cursor:pointer'></td>
|
||||
</tr>
|
||||
</table>
|
||||
<%
|
||||
query = " select tmp.id, m_name, m_jumin, work_dt, money_type, est_money, s_pay_unit, s_wan, add_money, add_money_memo, confirm_yn, "
|
||||
query = query & " CASE "
|
||||
query = query & " WHEN d.d_order_cnt = '99' THEN '<27><><EFBFBD><EFBFBD> <20>ݷ<EFBFBD>' "
|
||||
query = query & " WHEN d.d_order_cnt = '77' THEN '<27><><EFBFBD><EFBFBD> <20>Ϸ<EFBFBD>' "
|
||||
query = query & " WHEN d.d_order_cnt IS NULL THEN '' "
|
||||
query = query & " ELSE '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' "
|
||||
query = query & " end as d_order_cnt "
|
||||
query = query & " from T_MYUN_PAY tmp left outer join Document d on tmp.attribute05 = d.d_no "
|
||||
query = query & " where p_sn = '"& request("p_child_sn") &"' "
|
||||
query = query & " and s_gubun = 'ETC' "
|
||||
query = query & " and insert_user = '" & session("User_Number") & "' "
|
||||
query = query & " order by tmp.id asc "
|
||||
query = query & " "
|
||||
' Response.write query
|
||||
adors.Open query, adoConn, 1
|
||||
%>
|
||||
<table width="1200px" class="table table-sm table-sm2 table-bordered table-head tr-colors">
|
||||
<tr height='30'>
|
||||
<td align="center" style="width:20"><3E><><EFBFBD><EFBFBD></td>
|
||||
<td align="center" style="width:120"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td align="center" style="width:150"><3E>ٹ<EFBFBD><D9B9><EFBFBD>¥</td>
|
||||
<td align="center" style="width:120"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td align="center" style="width:80"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td align="center" style="width:80"><3E>ܰ<EFBFBD></td>
|
||||
<td align="center" style="width:80"><3E><><EFBFBD><EFBFBD></td>
|
||||
<td align="center" style="width:100"><3E>߰<EFBFBD><DFB0><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td align="center" style="width:200"><3E><><EFBFBD><EFBFBD></td>
|
||||
<td align="center" style="width:100"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><br/>(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)</td>
|
||||
<td align="center" style="width:50">Confirm<br />
|
||||
<input type="checkbox" id="checkAll" name="checkAll" />
|
||||
</td>
|
||||
</tr>
|
||||
<% if Rs.recordcount > 0 then %>
|
||||
<input type="hidden" name="record_cnt" value="<%=adors.recordcount %>" />
|
||||
<% for i=1 to adors.recordcount + 30 %>
|
||||
<% '<27><><EFBFBD><EFBFBD><EFBFBD>Ͱ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ҷ<EFBFBD><D2B7>´<EFBFBD>.
|
||||
if adors.recordcount >= i then %>
|
||||
<tr height='30'>
|
||||
<td align="center" ><%= i %>
|
||||
<input type="hidden" id='id_<%=i%>' name='id_<%=i%>' value="<%=adors("id") %>"/>
|
||||
</td>
|
||||
<td align="left" >
|
||||
<input type="text" style="width:60%" id='txtName_<%=i%>' name='txtName_<%=i%>' maxlength=20 readonly value='<%=adors("m_name")%>'
|
||||
<% if adors("d_order_cnt") = "<22><><EFBFBD><EFBFBD> <20>Ϸ<EFBFBD>" OR adors("d_order_cnt") = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" then %>
|
||||
readonly
|
||||
<% end if %>
|
||||
>
|
||||
<input type="hidden" id='txtJumin_<%=i%>' name='txtJumin_<%=i%>' value="<%=adors("m_jumin")%>"/>
|
||||
<% if adors("d_order_cnt") = "<22><><EFBFBD><EFBFBD> <20>Ϸ<EFBFBD>" OR adors("d_order_cnt") = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" then %>
|
||||
<% else %>
|
||||
<img src="/images/common/btn_smallsrch2.gif" align="absmiddle" style="cursor:pointer;" onclick="search_Name(this.form,<%=i %>);">
|
||||
<% end if %>
|
||||
|
||||
</td>
|
||||
<td align="left" >
|
||||
<input type="text" style="width:100;text-align:center;CURSOR: pointer;" value="<%=adors("work_dt") %>" id='work_date_<%=i%>' name='work_date_<%=i%>' readonly
|
||||
<% if adors("d_order_cnt") = "<22><><EFBFBD><EFBFBD> <20>Ϸ<EFBFBD>" OR adors("d_order_cnt") = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" then %>
|
||||
<% else %>
|
||||
OnClick="winopn('/include/calendar.html?actval=work_date_<%=i%>')"
|
||||
<% end if %>
|
||||
>
|
||||
</td>
|
||||
<td align="center" >
|
||||
<input type="text" id="workType_<%=i%>" name="workType_<%=i%>" style="width:100%;" value="<%=adors("money_type") %>"
|
||||
<% if adors("d_order_cnt") = "<22><><EFBFBD><EFBFBD> <20>Ϸ<EFBFBD>" OR adors("d_order_cnt") = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" then %>
|
||||
readonly
|
||||
<% end if %>
|
||||
/>
|
||||
</td>
|
||||
|
||||
<td >
|
||||
<% if adors("d_order_cnt") = "<22><><EFBFBD><EFBFBD> <20>Ϸ<EFBFBD>" OR adors("d_order_cnt") = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" then %>
|
||||
<input type="text" name="est_money_<%=i%>" id="est_money_<%=i%>" style="width:100%;" value="<%=adors("est_money") %>" readonly/>
|
||||
<% else %>
|
||||
<select name = "est_money_<%=i%>" id="est_money_<%=i%>" style="width:150;">
|
||||
<option value=""><3E><> <20><></option>
|
||||
<%
|
||||
Rs.movefirst
|
||||
for j=1 to Rs.recordCount
|
||||
%>
|
||||
<option value='<%=Rs("sebu") %>' <% if adors("est_money") = Rs("sebu") then %> selected <% end if %>>[<%=Rs("sebu") %>] - <%=Rs("est_danga") %></option>
|
||||
<% Rs.movenext
|
||||
next
|
||||
%>
|
||||
</select>
|
||||
<% end if %>
|
||||
</td>
|
||||
<td align="center" >
|
||||
<input type="text" name="s_pay_unit_<%=i%>" id="s_pay_unit_<%=i%>" style="width:100%;" value="<%=adors("s_pay_unit") %>"
|
||||
<% if adors("d_order_cnt") = "<22><><EFBFBD><EFBFBD> <20>Ϸ<EFBFBD>" OR adors("d_order_cnt") = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" then %>
|
||||
readonly
|
||||
<% end if %>
|
||||
/>
|
||||
</td>
|
||||
<td align="center" >
|
||||
<input type="text" name="count_<%=i%>" id="count_<%=i%>" style="width:100%;" value="<%=adors("s_wan") %>"
|
||||
<% if adors("d_order_cnt") = "<22><><EFBFBD><EFBFBD> <20>Ϸ<EFBFBD>" OR adors("d_order_cnt") = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" then %>
|
||||
readonly
|
||||
<% end if %>
|
||||
/>
|
||||
</td>
|
||||
<td align="center" >
|
||||
<input type="text" name="add_money_<%=i%>" id="add_money_<%=i%>" style="width:100%;" value="<%=adors("add_money") %>"
|
||||
<% if adors("d_order_cnt") = "<22><><EFBFBD><EFBFBD> <20>Ϸ<EFBFBD>" OR adors("d_order_cnt") = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" then %>
|
||||
readonly
|
||||
<% end if %>
|
||||
/>
|
||||
</td>
|
||||
<td align="center" >
|
||||
<input type="text" name="add_money_memo_<%=i%>" id="add_money_memo_<%=i%>" style="width:100%;" value="<%=adors("add_money_memo") %>"
|
||||
<% if adors("d_order_cnt") = "<22><><EFBFBD><EFBFBD> <20>Ϸ<EFBFBD>" OR adors("d_order_cnt") = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" then %>
|
||||
readonly
|
||||
<% end if %>
|
||||
/>
|
||||
</td>
|
||||
<td align="center" >
|
||||
<input type="text" name="approvalYN_<%=i%>" style="width:100%;" value="<%=adors("d_order_cnt") %>" readonly/>
|
||||
</td>
|
||||
<td align="center" >
|
||||
<input type="checkbox" id="chk_work_confirm_<%=i%>" name="chk_work_confirm" value="Y" <% if adors("confirm_yn") = "Y" then %>checked <% end if %>
|
||||
<% if adors("d_order_cnt") = "<22><><EFBFBD><EFBFBD> <20>Ϸ<EFBFBD>" OR adors("d_order_cnt") = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" then %>
|
||||
disabled
|
||||
<% end if %>
|
||||
/>
|
||||
<input type="hidden" id="confirm_<%=i%>" name="confirm_<%=i%>" value="Y"/>
|
||||
</td>
|
||||
</tr>
|
||||
<%
|
||||
adors.movenext
|
||||
else
|
||||
'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><>ĭ
|
||||
%>
|
||||
<tr height='30'>
|
||||
<td align="center" ><%= i %>
|
||||
<input type="hidden" id='id_<%=i%>' name='id_<%=i%>' value=""/>
|
||||
<img src="/images/business/icon_del.gif" align="absmiddle" OnClick="del_row('<%=i%>')" style="cursor:pointer;">
|
||||
</td>
|
||||
<td align="left" >
|
||||
<input type="text" style="width:60%" id='txtName_<%=i%>' name='txtName_<%=i%>' maxlength=20 readonly onkeyup='if(event.keyCode==13){search_Name(this.form,<%=i %>);}' value=''>
|
||||
<input type="hidden" id='txtJumin_<%=i%>' name='txtJumin_<%=i%>' />
|
||||
<img src="/images/common/btn_smallsrch2.gif" align="absmiddle" style="cursor:pointer;" onclick="search_Name(this.form,<%=i %>);">
|
||||
</td>
|
||||
<td align="left" >
|
||||
<input type="text" style="width:100;text-align:center;CURSOR: pointer;" value="" id='work_date_<%=i%>' name='work_date_<%=i%>' readonly OnClick="winopn('/include/calendar.html?actval=work_date_<%=i%>')">
|
||||
</td>
|
||||
<td align="center" >
|
||||
<input type="text" id="workType_<%=i%>" name="workType_<%=i%>" style="width:100%;" value=""/>
|
||||
</td>
|
||||
<td >
|
||||
<select name = "est_money_<%=i%>" id="est_money_<%=i%>" style="width:150;">
|
||||
<option value=""><3E><> <20><></option>
|
||||
<%
|
||||
Rs.movefirst
|
||||
for j=1 to Rs.recordCount
|
||||
%>
|
||||
<option value='<%=Rs("sebu") %>' <% if request("myun") = Rs("sebu") then %> selected <% end if %>>[<%=Rs("sebu") %>] - <%=Rs("est_danga") %></option>
|
||||
<% Rs.movenext
|
||||
next
|
||||
%>
|
||||
</select>
|
||||
</td>
|
||||
<td align="center" >
|
||||
<input type="text" name="s_pay_unit_<%=i%>" id="s_pay_unit_<%=i%>" style="width:100%;" value=""/>
|
||||
</td>
|
||||
<td align="center" >
|
||||
<input type="text" name="count_<%=i%>" id="count_<%=i%>" style="width:100%;" value=""/>
|
||||
</td>
|
||||
<td align="center" >
|
||||
<input type="text" name="add_money_<%=i%>" id="add_money_<%=i%>" style="width:100%;" value=""/>
|
||||
</td>
|
||||
<td align="center" >
|
||||
<input type="text" name="add_money_memo_<%=i%>" id="add_money_memo_<%=i%>" style="width:100%;" value=""/>
|
||||
</td>
|
||||
<td align="center" >
|
||||
<input type="text" name="approvalYN_<%=i%>" style="width:100%;" value="" readonly/>
|
||||
</td>
|
||||
<td align="center" >
|
||||
<input type="checkbox" id="chk_work_confirm_<%=i%>" name="chk_work_confirm" value="Y" />
|
||||
<input type="hidden" id="confirm_<%=i%>" name="confirm_<%=i%>" value="Y"/>
|
||||
</td>
|
||||
</tr>
|
||||
<% end if
|
||||
next %>
|
||||
<tr>
|
||||
<td colspan="9" align="center">
|
||||
<img src="/images/common/btn_save.jpg" align="absmiddle" onclick="save()" style="cursor:pointer;" id="img_save">
|
||||
</td>
|
||||
</tr>
|
||||
<%
|
||||
else
|
||||
%>
|
||||
<tr height="30"><td align="center" colspan="11" style="font-size:20"><% if request("p_child_sn") <> "" then %><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD>. IT<49><54><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>.<% end if %></td></tr>
|
||||
<% end if %>
|
||||
<% Rs.close %>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.content -->
|
||||
<!-- REQUIRED SCRIPTS -->
|
||||
<script>
|
||||
$(function () {
|
||||
$("#checkAll").click(function () {
|
||||
if ($("#checkAll").prop("checked")) {
|
||||
$("input[name=chk_work_confirm]").prop("checked", true);
|
||||
} else {
|
||||
$("input[name=chk_work_confirm]").prop("checked", false);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
|
||||
function winnewoepn(actval, actval2) {
|
||||
var url = "/project_list/project_etc_list_2014.asp";
|
||||
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 save() {
|
||||
if (!confirm("<22><><EFBFBD><EFBFBD><EFBFBD>Ͻðڽ<C3B0><DABD>ϱ<EFBFBD>?")) {
|
||||
$("#img_save").css("display", "inline");
|
||||
return false;
|
||||
}
|
||||
var maxRow = document.etc_check.record_cnt.value * 1 + 30;
|
||||
|
||||
for (i = 0; i < maxRow; i++) {
|
||||
if ($("input:checkbox[id='chk_work_confirm_" + (i + 1) + "']").is(":checked") == false) {
|
||||
$("#confirm_" + (i + 1)).val("N");
|
||||
}
|
||||
if (($("#txtName_" + (i + 1)).val() == "" || $("#txtJumin_" + (i + 1)).val() == "") && $("#work_date_" + (i + 1)).val() != "") {
|
||||
alert((i + 1) + "<22><>° <20><><EFBFBD><EFBFBD> Ȯ<><C8AE><EFBFBD>ϼ<EFBFBD><CFBC><EFBFBD>.\n<><6E><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϼ<EFBFBD><CFBC><EFBFBD>.");
|
||||
return false;
|
||||
}
|
||||
if ($("#work_date_" + (i + 1)).val() == "" && $("#txtName_" + (i + 1)).val() != "") {
|
||||
alert((i + 1) + "<22><>° <20><><EFBFBD><EFBFBD> Ȯ<><C8AE><EFBFBD>ϼ<EFBFBD><CFBC><EFBFBD>.\n<>ٹ<EFBFBD><D9B9><EFBFBD><EFBFBD>ڸ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϼ<EFBFBD><CFBC><EFBFBD>.");
|
||||
return false;
|
||||
}
|
||||
if ($("#workType_" + (i + 1)).val() == "" && $("#txtName_" + (i + 1)).val() != "") {
|
||||
alert((i + 1) + "<22><>° <20><><EFBFBD><EFBFBD> Ȯ<><C8AE><EFBFBD>ϼ<EFBFBD><CFBC><EFBFBD>.\n<><6E><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ݵ<EFBFBD><DDB5><EFBFBD> <20>Է<EFBFBD><D4B7>ϼ<EFBFBD><CFBC><EFBFBD>.");
|
||||
return false;
|
||||
}
|
||||
if ($("#s_pay_unit_" + (i + 1)).val() == "" && $("#txtName_" + (i + 1)).val() != "") {
|
||||
alert((i + 1) + "<22><>° <20><><EFBFBD><EFBFBD> Ȯ<><C8AE><EFBFBD>ϼ<EFBFBD><CFBC><EFBFBD>.\n<>ܰ<EFBFBD><DCB0><EFBFBD> <20>ݵ<EFBFBD><DDB5><EFBFBD> <20>Է<EFBFBD><D4B7>ϼ<EFBFBD><CFBC><EFBFBD>.");
|
||||
return false;
|
||||
}
|
||||
if ($("#count_" + (i + 1)).val() == "" && $("#txtName_" + (i + 1)).val() != "") {
|
||||
alert((i + 1) + "<22><>° <20><><EFBFBD><EFBFBD> Ȯ<><C8AE><EFBFBD>ϼ<EFBFBD><CFBC><EFBFBD>.\n<><6E><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ݵ<EFBFBD><DDB5><EFBFBD> <20>Է<EFBFBD><D4B7>ϼ<EFBFBD><CFBC><EFBFBD>.");
|
||||
return false;
|
||||
}
|
||||
if ($("#est_money_" + (i + 1)).val() == "" && $("#txtName_" + (i + 1)).val() != "") {
|
||||
alert((i + 1) + "<22><>° <20><><EFBFBD><EFBFBD> Ȯ<><C8AE><EFBFBD>ϼ<EFBFBD><CFBC><EFBFBD>.\n<><6E><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ݵ<EFBFBD><DDB5><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ؾ<EFBFBD> <20>մϴ<D5B4>.");
|
||||
return false;
|
||||
}
|
||||
|
||||
if ($("#add_money_" + (i + 1)).val() != "" && $("#add_money_" + (i + 1)).val() != "0" && $("#add_money_memo_" + (i + 1)).val() == "") {
|
||||
alert((i + 1) + "<22><>° <20><><EFBFBD><EFBFBD> Ȯ<><C8AE><EFBFBD>ϼ<EFBFBD><CFBC><EFBFBD>.\n<>߰<EFBFBD>/<2F><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>Է½<D4B7> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ݵ<EFBFBD><DDB5><EFBFBD> <20>Է<EFBFBD><D4B7>ؾ<EFBFBD> <20>մϴ<D5B4>.");
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
$("#img_save").css("display", "none");
|
||||
document.etc_check.action = "etc_confirm_save.asp";
|
||||
document.etc_check.submit();
|
||||
}
|
||||
function search() {
|
||||
var p_child_sn = document.etc_check.p_child_sn.value;
|
||||
if (p_child_sn == "") {
|
||||
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD><EFBFBD>ϼ<EFBFBD><CFBC><EFBFBD>");
|
||||
return;
|
||||
}
|
||||
document.etc_check.action = "etc_confirm.asp";
|
||||
document.etc_check.submit();
|
||||
}
|
||||
|
||||
function search_Name(x,i) {
|
||||
x = document.etc_check;
|
||||
var url = "/project_list/myun_search.asp?cutmenu=1&part=etc_myun_input";
|
||||
url = url + "&num=" + i;
|
||||
window.open(url, "", "left=0, top=5, width=500, height=500, scrollbars=yes, statbar=no");
|
||||
}
|
||||
|
||||
function del_row(row) {
|
||||
if (confirm(row + "<22><>° <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>մϴ<D5B4>.")) {
|
||||
$("#confirm_" + row).val("N");
|
||||
$("#txtName_" + row).val("");
|
||||
$("#txtJumin_" + row).val("");
|
||||
$("#work_date_" + row).val("");
|
||||
$("#workType_" + row).val("");
|
||||
$("#s_pay_unit_" + row).val("");
|
||||
$("#count_" + row).val("");
|
||||
$("#est_money_" + row).val("");
|
||||
$("#add_money_" + row).val("");
|
||||
$("#add_money_memo_" + row).val("");
|
||||
$("#chk_work_confirm_" + row).prop("checked", false);
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</div>
|
||||
<!-- /.content-wrapper -->
|
||||
<!-- #include virtual = "include/footer.asp" -->
|
||||
95
inspection/etc_confirm_save.asp
Normal file
95
inspection/etc_confirm_save.asp
Normal file
@@ -0,0 +1,95 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<%
|
||||
set dbin = server.CreateObject("ADODB.CONNECTION")
|
||||
|
||||
dbin.Open adoConn
|
||||
|
||||
Dim add_count
|
||||
Dim add_money
|
||||
DIm s_pay_unit
|
||||
Dim s_ot_pay
|
||||
DIm est_money
|
||||
'response.Write "cnt : " & request("cnt") &"<BR>"
|
||||
|
||||
p_field_date_st = request("p_field_date_st")
|
||||
p_field_date_end = request("p_field_date_end")
|
||||
p_child_sn = request("p_child_sn")
|
||||
|
||||
|
||||
for i=1 to request("record_cnt") + 30
|
||||
d_order_cnt = request("approvalYN_" & cstr(i))
|
||||
'response.Write "---------------------------------------------------------------------------"&"<BR>"
|
||||
'response.Write "i : "& i & "<BR>"
|
||||
'response.Write "d_order_cnt : " & request("d_order_cnt")(i) & "<BR>"
|
||||
'response.Write "add_count : " & request("add_count")(i) & "<BR>"
|
||||
'response.Write "add_count_memo : " & request("add_count_memo")(i) & "<BR>"
|
||||
'response.Write "chk_work_confirm : " & request("chk_work_confirm_"&i) & "<BR>"
|
||||
|
||||
if (d_order_cnt = "<22><><EFBFBD><EFBFBD> <20>ݷ<EFBFBD>" OR d_order_cnt = "" OR isnull(d_order_cnt)) and request("txtName_"&i) <> "" then
|
||||
s_pay_unit = 0
|
||||
s_ot_pay = 0
|
||||
|
||||
If Trim(request("add_money_"&i)) = "" Then
|
||||
add_money = 0
|
||||
Else
|
||||
add_money = Cstr(request("add_money_"&i))
|
||||
End if
|
||||
|
||||
if request("s_pay_unit_" & i) = "" then
|
||||
s_pay_unit = 0
|
||||
else
|
||||
s_pay_unit = replace(request("s_pay_unit_" & i),",","")
|
||||
end if
|
||||
|
||||
if request("count_" & i) = "" then
|
||||
count = 0
|
||||
else
|
||||
count = request("count_" & i)
|
||||
end if
|
||||
|
||||
'<27><><EFBFBD><EFBFBD> <20>ľ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> update X
|
||||
if request("id_"&i) <> "" then
|
||||
query = " update T_MYUN_PAY "
|
||||
query = query & " set p_sn = '" & p_child_sn & "', money_type = '" & request("workType_"&i) & "', m_name = '" & request("txtName_"&i) & "', "
|
||||
query = query & " m_jumin = '" & request("txtJumin_"&i) & "', work_dt = '" & request("work_date_"&i) & "', "
|
||||
query = query & " est_money = '" & request("est_money_"&i) & "', s_pay_unit = '" & s_pay_unit & "', "
|
||||
query = query & " s_wan = '" & count & "', s_sum = '" & (cdbl(count) * cdbl(s_pay_unit)) + cdbl(add_money) & "', "
|
||||
query = query & " confirm_yn = '" & request("confirm_"&i) & "', add_money = '" & add_money & "', "
|
||||
query = query & " add_money_memo = '" & request("add_money_memo_"&i) & "', insert_dt = getdate() "
|
||||
query = query & " where id = '"& request("id_"&i) &"' "
|
||||
Else
|
||||
query = " insert into T_MYUN_PAY( "
|
||||
query = query & " pay_type, p_sn, money_type, m_name, m_jumin, work_dt, s_gubun, s_pay_unit, s_wan, "
|
||||
query = query & " s_sum, confirm_yn, est_money, add_money, add_money_memo, insert_dt, insert_user "
|
||||
query = query & " ) values ( "
|
||||
query = query & " '2', '" & p_child_sn & "', '" & request("workType_"&i) & "', '" & request("txtName_"&i) & "', '" & request("txtJumin_"&i) & "'"
|
||||
query = query & " , '" & request("work_date_"&i) & "', "
|
||||
query = query & " 'ETC', "
|
||||
query = query & " '" & s_pay_unit & "', "
|
||||
query = query & " '" & count & "', "
|
||||
query = query & " '" & (cdbl(count) * cdbl(s_pay_unit)) + cdbl(add_money) & "', '" & request("confirm_"&i) & "', '" & request("est_money_"&i) & "', "
|
||||
query = query & " '" & add_money & "', '" & request("add_money_memo_"&i) & "', getdate(), '" & Session("User_Number") & "') "
|
||||
end if
|
||||
|
||||
'response.Write query & "<BR>"
|
||||
dbin.Execute query
|
||||
END if
|
||||
next
|
||||
|
||||
dbin.Close
|
||||
%>
|
||||
<html>
|
||||
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
|
||||
<script>
|
||||
function goit() {
|
||||
alert('<27><><EFBFBD><EFBFBD><EFBFBD>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>');
|
||||
document.pms.action = 'etc_confirm.asp?p_child_sn=<%=p_child_sn %>';
|
||||
document.pms.submit();
|
||||
}
|
||||
</script>
|
||||
<body onLoad="goit()">
|
||||
<form name="pms" method="post">
|
||||
<input type="hidden" name="p_subject" value="<%=request("p_subject") %>" />
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
44
inspection/f_menu.asp
Normal file
44
inspection/f_menu.asp
Normal file
@@ -0,0 +1,44 @@
|
||||
<ul class="nav nav-tabs mb-0">
|
||||
<% Dim aspUrl : aspUrl = Request.ServerVariables("PATH_INFO")
|
||||
Dim aspUrlArr : aspUrlArr = Split(aspUrl, "/")
|
||||
aspUrl = aspUrlArr(UBound(aspUrlArr))
|
||||
%>
|
||||
<% If f_menu = "nk" Then %>
|
||||
<li class="nav-item"><button onclick="location.href='./neakeun_status1.asp'" class="nav-link p-2 <%= iif(aspUrl = "neakeun_status1.asp", "active", "")%>" type="button"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȳ</button></li>
|
||||
<li class="nav-item"><button onclick="location.href='./neakeun_status2_2014.asp'" class="nav-link p-2 <%= iif(aspUrl = "neakeun_status2_2014.asp", "active", "")%>" type="button"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȳ</button></li>
|
||||
<li class="nav-item"><button onclick="location.href='./neakeun_work_confirm.asp'" class="nav-link p-2 <%= iif(aspUrl = "neakeun_work_confirm.asp", "active", "")%>" type="button"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ٹ<EFBFBD>Ȯ<EFBFBD><C8AE></button></li>
|
||||
<li class="nav-item"><button onclick="location.href='./coding_confirm.asp'" class="nav-link p-2 <%= iif(aspUrl = "coding_confirm.asp", "active", "")%>" type="button"><3E>ڵ<EFBFBD> <20>ٹ<EFBFBD>Ȯ<EFBFBD><C8AE></button></li>
|
||||
<li class="nav-item"><button onclick="location.href='./punching_confirm.asp'" class="nav-link p-2 <%= iif(aspUrl = "punching_confirm.asp", "active", "")%>" type="button"><3E><>ġ <20>ٹ<EFBFBD>Ȯ<EFBFBD><C8AE></button></li>
|
||||
<li class="nav-item"><button onclick="location.href='./ins_confirm.asp'" class="nav-link p-2 <%= iif(aspUrl = "ins_confirm.asp", "active", "")%>" type="button"><3E><><EFBFBD><EFBFBD> <20>ٹ<EFBFBD>Ȯ<EFBFBD><C8AE></button></li>
|
||||
<li class="nav-item"><button onclick="location.href='./cins_confirm.asp'" class="nav-link p-2 <%= iif(aspUrl = "cins_confirm.asp", "active", "")%>" type="button"><3E><>û <20>ٹ<EFBFBD>Ȯ<EFBFBD><C8AE></button></li>
|
||||
<li class="nav-item"><button onclick="location.href='./qetc_confirm.asp'" class="nav-link p-2 <%= iif(aspUrl = "qetc_confirm.asp", "active", "")%>" type="button"><3E><>Ÿ <20>ٹ<EFBFBD>Ȯ<EFBFBD><C8AE></button></li>
|
||||
<script>
|
||||
$(function(){
|
||||
currentMenu("/inspection/neakeun_status1.asp", "");
|
||||
});
|
||||
</script>
|
||||
<% End If %>
|
||||
<% If f_menu = "my" Then %>
|
||||
<li class="nav-item"><button onclick="location.href='./interviewer_regist.asp'" class="nav-link p-2 <%= iif(aspUrl = "interviewer_regist.asp", "active", "")%>" type="button"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD></button></li>
|
||||
<li class="nav-item"><button onclick="location.href='./interviewer_search.asp'" class="nav-link p-2 <%= iif(aspUrl = "interviewer_search.asp", "active", "")%>" type="button"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>˻<EFBFBD></button></li>
|
||||
<li class="nav-item"><button onclick="location.href='./interviewer_check.asp'" class="nav-link p-2 <%= iif(aspUrl = "interviewer_check.asp", "active", "")%>" type="button"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Ȯ<><C8AE>(FF)</button></li>
|
||||
<li class="nav-item"><button onclick="location.href='./interviewer_cati_check.asp'" class="nav-link p-2 <%= iif(aspUrl = "interviewer_cati_check.asp", "active", "")%>" type="button"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Ȯ<><C8AE>(CATI)</button></li>
|
||||
<li class="nav-item"><button onclick="location.href='./etc_confirm.asp'" class="nav-link p-2 <%= iif(aspUrl = "etc_confirm.asp", "active", "")%>" type="button"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Ȯ<><C8AE>(<28><>Ÿ)</button></li>
|
||||
<script>
|
||||
$(function(){
|
||||
currentMenu("/inspection/interviewer_regist.asp", "");
|
||||
});
|
||||
</script>
|
||||
<% End If %>
|
||||
<% If f_menu = "np" Then %>
|
||||
<li class="nav-item"><button onclick="location.href='./end_project_neakun_expence.asp'" class="nav-link p-2 <%= iif(aspUrl = "end_project_neakun_expence.asp", "active", "")%>" type="button"><3E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ҿ<EFBFBD><D2BF><EFBFBD><EFBFBD><EFBFBD></button></li>
|
||||
<li class="nav-item"><button onclick="location.href='./ing_project_state.asp'" class="nav-link p-2 <%= iif(aspUrl = "ing_project_state.asp", "active", "")%>" type="button"><3E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȳ</button></li>
|
||||
<li class="nav-item"><button onclick="location.href='./date_neakeun_work.asp'" class="nav-link p-2 <%= iif(aspUrl = "date_neakeun_work.asp", "active", "")%>" type="button"><3E><><EFBFBD>ں<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ٹ<EFBFBD><D9B9><EFBFBD>Ȳ</button></li>
|
||||
<li class="nav-item"><button onclick="location.href='./myun_neakeun_state.asp'" class="nav-link p-2 <%= iif(aspUrl = "myun_neakeun_state.asp", "active", "")%>" type="button"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><DEB4><EFBFBD></button></li>
|
||||
<script>
|
||||
$(function(){
|
||||
currentMenu("/inspection/end_project_neakun_expence.asp", "");
|
||||
});
|
||||
</script>
|
||||
<% End If %>
|
||||
</ul>
|
||||
255
inspection/ing_project_state.asp
Normal file
255
inspection/ing_project_state.asp
Normal file
@@ -0,0 +1,255 @@
|
||||
<!-- #include virtual = "include/header.asp" -->
|
||||
<%
|
||||
dim command
|
||||
command = Request("command")
|
||||
|
||||
p_sn = request("p_sn")
|
||||
p_subject = request("p_subject")
|
||||
work_type = request("work_type")
|
||||
p_depart = request("p_depart")
|
||||
|
||||
dim tmp_p_sn
|
||||
dim subTime
|
||||
dim allTime
|
||||
dim subPay
|
||||
dim allPay
|
||||
|
||||
if tmp_month = "" then
|
||||
tmp_month = cstr(month(date()))
|
||||
end if
|
||||
|
||||
if command <> "excel" then
|
||||
%>
|
||||
<!-- #include virtual = "include/left.asp" -->
|
||||
<!-- Content Wrapper. Contains page content -->
|
||||
<div class="content-wrapper">
|
||||
<!-- Content Header (Page header) -->
|
||||
<div class="content-header">
|
||||
<h1><3E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><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=<3D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ_<C6AE><5F><EFBFBD><EFBFBD><EFBFBD><EFBFBD>_<EFBFBD><5F><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȳ.xls"
|
||||
end if
|
||||
%>
|
||||
<%if command <> "excel" then%>
|
||||
<% Dim f_menu : f_menu = "np" %>
|
||||
<!-- #include file = "f_menu.asp" -->
|
||||
<%End If%>
|
||||
<form name="pms" method="post">
|
||||
<table width="1200px" class="table table-sm table-sm2 table-bordered table-head tr-colors">
|
||||
<%if command <> "excel" then%>
|
||||
<tr>
|
||||
<td width="15%" height="30px" align="center" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><>ȣ</td>
|
||||
<td width="35%" height="30px" ><input name="p_sn" type="text" value="<%=p_sn %>" style="width:200px" ></td>
|
||||
<td width="15%" height="30px" align="center" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE></td>
|
||||
<td width="35%" height="30px" ><input name="p_subject" type="text" value="<%=p_subject %>" style="width:200px" ></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<%
|
||||
query = " select *"
|
||||
query = query & " from direct_costcode "
|
||||
query = query & " where d_cost_kind = 'field' "
|
||||
query = query & " and d_cost_useyn = 'y' "
|
||||
query = query & " and d_cost_parents = '2' "
|
||||
Adors.Open query, adoConn, 1
|
||||
%>
|
||||
<td width="15%" height="30px" align="center" ><3E><><EFBFBD><EFBFBD></td>
|
||||
<td width="35%" height="30px" >
|
||||
<select name="work_type">
|
||||
<option value=""><3E><>ü</option>
|
||||
<% for i=1 to Adors.recordcount %>
|
||||
<option value="<%=Adors("d_cost_code")%>" <% if CStr(Adors("d_cost_code")) = work_type then %>selected <%end if %>><%=Adors("d_cost_name") %></option>
|
||||
<% Adors.movenext
|
||||
next
|
||||
Adors.close
|
||||
%>
|
||||
</select>
|
||||
</td>
|
||||
<%
|
||||
query = ""
|
||||
query = query & " SELECT DISTINCT before_t_cd1 as d_code, LEFT(T_Name, 8) as d_name "
|
||||
query = query & " FROM project2.dbo.v_Department "
|
||||
query = query & " WHERE before_t_cd1 between 20 and 99 "
|
||||
query = query & " order by LEFT(T_Name, 8) "
|
||||
Adors.Open query, adoConn, 1
|
||||
%>
|
||||
<td width="15%" height="30px" align="center" ><3E><><EFBFBD><EFBFBD><EFBFBD>μ<EFBFBD></td>
|
||||
<td width="35%" height="30px" >
|
||||
<select name="p_depart">
|
||||
<option value=""><3E><>ü</option>
|
||||
<% for i=1 to Adors.recordcount %>
|
||||
<option value="<%=Adors("d_code")%>" <% if CStr(Adors("d_code")) = p_depart then %>selected <%end if %>><%=Adors("d_name") %></option>
|
||||
<% Adors.movenext
|
||||
next
|
||||
Adors.close
|
||||
%>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="4" style="padding:10 0 0 0">
|
||||
<span style="color:Red; font-weight:bold;"> <20>ش<EFBFBD><D8B4><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Confirm<72><6D> <20>Ϸ<EFBFBD><CFB7><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Դϴ<D4B4>(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ٸ<EFBFBD> <20><> <20>ֽ<EFBFBD><D6BD>ϴ<EFBFBD>)</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" colspan="4" class='pt-2'>
|
||||
<img src="/images/common/btn_search.jpg" align="absmiddle" style="cursor:pointer" onclick="search('search')">
|
||||
<img src="/images/common/btn_excel.jpg" align="absmiddle" onclick="search('excel')" style='CURSOR:pointer;' title ='<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>'></p>
|
||||
</td>
|
||||
</tr>
|
||||
<%end if %>
|
||||
<% if command <> "" then %>
|
||||
<tr>
|
||||
<td align="center" colspan="4">
|
||||
<table class="table table-sm table-sm2 table-bordered table-head tr-colors">
|
||||
<tr>
|
||||
<td align="center" ><3E><><EFBFBD><EFBFBD><EFBFBD>μ<EFBFBD></td>
|
||||
<td align="center" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><>ȣ</td>
|
||||
<td align="center" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><></td>
|
||||
<td align="center" ><3E><><EFBFBD><EFBFBD></td>
|
||||
<td align="center" ><3E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td align="center" ><3E>ǻ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td align="center" >SV <20><><EFBFBD><EFBFBD> Ȯ<><C8AE> <20><><EFBFBD><EFBFBD></td>
|
||||
<td align="center" ><3E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>ð<EFBFBD></td>
|
||||
<td align="center" ><3E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD></td>
|
||||
</tr>
|
||||
<%
|
||||
'--<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ҿ<EFBFBD><D2BF><EFBFBD><EFBFBD><EFBFBD> <20>˻<EFBFBD>-<2D><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ
|
||||
query = " select isnull(d2.d_name,d1.d_name) as d_name,ISNULL(nw.p_child_sn, nw.p_sn) as p_child_sn, isnull(tpm.p_subject,p.p_subject) as p_subject, p_sebu, "
|
||||
query = query & " MIN(date) as st_date, isnull(p.p_field_end,tpm.p_field_date_end) as p_field_date_end ,MAX(date) as sv_confirm_date, "
|
||||
query = query & " round(SUM(job_total_time),2) as job_total_time, SUM(s_sum) as s_sum , "
|
||||
query = query & " nw.p_sn, isnull(tpm.p_method_cd,'') as p_method_cd, isnull(tpm.p_sub_type,'') as p_sub_type "
|
||||
query = query & " from (select nk.p_sebu, isnull(p_sebu_code,'') as p_sebu_code, nk.p_sn, DATE, case when left(tn.s_gubun, 4) = '<27>߰<EFBFBD><DFB0><EFBFBD><EFBFBD><EFBFBD>' then '0' else job_total_time end as job_total_time, isnull(nk.p_child_sn, '') as p_child_sn, isnull(job_confirm_yn, '') as job_confirm_yn, ISNULL(s_sum, 0) as s_sum "
|
||||
query = query & " from neakeun_work nk left outer join T_NEAKEUN_PAY tn on cast(nk.id as varchar) = tn.attribute01 "
|
||||
query = query & " where isnull(nk.p_child_sn, '') <> '') nw left outer join T_PROJECT_METHOD tpm on nw.p_child_sn = tpm.p_child_sn "
|
||||
query = query & " left outer join project p on nw.p_sn = p.p_sn "
|
||||
query = query & " left outer join Depart d1 on tpm.p_rsch_dept = d1.d_code "
|
||||
query = query & " left outer join Depart d2 on p.p_depart = d2.d_code "
|
||||
query = query & " where date != '' "
|
||||
query = query & " AND nw.job_confirm_yn = 'Y' "
|
||||
query = query & " AND ((p.p_field_complete is null or p.p_field_complete != '1') AND (tpm.p_field_complete is null or tpm.p_field_complete != '1')) "
|
||||
|
||||
if p_sn <> "" then
|
||||
query = query & " AND nw.p_child_sn LIKE '%"& p_sn &"%' "
|
||||
end if
|
||||
if p_subject <> "" then
|
||||
query = query & " AND (p.p_subject LIKE '%"&p_subject&"%' OR tpm.p_subject like '%"&p_subject&"%') "
|
||||
end if
|
||||
if work_type <> "" then
|
||||
query = query & " AND p_sebu_code = '"&work_type&"' "
|
||||
end if
|
||||
if p_depart <> "" then
|
||||
query = query & " AND (p.p_depart = '"&p_depart&"' OR tpm.p_rsch_dept = '"&p_depart&"') "
|
||||
end if
|
||||
query = query & " group by d1.d_name,d2.d_name, nw.p_sn, p_sebu, nw.p_child_sn, p_sebu_code, tpm.p_subject, p.p_subject, p_field_end, p_field_date_end, nw.p_sn, tpm.p_method_cd, tpm.p_sub_type "
|
||||
query = query & " order by nw.p_sn, nw.p_child_sn, p_sebu_code, p_sebu "
|
||||
|
||||
Adors.open query,adoconn,1
|
||||
if Adors.recordcount <> 0 then
|
||||
tmp_p_sn = Adors("p_child_sn")
|
||||
end if
|
||||
subTime = 0
|
||||
sumPay = 0
|
||||
allTime = 0
|
||||
allPay = 0
|
||||
for i=1 to Adors.recordcount
|
||||
if not isnull(Adors("job_total_time")) then
|
||||
subTime = subTime + Adors("job_total_time")
|
||||
allTime = allTime + Adors("job_total_time")
|
||||
end if
|
||||
if not isnull(Adors("s_sum")) then
|
||||
subPay = subPay + Adors("s_sum")
|
||||
allPay = allPay + Adors("s_sum")
|
||||
end if
|
||||
%>
|
||||
<tr>
|
||||
<td align="center"><%= Adors("d_name")%></td>
|
||||
<td align="center"><%= Adors("p_child_sn")%></td>
|
||||
<td align="left"><a href="javascript:openit('1','<%=Adors("p_sn")%>','<%=Adors("p_sub_type")%>','<%=Adors("p_method_cd")%>','<%=Adors("p_child_sn")%>')" class="blue"><%= Adors("p_subject")%></a></td>
|
||||
<td align="center"><%= Adors("p_sebu")%></td>
|
||||
<td align="center"><%= Adors("st_date")%></td>
|
||||
<td align="center"><%= Adors("p_field_date_end")%></td>
|
||||
<td align="center"><%= Adors("sv_confirm_date")%></td>
|
||||
<td align="center"><%= Adors("job_total_time")%></td>
|
||||
<td align="center"><%= FormatNumber(Adors("s_sum"),0)%></td>
|
||||
</tr>
|
||||
<% Adors.movenext
|
||||
if i < Adors.recordcount then
|
||||
if tmp_p_sn <> Adors("p_child_sn") then
|
||||
%>
|
||||
<tr>
|
||||
<td align="right" colspan="7"><b>[<%= tmp_p_sn%>]<5D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20>Ұ<EFBFBD></b></td>
|
||||
<td align="center"><b><%= subTime%></b></td>
|
||||
<td align="center"><b><%= FormatNumber(subPay,0)%></b></td>
|
||||
</tr>
|
||||
<%
|
||||
tmp_p_sn = Adors("p_child_sn")
|
||||
subTime = 0
|
||||
subTotal = 0
|
||||
subPay = 0
|
||||
subTotalPay = 0
|
||||
end if
|
||||
else
|
||||
%>
|
||||
<tr>
|
||||
<td align="right" colspan="7"><b>[<%= tmp_p_sn%>]<5D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20>Ұ<EFBFBD></b></td>
|
||||
<td align="center"><b><%= subTime%></b></td>
|
||||
<td align="center"><b><%= FormatNumber(subPay,0)%></b></td>
|
||||
</tr>
|
||||
<%
|
||||
end if
|
||||
next
|
||||
Adors.close
|
||||
%>
|
||||
<tr>
|
||||
<td align="right" colspan="7"><b><3E><> <20>հ<EFBFBD></b></td>
|
||||
<td align="center"><b><%= allTime%></b></td>
|
||||
<td align="center"><b><%= FormatNumber(allPay,0)%></b></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<% end if %>
|
||||
</table>
|
||||
</form>
|
||||
<%if command <> "excel" then%>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.content -->
|
||||
<!-- REQUIRED SCRIPTS -->
|
||||
<script>
|
||||
function search(a) {
|
||||
document.pms.action = "ing_project_state.asp?command=" + a;
|
||||
document.pms.submit();
|
||||
}
|
||||
|
||||
function openit(a, z, x, y, v) {
|
||||
if (a == 1) {
|
||||
var url = '/project/project_list2_dep.asp?p_sn=' + z;
|
||||
var tmp_width = 1050;
|
||||
var tmp_height = 800;
|
||||
url = url + "&p_sub_type=" + x + "&p_method_cd=" + y + "&p_child_sn=" + v;
|
||||
}
|
||||
window.open(url, '', 'left=0,top=0,width=' + tmp_width + ',height=' + tmp_height + ',scrollbars=yes,resizable=yes')
|
||||
|
||||
}
|
||||
</script>
|
||||
</div>
|
||||
<!-- /.content-wrapper -->
|
||||
<!-- #include virtual = "include/footer.asp" -->
|
||||
<% end if %>
|
||||
|
||||
68
inspection/ins_cnt.asp
Normal file
68
inspection/ins_cnt.asp
Normal file
@@ -0,0 +1,68 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<%
|
||||
Response.CharSet = "EUC-KR"
|
||||
|
||||
dim prj_code : prj_code = Request("prj_code")
|
||||
dim prj_name : prj_name = unescape(Request("prj_name"))
|
||||
%>
|
||||
<form id="prj_search" method="post">
|
||||
<table class="table table-sm table-sm2 table-bordered table-head tr-colors">
|
||||
<tr>
|
||||
<td align="center" colspan="6">(<%=prj_code %>) <%=prj_name %></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td align="center" ><3E>ٹ<EFBFBD><D9B9><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td align="center" ><3E>Ϸ<EFBFBD></td>
|
||||
<td align="center" ><3E><><EFBFBD><EFBFBD></td>
|
||||
<td align="center" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td align="center" ><3E><>üũ</td>
|
||||
</tr>
|
||||
<%
|
||||
query = ""
|
||||
query = query&" select p_sn, ins_user, ins_birth, ins_date, sum(TOK) as TOK, sum(ERROR) as ERROR, sum(RECHECK) as RECHECK, sum(NOTEL) as NOTEL from "&VbCrlf
|
||||
query = query&" ( "&VbCrlf
|
||||
query = query&" select left(pvt.p_sn,11) as p_sn, "&VbCrlf
|
||||
query = query&" case "&VbCrlf
|
||||
query = query&" when len(pvt.inspection_user) = 8 then (select p_name from project2.dbo.person where p_no = inspection_user) "&VbCrlf
|
||||
query = query&" else (select m_name from project2.dbo.man where id = inspection_user) "&VbCrlf
|
||||
query = query&" end as ins_user, "&VbCrlf
|
||||
query = query&" case "&VbCrlf
|
||||
query = query&" when len(pvt.inspection_user) <> 8 then (select left(m_jumin,6) from project2.dbo.man where id = inspection_user) else pvt.inspection_user "&VbCrlf
|
||||
query = query&" end as ins_birth, "&VbCrlf
|
||||
query = query&" pvt.ins_date, TOK, ERROR, RECHECK, NOTEL from "&VbCrlf
|
||||
query = query&" ( "&VbCrlf
|
||||
query = query&" select * from "&VbCrlf
|
||||
query = query&" ( "&VbCrlf
|
||||
query = query&" select p_sn, inspection_user, convert(varchar, inspection_date, 23) as ins_date, pass_stat from T_INSPECTION_RES where pass_stat in ('TOK','ERROR') "&VbCrlf
|
||||
query = query&" union all "&VbCrlf
|
||||
query = query&" select p_sn, inspection_user, convert(varchar, inspection_date, 23) as ins_date, pass_stat from T_INSPECTION_RES_log where pass_stat in ('NOTEL','RECHECK') "&VbCrlf
|
||||
query = query&" ) a "&VbCrlf
|
||||
query = query&" ) AA "&VbCrlf
|
||||
query = query&" pivot "&VbCrlf
|
||||
query = query&" ( "&VbCrlf
|
||||
query = query&" count(pass_stat) for pass_stat in (TOK,ERROR,RECHECK,NOTEL) "&VbCrlf
|
||||
query = query&" )as pvt "&VbCrlf
|
||||
query = query&" ) as PP "&VbCrlf
|
||||
query = query&" where p_sn = '" & prj_code & "' "&VbCrlf
|
||||
query = query&" group by p_sn, ins_user, ins_birth, ins_date "&VbCrlf
|
||||
query = query&" order by p_sn, ins_user, ins_date "&VbCrlf
|
||||
|
||||
Rs.open query, adoconn, adopenstatic, adlockreadonly
|
||||
while not rs.eof
|
||||
%>
|
||||
<tr class="prj_pick">
|
||||
<td class="text-center"><%=Rs("ins_user") %></td>
|
||||
<td class="text-center"><%=Rs("ins_date") %></td>
|
||||
<td class="text-center"><%=Rs("TOK") %></td>
|
||||
<td class="text-center"><%=Rs("ERROR") %></td>
|
||||
<td class="text-center"><%=Rs("NOTEL") %></td>
|
||||
<td class="text-center"><%=Rs("RECHECK") %></td>
|
||||
</tr>
|
||||
<%
|
||||
rs.movenext
|
||||
wend
|
||||
Rs.close
|
||||
%>
|
||||
</table>
|
||||
</form>
|
||||
554
inspection/ins_confirm.asp
Normal file
554
inspection/ins_confirm.asp
Normal file
@@ -0,0 +1,554 @@
|
||||
<!-- #include virtual = "include/header.asp" -->
|
||||
<!-- #include virtual = "include/left.asp" -->
|
||||
<%
|
||||
Dim prj_code : prj_code = Request("prj_code")
|
||||
Dim prj_name : prj_name = Request("prj_name")
|
||||
%>
|
||||
<!-- Content Wrapper. Contains page content -->
|
||||
<div class="content-wrapper">
|
||||
<!-- Content Header (Page header) -->
|
||||
<div class="content-header">
|
||||
<h1><3E><><EFBFBD><EFBFBD> <20>ٹ<EFBFBD>Ȯ<EFBFBD><C8AE></h1>
|
||||
</div>
|
||||
<!-- /.content-header -->
|
||||
<!-- Main content -->
|
||||
<div class="content-body">
|
||||
<div class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<% Dim f_menu : f_menu = "nk" %>
|
||||
<!-- #include file = "f_menu.asp" -->
|
||||
<form name='punchform' id="punchform" method='post'>
|
||||
<div id="prj_list"></div>
|
||||
<table width="1200px" class="table table-sm table-sm2 table-bordered table-head tr-colors">
|
||||
<tr>
|
||||
<td align="center" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ</td>
|
||||
<td align="center" id="prj_sel" style="cursor:pointer;">
|
||||
<span class="prj_name"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD></span>
|
||||
</td>
|
||||
<td align="center"><button type="button" id="all_cnt" ><3E><>ü Ÿ<><C5B8> <20><><EFBFBD><EFBFBD></button></td>
|
||||
<td align="center"><button type="button" id="excel_down" ><3E><><EFBFBD><EFBFBD> <20>ٿ<EFBFBD><D9BF>ε<EFBFBD></button></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align:center;"><3E>ܰ<EFBFBD> <20><><EFBFBD><EFBFBD></td>
|
||||
<td style="text-align:left;"><input type="text" name="all_unit_cost" id="all_unit_cost" value="" /> <20><> <button type="button" id="all_unit"><3E>ϰ<EFBFBD> <20><><EFBFBD><EFBFBD></button></td>
|
||||
<td style="text-align:center;">Confrim ó<><C3B3></td>
|
||||
<td style="text-align:center;"><button type="button" id="all_check"><3E><>ü Ȯ<><C8AE></button></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='text-center' colspan='4'>
|
||||
<table id="p_list" class="table table-sm table-sm2 table-bordered table-head tr-colors">
|
||||
<tr>
|
||||
<td align="center" ><3E><><EFBFBD><EFBFBD></td>
|
||||
<td align="center" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20>ڵ<EFBFBD></td>
|
||||
<td align="center" ><3E><>ó</td>
|
||||
<td align="center" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td align="center" ><3E>ٹ<EFBFBD><D9B9><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td align="center" ><3E>Ϸ<EFBFBD></td>
|
||||
<td align="center" ><label for="error_check"><input type="checkbox" name="error_check" id="error_check" value="1" style="vertical-align:middle;"/><3E><><EFBFBD><EFBFBD></label></td>
|
||||
<td align="center" ><label for="no_check"><input type="checkbox" name="no_check" id="no_check" value="1" style="vertical-align:middle;"/><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></label></td>
|
||||
<td align="center" style="width:15%;"><3E>ܰ<EFBFBD></td>
|
||||
<td align="center" style="width:10%;"><3E>հ<EFBFBD></td>
|
||||
<td align="center" ><3E><><EFBFBD><EFBFBD></td>
|
||||
<td align="center" >Ȯ<><C8AE></td>
|
||||
</tr>
|
||||
<%
|
||||
dim no : no = 0
|
||||
query = ""
|
||||
query = query&" select isnull(cast(BB.Id as varchar),'') as ID, isnull(cast(CC.Id as varchar),'') as pay_id, AA.*,isnull(BB.job_add_time_memo,'') as job_add_time_memo, isnull(BB.job_confirm_yn,'N') as job_confirm_yn, "&VbCrlf
|
||||
query = query&" isnull(CC.s_pay_unit,'0') as s_pay_unit, isnull(CC.s_wan,'0') as s_wan, isnull(CC.s_sum, '0') as s_sum, isnull(CC.insert_user,'') as insert_user, "&VbCrlf
|
||||
query = query&" isnull(CC.attribute01,'') as attribute01, isnull(CC.attribute05,'') as attribute05, CC.chk1, CC.chk2,"&VbCrlf
|
||||
query = query&" case when DD.d_order_cnt = '77' then '<27><><EFBFBD><EFBFBD> <20>Ϸ<EFBFBD>' when DD.d_order_cnt is null then '' else '<27><><EFBFBD><EFBFBD> <20><>' end as d_order_cnt from "&VbCrlf
|
||||
query = query&" ( "&VbCrlf
|
||||
query = query&" select p_sn, ins_user, ins_birth, ins_date, sum(TOK) as TOK, sum(ERROR) as ERROR, sum(NOTEL) as NOTEL from "&VbCrlf
|
||||
query = query&" ( "&VbCrlf
|
||||
query = query&" select left(pvt.p_sn,11) as p_sn, "&VbCrlf
|
||||
query = query&" (select m_name from project2.dbo.man where id = inspection_user) as ins_user, "&VbCrlf
|
||||
query = query&" (select left(m_jumin,6) from project2.dbo.man where id = inspection_user) as ins_birth, "&VbCrlf
|
||||
query = query&" pvt.ins_date, TOK, ERROR, NOTEL from "&VbCrlf
|
||||
query = query&" ( "&VbCrlf
|
||||
query = query&" select * from "&VbCrlf
|
||||
query = query&" ( "&VbCrlf
|
||||
query = query&" select p_sn, inspection_user, convert(varchar, inspection_date, 23) as ins_date, pass_stat from T_INSPECTION_RES where pass_stat in ('TOK', 'ERROR') "&VbCrlf
|
||||
query = query&" union all "&VbCrlf
|
||||
query = query&" select p_sn, inspection_user, convert(varchar, inspection_date, 23) as ins_date, pass_stat from T_INSPECTION_RES_log where pass_stat in ('NOTEL') "&VbCrlf
|
||||
query = query&" ) u "&VbCrlf
|
||||
query = query&" ) a "&VbCrlf
|
||||
query = query&" pivot "&VbCrlf
|
||||
query = query&" ( "&VbCrlf
|
||||
query = query&" count(pass_stat) for pass_stat in (TOK, ERROR, NOTEL) "&VbCrlf
|
||||
query = query&" )as pvt "&VbCrlf
|
||||
query = query&" where len(pvt.inspection_user) <> 8 "&VbCrlf
|
||||
query = query&" ) as PP "&VbCrlf
|
||||
query = query&" group by p_sn, ins_user, ins_birth, ins_date "&VbCrlf
|
||||
query = query&" ) as AA "&VbCrlf
|
||||
query = query&" left join "&VbCrlf
|
||||
query = query&" ( "&VbCrlf
|
||||
query = query&" select id, p_child_sn, neakeun_name, left(neakeun_jumin,6) as neakeun_jumin, date, job_add_time_memo, job_confirm_yn, workload from project2.dbo.neakeun_work "&VbCrlf
|
||||
query = query&" where p_sebu='<27><><EFBFBD><EFBFBD>' and ISNULL(workload, '') = '' "&VbCrlf
|
||||
query = query&" ) BB on AA.ins_user=BB.neakeun_name and AA.ins_birth=BB.neakeun_jumin and left(AA.p_sn,11)=BB.p_child_sn and AA.ins_date=BB.date "&VbCrlf
|
||||
query = query&" left join "&VbCrlf
|
||||
query = query&" ( "&VbCrlf
|
||||
query = query&" select id, p_sn, m_name, left(m_jumin,6) as m_jumin, s_pay_unit, s_wan, s_sum, insert_user, attribute01, attribute05, chk1, chk2 from project2.dbo.T_NEAKEUN_PAY "&VbCrlf
|
||||
query = query&" where s_gubun='<27><><EFBFBD><EFBFBD>' and ISNULL(attribute02, '') = '' "&VbCrlf
|
||||
query = query&" ) CC on AA.ins_user=CC.m_name and AA.ins_birth=CC.m_jumin and left(AA.p_sn,11)=CC.p_sn and BB.id=CC.attribute01 "&VbCrlf
|
||||
query = query&" left join "&VbCrlf
|
||||
query = query&" ( "&VbCrlf
|
||||
query = query&" select d_no, d_order_cnt from project2.dbo.Document "&VbCrlf
|
||||
query = query&" where d_delok='N' "&VbCrlf
|
||||
query = query&" ) DD on CC.attribute05=DD.d_no "&VbCrlf
|
||||
query = query&" where AA.p_sn = '" & prj_code & "' "&VbCrlf
|
||||
query = query&" order by AA.p_sn, AA.ins_user, AA.ins_date "&VbCrlf
|
||||
'Response.Write query
|
||||
Rs.open query, adoconn, adopenstatic, adlockreadonly
|
||||
Dim input_readonly
|
||||
while not rs.eof
|
||||
If rs("job_confirm_yn") = "Y" Then
|
||||
input_readonly = "readonly='reaonldy'"
|
||||
else
|
||||
input_readonly = ""
|
||||
End If
|
||||
no = no + 1
|
||||
%>
|
||||
<tr>
|
||||
<td ><%=no %></td>
|
||||
<td ><%=rs("p_sn") %></td>
|
||||
<td ><%=rs("ins_user") %><input type="hidden" name="n_id" class="n_id" value="<%=rs("ID") %>" /><input type="hidden" name="n_pay_id" class="n_pay_id" value="<%=rs("pay_ID") %>" /></td>
|
||||
<td ><%=rs("ins_birth") %></td>
|
||||
<td ><%=rs("ins_date") %></td>
|
||||
<td ><%=rs("TOK") %></td>
|
||||
<td ><input type="checkbox" name="err_chk" value="1" <%If rs("chk1") = "1" Then%> checked="checked" <%End If %>/><%=rs("ERROR") %></td>
|
||||
<td ><input type="checkbox" name="no_chk" value="1" <%If rs("chk2") = "1" Then%> checked="checked" <%End If %>/><%=rs("NOTEL") %></td>
|
||||
<td style="text-align:right;"><input type="text" name="p_unit" value="<%=rs("s_pay_unit") %>" class="p_unit" tabindex="<%=no %>" <%=input_readonly %>/><3E><></td>
|
||||
<td style="text-align:right;"><%=FormatNumber(rs("s_sum"),0) %><3E><></td>
|
||||
<td ><input type="text" name="p_etc" value="<%=rs("job_add_time_memo") %>" class="p_etc" tabindex="1000+<%=no %>" <%=input_readonly %> style="width:100%;"/></td>
|
||||
<td >
|
||||
<%If rs("job_confirm_yn") = "N" Then%>
|
||||
<button type="button" class="confirm" data-value="save">Ȯ<><C8AE></button>
|
||||
<%Else %>
|
||||
<%If rs("attribute05") = "" Then %>
|
||||
<button type="button" class="confirm" data-value="del" style="background:#CA7C7B;"><3E><><EFBFBD><EFBFBD></button>
|
||||
<%Else %>
|
||||
<b style="color:red;"><%=rs("d_order_cnt") %></b>
|
||||
<%End If %>
|
||||
<%End If %>
|
||||
</td>
|
||||
</tr>
|
||||
<%
|
||||
rs.movenext
|
||||
wend
|
||||
|
||||
rs.Close
|
||||
%>
|
||||
</table>
|
||||
<button type="button" id="pay_go"><3E><><EFBFBD><EFBFBD></button>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.content -->
|
||||
<!-- REQUIRED SCRIPTS -->
|
||||
<script>
|
||||
var prjDialog;
|
||||
$(function () {
|
||||
prj_code = "<%=prj_code %>";
|
||||
prj_name = "<%=prj_name %>";
|
||||
|
||||
if (prj_code != "") {
|
||||
$(".prj_name").text("(" + prj_code + ") " + prj_name);
|
||||
}else{
|
||||
$("#p_list").css("display", "none");
|
||||
$("#p_list").parent("td").text("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD><EFBFBD>Ͽ<EFBFBD> <20>ֽʽÿ<CABD>.");
|
||||
}
|
||||
|
||||
$(".n_pay_id").each(function (e) {
|
||||
if ($(this).val() != "") {
|
||||
$("input[name=err_chk]").eq(e).prop("disabled", true);
|
||||
$("input[name=no_chk]").eq(e).prop("disabled", true);
|
||||
}
|
||||
});
|
||||
|
||||
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD>
|
||||
$("#prj_sel").click(function () {
|
||||
var url = "prj_list_modal.asp?gubun=v1";
|
||||
modal_open(url, "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD>");
|
||||
});
|
||||
|
||||
//<2F><>ü Ÿ<><C5B8>
|
||||
$("#all_cnt").click(function () {
|
||||
if (prj_code == "") {
|
||||
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD><EFBFBD>Ͽ<EFBFBD> <20>ֽʽÿ<CABD>.");
|
||||
return false;
|
||||
} else {
|
||||
var url = "ins_cnt.asp?prj_code=" + prj_code + "&prj_name=" + escape(prj_name);
|
||||
modal_open(url, "<22><>ü Ÿ<><C5B8> <20><><EFBFBD><EFBFBD>");
|
||||
}
|
||||
});
|
||||
|
||||
//<2F><>ü <20>ܰ<EFBFBD>
|
||||
$("#all_unit_cost").click(function () {
|
||||
unit_evt($(this));
|
||||
});
|
||||
|
||||
//<2F><>ü <20>ܰ<EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
$("#all_unit").click(function () {
|
||||
if($("#all_unit_cost").val() == ""){
|
||||
alert("<22><>ü <20>ܰ<EFBFBD><DCB0><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ͽ<EFBFBD> <20>ֽñ<D6BD> <20>ٶ<EFBFBD><D9B6>ϴ<EFBFBD>.");
|
||||
return false;
|
||||
}else{
|
||||
if (confirm("<22>ϰ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ÿ<EFBFBD><C3BF><EFBFBD> <20>κ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ܰ<EFBFBD><DCB0><EFBFBD> <20><><EFBFBD><EFBFBD> <20>˴ϴ<CBB4>.\n<><6E><EFBFBD><EFBFBD> <20>Ͻðڽ<C3B0><DABD>ϱ<EFBFBD>?")) {
|
||||
var all_unit_cost = $("#all_unit_cost").val();
|
||||
$(".p_unit").each(function (e) {
|
||||
if ($(".p_unit").eq(e).prop("readonly") == false) {
|
||||
$(".p_unit").eq(e).val(all_unit_cost);
|
||||
|
||||
var sum = cnt_sum($(this));
|
||||
if (isNaN(sum)) {
|
||||
$(this).parent("td").next().text(0 + " <20><>");
|
||||
} else {
|
||||
$(this).parent("td").next().text(commify(Math.ceil(sum)));
|
||||
}
|
||||
}
|
||||
});
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
//<2F><>ü Confirm
|
||||
$("#all_check").click(function () {
|
||||
if (confirm("Ȯ<><C8AE> ó<><C3B3> <20>ȵ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>鸸 ó<><C3B3> <20>˴ϴ<CBB4>.\n<><6E><EFBFBD><EFBFBD> <20>Ͻðڽ<C3B0><DABD>ϱ<EFBFBD>?")) {
|
||||
$(".confirm").each(function () {
|
||||
var gubun = $(this).text();
|
||||
if (gubun == "Ȯ<><C8AE>") {
|
||||
$(this).trigger("click");
|
||||
}
|
||||
});
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
//<2F><><EFBFBD><EFBFBD> Confirm
|
||||
$(".confirm").click(function () {
|
||||
var gubun = "v1";
|
||||
var obj = $(this);
|
||||
var prj_code = $(this).parent("td").siblings().eq(1).text();
|
||||
var n_name = $(this).parent("td").siblings().eq(2).text();
|
||||
var n_id = $(this).parent("td").siblings().eq(2).children(".n_id").val();
|
||||
var n_pay_id = $(this).parent("td").siblings().eq(2).children(".n_pay_id").val();
|
||||
var n_birth = $(this).parent("td").siblings().eq(3).text();
|
||||
var n_date = $(this).parent("td").siblings().eq(4).text();
|
||||
var n_cnt = parseInt($(this).parent("td").siblings().eq(5).text());
|
||||
var p_danga = $(this).parent("td").siblings().eq(8).children(".p_unit").val();
|
||||
var p_sum = $(this).parent("td").siblings().eq(9).text().replace(/,/g, '');
|
||||
p_sum = p_sum.replace('<27><>', '');
|
||||
var p_etc = $(this).parent("td").siblings().eq(10).children(".p_etc").val();
|
||||
var error = parseInt($(this).parent("td").siblings().eq(6).text());
|
||||
var notel = parseInt($(this).parent("td").siblings().eq(7).text());
|
||||
var err_chk = $(this).parent("td").siblings().eq(6).children("input[name=err_chk]");
|
||||
var no_chk = $(this).parent("td").siblings().eq(7).children("input[name=no_chk]");
|
||||
|
||||
if (p_danga == "" || p_sum == "") {
|
||||
alert("<22>ݾ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ȵǾ<C8B5> <20>ֽ<EFBFBD><D6BD>ϴ<EFBFBD>.");
|
||||
$(this).parent("td").siblings().eq(8).children($(".p_unit")).focus();
|
||||
return false
|
||||
}
|
||||
//alert(n_cnt);
|
||||
if (obj.text() == "Ȯ<><C8AE>") {
|
||||
url = "neakeun_save_ajax.asp";
|
||||
} else {
|
||||
url = "neakeun_del_ajax.asp";
|
||||
}
|
||||
|
||||
if (err_chk.is(":checked") == true) {
|
||||
err_chk = err_chk.val();
|
||||
n_cnt = n_cnt + error;
|
||||
} else {
|
||||
err_chk = "0";
|
||||
}
|
||||
|
||||
if (no_chk.is(":checked") == true) {
|
||||
no_chk = no_chk.val();
|
||||
n_cnt = n_cnt + notel;
|
||||
} else {
|
||||
no_chk = "0";
|
||||
}
|
||||
|
||||
ajax_confirm(url, gubun, prj_code, escape(n_name), n_id, n_pay_id, n_birth, n_date, n_cnt, p_danga, p_sum, escape(p_etc), err_chk, no_chk, obj);
|
||||
});
|
||||
|
||||
//all <20><><EFBFBD><EFBFBD> üũ
|
||||
$("input[name=error_check]").click(function () {
|
||||
if ($(this).is(":checked") == true) {
|
||||
$("input[name=err_chk]").not(":disabled").prop("checked", true);
|
||||
} else {
|
||||
$("input[name=err_chk]").not(":disabled").prop("checked", false);
|
||||
}
|
||||
|
||||
$(".p_unit").each(function (e) {
|
||||
if ($("input[name=n_pay_id]").eq(e).val() == "") {
|
||||
if ($(this).val() != "0" && $(this).val() != "") {
|
||||
var sum = cnt_sum($(this));
|
||||
|
||||
if (isNaN(sum)) {
|
||||
$(this).parent("td").next().text(0 + " <20><>");
|
||||
} else {
|
||||
$(this).parent("td").next().text(commify(Math.ceil(sum)));
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
//<2F><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> üũ
|
||||
$("input[name=err_chk]").each(function (e) {
|
||||
$(this).click(function () {
|
||||
if ($(".p_unit").eq(e).val() != "0" && $(".p_unit").eq(e).val() != "") {
|
||||
var sum = cnt_sum($(".p_unit").eq(e));
|
||||
|
||||
if (isNaN(sum)) {
|
||||
$(".p_unit").eq(e).parent("td").next().text(0 + " <20><>");
|
||||
} else {
|
||||
$(".p_unit").eq(e).parent("td").next().text(commify(Math.ceil(sum)));
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
//all <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> üũ
|
||||
$("input[name=no_check]").click(function () {
|
||||
if ($(this).is(":checked") == true) {
|
||||
$("input[name=no_chk]").not(":disabled").prop("checked", true);
|
||||
} else {
|
||||
$("input[name=no_chk]").not(":disabled").prop("checked", false);
|
||||
}
|
||||
|
||||
$(".p_unit").each(function (e) {
|
||||
if ($("input[name=n_pay_id]").eq(e).val() == "") {
|
||||
if ($(this).val() != "0" && $(this).val() != "") {
|
||||
var sum = cnt_sum($(this));
|
||||
|
||||
if (isNaN(sum)) {
|
||||
$(this).parent("td").next().text(0 + " <20><>");
|
||||
} else {
|
||||
$(this).parent("td").next().text(commify(Math.ceil(sum)));
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
//<2F><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> üũ
|
||||
$("input[name=no_chk]").each(function (e) {
|
||||
$(this).click(function () {
|
||||
if ($(".p_unit").eq(e).val() != "0" && $(".p_unit").eq(e).val() != "") {
|
||||
var sum = cnt_sum($(".p_unit").eq(e));
|
||||
|
||||
if (isNaN(sum)) {
|
||||
$(".p_unit").eq(e).parent("td").next().text(0 + " <20><>");
|
||||
} else {
|
||||
$(".p_unit").eq(e).parent("td").next().text(commify(Math.ceil(sum)));
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
//<2F><><EFBFBD><EFBFBD> <20>ܰ<EFBFBD>
|
||||
$(".p_unit").click(function () {
|
||||
unit_evt($(this));
|
||||
});
|
||||
|
||||
//<2F>ܰ<EFBFBD><DCB0><EFBFBD> <20>հ<EFBFBD>
|
||||
$(".p_unit").each(function (e) {
|
||||
$(this).keyup(function () {
|
||||
var sum = cnt_sum($(this));
|
||||
|
||||
if (isNaN(sum)) {
|
||||
$(this).parent("td").next().text(0+" <20><>");
|
||||
} else {
|
||||
$(this).parent("td").next().text(commify(Math.ceil(sum)));
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
$("#pay_go").click(function () {
|
||||
var url = "/approval/doc_myun_pay.asp?title=<3D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ǽ<EFBFBD>";
|
||||
$("#punchform").attr("action", url);
|
||||
$("#punchform").submit();
|
||||
});
|
||||
|
||||
$("#excel_down").click(function () {
|
||||
var d = new Date()
|
||||
$("#p_list").table2excel({
|
||||
name: "<%=prj_code %>_" + d.getFullYear() + d.getMonth() + d.getDate(),
|
||||
filename: "<%=prj_code %>_" + d.getFullYear() + d.getMonth() + d.getDate(),
|
||||
fileext: ".xls",
|
||||
exclude_inputs: true
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
//<2F>ܰ<EFBFBD>, <20>հ<EFBFBD>
|
||||
function cnt_sum(obj){
|
||||
var n_pay_id = obj.parent("td").siblings().eq(2).children("input[name=n_pay_id]").val();
|
||||
var tok = parseInt(obj.parent("td").siblings().eq(5).text());
|
||||
var error = parseInt(obj.parent("td").siblings().eq(6).text());
|
||||
var notel = parseInt(obj.parent("td").siblings().eq(7).text());
|
||||
var err_chk = obj.parent("td").siblings().eq(6).children("input[type=checkbox]");
|
||||
var no_chk = obj.parent("td").siblings().eq(7).children("input[type=checkbox]");
|
||||
var cnt = tok;
|
||||
|
||||
if (err_chk.is(":checked") == true && n_pay_id == "") {
|
||||
cnt = cnt + error;
|
||||
} else {
|
||||
cnt = cnt;
|
||||
}
|
||||
|
||||
if (no_chk.is(":checked") == true && n_pay_id == "") {
|
||||
cnt = cnt + notel;
|
||||
} else {
|
||||
cnt = cnt;
|
||||
}
|
||||
|
||||
var unit_cost = parseFloat(obj.val());
|
||||
|
||||
return cnt * unit_cost;
|
||||
}
|
||||
|
||||
function modal_open(url, x) {
|
||||
$("body").css({
|
||||
overflow: 'hidden'
|
||||
});
|
||||
prjDialog = $("#prj_list").dialog({
|
||||
autoOpen: false,
|
||||
modal: true,
|
||||
resizable: false,
|
||||
position: { my: "center", at: "top" },
|
||||
show: "blind",
|
||||
width: "600",
|
||||
height: "500",
|
||||
title: x,
|
||||
open: function () {
|
||||
$(".ui-widget-overlay").css({
|
||||
opacity: 0.5,
|
||||
filter: "Alpha(Opacity=50)",
|
||||
backgroundColor: "gray"
|
||||
});
|
||||
},
|
||||
close: function (event, ui) {
|
||||
$("body").css({
|
||||
overflow: 'inherit'
|
||||
});
|
||||
url = "";
|
||||
prjDialog.dialog("close");
|
||||
}
|
||||
});
|
||||
|
||||
prjDialog.load(url, function () {
|
||||
prjDialog.dialog("open");
|
||||
});
|
||||
}
|
||||
|
||||
function unit_evt(obj) {
|
||||
$(obj).css('imeMode', 'disabled').keypress(function (evt) {
|
||||
if (evt.which && (evt.which < 45 || evt.which > 57)) {
|
||||
evt.preventDefault();
|
||||
}
|
||||
|
||||
var charCode = (evt.which) ? evt.which : event.keyCode;
|
||||
if (charCode != 46 && charCode > 31 && (charCode < 48 || charCode > 57)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
var regexp = /^\d*[.]\d*$/;//<2F>Ҽ<EFBFBD><D2BC><EFBFBD>
|
||||
var val = $(this).val();
|
||||
|
||||
if (regexp.test(val)) {//<2F>Ҽ<EFBFBD><D2BC><EFBFBD> Prevent
|
||||
if (charCode == 46) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
}).keyup(function (evt) {
|
||||
if ($(this).val() != null && $(this).val() != '') {
|
||||
$(this).val($(this).val().replace(/[^\.0-9]/g, ''));
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
//Confirm
|
||||
function ajax_confirm(url, gubun, prj_code, n_name, n_id, n_pay_id, n_birth, n_date, n_cnt, p_danga, p_sum, p_etc, err_chk, no_chk,obj) {
|
||||
$.ajax({
|
||||
url: url,
|
||||
type: "get",
|
||||
data:
|
||||
{
|
||||
"gubun": gubun,
|
||||
"n_id": n_id,
|
||||
"n_pay_id": n_pay_id,
|
||||
"prj_code": prj_code,
|
||||
"n_name": n_name,
|
||||
"n_birth": n_birth,
|
||||
"n_date": n_date,
|
||||
"n_cnt": n_cnt,
|
||||
"p_danga": p_danga,
|
||||
"p_sum": p_sum,
|
||||
"p_etc": p_etc,
|
||||
"err_chk": err_chk,
|
||||
"no_chk": no_chk,
|
||||
},
|
||||
dataType:"JSON",
|
||||
success: function (data) {
|
||||
console.log(data);
|
||||
if (data.ok == "1") {
|
||||
if (obj.text() == "Ȯ<><C8AE>") {
|
||||
if (n_id == "" && n_pay_id == "") {
|
||||
obj.parent("td").siblings().eq(2).children(".n_id").val(data.id);
|
||||
obj.parent("td").siblings().eq(2).children(".n_pay_id").val(data.pay_id);
|
||||
obj.parent("td").siblings().eq(6).children("input[name=err_chk]").prop("disabled", true);
|
||||
obj.parent("td").siblings().eq(7).children("input[name=no_chk]").prop("disabled", true);
|
||||
obj.parent("td").siblings().eq(8).children(".p_unit").prop("readonly", true);
|
||||
obj.parent("td").siblings().eq(10).children(".p_etc").prop("readonly", true);
|
||||
}
|
||||
obj.text("<22><><EFBFBD><EFBFBD>");
|
||||
obj.css("background", "#CA7C7B");
|
||||
} else {
|
||||
if (n_id != "" || n_pay_id != "") {
|
||||
obj.parent("td").siblings().eq(2).children(".n_id").val("");
|
||||
obj.parent("td").siblings().eq(2).children(".n_pay_id").val("");
|
||||
obj.parent("td").siblings().eq(6).children("input[name=err_chk]").prop("disabled", false);
|
||||
obj.parent("td").siblings().eq(7).children("input[name=no_chk]").prop("disabled", false);
|
||||
obj.parent("td").siblings().eq(8).children(".p_unit").prop("readonly", false);
|
||||
obj.parent("td").siblings().eq(10).children(".p_etc").prop("readonly", false);
|
||||
}
|
||||
obj.text("Ȯ<><C8AE>");
|
||||
obj.css("background", "");
|
||||
}
|
||||
} else {
|
||||
if (data.ok == "2") {
|
||||
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ֽ<EFBFBD><D6BD>ϴ<EFBFBD>.\n<><6E><EFBFBD><EFBFBD><EFBFBD>ڿ<EFBFBD><DABF><EFBFBD> <20><><EFBFBD><EFBFBD> <20>ٶ<EFBFBD><D9B6>ϴ<EFBFBD>.");
|
||||
} else {
|
||||
alert("<22><><EFBFBD><EFBFBD>!\n <20>Է<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ٽ<EFBFBD> Ȯ<><C8AE> <20>Ͽ<EFBFBD> <20>ֽñ<D6BD> <20>ٶ<EFBFBD><D9B6>ϴ<EFBFBD>.");
|
||||
}
|
||||
}
|
||||
},
|
||||
error: function () {
|
||||
alert("<22><><EFBFBD><EFBFBD> <20><EFBFBD>\n<><6E><EFBFBD><EFBFBD><EFBFBD>ڿ<EFBFBD><DABF><EFBFBD> <20><><EFBFBD><EFBFBD> <20>Ͻʽÿ<CABD>.");
|
||||
}
|
||||
});
|
||||
}
|
||||
</script>
|
||||
</div>
|
||||
<!-- /.content-wrapper -->
|
||||
<!-- #include virtual = "include/footer.asp" -->
|
||||
684
inspection/interviewer_cati_check.asp
Normal file
684
inspection/interviewer_cati_check.asp
Normal file
@@ -0,0 +1,684 @@
|
||||
<!-- #include virtual = "include/header.asp" -->
|
||||
<!-- #include virtual = "include/left.asp" -->
|
||||
<OBJECT RUNAT=Server PROGID=ADODB.Recordset id=rsp></OBJECT>
|
||||
<%
|
||||
Dim qc_ckd : qc_ckd="1" '-- <20><><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE><EFBFBD>ÿ<EFBFBD><C3BF><EFBFBD> üũ (<28><><EFBFBD>ð<EFBFBD><C3B0><EFBFBD>(0) / <20><><EFBFBD>úҰ<C3BA>(1))
|
||||
Dim list_ckd : list_ckd="1" '-- <20><><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(0) / <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(1))
|
||||
|
||||
dim moneyType
|
||||
day_time = 8 ' <- day_time <20≯<EFBFBD> <20>ٹ<EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ǥ<><C7A5>
|
||||
%>
|
||||
<!-- Content Wrapper. Contains page content -->
|
||||
<div class="content-wrapper">
|
||||
<!-- Content Header (Page header) -->
|
||||
<div class="content-header">
|
||||
<h1><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Ȯ<><C8AE>(CATI)</h1>
|
||||
</div>
|
||||
<!-- /.content-header -->
|
||||
<!-- Main content -->
|
||||
<div class="content-body">
|
||||
<div class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<% Dim f_menu : f_menu = "my" %>
|
||||
<!-- #include file = "f_menu.asp" -->
|
||||
<form method='post' id='cati_check' name='cati_check'>
|
||||
<input type="hidden" name="prj_code" id="prj_code" value=<%=request("prj_code") %> >
|
||||
<input type="hidden" name="intranet_project" id="intranet_project" value=<%=request("intranet_project") %> >
|
||||
<input type="hidden" name="searchType" id="searchType" value=<%=request("searchType") %> >
|
||||
<%
|
||||
' <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ð<EFBFBD> <20><><EFBFBD><EFBFBD> #<23><><EFBFBD>̺<EFBFBD><CCBA><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
sql = ""
|
||||
sql = sql & " CREATE TABLE #work_log_cati ( "&VbCrlf
|
||||
sql = sql & " m_name varchar(20) not null, "&VbCrlf
|
||||
sql = sql & " m_jumin varchar(20) not null, "&VbCrlf
|
||||
sql = sql & " start_time varchar(8) not null, "&VbCrlf
|
||||
sql = sql & " end_time varchar(8) not null, "&VbCrlf
|
||||
sql = sql & " time_gap varchar(10) not null "&VbCrlf
|
||||
sql = sql & " ) "&VbCrlf
|
||||
sql = sql & " INSERT INTO #work_log_cati "&VbCrlf
|
||||
sql = sql & " SELECT ST.myun_name, LEFT(ST.myun_jumin, 6) as myun_jumin, ST.start_time, ISNULL(ED.end_time, '') as end_time, "&VbCrlf
|
||||
sql = sql & " case when ISNULL(ED.end_time, '') <> '' then CONVERT(varchar(5), CONVERT(numeric(4,2), ROUND(datediff(MI, ST.start_time, ED.end_time) / 60.0, 2))) else '' end as time_gap "&VbCrlf
|
||||
sql = sql & " FROM "&VbCrlf
|
||||
sql = sql & " ( "&VbCrlf
|
||||
sql = sql & " SELECT myun_name, myun_jumin, min(login_time) as start_time "&VbCrlf
|
||||
sql = sql & " FROM new_cati.dbo.login WITH(NOLOCK) "&VbCrlf
|
||||
sql = sql & " WHERE login_date = '" & request("date") & "' "&VbCrlf
|
||||
sql = sql & " GROUP BY myun_name, myun_jumin "&VbCrlf
|
||||
sql = sql & " ) ST LEFT OUTER JOIN "&VbCrlf
|
||||
sql = sql & " ( "&VbCrlf
|
||||
sql = sql & " SELECT log_user_name, log_user_jumin, max(log_en_time) as end_time "&VbCrlf
|
||||
sql = sql & " FROM new_cati.dbo.Logfile WITH(NOLOCK) "&VbCrlf
|
||||
sql = sql & " WHERE log_date = '" & request("date") & "' "&VbCrlf
|
||||
sql = sql & " GROUP BY log_user_name, log_user_jumin "&VbCrlf
|
||||
sql = sql & " ) ED ON ST.myun_name = ED.log_user_name AND ST.myun_jumin = ED.log_user_jumin "&VbCrlf
|
||||
sql = sql & " WHERE myun_name NOT IN ('<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>', 'Cati_test') "&VbCrlf
|
||||
'response.Write sql
|
||||
'response.Write "<br><br>"
|
||||
adoConn.execute(sql)
|
||||
|
||||
'response.Write "job_code : " & Session("job_code") & "<BR>"
|
||||
'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ǿ<EFBFBD> <20>ִ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.
|
||||
'<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.
|
||||
|
||||
sql = " SELECT T.prj_code, T.s_client_no, T.s_client_name, T.s_client_jumin, s_date, T.no_cnt, "&VbCrlf
|
||||
sql = sql & " T.tok_cnt , T.error_cnt, tmp.confirm_yn, tmp.lunch, tmp.dinner "&VbCrlf
|
||||
sql = sql & " , add_count, cast(add_count_memo as varchar) as add_count_memo, add_money, add_money_memo, isnull(qc_ok,'0') as qc_ok, tmp.id, tmp.s_pay_unit, isnull(tmp.money_type,'<27>μ<EFBFBD>') as money_type , "&VbCrlf
|
||||
sql = sql & " CASE "&VbCrlf
|
||||
sql = sql & " WHEN d.d_order_cnt = '99' THEN '<27><><EFBFBD><EFBFBD> <20>ݷ<EFBFBD>' "&VbCrlf
|
||||
sql = sql & " WHEN d.d_order_cnt = '77' THEN '<27><><EFBFBD><EFBFBD> <20>Ϸ<EFBFBD>' "&VbCrlf
|
||||
sql = sql & " WHEN d.d_order_cnt IS NULL THEN '' "&VbCrlf
|
||||
sql = sql & " ELSE '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' "&VbCrlf
|
||||
sql = sql & " END AS d_order_cnt, "&VbCrlf
|
||||
sql = sql & " wlc.start_time, wlc.end_time, isnull(wlc.time_gap, 0) as time_gap, isnull(nwc.nw_cnt, 0) as nw_cnt "&VbCrlf
|
||||
sql = sql & " FROM "&VbCrlf
|
||||
sql = sql & " ( "&VbCrlf
|
||||
sql = sql & " SELECT prj_code, prj_name, s_client_jumin, s_client_no, s_client_name, s_date, "&VbCrlf
|
||||
sql = sql & " SUM(no_cnt) as no_cnt, SUM(tok_cnt) as tok_cnt, SUM(error_cnt) as error_cnt, intranet_pay, qc_ok "&VbCrlf
|
||||
sql = sql & " FROM ( "&VbCrlf
|
||||
sql = sql & " SELECT s.prj_code, P.prj_name, s_client_jumin, s_client as s_client_no, s_client_name, s_date, "&VbCrlf
|
||||
sql = sql & " case when c.tel_result IS null then 1 else 0 end as no_cnt, "&VbCrlf
|
||||
sql = sql & " case when c.tel_result != 2 then 1 else 0 end as tok_cnt, "&VbCrlf
|
||||
sql = sql & " case when c.tel_result = 2 then 1 else 0 end as error_cnt, c.intranet_pay, C.qc_ok FROM "&VbCrlf
|
||||
sql = sql & " new_cati.dbo.Sheet1 s "&VbCrlf
|
||||
sql = sql & " Left Outer Join "&VbCrlf
|
||||
sql = sql & " ( "&VbCrlf
|
||||
sql = sql & " select CONVERT(varchar(10), tel_date, 120) as s_tel_date, "&VbCrlf
|
||||
sql = sql & " prj_code,tel_cnt,tel_client_no, tel_result, tel_del_yn, intranet_pay, qc_ok "&VbCrlf
|
||||
sql = sql & " from [new_cati].[dbo].[T_INSPECTION_CATI] with(nolock) "&VbCrlf
|
||||
sql = sql & " where prj_code='" & request("prj_code") & "' "&VbCrlf
|
||||
sql = sql & " AND tel_result is not null "&VbCrlf
|
||||
sql = sql & " AND tel_del_yn = 'N' "&VbCrlf
|
||||
sql = sql & " group by prj_code,tel_cnt,tel_client_no, tel_result, tel_del_yn, intranet_pay, CONVERT(varchar(10), tel_date, 120), qc_ok "&VbCrlf
|
||||
sql = sql & " ) c "&VbCrlf
|
||||
sql = sql & " ON s.prj_code = c.prj_code "&VbCrlf
|
||||
sql = sql & " AND s.s_tcnt = c.tel_cnt "&VbCrlf
|
||||
sql = sql & " AND s.s_client = c.tel_client_no "&VbCrlf
|
||||
sql = sql & " AND c.tel_result is not null "&VbCrlf
|
||||
sql = sql & " AND c.tel_del_yn = 'N' "&VbCrlf
|
||||
sql = sql & " LEFT OUTER JOIN new_cati.dbo.project P ON S.prj_code = P.prj_code "&VbCrlf
|
||||
sql = sql & " WHERE s.prj_code = '" & request("prj_code") & "' "&VbCrlf
|
||||
sql = sql & " AND s.s_client_name not in ('Cati_Test', '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>') "&VbCrlf
|
||||
sql = sql & " AND s_tel_date = '" & request("date") & "' "&VbCrlf
|
||||
sql = sql & " ) T "&VbCrlf
|
||||
sql = sql & " GROUP BY prj_code, prj_name, s_client_jumin, s_client_no, s_client_name, s_date, intranet_pay, qc_ok "&VbCrlf
|
||||
sql = sql & " ) T left outer join T_MYUN_PAY TMP "&VbCrlf
|
||||
sql = sql & " ON T.prj_code = TMP.prj_code "&VbCrlf
|
||||
sql = sql & " and T.s_client_name = TMP.m_name "&VbCrlf
|
||||
sql = sql & " and T.s_client_jumin = TMP.m_jumin "&VbCrlf
|
||||
sql = sql & " and T.s_date = tmp.work_dt "&VbCrlf
|
||||
sql = sql & " left outer join Document d on tmp.attribute05 = d.d_no AND d_delok = 'N' "&VbCrlf
|
||||
sql = sql & " left outer join <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> m on tmp.attribute05 = m.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ AND m.del_yes_no = 'no' "&VbCrlf
|
||||
sql = sql & " left outer join #work_log_cati wlc on T.s_client_name = wlc.m_name AND LEFT(T.s_client_jumin, 6) = wlc.m_jumin "&VbCrlf
|
||||
sql = sql & " left outer join ( "&VbCrlf
|
||||
sql = sql & " SELECT neakeun_name, LEFT(neakeun_jumin, 6) as neakeun_jumin, date, COUNT(*) as nw_cnt "&VbCrlf
|
||||
sql = sql & " FROM neakeun_work "&VbCrlf
|
||||
sql = sql & " GROUP BY neakeun_name, LEFT(neakeun_jumin, 6), date "&VbCrlf
|
||||
sql = sql & " ) nwc on T.s_client_name = nwc.neakeun_name AND LEFT(T.s_client_jumin, 6) = nwc.neakeun_jumin AND T.s_date = nwc.date "&VbCrlf
|
||||
sql = sql & " ORDER BY qc_ok desc, s_pay_unit desc, cast(s_client_no as int) "&VbCrlf
|
||||
AdoRs.open sql, adoconn, adopenstatic, adlockreadonly
|
||||
%>
|
||||
<table width="1200px" class="table table-sm table-sm2 table-bordered table-head tr-colors">
|
||||
<tr>
|
||||
<td align="center"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE></td>
|
||||
<td align="left" colspan="4">
|
||||
<input type="text" class="gray" style="width:calc(100% - 30px);" name="prj_name" id="prj_name" value='<%=request("prj_name") %>' onclick="winnewoepn('txt_prj_name','txt_p_sn');" readonly>
|
||||
<img src="/images/common/btn_smallsrch2.gif" align="absmiddle" onclick="winnewoepn('txt_prj_name','txt_p_sn');" style="CURSOR:pointer;width:24px;">
|
||||
</td>
|
||||
<td align="center"><3E><>¥<EFBFBD><C2A5><EFBFBD><EFBFBD></td>
|
||||
<td align="left">
|
||||
<%
|
||||
query = " select distinct s_date "
|
||||
query = query & " FROM new_cati.dbo.sheet1 "
|
||||
query = query & " where prj_code = '"& request("prj_code") &"' "
|
||||
query = query & " order by s_date "
|
||||
'response.Write query
|
||||
rsp.Open query, adoConn, 1
|
||||
%>
|
||||
<select name = "date" id="date" style="width:100px;">
|
||||
<option value=""><3E><> <20><></option>
|
||||
<%
|
||||
for i=1 to rsp.recordCount
|
||||
%>
|
||||
<option value='<%=rsp("s_date") %>' <% if request("date") = rsp("s_date") then %> selected <% end if %>><%=rsp("s_date") %></option>
|
||||
<% rsp.movenext
|
||||
next
|
||||
rsp.close
|
||||
%>
|
||||
</select>
|
||||
</td>
|
||||
<td><img src="/images/common/btn_smallsrch.gif" align="absmiddle" onclick="search('search')" style='cursor:pointer'></td>
|
||||
</tr>
|
||||
<%
|
||||
dim tmp_est_money, tmp_s_sum
|
||||
tmp_est_money = 0
|
||||
tmp_s_sum = 0
|
||||
|
||||
query = " select dc1.p_child_sn, sebu, est_danga, dc2.est_money, isnull(tmp.s_sum, 0) as s_sum "&VbCrlf
|
||||
query = query & " FROM direct_cost dc1 left outer join ( "&VbCrlf
|
||||
query = query & " select p_child_sn, sum(cast(est_money as int)) as est_money "&VbCrlf
|
||||
query = query & " FROM direct_cost "&VbCrlf
|
||||
query = query & " where p_child_sn = '"& request("intranet_project") &"' "&VbCrlf
|
||||
query = query & " and del_yes_no = 'no' "&VbCrlf
|
||||
query = query & " and sebu like '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>%' "&VbCrlf
|
||||
query = query & " and hangmok = '48' "&VbCrlf
|
||||
query = query & " group by p_child_sn "&VbCrlf
|
||||
query = query & " ) dc2 on dc1.p_child_sn = dc2.p_child_sn "&VbCrlf
|
||||
query = query & " left outer join ( "&VbCrlf
|
||||
query = query & " select p_sn, sum(s_sum) as s_sum "&VbCrlf
|
||||
query = query & " from T_MYUN_PAY "&VbCrlf
|
||||
query = query & " where p_sn = '"& request("intranet_project") &"' "&VbCrlf
|
||||
query = query & " AND confirm_yn = 'Y' "&VbCrlf
|
||||
query = query & " group by p_sn "&VbCrlf
|
||||
query = query & " ) tmp on dc1.p_child_sn = tmp.p_sn "&VbCrlf
|
||||
query = query & " where dc1.p_child_sn = '"& request("intranet_project") &"' "&VbCrlf
|
||||
query = query & " and del_yes_no = 'no' "&VbCrlf
|
||||
query = query & " and sebu like '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>%' "&VbCrlf
|
||||
query = query & " and hangmok = '48' "&VbCrlf
|
||||
'response.Write query
|
||||
rsp.Open query, adoConn, 1
|
||||
|
||||
if rsp.recordCount > 0 then
|
||||
tmp_est_money = cdbl(rsp("est_money"))
|
||||
tmp_s_sum = cdbl(rsp("s_sum"))
|
||||
end if
|
||||
|
||||
if adors.recordcount > 0 then %>
|
||||
<tr>
|
||||
<td align="center" ><3E><>Ʈ<EFBFBD><C6AE><EFBFBD><EFBFBD><br /> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><>ȣ</td>
|
||||
<td align="center" ><%=request("intranet_project") %></td>
|
||||
<td align="center" colspan="2"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><br /><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD></td>
|
||||
<td align="right" ><%=FormatNumber(tmp_est_money,0) %> <20><></td>
|
||||
<td align="center" colspan="2"><3E><><EFBFBD><EFBFBD><br />Confirm <20>ݾ<EFBFBD></td>
|
||||
<td align="right" ><%=FormatNumber(tmp_s_sum,0) %> <20><></td>
|
||||
</tr>
|
||||
<% End if %>
|
||||
<%
|
||||
|
||||
if adors.recordcount > 0 then
|
||||
moneyType = "<22>μ<EFBFBD>"
|
||||
if request("searchType") = "moneyTypeChange" then
|
||||
moneyType = request("money_type")
|
||||
elseif adors("money_type") = "<22>ϴ<EFBFBD>" then
|
||||
moneyType = "<22>ϴ<EFBFBD>"
|
||||
elseif adors("money_type") = "<22>ϴ<EFBFBD>" then
|
||||
moneyType = "<22>μ<EFBFBD>"
|
||||
end if
|
||||
end if
|
||||
%>
|
||||
<% if adors.recordcount > 0 then %>
|
||||
<tr>
|
||||
<td align="center" ><3E>ϴ<EFBFBD> <20>Ǵ<EFBFBD> <20>μ<EFBFBD> <20><><EFBFBD><EFBFBD></td>
|
||||
<td >
|
||||
<input type="radio" name="money_type" onclick="money_type_change()" value="<22>μ<EFBFBD>" <% if moneyType = "<22>μ<EFBFBD>" then %> checked="checked" <% end if %>/><3E>μ<EFBFBD>
|
||||
<input type="radio" name="money_type" onclick="money_type_change()" value="<22>ϴ<EFBFBD>" <% if moneyType = "<22>ϴ<EFBFBD>" then %> checked="checked" <% end if %>/><3E>ϴ<EFBFBD>
|
||||
</td>
|
||||
<td align="center" ><3E>μ<EFBFBD><CEBC>ܰ<EFBFBD></td>
|
||||
<td ><input type="text" name="paperMoney" id="paperMoney" <% if adors("money_type") = "<22>ϴ<EFBFBD>" then %> readonly <% end if %> value="<%=adors("s_pay_unit") %>" /></td>
|
||||
<td align="center" ><3E>ϴ<EFBFBD><CFB4>ݾ<EFBFBD></td>
|
||||
<td ><input type="text" name="dayMoney" id="dayMoney" <% if adors("money_type") = "<22>μ<EFBFBD>" then %> readonly <% end if %> value="<%=adors("s_pay_unit") %>" /></td>
|
||||
<td align="center" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td >
|
||||
<select name = "myun" id="myun" style="width:150;">
|
||||
<option value=""><3E><> <20><></option>
|
||||
<% for i=1 to rsp.recordCount %>
|
||||
<option value='<%=rsp("sebu") %>' <% if request("myun") = rsp("sebu") then %> selected <% end if %>>[<%=rsp("sebu") %>] - <%=rsp("est_danga") %></option>
|
||||
<% rsp.movenext
|
||||
next
|
||||
rsp.close
|
||||
%>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="8" ><3E>ϴ<EFBFBD> <20><><EFBFBD><EFBFBD>Ʈ <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> [<span style="background-color:#F6CEF5;"><3E><><EFBFBD><EFBFBD></span>] <20><> <20><><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ִ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Դϴ<D4B4>.</td>
|
||||
</tr>
|
||||
<% end if %>
|
||||
<% if request("date") <> "" then %>
|
||||
<tr>
|
||||
<td colspan="8">
|
||||
<table border="1" class="resultTable">
|
||||
<tr height='30'>
|
||||
<td align="center" style="width:3%"><3E><><EFBFBD><EFBFBD></td>
|
||||
<td align="center" style="width:5%"><3E≯<EFBFBD></td>
|
||||
<td align="center" style="width:10%"><3E><><EFBFBD><EFBFBD> / <20><><EFBFBD><EFBFBD><br />* <%=day_time %><3E>ð<EFBFBD> <20≯<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><br /><font color="red"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></font><3E><><EFBFBD><EFBFBD> ǥ<><C7A5></td>
|
||||
<td align="center" style="width:4%"><3E><><EFBFBD><EFBFBD><EFBFBD>Ϸ<EFBFBD><br /><3E>μ<EFBFBD></td>
|
||||
<td align="center" style="width:5%"><3E>߰<EFBFBD><DFB0><EFBFBD><EFBFBD><EFBFBD>1<br /><input type="checkbox" id="lunchAll" name="lunchAll" onclick="javascript: alert('<27>ڵ<EFBFBD><DAB5><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>˴ϴ<CBB4>. \n<>ʿ<EFBFBD><CABF><EFBFBD> <20><><EFBFBD><EFBFBD> üũ/<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>մϴ<D5B4>.'); return false; "/></td>
|
||||
<td align="center" style="width:5%"><3E>߰<EFBFBD><DFB0><EFBFBD><EFBFBD><EFBFBD>2<br /><input type="checkbox" id="dinnerAll" name="dinnerAll" onclick="javascript: alert('<27>ڵ<EFBFBD><DAB5><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>˴ϴ<CBB4>. \n<>ʿ<EFBFBD><CABF><EFBFBD> <20><><EFBFBD><EFBFBD> üũ/<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>մϴ<D5B4>.'); return false; " /></td>
|
||||
<td align="center" style="width:11%"><3E>߰<EFBFBD>/<2F><><EFBFBD><EFBFBD><EFBFBD>μ<EFBFBD></td>
|
||||
<td align="center" style="width:15%"><3E><><EFBFBD><EFBFBD></td>
|
||||
<td align="center" style="width:11%"><3E>߰<EFBFBD>/<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td align="center" style="width:15%"><3E><><EFBFBD><EFBFBD></td>
|
||||
<td align="center" style="width:10%"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td align="center" style="width:6%">Confirm<br />
|
||||
<input type="checkbox" id="checkAll" name="checkAll" />
|
||||
</td>
|
||||
</tr>
|
||||
<input type="hidden" name="cnt" value="<%=adors.recordcount %>"/>
|
||||
<%
|
||||
Dim pay_unit_blank_cnt
|
||||
Dim total_tok_count
|
||||
pay_unit_blank_cnt = 0
|
||||
total_tok_count = 0
|
||||
|
||||
for i=1 to adors.recordcount
|
||||
list_ckd="0"
|
||||
query = " select top 1 tmp1.money_type, tmp1.prj_code, tmp1.s_pay_unit, tmp1.s_sum, tmp2.prj_code as lunch_prj_code, tmp2.prj_name as lunch_prj_name, tmp2.lunch, "&VbCrlf
|
||||
query = query & " tmp3.prj_code as dinner_prj_code, tmp3.prj_name as dinner_prj_name, tmp3.dinner, tmp4.s_sum as allSum "&VbCrlf
|
||||
query = query & " from T_MYUN_PAY tmp1 left outer join ( "&VbCrlf
|
||||
query = query & " select top 1 tmp.prj_code, p.prj_name, lunch, work_dt "&VbCrlf
|
||||
query = query & " from T_MYUN_PAY tmp left outer join new_cati.dbo.project p on tmp.prj_code = p.prj_code "&VbCrlf
|
||||
query = query & " where work_dt = '" & request("date") & "' "&VbCrlf
|
||||
query = query & " and m_name = '"& adors("s_client_name") & "' "&VbCrlf
|
||||
query = query & " and m_jumin = '" & adors("s_client_jumin") &"' "&VbCrlf
|
||||
query = query & " order by lunch desc "&VbCrlf
|
||||
query = query & " ) tmp2 on tmp1.work_dt = tmp2.work_dt "&VbCrlf
|
||||
query = query & " left outer join ( "&VbCrlf
|
||||
query = query & " select top 1 tmp.prj_code, p.prj_name, dinner, work_dt "&VbCrlf
|
||||
query = query & " from T_MYUN_PAY tmp left outer join new_cati.dbo.project p on tmp.prj_code = p.prj_code "&VbCrlf
|
||||
query = query & " where work_dt = '" & request("date") & "' "&VbCrlf
|
||||
query = query & " and m_name = '"& adors("s_client_name") & "' "&VbCrlf
|
||||
query = query & " and m_jumin = '" & adors("s_client_jumin") &"' "&VbCrlf
|
||||
query = query & " order by dinner desc "&VbCrlf
|
||||
query = query & " ) tmp3 on tmp1.work_dt = tmp3.work_dt "&VbCrlf
|
||||
query = query & " left outer join ( "&VbCrlf
|
||||
query = query & " select SUM(s_sum) as s_sum, work_dt "&VbCrlf
|
||||
query = query & " from T_MYUN_PAY tmp left outer join new_cati.dbo.project p on tmp.prj_code = p.prj_code "&VbCrlf
|
||||
query = query & " where work_dt = '" & request("date") & "' "&VbCrlf
|
||||
query = query & " and m_name = '"& adors("s_client_name") & "' "&VbCrlf
|
||||
query = query & " and m_jumin = '" & adors("s_client_jumin") &"' and confirm_yn = 'y' "&VbCrlf
|
||||
query = query & " group by work_dt "&VbCrlf
|
||||
query = query & " ) tmp4 on tmp1.work_dt = tmp4.work_dt "&VbCrlf
|
||||
query = query & " where tmp1.work_dt = '" & request("date") & "' "&VbCrlf
|
||||
query = query & " and tmp1.confirm_yn = 'y' "&VbCrlf
|
||||
query = query & " and tmp1.m_name = '"& adors("s_client_name") & "' "&VbCrlf
|
||||
query = query & " and tmp1.m_jumin = '" & adors("s_client_jumin") &"' "&VbCrlf
|
||||
query = query & " and tmp1.prj_code <> '"& adors("prj_code") &"' "&VbCrlf
|
||||
query = query & " order by money_type desc, s_pay_unit desc "&VbCrlf
|
||||
'response.Write query & "<br>"
|
||||
rsp.Open query, adoConn, 1
|
||||
%>
|
||||
|
||||
<tr height=30>
|
||||
<td align="center" ><%=i %>
|
||||
<td align="center" ><%=adors("s_client_name") %>
|
||||
<input type="hidden" name="m_name" value="<%=adors("s_client_name") %>" >
|
||||
<input type="hidden" name="m_jumin" value="<%=adors("s_client_jumin") %>" >
|
||||
<input type="hidden" name="s_client_no" value="<%=adors("s_client_no") %>" >
|
||||
<input type="hidden" name="id" value="<%=adors("id") %>" >
|
||||
<input type="hidden" name="qc_ok" value="<%=adors("qc_ok") %>" >
|
||||
</td>
|
||||
<td align="center" >
|
||||
|
||||
<%If adors("time_gap")="" Then '-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ð<EFBFBD><C3B0><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>%>
|
||||
<font <% if adors("time_gap") < day_time then %>color="red" <%else %>color="black" <% end if %>><%= LEFT(adors("start_time"), 5)%> / <%= LEFT(adors("end_time"), 5)%> (<%=adors("time_gap") %>)<br>(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>ġ)</font>
|
||||
<%Else %>
|
||||
<font <% if cdbl(adors("time_gap")) < cdbl(day_time) then %>color="red" <%else %>color="black" <% end if %>><%= LEFT(adors("start_time"), 5)%> / <%= LEFT(adors("end_time"), 5)%> (<%=adors("time_gap") %>)</font>
|
||||
<%End if%>
|
||||
</td>
|
||||
<td align="center" ><%=adors("tok_cnt") %><input type="hidden" name= "tok_cnt" value="<%=adors("tok_cnt") %>" ></td>
|
||||
<%
|
||||
dim tmpPayYn
|
||||
tmpPayYn = false
|
||||
if rsp.recordcount > 0 then
|
||||
if rsp("prj_code") <> request("prj_code") then
|
||||
if rsp("money_type") = "<22>μ<EFBFBD>" and moneyType = "<22>ϴ<EFBFBD>" then
|
||||
tmpPayYn = true
|
||||
elseif rsp("money_type") = "<22>ϴ<EFBFBD>" then
|
||||
tmpPayYn = true
|
||||
end if
|
||||
end if
|
||||
end if
|
||||
|
||||
if tmpPayYn then %>
|
||||
<td colspan="4" ><b style="color:red">
|
||||
[<%=rsp("prj_code") %>]</b><3E><> <b style="color:red"><%=formatNumber(rsp("s_sum"),0) %></b><3E><><EFBFBD><EFBFBD>
|
||||
<b style="color:red">
|
||||
<% if rsp("money_type") = "<22>ϴ<EFBFBD>" then %>
|
||||
<20>ϴ<EFBFBD><CFB4><EFBFBD>
|
||||
<% else %>
|
||||
<20>μ<EFBFBD><CEBC>ܰ<EFBFBD><DCB0><EFBFBD>
|
||||
<% end if %>
|
||||
</b>
|
||||
<20>ԷµǾ<C2B5> <20>ֽ<EFBFBD><D6BD>ϴ<EFBFBD>.(<28>ѱݾ<D1B1> : <B><%=formatNumber(rsp("allSum"),0)%><3E><></B>)
|
||||
<input type="hidden" name= "alreadyMoney" value="Y" />
|
||||
<input type="hidden" name= "add_count" value="" />
|
||||
<input type="hidden" name= "addCntReason" value="" />
|
||||
</td>
|
||||
<% else %>
|
||||
<%
|
||||
total_tok_count = total_tok_count + cint(adors("tok_cnt"))
|
||||
%>
|
||||
<input type="hidden" name= "alreadyMoney" value="N" />
|
||||
<!-- <20><><EFBFBD><EFBFBD> <20>߰<EFBFBD><DFB0><EFBFBD><EFBFBD><EFBFBD>1-->
|
||||
<td align="center"
|
||||
<%
|
||||
if rsp.recordcount > 0 then
|
||||
if rsp("lunch") = "Y" and adors("prj_code") <> rsp("lunch_prj_code") then %>
|
||||
onclick="alert_eat('<%=rsp("lunch_prj_code") %>','<%=rsp("lunch_prj_name") %>','lunch')"
|
||||
<% end if
|
||||
end if
|
||||
%>>
|
||||
<input type="hidden" id="lunch_<%=i%>" name="lunch_<%=i%>" value="Y" />
|
||||
<input type="checkbox" id="chk_lunch_<%=i%>" name= "chk_lunch" value="Y"
|
||||
<% if moneyType = "<22>ϴ<EFBFBD>" then %>
|
||||
disabled="disabled" style="display:none"
|
||||
<% elseIf adors("d_order_cnt") = "<22><><EFBFBD><EFBFBD> <20>Ϸ<EFBFBD>" OR adors("d_order_cnt") = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" then %>
|
||||
disabled="disabled"
|
||||
<% elseIf rsp.recordcount >0 then %>
|
||||
<% if rsp("lunch") = "Y" and rsp("lunch_prj_code") <> request("prj_code") then %>
|
||||
disabled="disabled" style="display:none"
|
||||
<% elseif rsp("lunch") = "Y" and adors("prj_code") <> rsp("lunch_prj_code") then %>
|
||||
disabled="disabled" style="display:none"
|
||||
<% Else %>
|
||||
<% if (adors("lunch") = "Y") or (Cint(adors("time_gap")) >= 7) then %>
|
||||
checked
|
||||
<% end if '<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>ð<EFBFBD><C3B0><EFBFBD> <20><><EFBFBD><EFBFBD> <20>߰<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> %>
|
||||
<% end if %>
|
||||
<% else %>
|
||||
<% if (adors("lunch") = "Y") or (Cint(adors("time_gap")) >= 7) then %> checked <% end if '<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>ð<EFBFBD><C3B0><EFBFBD> <20><><EFBFBD><EFBFBD> <20>߰<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> %>
|
||||
<% end if %>
|
||||
/>
|
||||
</td>
|
||||
<!-- <20><><EFBFBD><EFBFBD> <20>߰<EFBFBD><DFB0><EFBFBD><EFBFBD><EFBFBD>1 <20><> -->
|
||||
<!-- <20><><EFBFBD><EFBFBD> <20>߰<EFBFBD><DFB0><EFBFBD><EFBFBD><EFBFBD>2 -->
|
||||
<td align="center"
|
||||
<% if rsp.recordcount > 0 then
|
||||
if rsp("dinner") = "Y" and adors("prj_code") <> rsp("dinner_prj_code") then %>
|
||||
onclick="alert_eat('<%=rsp("dinner_prj_code") %>','<%=rsp("dinner_prj_name") %>','dinner')"
|
||||
<% end if
|
||||
end if %>>
|
||||
<input type="hidden" id="dinner_<%=i%>" name="dinner_<%=i%>" value="Y" />
|
||||
<input type="checkbox" id="chk_dinner_<%=i%>" name= "chk_dinner" value="Y"
|
||||
<% if moneyType = "<22>ϴ<EFBFBD>" then %>
|
||||
disabled="disabled" style="display:none"
|
||||
<% Elseif adors("d_order_cnt") = "<22><><EFBFBD><EFBFBD> <20>Ϸ<EFBFBD>" OR adors("d_order_cnt") = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" then %>
|
||||
disabled="disabled"
|
||||
<% Elseif rsp.recordcount >0 then %>
|
||||
<% If rsp("dinner") = "Y" and rsp("dinner_prj_code") <> request("prj_code") then %>
|
||||
disabled="disabled" style="display:none"
|
||||
<% Elseif rsp("dinner") = "Y" and adors("prj_code") <> rsp("dinner_prj_code") then %>
|
||||
disabled="disabled" style="display:none"
|
||||
<% Else %>
|
||||
<% if (adors("dinner") = "Y") or (Cint(adors("time_gap")) >=10 ) then %>
|
||||
checked
|
||||
<% end if '<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>ð<EFBFBD><C3B0><EFBFBD> <20><><EFBFBD><EFBFBD> <20>߰<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> %>
|
||||
<% End if %>
|
||||
<% Else %>
|
||||
<% if (adors("dinner") = "Y") or (Cint(adors("time_gap")) >=10 ) then %> checked <% end if '<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>ð<EFBFBD><C3B0><EFBFBD> <20><><EFBFBD><EFBFBD> <20>߰<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> %>
|
||||
<% end if %> />
|
||||
</td>
|
||||
<!--<2D><><EFBFBD><EFBFBD> <20>߰<EFBFBD><DFB0><EFBFBD><EFBFBD><EFBFBD>2 <20><>-->
|
||||
|
||||
<td align="center" ><input type="text" name= "add_count" style="width:95%;" value="<%=adors("add_count") %>"
|
||||
<% if adors("d_order_cnt") = "<22><><EFBFBD><EFBFBD> <20>Ϸ<EFBFBD>" OR adors("d_order_cnt") = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" then %>
|
||||
readonly
|
||||
<% end if %>
|
||||
/></td>
|
||||
<td align="center" ><input type="text" name= "addCntReason" style="width:95%;" value="<%=adors("add_count_memo") %>"
|
||||
<% if adors("d_order_cnt") = "<22><><EFBFBD><EFBFBD> <20>Ϸ<EFBFBD>" OR adors("d_order_cnt") = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" then %>
|
||||
readonly
|
||||
<% end if %>
|
||||
/></td>
|
||||
|
||||
<% end if %>
|
||||
<td align="center" ><input type="text" name= "addMoney" style="width:95%;" value = "<%=adors("add_money") %>"
|
||||
<% if adors("d_order_cnt") = "<22><><EFBFBD><EFBFBD> <20>Ϸ<EFBFBD>" OR adors("d_order_cnt") = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" then %>
|
||||
readonly
|
||||
<% end if %>
|
||||
/></td>
|
||||
<td align="center" ><input type="text" name= "addMoneyReason" style="width:95%;" value="<%=adors("add_money_memo") %>"
|
||||
<% if adors("d_order_cnt") = "<22><><EFBFBD><EFBFBD> <20>Ϸ<EFBFBD>" OR adors("d_order_cnt") = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" then %>
|
||||
readonly
|
||||
<% end if %>
|
||||
/></td>
|
||||
<td align="center" ><input type="text" name= "approvalYN" style="width:95%;" value="<%=adors("d_order_cnt") %>" readonly/></td>
|
||||
<td align="center" >
|
||||
<input type="hidden" id="cati_confirm_<%=i%>" name="cati_confirm_<%=i%>" value="Y"/>
|
||||
<% if adors("qc_ok") = "1" then %>
|
||||
<input type="checkbox" id="chk_cati_confirm_<%=i%>" name= "chk_cati_confirm" value="Y" <% if adors("confirm_yn") = "Y" then %>checked <% end if %>
|
||||
<% if adors("d_order_cnt") = "<22><><EFBFBD><EFBFBD> <20>Ϸ<EFBFBD>" OR adors("d_order_cnt") = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" then %>
|
||||
disabled
|
||||
<% end if %> />
|
||||
<%
|
||||
'-----------------------------QC <20><><EFBFBD><EFBFBD> <20>Ϸ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE><EFBFBD>ð<EFBFBD><C3B0>ɿ<EFBFBD><C9BF><EFBFBD> üũ(20170813)-------------------------------------------
|
||||
if Not (adors("d_order_cnt") = "<22><><EFBFBD><EFBFBD> <20>Ϸ<EFBFBD>" OR adors("d_order_cnt") = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>") then
|
||||
qc_ckd="0"
|
||||
End If
|
||||
'-------------------------------------------------------------------------------------------------------------------------
|
||||
%>
|
||||
<% else %>
|
||||
<20><><EFBFBD><EFBFBD><EFBFBD>̿Ϸ<CCBF>
|
||||
<% end if %>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<%
|
||||
rsp.close
|
||||
adors.movenext
|
||||
next
|
||||
AdoRs.close
|
||||
%>
|
||||
<tr>
|
||||
<td colspan="12" align="left"><3E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> TOK<4F>μ<EFBFBD><CEBC><EFBFBD> <20><><EFBFBD><EFBFBD> <font color="red"><b><%=total_tok_count %></b></font> <20>Դϴ<D4B4>.</td>
|
||||
</tr>
|
||||
</table>
|
||||
***<2A><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Ǵ<EFBFBD> <20><><EFBFBD><EFBFBD> <20>Ϸ<EFBFBD><CFB7><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Ұ<EFBFBD><D2B0><EFBFBD><EFBFBD>մϴ<D5B4>. <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>.
|
||||
<center>
|
||||
<%if list_ckd="0" then '-- <20><><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20>ִ°<D6B4><C2B0>츸.. %>
|
||||
<%
|
||||
'####################################################################################
|
||||
'-- CATI <20>Ϸᵥ<CFB7><E1B5A5><EFBFBD><EFBFBD> <20>ߺ<EFBFBD> üũ(20170824) <20><><EFBFBD><EFBFBD>----------------------------------------------
|
||||
query = " select top 1 prj_code, s_tcnt "
|
||||
query = query & " from [new_cati].[dbo].[sheet1] with(nolock) "
|
||||
query = query & " where prj_code='"&request("prj_code")&"' "
|
||||
query = query & " group by prj_code, s_tcnt "
|
||||
query = query & " having count(s_tcnt)>1 " '-- ī<><C4AB><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 1<><31><EFBFBD><EFBFBD> ū<><C5AB>(<28>ߺ<EFBFBD>)
|
||||
'response.Write query
|
||||
rsp.Open query, adoConn, 1
|
||||
if not rsp.eof then '-- <20>ߺ<EFBFBD><DFBA><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
rsp.close
|
||||
response.write "<font color=blue><b><3E><> <20>ߺ<EFBFBD><DFBA><EFBFBD> <20>Ϸ<EFBFBD><CFB7><EFBFBD><EFBFBD><EFBFBD> <20>ֽ<EFBFBD><D6BD>ϴ<EFBFBD>. IT<49><54><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ͽ<EFBFBD> <20>ֽñ<D6BD> <20>ٶ<EFBFBD><D9B6>ϴ<EFBFBD></b></font>"
|
||||
response.write "</form>"
|
||||
response.end
|
||||
end if
|
||||
rsp.close
|
||||
'-- CATI <20>Ϸᵥ<CFB7><E1B5A5><EFBFBD><EFBFBD> <20>ߺ<EFBFBD> üũ(20170824) <20><><EFBFBD><EFBFBD>----------------------------------------------
|
||||
'####################################################################################
|
||||
'-- <20><><EFBFBD><EFBFBD><EFBFBD>Ϸ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ߺ<EFBFBD><DFBA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> üũ(20170813)--------------------
|
||||
query = " select top 1 "
|
||||
query = query & " prj_code, tel_cnt, count(tel_cnt) as <20>ߺ<EFBFBD>ī<EFBFBD><C4AB>Ʈ "
|
||||
query = query & " from [new_cati].[dbo].[T_INSPECTION_CATI] with(nolock) "
|
||||
query = query & " where prj_code='" & request("prj_code") & "' "
|
||||
query = query & " and qc_ok='1' " '-- <20><><EFBFBD><EFBFBD><EFBFBD>Ϸ<EFBFBD>(1)
|
||||
query = query & " and tel_result<>'2' " '-- <20>ҷ<EFBFBD><D2B7><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (<28>Ϸ<EFBFBD>)
|
||||
query = query & " and tel_del_yn='N' " '-- <20><><EFBFBD><EFBFBD>(N)
|
||||
query = query & " group by prj_code, tel_cnt "
|
||||
query = query & " having count(tel_cnt)>1 "
|
||||
'response.Write query
|
||||
rsp.Open query, adoConn, 1
|
||||
if rsp.eof then '-- <20><><EFBFBD><EFBFBD>
|
||||
%>
|
||||
<%If qc_ckd="0" Then %>
|
||||
<img src="/images/common/btn_save.jpg" align="absmiddle" onclick="save()" style="cursor:pointer;" id="img_save">
|
||||
<%Else %>
|
||||
<br><br><br><font color=blue><b><3E><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> [<5B>̿Ϸ<CCBF>]<5D>̰ų<CCB0>, [<5B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>] <20>Ǵ<EFBFBD> [<5B><><EFBFBD><EFBFBD><EFBFBD>Ϸ<EFBFBD>] <20><> <20><><EFBFBD><EFBFBD>Ʈ <20>Դϴ<D4B4></b></font><br><br><br>
|
||||
<%End If %>
|
||||
<%
|
||||
else ' <20><><EFBFBD><EFBFBD><EFBFBD>Ϸᵥ<CFB7><E1B5A5><EFBFBD>Ϳ<EFBFBD> <20>ߺ<EFBFBD><DFBA><EFBFBD><EFBFBD><EFBFBD>
|
||||
%> <br><br><br><font color=red><b><3E><> <20><><EFBFBD><EFBFBD><EFBFBD>Ϸ<EFBFBD><CFB7><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ϳ<EFBFBD> <20>ߺ<EFBFBD><DFBA><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ϸ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ֽ<EFBFBD><D6BD>ϴ<EFBFBD>. IT<49><54><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ͽ<EFBFBD> <20>ֽñ<D6BD> <20>ٶ<EFBFBD><D9B6>ϴ<EFBFBD> </b></font><br><br><br><%
|
||||
end if
|
||||
rsp.close
|
||||
%>
|
||||
<%end if%>
|
||||
|
||||
</center>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<% end if%>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.content -->
|
||||
<!-- REQUIRED SCRIPTS -->
|
||||
<script>
|
||||
$(function () {
|
||||
$("#checkAll").click(function () {
|
||||
var checked_status = this.checked;
|
||||
$("input[name=chk_cati_confirm]").not(":disabled").prop("checked", checked_status);
|
||||
});
|
||||
$("#lunchAll").click(function () {
|
||||
var checked_status = this.checked;
|
||||
$("input[name=chk_lunch]").not(":disabled").prop("checked", checked_status);
|
||||
});
|
||||
$("#dinnerAll").click(function () {
|
||||
var checked_status = this.checked;
|
||||
$("input[name=chk_dinner]").not(":disabled").prop("checked", checked_status);
|
||||
});
|
||||
|
||||
if ($(':radio[name="money_type"]:checked').val() == "<22>μ<EFBFBD>") {
|
||||
$("#dayMoney").val("");
|
||||
$("#paperMoney").focus();
|
||||
} else {
|
||||
$("#paperMoney").val("")
|
||||
$("input[name=add_count]").val("")
|
||||
$("input[name=addCntReason]").val("")
|
||||
$("input[name=dayMoney]").attr("readonly", false);
|
||||
$("input[name=paperMoney]").attr("readonly", true);
|
||||
$("input[name=add_count]").attr("readonly", true);
|
||||
$("input[name=addCntReason]").attr("readonly", true);
|
||||
$("input:checkbox[name='chk_lunch']").attr("checked", false);
|
||||
$("input:checkbox[name='chk_dinner']").attr("checked", false);
|
||||
$("#dayMoney").focus();
|
||||
}
|
||||
});
|
||||
|
||||
function winnewoepn(actval, actval2) {
|
||||
var url = "/project_list/project_cati_list_2014.asp";
|
||||
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 dateChange(prj_code) {
|
||||
document.cati_check.prj_code.value = prj_code;
|
||||
ajaxCallJson("interviewer_cati_check_ajax_date.asp", { prj_code: prj_code }, null, "post", "datereturnFunc()");
|
||||
}
|
||||
function datereturnFunc() {
|
||||
$("#date option").remove();
|
||||
$("#date").append(ajaxResponse);
|
||||
}
|
||||
function myunChange(intranet_project) {
|
||||
document.cati_check.intranet_project.value = intranet_project;
|
||||
ajaxCallJson("interviewer_cati_check_ajax_myun.asp", { intranet_project: intranet_project }, null, "post", "myunreturnFunc()");
|
||||
}
|
||||
function myunreturnFunc() {
|
||||
$("#myun option").remove();
|
||||
$("#myun").append(ajaxResponse);
|
||||
}
|
||||
|
||||
function save() {
|
||||
$("#img_save").css("display", "none");
|
||||
if (!confirm("<22><><EFBFBD><EFBFBD><EFBFBD>Ͻðڽ<C3B0><DABD>ϱ<EFBFBD>?")) {
|
||||
$("#img_save").css("display", "inline");
|
||||
return false;
|
||||
}
|
||||
var cnt = document.cati_check.cnt.value;
|
||||
|
||||
if ($(":input:radio[name='money_type']:checked").val() == "<22>μ<EFBFBD>" && document.cati_check.paperMoney.value == "") {
|
||||
alert("<22>μ<EFBFBD><CEBC>ܰ<EFBFBD><DCB0><EFBFBD> <20>ݵ<EFBFBD><DDB5><EFBFBD> <20>Է<EFBFBD><D4B7>ϼž<CFBC> <20>մϴ<D5B4>.");
|
||||
$("#img_save").css("display", "inline");
|
||||
return;
|
||||
} else if ($(":input:radio[name='money_type']:checked").val() == "<22>ϴ<EFBFBD>" && document.cati_check.dayMoney.value == "") {
|
||||
alert("<22>ϴ<EFBFBD><CFB4>ݾ<EFBFBD><DDBE><EFBFBD> <20>ݵ<EFBFBD><DDB5><EFBFBD> <20>Է<EFBFBD><D4B7>ϼž<CFBC> <20>մϴ<D5B4>.");
|
||||
$("#img_save").css("display", "inline");
|
||||
return;
|
||||
} else if (document.cati_check.myun.value == "") {
|
||||
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ݵ<EFBFBD><DDB5><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϼž<CFBC> <20>մϴ<D5B4>.");
|
||||
$("#img_save").css("display", "inline");
|
||||
return;
|
||||
}
|
||||
if (cnt > 1) {
|
||||
for (i = 0; i < cnt; i++) {
|
||||
if ($("input:checkbox[id='chk_cati_confirm_" + (i + 1) + "']").is(":checked") == false) {
|
||||
$("#cati_confirm_" + (i + 1)).val("N");
|
||||
}
|
||||
if ($("input:checkbox[id='chk_lunch_" + (i + 1) + "']").is(":checked") == false) {
|
||||
$("#lunch_" + (i + 1)).val("N");
|
||||
}
|
||||
|
||||
if ($("input:checkbox[id='chk_dinner_" + (i + 1) + "']").is(":checked") == false) {
|
||||
$("#dinner_" + (i + 1)).val("N");
|
||||
}
|
||||
|
||||
if (document.cati_check.add_count[i].value != "" && document.cati_check.add_count[i].value != "0" && document.cati_check.addCntReason[i].value == "") {
|
||||
alert(i + 1 + "<22><>° <20><><EFBFBD><EFBFBD> Ȯ<><C8AE><EFBFBD>ϼ<EFBFBD><CFBC><EFBFBD>.\n<>߰<EFBFBD>/<2F><><EFBFBD><EFBFBD><EFBFBD>μ<EFBFBD> <20>Է½<D4B7> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ݵ<EFBFBD><DDB5><EFBFBD> <20>Է<EFBFBD><D4B7>ؾ<EFBFBD> <20>մϴ<D5B4>.");
|
||||
$("#img_save").css("display", "inline");
|
||||
return false;
|
||||
}
|
||||
if (document.cati_check.addMoney[i].value != "" && document.cati_check.addMoney[i].value != "0" && document.cati_check.addMoneyReason[i].value == "") {
|
||||
alert(i + 1 + "<22><>° <20><><EFBFBD><EFBFBD> Ȯ<><C8AE><EFBFBD>ϼ<EFBFBD><CFBC><EFBFBD>.\n<>߰<EFBFBD>/<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Է½<D4B7> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ݵ<EFBFBD><DDB5><EFBFBD> <20>Է<EFBFBD><D4B7>ؾ<EFBFBD> <20>մϴ<D5B4>.");
|
||||
$("#img_save").css("display", "inline");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if ($("input:checkbox[id='chk_cati_confirm_1']").is(":checked") == false) {
|
||||
$("#cati_confirm_1").val("N");
|
||||
}
|
||||
if ($("input:checkbox[id='chk_lunch_1']").is(":checked") == false) {
|
||||
$("#lunch_1").val("N");
|
||||
}
|
||||
if ($("input:checkbox[id='chk_dinner_1']").is(":checked") == false) {
|
||||
$("#dinner_1").val("N");
|
||||
}
|
||||
if (document.cati_check.add_count.value != "" && document.cati_check.add_count.value != "0" && document.cati_check.addCntReason.value == "") {
|
||||
alert("<22>߰<EFBFBD>/<2F><><EFBFBD><EFBFBD><EFBFBD>μ<EFBFBD> <20>Է½<D4B7> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ݵ<EFBFBD><DDB5><EFBFBD> <20>Է<EFBFBD><D4B7>ؾ<EFBFBD> <20>մϴ<D5B4>.");
|
||||
$("#img_save").css("display", "inline");
|
||||
return false;
|
||||
}
|
||||
if (document.cati_check.addMoney.value != "" && document.cati_check.addMoney.value != "0" && document.cati_check.addMoneyReason.value == "") {
|
||||
alert("<22>߰<EFBFBD>/<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Է½<D4B7> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ݵ<EFBFBD><DDB5><EFBFBD> <20>Է<EFBFBD><D4B7>ؾ<EFBFBD> <20>մϴ<D5B4>.");
|
||||
$("#img_save").css("display", "inline");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
document.cati_check.action = "cati_confirm_save.asp";
|
||||
document.cati_check.submit();
|
||||
}
|
||||
function search(type) {
|
||||
var prj_code = document.cati_check.prj_code.value;
|
||||
var date = document.cati_check.date.value;
|
||||
document.cati_check.searchType.value = type;
|
||||
|
||||
if (prj_code == "") {
|
||||
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD><EFBFBD>ϼ<EFBFBD><CFBC><EFBFBD>");
|
||||
return;
|
||||
}else if (date == "") {
|
||||
alert("<22><>¥<EFBFBD><C2A5> <20><><EFBFBD><EFBFBD><EFBFBD>ϼ<EFBFBD><CFBC><EFBFBD>");
|
||||
return;
|
||||
}
|
||||
document.cati_check.action = "interviewer_cati_check.asp";
|
||||
document.cati_check.submit();
|
||||
}
|
||||
function alert_eat(prj_code, prj_name, lunch_dinner) {
|
||||
if (lunch_dinner == "lunch") {
|
||||
alert("[" + prj_code + "] " + prj_name + "<22><> <20>߰<EFBFBD><DFB0><EFBFBD><EFBFBD><EFBFBD>1<EFBFBD><31> <20><><EFBFBD> <20>ֽ<EFBFBD><D6BD>ϴ<EFBFBD>.");
|
||||
} else if (lunch_dinner == "dinner") {
|
||||
alert("[" + prj_code + "] " + prj_name + "<22><> <20>߰<EFBFBD><DFB0><EFBFBD><EFBFBD><EFBFBD>2<EFBFBD><32> <20><><EFBFBD> <20>ֽ<EFBFBD><D6BD>ϴ<EFBFBD>.");
|
||||
}
|
||||
}
|
||||
|
||||
function money_type_change() {
|
||||
search('moneyTypeChange');
|
||||
}
|
||||
</script>
|
||||
</div>
|
||||
<!-- /.content-wrapper -->
|
||||
<!-- #include virtual = "include/footer.asp" -->
|
||||
24
inspection/interviewer_cati_check_ajax_date.asp
Normal file
24
inspection/interviewer_cati_check_ajax_date.asp
Normal file
@@ -0,0 +1,24 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<%
|
||||
prj_code = request("prj_code")
|
||||
|
||||
Response.CharSet = "EUC-KR" '<27>ѱ<EFBFBD>
|
||||
Response.AddHeader "Pragma","no-cache"
|
||||
Response.AddHeader "cache-control", "no-staff"
|
||||
Response.Expires = -1
|
||||
|
||||
response.write "<option value=" & "><3E><> <20><></option>" & "<br>"
|
||||
|
||||
query = " select s_date "
|
||||
query = query & " FROM new_cati.dbo.sheet1 "
|
||||
query = query & " where prj_code = '"& prj_code &"' "
|
||||
query = query & " group by s_date "
|
||||
query = query & " order by s_date "
|
||||
Rs.Open query, adoConn, 1
|
||||
|
||||
for i=1 to Rs.recordCount
|
||||
response.write "<option value='"& Rs("s_date")&"'>"&Rs("s_date")&"</option>"
|
||||
Rs.movenext
|
||||
next
|
||||
Rs.close
|
||||
%>
|
||||
25
inspection/interviewer_cati_check_ajax_myun.asp
Normal file
25
inspection/interviewer_cati_check_ajax_myun.asp
Normal file
@@ -0,0 +1,25 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<%
|
||||
intranet_project = request("intranet_project")
|
||||
|
||||
Response.CharSet = "EUC-KR" '<27>ѱ<EFBFBD>
|
||||
Response.AddHeader "Pragma","no-cache"
|
||||
Response.AddHeader "cache-control", "no-staff"
|
||||
Response.Expires = -1
|
||||
|
||||
response.write "<option value=" & "><3E><> <20><></option>" & "<br>"
|
||||
|
||||
query = " select sebu, est_danga "
|
||||
query = query & " FROM direct_cost "
|
||||
query = query & " where p_child_sn = '"& intranet_project &"' "
|
||||
query = query & " and del_yes_no = 'no' "
|
||||
query = query & " and sebu like '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>%' "
|
||||
query = query & " and hangmok = '48' "
|
||||
|
||||
Rs.Open query, adoConn, 1
|
||||
for i=1 to Rs.recordCount
|
||||
response.write "<option value='"& Rs("sebu")&"'>["&Rs("sebu")&"] - "&Rs("est_danga")&"</option>"
|
||||
Rs.movenext
|
||||
next
|
||||
Rs.close
|
||||
%>
|
||||
599
inspection/interviewer_check.asp
Normal file
599
inspection/interviewer_check.asp
Normal file
@@ -0,0 +1,599 @@
|
||||
<!-- #include virtual = "include/header.asp" -->
|
||||
<!-- #include virtual = "include/left.asp" -->
|
||||
<OBJECT RUNAT=Server PROGID=ADODB.Recordset id=rsc></OBJECT>
|
||||
<%
|
||||
p_child_sn = request("p_child_sn")
|
||||
%>
|
||||
<!-- Content Wrapper. Contains page content -->
|
||||
<div class="content-wrapper">
|
||||
<!-- Content Header (Page header) -->
|
||||
<div class="content-header">
|
||||
<h1><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Ȯ<><C8AE>(FF)</h1>
|
||||
</div>
|
||||
<!-- /.content-header -->
|
||||
<!-- Main content -->
|
||||
<div class="content-body">
|
||||
<div class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<% Dim f_menu : f_menu = "my" %>
|
||||
<!-- #include file = "f_menu.asp" -->
|
||||
<form method='post' id='myun_check' name='myun_check'>
|
||||
<input type="hidden" name="p_child_sn" id="p_child_sn" value="<%=p_child_sn %>" />
|
||||
<table width="1200px" class="table table-sm table-sm2 table-bordered table-head tr-colors">
|
||||
<tr>
|
||||
<td align="center"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ</td>
|
||||
<td align="left">
|
||||
<input type="text" class="gray" style="width:calc(100% - 30px);" name="p_subject" id="p_subject" value='<%=request("p_subject") %>' onclick="winnewoepn();" readonly>
|
||||
<img src="/images/common/btn_smallsrch2.gif" align="absmiddle" onclick="winnewoepn();" style="CURSOR:pointer;width:24px;">
|
||||
</td>
|
||||
<td><img src="/images/common/btn_smallsrch.gif" align="absmiddle" onClick="goView('view');" style='cursor:pointer'></td>
|
||||
</tr>
|
||||
</table>
|
||||
<%
|
||||
if p_child_sn <> "" then
|
||||
query = " select dc1.p_child_sn, sebu, est_danga, dc2.est_money, isnull(tmp.s_sum, 0) as s_sum, "&VbCrlf
|
||||
query = query & " isnull((select TOP 1 s_sum - add_money - (s_pay_unit * (s_wan + add_count)) from T_MYUN_PAY where prj_code = dc1.p_child_sn and s_ot = 'Y' and confirm_yn = 'Y' order by insert_dt desc),'0') as s_ot_pay_unit "&VbCrlf
|
||||
query = query & " FROM direct_cost dc1 left outer join ( "&VbCrlf
|
||||
query = query & " select p_child_sn, sum(cast(est_money as int)) as est_money "&VbCrlf
|
||||
query = query & " FROM direct_cost "&VbCrlf
|
||||
'---------------------------------------------------------------------------------------
|
||||
query = query & " where p_child_sn = "&VbCrlf
|
||||
query = query & " (select intranet_project from t_project_fcs where p_child_sn='"& p_child_sn &"' ) "&VbCrlf
|
||||
query = query & " "
|
||||
query = query & " and del_yes_no = 'no' "&VbCrlf
|
||||
query = query & " and (sebu like '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>%' or sebu = '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>') "&VbCrlf
|
||||
query = query & " and hangmok = '48' "&VbCrlf
|
||||
query = query & " group by p_child_sn "&VbCrlf
|
||||
query = query & " ) dc2 on dc1.p_child_sn = dc2.p_child_sn "&VbCrlf
|
||||
query = query & " left outer join ( "&VbCrlf
|
||||
query = query & " select p_sn, sum(s_sum) as s_sum "&VbCrlf
|
||||
query = query & " from T_MYUN_PAY "&VbCrlf
|
||||
query = query & " where prj_code = '"& p_child_sn &"' "&VbCrlf
|
||||
query = query & " AND confirm_yn = 'Y' "&VbCrlf
|
||||
query = query & " group by p_sn "&VbCrlf
|
||||
query = query & " ) tmp on dc1.p_child_sn = tmp.p_sn "&VbCrlf
|
||||
query = query & " where dc1.p_child_sn = "&VbCrlf
|
||||
query = query & " (select intranet_project from t_project_fcs where p_child_sn='"& p_child_sn &"' ) "&VbCrlf
|
||||
query = query & " and del_yes_no = 'no' "&VbCrlf
|
||||
query = query & " and sebu like '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>%' "&VbCrlf
|
||||
query = query & " and hangmok = '48' "&VbCrlf
|
||||
|
||||
'response.Write query
|
||||
Rs.Open query, adoConn, 1
|
||||
|
||||
if Rs.recordcount > 0 then %>
|
||||
<table width="1200px" class="table table-sm table-sm2 table-bordered table-head tr-colors">
|
||||
<tr>
|
||||
<td align="center" width="15%"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><>ȣ</td>
|
||||
<td align="center" width="15%"><%=p_child_sn %></td>
|
||||
<td align="center" width="15%"><3E><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td align="right" width="20%"><%=FormatNumber(Rs("est_money"),0) %> <20><></td>
|
||||
<td align="center" width="15%"><3E><><EFBFBD><EFBFBD> Confirm <20>ݾ<EFBFBD></td>
|
||||
<td align="right" width="20%"><%=FormatNumber(Rs("s_sum"),0) %> <20><></td>
|
||||
</tr>
|
||||
</table>
|
||||
<% End if %>
|
||||
<table width="1200px" class="table table-sm table-sm2 table-bordered table-head tr-colors">
|
||||
<tr height="30px">
|
||||
<td align="center" colspan="9"><font size="3" color="red"><b><3E><><EFBFBD><EFBFBD> / <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>TYPE <20>ܰ<EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD></b></font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" style="width:9%" colspan="2"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ܰ<EFBFBD><br /><input type="text" name="ot_pay_unit" id="ot_pay_unit" value="<%=Rs("s_ot_pay_unit") %>" style="width:60%;text-align:right;" /><3E><></td>
|
||||
<td align="center" style="width:13%"><3E><><EFBFBD><EFBFBD></td>
|
||||
<td align="center" style="width:13%"><3E><><EFBFBD><EFBFBD></td>
|
||||
<td align="center" style="width:13%"><3E>뱸</td>
|
||||
<td align="center" style="width:13%"><3E><><EFBFBD><EFBFBD></td>
|
||||
<td align="center" style="width:13%"><3E>λ<EFBFBD></td>
|
||||
<td align="center" style="width:13%"><3E><><EFBFBD><EFBFBD></td>
|
||||
<td align="center" style="width:13%"><3E><><EFBFBD><EFBFBD></td>
|
||||
</tr>
|
||||
<%
|
||||
query = " SELECT TIR.s_type "
|
||||
query = query & " from ( "
|
||||
query = query & " select "
|
||||
query = query & " X.p_method_cd, X.p_sn, X.p_child_sn, X.p_subject, X.p_field_complete, X.p_rsch_dept, "
|
||||
query = query & " X.p_progress_status, X.p_sv_1, X.p_sv_2, X.p_sv_3, X.p_sv_4 "
|
||||
query = query & " from "
|
||||
query = query & " ( "
|
||||
query = query & " select p_method_cd, p_sn, p_child_sn, p_subject, p_field_complete, p_rsch_dept, p_progress_status, p_sv_1, p_sv_2, p_sv_3, p_sv_4 "
|
||||
query = query & " from T_PROJECT_METHOD union all "
|
||||
query = query & " select a.p_method_cd, a.p_sn, b.p_child_sn, b.p_subject, a.p_field_complete, a.p_rsch_dept, a.p_progress_status, a.p_sv_1, a.p_sv_2, a.p_sv_3, a.p_sv_4 "
|
||||
query = query & " from T_PROJECT_METHOD a inner join T_PROJECT_FCS b on a.p_sn = b.p_sn and a.p_method_cd = b.p_method_cd "
|
||||
query = query & " ) X "
|
||||
query = query & " group by "
|
||||
query = query & " X.p_method_cd, X.p_sn, X.p_child_sn, X.p_subject, X.p_field_complete, X.p_rsch_dept, "
|
||||
query = query & " X.p_progress_status, X.p_sv_1, X.p_sv_2, X.p_sv_3, X.p_sv_4 "
|
||||
query = query & " ) TPM "
|
||||
query = query & " LEFT OUTER JOIN RES RE "
|
||||
query = query & " ON TPM.p_child_sn = RE.p_sn "
|
||||
query = query & " LEFT OUTER JOIN T_INSPECTION_RES TIR "
|
||||
query = query & " ON RE.p_sn = TIR.p_sn "
|
||||
query = query & " AND RE.r_sn = TIR.r_sn "
|
||||
query = query & " WHERE TIR.pass_stat <> 'ERROR' "
|
||||
if Session("Depart_Code") <> "18" Then
|
||||
query = query & " and (tpm.p_sv_1 = '" & session("User_Number") & "' or tpm.p_sv_2 = '" & session("User_Number") & "' or tpm.p_sv_3 = '" & session("User_Number") & "' or tpm.p_sv_4 = '" & session("User_Number") & "') "
|
||||
end if
|
||||
query = query & " AND TPM.p_child_sn = '" & p_child_sn & "' and TIR.s_area = '<27><><EFBFBD><EFBFBD>' " ' <20><><EFBFBD>︸ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
query = query & " GROUP BY TIR.s_type "
|
||||
query = query & " ORDER BY s_type "
|
||||
AdoRs.open query, adoconn, adopenstatic, adlockreadonly
|
||||
|
||||
do while not AdoRs.EoF
|
||||
query = " SELECT TIR.p_sn, "
|
||||
query = query & " TIR.s_area, "
|
||||
query = query & " AREA.num, "
|
||||
query = query & " TIR.s_type, "
|
||||
query = query & " isnull((select TOP 1 s_pay_unit FROM T_MYUN_PAY where prj_code = TIR.p_sn AND s_area = TIR.s_area AND s_type = TIR.s_type Order by insert_dt desc), '0') as s_pay_unit, "
|
||||
query = query & " isnull((select TOP 1 est_money FROM T_MYUN_PAY where prj_code = TIR.p_sn AND s_area = TIR.s_area AND s_type = TIR.s_type Order by insert_dt desc), '0') as est_money "
|
||||
query = query & " from ( "
|
||||
query = query & " select "
|
||||
query = query & " X.p_method_cd, X.p_sn, X.p_child_sn, X.p_subject, X.p_field_complete, X.p_rsch_dept, "
|
||||
query = query & " X.p_progress_status, X.p_sv_1, X.p_sv_2, X.p_sv_3, X.p_sv_4 "
|
||||
query = query & " from "
|
||||
query = query & " ( "
|
||||
query = query & " select p_method_cd, p_sn, p_child_sn, p_subject, p_field_complete, p_rsch_dept, p_progress_status, p_sv_1, p_sv_2, p_sv_3, p_sv_4 "
|
||||
query = query & " from T_PROJECT_METHOD union all "
|
||||
query = query & " select a.p_method_cd, a.p_sn, b.p_child_sn, b.p_subject, a.p_field_complete, a.p_rsch_dept, a.p_progress_status, a.p_sv_1, a.p_sv_2, a.p_sv_3, a.p_sv_4 "
|
||||
query = query & " from T_PROJECT_METHOD a inner join T_PROJECT_FCS b on a.p_sn = b.p_sn and a.p_method_cd = b.p_method_cd "
|
||||
query = query & " ) X "
|
||||
query = query & " group by "
|
||||
query = query & " X.p_method_cd, X.p_sn, X.p_child_sn, X.p_subject, X.p_field_complete, X.p_rsch_dept, "
|
||||
query = query & " X.p_progress_status, X.p_sv_1, X.p_sv_2, X.p_sv_3, X.p_sv_4 "
|
||||
query = query & " ) TPM "
|
||||
query = query & " LEFT OUTER JOIN RES RE "
|
||||
query = query & " ON TPM.p_child_sn = RE.p_sn "
|
||||
query = query & " LEFT OUTER JOIN T_INSPECTION_RES TIR "
|
||||
query = query & " ON RE.p_sn = TIR.p_sn "
|
||||
query = query & " AND RE.r_sn = TIR.r_sn "
|
||||
query = query & " LEFT OUTER JOIN T_MYUN_PAY TMP "
|
||||
query = query & " ON TIR.p_sn = TMP.prj_code "
|
||||
query = query & " AND TIR.s_area = TMP.s_area "
|
||||
query = query & " AND TIR.s_type = TMP.s_type "
|
||||
query = query & " AND convert(char(10),RE.r_date,126) = TMP.work_dt "
|
||||
query = query & " AND TIR.m_name = TMP.m_name "
|
||||
query = query & " AND TIR.m_no = (SELECT TOP 1 new_id FROM man where m_name = TMP.m_name AND left(m_jumin, 6) = LEFT(TMP.m_jumin,6) order by new_id) "
|
||||
query = query & " LEFT OUTER JOIN ( "
|
||||
query = query & " select 1 as num, '<27><><EFBFBD><EFBFBD>' as s_area union all "
|
||||
query = query & " select 2 as num, '<27><><EFBFBD><EFBFBD>' as s_area union all "
|
||||
query = query & " select 3 as num, '<27>뱸' as s_area union all "
|
||||
query = query & " select 4 as num, '<27><><EFBFBD><EFBFBD>' as s_area union all "
|
||||
query = query & " select 5 as num, '<27>λ<EFBFBD>' as s_area union all "
|
||||
query = query & " select 6 as num, '<27><><EFBFBD><EFBFBD>' as s_area union all "
|
||||
query = query & " select 7 as num, '<27><><EFBFBD><EFBFBD>' as s_area "
|
||||
query = query & " ) AREA "
|
||||
query = query & " ON TIR.s_area = AREA.s_area "
|
||||
query = query & " WHERE TIR.pass_stat <> 'ERROR' "
|
||||
query = query & " and (tpm.p_sv_1 = '" & session("User_Number") & "' or tpm.p_sv_2 = '" & session("User_Number") & "' or tpm.p_sv_3 = '" & session("User_Number") & "' or tpm.p_sv_4 = '" & session("User_Number") & "') "
|
||||
query = query & " AND TPM.p_child_sn = '" & p_child_sn & "' "
|
||||
query = query & " AND TIR.s_type = '" & AdoRs("s_type") & "' "
|
||||
query = query & " AND TIR.s_area = '<27><><EFBFBD><EFBFBD>' " ' <20><><EFBFBD>︸ <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
query = query & " GROUP BY TIR.p_sn, TIR.s_area, TIR.s_type, AREA.num, TMP.est_money "
|
||||
query = query & " ORDER BY s_type, AREA.num "
|
||||
rsc.open query, adoconn, adopenstatic, adlockreadonly
|
||||
%>
|
||||
<tr>
|
||||
<% if AdoRs("s_type") = "A" then %>
|
||||
<td align="center" rowspan="<%=AdoRs.recordCount%>" style="width:8%"><3E><><EFBFBD><EFBFBD><EFBFBD>ܰ<EFBFBD><br />/<br /><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<% end if %>
|
||||
<td align="center" style="width:2%"><%=AdoRs("s_type")%></td>
|
||||
<% For j=1 To 7 %>
|
||||
<% if rsc.EOF = false then
|
||||
if j = rsc("num") Then %>
|
||||
<td align="center" ><input type="text" name="pay_unit_<%=rsc("num") %>_<%=AdoRs("s_type")%>" id="pay_unit_<%=rsc("num") %>_<%=AdoRs("s_type")%>" value="<%=rsc("s_pay_unit") %>" style="width:70%;text-align:right;"/><3E><><br />
|
||||
<select name="myun_<%=rsc("num") %>_<%=AdoRs("s_type")%>" id="myun_<%=rsc("num") %>_<%=AdoRs("s_type")%>" style="width:80%;">
|
||||
<option value=""><3E><> <20><></option>
|
||||
<% for i=1 to Rs.recordCount %>
|
||||
<option value='<%=Rs("sebu") %>' <% if rsc("est_money") = Rs("sebu") then %> selected <% end if %>>[<%=right(Rs("sebu"), 3) %>] - <%=Rs("est_danga") %></option>
|
||||
<% Rs.movenext
|
||||
next
|
||||
Rs.moveFirst
|
||||
%>
|
||||
</select>
|
||||
</td>
|
||||
<% rsc.MoveNext
|
||||
Else
|
||||
%><td align="center" > </td><%
|
||||
End if
|
||||
Else
|
||||
%><td align="center" > </td><%
|
||||
End if
|
||||
Next%>
|
||||
</tr>
|
||||
<%
|
||||
rsc.close
|
||||
AdoRs.MoveNext
|
||||
loop
|
||||
Rs.close
|
||||
AdoRs.close
|
||||
%>
|
||||
</table>
|
||||
<table width="1200px" class="table table-sm table-sm2 table-bordered table-head tr-colors resultTable">
|
||||
<tr height='30'>
|
||||
<td align="center" style="width:5%"><3E><><EFBFBD><EFBFBD></td>
|
||||
<td align="center" style="width:9%"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td align="center" style="width:7%"><3E><><EFBFBD><EFBFBD></td>
|
||||
<td align="center" style="width:7%"><3E><><EFBFBD><EFBFBD><br />TYPE</td>
|
||||
<td align="center" style="width:6%">TOK<br /><3E>μ<EFBFBD></td>
|
||||
<td align="center" style="width:10%"><3E>߰<EFBFBD>/<2F><><EFBFBD><EFBFBD><br /><3E>μ<EFBFBD></td>
|
||||
<td align="center" style="width:11%"><3E><><EFBFBD><EFBFBD></td>
|
||||
<td align="center" style="width:10%"><3E>߰<EFBFBD>/<2F><><EFBFBD><EFBFBD><br /><3E><><EFBFBD><EFBFBD></td>
|
||||
<td align="center" style="width:11%"><3E><><EFBFBD><EFBFBD></td>
|
||||
<td align="center" style="width:6%"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td align="center" style="width:10%"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)</td>
|
||||
<td align="center" style="width:8%">Confirm<br />
|
||||
<input type="checkbox" id="checkAll_confirm" name="checkAll_confirm" />
|
||||
</td>
|
||||
</tr>
|
||||
<%
|
||||
sql = "" & vbCrLf
|
||||
sql = sql & " SELECT id, m_no, m_name, prj_code, p_sn, p_subject, s_area, s_type, num, s_ot, s_ot_yn, " & vbCrLf
|
||||
sql = sql & " sum(total_cnt) as total_cnt, sum(tok) as tok, sum(no_tok) as no_tok, add_count, add_count_memo, add_money, add_money_memo, confirm_yn, d_order_cnt " & vbCrLf
|
||||
sql = sql & " FROM ( " & vbCrLf
|
||||
sql = sql & " SELECT isnull(T.id, 0) as id, " & vbCrLf
|
||||
sql = sql & " RE.m_no, RE.m_name, RE.p_sn as prj_code, " & vbCrLf
|
||||
sql = sql & " ( " & vbCrLf
|
||||
sql = sql & " (select intranet_project from t_project_fcs where p_child_sn = RE.p_sn) " & vbCrLf
|
||||
sql = sql & " ) as p_sn, " & vbCrLf
|
||||
sql = sql & " TPM.p_subject, RE.s_area, RE.s_type, " & vbCrLf
|
||||
sql = sql & " T.num, T.s_ot, T.s_ot_yn, RE.total_cnt, sum(convert(int, isnull(T.TOK,0))) as tok, sum(convert(int, isnull(T.NO_TOK,0))) as no_tok, r_date as final_date, " & vbCrLf
|
||||
sql = sql & " T.add_count, T.add_count_memo, T.add_money, T.add_money_memo, T.confirm_yn, T.d_order_cnt " & vbCrLf
|
||||
sql = sql & " from ( " & vbCrLf
|
||||
sql = sql & " select " & vbCrLf
|
||||
sql = sql & " X.p_method_cd, X.p_sn, X.p_child_sn, X.p_subject, X.p_field_complete, X.p_rsch_dept, " & vbCrLf
|
||||
sql = sql & " X.p_progress_status, X.p_sv_1, X.p_sv_2, X.p_sv_3, X.p_sv_4 " & vbCrLf
|
||||
sql = sql & " from " & vbCrLf
|
||||
sql = sql & " ( " & vbCrLf
|
||||
sql = sql & " select p_method_cd, p_sn, p_child_sn, p_subject, p_field_complete, p_rsch_dept, p_progress_status, p_sv_1, p_sv_2, p_sv_3, p_sv_4 " & vbCrLf
|
||||
sql = sql & " from T_PROJECT_METHOD union all " & vbCrLf
|
||||
sql = sql & " select a.p_method_cd, a.p_sn, b.p_child_sn, b.p_subject, a.p_field_complete, a.p_rsch_dept, a.p_progress_status, a.p_sv_1, a.p_sv_2, a.p_sv_3, a.p_sv_4 " & vbCrLf
|
||||
sql = sql & " from T_PROJECT_METHOD a inner join T_PROJECT_FCS b on a.p_sn = b.p_sn and a.p_method_cd = b.p_method_cd and a.p_child_sn=b.intranet_project "
|
||||
sql = sql & " ) X " & vbCrLf
|
||||
sql = sql & " group by " & vbCrLf
|
||||
sql = sql & " X.p_method_cd, X.p_sn, X.p_child_sn, X.p_subject, X.p_field_complete, X.p_rsch_dept, " & vbCrLf
|
||||
sql = sql & " X.p_progress_status, X.p_sv_1, X.p_sv_2, X.p_sv_3, X.p_sv_4 " & vbCrLf
|
||||
sql = sql & " ) TPM LEFT OUTER JOIN " & vbCrLf
|
||||
sql = sql & " ( " & vbCrLf
|
||||
sql = sql & " SELECT p_sn, s_area, s_type, m_name, m_no, r_date, COUNT(*) as total_cnt FROM RES " & vbCrLf
|
||||
sql = sql & " WHERE r_error is null and m_error is null and s_error is null and q_error is null and delgubun='N' " & vbCrLf
|
||||
sql = sql & " GROUP BY p_sn, s_area, s_type, m_name, m_no, r_date " & vbCrLf
|
||||
sql = sql & " ) RE ON TPM.p_child_sn = RE.p_sn LEFT OUTER JOIN " & vbCrLf
|
||||
sql = sql & " ( " & vbCrLf
|
||||
sql = sql & " SELECT isnull(TMP.id,0) as id, " & vbCrLf
|
||||
sql = sql & " TIR.m_no, " & vbCrLf
|
||||
sql = sql & " TIR.m_name, " & vbCrLf
|
||||
sql = sql & " TIR.p_sn, " & vbCrLf
|
||||
sql = sql & " TIR.s_area, " & vbCrLf
|
||||
sql = sql & " AREA.num, " & vbCrLf
|
||||
sql = sql & " TIR.s_type, " & vbCrLf
|
||||
sql = sql & " isnull(TMP.s_ot,'N') as s_ot, " & vbCrLf
|
||||
sql = sql & " isnull((SELECT TOP 1 s_ot FROM T_MYUN_PAY WHERE prj_code = TIR.p_sn AND s_area = TIR.s_area AND s_type = TIR.s_type " & vbCrLf
|
||||
sql = sql & " and s_ot = 'Y' and confirm_yn = 'Y' and m_name = TIR.m_name and m_jumin = (select top 1 m_jumin from man where new_id = TIR.m_no) " & vbCrLf
|
||||
sql = sql & " ),'N') as s_ot_yn, " & vbCrLf
|
||||
sql = sql & " CASE WHEN TIR.pass_stat <> 'ERROR' THEN '1' ELSE '0' END as TOK, " & vbCrLf
|
||||
sql = sql & " CASE WHEN isnull(qc_stat, '') <> '' THEN '1' ELSE '0' END as NO_TOK, " & vbCrLf
|
||||
sql = sql & " convert(char(10),R.r_date,126) as final_date, " & vbCrLf
|
||||
sql = sql & " TMP.add_count, " & vbCrLf
|
||||
sql = sql & " TMP.add_count_memo, " & vbCrLf
|
||||
sql = sql & " TMP.add_money, " & vbCrLf
|
||||
sql = sql & " TMP.add_money_memo, " & vbCrLf
|
||||
sql = sql & " TMP.confirm_yn, " & vbCrLf
|
||||
sql = sql & " CASE WHEN D.d_order_cnt = '99' THEN '<27><><EFBFBD><EFBFBD> <20>ݷ<EFBFBD>' " & vbCrLf
|
||||
sql = sql & " WHEN D.d_order_cnt = '77' THEN '<27><><EFBFBD><EFBFBD> <20>Ϸ<EFBFBD>' " & vbCrLf
|
||||
sql = sql & " WHEN D.d_order_cnt IS NULL THEN '' " & vbCrLf
|
||||
sql = sql & " ELSE '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' " & vbCrLf
|
||||
sql = sql & " END AS d_order_cnt " & vbCrLf
|
||||
sql = sql & " FROM " & vbCrLf
|
||||
sql = sql & " RES R " & vbCrLf
|
||||
sql = sql & " LEFT OUTER JOIN T_INSPECTION_RES TIR " & vbCrLf
|
||||
sql = sql & " ON R.r_sn = TIR.r_sn " & vbCrLf
|
||||
sql = sql & " AND R.p_sn = TIR.p_sn " & vbCrLf
|
||||
sql = sql & " LEFT OUTER JOIN T_MYUN_PAY TMP " & vbCrLf
|
||||
sql = sql & " ON TIR.p_sn = TMP.prj_code " & vbCrLf
|
||||
sql = sql & " AND TIR.s_area = TMP.s_area " & vbCrLf
|
||||
sql = sql & " AND TIR.s_type = TMP.s_type " & vbCrLf
|
||||
sql = sql & " AND TIR.m_name = TMP.m_name " & vbCrLf
|
||||
sql = sql & " AND TIR.m_no = (SELECT TOP 1 new_id FROM man where m_name = TMP.m_name AND left(m_jumin, 6) = LEFT(TMP.m_jumin,6) order by new_id) " & vbCrLf
|
||||
sql = sql & " LEFT OUTER JOIN ( " & vbCrLf
|
||||
sql = sql & " select 1 as num, '<27><><EFBFBD><EFBFBD>' as s_area union all " & vbCrLf
|
||||
sql = sql & " select 2 as num, '<27><><EFBFBD><EFBFBD>' as s_area union all " & vbCrLf
|
||||
sql = sql & " select 3 as num, '<27>뱸' as s_area union all " & vbCrLf
|
||||
sql = sql & " select 4 as num, '<27><><EFBFBD><EFBFBD>' as s_area union all " & vbCrLf
|
||||
sql = sql & " select 5 as num, '<27>λ<EFBFBD>' as s_area union all " & vbCrLf
|
||||
sql = sql & " select 6 as num, '<27><><EFBFBD><EFBFBD>' as s_area union all " & vbCrLf
|
||||
sql = sql & " select 7 as num, '<27><><EFBFBD><EFBFBD>' as s_area " & vbCrLf
|
||||
sql = sql & " ) AREA " & vbCrLf
|
||||
sql = sql & " ON TIR.s_area = AREA.s_area " & vbCrLf
|
||||
sql = sql & " LEFT OUTER JOIN Document D " & vbCrLf
|
||||
sql = sql & " ON TMP.attribute05 = D.d_no " & vbCrLf
|
||||
sql = sql & " AND D.d_delok = 'N' " & vbCrLf
|
||||
sql = sql & " Where R.Delgubun = 'N' " & vbCrLf
|
||||
sql = sql & " ) T ON RE.p_sn = T.p_sn AND RE.s_area = T.s_area AND RE.s_type = T.s_type AND RE.r_date = T.final_date AND RE.m_no = T.m_no " & vbCrLf
|
||||
sql = sql & " WHERE TPM.p_child_sn = '"& p_child_sn &"' and T.s_area = '<27><><EFBFBD><EFBFBD>' " & vbCrLf '<27><><EFBFBD>︸ <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
if not ((Session("teamplace") = 3 AND Session("Depart_Code") = "12") or (Session("Depart_Code") = "18")) then
|
||||
sql = sql & " and (tpm.p_sv_1 = '" & session("User_Number") & "' or tpm.p_sv_2 = '" & session("User_Number") & "' or tpm.p_sv_3 = '" & session("User_Number") & "' or tpm.p_sv_4 = '" & session("User_Number") & "') " & vbCrLf
|
||||
end if
|
||||
sql = sql & " GROUP BY id, RE.m_no, RE.m_name, RE.p_sn, TPM.p_subject, RE.s_area, RE.s_type, T.num, T.s_ot, T.s_ot_yn, RE.total_cnt, RE.r_date, " & vbCrLf
|
||||
sql = sql & " T.add_count, T.add_count_memo, T.add_money, T.add_money_memo, T.confirm_yn, T.d_order_cnt " & vbCrLf
|
||||
sql = sql & " ) T " & vbCrLf
|
||||
sql = sql & " group by id, m_no, m_name, prj_code, p_sn, p_subject, s_area, s_type, num, s_ot, s_ot_yn, add_count, add_count_memo, add_money, add_money_memo, confirm_yn, d_order_cnt " & vbCrLf
|
||||
sql = sql & " order by m_name " & vbCrLf
|
||||
AdoRs.open sql, adoconn, adopenstatic, adlockreadonly
|
||||
%>
|
||||
<input type="hidden" name="cnt" value="<%=adors.recordcount %>"/>
|
||||
<%
|
||||
|
||||
dim total_tok_count
|
||||
total_tok_count = 0
|
||||
|
||||
for i=1 to adors.recordcount
|
||||
%>
|
||||
<tr height=30 >
|
||||
<td align="center" ><%=adors.AbsolutePosition %></td>
|
||||
<td align="center" >
|
||||
<input type="hidden" name="id" value="<%=adors("id") %>"/>
|
||||
<input type="hidden" name="m_no" value="<%=adors("m_no") %>"/>
|
||||
<input type="hidden" name="m_name" value="<%=adors("m_name") %>"/>
|
||||
<input type="hidden" name="p_sn" value="<%=adors("p_sn") %>"/><!-- <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20>ڵ<EFBFBD> -->
|
||||
<input type="hidden" name="prj_code" value="<%=adors("prj_code") %>"/> <!-- <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20>ڵ<EFBFBD> (<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>) -->
|
||||
<input type="hidden" name="s_area" value="<%=adors("s_area") %>"/>
|
||||
<input type="hidden" name="s_type" value="<%=adors("s_type") %>"/>
|
||||
<input type="hidden" name="tok" value="<%=adors("tok") %>"/>
|
||||
<input type="hidden" name="num" value="<%=adors("num") %>"/>
|
||||
<%=adors("m_name") %>
|
||||
</td>
|
||||
<td align="center" ><%=adors("s_area") %></td>
|
||||
<td align="center" ><%=adors("s_type") %></td>
|
||||
<td align="center" ><%=adors("tok") %></td>
|
||||
<td align="center" >
|
||||
<input type="text" id="add_count" name="add_count" value="<% if IsNull(adors("add_count")) then response.Write "0" else response.Write adors("add_count") end if %>" style="width:95%;text-align:right"
|
||||
<% if adors("d_order_cnt") = "<22><><EFBFBD><EFBFBD> <20>Ϸ<EFBFBD>" OR adors("d_order_cnt") = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" then %>
|
||||
readonly
|
||||
<% end if %>
|
||||
/>
|
||||
</td>
|
||||
|
||||
<td align="center" >
|
||||
<input type="text" id="add_count_memo" name="add_count_memo" value="<%=adors("add_count_memo") %>" style="width:95%;text-align:left"
|
||||
<% if adors("d_order_cnt") = "<22><><EFBFBD><EFBFBD> <20>Ϸ<EFBFBD>" OR adors("d_order_cnt") = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" then %>
|
||||
readonly
|
||||
<% end if %>
|
||||
/>
|
||||
</td>
|
||||
<td align="center" ><input type="text" name= "add_money" value = "<%if IsNull(adors("add_money")) then response.Write "0" else response.Write adors("add_money") end if %>" style="width:95%;text-align:right"
|
||||
<% if adors("d_order_cnt") = "<22><><EFBFBD><EFBFBD> <20>Ϸ<EFBFBD>" OR adors("d_order_cnt") = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" then %>
|
||||
readonly
|
||||
<% end if %>
|
||||
/></td>
|
||||
<td align="center" ><input type="text" name= "add_money_memo" value="<%=adors("add_money_memo") %>" style="width:95%;text-align:left"
|
||||
<% if adors("d_order_cnt") = "<22><><EFBFBD><EFBFBD> <20>Ϸ<EFBFBD>" OR adors("d_order_cnt") = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" then %>
|
||||
readonly
|
||||
<% end if %>
|
||||
/></td>
|
||||
<td align="center" >
|
||||
<input type="hidden" id="work_s_ot_<%=i%>" name="work_s_ot_<%=i%>" value="Y" />
|
||||
<input type="checkbox" id="chk_work_s_ot_<%=i%>" name="chk_s_ot_confirm_<%=i%>" class="s_ot" onclick="ot_check('<%=i%>')" <% if adors("s_ot") = "Y" then %> checked <%end if %> value="Y"
|
||||
<% if adors("d_order_cnt") = "<22><><EFBFBD><EFBFBD> <20>Ϸ<EFBFBD>" OR adors("d_order_cnt") = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" OR adors("s_ot_yn") = "Y" then %>
|
||||
disabled
|
||||
<% end if %>
|
||||
</td>
|
||||
<td align="center" >
|
||||
<% if adors("total_cnt") <> adors("no_tok") then %>
|
||||
<input type="text" id="d_order_cnt" name="d_order_cnt" value="<22><><EFBFBD><EFBFBD><EFBFBD>̿Ϸ<CCBF>" style="text-align:right;color:Red;" readonly/>
|
||||
<% else %>
|
||||
<input type="text" id="d_order_cnt" name="d_order_cnt" value="<%=adors("d_order_cnt") %>" style="text-align:right" readonly/>
|
||||
<% end if %>
|
||||
</td>
|
||||
<td align="center" >
|
||||
<input type="hidden" id="work_confirm_<%=i%>" name="work_confirm_<%=i%>" value="Y" />
|
||||
<input type="checkbox" id="chk_work_confirm_<%=i%>" name="chk_work_confirm_<%=i%>" class="confirm" <% if adors("confirm_yn") = "Y" then %> checked <%end if %> value="Y"
|
||||
<% if adors("d_order_cnt") = "<22><><EFBFBD><EFBFBD> <20>Ϸ<EFBFBD>" OR adors("d_order_cnt") = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" OR (adors("total_cnt") <> adors("no_tok")) then %>
|
||||
disabled
|
||||
<% end if %>
|
||||
/>
|
||||
</td>
|
||||
</tr>
|
||||
<%
|
||||
|
||||
total_tok_count = total_tok_count + cint(adors("tok"))
|
||||
adors.movenext
|
||||
next
|
||||
%>
|
||||
<tr>
|
||||
<td colspan="12" align="left"><3E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> TOK<4F>μ<EFBFBD><CEBC><EFBFBD> <20><><EFBFBD><EFBFBD> <font color="red"><b><%=total_tok_count %></b></font> <20>Դϴ<D4B4>.</td>
|
||||
</tr>
|
||||
<%
|
||||
if adors.recordcount = 0 then
|
||||
%>
|
||||
<tr height=30>
|
||||
<td align="center" colspan="12"><3E>˻<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD>.</td>
|
||||
</tr>
|
||||
<%
|
||||
end if
|
||||
AdoRs.close
|
||||
%>
|
||||
</table>
|
||||
***<2A><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Ǵ<EFBFBD> <20><><EFBFBD><EFBFBD> <20>Ϸ<EFBFBD><CFB7><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Ұ<EFBFBD><D2B0><EFBFBD><EFBFBD>մϴ<D5B4>. <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>.<br>
|
||||
<img src="/images/common/btn_save.jpg" align="absmiddle" onclick="save()" style="cursor:pointer;" id="img_save">
|
||||
<% end if %>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.content -->
|
||||
<!-- REQUIRED SCRIPTS -->
|
||||
<script>
|
||||
var d = new Date();
|
||||
var now = d.getFullYear() + '-' + format('00', (d.getMonth() + 1)) + '-' + format('00', d.getDate());
|
||||
|
||||
$(document).ready(function () {
|
||||
$("#checkAll_confirm").click(function () {
|
||||
var checked_status = this.checked;
|
||||
$(".confirm").not(":disabled").prop("checked", checked_status);
|
||||
});
|
||||
});
|
||||
|
||||
function format(f, s) {
|
||||
return (f + ('' + s)).substring(('' + s).length);
|
||||
}
|
||||
|
||||
function goView(command) {
|
||||
var url = "";
|
||||
var p_child_sn = document.myun_check.p_child_sn.value;
|
||||
|
||||
if (p_child_sn == "") {
|
||||
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD><EFBFBD>ϼ<EFBFBD><CFBC><EFBFBD>.");
|
||||
} else {
|
||||
url = "interviewer_check.asp?command=" + command + "&p_child_sn=" + p_child_sn;
|
||||
document.myun_check.action = url;
|
||||
document.myun_check.submit();
|
||||
}
|
||||
}
|
||||
|
||||
function ot_check(index) {
|
||||
var cnt = document.myun_check.cnt.value;
|
||||
if (cnt > 1) {
|
||||
var m_no = document.myun_check.m_no[index-1].value;
|
||||
var s_area = document.myun_check.s_area[index-1].value;
|
||||
var s_type = document.myun_check.s_type[index-1].value;
|
||||
for (var i = 0; i < cnt; i++) {
|
||||
if (i != (index-1) && m_no == document.myun_check.m_no[i].value && s_area == document.myun_check.s_area[i].value && s_type == document.myun_check.s_type[i].value) {
|
||||
if ($("input:checkbox[id='chk_work_s_ot_" + index + "']").is(":checked") == false) {
|
||||
$("input:checkbox[id='chk_work_s_ot_" + (i + 1) + "']").prop("disabled", "");
|
||||
}else{
|
||||
$("input:checkbox[id='chk_work_s_ot_" + (i + 1) + "']").prop("disabled", "disabled");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function save() {
|
||||
$("#img_save").css("display", "none");
|
||||
if (!confirm("<22><><EFBFBD><EFBFBD><EFBFBD>Ͻðڽ<C3B0><DABD>ϱ<EFBFBD>?")) {
|
||||
$("#img_save").css("display", "inline");
|
||||
return false;
|
||||
}
|
||||
var cnt = document.myun_check.cnt.value;
|
||||
var ot_yn = false;
|
||||
var area_name = "";
|
||||
if (cnt > 1) {
|
||||
for (var i = 0; i < cnt; i++) {
|
||||
if ($("input:checkbox[id='chk_work_confirm_" + (i + 1) + "']").is(":checked") == false) {
|
||||
$("#work_confirm_" + (i + 1)).val("N");
|
||||
} else {
|
||||
if ($("#pay_unit_" + document.myun_check.num[i].value + "_" + document.myun_check.s_type[i].value).val() == "0" || $("pay_unit_" + document.myun_check.num[i].value + "_" + document.myun_check.s_type[i].value).val() == "") {
|
||||
switch (document.myun_check.num[i].value) {
|
||||
case "1": area_name = "<22><><EFBFBD><EFBFBD>"; break;
|
||||
case "2": area_name = "<22><><EFBFBD><EFBFBD>"; break;
|
||||
case "3": area_name = "<22>뱸"; break;
|
||||
case "4": area_name = "<22><><EFBFBD><EFBFBD>"; break;
|
||||
case "5": area_name = "<22>λ<EFBFBD>"; break;
|
||||
case "6": area_name = "<22><><EFBFBD><EFBFBD>"; break;
|
||||
case "7": area_name = "<22><><EFBFBD><EFBFBD>"; break;
|
||||
}
|
||||
alert(area_name + " <20><><EFBFBD><EFBFBD> - " + document.myun_check.s_type[i].value + "Ÿ<><C5B8><EFBFBD><EFBFBD> <20>ܰ<EFBFBD><DCB0><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ʾҽ<CABE><D2BD>ϴ<EFBFBD>.");
|
||||
$("#img_save").css("display", "inline");
|
||||
return false;
|
||||
}
|
||||
if ($("#myun_" + document.myun_check.num[i].value + "_" + document.myun_check.s_type[i].value).val() == "") {
|
||||
switch (document.myun_check.num[i].value) {
|
||||
case "1": area_name = "<22><><EFBFBD><EFBFBD>"; break;
|
||||
case "2": area_name = "<22><><EFBFBD><EFBFBD>"; break;
|
||||
case "3": area_name = "<22>뱸"; break;
|
||||
case "4": area_name = "<22><><EFBFBD><EFBFBD>"; break;
|
||||
case "5": area_name = "<22>λ<EFBFBD>"; break;
|
||||
case "6": area_name = "<22><><EFBFBD><EFBFBD>"; break;
|
||||
case "7": area_name = "<22><><EFBFBD><EFBFBD>"; break;
|
||||
}
|
||||
alert(area_name + " <20><><EFBFBD><EFBFBD> - " + document.myun_check.s_type[i].value + "Ÿ<><C5B8><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ʾҽ<CABE><D2BD>ϴ<EFBFBD>.");
|
||||
$("#img_save").css("display", "inline");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if ($("input:checkbox[id='chk_work_s_ot_" + (i + 1) + "']").is(":checked") == false) {
|
||||
$("#work_s_ot_" + (i + 1)).val("N");
|
||||
} else {
|
||||
ot_yn = true;
|
||||
}
|
||||
if (document.myun_check.add_count[i].value != "" && document.myun_check.add_count[i].value != "0" && document.myun_check.add_count_memo[i].value == "") {
|
||||
alert(i + 1 + "<22><>° <20><><EFBFBD><EFBFBD> Ȯ<><C8AE><EFBFBD>ϼ<EFBFBD><CFBC><EFBFBD>.\n<>߰<EFBFBD>/<2F><><EFBFBD><EFBFBD><EFBFBD>μ<EFBFBD> <20>Է½<D4B7> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ݵ<EFBFBD><DDB5><EFBFBD> <20>Է<EFBFBD><D4B7>ؾ<EFBFBD> <20>մϴ<D5B4>.");
|
||||
$("#img_save").css("display", "inline");
|
||||
return false;
|
||||
}
|
||||
if (document.myun_check.add_money[i].value != "" && document.myun_check.add_money[i].value != "0" && document.myun_check.add_money_memo[i].value == "") {
|
||||
alert(i + 1 + "<22><>° <20><><EFBFBD><EFBFBD> Ȯ<><C8AE><EFBFBD>ϼ<EFBFBD><CFBC><EFBFBD>.\n<>߰<EFBFBD>/<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Է½<D4B7> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ݵ<EFBFBD><DDB5><EFBFBD> <20>Է<EFBFBD><D4B7>ؾ<EFBFBD> <20>մϴ<D5B4>.");
|
||||
$("#img_save").css("display", "inline");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if ($("input:checkbox[id='chk_work_confirm_1']").is(":checked") == false) {
|
||||
$("#work_confirm_1").val("N");
|
||||
} else {
|
||||
if ($("#pay_unit_" + document.myun_check.num.value + "_" + document.myun_check.s_type.value).val() == "0" || $("pay_unit_" + document.myun_check.num.value + "_" + document.myun_check.s_type.value).val() == "") {
|
||||
switch (document.myun_check.num.value) {
|
||||
case "1": area_name = "<22><><EFBFBD><EFBFBD>"; break;
|
||||
case "2": area_name = "<22><><EFBFBD><EFBFBD>"; break;
|
||||
case "3": area_name = "<22>뱸"; break;
|
||||
case "4": area_name = "<22><><EFBFBD><EFBFBD>"; break;
|
||||
case "5": area_name = "<22>λ<EFBFBD>"; break;
|
||||
case "6": area_name = "<22><><EFBFBD><EFBFBD>"; break;
|
||||
case "7": area_name = "<22><><EFBFBD><EFBFBD>"; break;
|
||||
}
|
||||
alert(area_name + " <20><><EFBFBD><EFBFBD> - " + document.myun_check.s_type.value + "Ÿ<><C5B8><EFBFBD><EFBFBD> <20>ܰ<EFBFBD><DCB0><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ʾҽ<CABE><D2BD>ϴ<EFBFBD>.");
|
||||
$("#img_save").css("display", "inline");
|
||||
return false;
|
||||
}
|
||||
if ($("#myun_" + document.myun_check.num.value + "_" + document.myun_check.s_type.value).val() == "") {
|
||||
switch (document.myun_check.num.value) {
|
||||
case "1": area_name = "<22><><EFBFBD><EFBFBD>"; break;
|
||||
case "2": area_name = "<22><><EFBFBD><EFBFBD>"; break;
|
||||
case "3": area_name = "<22>뱸"; break;
|
||||
case "4": area_name = "<22><><EFBFBD><EFBFBD>"; break;
|
||||
case "5": area_name = "<22>λ<EFBFBD>"; break;
|
||||
case "6": area_name = "<22><><EFBFBD><EFBFBD>"; break;
|
||||
case "7": area_name = "<22><><EFBFBD><EFBFBD>"; break;
|
||||
}
|
||||
alert(area_name + " <20><><EFBFBD><EFBFBD> - " + document.myun_check.s_type.value + "Ÿ<><C5B8><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ʾҽ<CABE><D2BD>ϴ<EFBFBD>.");
|
||||
$("#img_save").css("display", "inline");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if ($("input:checkbox[id='chk_work_s_ot_1']").is(":checked") == false) {
|
||||
$("#work_s_ot_1").val("N");
|
||||
} else {
|
||||
ot_yn = true;
|
||||
}
|
||||
if (document.myun_check.add_count.value != "" && document.myun_check.add_count.value != "0" && document.myun_check.add_count_memo.value == "") {
|
||||
alert("1<><31>° <20><><EFBFBD><EFBFBD> Ȯ<><C8AE><EFBFBD>ϼ<EFBFBD><CFBC><EFBFBD>.\n<>߰<EFBFBD>/<2F><><EFBFBD><EFBFBD><EFBFBD>μ<EFBFBD> <20>Է½<D4B7> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ݵ<EFBFBD><DDB5><EFBFBD> <20>Է<EFBFBD><D4B7>ؾ<EFBFBD> <20>մϴ<D5B4>.");
|
||||
$("#img_save").css("display", "inline");
|
||||
return false;
|
||||
}
|
||||
if (document.myun_check.add_money.value != "" && document.myun_check.add_money.value != "0" && document.myun_check.add_money_memo.value == "") {
|
||||
alert("1<><31>° <20><><EFBFBD><EFBFBD> Ȯ<><C8AE><EFBFBD>ϼ<EFBFBD><CFBC><EFBFBD>.\n<>߰<EFBFBD>/<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Է½<D4B7> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ݵ<EFBFBD><DDB5><EFBFBD> <20>Է<EFBFBD><D4B7>ؾ<EFBFBD> <20>մϴ<D5B4>.");
|
||||
$("#img_save").css("display", "inline");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if (ot_yn && (document.myun_check.ot_pay_unit.value == "" || document.myun_check.ot_pay_unit.value == "0")) {
|
||||
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Է<EFBFBD><D4B7>ϼ<EFBFBD><CFBC><EFBFBD>.");
|
||||
document.myun_check.ot_pay_unit.focus();
|
||||
$("#img_save").css("display", "inline");
|
||||
return false;
|
||||
}
|
||||
document.myun_check.action = "interviewer_check_save.asp";
|
||||
document.myun_check.submit();
|
||||
}
|
||||
|
||||
function winnewoepn() {
|
||||
var url = "/project_list/project_ff_list_2014.asp";
|
||||
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" -->
|
||||
105
inspection/interviewer_check_save.asp
Normal file
105
inspection/interviewer_check_save.asp
Normal file
@@ -0,0 +1,105 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<%
|
||||
set dbin = server.CreateObject("ADODB.CONNECTION")
|
||||
|
||||
dbin.Open adoConn
|
||||
|
||||
Dim add_count
|
||||
Dim add_money
|
||||
DIm s_pay_unit
|
||||
Dim s_ot_pay
|
||||
DIm est_money
|
||||
'response.Write "cnt : " & request("cnt") &"<BR>"
|
||||
p_child_sn = request("p_child_sn")
|
||||
|
||||
|
||||
for i=1 to request("cnt")
|
||||
d_order_cnt = request("d_order_cnt")(i)
|
||||
'response.Write "---------------------------------------------------------------------------"&"<BR>"
|
||||
'response.Write "i : "& i & "<BR>"
|
||||
'response.Write "d_order_cnt : " & request("d_order_cnt")(i) & "<BR>"
|
||||
'response.Write "add_count : " & request("add_count")(i) & "<BR>"
|
||||
'response.Write "add_count_memo : " & request("add_count_memo")(i) & "<BR>"
|
||||
'response.Write "chk_work_confirm : " & request("chk_work_confirm_"&i) & "<BR>"
|
||||
|
||||
if d_order_cnt = "<22><><EFBFBD><EFBFBD> <20>ݷ<EFBFBD>" OR d_order_cnt = "" OR isnull(d_order_cnt) then
|
||||
s_pay_unit = 0
|
||||
s_ot_pay = 0
|
||||
If Trim(request("add_count")(i)) = "" Then
|
||||
add_count = 0
|
||||
Else
|
||||
add_count = Cstr(request("add_count")(i))
|
||||
End if
|
||||
If Trim(request("add_money")(i)) = "" Then
|
||||
add_money = 0
|
||||
Else
|
||||
add_money = Cstr(request("add_money")(i))
|
||||
End if
|
||||
if request("pay_unit_" & request("num")(i) & "_" & request("s_type")(i)) = "" then
|
||||
s_pay_unit = 0
|
||||
else
|
||||
s_pay_unit = request("pay_unit_" & request("num")(i) & "_" & request("s_type")(i))
|
||||
end if
|
||||
|
||||
est_money = request("myun_" & request("num")(i) & "_" & request("s_type")(i))
|
||||
|
||||
if request("work_s_ot_"&i) = "Y" then
|
||||
if request("ot_pay_unit") = "" then
|
||||
s_ot_pay = 0
|
||||
else
|
||||
s_ot_pay = request("ot_pay_unit")
|
||||
end if
|
||||
end if
|
||||
|
||||
id = request("id")(i)
|
||||
confirm_flag = request("work_confirm_"&i)
|
||||
|
||||
|
||||
|
||||
if id <> "0" then
|
||||
query = " update T_MYUN_PAY "
|
||||
query = query & " set confirm_yn = '" & request("work_confirm_"&i) & "' "
|
||||
query = query & " , s_sum = '" & (cdbl(request("tok")(i)) * cdbl(s_pay_unit)) + (cdbl(add_count) * cdbl(s_pay_unit)) + cdbl(add_money) + cdbl(s_ot_pay) & "' "
|
||||
query = query & " , add_count = '" & add_count & "' "
|
||||
query = query & " , add_count_memo = '" & request("add_count_memo")(i) & "' "
|
||||
query = query & " , add_money = '" & add_money & "' "
|
||||
query = query & " , add_money_memo = '" & request("add_money_memo")(i) & "' "
|
||||
query = query & " , s_ot = '" & request("work_s_ot_"&i) & "' "
|
||||
query = query & " , s_pay_unit = '" & s_pay_unit & "' "
|
||||
query = query & " , est_money = '" & est_money & "' "
|
||||
query = query & " where id = '"& id &"' "
|
||||
else
|
||||
query = " insert into T_MYUN_PAY( "
|
||||
query = query & " pay_type, p_sn, prj_code, s_area, s_type, m_name, m_jumin, work_dt, s_ot, s_gubun, s_pay_unit, s_wan, "
|
||||
query = query & " s_sum, pay_month, confirm_yn, est_money, add_count, add_count_memo, add_money, add_money_memo, insert_dt, insert_user "
|
||||
query = query & " ) values ( "
|
||||
query = query & " '2', '" & request("p_sn")(i) & "', '" & request("prj_code")(i) & "', '" & request("s_area")(i) & "', '" & request("s_type")(i) & "', '" & request("m_name")(i) & "', "
|
||||
query = query & " (select top 1 m_jumin from man where new_id = '" & request("m_no")(i) & "'), convert(varchar(10), getdate(), 120), "
|
||||
query = query & " '" & request("work_s_ot_"&i) & "' , 'FF', "
|
||||
query = query & " '" & s_pay_unit & "', "
|
||||
query = query & " '" & request("tok")(i) & "', "
|
||||
query = query & " '" & (cdbl(request("tok")(i)) * cdbl(s_pay_unit)) + (cdbl(add_count) * cdbl(s_pay_unit)) + cdbl(add_money) + cdbl(s_ot_pay) & "', '', '" & request("work_confirm_"&i) & "', '" & est_money & "', '" & add_count & "' , "
|
||||
query = query & " '" & request("add_count_memo")(i) & "', '" & add_money & "', '" & request("add_money_memo")(i) & "', getdate(), '" & Session("User_Number") & "') "
|
||||
end if
|
||||
'response.Write query
|
||||
dbin.Execute query
|
||||
END if
|
||||
Next
|
||||
|
||||
dbin.Close
|
||||
%>
|
||||
<html>
|
||||
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
|
||||
<script>
|
||||
function goit() {
|
||||
alert('<27><><EFBFBD><EFBFBD><EFBFBD>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>');
|
||||
document.pms.action = 'interviewer_check.asp?command=view&p_child_sn=<%=p_child_sn %>';
|
||||
document.pms.submit();
|
||||
}
|
||||
</script>
|
||||
<body onLoad="goit()">
|
||||
<form name="pms" method="post">
|
||||
<input type="hidden" name="p_subject" value="<%=request("p_subject") %>" />
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
126
inspection/interviewer_grade_info.asp
Normal file
126
inspection/interviewer_grade_info.asp
Normal file
@@ -0,0 +1,126 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<%
|
||||
SET rsa = server.CreateObject("ADODB.RECORDSET")
|
||||
SET rsp = server.CreateObject("ADODB.RECORDSET")
|
||||
|
||||
|
||||
dim xid : xid=request.item("xid") '-- <20><><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>̵<EFBFBD>
|
||||
dim xname : xname=request.item("xname") '-- <20><><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20≯<EFBFBD>
|
||||
dim xjumin : xjumin=request.item("xjumin") '-- <20>ֹι<D6B9>ȣ (<28><> 6<>ڸ<EFBFBD>)
|
||||
|
||||
|
||||
%>
|
||||
<meta http-equiv="Content-Type" content="application/vnd.ms-excel;charset=euc-kr">
|
||||
<meta http-equiv="Expires" content="Mon, 06 Jan 1990 00:00:01 GMT">
|
||||
<meta http-equiv="Expires" content="-1">
|
||||
<meta http-equiv="Pragma" content="no-cache">
|
||||
<meta http-equiv="Cache-Control" content="no-cache">
|
||||
<title><%=GNB_TITLE%></title>
|
||||
<link rel="stylesheet" type="text/css" href="../css/basic.css">
|
||||
<script src="/js/jquery.min.js"></script>
|
||||
<script src="/js/jquery-ajax-call.js"></script>
|
||||
<script src="/js/jquery.form.min.js"></script>
|
||||
<script language="javascript" src="/js/common.js"></script>
|
||||
<script type="text/javascript" src="valueck.js"></script>
|
||||
<script language=javascript>
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body onclick="javascript:try{if(winObj.window.focus()){}}catch(exception){}" ondblclick="javascript:try{if(winObj.window.focus()){}}catch(exception){}" >
|
||||
<form name='xform' method='post' >
|
||||
<!------------------><!------------------><!------------------>
|
||||
<table border="0" style="width:700px;" align=center >
|
||||
<tr>
|
||||
<td align=center valign=top style="height:250px;" >
|
||||
|
||||
<table width="818" cellpadding="0" cellspacing="3" border="0">
|
||||
<tr>
|
||||
<td align="left" ><font color=blue><3E><> <20><><EFBFBD>ϵ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ǥ<><C7A5> <20>մϴ<D5B4></font></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width="818" cellpadding="0" cellspacing="3" border="0">
|
||||
<tr>
|
||||
<td align="left" ><b><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ID[<font color=blue><%=xid%></font>] <20≯<EFBFBD>[<font color=blue><%=xname%></font>] <20>ֹι<D6B9>ȣ [<font color=blue><%=xjumin%>-*******</font>]</b></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width="818" cellpadding="0" cellspacing="3" border="0">
|
||||
<tr>
|
||||
<td align="center" width="153"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td align="center" width="125"><3E><><EFBFBD><EFBFBD></td>
|
||||
<td align="center" width="130"><3E>ݾ<EFBFBD></td>
|
||||
<td align="center" width="118"><3E><><EFBFBD><EFBFBD><DEBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td align="center" width="110"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td align="center" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
</tr>
|
||||
<%
|
||||
|
||||
sql= " select "
|
||||
sql=sql&" A1.attribute01, A1.m_grade_dt ,A2.name, A2.cost, A1.insert_dt, A3.p_name "
|
||||
sql=sql&" from "
|
||||
sql=sql&" ( "
|
||||
sql=sql&" select AA.* from "
|
||||
sql=sql&" ( "
|
||||
sql=sql&" select "
|
||||
sql=sql&" (ROW_NUMBER() OVER(PARTITION BY attribute01 ORDER BY m_grade_dt desc, id desc)) as RK, "
|
||||
sql=sql&" id, m_id, m_grade, attribute01, m_grade_dt, insert_dt , insert_user "
|
||||
sql=sql&" from [dbo].[T_MYUN_GRADE_HISTORY] "
|
||||
sql=sql&" where m_id in ( "
|
||||
sql=sql&" select id from man "
|
||||
sql=sql&" where m_name='"&xname&"' "
|
||||
sql=sql&" and new_id='"&xid&"' "
|
||||
sql=sql&" ) "
|
||||
sql=sql&" and attribute01 is not null AND m_grade <> '' "
|
||||
sql=sql&" ) AA "
|
||||
sql=sql&" where AA.RK='1' "
|
||||
sql=sql&" ) A1 "
|
||||
sql=sql&" left join "
|
||||
sql=sql&" ( "
|
||||
sql=sql&" select * from category a "
|
||||
sql=sql&" join "
|
||||
sql=sql&" (select * from t_neakeun_pay_COST where type='cost' and use_end_dt = '') b "
|
||||
sql=sql&" on a.code = b.grade "
|
||||
sql=sql&" where <20><><EFBFBD><EFBFBD>='grade' "
|
||||
sql=sql&" ) A2 "
|
||||
sql=sql&" on A1.m_grade=A2.code "
|
||||
sql=sql&" left join "
|
||||
sql=sql&" ( "
|
||||
sql=sql&" select p_no, p_name from person "
|
||||
sql=sql&" ) A3 "
|
||||
sql=sql&" on A1.insert_user=A3.p_no "
|
||||
rsp.Open sql, adoConn, 1
|
||||
if rsp.eof then
|
||||
response.write "<tr><td align=""center"" class=""tit3"" colspan=""6"" > <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD></td></tr>"
|
||||
end if
|
||||
while not rsp.Eof
|
||||
%>
|
||||
<tr>
|
||||
<td align="center" ><%=rsp("attribute01")%></td>
|
||||
<td align="center" ><%=rsp("name")%></td>
|
||||
<td align="center" ><%=formatnumber(rsp("cost"),0)%></td>
|
||||
<td align="center" ><%=rsp("m_grade_dt")%></td>
|
||||
<td align="center" ><%=rsp("p_name")%></td>
|
||||
<td align="center" ><%=left(rsp("insert_dt"),18)%></td>
|
||||
</tr>
|
||||
<%
|
||||
rsp.movenext
|
||||
Wend
|
||||
rsp.Close
|
||||
%>
|
||||
</table>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align=center valign=top > </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align=right valign=top><3E><></td>
|
||||
</tr>
|
||||
</table>
|
||||
<!------------------><!------------------><!------------------>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
650
inspection/interviewer_regist.asp
Normal file
650
inspection/interviewer_regist.asp
Normal file
@@ -0,0 +1,650 @@
|
||||
<!-- #include virtual = "include/header.asp" -->
|
||||
<!-- #include virtual = "include/left.asp" -->
|
||||
<!-- Content Wrapper. Contains page content -->
|
||||
<div class="content-wrapper">
|
||||
<!-- Content Header (Page header) -->
|
||||
<div class="content-header">
|
||||
<h1><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>/<2F><><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">
|
||||
<%
|
||||
Response.Expires = 0
|
||||
|
||||
dim Jumin_Num(2)
|
||||
dim txt_title
|
||||
|
||||
Jumin_Num(1) = mid(Request.QueryString("Jumin"),1,6)
|
||||
Jumin_Num(2) = mid(Request.QueryString("Jumin"),7,7)
|
||||
txt_title = Request.QueryString("txt_title")
|
||||
|
||||
dim myun_name
|
||||
|
||||
myun_name = request("myun_name")
|
||||
|
||||
Dim txtHtml
|
||||
Dim sql
|
||||
Dim i
|
||||
Dim tmpAge
|
||||
|
||||
dim ConDate
|
||||
dim isSaved
|
||||
|
||||
isSaved = Request.QueryString("isSaved")
|
||||
|
||||
if isSaved = "true" then
|
||||
alert ("<22><><EFBFBD><EFBFBD> <20>Ϸ<EFBFBD>")
|
||||
end if
|
||||
|
||||
ConDate=year(date) & "-" & zeroFormat(month(date),2) & "-" & zeroFormat(day(date),2)
|
||||
%>
|
||||
<% Dim f_menu : f_menu = "my" %>
|
||||
<!-- #include file = "f_menu.asp" -->
|
||||
<form name="frm_man" method="post" >
|
||||
<input type=hidden name="m_id" >
|
||||
<input type=hidden name="chk_jumin" value='no' >
|
||||
<input type=hidden name='txt_bank_code' >
|
||||
<input type=hidden name='txt_gubun_code' >
|
||||
<input type=hidden name='txt_m_grade_code' >
|
||||
<input type=hidden name='txt_grade_1_code' >
|
||||
<input type=hidden name='txt_grade_2_code' >
|
||||
<input type=hidden name='txt_grade_3_code' >
|
||||
<input type=hidden name='txt_grade_4_code' >
|
||||
<input type=hidden name='txt_grade_5_code' >
|
||||
<input type=hidden name='txt_grade_6_code' >
|
||||
<input type=hidden name='txt_grade_7_code' >
|
||||
<input type=hidden name='txt_kpc_grade_code' >
|
||||
<input type=hidden name='txt_activity_code' >
|
||||
<input type=hidden name='txt_web_posi' value = '<%=web_posi%>'>
|
||||
<table width="1200px" class="table table-sm table-sm2 table-bordered table-head tr-colors">
|
||||
<tr>
|
||||
<td colspan="3">
|
||||
<09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ű<EFBFBD> <20><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Դϴ<D4B4>.
|
||||
<br>* <20>ֹι<D6B9>ȣ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ø<EFBFBD>, <20>Է<EFBFBD><D4B7><EFBFBD> <20><><EFBFBD><EFBFBD> <20>ʽ<EFBFBD><CABD>ϴ<EFBFBD>.
|
||||
<br><i class="fas fa-asterisk" style="font-size:8px;color:#ff5555;"></i> <20><EFBFBD><D7B8><EFBFBD> <20>ʼ<EFBFBD> <20>Է<EFBFBD> <20><EFBFBD><D7B8>Դϴ<D4B4>.
|
||||
</td>
|
||||
<td align="right" class="align-middle pr-2">
|
||||
<button type="button" class="btn btn-warning" onclick="work_day();" style="display:none;" id="work_day_btn">2017<31><37> <20><><EFBFBD><EFBFBD> <20>ٹ<EFBFBD><D9B9><EFBFBD><EFBFBD><EFBFBD> <20><>ȸ</button>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="15%" align="center"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ID</td>
|
||||
<td width="35%" >
|
||||
<input type="text" style="width:150" id="new_id" name='new_id' maxlength=20 onkeyup='if(event.keyCode==13){search_Name(this.form,"id");}' value='<%=new_id%>'>
|
||||
<img src="/images/common/btn_smallsrch2.gif" align="absmiddle" style="cursor:pointer;" onclick="search_Name(this.form,'id');">
|
||||
</td>
|
||||
<td width="15%" align="center" ><i class="fas fa-asterisk" style="font-size:8px;color:#ff5555;"></i> <20>ֿ<EFBFBD><D6BF><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="35%" >
|
||||
<input type="text" style="width:150;CURSOR: pointer" id=Text3 name='txt_gubun' onclick="showHideLayersAll(work);" readonly>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="15%" align="center" ><i class="fas fa-asterisk" style="font-size:8px;color:#ff5555;"></i> <20≯<EFBFBD></td>
|
||||
<td width="35%" >
|
||||
<input type="text" style="width:150" id='important' name='txtName' maxlength=20 onkeyup='if(event.keyCode==13){search_Name(this.form,"name");}' value='<%=myun_name%>'>
|
||||
<img src="/images/common/btn_smallsrch2.gif" align="absmiddle" style="cursor:pointer;" onclick="search_Name(this.form,'name');">
|
||||
</td>
|
||||
<td width="15%" align="center" >
|
||||
<i class="fas fa-asterisk" style="font-size:8px;color:#ff5555;"></i>
|
||||
<09>ֹι<D6B9>ȣ
|
||||
</td>
|
||||
<td width="35%" >
|
||||
<input type="text" id=important name='txtJumin1' OnKeyPress='onlyNum_chk_jumin();' style="width:100" size='6' maxlength=6 value='<%=Jumin_Num(1)%>' > -
|
||||
<input type="text" id=important name='txtJumin2' OnKeyPress='onlyNum_chk_jumin();' style="width:100" size='7' maxlength=7 value='<%=Jumin_Num(2)%>' onkeyup='if(event.keyCode==13){Check_Jumin_Name();}'>
|
||||
<button type="button" class='btn btn-sm btn-app m-0' onclick="Check_Jumin_Name();"><3E><><EFBFBD><EFBFBD></button>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="15%" align="center" ><3E><><EFBFBD><EFBFBD></td>
|
||||
<td colspan="3">
|
||||
<input type="text" style="width:100%" name=txt_note>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="15%" align="center" ><i class="fas fa-asterisk" style="font-size:8px;color:#ff5555;"></i> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD></td>
|
||||
<td width="35%" >
|
||||
<input type="text" style="width:150;CURSOR: pointer" id="m_grade" name='txt_m_grade' onclick="showHideLayersAll(mgrade);" readonly>
|
||||
</td>
|
||||
<td width="15%" align="center" > KPC <20><><EFBFBD><EFBFBD></td>
|
||||
<td width="35%" >
|
||||
<input type="text" style="width:150;CURSOR: pointer" id="txt_kpc_grade" name='txt_kpc_grade' onclick="showHideLayersAll(kgrade);" readonly>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="15%" align="center" ><i class="fas fa-asterisk" style="font-size:8px;color:#ff5555;"></i> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD></td>
|
||||
<td width="35%" colspan="3" style="margin:0 0 0 0;">
|
||||
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
||||
<%
|
||||
sql = " SELECT d_cost_code, d_cost_name FROM direct_costcode "
|
||||
sql = sql & " WHERE d_cost_useyn = 'Y' AND d_cost_kind in ('field','dp') AND d_cost_parents = '2' AND d_cost_code NOT IN (8, 9) "
|
||||
adoRs.open sql, adoconn, adopenstatic, adlockreadonly
|
||||
%>
|
||||
<tr>
|
||||
<% For i = 1 To adoRs.recordCount %>
|
||||
<td align="center" ><%= adors("d_cost_name") %></td>
|
||||
<%
|
||||
adoRs.MoveNext
|
||||
Next
|
||||
adoRs.MoveFirst
|
||||
%>
|
||||
</tr>
|
||||
<tr>
|
||||
<% For i = 1 To adoRs.recordCount %>
|
||||
<td align="center" >
|
||||
<input type="text" style="width:30;CURSOR: pointer;text-align:center;" id="grade_<%=adors("d_cost_code") %>" name='txt_grade_<%=adors("d_cost_code") %>' onclick="showHideLayersAll(grade<%=adors("d_cost_code") %>);" readonly><br />
|
||||
</td>
|
||||
<%
|
||||
adoRs.MoveNext
|
||||
Next
|
||||
adoRs.MoveFirst
|
||||
%>
|
||||
</tr>
|
||||
<tr>
|
||||
<% For i = 1 To adoRs.recordCount %>
|
||||
<td align="center" >
|
||||
<09><><EFBFBD><EFBFBD><DEBA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><input type="checkbox" value="1" name="grade_yn_<%=adors("d_cost_code") %>" id="grade_yn_<%=adors("d_cost_code") %>" style="vertical-align:middle;"/>
|
||||
<input type="text" style="width:60;text-align:center;CURSOR: pointer;" value="<%=ConDate %>" class='selectDate' name='grade_date_<%=adors("d_cost_code") %>' readonly />
|
||||
</td>
|
||||
<%
|
||||
adoRs.MoveNext
|
||||
Next
|
||||
%>
|
||||
</tr>
|
||||
<%
|
||||
adoRs.Close
|
||||
%>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="15%" align="center" ><i class="fas fa-asterisk" style="font-size:8px;color:#ff5555;"></i> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="35%" >
|
||||
<input type="text" style="width:150;text-align:center" id='important' name='txt_date' value='<%=ConDate%>' readonly>
|
||||
</td>
|
||||
<td width="15%" align="center" ><i class="fas fa-asterisk" style="font-size:8px;color:#ff5555;"></i> Ȱ<><C8B0> <20><><EFBFBD><EFBFBD></td>
|
||||
<td width="35%" >
|
||||
<input type="text" style="width:150;CURSOR: pointer" id='important' name='txt_activity' onclick="showHideLayersAll(activity);" readonly>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="15%" align="center" ><3E><>ȭ<EFBFBD><C8AD>ȣ</td>
|
||||
<td width="35%" >
|
||||
<input type="text" style="width:60;ime-mode:inactive" name='txtTel1' size=3 maxlength=3 OnKeyPress='onlyNum();' > -
|
||||
<input type="text" style="width:60;ime-mode:inactive" name='txtTel2' size=4 maxlength=4 OnKeyPress='onlyNum();' > -
|
||||
<input type="text" style="width:60;ime-mode:inactive" name='txtTel3' size=4 maxlength=4 OnKeyPress='onlyNum();' >
|
||||
</td>
|
||||
<td width="15%" align="center" ><3E><EFBFBD><DEB4><EFBFBD>ȭ<EFBFBD><C8AD>ȣ</td>
|
||||
<td width="35%" >
|
||||
<input type="text" style="width:60;ime-mode:inactive" name='txtMobile1' size=3 maxlength=3 OnKeyPress='onlyNum();' > -
|
||||
<input type="text" style="width:60;ime-mode:inactive" name='txtMobile2' size=4 maxlength=4 OnKeyPress='onlyNum();' > -
|
||||
<input type="text" style="width:60;ime-mode:inactive" name='txtMobile3' size=4 maxlength=4 OnKeyPress='onlyNum();' >
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="15%" align="center" ><3E>ּ<EFBFBD></td>
|
||||
<td colspan="3">
|
||||
<input type="text" style="width:100%" name='txtaddress' >
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="15%" align="center" ><i class="fas fa-asterisk" style="font-size:8px;color:#ff5555;"></i> <20><><EFBFBD><EFBFBD></td>
|
||||
<td width="35%" >
|
||||
<input type="text" style="width:150;CURSOR: pointer" id='important' name='txt_bank' onclick="showHideLayersAll(bank);" readonly>
|
||||
</td>
|
||||
<td width="15%" align="center" ><i class="fas fa-asterisk" style="font-size:8px;color:#ff5555;"></i> <20><><EFBFBD>¹<EFBFBD>ȣ(<28><><EFBFBD>ڸ<EFBFBD> <20>Է<EFBFBD>)</td>
|
||||
<td width="35%" >
|
||||
<input type="text" style="width:150;ime-mode:inactive" id='important' name='txt_bank_no' OnKeyPress='onlyNum();' >
|
||||
</td>
|
||||
</tr>
|
||||
<%if session("Depart_Code") = "12" or tmp_admin_chk = "1" then %>
|
||||
<tr>
|
||||
<td colspan="4" style="padding:10 0 0 0" align="center">
|
||||
<button type="button" class="btn btn-primary" onclick='go_Save();'><3E><><EFBFBD><EFBFBD><EFBFBD>ϱ<EFBFBD></button>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="4" style="padding:10 0 0 0" align="left">
|
||||
<font color=blue><3E><> [<5B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>] <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> - <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> [<5B><><EFBFBD><EFBFBD><DEBA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>] üũ <20><>, <20><>¥<EFBFBD><C2A5> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ּž<D6BC> <20>ش<EFBFBD><D8B4><EFBFBD><EFBFBD>ڷ<EFBFBD> <20><><EFBFBD><EFBFBD> <20>˴ϴ<CBB4><br>
|
||||
<09><> [<5B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ٹ<EFBFBD> Ȯ<><C8AE>] <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> - <20><><EFBFBD>߽<EFBFBD> <20><><EFBFBD>ϵǾ<CFB5> <20>ִ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>Ǹ<EFBFBD>, <20><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ͻ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ʽ<EFBFBD><CABD>ϴ<EFBFBD>. <20>ʿ信 <20><><EFBFBD><EFBFBD> <20>ݷ<EFBFBD><DDB7><EFBFBD> <20><> <20><><EFBFBD><EFBFBD> <20>Ͻñ<CFBD> <20>ٶ<EFBFBD><D9B6>ϴ<EFBFBD>
|
||||
</font>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="4" style="padding:10 0 0 0" align="left" >
|
||||
<input type="button" value=" <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><DEBA><EFBFBD> >>>>> " name="btn01" class="button black medium" onclick='javascript:js_greade_view(frm_man);' >
|
||||
</td>
|
||||
</tr>
|
||||
<%
|
||||
end if
|
||||
%>
|
||||
</table>
|
||||
<%
|
||||
sql = "select * from bank where chk = 0 order by b_fullname"
|
||||
adoRs.open sql, adoconn, adopenstatic, adlockreadonly
|
||||
%>
|
||||
<div id="bank" style="Z-INDEX:1; top:312px; left:495px; position:absolute; visibility: hidden;">
|
||||
<table border=0 cellspacing=0 cellpadding=5>
|
||||
<tr>
|
||||
<td bgcolor=#0099ff>
|
||||
<table border=1 bordercolor="#D5D3EF" bordercolorlight="#D5D3EF" cellspacing=0 cellpadding=3 bgcolor=white>
|
||||
<tr>
|
||||
<td bgcolor=white colspan=2 align=center>
|
||||
<font color=#000000>
|
||||
<b>== <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> ==</b><br>
|
||||
</td>
|
||||
</tr>
|
||||
<% i=0 %>
|
||||
<% do until adoRs.eof %>
|
||||
<% if i=1 then
|
||||
i=0
|
||||
%>
|
||||
<td align=center onmouseover="this.style.background='#FFE3EE'" onmouseout="this.style.background='white'">
|
||||
<a href="javascript:select_bank('<%=adoRs("b_name")%>','<%=adoRs("b_code")%>')"><%=adoRs("b_fullname")%></a>
|
||||
</td>
|
||||
</tr>
|
||||
<% else %>
|
||||
<tr>
|
||||
<td align=center onmouseover="this.style.background='#FFE3EE'" onmouseout="this.style.background='white'">
|
||||
<a href="javascript:select_bank('<%=adoRs("b_name")%>','<%=adoRs("b_code")%>')"><%=adoRs("b_fullname")%></a>
|
||||
</td>
|
||||
<% i=i+1 %>
|
||||
<% end if %>
|
||||
<% adoRs.movenext %>
|
||||
<% loop
|
||||
adoRs.close
|
||||
%>
|
||||
</font>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<%
|
||||
sql = "select * from category a join (select * from t_neakeun_pay_COST where type='cost' and use_end_dt = '') b on a.code = b.grade where <20><><EFBFBD><EFBFBD>='grade' order by code"
|
||||
adoRs.open sql, adoconn, adopenstatic, adlockreadonly
|
||||
%>
|
||||
<div id="mgrade" style="Z-INDEX:1; top:339px; left:495px; position:absolute; visibility: hidden;">
|
||||
<table border=0 cellspacing=0 cellpadding=5>
|
||||
<tr>
|
||||
<td bgcolor=#0099ff>
|
||||
<table border=0 cellspacing=0 cellpadding=5 bgcolor=white>
|
||||
<tr>
|
||||
<td bgcolor=white>
|
||||
<font color=#000000>
|
||||
<b>== <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> ==</b><br>
|
||||
<hr height=1></hr>
|
||||
<% do until adoRs.eof %>
|
||||
<a href="javascript:select_grade('<%=adoRs("name")%>','<%=adoRs("code")%>','m')"><%=adoRs("name")%> - <%=adoRs("cost")%></a><br>
|
||||
<% adoRs.movenext %>
|
||||
<% loop %>
|
||||
</font>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<% for i = 1 TO 7 %>
|
||||
<%
|
||||
left_val = 320
|
||||
%>
|
||||
<div id="grade<%=i %>" style="Z-INDEX:1; top:370px; left:<%= left_val + (i * 120)%>px; position:absolute; visibility: hidden;">
|
||||
<table border=0 cellspacing=0 cellpadding=5>
|
||||
<tr>
|
||||
<td bgcolor=#0099ff>
|
||||
<table border=0 cellspacing=0 cellpadding=5 bgcolor=white>
|
||||
<tr>
|
||||
<td bgcolor=white>
|
||||
<font color=#000000>
|
||||
<b>== <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> ==</b><br>
|
||||
<hr height=1></hr>
|
||||
<% adoRs.movefirst %>
|
||||
<% do until adoRs.eof %>
|
||||
<a href="javascript:select_grade('<%=adoRs("name")%>','<%=adoRs("code")%>','<%=i %>')"><%=adoRs("name")%> - <%=adoRs("cost")%></a><br>
|
||||
<% adoRs.movenext %>
|
||||
<% loop %>
|
||||
</font>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<% Next %>
|
||||
<div id="kgrade" style="Z-INDEX:1; top:339px; left:920px; position:absolute; visibility: hidden;">
|
||||
<table border=0 cellspacing=0 cellpadding=5>
|
||||
<tr>
|
||||
<td bgcolor=#0099ff>
|
||||
<table border=0 cellspacing=0 cellpadding=5 bgcolor=white>
|
||||
<tr>
|
||||
<td bgcolor=white>
|
||||
<font color=#000000>
|
||||
<b>== <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> ==</b><br>
|
||||
<hr height=1></hr>
|
||||
<% adoRs.movefirst %>
|
||||
<% do until adoRs.eof %>
|
||||
<a href="javascript:select_grade('<%=adoRs("name")%>','<%=adoRs("code")%>','kpc')"><%=adoRs("name")%> - <%=adoRs("cost")%></a><br>
|
||||
<% adoRs.movenext %>
|
||||
<% loop
|
||||
adoRs.close
|
||||
%>
|
||||
</font>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div id="activity" style="Z-INDEX:1; top:390px; left:920px; position:absolute; visibility: hidden;">
|
||||
<table border=0 cellspacing=0 cellpadding=5>
|
||||
<tr>
|
||||
<td bgcolor=#0099ff>
|
||||
<table border=1 bordercolor="#D5D3EF" bordercolorlight="#D5D3EF" cellspacing=0 cellpadding=3 bgcolor=white>
|
||||
<tr>
|
||||
<td bgcolor=white align=center>
|
||||
<font color=#000000>
|
||||
<b>== Ȱ<><C8B0> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> ==</b><br>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align=center onmouseover="this.style.background='#FFE3EE'" onmouseout="this.style.background='white'">
|
||||
<a href="javascript:select_activity('Ȱ<><C8B0>','1')">Ȱ<><C8B0></a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align=center onmouseover="this.style.background='#FFE3EE'" onmouseout="this.style.background='white'">
|
||||
<a href="javascript:select_activity('<27><>Ȱ<EFBFBD><C8B0>','2')"><3E><>Ȱ<EFBFBD><C8B0></a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align=center onmouseover="this.style.background='#FFE3EE'" onmouseout="this.style.background='white'">
|
||||
<a href="javascript:select_activity('<27><><EFBFBD><EFBFBD>','3')"><3E><><EFBFBD><EFBFBD></a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align=center onmouseover="this.style.background='#FFE3EE'" onmouseout="this.style.background='white'">
|
||||
<a href="javascript:select_activity('<27>ҷ<EFBFBD>','4')"><3E>ҷ<EFBFBD></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<%
|
||||
sql = "select * from category where <20><><EFBFBD><EFBFBD> = 'work' and code <> '99' order by sort_key"
|
||||
adoRs.open sql, adoconn, adopenstatic, adlockreadonly
|
||||
%>
|
||||
<div id="work" style="Z-INDEX:1; top:240px; left:920px; position:absolute; visibility: hidden;">
|
||||
<table border=0 cellspacing=0 cellpadding=5>
|
||||
<tr>
|
||||
<td bgcolor=#0099ff>
|
||||
<table border=0 cellspacing=0 cellpadding=5 bgcolor=white>
|
||||
<tr>
|
||||
<td bgcolor=white>
|
||||
<font color=#000000>
|
||||
== <20>ֿ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> ==<br>
|
||||
<hr height=1></hr>
|
||||
<% do until adoRs.eof %>
|
||||
<a href="javascript:select_work('<%=adoRs("name")%>','<%=adoRs("code")%>')"><%=adoRs("name")%></a><br>
|
||||
<% adoRs.movenext %>
|
||||
<% loop
|
||||
adoRs.close
|
||||
%>
|
||||
</font>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.content -->
|
||||
<!-- REQUIRED SCRIPTS -->
|
||||
<script>
|
||||
var old_menu = "";
|
||||
$(function(){
|
||||
$(".selectDate").datepicker();
|
||||
});
|
||||
function go_Save(){
|
||||
var x = document.frm_man;
|
||||
if (x.chk_jumin.value=="no"){
|
||||
alert ("<22>ֹι<D6B9>ȣ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ž<EFBFBD> <20>մϴ<D5B4>.");
|
||||
return false;
|
||||
}
|
||||
for (var i=0;i<x.elements.length;i++){
|
||||
if (x.elements[i].type=="text"){
|
||||
if (x.elements[i].id=="important"){
|
||||
if (x.elements[i].value==""){
|
||||
alert(x.elements[i].name + "<22><> <20>ʼ<EFBFBD> <20>Է<EFBFBD><D4B7><EFBFBD><D7B8><EFBFBD> <20><><EFBFBD><EFBFBD> <20>ֽ<EFBFBD><D6BD>ϴ<EFBFBD>.");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (x.txt_bank_code.value==""){
|
||||
alert ("<22><><EFBFBD><EFBFBD><EFBFBD>ڵ尡 <20><><EFBFBD><EFBFBD><EFBFBD>ֽ<EFBFBD><D6BD>ϴ<EFBFBD>.");
|
||||
return false;
|
||||
}
|
||||
if (x.txt_gubun_code.value==""){
|
||||
alert ("<22>ֿ<EFBFBD><D6BF><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ֽ<EFBFBD><D6BD>ϴ<EFBFBD>.");
|
||||
return false;
|
||||
}
|
||||
if (x.txt_gubun_code.value == "99" && x.txt_activity.value == "Ȱ<><C8B0>"){
|
||||
alert("<22>ֿ<EFBFBD><D6BF><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϼ<EFBFBD><CFBC><EFBFBD>.");
|
||||
return false;
|
||||
}
|
||||
if (confirm){
|
||||
x.action = "interviewer_regist_ok.asp";
|
||||
x.submit();
|
||||
}
|
||||
}
|
||||
|
||||
function showHideLayersAll(submenu){
|
||||
if(old_menu != submenu){
|
||||
if(old_menu !=""){
|
||||
old_menu.style.visibility = "hidden";
|
||||
}
|
||||
submenu.style.visibility = "visible";
|
||||
old_menu = submenu;
|
||||
}else{
|
||||
submenu.style.visibility = "hidden";
|
||||
old_menu = "";
|
||||
}
|
||||
}
|
||||
function select_grade(xname, xcode, kind){
|
||||
if (kind == "m") {
|
||||
document.frm_man.txt_m_grade.value = xname;
|
||||
document.frm_man.txt_m_grade_code.value = xcode;
|
||||
showHideLayersAll(mgrade);
|
||||
} else if (kind == "kpc") {
|
||||
document.frm_man.txt_kpc_grade.value = xname;
|
||||
document.frm_man.txt_kpc_grade_code.value = xcode;
|
||||
showHideLayersAll(kgrade);
|
||||
} else {
|
||||
var tmp_grade = 0;
|
||||
var tmp_xcode = 0;
|
||||
var tgc = eval("document.frm_man.txt_grade_" + kind + "_code").value;
|
||||
if (tgc == "10") {tmp_grade = 1; }
|
||||
else if (tgc == "01") {tmp_grade = 2; }
|
||||
else if (tgc == "09") {tmp_grade = 3; }
|
||||
else if (tgc == "02") {tmp_grade = 4; }
|
||||
else if (tgc == "08") {tmp_grade = 5; }
|
||||
else if (tgc == "03") {tmp_grade = 6; }
|
||||
else if (tgc == "04") {tmp_grade = 7; }
|
||||
else if (tgc == "05") {tmp_grade = 8; }
|
||||
else if (tgc == "06") {tmp_grade = 9; }
|
||||
else if (tgc == "07") {tmp_grade = 10; }
|
||||
|
||||
if (xcode == "10") {tmp_xcode = 1; }
|
||||
else if (xcode == "01") {tmp_xcode = 2; }
|
||||
else if (xcode == "09") {tmp_xcode = 3; }
|
||||
else if (xcode == "02") {tmp_xcode = 4; }
|
||||
else if (xcode == "08") {tmp_xcode = 5; }
|
||||
else if (xcode == "03") {tmp_xcode = 6; }
|
||||
else if (xcode == "04") {tmp_xcode = 7; }
|
||||
else if (xcode == "05") {tmp_xcode = 8; }
|
||||
else if (xcode == "06") {tmp_xcode = 9; }
|
||||
else if (xcode == "07") {tmp_xcode = 10; }
|
||||
|
||||
eval("document.frm_man.grade_" + kind).value = xname;
|
||||
eval("document.frm_man.txt_grade_" + kind + "_code").value = xcode;
|
||||
showHideLayersAll(eval("grade" + kind));
|
||||
}
|
||||
}
|
||||
|
||||
function select_work(xname, xcode){
|
||||
document.frm_man.txt_gubun.value = xname;
|
||||
document.frm_man.txt_gubun_code.value = xcode;
|
||||
showHideLayersAll(work);
|
||||
}
|
||||
function select_bank(xname, xcode){
|
||||
document.frm_man.txt_bank.value = xname;
|
||||
document.frm_man.txt_bank_code.value = xcode;
|
||||
showHideLayersAll(bank);
|
||||
}
|
||||
function select_activity(xname, xcode){
|
||||
if (!(('<%= session("Depart_Code")%>' == '12' && '<%= session("teamplace")%>' == '5') || '<%= session("Depart_Code")%>' == '18')) {
|
||||
if (document.frm_man.txt_activity.value == "<22>ҷ<EFBFBD>" || document.frm_man.txt_activity.value == "<22><><EFBFBD><EFBFBD>") {
|
||||
alert("<22><><EFBFBD><EFBFBD> <20>Ǵ<EFBFBD> <20>ҷ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Ȱ<><C8B0> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n<><6E><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ο<EFBFBD><CEBF><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>մϴ<D5B4>. (DIN <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> or <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>/HR)");
|
||||
showHideLayersAll(activity);
|
||||
return;
|
||||
}
|
||||
}
|
||||
document.frm_man.txt_activity.value = xname;
|
||||
document.frm_man.txt_activity_code.value = xcode;
|
||||
showHideLayersAll(activity);
|
||||
}/*##### <20>ֹε<D6B9><CEB5><EFBFBD> <20><><EFBFBD><EFBFBD> return value callback <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 2018-03-09 #####*/
|
||||
|
||||
function Check_Jumin_Name(){
|
||||
var x = document.frm_man;
|
||||
var koreaName = new RegExp(/^[<5B><>-<2D>R]+$/);
|
||||
|
||||
if (x.txtJumin1.value=="" || x.txtJumin2.value==""){
|
||||
alert ("<22>ֹι<D6B9>ȣ / <20>ܱ<EFBFBD><DCB1>ι<EFBFBD>ȣ<EFBFBD><C8A3> <20>Է<EFBFBD><D4B7><EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>");
|
||||
return false;
|
||||
}
|
||||
var ssn1 = x.txtJumin1.value,
|
||||
ssn2 = x.txtJumin2.value,
|
||||
ssn = ssn1+''+ssn2,
|
||||
arr_ssn = [],
|
||||
compare = [2,3,4,5,6,7,8,9,2,3,4,5],
|
||||
sum = 0;
|
||||
|
||||
// <20>ڸ<EFBFBD><DAB8><EFBFBD> üũ
|
||||
if (ssn.length != 13){
|
||||
alert("<22>ùٸ<C3B9> <20>ֹε<D6B9><CEB5><EFBFBD> <20><>ȣ / <20>ܱ<EFBFBD><DCB1>ε<EFBFBD><CEB5><EFBFBD> <20><>ȣ<EFBFBD><C8A3> <20>Է<EFBFBD><D4B7>Ͽ<EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>.");return false;
|
||||
}
|
||||
//<2F>ܱ<EFBFBD><DCB1><EFBFBD> <20><><EFBFBD><EFBFBD>ó<EFBFBD><C3B3>
|
||||
if(koreaName.test(x.txtName.value) == false && confirm("<22>ܱ<EFBFBD><DCB1><EFBFBD><EFBFBD><EFBFBD> <20>½<EFBFBD><C2BD>ϱ<EFBFBD>? (<28≯<EFBFBD> : "+x.txtName.value+")")){
|
||||
x.chk_jumin.value="yes";
|
||||
alert("Ȯ<><C8AE> <20>ƽ<EFBFBD><C6BD>ϴ<EFBFBD>.");
|
||||
return true;
|
||||
}
|
||||
|
||||
// <20><><EFBFBD><EFBFBD>: M = (11 - ((2<><32>A + 3<><33>B + 4<><34>C + 5<><35>D + 6<><36>E + 7<><37>F + 8<><38>G + 9<><39>H + 2<><32>I + 3<><33>J + 4<><34>K + 5<><35>L) % 11)) % 10
|
||||
for (var i = 0; i<13; i++) {
|
||||
arr_ssn[i] = ssn.substring(i,i+1);
|
||||
}
|
||||
|
||||
for (var i = 0; i<12; i++){
|
||||
sum = sum + (arr_ssn[i] * compare[i]);
|
||||
}
|
||||
|
||||
sum = (11 - (sum % 11)) % 10;
|
||||
|
||||
if (sum != arr_ssn[12]){
|
||||
alert("<22>ùٸ<C3B9> <20>ֹε<D6B9><CEB5><EFBFBD> <20><>ȣ<EFBFBD><C8A3> <20>Է<EFBFBD><D4B7>Ͽ<EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>.");
|
||||
x.chk_jumin.value="no";
|
||||
return false;
|
||||
}else{
|
||||
alert("<22><><EFBFBD><EFBFBD><EFBFBD>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>.");
|
||||
x.chk_jumin.value="yes";
|
||||
}
|
||||
}
|
||||
|
||||
function search_Name(x, txt){
|
||||
x = document.frm_man;
|
||||
var url = "/project_list/myun_search.asp?cutmenu=1&part=myun_input";
|
||||
if (txt == "name") {
|
||||
var m_name = x.txtName.value;
|
||||
if (m_name == "") {
|
||||
alert("ã<><C3A3><EFBFBD><EFBFBD> <20>ϴ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20≯<EFBFBD><CCB8><EFBFBD> <20>Է<EFBFBD><D4B7><EFBFBD> <20><> ã<><C3A3> <20><>ư<EFBFBD><C6B0> <20>̿<EFBFBD><CCBF>Ͽ<EFBFBD> <20>ش<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϼ<EFBFBD><CFBC><EFBFBD>.");
|
||||
x.txtName.focus();
|
||||
return false;
|
||||
}
|
||||
url = url + "&m_name=" + m_name;
|
||||
} else if (txt == "id") {
|
||||
var new_id = x.new_id.value;
|
||||
if (new_id == "") {
|
||||
alert("ã<><C3A3><EFBFBD><EFBFBD> <20>ϴ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ID<49><44> <20>Է<EFBFBD><D4B7><EFBFBD> <20><> ã<><C3A3> <20><>ư<EFBFBD><C6B0> <20>̿<EFBFBD><CCBF>Ͽ<EFBFBD> <20>ش<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϼ<EFBFBD><CFBC><EFBFBD>.");
|
||||
x.new_id.focus();
|
||||
return false;
|
||||
}
|
||||
url = url + "&new_id=" + new_id;
|
||||
}
|
||||
window.open (url,"", "left=0, top=5, width=500, height=500, scrollbars=yes, statbar=no" );
|
||||
}
|
||||
|
||||
function onlyNum(){
|
||||
if ((event.keyCode < 48) || (event.keyCode > 57)){
|
||||
event.returnValue = false;
|
||||
}
|
||||
}
|
||||
function onlyNum_chk_jumin(){
|
||||
document.frm_man.chk_jumin.value="no";
|
||||
if ((event.keyCode < 48) || (event.keyCode > 57)){
|
||||
event.returnValue = false;
|
||||
}
|
||||
}
|
||||
function init(){
|
||||
var tmpstr = document.frm_man.txtJumin1.value;
|
||||
if (tmpstr == ""){
|
||||
document.frm_man.txtJumin1.focus();
|
||||
}else{
|
||||
document.frm_man.txtName.focus();
|
||||
}
|
||||
}
|
||||
function work_day(){
|
||||
var new_id = document.getElementById("new_id").value;
|
||||
if(new_id == ""){
|
||||
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>õ<EFBFBD><C3B5><EFBFBD> <20>ʾҽ<CABE><D2BD>ϴ<EFBFBD>.");
|
||||
return;
|
||||
}
|
||||
window.open("./interviewer_work_day.asp?new_id=" + new_id, "<22>ٹ<EFBFBD><D9B9><EFBFBD><EFBFBD><EFBFBD> <20><>ȸ", "left=0, top=5, width=500, height=500, scrollbars=yes, statbar=no" );
|
||||
|
||||
}
|
||||
function js_greade_view(x){
|
||||
var xid=x.new_id.value; // <20><><EFBFBD>̵<EFBFBD>
|
||||
var xname=x.txtName.value; // <20≯<EFBFBD>
|
||||
var xjumin=x.txtJumin1.value; // <20>ֹι<D6B9>ȣ(<28><>6<EFBFBD>ڸ<EFBFBD>)
|
||||
|
||||
if((xid=="")||(xname=="")||(xjumin=="")){
|
||||
alert("[<5B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ID],[<5B≯<EFBFBD>],[<5B>ֹι<D6B9>ȣ] <20><> <20><><EFBFBD><EFBFBD> <20>־<EFBFBD><D6BE><EFBFBD> <20><><EFBFBD><EFBFBD>Ȯ<EFBFBD><C8AE><EFBFBD><EFBFBD> <20>ϽǼ<CFBD> <20>ֽ<EFBFBD><D6BD>ϴ<EFBFBD> ");
|
||||
return;
|
||||
}
|
||||
var url = "interviewer_grade_info.asp?xid="+xid+"&xname="+xname+"&xjumin="+xjumin;
|
||||
var pwidth=1000;
|
||||
var pheight=500;
|
||||
var tleft=(screen.width-pwidth)/2;
|
||||
var ttop=(screen.height-pheight)/2;
|
||||
winObj=window.open(url, "wins", "left="+tleft+", top="+ttop+", menubar=no, location=no, status=no, toolbar=no, width="+pwidth+", height="+pheight+", scrollbars=yes ,resizable=no");
|
||||
}
|
||||
</script>
|
||||
</div>
|
||||
<!-- /.content-wrapper -->
|
||||
<!-- #include virtual = "include/footer.asp" -->
|
||||
650
inspection/interviewer_regist.asp_bak
Normal file
650
inspection/interviewer_regist.asp_bak
Normal file
@@ -0,0 +1,650 @@
|
||||
<!-- #include virtual = "include/header.asp" -->
|
||||
<!-- #include virtual = "include/left.asp" -->
|
||||
<!-- Content Wrapper. Contains page content -->
|
||||
<div class="content-wrapper">
|
||||
<!-- Content Header (Page header) -->
|
||||
<div class="content-header">
|
||||
<h1><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>/<2F><><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">
|
||||
<%
|
||||
Response.Expires = 0
|
||||
|
||||
dim Jumin_Num(2)
|
||||
dim txt_title
|
||||
|
||||
Jumin_Num(1) = mid(Request.QueryString("Jumin"),1,6)
|
||||
Jumin_Num(2) = mid(Request.QueryString("Jumin"),7,7)
|
||||
txt_title = Request.QueryString("txt_title")
|
||||
|
||||
dim myun_name
|
||||
|
||||
myun_name = request("myun_name")
|
||||
|
||||
Dim txtHtml
|
||||
Dim sql
|
||||
Dim i
|
||||
Dim tmpAge
|
||||
|
||||
dim ConDate
|
||||
dim isSaved
|
||||
|
||||
isSaved = Request.QueryString("isSaved")
|
||||
|
||||
if isSaved = "true" then
|
||||
alert ("<22><><EFBFBD><EFBFBD> <20>Ϸ<EFBFBD>")
|
||||
end if
|
||||
|
||||
ConDate=year(date) & "-" & zeroFormat(month(date),2) & "-" & zeroFormat(day(date),2)
|
||||
%>
|
||||
<% Dim f_menu : f_menu = "my" %>
|
||||
<!-- #include file = "f_menu.asp" -->
|
||||
<form name="frm_man" method="post" >
|
||||
<input type=hidden name="m_id" >
|
||||
<input type=hidden name="chk_jumin" value='no' >
|
||||
<input type=hidden name='txt_bank_code' >
|
||||
<input type=hidden name='txt_gubun_code' >
|
||||
<input type=hidden name='txt_m_grade_code' >
|
||||
<input type=hidden name='txt_grade_1_code' >
|
||||
<input type=hidden name='txt_grade_2_code' >
|
||||
<input type=hidden name='txt_grade_3_code' >
|
||||
<input type=hidden name='txt_grade_4_code' >
|
||||
<input type=hidden name='txt_grade_5_code' >
|
||||
<input type=hidden name='txt_grade_6_code' >
|
||||
<input type=hidden name='txt_grade_7_code' >
|
||||
<input type=hidden name='txt_kpc_grade_code' >
|
||||
<input type=hidden name='txt_activity_code' >
|
||||
<input type=hidden name='txt_web_posi' value = '<%=web_posi%>'>
|
||||
<table width="1200px" class="table table-sm table-sm2 table-bordered table-head tr-colors">
|
||||
<tr>
|
||||
<td colspan="3">
|
||||
<09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ű<EFBFBD> <20><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Դϴ<D4B4>.
|
||||
<br>* <20>ֹι<D6B9>ȣ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ø<EFBFBD>, <20>Է<EFBFBD><D4B7><EFBFBD> <20><><EFBFBD><EFBFBD> <20>ʽ<EFBFBD><CABD>ϴ<EFBFBD>.
|
||||
<br><i class="fas fa-asterisk" style="font-size:8px;color:#ff5555;"></i> <20><EFBFBD><D7B8><EFBFBD> <20>ʼ<EFBFBD> <20>Է<EFBFBD> <20><EFBFBD><D7B8>Դϴ<D4B4>.
|
||||
</td>
|
||||
<td align="right" class="align-middle pr-2">
|
||||
<button type="button" class="btn btn-warning" onclick="work_day();" style="display:none;" id="work_day_btn">2017<31><37> <20><><EFBFBD><EFBFBD> <20>ٹ<EFBFBD><D9B9><EFBFBD><EFBFBD><EFBFBD> <20><>ȸ</button>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="15%" align="center"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ID</td>
|
||||
<td width="35%" >
|
||||
<input type="text" style="width:150" id="new_id" name='new_id' maxlength=20 onkeyup='if(event.keyCode==13){search_Name(this.form,"id");}' value='<%=new_id%>'>
|
||||
<img src="/images/common/btn_smallsrch2.gif" align="absmiddle" style="cursor:pointer;" onclick="search_Name(this.form,'id');">
|
||||
</td>
|
||||
<td width="15%" align="center" ><i class="fas fa-asterisk" style="font-size:8px;color:#ff5555;"></i> <20>ֿ<EFBFBD><D6BF><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="35%" >
|
||||
<input type="text" style="width:150;CURSOR: pointer" id=Text3 name='txt_gubun' onclick="showHideLayersAll(work);" readonly>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="15%" align="center" ><i class="fas fa-asterisk" style="font-size:8px;color:#ff5555;"></i> <20≯<EFBFBD></td>
|
||||
<td width="35%" >
|
||||
<input type="text" style="width:150" id='important' name='txtName' maxlength=20 onkeyup='if(event.keyCode==13){search_Name(this.form,"name");}' value='<%=myun_name%>'>
|
||||
<img src="/images/common/btn_smallsrch2.gif" align="absmiddle" style="cursor:pointer;" onclick="search_Name(this.form,'name');">
|
||||
</td>
|
||||
<td width="15%" align="center" >
|
||||
<i class="fas fa-asterisk" style="font-size:8px;color:#ff5555;"></i>
|
||||
<09>ֹι<D6B9>ȣ
|
||||
</td>
|
||||
<td width="35%" >
|
||||
<input type="text" id=important name='txtJumin1' OnKeyPress='onlyNum_chk_jumin();' style="width:100" size='6' maxlength=6 value='<%=Jumin_Num(1)%>' > -
|
||||
<input type="text" id=important name='txtJumin2' OnKeyPress='onlyNum_chk_jumin();' style="width:100" size='7' maxlength=7 value='<%=Jumin_Num(2)%>' onkeyup='if(event.keyCode==13){Check_Jumin_Name();}'>
|
||||
<button type="button" class='btn btn-sm btn-app m-0' onclick="Check_Jumin_Name();"><3E><><EFBFBD><EFBFBD></button>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="15%" align="center" ><3E><><EFBFBD><EFBFBD></td>
|
||||
<td colspan="3">
|
||||
<input type="text" style="width:100%" name=txt_note>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="15%" align="center" ><i class="fas fa-asterisk" style="font-size:8px;color:#ff5555;"></i> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD></td>
|
||||
<td width="35%" >
|
||||
<input type="text" style="width:150;CURSOR: pointer" id="m_grade" name='txt_m_grade' onclick="showHideLayersAll(mgrade);" readonly>
|
||||
</td>
|
||||
<td width="15%" align="center" > KPC <20><><EFBFBD><EFBFBD></td>
|
||||
<td width="35%" >
|
||||
<input type="text" style="width:150;CURSOR: pointer" id="txt_kpc_grade" name='txt_kpc_grade' onclick="showHideLayersAll(kgrade);" readonly>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="15%" align="center" ><i class="fas fa-asterisk" style="font-size:8px;color:#ff5555;"></i> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD></td>
|
||||
<td width="35%" colspan="3" style="margin:0 0 0 0;">
|
||||
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
||||
<%
|
||||
sql = " SELECT d_cost_code, d_cost_name FROM direct_costcode "
|
||||
sql = sql & " WHERE d_cost_useyn = 'Y' AND d_cost_kind in ('field','dp') AND d_cost_parents = '2' AND d_cost_code NOT IN (8, 9) "
|
||||
adoRs.open sql, adoconn, adopenstatic, adlockreadonly
|
||||
%>
|
||||
<tr>
|
||||
<% For i = 1 To adoRs.recordCount %>
|
||||
<td align="center" ><%= adors("d_cost_name") %></td>
|
||||
<%
|
||||
adoRs.MoveNext
|
||||
Next
|
||||
adoRs.MoveFirst
|
||||
%>
|
||||
</tr>
|
||||
<tr>
|
||||
<% For i = 1 To adoRs.recordCount %>
|
||||
<td align="center" >
|
||||
<input type="text" style="width:30;CURSOR: pointer;text-align:center;" id="grade_<%=adors("d_cost_code") %>" name='txt_grade_<%=adors("d_cost_code") %>' onclick="showHideLayersAll(grade<%=adors("d_cost_code") %>);" readonly><br />
|
||||
</td>
|
||||
<%
|
||||
adoRs.MoveNext
|
||||
Next
|
||||
adoRs.MoveFirst
|
||||
%>
|
||||
</tr>
|
||||
<tr>
|
||||
<% For i = 1 To adoRs.recordCount %>
|
||||
<td align="center" >
|
||||
<09><><EFBFBD><EFBFBD><DEBA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><input type="checkbox" value="1" name="grade_yn_<%=adors("d_cost_code") %>" id="grade_yn_<%=adors("d_cost_code") %>" style="vertical-align:middle;"/>
|
||||
<input type="text" style="width:60;text-align:center;CURSOR: pointer;" value="<%=ConDate %>" class='selectDate' name='grade_date_<%=adors("d_cost_code") %>' readonly />
|
||||
</td>
|
||||
<%
|
||||
adoRs.MoveNext
|
||||
Next
|
||||
%>
|
||||
</tr>
|
||||
<%
|
||||
adoRs.Close
|
||||
%>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="15%" align="center" ><i class="fas fa-asterisk" style="font-size:8px;color:#ff5555;"></i> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="35%" >
|
||||
<input type="text" style="width:150;text-align:center" id='important' name='txt_date' value='<%=ConDate%>' readonly>
|
||||
</td>
|
||||
<td width="15%" align="center" ><i class="fas fa-asterisk" style="font-size:8px;color:#ff5555;"></i> Ȱ<><C8B0> <20><><EFBFBD><EFBFBD></td>
|
||||
<td width="35%" >
|
||||
<input type="text" style="width:150;CURSOR: pointer" id='important' name='txt_activity' onclick="showHideLayersAll(activity);" readonly>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="15%" align="center" ><3E><>ȭ<EFBFBD><C8AD>ȣ</td>
|
||||
<td width="35%" >
|
||||
<input type="text" style="width:60;ime-mode:inactive" name='txtTel1' size=3 maxlength=3 OnKeyPress='onlyNum();' > -
|
||||
<input type="text" style="width:60;ime-mode:inactive" name='txtTel2' size=4 maxlength=4 OnKeyPress='onlyNum();' > -
|
||||
<input type="text" style="width:60;ime-mode:inactive" name='txtTel3' size=4 maxlength=4 OnKeyPress='onlyNum();' >
|
||||
</td>
|
||||
<td width="15%" align="center" ><3E><EFBFBD><DEB4><EFBFBD>ȭ<EFBFBD><C8AD>ȣ</td>
|
||||
<td width="35%" >
|
||||
<input type="text" style="width:60;ime-mode:inactive" name='txtMobile1' size=3 maxlength=3 OnKeyPress='onlyNum();' > -
|
||||
<input type="text" style="width:60;ime-mode:inactive" name='txtMobile2' size=4 maxlength=4 OnKeyPress='onlyNum();' > -
|
||||
<input type="text" style="width:60;ime-mode:inactive" name='txtMobile3' size=4 maxlength=4 OnKeyPress='onlyNum();' >
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="15%" align="center" ><3E>ּ<EFBFBD></td>
|
||||
<td colspan="3">
|
||||
<input type="text" style="width:100%" name='txtaddress' >
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="15%" align="center" ><i class="fas fa-asterisk" style="font-size:8px;color:#ff5555;"></i> <20><><EFBFBD><EFBFBD></td>
|
||||
<td width="35%" >
|
||||
<input type="text" style="width:150;CURSOR: pointer" id='important' name='txt_bank' onclick="showHideLayersAll(bank);" readonly>
|
||||
</td>
|
||||
<td width="15%" align="center" ><i class="fas fa-asterisk" style="font-size:8px;color:#ff5555;"></i> <20><><EFBFBD>¹<EFBFBD>ȣ(<28><><EFBFBD>ڸ<EFBFBD> <20>Է<EFBFBD>)</td>
|
||||
<td width="35%" >
|
||||
<input type="text" style="width:150;ime-mode:inactive" id='important' name='txt_bank_no' OnKeyPress='onlyNum();' >
|
||||
</td>
|
||||
</tr>
|
||||
<%if session("Depart_Code") = "12" or tmp_admin_chk = "1" then %>
|
||||
<tr>
|
||||
<td colspan="4" style="padding:10 0 0 0" align="center">
|
||||
<button type="button" class="btn btn-primary" onclick='go_Save();'><3E><><EFBFBD><EFBFBD><EFBFBD>ϱ<EFBFBD></button>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="4" style="padding:10 0 0 0" align="left">
|
||||
<font color=blue><3E><> [<5B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>] <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> - <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> [<5B><><EFBFBD><EFBFBD><DEBA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>] üũ <20><>, <20><>¥<EFBFBD><C2A5> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ּž<D6BC> <20>ش<EFBFBD><D8B4><EFBFBD><EFBFBD>ڷ<EFBFBD> <20><><EFBFBD><EFBFBD> <20>˴ϴ<CBB4><br>
|
||||
<09><> [<5B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ٹ<EFBFBD> Ȯ<><C8AE>] <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> - <20><><EFBFBD>߽<EFBFBD> <20><><EFBFBD>ϵǾ<CFB5> <20>ִ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>Ǹ<EFBFBD>, <20><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ͻ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ʽ<EFBFBD><CABD>ϴ<EFBFBD>. <20>ʿ信 <20><><EFBFBD><EFBFBD> <20>ݷ<EFBFBD><DDB7><EFBFBD> <20><> <20><><EFBFBD><EFBFBD> <20>Ͻñ<CFBD> <20>ٶ<EFBFBD><D9B6>ϴ<EFBFBD>
|
||||
</font>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="4" style="padding:10 0 0 0" align="left" >
|
||||
<input type="button" value=" <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><DEBA><EFBFBD> >>>>> " name="btn01" class="button black medium" onclick='javascript:js_greade_view(frm_man);' >
|
||||
</td>
|
||||
</tr>
|
||||
<%
|
||||
end if
|
||||
%>
|
||||
</table>
|
||||
<%
|
||||
sql = "select * from bank where chk = 0 order by b_fullname"
|
||||
adoRs.open sql, adoconn, adopenstatic, adlockreadonly
|
||||
%>
|
||||
<div id="bank" style="Z-INDEX:1; top:312px; left:495px; position:absolute; visibility: hidden;">
|
||||
<table border=0 cellspacing=0 cellpadding=5>
|
||||
<tr>
|
||||
<td bgcolor=#0099ff>
|
||||
<table border=1 bordercolor="#D5D3EF" bordercolorlight="#D5D3EF" cellspacing=0 cellpadding=3 bgcolor=white>
|
||||
<tr>
|
||||
<td bgcolor=white colspan=2 align=center>
|
||||
<font color=#000000>
|
||||
<b>== <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> ==</b><br>
|
||||
</td>
|
||||
</tr>
|
||||
<% i=0 %>
|
||||
<% do until adoRs.eof %>
|
||||
<% if i=1 then
|
||||
i=0
|
||||
%>
|
||||
<td align=center onmouseover="this.style.background='#FFE3EE'" onmouseout="this.style.background='white'">
|
||||
<a href="javascript:select_bank('<%=adoRs("b_name")%>','<%=adoRs("b_code")%>')"><%=adoRs("b_fullname")%></a>
|
||||
</td>
|
||||
</tr>
|
||||
<% else %>
|
||||
<tr>
|
||||
<td align=center onmouseover="this.style.background='#FFE3EE'" onmouseout="this.style.background='white'">
|
||||
<a href="javascript:select_bank('<%=adoRs("b_name")%>','<%=adoRs("b_code")%>')"><%=adoRs("b_fullname")%></a>
|
||||
</td>
|
||||
<% i=i+1 %>
|
||||
<% end if %>
|
||||
<% adoRs.movenext %>
|
||||
<% loop
|
||||
adoRs.close
|
||||
%>
|
||||
</font>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<%
|
||||
sql = "select * from category a join (select * from t_neakeun_pay_COST where type='cost' and use_end_dt = '') b on a.code = b.grade where <20><><EFBFBD><EFBFBD>='grade' order by code"
|
||||
adoRs.open sql, adoconn, adopenstatic, adlockreadonly
|
||||
%>
|
||||
<div id="mgrade" style="Z-INDEX:1; top:339px; left:495px; position:absolute; visibility: hidden;">
|
||||
<table border=0 cellspacing=0 cellpadding=5>
|
||||
<tr>
|
||||
<td bgcolor=#0099ff>
|
||||
<table border=0 cellspacing=0 cellpadding=5 bgcolor=white>
|
||||
<tr>
|
||||
<td bgcolor=white>
|
||||
<font color=#000000>
|
||||
<b>== <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> ==</b><br>
|
||||
<hr height=1></hr>
|
||||
<% do until adoRs.eof %>
|
||||
<a href="javascript:select_grade('<%=adoRs("name")%>','<%=adoRs("code")%>','m')"><%=adoRs("name")%> - <%=adoRs("cost")%></a><br>
|
||||
<% adoRs.movenext %>
|
||||
<% loop %>
|
||||
</font>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<% for i = 1 TO 7 %>
|
||||
<%
|
||||
left_val = 320
|
||||
%>
|
||||
<div id="grade<%=i %>" style="Z-INDEX:1; top:370px; left:<%= left_val + (i * 120)%>px; position:absolute; visibility: hidden;">
|
||||
<table border=0 cellspacing=0 cellpadding=5>
|
||||
<tr>
|
||||
<td bgcolor=#0099ff>
|
||||
<table border=0 cellspacing=0 cellpadding=5 bgcolor=white>
|
||||
<tr>
|
||||
<td bgcolor=white>
|
||||
<font color=#000000>
|
||||
<b>== <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> ==</b><br>
|
||||
<hr height=1></hr>
|
||||
<% adoRs.movefirst %>
|
||||
<% do until adoRs.eof %>
|
||||
<a href="javascript:select_grade('<%=adoRs("name")%>','<%=adoRs("code")%>','<%=i %>')"><%=adoRs("name")%> - <%=adoRs("cost")%></a><br>
|
||||
<% adoRs.movenext %>
|
||||
<% loop %>
|
||||
</font>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<% Next %>
|
||||
<div id="kgrade" style="Z-INDEX:1; top:339px; left:920px; position:absolute; visibility: hidden;">
|
||||
<table border=0 cellspacing=0 cellpadding=5>
|
||||
<tr>
|
||||
<td bgcolor=#0099ff>
|
||||
<table border=0 cellspacing=0 cellpadding=5 bgcolor=white>
|
||||
<tr>
|
||||
<td bgcolor=white>
|
||||
<font color=#000000>
|
||||
<b>== <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> ==</b><br>
|
||||
<hr height=1></hr>
|
||||
<% adoRs.movefirst %>
|
||||
<% do until adoRs.eof %>
|
||||
<a href="javascript:select_grade('<%=adoRs("name")%>','<%=adoRs("code")%>','kpc')"><%=adoRs("name")%> - <%=adoRs("cost")%></a><br>
|
||||
<% adoRs.movenext %>
|
||||
<% loop
|
||||
adoRs.close
|
||||
%>
|
||||
</font>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div id="activity" style="Z-INDEX:1; top:390px; left:920px; position:absolute; visibility: hidden;">
|
||||
<table border=0 cellspacing=0 cellpadding=5>
|
||||
<tr>
|
||||
<td bgcolor=#0099ff>
|
||||
<table border=1 bordercolor="#D5D3EF" bordercolorlight="#D5D3EF" cellspacing=0 cellpadding=3 bgcolor=white>
|
||||
<tr>
|
||||
<td bgcolor=white align=center>
|
||||
<font color=#000000>
|
||||
<b>== Ȱ<><C8B0> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> ==</b><br>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align=center onmouseover="this.style.background='#FFE3EE'" onmouseout="this.style.background='white'">
|
||||
<a href="javascript:select_activity('Ȱ<><C8B0>','1')">Ȱ<><C8B0></a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align=center onmouseover="this.style.background='#FFE3EE'" onmouseout="this.style.background='white'">
|
||||
<a href="javascript:select_activity('<27><>Ȱ<EFBFBD><C8B0>','2')"><3E><>Ȱ<EFBFBD><C8B0></a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align=center onmouseover="this.style.background='#FFE3EE'" onmouseout="this.style.background='white'">
|
||||
<a href="javascript:select_activity('<27><><EFBFBD><EFBFBD>','3')"><3E><><EFBFBD><EFBFBD></a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align=center onmouseover="this.style.background='#FFE3EE'" onmouseout="this.style.background='white'">
|
||||
<a href="javascript:select_activity('<27>ҷ<EFBFBD>','4')"><3E>ҷ<EFBFBD></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<%
|
||||
sql = "select * from category where <20><><EFBFBD><EFBFBD> = 'work' and code <> '99' order by sort_key"
|
||||
adoRs.open sql, adoconn, adopenstatic, adlockreadonly
|
||||
%>
|
||||
<div id="work" style="Z-INDEX:1; top:240px; left:920px; position:absolute; visibility: hidden;">
|
||||
<table border=0 cellspacing=0 cellpadding=5>
|
||||
<tr>
|
||||
<td bgcolor=#0099ff>
|
||||
<table border=0 cellspacing=0 cellpadding=5 bgcolor=white>
|
||||
<tr>
|
||||
<td bgcolor=white>
|
||||
<font color=#000000>
|
||||
== <20>ֿ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> ==<br>
|
||||
<hr height=1></hr>
|
||||
<% do until adoRs.eof %>
|
||||
<a href="javascript:select_work('<%=adoRs("name")%>','<%=adoRs("code")%>')"><%=adoRs("name")%></a><br>
|
||||
<% adoRs.movenext %>
|
||||
<% loop
|
||||
adoRs.close
|
||||
%>
|
||||
</font>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.content -->
|
||||
<!-- REQUIRED SCRIPTS -->
|
||||
<script>
|
||||
var old_menu = "";
|
||||
$(function(){
|
||||
$(".selectDate").datepicker();
|
||||
});
|
||||
function go_Save(){
|
||||
var x = document.frm_man;
|
||||
if (x.chk_jumin.value=="no"){
|
||||
alert ("<22>ֹι<D6B9>ȣ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ž<EFBFBD> <20>մϴ<D5B4>.");
|
||||
return false;
|
||||
}
|
||||
for (var i=0;i<x.elements.length;i++){
|
||||
if (x.elements[i].type=="text"){
|
||||
if (x.elements[i].id=="important"){
|
||||
if (x.elements[i].value==""){
|
||||
alert(x.elements[i].name + "<22><> <20>ʼ<EFBFBD> <20>Է<EFBFBD><D4B7><EFBFBD><D7B8><EFBFBD> <20><><EFBFBD><EFBFBD> <20>ֽ<EFBFBD><D6BD>ϴ<EFBFBD>.");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (x.txt_bank_code.value==""){
|
||||
alert ("<22><><EFBFBD><EFBFBD><EFBFBD>ڵ尡 <20><><EFBFBD><EFBFBD><EFBFBD>ֽ<EFBFBD><D6BD>ϴ<EFBFBD>.");
|
||||
return false;
|
||||
}
|
||||
if (x.txt_gubun_code.value==""){
|
||||
alert ("<22>ֿ<EFBFBD><D6BF><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ֽ<EFBFBD><D6BD>ϴ<EFBFBD>.");
|
||||
return false;
|
||||
}
|
||||
if (x.txt_gubun_code.value == "99" && x.txt_activity.value == "Ȱ<><C8B0>"){
|
||||
alert("<22>ֿ<EFBFBD><D6BF><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϼ<EFBFBD><CFBC><EFBFBD>.");
|
||||
return false;
|
||||
}
|
||||
if (confirm){
|
||||
x.action = "interviewer_regist_ok.asp";
|
||||
x.submit();
|
||||
}
|
||||
}
|
||||
|
||||
function showHideLayersAll(submenu){
|
||||
if(old_menu != submenu){
|
||||
if(old_menu !=""){
|
||||
old_menu.style.visibility = "hidden";
|
||||
}
|
||||
submenu.style.visibility = "visible";
|
||||
old_menu = submenu;
|
||||
}else{
|
||||
submenu.style.visibility = "hidden";
|
||||
old_menu = "";
|
||||
}
|
||||
}
|
||||
function select_grade(xname, xcode, kind){
|
||||
if (kind == "m") {
|
||||
document.frm_man.txt_m_grade.value = xname;
|
||||
document.frm_man.txt_m_grade_code.value = xcode;
|
||||
showHideLayersAll(mgrade);
|
||||
} else if (kind == "kpc") {
|
||||
document.frm_man.txt_kpc_grade.value = xname;
|
||||
document.frm_man.txt_kpc_grade_code.value = xcode;
|
||||
showHideLayersAll(kgrade);
|
||||
} else {
|
||||
var tmp_grade = 0;
|
||||
var tmp_xcode = 0;
|
||||
var tgc = eval("document.frm_man.txt_grade_" + kind + "_code").value;
|
||||
if (tgc == "10") {tmp_grade = 1; }
|
||||
else if (tgc == "01") {tmp_grade = 2; }
|
||||
else if (tgc == "09") {tmp_grade = 3; }
|
||||
else if (tgc == "02") {tmp_grade = 4; }
|
||||
else if (tgc == "08") {tmp_grade = 5; }
|
||||
else if (tgc == "03") {tmp_grade = 6; }
|
||||
else if (tgc == "04") {tmp_grade = 7; }
|
||||
else if (tgc == "05") {tmp_grade = 8; }
|
||||
else if (tgc == "06") {tmp_grade = 9; }
|
||||
else if (tgc == "07") {tmp_grade = 10; }
|
||||
|
||||
if (xcode == "10") {tmp_xcode = 1; }
|
||||
else if (xcode == "01") {tmp_xcode = 2; }
|
||||
else if (xcode == "09") {tmp_xcode = 3; }
|
||||
else if (xcode == "02") {tmp_xcode = 4; }
|
||||
else if (xcode == "08") {tmp_xcode = 5; }
|
||||
else if (xcode == "03") {tmp_xcode = 6; }
|
||||
else if (xcode == "04") {tmp_xcode = 7; }
|
||||
else if (xcode == "05") {tmp_xcode = 8; }
|
||||
else if (xcode == "06") {tmp_xcode = 9; }
|
||||
else if (xcode == "07") {tmp_xcode = 10; }
|
||||
|
||||
eval("document.frm_man.grade_" + kind).value = xname;
|
||||
eval("document.frm_man.txt_grade_" + kind + "_code").value = xcode;
|
||||
showHideLayersAll(eval("grade" + kind));
|
||||
}
|
||||
}
|
||||
|
||||
function select_work(xname, xcode){
|
||||
document.frm_man.txt_gubun.value = xname;
|
||||
document.frm_man.txt_gubun_code.value = xcode;
|
||||
showHideLayersAll(work);
|
||||
}
|
||||
function select_bank(xname, xcode){
|
||||
document.frm_man.txt_bank.value = xname;
|
||||
document.frm_man.txt_bank_code.value = xcode;
|
||||
showHideLayersAll(bank);
|
||||
}
|
||||
function select_activity(xname, xcode){
|
||||
if (!(('<%= session("Depart_Code")%>' == '12' && '<%= session("teamplace")%>' == '3') || '<%= session("Depart_Code")%>' == '18')) {
|
||||
if (document.frm_man.txt_activity.value == "<22>ҷ<EFBFBD>" || document.frm_man.txt_activity.value == "<22><><EFBFBD><EFBFBD>") {
|
||||
alert("<22><><EFBFBD><EFBFBD> <20>Ǵ<EFBFBD> <20>ҷ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Ȱ<><C8B0> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n<><6E><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ο<EFBFBD><CEBF><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>մϴ<D5B4>. (<28>ڷ<EFBFBD><DAB7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>)");
|
||||
showHideLayersAll(activity);
|
||||
return;
|
||||
}
|
||||
}
|
||||
document.frm_man.txt_activity.value = xname;
|
||||
document.frm_man.txt_activity_code.value = xcode;
|
||||
showHideLayersAll(activity);
|
||||
}/*##### <20>ֹε<D6B9><CEB5><EFBFBD> <20><><EFBFBD><EFBFBD> return value callback <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 2018-03-09 #####*/
|
||||
|
||||
function Check_Jumin_Name(){
|
||||
var x = document.frm_man;
|
||||
var koreaName = new RegExp(/^[<5B><>-<2D>R]+$/);
|
||||
|
||||
if (x.txtJumin1.value=="" || x.txtJumin2.value==""){
|
||||
alert ("<22>ֹι<D6B9>ȣ / <20>ܱ<EFBFBD><DCB1>ι<EFBFBD>ȣ<EFBFBD><C8A3> <20>Է<EFBFBD><D4B7><EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>");
|
||||
return false;
|
||||
}
|
||||
var ssn1 = x.txtJumin1.value,
|
||||
ssn2 = x.txtJumin2.value,
|
||||
ssn = ssn1+''+ssn2,
|
||||
arr_ssn = [],
|
||||
compare = [2,3,4,5,6,7,8,9,2,3,4,5],
|
||||
sum = 0;
|
||||
|
||||
// <20>ڸ<EFBFBD><DAB8><EFBFBD> üũ
|
||||
if (ssn.length != 13){
|
||||
alert("<22>ùٸ<C3B9> <20>ֹε<D6B9><CEB5><EFBFBD> <20><>ȣ / <20>ܱ<EFBFBD><DCB1>ε<EFBFBD><CEB5><EFBFBD> <20><>ȣ<EFBFBD><C8A3> <20>Է<EFBFBD><D4B7>Ͽ<EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>.");return false;
|
||||
}
|
||||
//<2F>ܱ<EFBFBD><DCB1><EFBFBD> <20><><EFBFBD><EFBFBD>ó<EFBFBD><C3B3>
|
||||
if(koreaName.test(x.txtName.value) == false && confirm("<22>ܱ<EFBFBD><DCB1><EFBFBD><EFBFBD><EFBFBD> <20>½<EFBFBD><C2BD>ϱ<EFBFBD>? (<28≯<EFBFBD> : "+x.txtName.value+")")){
|
||||
x.chk_jumin.value="yes";
|
||||
alert("Ȯ<><C8AE> <20>ƽ<EFBFBD><C6BD>ϴ<EFBFBD>.");
|
||||
return true;
|
||||
}
|
||||
|
||||
// <20><><EFBFBD><EFBFBD>: M = (11 - ((2<><32>A + 3<><33>B + 4<><34>C + 5<><35>D + 6<><36>E + 7<><37>F + 8<><38>G + 9<><39>H + 2<><32>I + 3<><33>J + 4<><34>K + 5<><35>L) % 11)) % 10
|
||||
for (var i = 0; i<13; i++) {
|
||||
arr_ssn[i] = ssn.substring(i,i+1);
|
||||
}
|
||||
|
||||
for (var i = 0; i<12; i++){
|
||||
sum = sum + (arr_ssn[i] * compare[i]);
|
||||
}
|
||||
|
||||
sum = (11 - (sum % 11)) % 10;
|
||||
|
||||
if (sum != arr_ssn[12]){
|
||||
alert("<22>ùٸ<C3B9> <20>ֹε<D6B9><CEB5><EFBFBD> <20><>ȣ<EFBFBD><C8A3> <20>Է<EFBFBD><D4B7>Ͽ<EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>.");
|
||||
x.chk_jumin.value="no";
|
||||
return false;
|
||||
}else{
|
||||
alert("<22><><EFBFBD><EFBFBD><EFBFBD>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>.");
|
||||
x.chk_jumin.value="yes";
|
||||
}
|
||||
}
|
||||
|
||||
function search_Name(x, txt){
|
||||
x = document.frm_man;
|
||||
var url = "/project_list/myun_search.asp?cutmenu=1&part=myun_input";
|
||||
if (txt == "name") {
|
||||
var m_name = x.txtName.value;
|
||||
if (m_name == "") {
|
||||
alert("ã<><C3A3><EFBFBD><EFBFBD> <20>ϴ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20≯<EFBFBD><CCB8><EFBFBD> <20>Է<EFBFBD><D4B7><EFBFBD> <20><> ã<><C3A3> <20><>ư<EFBFBD><C6B0> <20>̿<EFBFBD><CCBF>Ͽ<EFBFBD> <20>ش<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϼ<EFBFBD><CFBC><EFBFBD>.");
|
||||
x.txtName.focus();
|
||||
return false;
|
||||
}
|
||||
url = url + "&m_name=" + m_name;
|
||||
} else if (txt == "id") {
|
||||
var new_id = x.new_id.value;
|
||||
if (new_id == "") {
|
||||
alert("ã<><C3A3><EFBFBD><EFBFBD> <20>ϴ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ID<49><44> <20>Է<EFBFBD><D4B7><EFBFBD> <20><> ã<><C3A3> <20><>ư<EFBFBD><C6B0> <20>̿<EFBFBD><CCBF>Ͽ<EFBFBD> <20>ش<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϼ<EFBFBD><CFBC><EFBFBD>.");
|
||||
x.new_id.focus();
|
||||
return false;
|
||||
}
|
||||
url = url + "&new_id=" + new_id;
|
||||
}
|
||||
window.open (url,"", "left=0, top=5, width=500, height=500, scrollbars=yes, statbar=no" );
|
||||
}
|
||||
|
||||
function onlyNum(){
|
||||
if ((event.keyCode < 48) || (event.keyCode > 57)){
|
||||
event.returnValue = false;
|
||||
}
|
||||
}
|
||||
function onlyNum_chk_jumin(){
|
||||
document.frm_man.chk_jumin.value="no";
|
||||
if ((event.keyCode < 48) || (event.keyCode > 57)){
|
||||
event.returnValue = false;
|
||||
}
|
||||
}
|
||||
function init(){
|
||||
var tmpstr = document.frm_man.txtJumin1.value;
|
||||
if (tmpstr == ""){
|
||||
document.frm_man.txtJumin1.focus();
|
||||
}else{
|
||||
document.frm_man.txtName.focus();
|
||||
}
|
||||
}
|
||||
function work_day(){
|
||||
var new_id = document.getElementById("new_id").value;
|
||||
if(new_id == ""){
|
||||
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>õ<EFBFBD><C3B5><EFBFBD> <20>ʾҽ<CABE><D2BD>ϴ<EFBFBD>.");
|
||||
return;
|
||||
}
|
||||
window.open("./interviewer_work_day.asp?new_id=" + new_id, "<22>ٹ<EFBFBD><D9B9><EFBFBD><EFBFBD><EFBFBD> <20><>ȸ", "left=0, top=5, width=500, height=500, scrollbars=yes, statbar=no" );
|
||||
|
||||
}
|
||||
function js_greade_view(x){
|
||||
var xid=x.new_id.value; // <20><><EFBFBD>̵<EFBFBD>
|
||||
var xname=x.txtName.value; // <20≯<EFBFBD>
|
||||
var xjumin=x.txtJumin1.value; // <20>ֹι<D6B9>ȣ(<28><>6<EFBFBD>ڸ<EFBFBD>)
|
||||
|
||||
if((xid=="")||(xname=="")||(xjumin=="")){
|
||||
alert("[<5B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ID],[<5B≯<EFBFBD>],[<5B>ֹι<D6B9>ȣ] <20><> <20><><EFBFBD><EFBFBD> <20>־<EFBFBD><D6BE><EFBFBD> <20><><EFBFBD><EFBFBD>Ȯ<EFBFBD><C8AE><EFBFBD><EFBFBD> <20>ϽǼ<CFBD> <20>ֽ<EFBFBD><D6BD>ϴ<EFBFBD> ");
|
||||
return;
|
||||
}
|
||||
var url = "interviewer_grade_info.asp?xid="+xid+"&xname="+xname+"&xjumin="+xjumin;
|
||||
var pwidth=1000;
|
||||
var pheight=500;
|
||||
var tleft=(screen.width-pwidth)/2;
|
||||
var ttop=(screen.height-pheight)/2;
|
||||
winObj=window.open(url, "wins", "left="+tleft+", top="+ttop+", menubar=no, location=no, status=no, toolbar=no, width="+pwidth+", height="+pheight+", scrollbars=yes ,resizable=no");
|
||||
}
|
||||
</script>
|
||||
</div>
|
||||
<!-- /.content-wrapper -->
|
||||
<!-- #include virtual = "include/footer.asp" -->
|
||||
310
inspection/interviewer_regist_ok.asp
Normal file
310
inspection/interviewer_regist_ok.asp
Normal file
@@ -0,0 +1,310 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<OBJECT RUNAT=Server PROGID=ADODB.Recordset id=Drs></OBJECT>
|
||||
<%'####################################################
|
||||
'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> ȭ<><C8AD>
|
||||
'####################################################
|
||||
%>
|
||||
<%
|
||||
|
||||
Response.Expires = 0
|
||||
Response.Flush
|
||||
|
||||
|
||||
Dim sql
|
||||
dim i
|
||||
dim j
|
||||
dim k
|
||||
dim m_jumin
|
||||
dim m_offer_date
|
||||
dim m_name
|
||||
dim before_m_name
|
||||
dim m_bank
|
||||
dim m_b_no
|
||||
dim m_addres
|
||||
dim m_tel
|
||||
dim m_mobile
|
||||
dim m_gubun
|
||||
dim m_note
|
||||
dim m_Grade
|
||||
dim Grade_1, Grade_2, Grade_3, Grade_4, Grade_5, Grade_6, Grade_7
|
||||
dim grade_yn_1, grade_yn_2, grade_yn_3, grade_yn_4, grade_yn_5, grade_yn_6, grade_yn_7
|
||||
dim kpc_grade
|
||||
dim m_activity
|
||||
dim ConDate
|
||||
|
||||
|
||||
|
||||
ConDate=year(date) & "-" & zeroFormat(month(date),2) & "-" & zeroFormat(day(date),2)
|
||||
|
||||
|
||||
|
||||
m_jumin = trim(Request.Form("txtJumin1")) & trim(Request.Form("txtJumin2"))
|
||||
m_offer_date = trim(Request.Form("txt_date"))
|
||||
m_name = trim(Request.Form("txtName"))
|
||||
m_bank = trim(Request.Form("txt_bank_code")) '<27><><EFBFBD><EFBFBD><EFBFBD>ڵ<EFBFBD>
|
||||
m_b_no = trim(Request.Form("txt_bank_no")) '<27><><EFBFBD>¹<EFBFBD>ȣ
|
||||
m_addres = trim(Request.Form("txtaddress"))
|
||||
m_tel = trim(Request.Form("txtTel1")) & "-" & trim(Request.Form("txtTel2")) & "-" & trim(Request.Form("txtTel3"))
|
||||
m_mobile = trim(Request.Form("txtMobile1")) & "-" & trim(Request.Form("txtMobile2")) & "-" & trim(Request.Form("txtMobile3"))
|
||||
m_gubun = trim(Request.Form("txt_gubun_code"))
|
||||
m_note = CheckWord(trim(Request.Form("txt_note")))
|
||||
m_Grade = trim(Request.Form("txt_m_grade_code"))
|
||||
|
||||
Grade_1 = trim(Request.Form("txt_grade_1_code"))
|
||||
Grade_2 = trim(Request.Form("txt_grade_2_code"))
|
||||
Grade_3 = trim(Request.Form("txt_grade_3_code"))
|
||||
Grade_4 = trim(Request.Form("txt_grade_4_code"))
|
||||
Grade_5 = trim(Request.Form("txt_grade_5_code"))
|
||||
Grade_6 = trim(Request.Form("txt_grade_6_code"))
|
||||
Grade_7 = trim(Request.Form("txt_grade_7_code"))
|
||||
|
||||
kpc_grade = trim(Request.Form("txt_kpc_grade_code"))
|
||||
m_activity = trim(Request.Form("txt_activity"))
|
||||
|
||||
grade_date_1 = trim(Request.Form("grade_date_1"))
|
||||
grade_date_2 = trim(Request.Form("grade_date_2"))
|
||||
grade_date_3 = trim(Request.Form("grade_date_3"))
|
||||
grade_date_4 = trim(Request.Form("grade_date_4"))
|
||||
grade_date_5 = trim(Request.Form("grade_date_5"))
|
||||
grade_date_6 = trim(Request.Form("grade_date_6"))
|
||||
grade_date_7 = trim(Request.Form("grade_date_7"))
|
||||
|
||||
grade_yn_1 = "0"
|
||||
grade_yn_2 = "0"
|
||||
grade_yn_3 = "0"
|
||||
grade_yn_4 = "0"
|
||||
grade_yn_5 = "0"
|
||||
grade_yn_6 = "0"
|
||||
grade_yn_7 = "0"
|
||||
|
||||
if trim(Request.Form("grade_yn_1")) <> "" then
|
||||
grade_yn_1 = trim(Request.Form("grade_yn_1"))
|
||||
end if
|
||||
if trim(Request.Form("grade_yn_2")) <> "" then
|
||||
grade_yn_2 = trim(Request.Form("grade_yn_2"))
|
||||
end if
|
||||
if trim(Request.Form("grade_yn_3")) <> "" then
|
||||
grade_yn_3 = trim(Request.Form("grade_yn_3"))
|
||||
end if
|
||||
if trim(Request.Form("grade_yn_4")) <> "" then
|
||||
grade_yn_4 = trim(Request.Form("grade_yn_4"))
|
||||
end if
|
||||
if trim(Request.Form("grade_yn_5")) <> "" then
|
||||
grade_yn_5 = trim(Request.Form("grade_yn_5"))
|
||||
end if
|
||||
if trim(Request.Form("grade_yn_6")) <> "" then
|
||||
grade_yn_6 = trim(Request.Form("grade_yn_6"))
|
||||
end if
|
||||
if trim(Request.Form("grade_yn_7")) <> "" then
|
||||
grade_yn_7 = trim(Request.Form("grade_yn_7"))
|
||||
end if
|
||||
|
||||
'<27><><EFBFBD>¹<EFBFBD>ȣ<EFBFBD><C8A3> <20><><EFBFBD>̰<EFBFBD> 14<31>ڸ<EFBFBD><DAB8≯鼭 <20><><EFBFBD><EFBFBD> <20>Ǵ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.
|
||||
if len(m_b_no)=14 and (cint(m_bank) = 11 or cint(m_bank) = 12) then
|
||||
m_bank="12"
|
||||
end if
|
||||
|
||||
'<27><><EFBFBD>ϵ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> üũ
|
||||
sql = "select * from man where m_jumin = '" & m_jumin & "'"
|
||||
Rs.open sql, adoconn, adopenstatic, adlockreadonly
|
||||
|
||||
if Rs.recordcount > 0 then '<27><><EFBFBD>ϵǾ<CFB5> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
before_m_name = Rs("m_name")
|
||||
|
||||
datequery = "select top 1 * from T_myun_Grade_HISTORY where m_id = '" & Rs("id") & "' order by m_grade_dt desc, insert_dt desc "
|
||||
Drs.open datequery, adoconn, adopenstatic, adlockreadonly
|
||||
|
||||
sql = "update man set "
|
||||
sql = sql & "new_id = case when (isnull(new_id,'') = '' and '" & m_activity & "' = 'Ȱ<><C8B0>') or (m_gubun <> '" & m_gubun & "' and '" & m_gubun & "' <> '99' and isnull(new_id,'') <> '') then (select left(m_gubun, 1) + '-' + case when m_gubun = '10' or m_gubun='31' then right('0000' + cast(cast(right(max(new_id),4) as int)+1 as varchar),4) else (right(m_gubun, 1) + right('0000' + cast(cast(right(max(new_id),4) as int)+1 as varchar),3)) end as maxid from man where m_gubun <> '99' and m_gubun = '" & m_gubun & "' group by m_gubun) else new_id end , "
|
||||
sql = sql & "m_jumin = '" & m_jumin & "', "
|
||||
sql = sql & "m_offer_date = '" & m_offer_date & "', "
|
||||
sql = sql & "m_name = '" & m_name & "', "
|
||||
sql = sql & "m_bank = '" & m_bank & "', "
|
||||
sql = sql & "m_b_no = '" & m_b_no & "', "
|
||||
sql = sql & "m_addres = '" & m_addres & "', "
|
||||
sql = sql & "m_tel = '" & m_tel & "', "
|
||||
sql = sql & "m_mobile = '" & m_mobile & "', "
|
||||
sql = sql & "m_gubun = '" & m_gubun & "', "
|
||||
sql = sql & "m_grade = '" & m_Grade & "', "
|
||||
if grade_yn_1 = "1" then
|
||||
sql = sql & "grade_1 = '" & Grade_1 & "', "
|
||||
end if
|
||||
if grade_yn_2 = "1" then
|
||||
sql = sql & "grade_2 = '" & Grade_2 & "', "
|
||||
end if
|
||||
if grade_yn_3 = "1" then
|
||||
sql = sql & "grade_3 = '" & Grade_3 & "', "
|
||||
end if
|
||||
if grade_yn_4 = "1" then
|
||||
sql = sql & "grade_4 = '" & Grade_4 & "', "
|
||||
end if
|
||||
if grade_yn_5 = "1" then
|
||||
sql = sql & "grade_5 = '" & Grade_5 & "', "
|
||||
end if
|
||||
if grade_yn_6 = "1" then
|
||||
sql = sql & "grade_6 = '" & Grade_6 & "', "
|
||||
end if
|
||||
if grade_yn_7 = "1" then
|
||||
sql = sql & "grade_7 = '" & Grade_7 & "', "
|
||||
end if
|
||||
sql = sql & "kpc_grade = '" & kpc_grade & "', "
|
||||
|
||||
if m_activity = "<22><><EFBFBD><EFBFBD>" then
|
||||
m_note = m_note & ", <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> : " & ConDate
|
||||
end if
|
||||
|
||||
sql = sql & "m_note = '" & m_note & "', "
|
||||
sql = sql & "m_activity = '" & m_activity & "', "
|
||||
sql = sql & "insert_date = '" & ConDate & "', "
|
||||
sql = sql & "insert_time = '" & time() & "', "
|
||||
sql = sql & "insert_user = '" & Session("User_Number") & "', "
|
||||
sql = sql & "insert_ip = '" & Request.ServerVariables("REMOTE_HOST") & "' "
|
||||
sql = sql & " where m_jumin = '" & m_jumin & "'"
|
||||
|
||||
'Response.Write sql & "<br>"
|
||||
adoconn.Execute sql
|
||||
|
||||
Drs.Close
|
||||
Rs.close
|
||||
|
||||
sql = " select isnull(new_id, '') as new_id, id, m_name from man "
|
||||
sql = sql & " where m_jumin = '" & m_jumin & "' "
|
||||
Drs.open sql, adoconn, adopenstatic, adlockreadonly
|
||||
'===================================================================== <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ִ<EFBFBD> <20><><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20≯<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> =====================================================================
|
||||
if Drs("new_id") <> "" and Drs("m_name") <> before_m_name then
|
||||
sql = " update res set m_name='" & Drs("m_name") & "' where m_no ='" & Drs("new_id") & "' "
|
||||
adoconn.Execute sql
|
||||
sql = " update T_INSPECTION_RES set m_name='" & Drs("m_name") & "' where m_no ='" & Drs("new_id") & "' "
|
||||
adoconn.Execute sql
|
||||
sql = " update T_MYUN_PAY set m_name='" & Drs("m_name") & "' where m_jumin = '" & m_jumin & "' "
|
||||
adoconn.Execute sql
|
||||
sql = " update neakeun_work set neakeun_name='" & Drs("m_name") & "' where neakeun_name = '" & before_m_name & "' and neakeun_jumin = '" & left(m_jumin,6) & "0000000' "
|
||||
adoconn.Execute sql
|
||||
sql = " update T_NEAKEUN_PAY set m_name='" & Drs("m_name") & "' where m_name = '" & before_m_name & "' and m_jumin = '" & left(m_jumin,6) & "0000000' "
|
||||
adoconn.Execute sql
|
||||
sql = " update neakeun_in_out_time set neakeun_name='" & Drs("m_name") & "' where neakeun_name = '" & before_m_name & "' and neakeun_jumin = '" & left(m_jumin,6) & "0000000' "
|
||||
adoconn.Execute sql
|
||||
sql = " update myun_pay set m_name='" & Drs("m_name") & "' where m_name = '" & before_m_name & "' and m_jumin = '" & m_jumin & "' "
|
||||
adoconn.Execute sql
|
||||
sql = " update T_MYUN_GRADE_HISTORY set m_name='" & Drs("m_name") & "' where m_id = '" & Drs("id") & "' "
|
||||
adoconn.Execute sql
|
||||
end if
|
||||
'=====================================================================================================================================================================
|
||||
Drs.Close
|
||||
else
|
||||
sql = "insert into man (new_id, m_jumin, m_offer_date, m_name, "
|
||||
sql = sql & " m_bank, m_b_no, m_addres, m_tel, m_mobile, m_Grade, grade_1, grade_2, grade_3, grade_4, grade_5, grade_6, grade_7, "
|
||||
sql = sql & " m_gubun, m_note, m_activity, insert_date, insert_time, insert_user, insert_ip) "
|
||||
sql = sql & " values ("
|
||||
sql = sql & " case when '" & m_activity & "' = 'Ȱ<><C8B0>' then (select left(m_gubun, 1) + '-' + case when m_gubun = '10' or m_gubun='31' then right('0000' + cast(cast(right(max(new_id),4) as int)+1 as varchar),4) else (right(m_gubun, 1) + right('0000' + cast(cast(right(max(new_id),4) as int)+1 as varchar),3)) end as maxid from man where m_gubun <> '99' and m_gubun = '" & m_gubun & "' group by m_gubun) else null end, "
|
||||
sql = sql & "'" & m_jumin & "', "
|
||||
sql = sql & "'" & m_offer_date & "', "
|
||||
sql = sql & "'" & m_name & "', "
|
||||
sql = sql & "'" & m_bank & "', "
|
||||
sql = sql & "'" & m_b_no & "', "
|
||||
sql = sql & "'" & m_addres & "', "
|
||||
sql = sql & "'" & m_tel & "', "
|
||||
sql = sql & "'" & m_mobile & "', "
|
||||
sql = sql & "'" & m_Grade & "', "
|
||||
sql = sql & "'" & Grade_1 & "', "
|
||||
sql = sql & "'" & Grade_2 & "', "
|
||||
sql = sql & "'" & Grade_3 & "', "
|
||||
sql = sql & "'" & Grade_4 & "', "
|
||||
sql = sql & "'" & Grade_5 & "', "
|
||||
sql = sql & "'" & Grade_6 & "', "
|
||||
sql = sql & "'" & Grade_7 & "', "
|
||||
sql = sql & "'" & m_gubun & "', "
|
||||
sql = sql & "'" & m_note & "',"
|
||||
sql = sql & "'" & m_activity & "', "
|
||||
sql = sql & "'" & ConDate & "', "
|
||||
sql = sql & "'" & time() & "', "
|
||||
sql = sql & "'" & Session("User_Number") & "', "
|
||||
sql = sql & "'" & Request.ServerVariables("REMOTE_HOST") & "') "
|
||||
|
||||
'Response.Write sql & "<br>"
|
||||
adoconn.Execute sql
|
||||
|
||||
Rs.close
|
||||
end If
|
||||
'---- <20>Է<EFBFBD><D4B7><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ش<EFBFBD><D8B4>ϴ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ID <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>о<EFBFBD> <20><>
|
||||
sql = "select * from man where m_jumin = '" & m_jumin & "' and m_name = '" & m_name & "'"
|
||||
Rs.open sql, adoconn, adopenstatic, adlockreadonly
|
||||
|
||||
if Rs.recordcount > 0 then '<27><><EFBFBD>ϵǾ<CFB5> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
Dim m_id
|
||||
m_id = Rs("id")
|
||||
if m_gubun <> "99" then
|
||||
if grade_yn_1 = "1" then
|
||||
sql = " insert into T_MYUN_GRADE_HISTORY (m_id, m_jumin, m_name, m_grade, insert_dt, insert_user, m_grade_dt, attribute01, attribute02) "
|
||||
sql = sql & " values ('" & m_id & "', '" & m_jumin & "', '" & m_name & "', '" & Grade_1 & "', getdate(), '" & Session("User_Number") & "', '" & grade_date_1 & "', "
|
||||
sql = sql & " (SELECT d_cost_name FROM direct_costcode WHERE d_cost_useyn = 'Y' AND d_cost_kind = 'field' AND d_cost_parents='2' AND d_cost_code='1'), '1') "
|
||||
adoconn.Execute sql
|
||||
end if
|
||||
if grade_yn_2 = "1" then
|
||||
sql = " insert into T_MYUN_GRADE_HISTORY (m_id, m_jumin, m_name, m_grade, insert_dt, insert_user, m_grade_dt, attribute01, attribute02) "
|
||||
sql = sql & " values ('" & m_id & "', '" & m_jumin & "', '" & m_name & "', '" & Grade_2 & "', getdate(), '" & Session("User_Number") & "', '" & grade_date_2 & "', "
|
||||
sql = sql & " (SELECT d_cost_name FROM direct_costcode WHERE d_cost_useyn = 'Y' AND d_cost_kind = 'field' AND d_cost_parents='2' AND d_cost_code='2'), '2') "
|
||||
adoconn.Execute sql
|
||||
end if
|
||||
if grade_yn_3 = "1" then
|
||||
sql = " insert into T_MYUN_GRADE_HISTORY (m_id, m_jumin, m_name, m_grade, insert_dt, insert_user, m_grade_dt, attribute01, attribute02) "
|
||||
sql = sql & " values ('" & m_id & "', '" & m_jumin & "', '" & m_name & "', '" & Grade_3 & "', getdate(), '" & Session("User_Number") & "', '" & grade_date_3 & "', "
|
||||
sql = sql & " (SELECT d_cost_name FROM direct_costcode WHERE d_cost_useyn = 'Y' AND d_cost_kind = 'field' AND d_cost_parents='2' AND d_cost_code='3'), '3') "
|
||||
adoconn.Execute sql
|
||||
end if
|
||||
if grade_yn_4 = "1" then
|
||||
sql = " insert into T_MYUN_GRADE_HISTORY (m_id, m_jumin, m_name, m_grade, insert_dt, insert_user, m_grade_dt, attribute01, attribute02) "
|
||||
sql = sql & " values ('" & m_id & "', '" & m_jumin & "', '" & m_name & "', '" & Grade_4 & "', getdate(), '" & Session("User_Number") & "', '" & grade_date_4 & "', "
|
||||
sql = sql & " (SELECT d_cost_name FROM direct_costcode WHERE d_cost_useyn = 'Y' AND d_cost_kind = 'field' AND d_cost_parents='2' AND d_cost_code='4'), '4') "
|
||||
adoconn.Execute sql
|
||||
end if
|
||||
if grade_yn_5 = "1" then
|
||||
sql = " insert into T_MYUN_GRADE_HISTORY (m_id, m_jumin, m_name, m_grade, insert_dt, insert_user, m_grade_dt, attribute01, attribute02) "
|
||||
sql = sql & " values ('" & m_id & "', '" & m_jumin & "', '" & m_name & "', '" & Grade_5 & "', getdate(), '" & Session("User_Number") & "', '" & grade_date_5 & "', "
|
||||
sql = sql & " (SELECT d_cost_name FROM direct_costcode WHERE d_cost_useyn = 'Y' AND d_cost_kind = 'field' AND d_cost_parents='2' AND d_cost_code='5'), '5') "
|
||||
adoconn.Execute sql
|
||||
end if
|
||||
if grade_yn_6 = "1" then
|
||||
sql = " insert into T_MYUN_GRADE_HISTORY (m_id, m_jumin, m_name, m_grade, insert_dt, insert_user, m_grade_dt, attribute01, attribute02) "
|
||||
sql = sql & " values ('" & m_id & "', '" & m_jumin & "', '" & m_name & "', '" & Grade_6 & "', getdate(), '" & Session("User_Number") & "', '" & grade_date_6 & "', "
|
||||
sql = sql & " (SELECT d_cost_name FROM direct_costcode WHERE d_cost_useyn = 'Y' AND d_cost_kind = 'field' AND d_cost_parents='2' AND d_cost_code='6'), '6') "
|
||||
adoconn.Execute sql
|
||||
end if
|
||||
if grade_yn_7 = "1" then
|
||||
sql = " insert into T_MYUN_GRADE_HISTORY (m_id, m_jumin, m_name, m_grade, insert_dt, insert_user, m_grade_dt, attribute01, attribute02) "
|
||||
sql = sql & " values ('" & m_id & "', '" & m_jumin & "', '" & m_name & "', '" & Grade_7 & "', getdate(), '" & Session("User_Number") & "', '" & grade_date_7 & "', "
|
||||
sql = sql & " (SELECT d_cost_name FROM direct_costcode WHERE d_cost_useyn = 'Y' AND d_cost_kind = 'field' AND d_cost_parents='2' AND d_cost_code='7'), '7') "
|
||||
adoconn.Execute sql
|
||||
end if
|
||||
end if
|
||||
End if
|
||||
Rs.close
|
||||
|
||||
dim web_posi
|
||||
web_posi = Request("txt_web_posi")
|
||||
%>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
|
||||
<meta http-equiv="refresh" content="0;url=interviewer_regist.asp?isSaved=true&web_posi=<%=web_posi%>">
|
||||
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
|
||||
<title><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ű<EFBFBD> <20><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD> Ȯ<><C8AE></title>
|
||||
<style type="text/css">
|
||||
A:link {text-decoration: none; color:blue}
|
||||
A:visited {text-decoration:none; color: red}
|
||||
A:hover {text-decoration: color:red}
|
||||
input {font-size: 10pt;font-family:<3A><><EFBFBD><EFBFBD>;}
|
||||
</style>
|
||||
|
||||
<meta name="generator" content="Namo WebEditor v3.0">
|
||||
</head>
|
||||
|
||||
<body bgcolor="white" text="black" link="blue" vlink="purple" alink="red">
|
||||
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
||||
|
||||
615
inspection/interviewer_search.asp
Normal file
615
inspection/interviewer_search.asp
Normal file
@@ -0,0 +1,615 @@
|
||||
<!-- #include virtual = "include/header.asp" -->
|
||||
<%
|
||||
dim command
|
||||
command = Request("command")
|
||||
if command <> "excel" then
|
||||
%>
|
||||
<!-- #include virtual = "include/left.asp" -->
|
||||
<!-- Content Wrapper. Contains page content -->
|
||||
<div class="content-wrapper">
|
||||
<!-- Content Header (Page header) -->
|
||||
<div class="content-header">
|
||||
<h1><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>˻<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.CacheControl = "public"
|
||||
Response.ContentType = "application/vnd.ms-excel"
|
||||
Response.AddHeader "Content-Disposition","attachment;filename=<3D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>_<EFBFBD><5F><EFBFBD><EFBFBD><EFBFBD><EFBFBD>_<EFBFBD>˻<EFBFBD><CBBB><EFBFBD><EFBFBD><EFBFBD>Ʈ.xls"
|
||||
end if
|
||||
dim new_id
|
||||
dim m_name
|
||||
dim m_grade, grade_1, grade_2, grade_3, grade_4, grade_5, grade_6, grade_7
|
||||
dim kpc_grade
|
||||
dim m_activity1, m_activity2, m_activity3, m_activity4
|
||||
dim p_method
|
||||
dim m_gubun1, m_gubun2, m_gubun3, m_gubun4, m_gubun5, m_gubun6, m_gubun7, m_gubun8, m_gubun9, m_gubun10, m_gubun11, m_gubun12, m_gubun13, m_gubun14, m_gubun15, m_gubun16, m_gubun17, m_gubun99
|
||||
dim m_tel
|
||||
dim m_offer_date
|
||||
dim m_offer_date_st
|
||||
dim m_offer_date_end
|
||||
dim m_last_work_date
|
||||
dim m_last_work_date_st
|
||||
dim m_last_work_date_end
|
||||
dim m_p_sn
|
||||
dim n_grade()
|
||||
|
||||
m_offer_date_st=year(date) & "-" & zeroFormat(month(date),2) & "-" & zeroFormat(day(date),2)
|
||||
m_offer_date_end=year(date) & "-" & zeroFormat(month(date),2) & "-" & zeroFormat(day(date),2)
|
||||
|
||||
If request("m_offer_date_st") <> "" then
|
||||
m_offer_date_st = request("m_offer_date_st")
|
||||
end If
|
||||
If request("m_offer_date_end") <> "" then
|
||||
m_offer_date_end = request("m_offer_date_end")
|
||||
end If
|
||||
|
||||
m_last_work_date_st=year(date) & "-" & zeroFormat(month(date),2) & "-" & zeroFormat(day(date),2)
|
||||
m_last_work_date_end=year(date) & "-" & zeroFormat(month(date),2) & "-" & zeroFormat(day(date),2)
|
||||
|
||||
If request("m_last_work_date_st") <> "" then
|
||||
m_last_work_date_st = request("m_last_work_date_st")
|
||||
end If
|
||||
If request("m_last_work_date_end") <> "" then
|
||||
m_last_work_date_end = request("m_last_work_date_end")
|
||||
end If
|
||||
|
||||
new_id = request("new_id")
|
||||
m_name = request("m_name")
|
||||
m_grade = request("m_grade")
|
||||
grade_1 = request("grade_1")
|
||||
grade_2 = request("grade_2")
|
||||
grade_3 = request("grade_3")
|
||||
grade_4 = request("grade_4")
|
||||
grade_5 = request("grade_5")
|
||||
grade_6 = request("grade_6")
|
||||
grade_7 = request("grade_7")
|
||||
kpc_grade = request("kpc_grade")
|
||||
m_activity1 = request("m_activity1")
|
||||
m_activity2 = request("m_activity2")
|
||||
m_activity3 = request("m_activity3")
|
||||
m_activity4 = request("m_activity4")
|
||||
p_method = request("p_method")
|
||||
m_p_sn = request("m_p_sn")
|
||||
m_gubun1 = request("m_gubun1")
|
||||
m_gubun2 = request("m_gubun2")
|
||||
m_gubun3 = request("m_gubun3")
|
||||
m_gubun4 = request("m_gubun4")
|
||||
m_gubun5 = request("m_gubun5")
|
||||
m_gubun6 = request("m_gubun6")
|
||||
m_gubun7 = request("m_gubun7")
|
||||
m_gubun8 = request("m_gubun8")
|
||||
m_gubun9 = request("m_gubun9")
|
||||
m_gubun10 = request("m_gubun10")
|
||||
m_gubun11 = request("m_gubun11")
|
||||
m_gubun12 = request("m_gubun12")
|
||||
m_gubun13 = request("m_gubun13")
|
||||
m_gubun14 = request("m_gubun14")
|
||||
m_gubun15 = request("m_gubun15")
|
||||
m_gubun16 = request("m_gubun16")
|
||||
m_gubun17 = request("m_gubun17")
|
||||
m_gubun99 = request("m_gubun99")
|
||||
m_tel = request("m_tel")
|
||||
m_offer_date = request("m_offer_date")
|
||||
m_last_work_date = request("m_last_work_date")
|
||||
|
||||
sql = " SELECT d_cost_code, d_cost_name FROM direct_costcode "
|
||||
sql = sql & " WHERE d_cost_useyn = 'Y' AND d_cost_kind = 'field' AND d_cost_parents = '2' AND d_cost_code NOT IN (8, 9) "
|
||||
adoRs.open sql, adoconn, adopenstatic, adlockreadonly
|
||||
|
||||
redim n_grade(adoRs.recordCount, 2)
|
||||
For i = 1 To adoRs.recordCount
|
||||
n_grade(i, 1) = adors("d_cost_name")
|
||||
n_grade(i, 2) = adors("d_cost_code")
|
||||
adoRs.MoveNext
|
||||
Next
|
||||
adoRs.Close
|
||||
%>
|
||||
<%if command <> "excel" then %>
|
||||
<% Dim f_menu : f_menu = "my" %>
|
||||
<!-- #include file = "f_menu.asp" -->
|
||||
<%End If%>
|
||||
<form name="frm_man" method="post" >
|
||||
<%if command <> "excel" then %>
|
||||
<table width="1200px" class="table table-sm table-sm2 table-bordered table-head tr-colors">
|
||||
<tr>
|
||||
<td width="10%" align="center">ID</td>
|
||||
<td width="40%" ><input type="text" name = "new_id" value="<%=new_id %>"/></td>
|
||||
<td width="10%" align="center" ><3E≯<EFBFBD></td>
|
||||
<td width="40%" ><input type="text" name = "m_name" value="<%=m_name %>"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="10%" align="center">Ȱ<><C8B0><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="40%" >
|
||||
<input type="checkbox" name="m_activity1" value="Ȱ<><C8B0>" <%if m_activity1="Ȱ<><C8B0>" or m_activity1 & m_activity2 & m_activity3 & m_activity4 = "" then %> checked="checked" <%end if %> />Ȱ<><C8B0>
|
||||
<input type="checkbox" name="m_activity2" value="<22><>Ȱ<EFBFBD><C8B0>" <%if m_activity2="<22><>Ȱ<EFBFBD><C8B0>" or m_activity1 & m_activity2 & m_activity3 & m_activity4 = "" then %> checked="checked" <%end if %> /><3E><>Ȱ<EFBFBD><C8B0>
|
||||
<input type="checkbox" name="m_activity3" value="<22><><EFBFBD><EFBFBD>" <%if m_activity3="<22><><EFBFBD><EFBFBD>" or m_activity1 & m_activity2 & m_activity3 & m_activity4 = "" then %> checked="checked" <%end if %> /><3E><><EFBFBD><EFBFBD>
|
||||
<input type="checkbox" name="m_activity4" value="<22>ҷ<EFBFBD>" <%if m_activity4="<22>ҷ<EFBFBD>" or m_activity1 & m_activity2 & m_activity3 & m_activity4 = "" then %> checked="checked" <%end if %> /><3E>ҷ<EFBFBD>
|
||||
</td>
|
||||
<td width="10%" align="center"><3E><>ȭ<EFBFBD><C8AD>ȣ</td>
|
||||
<td width="40%"><input type="text" name = "m_tel" value="<%=m_tel %>"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="10%" align="center"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ</td>
|
||||
<td width="40%" ><input type="text" name = "m_p_sn" value="<%=m_p_sn %>"/></td>
|
||||
<td width="10%" align="center" >
|
||||
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
</td>
|
||||
<td width="40%" >
|
||||
<select name = "p_method">
|
||||
<option value="" ><3E><>ü</option>
|
||||
<%
|
||||
query = " select * from T_PROJECT_METHOD_CD "
|
||||
AdoRs.open query, adoconn, adopenstatic, adlockreadonly
|
||||
do until AdoRs.Eof
|
||||
%>
|
||||
<option value="<%=AdoRs("p_method_cd") %>" <%if p_method = cstr(AdoRs("p_method_cd")) then %> selected <%end if %>><%=AdoRs("p_method_nm") %></option>
|
||||
<%
|
||||
AdoRs.moveNext
|
||||
loop
|
||||
AdoRs.close
|
||||
%>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="10%" align="center" >
|
||||
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
</td>
|
||||
<td width="40%" >
|
||||
<select name = "m_grade">
|
||||
<option value="" ><3E><>ü</option>
|
||||
<option value="01" <%if m_grade = "01" then %> selected <%end if %>>A</option>
|
||||
<option value="02" <%if m_grade = "02" then %> selected <%end if %>>B</option>
|
||||
<option value="03" <%if m_grade = "03" then %> selected <%end if %>>C</option>
|
||||
<option value="04" <%if m_grade = "04" then %> selected <%end if %>>D</option>
|
||||
<option value="05" <%if m_grade = "05" then %> selected <%end if %>>E</option>
|
||||
<option value="06" <%if m_grade = "06" then %> selected <%end if %>>F</option>
|
||||
<option value="07" <%if m_grade = "07" then %> selected <%end if %>>G</option>
|
||||
<option value="08" <%if m_grade = "08" then %> selected <%end if %>>H</option>
|
||||
</select>
|
||||
</td>
|
||||
<td width="10%" align="center" >
|
||||
KPC <20><><EFBFBD><EFBFBD>
|
||||
</td>
|
||||
<td width="40%" >
|
||||
<select name = "kpc_grade">
|
||||
<option value="" ><3E><>ü</option>
|
||||
<option value="A" <%if kpc_grade = "A" then %> selected <%end if %>>A</option>
|
||||
<option value="B" <%if kpc_grade = "B" then %> selected <%end if %>>B</option>
|
||||
<option value="C" <%if kpc_grade = "C" then %> selected <%end if %>>C</option>
|
||||
<option value="D" <%if kpc_grade = "D" then %> selected <%end if %>>D</option>
|
||||
<option value="E" <%if kpc_grade = "E" then %> selected <%end if %>>E</option>
|
||||
<option value="F" <%if kpc_grade = "F" then %> selected <%end if %>>F</option>
|
||||
<option value="G" <%if kpc_grade = "G" then %> selected <%end if %>>G</option>
|
||||
<option value="H" <%if kpc_grade = "H" then %> selected <%end if %>>H</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="10%" align="center" >
|
||||
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
</td>
|
||||
<td width="90%" colspan="3">
|
||||
<table width="100%" class="table table-sm table-sm2 table-bordered table-head tr-colors">
|
||||
<tr>
|
||||
<%
|
||||
For i = 1 To UBOUND(n_grade)
|
||||
%>
|
||||
<td align="center" width="<%=1/UBOUND(n_grade) * 100 %>%"><%= n_grade(i, 1) %></td>
|
||||
<%
|
||||
NEXT
|
||||
%>
|
||||
</tr>
|
||||
<tr>
|
||||
<%
|
||||
For i = 1 To UBOUND(n_grade)
|
||||
%>
|
||||
<td align="center" >
|
||||
<select name = "grade_<%=n_grade(i, 2) %>">
|
||||
<option value="" ><3E><>ü</option>
|
||||
<option value="01" <% execute("if grade_" & n_grade(i, 2) & "= ""01"" then response.write ""selected"" end if") %>>A</option>
|
||||
<option value="02" <% execute("if grade_" & n_grade(i, 2) & "= ""02"" then response.write ""selected"" end if") %>>B</option>
|
||||
<option value="03" <% execute("if grade_" & n_grade(i, 2) & "= ""03"" then response.write ""selected"" end if") %>>C</option>
|
||||
<option value="04" <% execute("if grade_" & n_grade(i, 2) & "= ""04"" then response.write ""selected"" end if") %>>D</option>
|
||||
<option value="05" <% execute("if grade_" & n_grade(i, 2) & "= ""05"" then response.write ""selected"" end if") %>>E</option>
|
||||
<option value="06" <% execute("if grade_" & n_grade(i, 2) & "= ""06"" then response.write ""selected"" end if") %>>F</option>
|
||||
<option value="07" <% execute("if grade_" & n_grade(i, 2) & "= ""07"" then response.write ""selected"" end if") %>>G</option>
|
||||
<option value="08" <% execute("if grade_" & n_grade(i, 2) & "= ""08"" then response.write ""selected"" end if") %>>H</option>
|
||||
</select>
|
||||
</td>
|
||||
<%
|
||||
Next
|
||||
%>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="10%" align="center" >
|
||||
<20>ֿ<EFBFBD><D6BF><EFBFBD><EFBFBD><EFBFBD>
|
||||
</td>
|
||||
<td width="90%" colspan="3">
|
||||
<table width="100%" class="table table-sm table-sm2 table-bordered table-head tr-colors">
|
||||
<tr>
|
||||
<td><input type="checkbox" name="m_gubun1" value="21" <%if m_gubun1="21" then %> checked="checked" <%end if %> /><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td><input type="checkbox" name="m_gubun2" value="31" <%if m_gubun2="31" then %> checked="checked" <%end if %> /><3E><>ȭ<EFBFBD><C8AD><EFBFBD><EFBFBD></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><input type="checkbox" name="m_gubun3" value="10" <%if m_gubun3="10" then %> checked="checked" <%end if %> /><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>_<EFBFBD><5F><EFBFBD><EFBFBD></td>
|
||||
<td><input type="checkbox" name="m_gubun4" value="12" <%if m_gubun4="12" then %> checked="checked" <%end if %> /><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>_<EFBFBD>λ<EFBFBD></td>
|
||||
<td><input type="checkbox" name="m_gubun5" value="13" <%if m_gubun5="13" then %> checked="checked" <%end if %> /><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>_<EFBFBD>뱸</td>
|
||||
<td><input type="checkbox" name="m_gubun6" value="14" <%if m_gubun6="14" then %> checked="checked" <%end if %> /><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>_<EFBFBD><5F><EFBFBD><EFBFBD></td>
|
||||
<td><input type="checkbox" name="m_gubun7" value="15" <%if m_gubun7="15" then %> checked="checked" <%end if %> /><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>_<EFBFBD><5F><EFBFBD><EFBFBD></td>
|
||||
<td><input type="checkbox" name="m_gubun8" value="16" <%if m_gubun8="16" then %> checked="checked" <%end if %> /><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>_<EFBFBD><5F><EFBFBD><EFBFBD></td>
|
||||
<td><input type="checkbox" name="m_gubun9" value="17" <%if m_gubun9="17" then %> checked="checked" <%end if %> /><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>_<EFBFBD><5F><EFBFBD><EFBFBD></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><input type="checkbox" name="m_gubun10" value="41" <%if m_gubun10="41" then %> checked="checked" <%end if %> />AS</td>
|
||||
<td><input type="checkbox" name="m_gubun11" value="42" <%if m_gubun11="42" then %> checked="checked" <%end if %> /><3E><>ġ</td>
|
||||
<td><input type="checkbox" name="m_gubun12" value="43" <%if m_gubun12="43" then %> checked="checked" <%end if %> /><3E>ڵ<EFBFBD></td>
|
||||
<td><input type="checkbox" name="m_gubun13" value="44" <%if m_gubun13="44" then %> checked="checked" <%end if %> /><3E><><EFBFBD><EFBFBD></td>
|
||||
<td><input type="checkbox" name="m_gubun14" value="45" <%if m_gubun14="45" then %> checked="checked" <%end if %> /><3E><><EFBFBD><EFBFBD><EFBFBD>ص<EFBFBD></td>
|
||||
<td><input type="checkbox" name="m_gubun15" value="46" <%if m_gubun15="46" then %> checked="checked" <%end if %> /><3E><><EFBFBD><EFBFBD></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><input type="checkbox" name="m_gubun16" value="51" <%if m_gubun16="51" then %> checked="checked" <%end if %> /><3E>Ұ<EFBFBD><D2B0><EFBFBD></td>
|
||||
<td><input type="checkbox" name="m_gubun17" value="52" <%if m_gubun17="52" then %> checked="checked" <%end if %> /><3E><>Ÿ</td>
|
||||
<td><input type="checkbox" name="m_gubun99" value="99" <%if m_gubun99="99" then %> checked="checked" <%end if %> /><3E><>Ȱ<EFBFBD><C8B0></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="10%" align="center" >
|
||||
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
</td>
|
||||
<td width="90%" colspan="3">
|
||||
<input type="radio" name="m_offer_date" value="" <%if m_offer_date="" then %> checked="checked" <%end if %> /><3E><>ü
|
||||
|
||||
<input type="radio" name="m_offer_date" value="<22>Ⱓ" <%if m_offer_date="<22>Ⱓ" then %> checked="checked" <%end if %> /><3E>Ⱓ
|
||||
<input type="text" style="width:120;text-align:center;CURSOR: pointer;" value="<%=m_offer_date_st %>" name="m_offer_date_st" readonly OnClick="winopn('/include/calendar.html?actval=m_offer_date_st')">
|
||||
<img src="/images/common/btn_calendar.jpg" align="absmiddle" OnClick="winopn('/include/calendar.html?actval=m_offer_date_st')" style="cursor:pointer;">
|
||||
~
|
||||
<input type="text" style="width:120;text-align:center;CURSOR: pointer;" value="<%=m_offer_date_end %>" name="m_offer_date_end" readonly OnClick="winopn('/include/calendar.html?actval=m_offer_date_end')">
|
||||
<img src="/images/common/btn_calendar.jpg" align="absmiddle" OnClick="winopn('/include/calendar.html?actval=m_offer_date_end')" style="cursor:pointer;">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="10%" align="center" >
|
||||
<20>ֱپ<D6B1><D9BE><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
</td>
|
||||
<td width="90%" colspan="3">
|
||||
<input type="radio" name="m_last_work_date" value="" <%if m_last_work_date="" then %> checked="checked" <%end if %> /><3E><>ü
|
||||
|
||||
<input type="radio" name="m_last_work_date" value="<22>Ⱓ" <%if m_last_work_date="<22>Ⱓ" then %> checked="checked" <%end if %> /><3E>Ⱓ
|
||||
<input type="text" style="width:120;text-align:center;CURSOR: pointer;" value="<%=m_last_work_date_st %>" name="m_last_work_date_st" readonly OnClick="winopn('/include/calendar.html?actval=m_last_work_date_st')">
|
||||
<img src="/images/common/btn_calendar.jpg" align="absmiddle" OnClick="winopn('/include/calendar.html?actval=m_last_work_date_st')" style="cursor:pointer;">
|
||||
~
|
||||
<input type="text" style="width:120;text-align:center;CURSOR: pointer;" value="<%=m_last_work_date_end %>" name="m_last_work_date_end" readonly OnClick="winopn('/include/calendar.html?actval=m_last_work_date_end')">
|
||||
<img src="/images/common/btn_calendar.jpg" align="absmiddle" OnClick="winopn('/include/calendar.html?actval=m_last_work_date_end')" style="cursor:pointer;">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="4" align="center">
|
||||
<a href="javascript:search_go('view');"><img src="/images/common/btn_smallsrch.gif" /></a>
|
||||
<a href="javascript:search_go('excel');"><img src="/images/common/btn_smallexcel.gif" /></a>
|
||||
</td>
|
||||
</tr>
|
||||
<% end if %>
|
||||
<tr>
|
||||
<td colspan="4">
|
||||
<table width="100%" class="table table-sm table-sm2 table-bordered table-head tr-colors">
|
||||
<%if command <> "excel" then %>
|
||||
<tr>
|
||||
<td colspan = "20" >
|
||||
<font color="red">* <20>ִ<EFBFBD> 30<33><30> <20><><EFBFBD><EFBFBD> ǥ<>õ˴ϴ<CBB4>.</font>
|
||||
</td>
|
||||
</tr>
|
||||
<% end if %>
|
||||
<tr height="30px">
|
||||
<td align="center" width="4%">ID</td>
|
||||
<td align="center" width="5%"><3E><><EFBFBD><EFBFBD></td>
|
||||
<td align="center" width="6%"><3E≯<EFBFBD></td>
|
||||
<td align="center" width="6%"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td align="center" width="7%"><3E><>ȭ<EFBFBD><C8AD>ȣ</td>
|
||||
<td align="center" width="6%"><3E>ֱپ<D6B1><D9BE><EFBFBD></td>
|
||||
<td align="center" width="14%"><3E><><EFBFBD><EFBFBD></td>
|
||||
<td align="center" width="4%"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td align="center" width="3%"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><br /><3E><><EFBFBD><EFBFBD></td>
|
||||
<%
|
||||
For i = 1 To UBOUND(n_grade)
|
||||
%>
|
||||
<td align="center" width="3%"><%=n_grade(i, 1) %></td>
|
||||
<%
|
||||
Next
|
||||
%>
|
||||
<td align="center" width="3%">KPC<br /><3E><><EFBFBD><EFBFBD></td>
|
||||
<td align="center" width="6%">Ȱ<><C8B0><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td align="center" width="6%"><3E><><EFBFBD><EFBFBD></td>
|
||||
<td align="center" width="9%"><3E><><EFBFBD><EFBFBD></td>
|
||||
</tr>
|
||||
<%
|
||||
If command <> "" then
|
||||
query = "select "
|
||||
if command <> "excel" then
|
||||
query = query & " top 30 "
|
||||
end if
|
||||
query = query & " new_id, m_name, left(m_jumin,7) as m_jumin, case when replace(isnull(m_mobile,''), '-', '') <> '' then m_mobile else isnull(m_tel, '') end as m_tel, "
|
||||
query = query & " (select top 1 name from category where code = isnull(m.m_Grade, '') and <20><><EFBFBD><EFBFBD> = 'grade') as m_grade, "
|
||||
'-- grade_1 grade_2 grade_3 grade_4 grade_5 grade_6 grade_7
|
||||
query = query & " (select top 1 name from category where code = isnull(m.grade_1, '') and <20><><EFBFBD><EFBFBD> = 'grade') as grade_1, "
|
||||
query = query & " (select top 1 name from category where code = isnull(m.grade_2, '') and <20><><EFBFBD><EFBFBD> = 'grade') as grade_2, "
|
||||
query = query & " (select top 1 name from category where code = isnull(m.grade_3, '') and <20><><EFBFBD><EFBFBD> = 'grade') as grade_3, "
|
||||
query = query & " (select top 1 name from category where code = isnull(m.grade_4, '') and <20><><EFBFBD><EFBFBD> = 'grade') as grade_4, "
|
||||
query = query & " (select top 1 name from category where code = isnull(m.grade_5, '') and <20><><EFBFBD><EFBFBD> = 'grade') as grade_5, "
|
||||
query = query & " (select top 1 name from category where code = isnull(m.grade_6, '') and <20><><EFBFBD><EFBFBD> = 'grade') as grade_6, "
|
||||
query = query & " (select top 1 name from category where code = isnull(m.grade_7, '') and <20><><EFBFBD><EFBFBD> = 'grade') as grade_7, "
|
||||
query = query & " (select top 1 name from category where code = isnull(m.kpc_grade, '') and <20><><EFBFBD><EFBFBD> = 'grade') as kpc_grade, "
|
||||
query = query & " (select top 1 name from category where code = m.m_gubun and <20><><EFBFBD><EFBFBD> = 'work') as m_gubun, "
|
||||
query = query & " (select top 1 b_fullname from bank where b_code = m.m_bank) as m_bank, substring(m_b_no,0,len(m_b_no)-1) + '**' as m_b_no "
|
||||
query = query & ", isnull(er_rate, '0') as er_rate, m_activity, m_note, m_offer_date, m_last_work_date from man m "
|
||||
query = query & " left outer join ( "
|
||||
query = query & " select m_no, cast(round(sum(er_cnt) * 1.00 / SUM(t_cnt) * 100.00, 2) as numeric(4,1)) as er_rate from ( "
|
||||
query = query & " select r.m_no, case when pass_stat = 'ERROR' then 1 else 0 end as er_cnt, 1 as t_cnt from RES r inner join T_INSPECTION_RES tir On r.r_sn = tir.r_sn "
|
||||
query = query & " where r.DelGubun='N' and r_error is null and s_error is null and m_error is null "
|
||||
if m_p_sn <> "" then
|
||||
query = query & " and (r.p_sn in (Select p_child_sn from T_PROJECT_FCS where p_sn in (Select p_sn From T_PROJECT_METHOD where p_method_cd = '2' and p_child_sn like '%" & m_p_sn & "%')) or r.p_sn like '%" & m_p_sn & "%' ) "
|
||||
end if
|
||||
query = query & " union all "
|
||||
query = query & " select m.new_id, case when tel_result = '2' then 1 else 0 end as er_cnt, 1 as t_cnt from new_cati.dbo.T_INSPECTION_CATI tic inner join man m on tic.tel_client_no = m.id WHERE tel_del_yn='N' "
|
||||
if m_p_sn <> "" then
|
||||
query = query & " and tic.prj_code in (Select prj_code From new_cati.dbo.project Where intranet_project like '%" & m_p_sn & "%') "
|
||||
end if
|
||||
query = query & " ) T group by m_no "
|
||||
query = query & " ) E on m.new_id = E.m_no "
|
||||
query = query & " where substring(m_jumin,7,1) <> 0 "
|
||||
if m_name <> "" then
|
||||
query = query & " and m_name like '%" & m_name & "%' "
|
||||
end if
|
||||
|
||||
if m_grade <> "" then
|
||||
query = query & " and isnull(m.m_Grade, '') like '%" & m_grade & "%' "
|
||||
end if
|
||||
if grade_1 <> "" then
|
||||
query = query & " and isnull(m.grade_1, '') like '%" & grade_1 & "%' "
|
||||
end if
|
||||
if grade_2 <> "" then
|
||||
query = query & " and isnull(m.grade_2, '') like '%" & grade_2 & "%' "
|
||||
end if
|
||||
if grade_3 <> "" then
|
||||
query = query & " and isnull(m.grade_3, '') like '%" & grade_3 & "%' "
|
||||
end if
|
||||
if grade_4 <> "" then
|
||||
query = query & " and isnull(m.grade_4, '') like '%" & grade_4 & "%' "
|
||||
end if
|
||||
if grade_5 <> "" then
|
||||
query = query & " and isnull(m.grade_5, '') like '%" & grade_5 & "%' "
|
||||
end if
|
||||
if grade_6 <> "" then
|
||||
query = query & " and isnull(m.grade_6, '') like '%" & grade_6 & "%' "
|
||||
end if
|
||||
if grade_7 <> "" then
|
||||
query = query & " and isnull(m.grade_7, '') like '%" & grade_7 & "%' "
|
||||
end if
|
||||
if kpc_grade <> "" then
|
||||
query = query & " and isnull(kpc_grade, '') like '%" & kpc_grade & "%' "
|
||||
end if
|
||||
if new_id <> "" then
|
||||
query = query & " and new_id like '%" & new_id & "%' "
|
||||
end if
|
||||
if m_p_sn <> "" then
|
||||
query = query & " and new_id in ( "
|
||||
query = query & " Select distinct m_no From( "
|
||||
query = query & " select m_no from res where (p_sn in ( "
|
||||
query = query & " select p_child_sn from T_PROJECT_FCS where p_sn in ( "
|
||||
query = query & " Select p_sn From T_PROJECT_METHOD where p_method_cd = '2' and p_child_sn like '%" & m_p_sn & "%')) "
|
||||
query = query & " or p_sn like '%" & m_p_sn & "%' ) "
|
||||
query = query & " and DelGubun = 'N' and r_error is null and s_error is null and m_error is null "
|
||||
query = query & " union all "
|
||||
query = query & " select new_id From new_cati.dbo.logfile l inner join man m on l.log_user = m.id "
|
||||
query = query & " where l.prj_code in (Select prj_code From new_cati.dbo.project Where intranet_project like '%" & m_p_sn & "%') "
|
||||
query = query & " union all "
|
||||
query = query & " select m.new_id from neakeun_work n inner join man m on left(n.neakeun_jumin, 6) = LEFT(m.m_jumin,6) and n.neakeun_name = m.m_name where n.p_child_sn like '%" & m_p_sn & "%' "
|
||||
query = query & " ) T "
|
||||
query = query & " ) "
|
||||
end if
|
||||
if m_tel <> "" then
|
||||
query = query & " and (replace(m_tel,'-','') like '%" & replace(m_tel,"-","") & "%' or replace(m_mobile,'-','') like '%" & replace(m_tel,"-","") & "%') "
|
||||
end if
|
||||
query = query & " and M_activity in ( "
|
||||
If m_activity1 <> "" then
|
||||
query = query & " '" & m_activity1 & "',"
|
||||
end if
|
||||
if m_activity2 <> "" then
|
||||
query = query & " '" & m_activity2 & "',"
|
||||
End IF
|
||||
IF m_activity3 <> "" then
|
||||
query = query & " '" & m_activity3 & "',"
|
||||
ENd IF
|
||||
IF m_activity4 <> "" then
|
||||
query = query & " '" & m_activity4 & "',"
|
||||
End If
|
||||
query = query & " '<27><>ĭ') "
|
||||
query = query & "and m_gubun in ("
|
||||
If m_gubun1 <> "" then
|
||||
query = query & " '" & m_gubun1 &"',"
|
||||
End If
|
||||
If m_gubun2 <> "" then
|
||||
query = query & " '" & m_gubun2 &"',"
|
||||
End If
|
||||
If m_gubun3 <> "" then
|
||||
query = query & " '" & m_gubun3 &"',"
|
||||
End If
|
||||
If m_gubun4 <> "" then
|
||||
query = query & " '" & m_gubun4 &"',"
|
||||
End If
|
||||
If m_gubun5 <> "" then
|
||||
query = query & " '" & m_gubun5 &"',"
|
||||
End If
|
||||
If m_gubun6 <> "" then
|
||||
query = query & " '" & m_gubun6 &"',"
|
||||
End If
|
||||
If m_gubun7 <> "" then
|
||||
query = query & " '" & m_gubun7 &"',"
|
||||
End If
|
||||
If m_gubun8 <> "" then
|
||||
query = query & " '" & m_gubun8 &"',"
|
||||
End If
|
||||
If m_gubun9 <> "" then
|
||||
query = query & " '" & m_gubun9 &"',"
|
||||
End If
|
||||
If m_gubun10 <> "" then
|
||||
query = query & " '" & m_gubun10 &"',"
|
||||
End If
|
||||
If m_gubun11 <> "" then
|
||||
query = query & " '" & m_gubun11 &"',"
|
||||
End If
|
||||
If m_gubun12 <> "" then
|
||||
query = query & " '" & m_gubun12 &"',"
|
||||
End If
|
||||
If m_gubun13 <> "" then
|
||||
query = query & " '" & m_gubun13 &"',"
|
||||
End If
|
||||
If m_gubun14 <> "" then
|
||||
query = query & " '" & m_gubun14 &"',"
|
||||
End If
|
||||
If m_gubun15 <> "" then
|
||||
query = query & " '" & m_gubun15 &"',"
|
||||
End If
|
||||
If m_gubun16 <> "" then
|
||||
query = query & " '" & m_gubun16 &"',"
|
||||
End If
|
||||
If m_gubun17 <> "" then
|
||||
query = query & " '" & m_gubun17 &"',"
|
||||
End If
|
||||
If m_gubun99 <> "" then
|
||||
query = query & " '" & m_gubun99 &"',"
|
||||
End If
|
||||
query = query & " '<27><>ĭ')"
|
||||
If m_offer_date <> "" then
|
||||
query = query & " and m_offer_date between '" & m_offer_date_st & "' and '" & m_offer_date_end & "' "
|
||||
End If
|
||||
If m_last_work_date <> "" then
|
||||
query = query & " and m_last_work_date between '" & m_last_work_date_st & "' and '" & m_last_work_date_end & "' "
|
||||
End If
|
||||
if p_method <> "" then
|
||||
query = query & " and cast(m.id as varchar) in ( "
|
||||
query = query & " select isnull(cast(id as varchar), '') as id from "
|
||||
query = query & " ( select m_name, m_jumin from "
|
||||
query = query & " ( select p_sn, m_name, left(m_jumin,6) as m_jumin from T_NEAKEUN_PAY union all "
|
||||
query = query & " select p_sn, m_name, left(m_jumin,6) as m_jumin from T_MYUN_PAY union all "
|
||||
query = query & " select p_sn, m_name, left(m_jumin,6) as m_jumin from myun_pay ) T "
|
||||
query = query & " where p_sn in (select p_child_sn from T_PROJECT_METHOD where p_method_cd = '" & p_method & "' and p_child_sn is not null ) "
|
||||
query = query & " group by m_name, m_jumin "
|
||||
query = query & " ) s left outer join man m on s.m_name = m.m_name and s.m_jumin = left(m.m_jumin,6)) "
|
||||
end if
|
||||
|
||||
query = query & " order by new_id "
|
||||
AdoRs.open query, adoconn, adopenstatic, adlockreadonly
|
||||
|
||||
'response.Write query
|
||||
i = 1
|
||||
do until AdoRs.eof
|
||||
|
||||
i = i+1
|
||||
tit = 4 + (i mod 2)
|
||||
%>
|
||||
<tr height="20px">
|
||||
<td align="center" class="tit<%= tit%>"><%= AdoRs("new_id")%> </td>
|
||||
<td align="center" class="tit<%= tit%>"><%= AdoRs("m_gubun")%> </td>
|
||||
<td align="center" class="tit<%= tit%>"><%= AdoRs("m_name")%> </td>
|
||||
<td align="center" class="tit<%= tit%>"><%= AdoRs("m_jumin")%> </td>
|
||||
<td align="center" class="tit<%= tit%>"><%= AdoRs("m_tel")%> </td>
|
||||
<td align="center" class="tit<%= tit%>"><%= AdoRs("m_last_work_date")%> </td>
|
||||
<td align="center" class="tit<%= tit%>"><%= AdoRs("m_note")%> </td>
|
||||
<td align="center" class="tit<%= tit%>"><%= AdoRs("er_rate")%>(<% if cint(AdoRs("er_rate")) <= 10 then response.Write "A" else if cint(AdoRs("er_rate")) <= 30 then response.Write "B" else if cint(AdoRs("er_rate")) <= 40 then response.Write "C" else if cint(AdoRs("er_rate")) < 50 then response.Write "D" else response.write "F" end if %>) </td>
|
||||
<td align="center" class="tit<%= tit%>"><%= AdoRs("m_grade")%> </td>
|
||||
<td align="center" class="tit<%= tit%>"><%= AdoRs("grade_1")%> </td>
|
||||
<td align="center" class="tit<%= tit%>"><%= AdoRs("grade_2")%> </td>
|
||||
<td align="center" class="tit<%= tit%>"><%= AdoRs("grade_3")%> </td>
|
||||
<td align="center" class="tit<%= tit%>"><%= AdoRs("grade_4")%> </td>
|
||||
<td align="center" class="tit<%= tit%>"><%= AdoRs("grade_5")%> </td>
|
||||
<td align="center" class="tit<%= tit%>"><%= AdoRs("grade_6")%> </td>
|
||||
<td align="center" class="tit<%= tit%>"><%= AdoRs("grade_7")%> </td>
|
||||
<td align="center" class="tit<%= tit%>"><%= AdoRs("kpc_grade")%> </td>
|
||||
<td align="center" class="tit<%= tit%>"><%= AdoRs("m_activity")%> </td>
|
||||
<td align="center" class="tit<%= tit%>"><%= AdoRs("m_bank")%> </td>
|
||||
<td align="center" class="tit<%= tit%>"><%= AdoRs("m_b_no")%> </td>
|
||||
</tr>
|
||||
<%
|
||||
AdoRs.moveNext
|
||||
loop
|
||||
AdoRs.close
|
||||
|
||||
if i = 1 then
|
||||
%>
|
||||
<tr height="100px">
|
||||
<td colspan="20" align="center" ><3E>˻<EFBFBD><CBBB><EFBFBD> <20>ڷᰡ <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD></td>
|
||||
</tr>
|
||||
<%
|
||||
end If
|
||||
end If
|
||||
%>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<%if command <> "excel" then%>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.content -->
|
||||
<!-- REQUIRED SCRIPTS -->
|
||||
<script>
|
||||
function search_go(command) {
|
||||
var frm = document.frm_man;
|
||||
if (!frm.m_activity1.checked && !frm.m_activity2.checked && !frm.m_activity3.checked && !frm.m_activity4.checked) {
|
||||
alert("Ȱ<><C8B0><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20>˻<EFBFBD><CBBB><EFBFBD> <20><EFBFBD><D7B8><EFBFBD> üũ<C3BC><C5A9><EFBFBD>ּ<EFBFBD><D6BC><EFBFBD>.");
|
||||
return;
|
||||
}
|
||||
if (!frm.m_gubun1.checked && !frm.m_gubun2.checked && !frm.m_gubun3.checked && !frm.m_gubun4.checked &&
|
||||
!frm.m_gubun5.checked && !frm.m_gubun6.checked && !frm.m_gubun7.checked && !frm.m_gubun8.checked &&
|
||||
!frm.m_gubun9.checked && !frm.m_gubun10.checked && !frm.m_gubun11.checked && !frm.m_gubun12.checked &&
|
||||
!frm.m_gubun13.checked && !frm.m_gubun14.checked && !frm.m_gubun15.checked && !frm.m_gubun16.checked && !frm.m_gubun17.checked && !frm.m_gubun99.checked) {
|
||||
alert("<22>ֿ<EFBFBD><D6BF><EFBFBD><EFBFBD><EFBFBD> <20><> <20>˻<EFBFBD><CBBB><EFBFBD> <20><EFBFBD><D7B8><EFBFBD> üũ<C3BC><C5A9><EFBFBD>ּ<EFBFBD><D6BC><EFBFBD>.");
|
||||
return;
|
||||
}
|
||||
if (frm.m_p_sn.value != "" && frm.m_p_sn.value.length < 6) {
|
||||
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20>ڵ<EFBFBD><DAB5><EFBFBD> 6<>ڸ<EFBFBD> <20>̻<EFBFBD> <20>Է<EFBFBD><D4B7>ϼž<CFBC><C5BE>մϴ<D5B4>.");
|
||||
return;
|
||||
}
|
||||
frm.action = "./interviewer_search.asp?command=" + command;
|
||||
frm.submit();
|
||||
}
|
||||
</script>
|
||||
</div>
|
||||
<!-- /.content-wrapper -->
|
||||
<!-- #include virtual = "include/footer.asp" -->
|
||||
<% end if %>
|
||||
324
inspection/interviewer_status.asp
Normal file
324
inspection/interviewer_status.asp
Normal file
@@ -0,0 +1,324 @@
|
||||
<!-- #include virtual = "include/header.asp" -->
|
||||
<%
|
||||
dim command
|
||||
command = Request("command")
|
||||
|
||||
s_date_st = request("s_date_st")
|
||||
s_date_end = request("s_date_end")
|
||||
s_name = request("s_name")
|
||||
s_p_sn = request("s_p_sn")
|
||||
s_p_subject = request("s_p_subject")
|
||||
s_column = replace(request("s_column"), " ", "")
|
||||
|
||||
Dim column_dic
|
||||
Set column_dic = Server.CreateObject("Scripting.Dictionary")
|
||||
With column_dic
|
||||
.Add "intranet_project", "<22><>Ʈ<EFBFBD><C6AE><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ"
|
||||
.Add "p_child_sn", "FCS<43><53><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ"
|
||||
.Add "p_subject", "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE>"
|
||||
.Add "work_kind", "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
||||
.Add "m_name", "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>"
|
||||
.Add "s_area", "<22><><EFBFBD><EFBFBD>"
|
||||
.Add "s_type", "<22><><EFBFBD><EFBFBD>Type"
|
||||
.Add "inspection_user_name", "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>"
|
||||
.Add "r_date", "<22>̰<EFBFBD><CCB0><EFBFBD>¥"
|
||||
.Add "sum_esc", "<22>̰<EFBFBD><CCB0>μ<EFBFBD>"
|
||||
.Add "sum_tok", "TOK"
|
||||
.Add "sum_pass", "PASS"
|
||||
.Add "sum_err", "ERR"
|
||||
.Add "sum_notel", "NOTEL"
|
||||
End With
|
||||
|
||||
if command <> "excel" then
|
||||
%>
|
||||
<!-- #include virtual = "include/left.asp" -->
|
||||
<!-- Content Wrapper. Contains page content -->
|
||||
<div class="content-wrapper">
|
||||
<style>
|
||||
.t_table .t_head{
|
||||
cursor:pointer;
|
||||
}
|
||||
</style>
|
||||
<!-- Content Header (Page header) -->
|
||||
<div class="content-header">
|
||||
<h1>FF <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>Ȳ</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=FF_Status.xls"
|
||||
end if
|
||||
%>
|
||||
<form name="interviewer_status" method="post">
|
||||
<input type="hidden" value="<%=command %>" name="command" />
|
||||
<input type="hidden" value="<%=s_column %>" name="s_column_arr" />
|
||||
<table class="table table-sm table-sm2 table-bordered table-head tr-colors">
|
||||
<% If command <> "excel" Then %>
|
||||
<tr>
|
||||
<td align="center" width="12%"><3E><> <20><></td>
|
||||
<td align="left" width="38%">
|
||||
<input type="text" style="width:120;text-align:center;CURSOR: pointer;" value="<%=s_date_st %>" name="s_date_st" class='selectDate' readonly />
|
||||
~
|
||||
<input type="text" style="width:120;text-align:center;CURSOR: pointer;" value="<%=s_date_end %>" name="s_date_end" class='selectDate' readonly />
|
||||
</td>
|
||||
<td align="center" width="12%"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD></td>
|
||||
<td align="left" width="38%">
|
||||
<input type="text" name="s_name" value="<%=s_name %>" style="width:200px;"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" width="12%"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20>ڵ<EFBFBD></td>
|
||||
<td align="left" width="38%">
|
||||
<input type="text" name="s_p_sn" value="<%=s_p_sn %>" style="width:200px;"/>
|
||||
</td>
|
||||
<td align="center" width="12%"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><></td>
|
||||
<td align="left" width="38%">
|
||||
<input type="text" name="s_p_subject" value="<%=s_p_subject %>" style="width:200px;"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" width="12%"><3E><><EFBFBD><EFBFBD> Column <20><><EFBFBD><EFBFBD></td>
|
||||
<td align="left" width="88%" colspan="3">
|
||||
<label class='mx-2' for="r_date"><input type="checkbox" value="r_date" id="r_date" name="s_column"/> <20>̰<EFBFBD><CCB0><EFBFBD>¥</label>
|
||||
<label class='mx-2' for="intranet_project"><input type="checkbox" value="intranet_project" id="intranet_project" name="s_column"/> <20><>Ʈ<EFBFBD><C6AE><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ</label>
|
||||
<label class='mx-2' for="p_child_sn"><input type="checkbox" value="p_child_sn,p_subject" id="p_child_sn" name="s_column"/> FCS<43><53><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ</label>
|
||||
<label class='mx-2' for="s_area"><input type="checkbox" value="s_area" id="s_area" name="s_column"/> <20><><EFBFBD><EFBFBD></label>
|
||||
<label class='mx-2' for="s_type"><input type="checkbox" value="s_type" id="s_type" name="s_column"/> <20><><EFBFBD><EFBFBD>Type</label>
|
||||
<label class='mx-2' for="m_name"><input type="checkbox" value="m_name" id="m_name" name="s_column"/> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD></label>
|
||||
<label class='mx-2' for="inspection_user_name"><input type="checkbox" value="inspection_user_name" id="inspection_user_name" name="s_column"/> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD></label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3" align="right"><font color="red"><b><3E>˻<EFBFBD> <20><> 1<>п<EFBFBD><D0BF><EFBFBD> 10<31><30> <20><><EFBFBD><EFBFBD> <20>ҿ<EFBFBD><D2BF><EFBFBD> <20><> <20>ֽ<EFBFBD><D6BD>ϴ<EFBFBD></b></font></td>
|
||||
<td colspan="1" align="right">
|
||||
<a href="javascript:search_go('view');"><img src="/images/common/btn_smallsrch.gif" /></a>
|
||||
<a href="javascript:search_go('excel');"><img src="/images/common/btn_smallexcel.gif" /></a>
|
||||
</td>
|
||||
</tr>
|
||||
<% End if %>
|
||||
<% if command <> "" Then %>
|
||||
<tr>
|
||||
<td colspan="4" align="center">
|
||||
<div style="width:100%;overflow-y:scroll;max-height:545px;height:545px;">
|
||||
<table class="t_table table table-sm table-sm2 table-bordered table-head tr-colors">
|
||||
<%
|
||||
query = " SELECT "
|
||||
if s_column <> "" Then
|
||||
query = query & " " & s_column & ", "
|
||||
else
|
||||
query = query & " intranet_project, p_subject, m_name, "
|
||||
End if
|
||||
query = query & " SUM(esc_cnt) as sum_esc, SUM(tok_cnt) as sum_tok, SUM(err_cnt) as sum_err, SUM(no_tel) as sum_notel, SUM(pass_cnt) as sum_pass "
|
||||
query = query & " FROM "
|
||||
query = query & " ( "
|
||||
query = query & " SELECT TPF.p_subject, CASE WHEN TPF.intranet_project = '' THEN TPF.p_child_sn ELSE TPF.intranet_project END as intranet_project, "
|
||||
query = query & " TPF.p_child_sn, R.r_date, R.s_area, R.s_type, "
|
||||
query = query & " R.m_name, R.m_no, "
|
||||
query = query & " 1 as esc_cnt, "
|
||||
query = query & " CASE WHEN TIR.r_result = '1' AND TIR.qc_stat = 'OK' THEN 1 ELSE 0 END as tok_cnt, "
|
||||
query = query & " CASE WHEN TIR.r_result <> '1' AND TIR.pass_stat = 'PASS' THEN 1 ELSE 0 END as pass_cnt, "
|
||||
query = query & " CASE WHEN TIR.pass_stat = 'ERROR' THEN 1 ELSE 0 END as err_cnt, "
|
||||
query = query & " CASE WHEN TIR.r_result IN ('5', '6', '7') AND TIR.pass_stat NOT IN ('ERROR', 'PASS') THEN 1 ELSE 0 END as no_tel, "
|
||||
query = query & " ISNULL(M.m_name, ISNULL(P.p_name, '')) as inspection_user_name, ISNULL(TIR.inspection_user, '') as inspection_user, CONVERT(VARCHAR(10), TIR.inspection_date, 120) as inspection_date "
|
||||
query = query & " FROM RES R WITH(NOLOCK) "
|
||||
query = query & " LEFT OUTER JOIN T_INSPECTION_RES TIR WITH(NOLOCK) ON R.r_sn = TIR.r_sn "
|
||||
query = query & " LEFT OUTER JOIN V_PROJECT_FCS TPF WITH(NOLOCK) ON R.p_sn = TPF.p_child_sn "
|
||||
query = query & " LEFT OUTER JOIN Man M WITH(NOLOCK) ON TIR.inspection_user = M.id "
|
||||
query = query & " LEFT OUTER JOIN Person P WITH(NOLOCK) ON TIR.inspection_user = P.p_no "
|
||||
query = query & " WHERE DelGubun = 'N' AND r_error IS NULL AND s_error IS NULL AND m_error IS NULL AND q_error IS NULL "
|
||||
query = query & " ) T "
|
||||
query = query & " WHERE r_date BETWEEN '" & s_date_st & "' AND '" & s_date_end & "' "
|
||||
If s_name <> "" Then
|
||||
query = query & " AND m_name LIKE '%" & s_name & "%' "
|
||||
End If
|
||||
If s_p_sn <> "" Then
|
||||
query = query & " AND intranet_project LIKE '" & s_p_sn & "%' "
|
||||
End If
|
||||
If s_p_subject <> "" Then
|
||||
query = query & " AND p_subject LIKE '%" & s_p_subject & "%' "
|
||||
End If
|
||||
if s_column <> "" Then
|
||||
query = query & " GROUP BY " & s_column & " "
|
||||
query = query & " ORDER BY " & s_column & " "
|
||||
Else
|
||||
query = query & " GROUP BY intranet_project, p_subject, m_name "
|
||||
query = query & " ORDER BY intranet_project, p_subject, m_name "
|
||||
End if
|
||||
'response.Write query
|
||||
AdoRs.open query, adoconn, adopenstatic, adlockreadonly
|
||||
|
||||
If AdoRs.RecordCount > 0 Then
|
||||
%>
|
||||
<tr height="25px" class="t_head">
|
||||
<%
|
||||
For i = 0 To AdoRs.fields.count - 1
|
||||
%>
|
||||
<td align="center"><%= column_dic.Item(AdoRs.fields(i).Name)%> </td>
|
||||
<%
|
||||
Next
|
||||
%>
|
||||
</tr>
|
||||
<%
|
||||
Else
|
||||
%>
|
||||
<tr height="25px">
|
||||
<td align="center" width="100%"><3E>˻<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD></td>
|
||||
</tr>
|
||||
<%
|
||||
End If
|
||||
|
||||
Do While Not AdoRs.Eof
|
||||
%>
|
||||
<tr class="t_contents">
|
||||
<%
|
||||
For i = 0 To AdoRs.fields.count - 1 ' <20><><EFBFBD><EFBFBD> - 1 <20><> <20>ؾߵǴµ<C7B4>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>÷<EFBFBD> cnt <20><> Detail ȭ<><C8AD> <20><>ũ<EFBFBD><C5A9> <20>ɱ<EFBFBD><C9B1><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
%>
|
||||
<td align="center" style=""><%= AdoRs.fields(i) %></td>
|
||||
<%
|
||||
Next
|
||||
%>
|
||||
</tr>
|
||||
<%
|
||||
AdoRs.MoveNext
|
||||
Loop
|
||||
%>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<% End if %>
|
||||
</table>
|
||||
</form>
|
||||
<%if command <> "excel" then%>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.content -->
|
||||
<!-- REQUIRED SCRIPTS -->
|
||||
<script>
|
||||
$(function () {
|
||||
$(".selectDate").datepicker();
|
||||
if ($("input[name=s_column_arr]").val() != "") {
|
||||
$("input[name=s_column]").each(function (i) {
|
||||
if ($("input[name=s_column_arr]").val().indexOf($(this).val()) > -1) {
|
||||
$(this).prop("checked", true);
|
||||
}
|
||||
});
|
||||
}
|
||||
var sort_col_check = [];
|
||||
$(".t_table .t_head td").each(function (index) {
|
||||
sort_col_check[index] = 0; // 1<><31> asc, 2<><32> desc, 0<><30> <20>ʱ<EFBFBD>
|
||||
});
|
||||
$(".t_table .t_head td").click(function () {
|
||||
// $(".t_table .t_head td").index(this) Ŭ<><C5AC><EFBFBD><EFBFBD> <20>÷<EFBFBD><C3B7><EFBFBD> INDEX
|
||||
// $(".t_table .t_head > td").length tr<74><72> column <20><>
|
||||
// $(".t_table .t_contents").length tr<74><72> row <20><>
|
||||
// var arr_tb = new array($(".t_table .t_contents").length, $(".t_table .t_head > td").length);
|
||||
var num_yn = true;
|
||||
var equal_value = true;
|
||||
var prev_value = "";
|
||||
var s_col_index = $(".t_table .t_head td").index(this);
|
||||
var arr_tb = [];
|
||||
if (sort_col_check[s_col_index] == 1) {
|
||||
sort_col_check[s_col_index] = 2;
|
||||
} else {
|
||||
sort_col_check[s_col_index] = 1;
|
||||
}
|
||||
$(".t_table .t_contents").each(function (tr_i) {
|
||||
arr_tb[tr_i] = $(this).find("td").eq(s_col_index).text();
|
||||
if (prev_value == "") {
|
||||
prev_value = arr_tb[tr_i];
|
||||
}
|
||||
if (prev_value != arr_tb[tr_i]) {
|
||||
equal_value = false;
|
||||
}
|
||||
if (isNaN(arr_tb[tr_i]) == true) {
|
||||
num_yn = false;
|
||||
}
|
||||
$(this).find("td").each(function (td_i) {
|
||||
if (td_i != s_col_index) {
|
||||
arr_tb[tr_i] = arr_tb[tr_i] + "^||^" + $(this).text();
|
||||
}
|
||||
});
|
||||
});
|
||||
if (equal_value != true) { // <20>÷<EFBFBD><C3B7><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>ʾƾ<CABE> Sort <20><><EFBFBD><EFBFBD>
|
||||
if (num_yn == true) { // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD>
|
||||
if (sort_col_check[s_col_index] == 1) {
|
||||
arr_tb.sort(function (a, b) { return a.split("^||^")[0] - b.split("^||^")[0]; }); // <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> Asc
|
||||
$(".t_table .t_head td").each(function (e) {
|
||||
if (e == s_col_index) {
|
||||
$(this).text($(this).text().replace("<22><>", "").replace("<22><>", "") + "<22><>");
|
||||
} else {
|
||||
$(this).text($(this).text().replace("<22><>", "").replace("<22><>", ""));
|
||||
}
|
||||
});
|
||||
} else if (sort_col_check[s_col_index] == 2) {
|
||||
arr_tb.reverse(function (a, b) { return a.split("^||^")[0] - b.split("^||^")[0]; }); // <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> Desc
|
||||
$(".t_table .t_head td").each(function (e) {
|
||||
if (e == s_col_index) {
|
||||
$(this).text($(this).text().replace("<22><>", "").replace("<22><>", "") + "<22><>");
|
||||
} else {
|
||||
$(this).text($(this).text().replace("<22><>", "").replace("<22><>", ""));
|
||||
}
|
||||
});
|
||||
}
|
||||
} else { // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD>
|
||||
if (sort_col_check[s_col_index] == 1) {
|
||||
arr_tb.sort(); // <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> Asc
|
||||
$(".t_table .t_head td").each(function (e) {
|
||||
if (e == s_col_index) {
|
||||
$(this).text($(this).text().replace("<22><>", "").replace("<22><>", "") + "<22><>");
|
||||
} else {
|
||||
$(this).text($(this).text().replace("<22><>", "").replace("<22><>", ""));
|
||||
}
|
||||
});
|
||||
} else if (sort_col_check[s_col_index] == 2) {
|
||||
arr_tb.reverse(); // <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> Desc
|
||||
$(".t_table .t_head td").each(function (e) {
|
||||
if (e == s_col_index) {
|
||||
$(this).text($(this).text().replace("<22><>", "").replace("<22><>", "") + "<22><>");
|
||||
} else {
|
||||
$(this).text($(this).text().replace("<22><>", "").replace("<22><>", ""));
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
$(".t_table .t_contents").each(function (tr_i) {
|
||||
var tmp_arr = arr_tb[tr_i].split("^||^");
|
||||
var chk_ind = 0;
|
||||
$(this).find("td").eq(s_col_index).text(tmp_arr[0]);
|
||||
for (var i = 0; i < tmp_arr.length; i++) {
|
||||
if (i != s_col_index) {
|
||||
chk_ind = chk_ind + 1;
|
||||
$(this).find("td").eq(i).text(tmp_arr[chk_ind]);
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
function search_go(command) {
|
||||
var frm = document.interviewer_status;
|
||||
if (frm.s_date_st.value == "" || frm.s_date_end.value == "") {
|
||||
alert("<22>Ⱓ<EFBFBD><E2B0A3> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ּ<EFBFBD><D6BC><EFBFBD>");
|
||||
return;
|
||||
}
|
||||
frm.action = "./interviewer_status.asp?command=" + command;
|
||||
frm.submit();
|
||||
}
|
||||
</script>
|
||||
</div>
|
||||
<!-- /.content-wrapper -->
|
||||
<!-- #include virtual = "include/footer.asp" -->
|
||||
<% end if %>
|
||||
97
inspection/interviewer_work_day.asp
Normal file
97
inspection/interviewer_work_day.asp
Normal file
@@ -0,0 +1,97 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<%
|
||||
dim Query
|
||||
dim adors
|
||||
dim new_id : new_id = request("new_id")
|
||||
|
||||
set adors = server.CreateObject("adodb.recordset")
|
||||
%>
|
||||
<html>
|
||||
<head>
|
||||
<script LANGUAGE="JavaScript" SRC="/js/common.js"></script>
|
||||
<script src="/js/jquery.min.js"></script>
|
||||
<script src="/js/jquery-ajax-call.js"></script>
|
||||
<script src="/js/jquery.form.min.js"></script>
|
||||
<script language=javascript>
|
||||
|
||||
</script>
|
||||
<meta http-equiv="content-type" content="text/html; charset=EUC-KR">
|
||||
<link rel="StyleSheet" href="/css/basic.css" type="text/css">
|
||||
<style>
|
||||
.container{
|
||||
font-size: 17px;
|
||||
letter-spacing: 1px;
|
||||
margin: 15px 45px;
|
||||
font-family: 'malgun gothic';
|
||||
}
|
||||
|
||||
.h_work{
|
||||
border: 2px solid black;
|
||||
padding: 10px;
|
||||
text-align: center;
|
||||
border-radius: 20px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.b_work{
|
||||
text-align: center;
|
||||
margin-top: 10px;
|
||||
height: 367px;
|
||||
overflow-y: scroll;
|
||||
border: 1px solid #eaeaea;
|
||||
padding: 10px;
|
||||
border-radius: 23px;
|
||||
}
|
||||
.b_work > div{
|
||||
width: 30%;
|
||||
font-size:13px;
|
||||
text-align: center;
|
||||
border: 1px solid #8d8d8d;
|
||||
margin: 2px auto;
|
||||
padding: 4px;
|
||||
padding-top: 0px;
|
||||
border-radius: 8px;
|
||||
letter-spacing: -1px;
|
||||
display:inline-block;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<%
|
||||
Query = ""
|
||||
Query = Query & " SELECT max(div) as div, date FROM " & Vbcrlf
|
||||
Query = Query & " ( " & Vbcrlf
|
||||
Query = Query & " SELECT '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' as div, date FROM neakeun_in_out_time WHERE neakeun_name = (SELECT top 1 m_name FROM man where new_id = '" & new_id & "') UNION ALL " & Vbcrlf
|
||||
Query = Query & " SELECT 'CATI <20>α<EFBFBD><CEB1><EFBFBD>' as div, login_date AS date FROM new_cati.dbo.login WHERE myun_id = (SELECT top 1 id FROM man where new_id = '" & new_id & "') UNION ALL " & Vbcrlf
|
||||
Query = Query & " SELECT 'K-FCS(<28><><EFBFBD><EFBFBD>)' as div, r_date as date FROM res WHERE m_no = '" & new_id & "' " & Vbcrlf
|
||||
|
||||
Query = Query & " ) T " & Vbcrlf
|
||||
Query = Query & " GROUP BY date " & Vbcrlf
|
||||
Query = Query & " ORDER BY date " & Vbcrlf
|
||||
|
||||
adors.open Query, adoconn, 1
|
||||
%>
|
||||
<div class="container">
|
||||
<% If adors.recordCount > 0 Then %>
|
||||
<div class="h_work">
|
||||
<span id="st_date"><% adors.moveFirst %><%= adors("date")%></span> ~ <span id="ed_date"><% adors.moveLast %><%= adors("date")%></span> (<28><> <span id="cnt_date"><%= adors.recordCount%></span><3E><>)
|
||||
</div>
|
||||
<div class="b_work">
|
||||
<%
|
||||
adors.moveFirst
|
||||
Do While Not adors.Eof
|
||||
%>
|
||||
<div><%= adors("div")%></div>-<div><%= adors("date") %></div><br>
|
||||
<%
|
||||
adors.MoveNext
|
||||
Loop
|
||||
%>
|
||||
</div>
|
||||
<% End If %>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
<%
|
||||
set adors = nothing
|
||||
|
||||
%>
|
||||
29
inspection/manJson.asp
Normal file
29
inspection/manJson.asp
Normal file
@@ -0,0 +1,29 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<%
|
||||
|
||||
|
||||
manIDs = request("mans")
|
||||
Dim resultJson
|
||||
resultJson = "["
|
||||
Response.CharSet = "EUC-KR" '<27>ѱ<EFBFBD>
|
||||
Response.AddHeader "Pragma","no-cache"
|
||||
Response.AddHeader "cache-control", "no-staff"
|
||||
Response.Expires = -1
|
||||
|
||||
query = ""
|
||||
query = query & " SELECT new_id, m_name, LEFT(m_jumin, 6) AS m_jumin "
|
||||
query = query & " FROM MAN "
|
||||
query = query & " WHERE new_id IN ('" & replace(manIDs, ",", "','") & "') "
|
||||
|
||||
Rs.Open query, adoConn, 1
|
||||
do while not Rs.eof
|
||||
resultJson = resultJson & "{""id"":""" & Rs("new_id") & """,""name"":""" & Rs("m_name") & """,""birth"":""" & Rs("m_jumin") & """}"
|
||||
Rs.movenext
|
||||
if not Rs.eof then
|
||||
resultJson = resultJson & ","
|
||||
end if
|
||||
loop
|
||||
Rs.close
|
||||
resultJson = resultJson & "]"
|
||||
Response.Write resultJson
|
||||
%>
|
||||
271
inspection/money_list_2015.asp
Normal file
271
inspection/money_list_2015.asp
Normal file
@@ -0,0 +1,271 @@
|
||||
<!-- #include virtual = "include/header.asp" -->
|
||||
<%
|
||||
dim command
|
||||
command = Request("command")
|
||||
|
||||
dim p_field_date
|
||||
dim pay_month
|
||||
dim sel_sv
|
||||
|
||||
p_field_date = request("p_field_date")
|
||||
pay_month = LEFT((DateAdd("m",1,p_field_date)), 7)
|
||||
sel_sv = request("sel_sv")
|
||||
|
||||
if command <> "excel" then
|
||||
query = "select * from person "
|
||||
query = query & "where ( p_depart='12' and p_job_part = '03' AND p_resign='0' and isnull(krc_in_date,'') <> '')" 'sv
|
||||
query = query & " order by p_depart, p_order "
|
||||
'response.Write query
|
||||
adors.open query, adoconn, adopenstatic, adlockreadonly
|
||||
Max_person = 0
|
||||
redim person_table(adors.recordcount,3)
|
||||
do while not adors.eof
|
||||
Max_person = Max_person + 1
|
||||
person_table(Max_person,1) = adors("p_no")
|
||||
person_table(Max_person,2) = adors("p_name")
|
||||
person_table(Max_person,3) = adors("p_security")
|
||||
adors.movenext
|
||||
loop
|
||||
adors.close
|
||||
%>
|
||||
<!-- #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> <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">
|
||||
<%
|
||||
End if
|
||||
if command = "excel" then
|
||||
Response.ContentType = "application/vnd.ms-excel"
|
||||
Response.AddHeader "Content-Disposition","attachment;filename=<3D><><EFBFBD><EFBFBD><EFBFBD>볻<EFBFBD><EBB3BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ.xls"
|
||||
end if
|
||||
%>
|
||||
<form name="neakeun_work_time" method="post" >
|
||||
<%if command <> "excel" then%>
|
||||
<table width="1400px" class="table table-sm table-sm2 table-bordered table-head tr-colors">
|
||||
<tr>
|
||||
<td align="center" ><3E><><EFBFBD><EFBFBD></td>
|
||||
<td align="left">
|
||||
<input type="text" style="width:120px;text-align:center;CURSOR:pointer;" value="<%=p_field_date %>" name='p_field_date' id="p_field_date" readonly />
|
||||
<select name='sel_sv'>
|
||||
<option value='0'><3E><>ü</option>
|
||||
<%for j=1 to Max_person%>
|
||||
<option value='<%=person_table(j,1)%>'
|
||||
<% if cstr(person_table(j,1)) = cstr(sel_sv) then %>
|
||||
selected
|
||||
<% end if %>
|
||||
><%=person_table(j,2)%></option>
|
||||
<%next%>
|
||||
</select>
|
||||
<img src="/images/common/btn_smallsrch.gif" align="absmiddle" onclick="search('view');" style='cursor:pointer'>
|
||||
<img src="/images/common/btn_smallexcel.gif" align="absmiddle" onclick="search('excel');" style='CURSOR:pointer;' title ='<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>'>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<% end if %>
|
||||
<% if command <> "" then %>
|
||||
<table width="1400px" class="table table-sm table-sm2 table-bordered table-head tr-colors" style="font-size:11px;">
|
||||
<tr>
|
||||
<td align="center" style="width:34px">ȸ<><C8B8></td>
|
||||
<td align="center" style="width:60px"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD>ڵ<EFBFBD></td>
|
||||
<td align="center" style="width:315px"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE></td>
|
||||
<td align="center" style="width:50px"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td align="center" style="width:105px"><3E>ֹι<D6B9>ȣ</td>
|
||||
<td align="center" style="width:60px"><3E><><EFBFBD><EFBFBD></td>
|
||||
<td align="center" style="width:33px"><3E>ܰ<EFBFBD></td>
|
||||
<td align="center" style="width:33px"><3E><><EFBFBD><EFBFBD></td>
|
||||
<td align="center" style="width:44px"><3E>ѱݾ<D1B1></td>
|
||||
<td align="center" style="width:77px"><3E>ٹ<EFBFBD><D9B9><EFBFBD>¥</td>
|
||||
<td align="center" style="width:77px"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td align="center" style="width:95px"><3E><>ȭ<EFBFBD><C8AD>ȣ</td>
|
||||
<td align="center" style="width:70px"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td align="center" style="width:80px"><3E><><EFBFBD>¹<EFBFBD>ȣ</td>
|
||||
<td align="center" style="width:45px"><3E>Է<EFBFBD><D4B7><EFBFBD></td>
|
||||
<td align="center" style="width:77px"><3E>Է³<D4B7>¥</td>
|
||||
<td align="center" style="width:115px"><3E><><EFBFBD>繮<EFBFBD><E7B9AE><EFBFBD><EFBFBD>ȣ</td>
|
||||
<td align="center" style="width:60px"><3E><><EFBFBD><EFBFBD></td>
|
||||
</tr>
|
||||
<%
|
||||
sql = sql & " SELECT *, " & vbCrlf
|
||||
sql = sql & " CASE " & vbCrlf
|
||||
sql = sql & " WHEN p_subject LIKE '%KRC%' THEN 'KRC' " & vbCrlf
|
||||
sql = sql & " WHEN p_subject LIKE '%KRD%' THEN 'KRD' " & vbCrlf
|
||||
sql = sql & " ELSE 'KRI' " & vbCrlf
|
||||
sql = sql & " END AS comp " & vbCrlf
|
||||
sql = sql & " FROM ( " & vbCrlf
|
||||
sql = sql & " SELECT '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' AS m_n, " & vbCrlf
|
||||
sql = sql & " TMP.m_name, " & vbCrlf
|
||||
sql = sql & " LEFT(m.M_JUMIN, 6) + '-' + RIGHT(m.M_JUMIN, 7) AS M_JUMIN, " & vbCrlf
|
||||
sql = sql & " M.m_mobile, " & vbCrlf
|
||||
sql = sql & " b.b_fullname, " & vbCrlf
|
||||
sql = sql & " m.m_b_no, " & vbCrlf
|
||||
sql = sql & " TMP.p_sn, " & vbCrlf
|
||||
sql = sql & " TPM.p_subject, " & vbCrlf
|
||||
sql = sql & " work_dt, " & vbCrlf
|
||||
sql = sql & " D.d_write_date, " & vbCrlf
|
||||
sql = sql & " s_gubun, " & vbCrlf
|
||||
sql = sql & " s_pay_unit, " & vbCrlf
|
||||
sql = sql & " s_wan, " & vbCrlf
|
||||
sql = sql & " s_sum, " & vbCrlf
|
||||
sql = sql & " CONVERT(VARCHAR(15), insert_dt, 23) AS insert_dt, " & vbCrlf
|
||||
sql = sql & " p.p_name, " & vbCrlf
|
||||
sql = sql & " ISNULL(tmp.attribute05, ' ') AS attribute05 " & vbCrlf
|
||||
sql = sql & " FROM t_neakeun_pay TMP WITH(NOLOCK) " & vbCrlf
|
||||
sql = sql & " LEFT OUTER JOIN neakeun_work NW WITH(NOLOCK) " & vbCrlf
|
||||
sql = sql & " ON TMP.attribute01 = CAST(NW.id AS VARCHAR) " & vbCrlf
|
||||
sql = sql & " LEFT OUTER JOIN T_PROJECT_METHOD TPM " & vbCrlf
|
||||
sql = sql & " ON TMP.p_sn = TPM.p_child_sn " & vbCrlf
|
||||
sql = sql & " LEFT OUTER JOIN person P WITH(NOLOCK) " & vbCrlf
|
||||
sql = sql & " ON TMP.insert_user = p.p_no " & vbCrlf
|
||||
sql = sql & " LEFT OUTER JOIN man M WITH(NOLOCK) " & vbCrlf
|
||||
sql = sql & " ON LEFT(tmp.m_jumin, 6) = LEFT(m.m_jumin, 6) " & vbCrlf
|
||||
sql = sql & " AND TMP.m_name = m.m_name " & vbCrlf
|
||||
sql = sql & " LEFT OUTER JOIN bank B WITH(NOLOCK) " & vbCrlf
|
||||
sql = sql & " ON m.M_bank = b.b_code " & vbCrlf
|
||||
sql = sql & " LEFT OUTER JOIN Document D WITH(NOLOCK) " & vbCrlf
|
||||
sql = sql & " ON ISNULL(TMP.attribute05, '') = D.d_no " & vbCrlf
|
||||
sql = sql & " WHERE D.d_order_cnt = '77' " & vbCrlf
|
||||
sql = sql & " AND ( " & vbCrlf
|
||||
sql = sql & " (work_dt BETWEEN CAST(DATEADD(m, -1, CAST('2024-07-26' AS DATE)) AS VARCHAR) AND '2024-07-25' " & vbCrlf
|
||||
sql = sql & " AND NW.in_time + NW.out_time + NW.p_sebu_code <> '000000004') " & vbCrlf
|
||||
sql = sql & " OR (D.d_write_date BETWEEN '2024-07-06' AND CAST(DATEADD(m, 1, CAST('2024-07-05' AS DATE)) AS VARCHAR) " & vbCrlf
|
||||
sql = sql & " AND NW.in_time + NW.out_time + NW.p_sebu_code = '000000004') " & vbCrlf
|
||||
sql = sql & " ) " & vbCrlf
|
||||
sql = sql & " UNION ALL " & vbCrlf
|
||||
sql = sql & " SELECT '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' AS m_n, " & vbCrlf
|
||||
sql = sql & " TMP.m_name, " & vbCrlf
|
||||
sql = sql & " LEFT(m.M_JUMIN, 6) + '-' + RIGHT(m.M_JUMIN, 7) AS M_JUMIN, " & vbCrlf
|
||||
sql = sql & " M.m_mobile, " & vbCrlf
|
||||
sql = sql & " b.b_fullname, " & vbCrlf
|
||||
sql = sql & " m.m_b_no, " & vbCrlf
|
||||
sql = sql & " TMP.p_sn, " & vbCrlf
|
||||
sql = sql & " TPM.p_subject, " & vbCrlf
|
||||
sql = sql & " TMP.work_dt, " & vbCrlf
|
||||
sql = sql & " D.d_write_date, " & vbCrlf
|
||||
sql = sql & " s_gubun, " & vbCrlf
|
||||
sql = sql & " s_pay_unit, " & vbCrlf
|
||||
sql = sql & " s_wan + ISNULL(add_count, 0) AS s_wan, " & vbCrlf
|
||||
sql = sql & " s_sum, " & vbCrlf
|
||||
sql = sql & " CONVERT(VARCHAR(15), insert_dt, 23) AS insert_dt, " & vbCrlf
|
||||
sql = sql & " p.p_name, " & vbCrlf
|
||||
sql = sql & " ISNULL(TMP.attribute05, ' ') AS attribute05 " & vbCrlf
|
||||
sql = sql & " FROM t_myun_pay TMP WITH(NOLOCK) " & vbCrlf
|
||||
sql = sql & " LEFT OUTER JOIN T_PROJECT_METHOD TPM WITH(NOLOCK) " & vbCrlf
|
||||
sql = sql & " ON TMP.p_sn = TPM.p_child_sn " & vbCrlf
|
||||
sql = sql & " LEFT OUTER JOIN person P WITH(NOLOCK) " & vbCrlf
|
||||
sql = sql & " ON TMP.insert_user = p.p_no " & vbCrlf
|
||||
sql = sql & " LEFT OUTER JOIN man M WITH(NOLOCK) " & vbCrlf
|
||||
sql = sql & " ON LEFT(tmp.m_jumin, 6) = LEFT(m.m_jumin, 6) " & vbCrlf
|
||||
sql = sql & " AND TMP.m_name = m.m_name " & vbCrlf
|
||||
sql = sql & " LEFT OUTER JOIN bank B WITH(NOLOCK) " & vbCrlf
|
||||
sql = sql & " ON m.M_bank = b.b_code " & vbCrlf
|
||||
sql = sql & " LEFT OUTER JOIN Document D WITH(NOLOCK) " & vbCrlf
|
||||
sql = sql & " ON ISNULL(TMP.attribute05, '') = D.d_no " & vbCrlf
|
||||
sql = sql & " WHERE TMP.confirm_yn = 'Y' " & vbCrlf
|
||||
sql = sql & " AND s_sum <> '0' " & vbCrlf
|
||||
sql = sql & " AND D.d_order_cnt = '77' " & vbCrlf
|
||||
sql = sql & " AND D.d_write_date BETWEEN '2024-07-06' AND CAST(DATEADD(m, 1, CAST('2024-07-05' AS DATE)) AS VARCHAR) " & vbCrlf
|
||||
sql = sql & " ) T " & vbCrlf
|
||||
sql = sql & " ORDER BY p_sn, s_gubun; " & vbCrlf
|
||||
' response.Write sql
|
||||
AdoRs.open sql, adoconn, adopenstatic, adLockReadOnly
|
||||
for i=1 to adors.recordcount
|
||||
%>
|
||||
<tr>
|
||||
<td align="center" ><%=adors("comp") %></td>
|
||||
<td align="center" ><%=adors("p_sn") %></td>
|
||||
<td align="left" ><%=adors("p_subject") %></td>
|
||||
<td align="center" ><%=adors("m_name") %></td>
|
||||
<td align="center" ><%=adors("M_JUMIN") %></td>
|
||||
<td align="center" ><%=adors("s_gubun") %></td>
|
||||
<td align="center" ><%=adors("s_pay_unit") %></td>
|
||||
<td align="center" ><%=adors("s_wan") %></td>
|
||||
<td align="center" ><%=adors("s_sum") %></td>
|
||||
<td align="center" ><%=adors("work_dt") %></td>
|
||||
<td align="center" ><%=adors("d_write_date") %></td>
|
||||
<td align="center" ><%=adors("m_mobile") %></td>
|
||||
<td align="center" ><%=adors("b_fullname") %></td>
|
||||
<td align="center" >'<%=adors("m_b_no") %></td>
|
||||
<td align="center" ><%=adors("p_name") %></td>
|
||||
<td align="center" ><%=adors("insert_dt") %></td>
|
||||
<td align="center" ><%=adors("attribute05") %></td>
|
||||
<td align="center" ><%=adors("m_n") %></td>
|
||||
</tr>
|
||||
<%
|
||||
adors.movenext
|
||||
next
|
||||
AdoRs.close
|
||||
%>
|
||||
</table>
|
||||
<% end if %>
|
||||
</form>
|
||||
<%if command <> "excel" then%>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.content -->
|
||||
<!-- REQUIRED SCRIPTS -->
|
||||
<script>
|
||||
$(function(){
|
||||
$("#p_field_date").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)));
|
||||
}
|
||||
});
|
||||
|
||||
$("#p_field_date").focus(function () {
|
||||
$(".ui-datepicker-calendar").hide();
|
||||
$("#ui-datepicker-div").position({
|
||||
my: "center top",
|
||||
at: "center bottom",
|
||||
of: $(this)
|
||||
});
|
||||
});
|
||||
|
||||
$("#p_field_date").on('click', function () {
|
||||
var selDate = new Date($("#p_field_date").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);
|
||||
});
|
||||
});
|
||||
|
||||
function search(command) {
|
||||
var url = "";
|
||||
var p_field_date = document.neakeun_work_time.p_field_date.value;
|
||||
var sel_sv = document.neakeun_work_time.sel_sv.value;
|
||||
|
||||
if (p_field_date == "") {
|
||||
alert("<22><>¥<EFBFBD><C2A5> <20>Է<EFBFBD><D4B7>Ͻʽÿ<CABD>!");
|
||||
} else {
|
||||
url = "money_list_2015.asp?command=" + command + "&p_field_date=" + p_field_date + "&sel_sv=" + sel_sv;
|
||||
document.neakeun_work_time.action = url;
|
||||
document.neakeun_work_time.submit();
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</div>
|
||||
<!-- /.content-wrapper -->
|
||||
<!-- #include virtual = "include/footer.asp" -->
|
||||
<% end if %>
|
||||
211
inspection/myun_neakeun_state.asp
Normal file
211
inspection/myun_neakeun_state.asp
Normal file
@@ -0,0 +1,211 @@
|
||||
<!-- #include virtual = "include/header.asp" -->
|
||||
<%
|
||||
dim command
|
||||
command = Request("command")
|
||||
|
||||
p_sn = request("p_sn")
|
||||
work_type = request("work_type")
|
||||
neakeun_jumin = request("neakeun_jumin")
|
||||
neakeun_name = request("neakeun_name")
|
||||
work_date_st = request("work_date_st")
|
||||
work_date_ed = request("work_date_ed")
|
||||
|
||||
if work_date_st = "" or isnull(work_date_st) then
|
||||
work_date_st = date()
|
||||
end if
|
||||
if work_date_ed = "" or isnull(work_date_ed) then
|
||||
work_date_ed = date()
|
||||
end if
|
||||
|
||||
dim sum_job_add_time
|
||||
dim sum_all_work_time
|
||||
dim sum_job_lunch_time
|
||||
dim sum_job_dinner_time
|
||||
dim sum_expected_pay
|
||||
|
||||
if command <> "excel" then
|
||||
%>
|
||||
<!-- #include virtual = "include/left.asp" -->
|
||||
<!-- Content Wrapper. Contains page content -->
|
||||
<div class="content-wrapper">
|
||||
<!-- Content Header (Page header) -->
|
||||
<div class="content-header">
|
||||
<h1><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><DEB4><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=<3D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>_<EFBFBD><5F><EFBFBD><EFBFBD><DEB4><EFBFBD>.xls"
|
||||
end if
|
||||
%>
|
||||
<%if command <> "excel" then%>
|
||||
<% Dim f_menu : f_menu = "np" %>
|
||||
<!-- #include file = "f_menu.asp" -->
|
||||
<%End If%>
|
||||
<form name="pms" method="post">
|
||||
<table width="1200px" class="table table-sm table-sm2 table-bordered table-head tr-colors">
|
||||
<%if command <> "excel" then%>
|
||||
<tr>
|
||||
<td width="15%" height="30px" align="center" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="35%" height="30px" ><input name="neakeun_jumin" type="text" value="<%=neakeun_jumin %>" style="width:200px" ></td>
|
||||
<td width="15%" height="30px" align="center" ><3E≯<EFBFBD></td>
|
||||
<td width="35%" height="30px" ><input name="neakeun_name" type="text" value="<%=neakeun_name %>" style="width:200px" ></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="15%" height="30px" align="center" ><3E>ٹ<EFBFBD> <20><><EFBFBD><EFBFBD></td>
|
||||
<td width="35%" height="30px" >
|
||||
<input type="text" style="width:100px;text-align:right;" name="work_date_st" class="selectDate" readonly value="<%=work_date_st%>">
|
||||
  <b>~</b>  
|
||||
<input type="text" style="width:100px;text-align:right;" name="work_date_ed" class="selectDate" readonly value="<%=work_date_ed%>">
|
||||
</td>
|
||||
<%
|
||||
query = " select *"
|
||||
query = query & " from direct_costcode "
|
||||
query = query & " where d_cost_kind = 'field' "
|
||||
query = query & " and d_cost_useyn = 'y' "
|
||||
query = query & " and d_cost_parents = '2' "
|
||||
Adors.Open query, adoConn, 1
|
||||
%>
|
||||
<td width="15%" height="30px" align="center" ><3E><><EFBFBD><EFBFBD></td>
|
||||
<td width="35%" height="30px" >
|
||||
<select name="work_type">
|
||||
<option value=""><3E><>ü</option>
|
||||
<% for i=1 to Adors.recordcount %>
|
||||
<option value="<%=Adors("d_cost_code")%>" <% if CStr(Adors("d_cost_code")) = work_type then %>selected <%end if %>><%=Adors("d_cost_name") %></option>
|
||||
<% Adors.movenext
|
||||
next
|
||||
Adors.close
|
||||
%>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" colspan="4" class='pt-2'>
|
||||
<img src="/images/common/btn_search.jpg" align="absmiddle" style="cursor:pointer" onclick="search('search')">
|
||||
<img src="/images/common/btn_excel.jpg" align="absmiddle" onclick="search('excel')" style='CURSOR:pointer;' title ='<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>'></p>
|
||||
</td>
|
||||
</tr>
|
||||
<%end if %>
|
||||
<% if command <> "" then %>
|
||||
<tr>
|
||||
<td align="center" colspan="4">
|
||||
<table class="table table-sm table-sm2 table-bordered table-head tr-colors">
|
||||
<tr>
|
||||
<td align="center" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td align="center" ><3E≯<EFBFBD></td>
|
||||
<td align="center" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td align="center" ><3E><><EFBFBD><EFBFBD><EFBFBD>Խð<D4BD></td>
|
||||
<td align="center" ><3E>߽<EFBFBD></td>
|
||||
<td align="center" ><3E><><EFBFBD><EFBFBD></td>
|
||||
<td align="center" ><3E><><EFBFBD><EFBFBD><DEBF><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
</tr>
|
||||
<%
|
||||
'--<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ҿ<EFBFBD><D2BF><EFBFBD><EFBFBD><EFBFBD> <20>˻<EFBFBD>-<2D><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ
|
||||
query = " select neakeun_jumin, neakeun_name "
|
||||
query = query & " , sum(job_add_time) as job_add_time "
|
||||
query = query & " , round(sum(job_in_time),2) as job_total_time "
|
||||
query = query & " , sum(isnull(convert(int, job_lunch_yn), 0)) as job_lunch_yn "
|
||||
query = query & " , sum(isnull(convert(int, job_dinner_yn), 0)) as job_dinner_yn "
|
||||
query = query & " , s_sum "
|
||||
query = query & " from ( "
|
||||
query = query & " select neakeun_jumin, neakeun_name, date "
|
||||
query = query & " , sum(convert(float, job_add_time)) as job_add_time "
|
||||
query = query & " , sum(job_in_time) as job_in_time "
|
||||
query = query & " , job_lunch_yn "
|
||||
query = query & " , job_dinner_yn "
|
||||
query = query & " from neakeun_work "
|
||||
query = query & " where job_confirm_yn = 'Y' and date between '"&work_date_st&"' and '"&work_date_ed&"' "
|
||||
if work_type <> "" then
|
||||
query = query & " AND p_sebu_code = '"&work_type&"' "
|
||||
end if
|
||||
query = query & " group by neakeun_jumin, neakeun_name, date, job_lunch_yn, job_dinner_yn "
|
||||
query = query & " ) as T left outer join ( "
|
||||
query = query & " select m_name, m_jumin, SUM(s_sum) as s_sum "
|
||||
query = query & " from t_neakeun_pay "
|
||||
query = query & " where work_dt between '"&work_date_st&"' and '"&work_date_ed&"' "
|
||||
query = query & " group by m_name, m_jumin "
|
||||
query = query & " ) tmp on t.neakeun_jumin = tmp.m_jumin and t.neakeun_name = tmp.m_name "
|
||||
query = query & " where neakeun_jumin != '' "
|
||||
if neakeun_jumin <> "" then
|
||||
query = query & " AND left(neakeun_jumin, 7) like '%"&neakeun_jumin&"%' "
|
||||
end if
|
||||
if neakeun_name <> "" then
|
||||
query = query & " AND neakeun_name like '%"&neakeun_name&"%' "
|
||||
end if
|
||||
query = query & " group by neakeun_jumin, neakeun_name, s_sum "
|
||||
query = query & " order by neakeun_name "
|
||||
|
||||
Adors.open query,adoconn,1
|
||||
|
||||
sum_job_add_time = 0
|
||||
sum_all_work_time = 0
|
||||
sum_job_lunch_time = 0
|
||||
sum_job_dinner_time = 0
|
||||
sum_expected_pay = 0
|
||||
|
||||
for i=1 to Adors.recordcount
|
||||
if not isnull(Adors("neakeun_jumin")) then
|
||||
sum_job_add_time = sum_job_add_time + Adors("job_add_time")
|
||||
sum_all_work_time = sum_all_work_time + Adors("job_total_time")
|
||||
sum_job_lunch_time = sum_job_lunch_time + Adors("job_lunch_yn")
|
||||
sum_job_dinner_time = sum_job_dinner_time + Adors("job_dinner_yn")
|
||||
sum_expected_pay = sum_expected_pay + Adors("s_sum")
|
||||
end if
|
||||
%>
|
||||
<tr>
|
||||
<td align="center"><%= left(Adors("neakeun_jumin"), 7)%></td>
|
||||
<td align="center"><%= Adors("neakeun_name")%></td>
|
||||
<td align="center"><%= Adors("job_add_time")%></td>
|
||||
<td align="center"><%= Adors("job_total_time")%></td>
|
||||
<td align="center"><%= Adors("job_lunch_yn")%></td>
|
||||
<td align="center"><%= Adors("job_dinner_yn")%></td>
|
||||
<td align="center"><%= formatnumber(Adors("s_sum"),0)%></td>
|
||||
</tr>
|
||||
<% Adors.movenext
|
||||
next
|
||||
Adors.close
|
||||
%>
|
||||
<tr>
|
||||
<td align="right" colspan="2"><b><3E><> <20>հ<EFBFBD></b></td>
|
||||
<td align="center"><b><%= sum_job_add_time%></b></td>
|
||||
<td align="center"><b><%= sum_all_work_time%></b></td>
|
||||
<td align="center"><b><%= sum_job_lunch_time%></b></td>
|
||||
<td align="center"><b><%= sum_job_dinner_time%></b></td>
|
||||
<td align="center"><b><%= formatnumber(sum_expected_pay,0)%></b></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<% end if %>
|
||||
</table>
|
||||
</form>
|
||||
<%if command <> "excel" then%>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.content -->
|
||||
<!-- REQUIRED SCRIPTS -->
|
||||
<script>
|
||||
$(function(){
|
||||
$(".selectDate").datepicker();
|
||||
});
|
||||
function search(a) {
|
||||
document.pms.action = "myun_neakeun_state.asp?command=" + a;
|
||||
document.pms.submit();
|
||||
}
|
||||
</script>
|
||||
</div>
|
||||
<!-- /.content-wrapper -->
|
||||
<!-- #include virtual = "include/footer.asp" -->
|
||||
<% end if %>
|
||||
BIN
inspection/n_etc_list.xlsx
Normal file
BIN
inspection/n_etc_list.xlsx
Normal file
Binary file not shown.
361
inspection/n_work_status.asp
Normal file
361
inspection/n_work_status.asp
Normal file
@@ -0,0 +1,361 @@
|
||||
<!-- #include virtual = "include/header.asp" -->
|
||||
<%
|
||||
dim command
|
||||
command = Request("command")
|
||||
|
||||
s_date_st = request("s_date_st")
|
||||
s_date_end = request("s_date_end")
|
||||
s_name = request("s_name")
|
||||
s_work = request("s_work")
|
||||
s_p_sn = request("s_p_sn")
|
||||
s_p_subject = request("s_p_subject")
|
||||
s_column = replace(request("s_column"), " ", "")
|
||||
|
||||
Dim column_dic
|
||||
Set column_dic = Server.CreateObject("Scripting.Dictionary")
|
||||
With column_dic
|
||||
.Add "p_child_sn", "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD>ڵ<EFBFBD>"
|
||||
.Add "p_subject", "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE>"
|
||||
.Add "prj_code", "CATI<54>ڵ<EFBFBD>"
|
||||
.Add "new_id", "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ID"
|
||||
.Add "log_user_name", "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
||||
.Add "log_date", "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
||||
.Add "in_time", "<22><><EFBFBD>ٽð<D9BD>"
|
||||
.Add "out_time", "<22><><EFBFBD>ٽð<D9BD>"
|
||||
.Add "first_call", "ùCall"
|
||||
.Add "Last_call", "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Call"
|
||||
.Add "<22>Ϸ<EFBFBD>", "<22>Ϸ<EFBFBD>"
|
||||
.Add "<22><><EFBFBD><EFBFBD>", "<22><><EFBFBD><EFBFBD>"
|
||||
.Add "<22>ߴ<EFBFBD>", "<22>ߴ<EFBFBD>"
|
||||
.Add "<22><><EFBFBD>Ϳ<EFBFBD><CDBF><EFBFBD>", "<22><><EFBFBD>Ϳ<EFBFBD><CDBF><EFBFBD>"
|
||||
.Add "<22><><EFBFBD><EFBFBD>", "<22><><EFBFBD><EFBFBD>"
|
||||
.Add "<22><><EFBFBD><EFBFBD><EFBFBD>ھƴ<DABE>", "<22><><EFBFBD><EFBFBD><EFBFBD>ھƴ<DABE>"
|
||||
.Add "<22><><EFBFBD><EFBFBD>", "<22><><EFBFBD><EFBFBD>"
|
||||
.Add "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>", "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
||||
.Add "<22><>ȭ<EFBFBD><C8AD>", "<22><>ȭ<EFBFBD><C8AD>"
|
||||
.Add "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>", "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
||||
End With
|
||||
|
||||
if command <> "excel" then
|
||||
%>
|
||||
<!-- #include virtual = "include/left.asp" -->
|
||||
<!-- Content Wrapper. Contains page content -->
|
||||
<div class="content-wrapper">
|
||||
<style>
|
||||
.t_table .t_head{
|
||||
cursor:pointer;
|
||||
}
|
||||
</style>
|
||||
<!-- Content Header (Page header) -->
|
||||
<div class="content-header">
|
||||
<h1>CATI <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>Ȳ</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=CATI_Status.xls"
|
||||
end if
|
||||
%>
|
||||
<form name="work_status" method="post">
|
||||
<input type="hidden" value="<%=command %>" name="command" />
|
||||
<input type="hidden" value="<%=s_work %>" name="s_work_arr" />
|
||||
<input type="hidden" value="<%=s_column %>" name="s_column_arr" />
|
||||
<table class="table table-sm table-sm2 table-bordered table-head tr-colors">
|
||||
<% If command <> "excel" Then %>
|
||||
<tr>
|
||||
<td align="center" width="12%"><3E><> <20><></td>
|
||||
<td align="left" width="38%">
|
||||
<input type="text" style="width:120;text-align:center;CURSOR: pointer;" value="<%=s_date_st %>" name="s_date_st" class='selectDate' readonly />
|
||||
~
|
||||
<input type="text" style="width:120;text-align:center;CURSOR: pointer;" value="<%=s_date_end %>" name="s_date_end" class='selectDate' readonly />
|
||||
</td>
|
||||
<td align="center" width="12%"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD></td>
|
||||
<td align="left" width="38%">
|
||||
<input type="text" name="s_name" value="<%=s_name %>" style="width:200px;"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" width="12%"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20>ڵ<EFBFBD></td>
|
||||
<td align="left" width="38%">
|
||||
<input type="text" name="s_p_sn" value="<%=s_p_sn %>" style="width:200px;"/>
|
||||
</td>
|
||||
<td align="center" width="12%"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><></td>
|
||||
<td align="left" width="38%">
|
||||
<input type="text" name="s_p_subject" value="<%=s_p_subject %>" style="width:200px;"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" width="12%"><3E><><EFBFBD><EFBFBD> Column <20><><EFBFBD><EFBFBD></td>
|
||||
<td align="left" width="88%" colspan="3">
|
||||
<label class='mx-2' for="log_date"><input type="checkbox" value="log_date" id="log_date" name="s_column"/> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>¥</label>
|
||||
<label class='mx-2' for="intranet_project"><input type="checkbox" value="p_child_sn,p_subject" id="intranet_project" name="s_column"/> <20><>Ʈ<EFBFBD><C6AE><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ</label>
|
||||
<label class='mx-2' for="prj_code"><input type="checkbox" value="p_child_sn,p_subject,prj_code" id="prj_code" name="s_column"/> CATI <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ</label>
|
||||
<label class='mx-2' for="log_user_name"><input type="checkbox" value="log_user_name" id="log_user_name" name="s_column"/> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD></label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3" align="right"><font color="red"><b><3E>˻<EFBFBD> <20><> 1<>п<EFBFBD><D0BF><EFBFBD> 10<31><30> <20><><EFBFBD><EFBFBD> <20>ҿ<EFBFBD><D2BF><EFBFBD> <20><> <20>ֽ<EFBFBD><D6BD>ϴ<EFBFBD></b></font></td>
|
||||
<td colspan="1" align="right">
|
||||
<a href="javascript:search_go('view');"><img src="/images/common/btn_smallsrch.gif" /></a>
|
||||
<a href="javascript:search_go('excel');"><img src="/images/common/btn_smallexcel.gif" /></a>
|
||||
</td>
|
||||
</tr>
|
||||
<% End if %>
|
||||
<% if command <> "" Then %>
|
||||
<tr>
|
||||
<td colspan="4" align="center">
|
||||
<div style="width:100%;overflow-y:scroll;max-height:545px;height:545px;">
|
||||
<table class="t_table table table-sm table-sm2 table-bordered table-head tr-colors" style='font-size:12px;'>
|
||||
<%
|
||||
query = " SELECT "
|
||||
if s_column <> "" Then
|
||||
query = query & " " & s_column & ", "
|
||||
else
|
||||
query = query & " p_child_sn, p_subject, prj_code, new_id, log_user_name, log_date, in_time, out_time, first_call, Last_call, "
|
||||
End if
|
||||
query = query & " SUM(<28>Ϸ<EFBFBD>) as <20>Ϸ<EFBFBD>, SUM(<28><><EFBFBD><EFBFBD>) as <20><><EFBFBD><EFBFBD>, SUM(<28>ߴ<EFBFBD>) as <20>ߴ<EFBFBD>, SUM(<28><><EFBFBD>Ϳ<EFBFBD><CDBF><EFBFBD>) as <20><><EFBFBD>Ϳ<EFBFBD><CDBF><EFBFBD>, SUM(<28><><EFBFBD><EFBFBD>) as <20><><EFBFBD><EFBFBD>, "
|
||||
query = query & " SUM(<28><><EFBFBD><EFBFBD><EFBFBD>ھƴ<DABE>) as <20><><EFBFBD><EFBFBD><EFBFBD>ھƴ<DABE>, SUM(<28><><EFBFBD><EFBFBD>) as <20><><EFBFBD><EFBFBD>, SUM(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>) as <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, SUM(<28><>ȭ<EFBFBD><C8AD>) as <20><>ȭ<EFBFBD><C8AD>, SUM(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>) as <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> "
|
||||
query = query & " FROM "
|
||||
query = query & " ( "
|
||||
query = query & " SELECT c.p_child_sn, c.p_subject, a.prj_code, "
|
||||
query = query & " a.log_user, (SELECT TOP 1 new_id FROM man WHERE id = a.log_user) AS new_id, a.log_user_name, a.log_date, "
|
||||
query = query & " a.in_time, a.out_time, a.first_call, a.Last_call, "
|
||||
query = query & " <20>Ϸ<EFBFBD>, <20><><EFBFBD><EFBFBD>, <20>ߴ<EFBFBD>, <20><><EFBFBD>Ϳ<EFBFBD><CDBF><EFBFBD>, <20><><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD>ھƴ<DABE>, <20><><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><>ȭ<EFBFBD><C8AD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> "
|
||||
query = query & " FROM V_Cati_callcount a LEFT JOIN new_cati.dbo.project b "
|
||||
query = query & " ON a.prj_code = b.prj_code LEFT JOIN project2.dbo.T_project_method c "
|
||||
query = query & " ON b.intranet_project = c.p_child_sn "
|
||||
query = query & " WHERE a.log_date BETWEEN '" & s_date_st & "' AND '" & s_date_end & "' "
|
||||
query = query & " ) T "
|
||||
If s_name <> "" Then
|
||||
query = query & " AND log_user_name LIKE '%" & s_name & "%' "
|
||||
End If
|
||||
If s_p_sn <> "" Then
|
||||
query = query & " AND p_child_sn LIKE '" & s_p_sn & "%' "
|
||||
End If
|
||||
If s_p_subject <> "" Then
|
||||
query = query & " AND p_subject LIKE '%" & s_p_subject & "%' "
|
||||
End If
|
||||
if s_column <> "" Then
|
||||
query = query & " GROUP BY " & s_column & " "
|
||||
query = query & " ORDER BY " & s_column & " "
|
||||
Else
|
||||
query = query & " GROUP BY p_child_sn, p_subject, prj_code, new_id, log_user_name, log_date, in_time, out_time, first_call, Last_call "
|
||||
query = query & " ORDER BY p_child_sn, p_subject, prj_code, new_id, log_user_name, log_date, in_time, out_time, first_call, Last_call "
|
||||
End if
|
||||
'response.Write query
|
||||
AdoRs.open query, adoconn, adopenstatic, adlockreadonly
|
||||
|
||||
Dim all_cnt
|
||||
If AdoRs.RecordCount > 0 Then
|
||||
%>
|
||||
<tr height="25px" class="t_head">
|
||||
<%
|
||||
For i = 0 To AdoRs.fields.count - 1
|
||||
%>
|
||||
<%If column_dic.Item(AdoRs.fields(i).Name)="<22>Ϸ<EFBFBD>" Then %>
|
||||
<td align="center"><3E><> Count </td>
|
||||
<%End If %>
|
||||
|
||||
<td align="center"><%= column_dic.Item(AdoRs.fields(i).Name) %> </td>
|
||||
<%
|
||||
Next
|
||||
%>
|
||||
</tr>
|
||||
<%
|
||||
Else
|
||||
%>
|
||||
<tr height="25px">
|
||||
<td align="center" width="100%"><3E>˻<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD></td>
|
||||
</tr>
|
||||
<%
|
||||
End If
|
||||
|
||||
Do While Not AdoRs.Eof
|
||||
%>
|
||||
<tr class="t_contents">
|
||||
<%
|
||||
For i = 0 To AdoRs.fields.count - 1
|
||||
If column_dic.Item(AdoRs.fields(i).Name) = "<22>Ϸ<EFBFBD>" Then
|
||||
all_cnt = 0
|
||||
all_cnt = Adors("<22>Ϸ<EFBFBD>") + Adors("<22><><EFBFBD><EFBFBD>") + Adors("<22>ߴ<EFBFBD>") + Adors("<22><><EFBFBD>Ϳ<EFBFBD><CDBF><EFBFBD>") +Adors("<22><><EFBFBD><EFBFBD>") + Adors("<22><><EFBFBD><EFBFBD><EFBFBD>ھƴ<DABE>")+ Adors("<22><><EFBFBD><EFBFBD>")+ Adors("<22><><EFBFBD><EFBFBD>")+ Adors("<22><>ȭ<EFBFBD><C8AD>")+ Adors("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>")
|
||||
%>
|
||||
<td align="center" style=""><%= all_cnt %></td>
|
||||
<%
|
||||
End If
|
||||
%>
|
||||
<td align="center" style=""><%= AdoRs.fields(i) %></td>
|
||||
<%
|
||||
Next
|
||||
%>
|
||||
</tr>
|
||||
<%
|
||||
AdoRs.MoveNext
|
||||
Loop
|
||||
%>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<% End if %>
|
||||
</table>
|
||||
</form>
|
||||
<%if command <> "excel" then%>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.content -->
|
||||
<!-- REQUIRED SCRIPTS -->
|
||||
<script>
|
||||
$(function () {
|
||||
$(".selectDate").datepicker();
|
||||
if ($("input[name=s_work_arr]").val() != "") {
|
||||
$("input[name=s_work]").each(function (i) {
|
||||
if ($("input[name=s_work_arr]").val().indexOf("'" + $(this).val() + "'") > -1) {
|
||||
$(this).prop("checked", true);
|
||||
}
|
||||
});
|
||||
}
|
||||
if ($("input[name=s_column_arr]").val() != "") {
|
||||
$("input[name=s_column]").each(function (i) {
|
||||
if ($("input[name=s_column_arr]").val().indexOf($(this).val()) > -1) {
|
||||
$(this).prop("checked", true);
|
||||
}
|
||||
});
|
||||
}
|
||||
var sort_col_check = [];
|
||||
$(".t_table .t_head td").each(function (index) {
|
||||
sort_col_check[index] = 0; // 1<><31> asc, 2<><32> desc, 0<><30> <20>ʱ<EFBFBD>
|
||||
});
|
||||
$(".t_table .t_head td").click(function () {
|
||||
// $(".t_table .t_head td").index(this) Ŭ<><C5AC><EFBFBD><EFBFBD> <20>÷<EFBFBD><C3B7><EFBFBD> INDEX
|
||||
// $(".t_table .t_head > td").length tr<74><72> column <20><>
|
||||
// $(".t_table .t_contents").length tr<74><72> row <20><>
|
||||
// var arr_tb = new array($(".t_table .t_contents").length, $(".t_table .t_head > td").length);
|
||||
var num_yn = true;
|
||||
var equal_value = true;
|
||||
var prev_value = "";
|
||||
var s_col_index = $(".t_table .t_head td").index(this);
|
||||
var arr_tb = [];
|
||||
if (sort_col_check[s_col_index] == 1) {
|
||||
sort_col_check[s_col_index] = 2;
|
||||
} else {
|
||||
sort_col_check[s_col_index] = 1;
|
||||
}
|
||||
$(".t_table .t_contents").each(function (tr_i) {
|
||||
arr_tb[tr_i] = $(this).find("td").eq(s_col_index).text();
|
||||
if (prev_value == "") {
|
||||
prev_value = arr_tb[tr_i];
|
||||
}
|
||||
if (prev_value != arr_tb[tr_i]) {
|
||||
equal_value = false;
|
||||
}
|
||||
if (isNaN(arr_tb[tr_i]) == true) {
|
||||
num_yn = false;
|
||||
}
|
||||
$(this).find("td").each(function (td_i) {
|
||||
if (td_i != s_col_index) {
|
||||
arr_tb[tr_i] = arr_tb[tr_i] + "^||^" + $(this).text();
|
||||
}
|
||||
});
|
||||
});
|
||||
if (equal_value != true) { // <20>÷<EFBFBD><C3B7><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>ʾƾ<CABE> Sort <20><><EFBFBD><EFBFBD>
|
||||
if (num_yn == true) { // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD>
|
||||
if (sort_col_check[s_col_index] == 1) {
|
||||
arr_tb.sort(function (a, b) { return a.split("^||^")[0] - b.split("^||^")[0]; }); // <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> Asc
|
||||
$(".t_table .t_head td").each(function (e) {
|
||||
if (e == s_col_index) {
|
||||
$(this).text($(this).text().replace("<22><>", "").replace("<22><>", "") + "<22><>");
|
||||
} else {
|
||||
$(this).text($(this).text().replace("<22><>", "").replace("<22><>", ""));
|
||||
}
|
||||
});
|
||||
} else if (sort_col_check[s_col_index] == 2) {
|
||||
arr_tb.reverse(function (a, b) { return a.split("^||^")[0] - b.split("^||^")[0]; }); // <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> Desc
|
||||
$(".t_table .t_head td").each(function (e) {
|
||||
if (e == s_col_index) {
|
||||
$(this).text($(this).text().replace("<22><>", "").replace("<22><>", "") + "<22><>");
|
||||
} else {
|
||||
$(this).text($(this).text().replace("<22><>", "").replace("<22><>", ""));
|
||||
}
|
||||
});
|
||||
}
|
||||
} else { // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD>
|
||||
if (sort_col_check[s_col_index] == 1) {
|
||||
arr_tb.sort(); // <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> Asc
|
||||
$(".t_table .t_head td").each(function (e) {
|
||||
if (e == s_col_index) {
|
||||
$(this).text($(this).text().replace("<22><>", "").replace("<22><>", "") + "<22><>");
|
||||
} else {
|
||||
$(this).text($(this).text().replace("<22><>", "").replace("<22><>", ""));
|
||||
}
|
||||
});
|
||||
} else if (sort_col_check[s_col_index] == 2) {
|
||||
arr_tb.reverse(); // <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> Desc
|
||||
$(".t_table .t_head td").each(function (e) {
|
||||
if (e == s_col_index) {
|
||||
$(this).text($(this).text().replace("<22><>", "").replace("<22><>", "") + "<22><>");
|
||||
} else {
|
||||
$(this).text($(this).text().replace("<22><>", "").replace("<22><>", ""));
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
$(".t_table .t_contents").each(function (tr_i) {
|
||||
var tmp_arr = arr_tb[tr_i].split("^||^");
|
||||
var chk_ind = 0;
|
||||
$(this).find("td").eq(s_col_index).text(tmp_arr[0]);
|
||||
for (var i = 0; i < tmp_arr.length; i++) {
|
||||
if (i != s_col_index) {
|
||||
chk_ind = chk_ind + 1;
|
||||
$(this).find("td").eq(i).text(tmp_arr[chk_ind]);
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
function dateDiff(_date1, _date2) {
|
||||
var diffDate_1 = _date1 instanceof Date ? _date1 : new Date(_date1);
|
||||
var diffDate_2 = _date2 instanceof Date ? _date2 : new Date(_date2);
|
||||
|
||||
diffDate_1 = new Date(diffDate_1.getFullYear(), diffDate_1.getMonth() + 1, diffDate_1.getDate());
|
||||
diffDate_2 = new Date(diffDate_2.getFullYear(), diffDate_2.getMonth() + 1, diffDate_2.getDate());
|
||||
|
||||
var diff = Math.abs(diffDate_2.getTime() - diffDate_1.getTime());
|
||||
diff = Math.ceil(diff / (1000 * 3600 * 24));
|
||||
|
||||
return diff;
|
||||
}
|
||||
|
||||
function search_go(command) {
|
||||
var month_limit = 90;
|
||||
var frm = document.work_status;
|
||||
var chk_yn = false;
|
||||
if (frm.s_date_st.value == "" || frm.s_date_end.value == "") {
|
||||
alert("<22>Ⱓ<EFBFBD><E2B0A3> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ּ<EFBFBD><D6BC><EFBFBD>");
|
||||
return;
|
||||
}
|
||||
if (dateDiff(frm.s_date_st.value, frm.s_date_end.value) > 90) {
|
||||
alert("90<39><30> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Ⱓ<EFBFBD><E2B0A3> <20>˻<EFBFBD><CBBB><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>մϴ<D5B4>");
|
||||
return;
|
||||
}
|
||||
frm.action = "./n_work_status.asp?command=" + command;
|
||||
frm.submit();
|
||||
}
|
||||
</script>
|
||||
</div>
|
||||
<!-- /.content-wrapper -->
|
||||
<!-- #include virtual = "include/footer.asp" -->
|
||||
<% end if %>
|
||||
93
inspection/neakeun_del_ajax.asp
Normal file
93
inspection/neakeun_del_ajax.asp
Normal file
@@ -0,0 +1,93 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<!-- #include virtual = "include/JSON_2.0.4.asp" -->
|
||||
<OBJECT RUNAT=Server PROGID=ADODB.Recordset id=rsp></OBJECT>
|
||||
<%
|
||||
Response.CharSet = "EUC-KR"
|
||||
|
||||
dim gubun : gubun = Request("gubun")
|
||||
dim n_id : n_id = Request("n_id")
|
||||
dim n_pay_id : n_pay_id = Request("n_pay_id")
|
||||
dim prj_code : prj_code = Request("prj_code")
|
||||
dim n_name : n_name = replace(unescape(Request("n_name"))," ","")
|
||||
dim n_birth : n_birth = Request("n_birth")
|
||||
dim e_gubun : e_gubun = unescape(Request("n_gubun"))
|
||||
dim n_date : n_date = Request("n_date")
|
||||
dim n_cnt : n_cnt = Request("n_cnt")
|
||||
dim p_danga : p_danga = Request("p_danga")
|
||||
dim add1 : add1 = Request("n_add1")
|
||||
dim add2 : add2 = Request("n_add2")
|
||||
dim p_sum : p_sum = Request("p_sum")
|
||||
dim p_etc : p_etc = unescape(Request("p_etc"))
|
||||
dim n_gubun
|
||||
dim insert_ok
|
||||
Dim json_obj
|
||||
Dim etc_ok, etc_cnt
|
||||
|
||||
Select case gubun
|
||||
case "p"
|
||||
n_gubun = "<22><>ġ"
|
||||
case "v1"
|
||||
n_gubun = "<22><><EFBFBD><EFBFBD>"
|
||||
case "v2"
|
||||
n_gubun = "<22><>û"
|
||||
case "e"
|
||||
n_gubun = e_gubun
|
||||
etc_ok = "ETC"
|
||||
End Select
|
||||
|
||||
if etc_ok = "ETC" Then
|
||||
query = " Select count(*) as cnt from project2.dbo.t_neakeun_pay where attribute01 = '" & n_id & "'"
|
||||
Rs.open query, adoconn, adopenstatic, adlockreadonly
|
||||
|
||||
If not rs.eof Then
|
||||
etc_cnt = rs("cnt")
|
||||
Else
|
||||
etc_cnt = 0
|
||||
End If
|
||||
|
||||
Rs.close
|
||||
Else
|
||||
etc_cnt = 1
|
||||
End If
|
||||
|
||||
set json_obj = jsObject()
|
||||
|
||||
on error resume next
|
||||
'N<><4E><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
|
||||
If Cint(etc_cnt) < 2 Then
|
||||
query = " delete from project2.dbo.neakeun_work "
|
||||
query = query&" where neakeun_jumin = '" & n_birth & "0000000' and neakeun_name = '" & n_name & "' "
|
||||
query = query&" and p_child_sn = '" & prj_code & "' and date = '" & n_date & "' "
|
||||
query = query&" and p_sebu='" & n_gubun & "' and id = '" & n_id & "' "
|
||||
if etc_ok = "ETC" then
|
||||
query = query&" and workload='" & etc_ok & "' "
|
||||
End If
|
||||
AdoConn.Execute query '<27><><EFBFBD><EFBFBD>
|
||||
|
||||
if Err.Number <> 0 Then
|
||||
json_obj("err1") = Err.description
|
||||
End If
|
||||
End If
|
||||
|
||||
query = " delete from project2.dbo.t_neakeun_pay "
|
||||
query = query&" where m_jumin = '" & n_birth & "0000000' and m_name = '" & n_name & "' "
|
||||
query = query&" and p_sn = '" & prj_code & "' and work_dt = '" & n_date & "' "
|
||||
query = query&" and s_gubun='" & n_gubun & "' and attribute01 = '" & n_id & "' and id = '" & n_pay_id & "' "
|
||||
if etc_ok = "ETC" then
|
||||
query = query&" and attribute02='" & etc_ok & "' "
|
||||
End If
|
||||
AdoConn.Execute query '<27><><EFBFBD><EFBFBD>
|
||||
if Err.Number <> 0 then
|
||||
insert_ok = "0" 'insert <20><><EFBFBD><EFBFBD>
|
||||
json_obj("err2") = Err.description
|
||||
else
|
||||
insert_ok = "1" 'insert <20><><EFBFBD><EFBFBD>
|
||||
end if
|
||||
|
||||
on error goto 0
|
||||
'Response.Write query
|
||||
json_obj("ok") = insert_ok
|
||||
json_obj("id") = ""
|
||||
Response.Write toJSON(json_obj)
|
||||
%>
|
||||
172
inspection/neakeun_save_ajax.asp
Normal file
172
inspection/neakeun_save_ajax.asp
Normal file
@@ -0,0 +1,172 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<!-- #include virtual = "include/JSON_2.0.4.asp" -->
|
||||
<%
|
||||
Response.CharSet = "EUC-KR"
|
||||
|
||||
dim gubun : gubun = Request("gubun")
|
||||
dim prj_code : prj_code = Request("prj_code")
|
||||
dim n_name : n_name = replace(unescape(Request("n_name"))," ","")
|
||||
dim n_birth : n_birth = Request("n_birth")
|
||||
dim e_gubun : e_gubun = unescape(Request("n_gubun"))
|
||||
dim n_date : n_date = Request("n_date")
|
||||
dim n_cnt : n_cnt = Request("n_cnt") '<27>ð<EFBFBD>(<28>μ<EFBFBD>)
|
||||
dim p_danga : p_danga = Request("p_danga") '<27>ܰ<EFBFBD>
|
||||
dim add1 : add1 = Request("n_add1")
|
||||
dim add2 : add2 = Request("n_add2")
|
||||
dim p_sum : p_sum = Request("p_sum")
|
||||
dim p_etc : p_etc = unescape(Request("p_etc"))
|
||||
dim err_chk : err_chk = Request("err_chk")
|
||||
dim no_chk : no_chk = Request("no_chk")
|
||||
dim n_gubun, n_gubun_cd
|
||||
dim insert_ok, select_ok1, select_ok2, select_ok
|
||||
Dim id, pay_id
|
||||
Dim json_obj
|
||||
dim etc_ok
|
||||
n_birth = Cstr(n_birth)
|
||||
|
||||
set json_obj = jsObject()
|
||||
|
||||
Select case gubun
|
||||
case "p"
|
||||
n_gubun = "<22><>ġ"
|
||||
case "v1"
|
||||
n_gubun = "<22><><EFBFBD><EFBFBD>"
|
||||
case "v2"
|
||||
n_gubun = "<22><>û"
|
||||
case "e"
|
||||
n_gubun = e_gubun
|
||||
etc_ok = "ETC"
|
||||
End Select
|
||||
|
||||
query = " select d_cost_code from project2.dbo.direct_costcode where d_cost_kind='field' and d_cost_name = '" & n_gubun & "' and d_cost_useyn = 'Y' "
|
||||
Rs.open query, adoconn, adopenstatic, adlockreadonly
|
||||
if not rs.eof then
|
||||
n_gubun_cd = Rs("d_cost_code")
|
||||
end if
|
||||
Rs.close
|
||||
|
||||
query = "select * from project2.dbo.neakeun_work where p_child_sn = '" & prj_code & "' and neakeun_name = '" & n_name & "' and neakeun_jumin = '" & n_birth & "0000000' and date = '" & n_date & "' and p_sebu = '" & n_gubun & "' "
|
||||
If etc_ok = "ETC" Then
|
||||
query = query&"and workload = '" & etc_ok & "' "
|
||||
Else
|
||||
query = query&"and ISNULL(workload, '') = '' "
|
||||
End IF
|
||||
Rs.open query, adoconn, adopenstatic, adlockreadonly
|
||||
if not Rs.eof Then
|
||||
select_ok1 = 1
|
||||
id = Rs("id")
|
||||
Else
|
||||
select_ok1 = 0
|
||||
End If
|
||||
Rs.close
|
||||
|
||||
query = "select * from project2.dbo.t_neakeun_pay where p_sn = '" & prj_code & "' and m_name = '" & n_name & "' and m_jumin = '" & n_birth & "0000000' and work_dt = '" & n_date & "' and s_gubun = '" & n_gubun & "' "
|
||||
If etc_ok = "ETC" Then
|
||||
query = query&"and attribute02 = '" & etc_ok & "' "
|
||||
Else
|
||||
query = query&"and ISNULL(attribute02, '') = '' "
|
||||
End IF
|
||||
Rs.open query, adoconn, adopenstatic, adlockreadonly
|
||||
if not Rs.eof Then
|
||||
pay_id = Rs("id")
|
||||
select_ok2 = 2
|
||||
Else
|
||||
select_ok2 = 0
|
||||
End If
|
||||
Rs.close
|
||||
|
||||
select_ok = select_ok1 + select_ok2
|
||||
|
||||
on error resume next
|
||||
|
||||
If select_ok = 2 or select_ok = 0 Then
|
||||
query = "Set NoCount On "
|
||||
query = query&" Insert into project2.dbo.neakeun_work "
|
||||
query = query&" (neakeun_jumin, neakeun_name, p_sn, p_sebu, date, yoil, in_time, out_time, job_in_time, job_out_time, job_jumal_time, "
|
||||
query = query&" insert_date, insert_time, insert_ip, p_sv_no, p_sv_main, p_child_sn, job_start_time, job_end_time, job_total_time, job_lunch_yn, "
|
||||
query = query&" job_dinner_yn, job_confirm_yn, p_sebu_code, job_add_time, job_add_time_memo, workload, extra_pay1, extra_pay2 "
|
||||
query = query&" ) values ("
|
||||
query = query&"'" & n_birth & "0000000', "'neakeun_jumin
|
||||
query = query&"'" & n_name & "', "'neakeun_name
|
||||
query = query&"'" & left(prj_code,7) & "', "'p_sn
|
||||
query = query&"'" & n_gubun & "', "'p_sebu
|
||||
query = query&"'" & n_date & "', "'date
|
||||
query = query&"DATENAME(DW,'" & n_date & "'), "'yoil
|
||||
query = query&"'0000', "'in_time
|
||||
query = query&"'0000', "'out-time
|
||||
query = query&"'0', "'job_in_time
|
||||
query = query&"'0', "'job_out_time
|
||||
query = query&"'0', "'job_jumal_time
|
||||
query = query&"CONVERT(CHAR(10), GETDATE(), 23), "'insert_date
|
||||
query = query&"CONVERT(CHAR(5), GETDATE(), 8), "'insert_time
|
||||
query = query&"'" & Request.ServerVariables("remote_host") & "', "'insert_ip
|
||||
query = query&"'" & Session("User_Number") & "', "'p_sv_no
|
||||
query = query&"'" & Session("User_Number") & "', "'p_sv_main
|
||||
query = query&"'" & prj_code & "', "'p_child_sn
|
||||
query = query&"'1000', "'job_start_time
|
||||
query = query&"'2400', "'job_end_time
|
||||
query = query&"'0', "'job_total_time
|
||||
query = query&"'', "
|
||||
query = query&"'', "
|
||||
query = query&"'Y', "'job_Confirm_yn
|
||||
query = query&"'" & n_gubun_cd & "', "'job_sebu_code
|
||||
query = query&"'', "'job_add_time
|
||||
query = query&"'" & p_etc & "', "'job_add_time_memo
|
||||
query = query&"'" & etc_ok & "', "'<27><>Ÿ <20><><EFBFBD><EFBFBD>
|
||||
query = query&"'" & add1 & "', "'<27><>Ÿ <20><><EFBFBD><EFBFBD>
|
||||
query = query&"'" & add2 & "' "'<27><>Ÿ <20><><EFBFBD><EFBFBD>
|
||||
query = query&" ) "
|
||||
query = query&" select @@IDENTITY as ID "
|
||||
query = query&" Set NoCount off "
|
||||
|
||||
Rs.Open query, adoConn, adOpenForwardOnly, adLockReadOnly, adCmdText
|
||||
If Not(Rs.Eof Or Rs.Bof) Then
|
||||
id = Rs(0)
|
||||
End If
|
||||
Rs.Close
|
||||
End If
|
||||
If select_ok <> 2 Then
|
||||
query = "Set NoCount On "
|
||||
query = query & " insert into project2.dbo.t_neakeun_pay (p_sn, m_name, m_jumin, work_dt, s_ot, s_gubun, s_pay_unit, s_wan, s_sum, s_time_style, pay_type, pay_month, insert_dt, insert_user, attribute01, attribute02, chk1, chk2) "
|
||||
query = query & " values ("
|
||||
query = query & "'" & prj_code & "', " 'p_sn
|
||||
query = query & "'" & n_name & "', " 'm_name
|
||||
query = query & "'" & n_birth & "0000000', " 'm_jumin
|
||||
query = query & "'" & n_date & "', " 'work_dt
|
||||
query = query & "'" & 0 & "', " 's_ot
|
||||
query = query & "'" & n_gubun & "', " 's_gubun <09><><EFBFBD><EFBFBD>
|
||||
query = query & "'" & p_danga & "', "'s_pay_unit <09>ܰ<EFBFBD>
|
||||
query = query & "'" & n_cnt & "', " 's_wan <20>μ<EFBFBD>
|
||||
query = query & "'" & CDbl(Formatnumber(p_sum, 0)) & "', "'s_sum <09>հ<EFBFBD>
|
||||
query = query & "'" & "" & "', " 's_time_style
|
||||
query = query & "'1', " 'pay_type 1 : <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, 2 : <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
query = query & "'" & "" & "', " 'pay_month
|
||||
query = query & "getdate(), " 'insert_dt
|
||||
query = query & "'" & Session("User_Number") & "', "'insert_user
|
||||
query = query & "'" & id & "', " 'attribute01 neakeun_work<72><6B> ID
|
||||
query = query & "'" & etc_ok & "', "'<27><>Ÿ <20><><EFBFBD><EFBFBD>
|
||||
query = query & "'" & err_chk & "', "'<27><>Ÿ <20><><EFBFBD><EFBFBD>
|
||||
query = query & "'" & no_chk & "') "'<27><>Ÿ <20><><EFBFBD><EFBFBD>
|
||||
query = query &" select @@IDENTITY as ID "
|
||||
query = query &" Set NoCount off "
|
||||
Rs.Open query, adoConn, adOpenForwardOnly, adLockReadOnly, adCmdText
|
||||
If Not(Rs.Eof Or Rs.Bof) Then
|
||||
pay_id = Rs(0)
|
||||
End If
|
||||
Rs.Close
|
||||
End If
|
||||
|
||||
if Err.Number <> 0 then
|
||||
insert_ok = 0 'insert <20><><EFBFBD><EFBFBD>
|
||||
json_obj("err") = Err.description
|
||||
else
|
||||
insert_ok = 1 'insert <20><><EFBFBD><EFBFBD>
|
||||
end if
|
||||
|
||||
on error goto 0
|
||||
|
||||
json_obj("ok") = insert_ok
|
||||
json_obj("id") = id
|
||||
json_obj("pay_id") = pay_id
|
||||
Response.Write toJSON(json_obj)
|
||||
%>
|
||||
177
inspection/neakeun_status1.asp
Normal file
177
inspection/neakeun_status1.asp
Normal file
@@ -0,0 +1,177 @@
|
||||
<!-- #include virtual = "include/header.asp" -->
|
||||
<%
|
||||
dim command, txtmonth, search_year, search_month, Curr_date
|
||||
dim cnt
|
||||
dim Query
|
||||
dim Last_day
|
||||
|
||||
command = Request("command")
|
||||
txtmonth = request("txtmonth")
|
||||
if txtmonth = "" then
|
||||
txtmonth = mid(cdate(date),1,7)
|
||||
end if
|
||||
search_year = left(txtmonth, 4)
|
||||
search_month = right(txtmonth, 2)
|
||||
Curr_date = FormatDateTime(date,0)
|
||||
Last_day = Day(DateSerial(search_year, search_month + 1, 0)) ''<27>״<EFBFBD><D7B4><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>¥ <20><><EFBFBD>ϱ<EFBFBD>
|
||||
|
||||
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 name='Jobform' method='post'>
|
||||
<table class="table table-sm table-sm2 table-bordered table-head tr-colors">
|
||||
<%
|
||||
if command <> "excel" then
|
||||
%>
|
||||
<tr>
|
||||
<td><3E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
<input type="text" style="width:180px;text-align:center;CURSOR:pointer;" value="<%=txtmonth%>" name='txtmonth' class='selectMonth' readonly />
|
||||
<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
|
||||
|
||||
query = " select * from neakeun_in_out_time "
|
||||
query = query & " where substring(date,1,7) = '" & txtmonth & "'"
|
||||
query = query & " order by date, neakeun_name "
|
||||
'Response.Write query & "<BR>"
|
||||
adors.open query, adoconn,adopenstatic, adlockreadonly
|
||||
%>
|
||||
<tr>
|
||||
<td style="padding:5 0 0 0" class="brown" align="center">
|
||||
<09><>ȸ <20>Ⱓ : <b class="tahoma_orange"><%=txtmonth%>-01 <20><> <%=txtmonth%>-<%=zeroformat(last_day,2)%></b>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<table class="table table-sm table-sm2 table-bordered table-head tr-colors">
|
||||
<tr>
|
||||
<td width="17%" align="center" ><3E≯<EFBFBD></td>
|
||||
<td width="18%" align="center" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="20%" align="center" ><3E><>¥</td>
|
||||
<td width="15%" align="center" ><3E><><EFBFBD><EFBFBD></td>
|
||||
<td width="15%" align="center" ><3E><><EFBFBD>ٽð<D9BD></td>
|
||||
<td width="15%" align="center" ><3E><><EFBFBD>ٽð<D9BD></td>
|
||||
</tr>
|
||||
<!-- loop start -->
|
||||
<%do while not adors.EOF
|
||||
%>
|
||||
<tr>
|
||||
<td align="center"><%=adors("neakeun_name")%></td>
|
||||
<td align="center"><%=left(adors("neakeun_jumin"), 6)%></td>
|
||||
<td align="center"><%=adors("date")%></td>
|
||||
<td align="center"><span style="color:<%=iif(dayofweek(adors("date")) = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>", "#22408e", iif(adors("yoil") = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>", "#98311b", "#000"))%>"><%=dayofweek(adors("date"))%></span></td>
|
||||
<td align="center" ><%=adors("in_time")%></td>
|
||||
<td align="center" ><%=adors("out_time")%></td>
|
||||
</tr>
|
||||
<%
|
||||
adors.MoveNext
|
||||
loop 'next jj
|
||||
%>
|
||||
<!-- loop end -->
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<%
|
||||
end if
|
||||
%>
|
||||
</table>
|
||||
</form>
|
||||
<%if command <> "excel" then%>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.content -->
|
||||
<!-- REQUIRED SCRIPTS -->
|
||||
<script>
|
||||
function goView(command){
|
||||
var txtmonth = document.Jobform.txtmonth.value;
|
||||
if (txtmonth == "")
|
||||
{
|
||||
alert("<22><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ּ<EFBFBD><D6BC><EFBFBD>.");
|
||||
return false;
|
||||
}
|
||||
var url ="neakeun_status1.asp?txtmonth=" + txtmonth ;
|
||||
url = url + "&command=" + command;
|
||||
//eval("document.all.menuf.src = url;");
|
||||
//alert(url);
|
||||
document.Jobform.action = url;
|
||||
document.Jobform.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)));
|
||||
|
||||
table.ajax.reload( function ( json ){
|
||||
TableFilter(json);
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
$(".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 %>
|
||||
|
||||
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 %>
|
||||
296
inspection/neakeun_work_confirm.asp
Normal file
296
inspection/neakeun_work_confirm.asp
Normal file
@@ -0,0 +1,296 @@
|
||||
<!-- #include virtual = "include/header.asp" -->
|
||||
<!-- #include virtual = "include/left.asp" -->
|
||||
<%
|
||||
command = request("command")
|
||||
if command = "" then
|
||||
command="view"
|
||||
end if
|
||||
p_field_date_month = request("p_field_date_month")
|
||||
p_field_date_week = request("p_field_date_week")
|
||||
|
||||
if p_field_date_month = "" then
|
||||
p_field_date_month = LEFT(date, 7)
|
||||
end if
|
||||
%>
|
||||
<!-- 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><C8AE></h1>
|
||||
</div>
|
||||
<!-- /.content-header -->
|
||||
<!-- Main content -->
|
||||
<div class="content-body">
|
||||
<div class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<% Dim f_menu : f_menu = "nk" %>
|
||||
<!-- #include file = "f_menu.asp" -->
|
||||
<form name="neakeun_work_time" method="post" >
|
||||
<table class="table table-sm table-sm2 table-bordered table-head tr-colors">
|
||||
<tr>
|
||||
<td align="center"><3E><><EFBFBD><EFBFBD></td>
|
||||
<td align="left" >
|
||||
<select style="width:100px;font-size:13px;font-family:malgun gothic;" name='p_field_date_month' id="p_field_date_month" onchange="field_month_change('');">
|
||||
<%
|
||||
For i = 0 To -5 Step -1
|
||||
%>
|
||||
<option value="<%=LEFT(DateAdd("m", i, date), 7) %>" <%If p_field_date_month = LEFT(DateAdd("m", i, date), 7) Then %> selected <%End If %>><%=LEFT(DateAdd("m", i, date), 7) %></option>
|
||||
<%
|
||||
Next
|
||||
%>
|
||||
</select>
|
||||
<select name="p_field_date_week" id="p_field_date_week" style="width:200px;font-size:13px;font-family:malgun gothic;">
|
||||
<option value=""><3E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD></option>
|
||||
</select>
|
||||
<input type="checkbox" name="all_view" <% if command="all_view" then %>checked <% end if %>> <20><>ü<EFBFBD><C3BC><EFBFBD><EFBFBD>
|
||||
<input type="hidden" name="command" value="<%=command %>" />
|
||||
<img src="/images/common/btn_smallsrch.gif" align="absmiddle" onClick="goView('view');" style='cursor:pointer'>
|
||||
<font color="#c60000"><b><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ð<EFBFBD><C3B0><EFBFBD> 18<31><38> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>ڷ<EFBFBD> ǥ<>õ˴ϴ<CBB4>.</b></font>
|
||||
</td>
|
||||
</tr>
|
||||
<% if command <> "" and p_field_date_month <> "" and p_field_date_week <> "" then %>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<table class="table table-sm table-sm2 table-bordered table-head tr-colors">
|
||||
<tr style="font-size:13px;">
|
||||
<td align="center" style="width:1%;"><3E><><br><3E><></td>
|
||||
<td align="center" style="width:5%;"><3E><><EFBFBD><EFBFBD><br><3E><>¥</td>
|
||||
<td align="center" style="width:4%;"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><br><3E>ڵ<EFBFBD></td>
|
||||
<td align="center" style="width:3%;"><3E><><EFBFBD><EFBFBD><br><3E><><EFBFBD><EFBFBD></td>
|
||||
<td align="center" style="width:5%;"><3E><><EFBFBD><EFBFBD></td>
|
||||
<td align="center" style="width:6%;"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<br><3E>ڵ<EFBFBD></td>
|
||||
<td align="center" style="width:26%;"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<br><3E><></td>
|
||||
<td align="center" style="width:3%;"><3E><><br><3E><></td>
|
||||
<td align="center" style="width:3%;"><3E><><br><3E><></td>
|
||||
<td align="center" style="width:3%;"><3E><><br><3E><></td>
|
||||
<td align="center" style="width:3%;"><3E><><br><3E><></td>
|
||||
<td align="center" style="width:3%;"><3E><><EFBFBD><EFBFBD><br><3E>ð<EFBFBD></td>
|
||||
<td align="center" style="width:3%;"><3E>ʰ<EFBFBD><br><3E>ð<EFBFBD></td>
|
||||
<td align="center" style="width:3%;">+/-<br><3E>ð<EFBFBD></td>
|
||||
<td align="center" style="width:7%;">+/-<br><3E><><EFBFBD><EFBFBD></td>
|
||||
<td align="center" style="width:4%;"><3E><><EFBFBD><EFBFBD></td>
|
||||
<td align="center" style="width:3%;"><3E>߰<EFBFBD><br><3E><><EFBFBD><EFBFBD>1</td>
|
||||
<td align="center" style="width:3%;"><3E>߰<EFBFBD><br><3E><><EFBFBD><EFBFBD>2</td>
|
||||
<td align="center" style="width:4%;"><3E><><EFBFBD><EFBFBD><br><3E><></td>
|
||||
<td align="center" style="width:4%;"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td align="center" style="width:4%;">Confirm<br>
|
||||
<input type="checkbox" id="checkAll" name="checkAll" />
|
||||
</td>
|
||||
</tr>
|
||||
<%
|
||||
Dim grade_label_ck : grade_label_ck="0" '-- <20><><EFBFBD><EFBFBD> <20><><EFBFBD>Ͽ<EFBFBD><CFBF><EFBFBD> üũ<C3BC><C5A9>(20170807 <20>߰<EFBFBD>) <20><><EFBFBD><EFBFBD>(0) / <20><><EFBFBD><EFBFBD><DEBE><EFBFBD>(1)
|
||||
'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ǿ<EFBFBD> <20>ִ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.
|
||||
'<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.
|
||||
sql = " "
|
||||
sql = sql & " SELECT NW.p_child_sn, TPM.p_subject, MA.new_id, " & VbCrlf
|
||||
sql = sql & " NW.id, NW.neakeun_jumin, NW.neakeun_name, NW.p_sebu, NW.[date], " & VbCrlf
|
||||
sql = sql & " NW.in_time, NW.out_time, NW.job_in_time, NW.job_out_time, NW.job_total_time, " & VbCrlf
|
||||
sql = sql & " ISNULL(NW.job_add_time, '') AS job_add_time, NW.job_add_time_memo, " & VbCrlf
|
||||
sql = sql & " NW.job_lunch_yn, NW.job_dinner_yn, NW.job_confirm_yn, " & VbCrlf
|
||||
sql = sql & " ISNULL(dbo.M_GRADE(MA.id, NW.[date], NW.p_sebu_code), '') AS grade, ISNULL(dbo.M_GRADE_COST(MA.id, NW.[date], NW.p_sebu_code), '0') AS grade_cost, " & VbCrlf
|
||||
sql = sql & " CASE WHEN NW.job_lunch_yn = '1' THEN " & VbCrlf
|
||||
sql = sql & " CASE WHEN NW.job_confirm_yn = 'Y' THEN " & VbCrlf
|
||||
sql = sql & " ISNULL((SELECT s_sum FROM T_NEAKEUN_PAY with(nolock) WHERE attribute01 = CONVERT(VARCHAR(20), NW.id) AND s_gubun = '<27>߰<EFBFBD><DFB0><EFBFBD><EFBFBD><EFBFBD>1'), 0) " & VbCrlf
|
||||
sql = sql & " ELSE " & VbCrlf
|
||||
sql = sql & " CONVERT(INTEGER, dbo.M_FOOD_COST(MA.id, NW.[date], NW.p_child_sn, NW.p_sebu_code, 'lunch')) " & VbCrlf
|
||||
sql = sql & " END " & VbCrlf
|
||||
sql = sql & " ELSE 0 END AS lunch_cost, " & VbCrlf
|
||||
sql = sql & " CASE WHEN NW.job_dinner_yn = '1' THEN " & VbCrlf
|
||||
sql = sql & " CASE WHEN NW.job_confirm_yn = 'Y' THEN " & VbCrlf
|
||||
sql = sql & " ISNULL((SELECT s_sum FROM T_NEAKEUN_PAY with(nolock) WHERE attribute01 = CONVERT(VARCHAR(20), NW.id) AND s_gubun = '<27>߰<EFBFBD><DFB0><EFBFBD><EFBFBD><EFBFBD>2'), 0) " & VbCrlf
|
||||
sql = sql & " ELSE " & VbCrlf
|
||||
sql = sql & " CONVERT(INTEGER, dbo.M_FOOD_COST(MA.id, NW.[date], NW.p_child_sn, NW.p_sebu_code, 'dinner')) " & VbCrlf
|
||||
sql = sql & " END " & VbCrlf
|
||||
sql = sql & " ELSE 0 END AS dinner_cost, " & VbCrlf
|
||||
sql = sql & " D.d_order_cnt, " & VbCrlf
|
||||
sql = sql & " CASE WHEN D.d_order_cnt = '99' THEN '<27><><EFBFBD><EFBFBD> <20>ݷ<EFBFBD>' " & VbCrlf
|
||||
sql = sql & " WHEN D.d_order_cnt = '77' THEN '<27><><EFBFBD><EFBFBD> <20>Ϸ<EFBFBD>' " & VbCrlf
|
||||
sql = sql & " WHEN D.d_order_cnt IS NULL THEN '' " & VbCrlf
|
||||
sql = sql & " ELSE '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' END AS d_order_cnt " & VbCrlf
|
||||
sql = sql & " FROM neakeun_work NW with(nolock) " & VbCrlf
|
||||
sql = sql & " LEFT JOIN T_PROJECT_METHOD TPM with(nolock) ON NW.p_child_sn = TPM.p_child_sn " & VbCrlf
|
||||
sql = sql & " LEFT JOIN t_neakeun_pay TMP with(nolock) ON CONVERT(varchar(10), NW.id) = TMP.attribute01 AND s_gubun NOT LIKE '<27>߰<EFBFBD>%' " & VbCrlf
|
||||
sql = sql & " LEFT JOIN Document D with(nolock) on TMP.attribute05 = D.d_no AND D.d_delok = 'N' " & VbCrlf
|
||||
sql = sql & " LEFT JOIN man MA with(nolock) ON MA.m_name = NW.neakeun_name AND LEFT(MA.m_jumin, 6) = LEFT(NW.neakeun_jumin, 6) " & VbCrlf
|
||||
sql = sql & " WHERE NW.[date] BETWEEN '"& split(p_field_date_week,"@")(0) &"' and '"& split(p_field_date_week,"@")(1) &"' " & VbCrlf
|
||||
sql = sql & " AND NW.in_time + NW.out_time <> '00000000' " & VbCrlf
|
||||
'<27>ǻ<EFBFBD> <20>μ<EFBFBD><CEBC><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> sv <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
if command <> "all_view" then
|
||||
sql = sql & " AND NW.p_sv_main = '"& Session("User_Number") &"' " & VbCrlf
|
||||
end if
|
||||
sql = sql & " ORDER BY NW.[date], NW.neakeun_name, NW.p_child_sn, NW.p_sebu_code " & VbCrlf
|
||||
'Response.Write sql
|
||||
AdoRs.open sql, adoconn, adopenstatic, adlockreadonly
|
||||
%>
|
||||
<input type="hidden" name="cnt" value="<%=adors.recordcount %>"/>
|
||||
<%
|
||||
Dim rsa
|
||||
set rsa = server.CreateObject("ADODB.RECORDSET")
|
||||
|
||||
For i=1 to adors.recordcount
|
||||
list_bgcolor = ""
|
||||
tmp_work_end = 0
|
||||
tmp_work_end = cdbl(LEFT(adors("in_time"), 2)) * 60 + cdbl(RIGHT(adors("in_time"), 2)) + (cdbl(adors("job_total_time")) * 60)
|
||||
if adors("job_lunch_yn") = "1" then
|
||||
tmp_work_end = tmp_work_end + 60
|
||||
end if
|
||||
if adors("job_dinner_yn") = "1" then
|
||||
tmp_work_end = tmp_work_end + 30
|
||||
end if
|
||||
if tmp_work_end > 1080 then '<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>ð<EFBFBD><C3B0><EFBFBD> 1800 <20><><EFBFBD>ĸ<EFBFBD> <20><><EFBFBD>濡 <20>ٸ<EFBFBD><D9B8><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ǥ<><C7A5>
|
||||
list_bgcolor = "#c60000"
|
||||
end if
|
||||
%>
|
||||
<tr style="color:<%=list_bgcolor%>;font-size:11px;">
|
||||
<td align="center" class="align-middle"><%=adors.AbsolutePosition %></td>
|
||||
<td align="center" class="align-middle"><%=adors("date") %></td>
|
||||
<td align="center" class="align-middle"><%=adors("new_id") %></td>
|
||||
<td align="center" class="align-middle"><%=Left(adors("neakeun_jumin"),6) %></td>
|
||||
<td align="center" class="align-middle"><input type="hidden" name="id" value="<%=adors("id") %>"/><%=adors("neakeun_name") %></td>
|
||||
<td align="center" class="align-middle"><%=adors("p_child_sn") %></td>
|
||||
<td align="left" class="align-middle"><%=adors("p_subject") %></td>
|
||||
<td align="center" class="align-middle"><%=adors("p_sebu") %></td>
|
||||
<%
|
||||
if adors("grade") = "" Then
|
||||
grade_label_ck="1" '-- <20><><EFBFBD><EFBFBD> <20><><EFBFBD>Ͽ<EFBFBD><CFBF><EFBFBD> üũ<C3BC><C5A9>(20170807 <20>߰<EFBFBD>) <20><><EFBFBD><EFBFBD>(0) / <20><><EFBFBD><EFBFBD><DEBE><EFBFBD>(1)
|
||||
End if
|
||||
%>
|
||||
<td align="center" class="align-middle"><%=adors("grade") %></td>
|
||||
<td align="center" class="align-middle"><%=adors("in_time") %></td>
|
||||
<td align="center" class="align-middle"><%=adors("out_time") %></td>
|
||||
<td align="center" class="align-middle"><%=adors("job_in_time") %></td>
|
||||
<td align="center" class="align-middle"><%=adors("job_out_time") %></td>
|
||||
<td align="center" class="align-middle p-0">
|
||||
<input type="text" id="job_add_time" name="job_add_time" value="<%=adors("job_add_time") %>" style="width:95%;text-align:right"
|
||||
<% if adors("d_order_cnt") = "<22><><EFBFBD><EFBFBD> <20>Ϸ<EFBFBD>" OR adors("d_order_cnt") = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" then %> readonly <% end if %> />
|
||||
</td>
|
||||
<td align="center" class="align-middle p-0">
|
||||
<input type="text" id="job_add_time_memo" name="job_add_time_memo" value="<%=adors("job_add_time_memo") %>" style="width:95%;text-align:right"
|
||||
<% if adors("d_order_cnt") = "<22><><EFBFBD><EFBFBD> <20>Ϸ<EFBFBD>" OR adors("d_order_cnt") = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" then %> readonly <% end if %> />
|
||||
</td>
|
||||
<td align="center" class="align-middle"><%= FormatNumber(cDbl(adors("grade_cost")) * (cDbl(adors("job_in_time")) + cDbl(iif(adors("job_add_time") = "", "0", adors("job_add_time")))) + cDbl(adors("job_out_time")) * 1000, 0) %></td>
|
||||
<td align="center" class="align-middle"><%= FormatNumber(adors("lunch_cost"), 0) %></td>
|
||||
<td align="center" class="align-middle"><%= FormatNumber(adors("dinner_cost"), 0) %></td>
|
||||
<td align="center" class="align-middle"><%= FormatNumber((cDbl(adors("grade_cost")) * (cDbl(adors("job_in_time")) + cDbl(iif(adors("job_add_time") = "", "0", adors("job_add_time")))) + cDbl(adors("job_out_time")) * 1000) + cdbl(adors("lunch_cost")) + cdbl(adors("dinner_cost")), 0) %></td>
|
||||
<td align="center" class="align-middle"><%=adors("d_order_cnt") %><input type='hidden' name='d_order_cnt' value='<%=adors("d_order_cnt") %>' /></td>
|
||||
<td align="center" class="align-middle">
|
||||
<input type="hidden" id="work_confirm_<%=i%>" name="work_confirm_<%=i%>" value="Y" />
|
||||
<input type="checkbox" id="chk_work_confirm_<%=i%>" name="chk_work_confirm_<%=i%>" <% if adors("job_confirm_yn") = "Y" then %> checked <%end if %> value="Y"
|
||||
<% if adors("d_order_cnt") = "<22><><EFBFBD><EFBFBD> <20>Ϸ<EFBFBD>" OR adors("d_order_cnt") = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" then %> disabled <% end if %> />
|
||||
</td>
|
||||
</tr>
|
||||
<%
|
||||
adors.movenext
|
||||
next
|
||||
AdoRs.close
|
||||
%>
|
||||
</table>
|
||||
<FONT color="red">*** <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Ǵ<EFBFBD> <20><><EFBFBD><EFBFBD> <20>Ϸ<EFBFBD><CFB7><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Ұ<EFBFBD><D2B0><EFBFBD><EFBFBD>մϴ<D5B4>. <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>.</FONT>
|
||||
<center>
|
||||
<% Select Case grade_label_ck %>
|
||||
<% Case "0" %>
|
||||
<% if command <> "all_view" Or (Session("teamplace") >= 3 AND Session("Depart_Code") = "12") Or session("Depart_Code") = "18" Then %>
|
||||
<img src="/images/common/btn_save.jpg" align="absmiddle" onclick="save()" style="CURSOR:pointer;" id="img_save">
|
||||
<% End If %>
|
||||
<% Case "1" '-- <20>ش<EFBFBD><D8B4><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> %>
|
||||
<font color=blue>
|
||||
<09><> <20><><EFBFBD><EFBFBD><DEBC><EFBFBD><EFBFBD><EFBFBD> <20>ȵ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ֽ<EFBFBD><D6BD>ϴ<EFBFBD>. <20><><EFBFBD><EFBFBD><DEBC><EFBFBD><EFBFBD><EFBFBD> "<22><><EFBFBD><EFBFBD><EFBFBD>ϱ<EFBFBD>"<22><> <20><><EFBFBD><EFBFBD><EFBFBD>մϴ<D5B4>.
|
||||
</font>
|
||||
<% End Select %>
|
||||
</center>
|
||||
</td>
|
||||
</tr>
|
||||
<% end if %>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.content -->
|
||||
<!-- REQUIRED SCRIPTS -->
|
||||
<script>
|
||||
$(function () {
|
||||
field_month_change("<%=p_field_date_week %>");
|
||||
$("#checkAll").click(function () {
|
||||
if ($("#checkAll").prop("checked")) {
|
||||
$("input[type=checkbox]").prop("checked", true);
|
||||
} else {
|
||||
$("input[type=checkbox]").prop("checked", false);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
function save() {
|
||||
$("#img_save").css("display", "none");
|
||||
if(!confirm("<22><><EFBFBD><EFBFBD><EFBFBD>Ͻðڽ<C3B0><DABD>ϱ<EFBFBD>?")) {
|
||||
$("#img_save").css("display", "inline");
|
||||
return false;
|
||||
}
|
||||
cnt = document.neakeun_work_time.cnt.value;
|
||||
|
||||
if (cnt > 1) {
|
||||
for (i = 0; i < cnt; i++) {
|
||||
if ($("input:checkbox[id='chk_work_confirm_" + (i + 1) + "']").is(":checked") == false) {
|
||||
$("#work_confirm_" + (i + 1)).val("N");
|
||||
}
|
||||
if (document.neakeun_work_time.job_add_time[i].value != "" && document.neakeun_work_time.job_add_time[i].value != "0" && document.neakeun_work_time.job_add_time_memo[i].value == "") {
|
||||
alert(i + 1 + "<22><>° <20><><EFBFBD><EFBFBD> Ȯ<><C8AE><EFBFBD>ϼ<EFBFBD><CFBC><EFBFBD>.\n<>߰<EFBFBD>/<2F><><EFBFBD><EFBFBD><EFBFBD>ð<EFBFBD> <20>Է½<D4B7> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ݵ<EFBFBD><DDB5><EFBFBD> <20>Է<EFBFBD><D4B7>ؾ<EFBFBD> <20>մϴ<D5B4>.");
|
||||
$("#img_save").css("display", "inline");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if ($("input:checkbox[id='chk_work_confirm_1']").is(":checked") == false) {
|
||||
$("#work_confirm_1").val("N");
|
||||
}
|
||||
if (document.neakeun_work_time.job_add_time.value != "" && document.neakeun_work_time.job_add_time.value != "0" && document.neakeun_work_time.job_add_time_memo.value == "") {
|
||||
alert("<22>߰<EFBFBD>/<2F><><EFBFBD><EFBFBD><EFBFBD>ð<EFBFBD> <20>Է½<D4B7> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ݵ<EFBFBD><DDB5><EFBFBD> <20>Է<EFBFBD><D4B7>ؾ<EFBFBD> <20>մϴ<D5B4>.");
|
||||
$("#img_save").css("display", "inline");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
document.neakeun_work_time.action = "neakeun_work_confirm_save.asp";
|
||||
document.neakeun_work_time.submit();
|
||||
}
|
||||
|
||||
|
||||
function goView(command) {
|
||||
var url = "";
|
||||
var field_month = $("#p_field_date_month").val();
|
||||
var field_date_week = $("#p_field_date_week").val();
|
||||
var all_view_check = document.neakeun_work_time.all_view.checked;
|
||||
if (all_view_check) {
|
||||
command = "all_view";
|
||||
} else {
|
||||
command = "view";
|
||||
}
|
||||
if (field_date_week == "") {
|
||||
alert("<22><><EFBFBD>ڸ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϼ<EFBFBD><CFBC><EFBFBD>");
|
||||
} else {
|
||||
url = "neakeun_work_confirm.asp?command=" + command + "&p_field_date_month=" + field_month + "&p_field_date_week=" + field_date_week;
|
||||
document.neakeun_work_time.action = url;
|
||||
document.neakeun_work_time.submit();
|
||||
}
|
||||
}
|
||||
function check_comma(txt) {
|
||||
txt.value = txt.value.replace(/[^0-9]/gi, '');
|
||||
txt.value = allTrim(commify(txt.value));
|
||||
}
|
||||
|
||||
function field_month_change(field_date_week) {
|
||||
var field_month = $("#p_field_date_month").val();
|
||||
ajaxCallJson("neakeun_work_week_ajax.asp", { "p_field_date_month": field_month }, null, "post", "week_load('" + field_date_week + "')");
|
||||
}
|
||||
function week_load(week) {
|
||||
$("select[name=p_field_date_week] option").remove();
|
||||
$("select[name=p_field_date_week]").html(ajaxResponse);
|
||||
$("select[name=p_field_date_week]").val(week).prop("selected", "selected");
|
||||
}
|
||||
</script>
|
||||
</div>
|
||||
<!-- /.content-wrapper -->
|
||||
<!-- #include virtual = "include/footer.asp" -->
|
||||
300
inspection/neakeun_work_confirm_save.asp
Normal file
300
inspection/neakeun_work_confirm_save.asp
Normal file
@@ -0,0 +1,300 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<!-- #include virtual = "include/holiday_count.asp" -->
|
||||
<%
|
||||
set dbin = server.CreateObject("ADODB.CONNECTION")
|
||||
set rsp = server.CreateObject("ADODB.RECORDSET")
|
||||
set rsa = server.CreateObject("ADODB.RECORDSET")
|
||||
|
||||
|
||||
dbin.Open adoConn
|
||||
|
||||
for i=1 to request("cnt")
|
||||
d_order_cnt = request("d_order_cnt")(i)
|
||||
if d_order_cnt = "<22><><EFBFBD><EFBFBD> <20>ݷ<EFBFBD>" OR d_order_cnt = "" OR isnull(d_order_cnt) then
|
||||
id = request("id")(i)
|
||||
confirm_flag = request("work_confirm_"&i)
|
||||
query = " select * from neakeun_work with(nolock) "
|
||||
query = query & " where id = '" & id & "' "
|
||||
|
||||
rsc.open query, adoConn, adopenstatic, adlockreadonly
|
||||
|
||||
if rsc.RecordCount > 0 then
|
||||
query = " update neakeun_work"
|
||||
query = query & " set job_confirm_yn = '"&request("work_confirm_"&i)&"' "
|
||||
query = query & " , job_add_time = '"&request("job_add_time")(i)&"' "
|
||||
query = query & " , job_add_time_memo = '"&request("job_add_time_memo")(i)&"' "
|
||||
query = query & " where neakeun_jumin = '" & rsc("neakeun_jumin") & "' and neakeun_name = '" & rsc("neakeun_name") & "' "
|
||||
query = query & " and p_child_sn = '" & rsc("p_child_sn") & "' and date = '" & rsc("date") & "' and p_sebu = '" & rsc("p_sebu") & "' "
|
||||
|
||||
dbin.Execute query
|
||||
end if
|
||||
rsc.close
|
||||
|
||||
If confirm_flag = "Y" Then
|
||||
'2014-12-18 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> : <20>Ǵ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>̷<EFBFBD><CCB7><EFBFBD> <20><> <20><><EFBFBD><EFBFBD> <20>ش<EFBFBD> <20><><EFBFBD>ߵ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ʹ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD>̺<EFBFBD><CCBA><EFBFBD> <20>Է<EFBFBD> <20>ȴ<EFBFBD>.
|
||||
'<27>Է<EFBFBD><D4B7><EFBFBD> <20>ϱ<EFBFBD> <20><><EFBFBD>Ͽ<EFBFBD> <20>ش<EFBFBD> <20><><EFBFBD>ߵ<EFBFBD><DFB5><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ID<49><44> <20><><EFBFBD>Ͽ<EFBFBD> <20><>ȸ<EFBFBD>Ѵ<EFBFBD>.
|
||||
query = " SELECT * "
|
||||
query = query & " FROM neakeun_work with(nolock) "
|
||||
query = query & " WHERE id = '" & id & "' "
|
||||
|
||||
rsp.open query, adoConn, adopenstatic, adlockreadonly
|
||||
|
||||
If rsp.recordcount > 0 Then
|
||||
Dim in_time
|
||||
Dim out_time
|
||||
Dim add_time
|
||||
Dim yoil
|
||||
Dim holiday
|
||||
Dim lunch
|
||||
Dim dinner
|
||||
Dim grade_cost
|
||||
Dim pay
|
||||
Dim lunch_cost
|
||||
Dim dinner_cost
|
||||
|
||||
in_time = Cdbl(rsp("job_in_time"))
|
||||
out_time = Cdbl(rsp("job_out_time"))
|
||||
|
||||
If isnull(rsp("job_add_time")) or Trim(rsp("job_add_time")) = "" Then
|
||||
add_time = 0
|
||||
Else
|
||||
add_time = Cdbl(rsp("job_add_time"))
|
||||
End if
|
||||
|
||||
yoil = rsp("yoil")
|
||||
|
||||
pay = 0
|
||||
lunch_cost = 0
|
||||
dinner_cost = 0
|
||||
|
||||
query = " select id, m_jumin, m_name, m_grade "
|
||||
query = query & " ,(select top 1 cost from t_neakeun_pay_COST WITH(nolock) where grade = T.m_grade and type = 'cost' and use_start_dt <= '" & rsp("date") & "' order by use_start_dt desc) as m_grade_cost "
|
||||
query = query & " from ( "
|
||||
query = query & " select id, m_jumin, m_name "
|
||||
query = query & " ,(select top 1 m_grade from T_MYUN_GRADE_HISTORY WITH(nolock) where m_id = m.id and (attribute02 = '" & rsp("p_sebu_code") & "' OR attribute02 IS NULL) and m_grade_dt <= '" & rsp("date") & "' order by m_grade_dt desc, insert_dt desc) as m_grade "
|
||||
query = query & " from man as m "
|
||||
query = query & " ) as T "
|
||||
query = query & " where T.m_name = '" & rsp("neakeun_name") & "' and left(T.m_jumin, 6) = '" & Left(rsp("neakeun_jumin"), 6) & "' "
|
||||
'response.write query
|
||||
rsa.open query, adoConn, adopenstatic, adlockreadonly
|
||||
|
||||
If rsa.recordcount > 0 Then
|
||||
If rsa("m_grade_cost") = "" Or IsNull(rsa("m_grade_cost")) = True Then
|
||||
grade_cost = 0
|
||||
End If
|
||||
|
||||
grade_cost = rsa("m_grade_cost")
|
||||
|
||||
Dim currentMonth
|
||||
currentMonth = Left(Replace(rsp("date"), "-", ""), 6)
|
||||
|
||||
'in_time <20><> <20>Ϸ<EFBFBD><CFB7><EFBFBD> <20><> <20>ٹ<EFBFBD> <20>ð<EFBFBD> <20>̴<EFBFBD> (<28><> <20>ð<EFBFBD><C3B0><EFBFBD>, <20>ܸ<EFBFBD> <20><> <20><><EFBFBD><EFBFBD> <20>Ϸ<EFBFBD><CFB7><EFBFBD> <20><> <20>ٹ<EFBFBD> <20>ð<EFBFBD>)
|
||||
'If holiday = True Or yoil = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" Or yoil = "<22>Ͽ<EFBFBD><CFBF><EFBFBD>" Then
|
||||
' pay = ((in_time + add_time) * (grade_cost + 1000))
|
||||
'Else
|
||||
pay = ((in_time + add_time) * grade_cost) + (out_time * 1000)
|
||||
'End If
|
||||
Else
|
||||
grade_cost = 0
|
||||
pay = 0
|
||||
End If
|
||||
|
||||
rsa.close
|
||||
|
||||
'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̰<EFBFBD> <20>̹<EFBFBD> <20>ԷµǾ<C2B5> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>ϰ<EFBFBD> <20>ٽ<EFBFBD> <20>Է<EFBFBD>~!
|
||||
query = " delete t_neakeun_pay "
|
||||
query = query & " where attribute01 = '" & rsp("id") & "'"
|
||||
|
||||
dbin.Execute query
|
||||
|
||||
query = " insert into t_neakeun_pay (p_sn, m_name, m_jumin, work_dt, s_ot, s_gubun, s_pay_unit, s_wan, s_sum, s_time_style, pay_type, pay_month, insert_dt, insert_user, attribute01) "
|
||||
query = query & " values ("
|
||||
query = query & "'" & rsp("p_child_sn") & "', " 'p_sn
|
||||
query = query & "'" & rsp("neakeun_name") & "', " 'm_name
|
||||
query = query & "'" & rsp("neakeun_jumin") & "', " 'm_jumin
|
||||
query = query & "'" & rsp("date") & "', " 'work_dt
|
||||
query = query & "'" & 0 & "', " 's_ot
|
||||
query = query & "'" & rsp("p_sebu") & "', " 's_gubun <09><><EFBFBD><EFBFBD>
|
||||
query = query & "'" & grade_cost & "', " 's_pay_unit <20>ܰ<EFBFBD>
|
||||
query = query & "'" & (in_time + (add_time)) & "', "'s_wan <09>ð<EFBFBD>
|
||||
query = query & "'" & CDbl(Formatnumber(pay, 0)) & "', "'s_sum <09>հ<EFBFBD>
|
||||
query = query & "'" & "" & "', " 's_time_style
|
||||
query = query & "'1', " 'pay_type 1 : <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, 2 : <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
query = query & "'" & "" & "', " 'pay_month
|
||||
query = query & "getdate(), " 'insert_dt
|
||||
query = query & "'" & Session("User_Number") & "', "'insert_user
|
||||
query = query & "'" & rsp("id") & "') " 'attribute01 neakeun_work<72><6B> ID
|
||||
|
||||
dbin.Execute query
|
||||
|
||||
lunch = rsp("job_lunch_yn")
|
||||
dinner = rsp("job_dinner_yn")
|
||||
Dim lunch_alr
|
||||
Dim dinner_alr
|
||||
Dim lunch_dinner_rate
|
||||
lunch_dinner_rate = 1
|
||||
|
||||
If lunch = "1" Or dinner = "1" Then
|
||||
query = " select COUNT(p_child_sn) as p_sn_cnt, sum(job_in_time) as job_in_time "
|
||||
query = query & " from neakeun_work WITH(nolock) "
|
||||
query = query & " where date = '" & rsp("date") & "' "
|
||||
query = query & " and neakeun_name = '" & rsp("neakeun_name") & "' "
|
||||
query = query & " and left(neakeun_jumin, 6) = '" & Left(rsp("neakeun_jumin"), 6) & "' "
|
||||
query = query & " and in_time + out_time <> '00000000' "
|
||||
rsa.open query, adoConn, adopenstatic, adlockreadonly
|
||||
|
||||
If rsa.recordcount > 0 Then
|
||||
If rsa("p_sn_cnt") > 1 Then
|
||||
lunch_dinner_rate = Formatnumber( (1 / rsa("job_in_time") * rsp("job_in_time")) , 5 )
|
||||
End if
|
||||
End if
|
||||
rsa.close
|
||||
End if
|
||||
|
||||
If lunch = "1" Then
|
||||
'<27>Ĵ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><>ȸ~!
|
||||
query = " select top 1 cost from t_neakeun_pay_COST WITH(nolock) where type = 'lunch' and use_start_dt <= '" & rsp("date") & "' order by use_start_dt desc "
|
||||
rsa.open query, adoConn, adopenstatic, adlockreadonly
|
||||
|
||||
If rsa.recordcount > 0 Then
|
||||
lunch_cost = rsa("cost")
|
||||
End if
|
||||
rsa.close
|
||||
|
||||
query = " delete t_neakeun_pay "
|
||||
query = query & " where attribute01 = '" & rsp("id") & "' and s_gubun = '<27>߰<EFBFBD><DFB0><EFBFBD><EFBFBD><EFBFBD>1' "
|
||||
|
||||
dbin.Execute query
|
||||
|
||||
'<27>ش<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>ڿ<EFBFBD> <20>̹<EFBFBD> <20>Ĵ밡 <20><><EFBFBD>ԵǾ<D4B5> <20>ִ<EFBFBD><D6B4><EFBFBD> üũ
|
||||
query = " select isnull(sum(s_sum), 0) as m_lunch_cost from t_neakeun_pay WITH(nolock) "
|
||||
query = query & " where m_name = '" & rsp("neakeun_name") & "' "
|
||||
query = query & " and left(m_jumin, 6) = '" & Left(rsp("neakeun_jumin"), 6) & "' "
|
||||
query = query & " and work_dt = '" & rsp("date") & "' "
|
||||
query = query & " and s_gubun = '<27>߰<EFBFBD><DFB0><EFBFBD><EFBFBD><EFBFBD>1' "
|
||||
|
||||
lunch_alr = true
|
||||
rsa.open query, adoConn, adopenstatic, adlockreadonly
|
||||
|
||||
if cstr(rsa("m_lunch_cost")) = cstr(lunch_cost) then
|
||||
lunch_alr = false
|
||||
end if
|
||||
|
||||
If lunch_alr = true Then
|
||||
query = " insert into t_neakeun_pay (p_sn, m_name, m_jumin, work_dt, s_ot, s_gubun, s_pay_unit, s_wan, s_sum, s_time_style, pay_type, pay_month, insert_dt, insert_user, attribute01) "
|
||||
query = query & " values ("
|
||||
query = query & "'" & rsp("p_child_sn") & "', " 'p_sn
|
||||
query = query & "'" & rsp("neakeun_name") & "', " 'm_name
|
||||
query = query & "'" & rsp("neakeun_jumin") & "', " 'm_jumin
|
||||
query = query & "'" & rsp("date") & "', " 'work_dt
|
||||
query = query & "'" & 0 & "', " 's_ot
|
||||
query = query & "'<27>߰<EFBFBD><DFB0><EFBFBD><EFBFBD><EFBFBD>1', " 's_gubun <09><><EFBFBD><EFBFBD>
|
||||
query = query & "'" & lunch_cost & "', " 's_pay_unit <20>ܰ<EFBFBD>
|
||||
query = query & "'" & lunch_dinner_rate & "', " 's_wan <09>ð<EFBFBD>
|
||||
'query = query & "'" & round(CDbl(Formatnumber(lunch_cost * lunch_dinner_rate, 1)), 2) & "', " 's_sum <09>հ<EFBFBD>
|
||||
query = query & "'" & CDbl(Formatnumber(lunch_cost * lunch_dinner_rate, 0)) & "', " 's_sum <09>հ<EFBFBD>
|
||||
query = query & "'" & "" & "', " 's_time_style
|
||||
query = query & "'" & 1 & "', " 'pay_type 1 : <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, 2 : <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
query = query & "'" & "" & "', " 'pay_month
|
||||
query = query & "getdate(), " 'insert_dt
|
||||
query = query & "'" & Session("User_Number") & "', "'insert_user
|
||||
query = query & "'" & rsp("id") & "') " 'attribute01 neakeun_work<72><6B> ID
|
||||
|
||||
'Response.Write query & "<BR>"
|
||||
dbin.Execute query
|
||||
|
||||
End if
|
||||
rsa.close
|
||||
Else
|
||||
query = " delete t_neakeun_pay "
|
||||
query = query & " where attribute01 = '" & rsp("id") & "' and s_gubun = '<27>߰<EFBFBD><DFB0><EFBFBD><EFBFBD><EFBFBD>1' "
|
||||
|
||||
dbin.Execute query
|
||||
End If
|
||||
|
||||
If dinner = "1" Then
|
||||
'<27>Ĵ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><>ȸ~!
|
||||
query = " select top 1 cost from t_neakeun_pay_COST WITH(nolock) where type = 'dinner' and use_start_dt <= '" & rsp("date") & "' order by use_start_dt desc "
|
||||
rsa.open query, adoConn, adopenstatic, adlockreadonly
|
||||
|
||||
If rsa.recordcount > 0 Then
|
||||
dinner_cost = rsa("cost")
|
||||
End if
|
||||
rsa.close
|
||||
|
||||
query = " delete t_neakeun_pay "
|
||||
query = query & " where attribute01 = '" & rsp("id") & "' and s_gubun = '<27>߰<EFBFBD><DFB0><EFBFBD><EFBFBD><EFBFBD>2' "
|
||||
|
||||
dbin.Execute query
|
||||
|
||||
'<27>ش<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>ڿ<EFBFBD> <20>̹<EFBFBD> <20>Ĵ밡 <20><><EFBFBD>ԵǾ<D4B5> <20>ִ<EFBFBD><D6B4><EFBFBD> üũ
|
||||
query = " select isnull(sum(s_sum), 0) as t_dinner_cost from t_neakeun_pay WITH(nolock) "
|
||||
query = query & " where m_name = '" & rsp("neakeun_name") & "' "
|
||||
query = query & " and left(m_jumin, 6) = '" & Left(rsp("neakeun_jumin"), 6) & "' "
|
||||
query = query & " and work_dt = '" & rsp("date") & "' "
|
||||
query = query & " and s_gubun = '<27>߰<EFBFBD><DFB0><EFBFBD><EFBFBD><EFBFBD>2' "
|
||||
|
||||
rsa.open query, adoConn, adopenstatic, adlockreadonly
|
||||
dinner_alr = true
|
||||
|
||||
if rsa("t_dinner_cost") = dinner_cost then
|
||||
dinner_alr = false
|
||||
end if
|
||||
|
||||
If dinner_alr = true Then
|
||||
query = " insert into t_neakeun_pay (p_sn, m_name, m_jumin, work_dt, s_ot, s_gubun, s_pay_unit, s_wan, s_sum, s_time_style, pay_type, pay_month, insert_dt, insert_user, attribute01) "
|
||||
query = query & " values ("
|
||||
query = query & "'" & rsp("p_child_sn") & "', " 'p_sn
|
||||
query = query & "'" & rsp("neakeun_name") & "', " 'm_name
|
||||
query = query & "'" & rsp("neakeun_jumin") & "', " 'm_jumin
|
||||
query = query & "'" & rsp("date") & "', " 'work_dt
|
||||
query = query & "'" & 0 & "', " 's_ot
|
||||
query = query & "'<27>߰<EFBFBD><DFB0><EFBFBD><EFBFBD><EFBFBD>2', " 's_gubun <09><><EFBFBD><EFBFBD>
|
||||
query = query & "'" & dinner_cost & "', " 's_pay_unit <20>ܰ<EFBFBD>
|
||||
query = query & "'" & lunch_dinner_rate & "', " 's_wan <09>ð<EFBFBD>
|
||||
query = query & "'" & CDbl(Formatnumber(dinner_cost * lunch_dinner_rate, 0)) & "', "'s_sum <09>հ<EFBFBD>
|
||||
query = query & "'" & "" & "', " 's_time_style
|
||||
query = query & "'" & 1 & "', " 'pay_type 1 : <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, 2 : <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
query = query & "'" & "" & "', " 'pay_month
|
||||
query = query & "getdate(), " 'insert_dt
|
||||
query = query & "'" & Session("User_Number") & "', "'insert_user
|
||||
query = query & "'" & rsp("id") & "') " 'attribute01 neakeun_work<72><6B> ID
|
||||
|
||||
'Response.Write query & "<BR>"
|
||||
dbin.Execute query
|
||||
End if
|
||||
rsa.close
|
||||
Else
|
||||
query = " delete t_neakeun_pay "
|
||||
query = query & " where attribute01 = '" & rsp("id") & "' and s_gubun = '<27>߰<EFBFBD><DFB0><EFBFBD><EFBFBD><EFBFBD>2' "
|
||||
|
||||
dbin.Execute query
|
||||
End If
|
||||
|
||||
End if
|
||||
rsp.close
|
||||
Else
|
||||
query = " delete t_neakeun_pay "
|
||||
query = query & " where attribute01 = '" & id & "'"
|
||||
|
||||
dbin.Execute query
|
||||
End if
|
||||
END if
|
||||
next
|
||||
|
||||
dbin.Close
|
||||
%>
|
||||
<html>
|
||||
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
|
||||
<script>
|
||||
function goit() {
|
||||
alert('<27><><EFBFBD><EFBFBD><EFBFBD>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>');
|
||||
document.pms.action = 'neakeun_work_confirm.asp?command=<%=request("command") %>&p_field_date_month=<%=request("p_field_date_month") %>&p_field_date_week=<%=request("p_field_date_week")%>';
|
||||
document.pms.submit();
|
||||
}
|
||||
</script>
|
||||
<body onLoad="goit()">
|
||||
<form name="pms" method="post">
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
29
inspection/neakeun_work_week_ajax.asp
Normal file
29
inspection/neakeun_work_week_ajax.asp
Normal file
@@ -0,0 +1,29 @@
|
||||
|
||||
<%
|
||||
p_field_date_month = request("p_field_date_month")
|
||||
|
||||
Response.CharSet = "EUC-KR" '<27>ѱ<EFBFBD>
|
||||
Response.AddHeader "Pragma","no-cache"
|
||||
Response.AddHeader "cache-control", "no-staff"
|
||||
Response.Expires = -1
|
||||
|
||||
Response.Write "<option value=""""><3E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD></option>"
|
||||
|
||||
tmp_date = p_field_date_month + "-01"
|
||||
tmp_last_day = DateAdd("d", -1, DateAdd("m", 1, tmp_date))
|
||||
|
||||
For i=1 To 6
|
||||
tmp_max_day = DateAdd("d", 7 - weekday(tmp_date), cDate(tmp_date))
|
||||
If tmp_max_day > tmp_last_day Then
|
||||
tmp_max_day = tmp_last_day
|
||||
End If
|
||||
|
||||
Response.Write "<option value=""" & tmp_date & "@" & tmp_max_day & """>" & cstr(i) & "<22><><EFBFBD><EFBFBD>(" & tmp_date & "~" & tmp_max_day & ")</option>"
|
||||
|
||||
tmp_date = DateAdd("d", 1, DateAdd("d", 7 - weekday(tmp_date), cDate(tmp_date)))
|
||||
|
||||
if tmp_max_day = tmp_last_day then
|
||||
Exit for
|
||||
end if
|
||||
Next
|
||||
%>
|
||||
90
inspection/prj_list_modal.asp
Normal file
90
inspection/prj_list_modal.asp
Normal file
@@ -0,0 +1,90 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<%
|
||||
Response.CharSet = "EUC-KR"
|
||||
Dim n_gubun : n_gubun = Request("gubun")
|
||||
Dim prj_sv
|
||||
Dim p_url
|
||||
select case n_gubun
|
||||
|
||||
case "p"
|
||||
prj_sv = "and (p_punch_1 = '" & Session("USER_NUMBER") & "' or p_punch_2 = '" & Session("USER_NUMBER") & "' or p_punch_3 = '" & Session("USER_NUMBER") & "' or p_punch_4 = '" & Session("USER_NUMBER") & "') "
|
||||
p_url = "punching_confirm.asp"
|
||||
case "v1"
|
||||
prj_sv = "and (p_verify_1 = '" & Session("USER_NUMBER") & "' or p_verify_2 = '" & Session("USER_NUMBER") & "' or p_verify_3 = '" & Session("USER_NUMBER") & "' or p_verify_4 = '" & Session("USER_NUMBER") & "') "
|
||||
p_url = "ins_confirm.asp"
|
||||
case "v2"
|
||||
prj_sv = "and (p_verify_1 = '" & Session("USER_NUMBER") & "' or p_verify_2 = '" & Session("USER_NUMBER") & "' or p_verify_3 = '" & Session("USER_NUMBER") & "' or p_verify_4 = '" & Session("USER_NUMBER") & "') "
|
||||
p_url = "cins_confirm.asp"
|
||||
case "etc"
|
||||
prj_sv = "and (p_verify_1 = '" & Session("USER_NUMBER") & "' or p_verify_2 = '" & Session("USER_NUMBER") & "' or p_verify_3 = '" & Session("USER_NUMBER") & "' or p_verify_4 = '" & Session("USER_NUMBER") & "' "
|
||||
prj_sv = prj_sv&" or p_punch_1 = '" & Session("USER_NUMBER") & "' or p_punch_2 = '" & Session("USER_NUMBER") & "' or p_punch_3 = '" & Session("USER_NUMBER") & "' or p_punch_4 = '" & Session("USER_NUMBER") & "' "
|
||||
prj_sv = prj_sv&" or p_code_1 = '" & Session("USER_NUMBER") & "' or p_code_2 = '" & Session("USER_NUMBER") & "' or p_code_3 = '" & Session("USER_NUMBER") & "' or p_code_4 = '" & Session("USER_NUMBER") & "' "
|
||||
prj_sv = prj_sv&" or p_sv_1 = '" & Session("USER_NUMBER") & "' or p_sv_2 = '" & Session("USER_NUMBER") & "' or p_sv_3 = '" & Session("USER_NUMBER") & "' or p_sv_4 = '" & Session("USER_NUMBER") & "')"
|
||||
p_url = "qetc_confirm.asp"
|
||||
case "success"
|
||||
prj_sv = "and (p_verify_1 = '" & Session("USER_NUMBER") & "' or p_verify_2 = '" & Session("USER_NUMBER") & "' or p_verify_3 = '" & Session("USER_NUMBER") & "' or p_verify_4 = '" & Session("USER_NUMBER") & "' "
|
||||
prj_sv = prj_sv&" or p_punch_1 = '" & Session("USER_NUMBER") & "' or p_punch_2 = '" & Session("USER_NUMBER") & "' or p_punch_3 = '" & Session("USER_NUMBER") & "' or p_punch_4 = '" & Session("USER_NUMBER") & "' "
|
||||
prj_sv = prj_sv&" or p_code_1 = '" & Session("USER_NUMBER") & "' or p_code_2 = '" & Session("USER_NUMBER") & "' or p_code_3 = '" & Session("USER_NUMBER") & "' or p_code_4 = '" & Session("USER_NUMBER") & "')"
|
||||
p_url = "prj_success.asp"
|
||||
|
||||
end Select
|
||||
%>
|
||||
<script>
|
||||
$(function () {
|
||||
$(".prj_pick").css("cursor", "pointer");
|
||||
$(".prj_pick").each(function () {
|
||||
$(this).mouseover(function () {
|
||||
$(this).children("td").css("color", "blue");
|
||||
$(this).children("td").css("font-weight", "bold");
|
||||
});
|
||||
|
||||
$(this).mouseout(function () {
|
||||
$(this).children("td").css("color", "");
|
||||
$(this).children("td").css("font-weight", "normal");
|
||||
});
|
||||
});
|
||||
|
||||
$(".prj_pick").click(function () {
|
||||
$("#prj_code").val($(this).children('td:eq(0)').text());
|
||||
$("#prj_name").val($(this).children('td:eq(1)').text());
|
||||
$("#prj_search").attr("action", "<%=p_url %>");
|
||||
$("#prj_search").submit();
|
||||
});
|
||||
|
||||
});
|
||||
</script>
|
||||
<form id="prj_search" method="post">
|
||||
<input type="hidden" name="prj_code" id="prj_code" value="" />
|
||||
<input type="hidden" name="prj_name" id="prj_name" value="" />
|
||||
<table width="100%" class="table table-sm table-sm2 table-bordered table-head tr-colors">
|
||||
<tr>
|
||||
<td align="center" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20>ڵ<EFBFBD></td>
|
||||
<td align="center" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><></td>
|
||||
</tr>
|
||||
<%
|
||||
query = ""
|
||||
query = query &" select * from project2.dbo.T_PROJECT_METHOD "
|
||||
If n_gubun = "success" Then
|
||||
query = query &" where p_field_complete = '1' "
|
||||
Else
|
||||
query = query &" where p_field_complete is null "
|
||||
End If
|
||||
query = query &" and p_child_sn is not null and p_child_sn > '20' "
|
||||
if Session("Depart_code") <> "18" Then
|
||||
query = query &prj_sv
|
||||
End If
|
||||
query = query &" order by p_child_sn "
|
||||
Rs.open query, adoconn, adopenstatic, adlockreadonly
|
||||
while not rs.eof
|
||||
%>
|
||||
<tr class="prj_pick">
|
||||
<td ><%=Rs("p_child_sn") %></td>
|
||||
<td ><%=Rs("p_subject") %></td>
|
||||
</tr>
|
||||
<%
|
||||
rs.movenext
|
||||
wend
|
||||
Rs.close
|
||||
%>
|
||||
</table>
|
||||
</form>
|
||||
1183
inspection/project_direct_cost_2014.asp
Normal file
1183
inspection/project_direct_cost_2014.asp
Normal file
File diff suppressed because it is too large
Load Diff
44
inspection/punching_cnt.asp
Normal file
44
inspection/punching_cnt.asp
Normal file
@@ -0,0 +1,44 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<%
|
||||
Response.CharSet = "EUC-KR"
|
||||
|
||||
dim prj_code : prj_code = Request("prj_code")
|
||||
dim prj_name : prj_name = unescape(Request("prj_name"))
|
||||
%>
|
||||
<form id="prj_search" method="post">
|
||||
<table class="table table-sm table-sm2 table-bordered table-head tr-colors">
|
||||
<tr>
|
||||
<td align="center" colspan="3">(<%=prj_code %>) <%=prj_name %></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" ><3E><>ó</td>
|
||||
<td align="center" ><3E>ٹ<EFBFBD><D9B9><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td align="center" >Ÿ<><C5B8></td>
|
||||
</tr>
|
||||
<%
|
||||
query = ""
|
||||
query = query&" select left(tProcode,11) as prj_code, tUserID, convert(char(10),tEndDate,23) as date, "
|
||||
query = query&" sum(cast(REPLACE(tPunchCount,'-','') as int)) as tPunchCount "
|
||||
query = query&" from punching.dbo.tb_PunchLogInfo "
|
||||
query = query&" where tUserID in "
|
||||
query = query&" ( "
|
||||
query = query&" select tuserid from punching.dbo.tb_mgrusers "
|
||||
query = query&" ) "
|
||||
query = query&" and left(tProcode,11) = '" & prj_code & "' and tPunchCount <> '0' "
|
||||
query = query&" group by left(tProcode,11), tUserID, convert(char(10),tEndDate,23) "
|
||||
query = query&" order by date "
|
||||
Rs.open query, adoconn, adopenstatic, adlockreadonly
|
||||
while not rs.eof
|
||||
%>
|
||||
<tr class="prj_pick">
|
||||
<td align="center"><%=Rs("tUserID") %></td>
|
||||
<td align="center"><%=Rs("date") %></td>
|
||||
<td align="center"><%=formatNumber(Rs("tPunchCount"), 0) %></td>
|
||||
</tr>
|
||||
<%
|
||||
rs.movenext
|
||||
wend
|
||||
Rs.close
|
||||
%>
|
||||
</table>
|
||||
</form>
|
||||
401
inspection/punching_confirm.asp
Normal file
401
inspection/punching_confirm.asp
Normal file
@@ -0,0 +1,401 @@
|
||||
<!-- #include virtual = "include/header.asp" -->
|
||||
<!-- #include virtual = "include/left.asp" -->
|
||||
<%
|
||||
Dim prj_code : prj_code = Request("prj_code")
|
||||
Dim prj_name : prj_name = Request("prj_name")
|
||||
%>
|
||||
<!-- Content Wrapper. Contains page content -->
|
||||
<div class="content-wrapper">
|
||||
<!-- Content Header (Page header) -->
|
||||
<div class="content-header">
|
||||
<h1><3E><>ġ <20>ٹ<EFBFBD>Ȯ<EFBFBD><C8AE></h1>
|
||||
</div>
|
||||
<!-- /.content-header -->
|
||||
<!-- Main content -->
|
||||
<div class="content-body">
|
||||
<div class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<% Dim f_menu : f_menu = "nk" %>
|
||||
<!-- #include file = "f_menu.asp" -->
|
||||
<form name='punchform' id="punchform" method='post'>
|
||||
<div id="prj_list"></div>
|
||||
<table width="1200px" class="table table-sm table-sm2 table-bordered table-head tr-colors">
|
||||
<tr>
|
||||
<td align="center"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ</td>
|
||||
<td align="center" id="prj_sel" style="cursor:pointer;">
|
||||
<span class="prj_name"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD></span>
|
||||
</td>
|
||||
<td align="center"><button type="button" id="all_cnt"><3E><>ü Ÿ<><C5B8> <20><><EFBFBD><EFBFBD></button></td>
|
||||
<td align="center"><button type="button" id="excel_down" ><3E><><EFBFBD><EFBFBD> <20>ٿ<EFBFBD><D9BF>ε<EFBFBD></button></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align:center;"><3E>ܰ<EFBFBD> <20><><EFBFBD><EFBFBD></td>
|
||||
<td style="text-align:left;">
|
||||
<input type="text" name="all_unit_cost" id="all_unit_cost" value="" /> <20><> <button type="button" id="all_unit"><3E>ϰ<EFBFBD> <20><><EFBFBD><EFBFBD></button>
|
||||
</td>
|
||||
<td style="text-align:center;">Confrim ó<><C3B3></td>
|
||||
<td style="text-align:center;"><button type="button" id="all_check"><3E><>ü Ȯ<><C8AE></button></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='text-center' colspan="4">
|
||||
<table id="p_list" class="table table-sm table-sm2 table-bordered table-head tr-colors">
|
||||
<tr>
|
||||
<td align="center" ><3E><><EFBFBD><EFBFBD></td>
|
||||
<td align="center" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20>ڵ<EFBFBD></td>
|
||||
<td align="center" ><3E><>ó</td>
|
||||
<td align="center" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td align="center" ><3E>ٹ<EFBFBD><D9B9><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td align="center" >Ÿ<><C5B8></td>
|
||||
<td align="center" style="width:15%;"><3E>ܰ<EFBFBD></td>
|
||||
<td align="center" style="width:10%;"><3E>հ<EFBFBD></td>
|
||||
<td align="center" ><3E><><EFBFBD><EFBFBD></td>
|
||||
<td align="center" >Ȯ<><C8AE></td>
|
||||
</tr>
|
||||
<%
|
||||
dim no : no = 0
|
||||
query = ""
|
||||
query = query &" select isnull(cast(BB.id as varchar),'') as id, isnull(cast(CC.id as varchar),'') as pay_id, AA.*, isnull(CC.s_pay_unit,'0') as s_pay_unit, isnull(CC.s_wan,'0') as s_wan, isnull(CC.s_sum, '0') as s_sum, "&VbCrlf
|
||||
query = query &" isnull(BB.job_add_time_memo,'') as job_add_time_memo, isnull(CC.insert_user,'') as insert_user, isnull(CC.attribute01,'') as attribute01, isnull(BB.job_confirm_yn,'N') as job_confirm_yn, "&VbCrlf
|
||||
query = query &" isnull(CC.attribute05,'') as attribute05, case when DD.d_order_cnt = '77' then '<27><><EFBFBD><EFBFBD> <20>Ϸ<EFBFBD>' when DD.d_order_cnt is null then '' else '<27><><EFBFBD><EFBFBD> <20><>' end as d_order_cnt from "&VbCrlf
|
||||
query = query &" ( "&VbCrlf
|
||||
query = query &" select left(tProcode,11) as prj_code, a.tUserID, b.tuserpwd as n_birth, convert(char(10),tEndDate,23) as date, "&VbCrlf
|
||||
query = query &" sum(cast(REPLACE(tPunchCount,'-','') as int)) as tPunchCount "&VbCrlf
|
||||
query = query &" from punching.dbo.tb_PunchLogInfo a "&VbCrlf
|
||||
query = query &" left join punching.dbo.tb_mgrusers b on a.tUserID=b.tuserid "&VbCrlf
|
||||
query = query &" where a.tUserID in (select tuserid from punching.dbo.tb_mgrusers where tuseroption = '18') "&VbCrlf
|
||||
query = query &" and left(a.tProcode,11) = '" & prj_code & "' and a.tPunchCount<>'0' "&VbCrlf
|
||||
query = query &" group by left(tProcode,11), a.tUserID, b.tuserpwd, convert(char(10),tEndDate,23) "&VbCrlf
|
||||
query = query &" ) as AA "&VbCrlf
|
||||
query = query &" left join "&VbCrlf
|
||||
query = query &" ( "&VbCrlf
|
||||
query = query &" select id, p_child_sn, neakeun_name, left(neakeun_jumin,6) as neakeun_jumin, date, job_add_time_memo, job_confirm_yn from project2.dbo.neakeun_work "&VbCrlf
|
||||
query = query &" where p_sebu='<27><>ġ' "&VbCrlf
|
||||
query = query &" ) BB on AA.tUserID=BB.neakeun_name and AA.n_birth=BB.neakeun_jumin and AA.date=BB.date and AA.prj_code=BB.p_child_sn "&VbCrlf
|
||||
query = query &" left join "&VbCrlf
|
||||
query = query &" ( "&VbCrlf
|
||||
query = query &" select id, p_sn, m_name, left(m_jumin,6) as m_jumin, s_pay_unit, s_wan, s_sum, insert_user, attribute01, attribute05 from project2.dbo.T_NEAKEUN_PAY "&VbCrlf
|
||||
query = query &" where s_gubun='<27><>ġ' "&VbCrlf
|
||||
query = query &" ) CC on AA.prj_code=CC.p_sn and AA.tUserID=CC.m_name and AA.n_birth=CC.m_jumin and BB.id=CC.attribute01 "&VbCrlf
|
||||
query = query &" left join "&VbCrlf
|
||||
query = query &" ( "&VbCrlf
|
||||
query = query &" select d_no, d_order_cnt from project2.dbo.Document "&VbCrlf
|
||||
query = query &" where d_delok='N' "&VbCrlf
|
||||
query = query &" ) DD on CC.attribute05=DD.d_no "&VbCrlf
|
||||
query = query &" order by AA.date "&VbCrlf
|
||||
'Response.Write query
|
||||
Rs.open query, adoconn, adopenstatic, adlockreadonly
|
||||
Dim input_readonly
|
||||
while not rs.eof
|
||||
If rs("job_confirm_yn") = "Y" Then
|
||||
input_readonly = "readonly='reaonldy'"
|
||||
else
|
||||
input_readonly = ""
|
||||
End If
|
||||
no = no + 1
|
||||
%>
|
||||
<tr>
|
||||
<td class="text-center"><%=no %></td>
|
||||
<td class="text-center"><%=rs("prj_code") %></td>
|
||||
<td class="text-center"><%=rs("tUserID") %><input type="hidden" name="n_id" class="n_id" value="<%=rs("id") %>" /><input type="hidden" name="n_pay_id" class="n_pay_id" value="<%=rs("pay_id") %>" /></td>
|
||||
<td class="text-center"><%=rs("n_birth") %></td>
|
||||
<td class="text-center"><%=rs("date") %></td>
|
||||
<td class="text-center"><%=FormatNumber(rs("tPunchCount"),0) %></td>
|
||||
<td class="text-center"><input type="text" name="p_unit" value="<%=rs("s_pay_unit") %>" class="p_unit text-right" tabindex="<%=no %>" <%=input_readonly %>/><3E><></td>
|
||||
<td class="text-center"><%=FormatNumber(rs("s_sum"),0) %><3E><></td>
|
||||
<td class="text-center"><input type="text" name="p_etc" value="<%=rs("job_add_time_memo") %>" class="p_etc" tabindex="1000+<%=no %>" <%=input_readonly %> style="width:100%;"/></td>
|
||||
<td class="text-center">
|
||||
<%If rs("job_confirm_yn") = "N" Then%>
|
||||
<button type="button" class="confirm" data-value="save">Ȯ<><C8AE></button>
|
||||
<%Else %>
|
||||
<%If rs("attribute05") = "" Then %>
|
||||
<button type="button" class="confirm" data-value="del" style="background:#CA7C7B;"><3E><><EFBFBD><EFBFBD></button>
|
||||
<%Else %>
|
||||
<b style="color:red;"><%=rs("d_order_cnt") %></b>
|
||||
<%End If %>
|
||||
<%End If %>
|
||||
</td>
|
||||
</tr>
|
||||
<%
|
||||
rs.movenext
|
||||
wend
|
||||
rs.Close
|
||||
%>
|
||||
</table>
|
||||
<button type="button" id="pay_go"><3E><><EFBFBD><EFBFBD></button>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.content -->
|
||||
<!-- REQUIRED SCRIPTS -->
|
||||
<script>
|
||||
var prjDialog;
|
||||
$(function () {
|
||||
prj_code = "<%=prj_code %>";
|
||||
prj_name = "<%=prj_name %>";
|
||||
|
||||
if (prj_code != "") {
|
||||
$(".prj_name").text("(" + prj_code + ") " + prj_name);
|
||||
}else{
|
||||
$("#p_list").css("display", "none");
|
||||
$("#p_list").parent("td").text("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD><EFBFBD>Ͽ<EFBFBD> <20>ֽʽÿ<CABD>.");
|
||||
}
|
||||
|
||||
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD>
|
||||
$("#prj_sel").click(function () {
|
||||
var url = "prj_list_modal.asp?gubun=p";
|
||||
modal_open(url, "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD>");
|
||||
});
|
||||
|
||||
//<2F><>ü Ÿ<><C5B8>
|
||||
$("#all_cnt").click(function () {
|
||||
if (prj_code == "") {
|
||||
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD><EFBFBD>Ͽ<EFBFBD> <20>ֽʽÿ<CABD>.");
|
||||
return false;
|
||||
} else {
|
||||
var url = "punching_cnt.asp?prj_code=" + prj_code + "&prj_name=" + escape(prj_name);
|
||||
modal_open(url, "<22><>ü Ÿ<><C5B8> <20><><EFBFBD><EFBFBD>");
|
||||
}
|
||||
});
|
||||
|
||||
//<2F><>ü <20>ܰ<EFBFBD>
|
||||
$("#all_unit_cost").click(function () {
|
||||
unit_evt($(this));
|
||||
});
|
||||
|
||||
//<2F><>ü <20>ܰ<EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
$("#all_unit").click(function () {
|
||||
if($("#all_unit_cost").val() == ""){
|
||||
alert("<22><>ü <20>ܰ<EFBFBD><DCB0><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ͽ<EFBFBD> <20>ֽñ<D6BD> <20>ٶ<EFBFBD><D9B6>ϴ<EFBFBD>.");
|
||||
return false;
|
||||
}else{
|
||||
if (confirm("<22>ϰ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ÿ<EFBFBD><C3BF><EFBFBD> <20>κ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ܰ<EFBFBD><DCB0><EFBFBD> <20><><EFBFBD><EFBFBD> <20>˴ϴ<CBB4>.\n<><6E><EFBFBD><EFBFBD> <20>Ͻðڽ<C3B0><DABD>ϱ<EFBFBD>?")) {
|
||||
var all_unit_cost = $("#all_unit_cost").val();
|
||||
$(".p_unit").each(function (e) {
|
||||
if ($(".p_unit").eq(e).prop("readonly") == false) {
|
||||
$(".p_unit").eq(e).val(all_unit_cost);
|
||||
var cnt = parseInt($(this).parent("td").prev().text().replace(/,/g, ''));
|
||||
var unit_cost = parseFloat($(this).val());
|
||||
var sum;
|
||||
sum = cnt * unit_cost;
|
||||
if (isNaN(sum)) {
|
||||
$(this).parent("td").next().text(0 + " <20><>");
|
||||
} else {
|
||||
$(this).parent("td").next().text(commify(Math.ceil(sum)));
|
||||
}
|
||||
}
|
||||
});
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
//<2F><>ü Confirm
|
||||
$("#all_check").click(function () {
|
||||
if (confirm("Ȯ<><C8AE> ó<><C3B3> <20>ȵ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>鸸 ó<><C3B3> <20>˴ϴ<CBB4>.\n<><6E><EFBFBD><EFBFBD> <20>Ͻðڽ<C3B0><DABD>ϱ<EFBFBD>?")) {
|
||||
$(".confirm").each(function () {
|
||||
var gubun = $(this).text();
|
||||
if (gubun == "Ȯ<><C8AE>") {
|
||||
$(this).trigger("click");
|
||||
}
|
||||
});
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
//<2F><><EFBFBD><EFBFBD> Confirm
|
||||
$(".confirm").click(function () {
|
||||
var gubun = "p";
|
||||
var obj = $(this);
|
||||
var prj_code = $(this).parent("td").siblings().eq(1).text();
|
||||
var n_name = $(this).parent("td").siblings().eq(2).text();
|
||||
var n_id = $(this).parent("td").siblings().eq(2).children(".n_id").val(); //neakeun_work id
|
||||
var n_pay_id = $(this).parent("td").siblings().eq(2).children(".n_pay_id").val(); //neakeun_pay id
|
||||
var n_birth = $(this).parent("td").siblings().eq(3).text();
|
||||
var n_date = $(this).parent("td").siblings().eq(4).text();
|
||||
var n_cnt = $(this).parent("td").siblings().eq(5).text().replace(/,/g, '');
|
||||
var p_danga = $(this).parent("td").siblings().eq(6).children($(".p_unit")).val();
|
||||
var p_sum = $(this).parent("td").siblings().eq(7).text().replace(/,/g, '');
|
||||
p_sum = p_sum.replace('<27><>', '');
|
||||
var p_etc = $(this).parent("td").siblings().eq(8).children($(".p_etc")).val();
|
||||
|
||||
if (p_danga == "" || p_sum == "") {
|
||||
alert("<22>ݾ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ȵǾ<C8B5> <20>ֽ<EFBFBD><D6BD>ϴ<EFBFBD>.");
|
||||
$(this).parent("td").siblings().eq(7).children($(".p_etc")).focus();
|
||||
return false
|
||||
}
|
||||
|
||||
if (obj.text() == "Ȯ<><C8AE>") {
|
||||
url = "neakeun_save_ajax.asp";
|
||||
} else {
|
||||
url = "neakeun_del_ajax.asp";
|
||||
}
|
||||
|
||||
ajax_confirm(url, gubun, prj_code, escape(n_name), n_id, n_pay_id, n_birth, n_date, n_cnt, p_danga, p_sum, escape(p_etc), obj);
|
||||
});
|
||||
|
||||
//<2F><><EFBFBD><EFBFBD> <20>ܰ<EFBFBD>
|
||||
$(".p_unit").click(function () {
|
||||
unit_evt($(this));
|
||||
});
|
||||
|
||||
//<2F>ܰ<EFBFBD><DCB0><EFBFBD> <20>հ<EFBFBD>
|
||||
$(".p_unit").each(function (e) {
|
||||
$(this).keyup(function () {
|
||||
var cnt = parseInt($(this).parent("td").prev().text().replace(/,/g, ''));
|
||||
var unit_cost = parseFloat($(this).val());
|
||||
var sum;
|
||||
sum = cnt * unit_cost;
|
||||
if (isNaN(sum)) {
|
||||
$(this).parent("td").next().text(0+" <20><>");
|
||||
} else {
|
||||
$(this).parent("td").next().text(commify(Math.ceil(sum)));
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
$("#pay_go").click(function () {
|
||||
var url = "/approval/doc_myun_pay.asp?title=<3D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ǽ<EFBFBD>";
|
||||
$("#punchform").attr("action", url);
|
||||
$("#punchform").submit();
|
||||
});
|
||||
|
||||
$("#excel_down").click(function () {
|
||||
var d = new Date();
|
||||
$("#p_list").table2excel({
|
||||
name: "<%=prj_code %>_" + d.getFullYear() + d.getMonth() + d.getDate(),
|
||||
filename: "<%=prj_code %>_" + d.getFullYear() + d.getMonth() + d.getDate(),
|
||||
fileext: ".xls",
|
||||
exclude_inputs: true
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
function modal_open(url, x) {
|
||||
$("body").css({
|
||||
overflow: 'hidden'
|
||||
});
|
||||
prjDialog = $("#prj_list").dialog({
|
||||
autoOpen: false,
|
||||
modal: true,
|
||||
resizable: false,
|
||||
position: { my: "center", at: "top" },
|
||||
show: "blind",
|
||||
width: "600",
|
||||
height: "500",
|
||||
title: x,
|
||||
open: function () {
|
||||
$(".ui-widget-overlay").css({
|
||||
opacity: 0.5,
|
||||
filter: "Alpha(Opacity=50)",
|
||||
backgroundColor: "gray"
|
||||
});
|
||||
},
|
||||
close: function (event, ui) {
|
||||
$("body").css({
|
||||
overflow: 'inherit'
|
||||
});
|
||||
url = "";
|
||||
prjDialog.dialog("close");
|
||||
}
|
||||
});
|
||||
|
||||
prjDialog.load(url, function () {
|
||||
prjDialog.dialog("open");
|
||||
});
|
||||
}
|
||||
|
||||
function unit_evt(obj) {
|
||||
$(obj).css('imeMode', 'disabled').keypress(function (evt) {
|
||||
if (evt.which && (evt.which < 45 || evt.which > 57)) {
|
||||
evt.preventDefault();
|
||||
}
|
||||
|
||||
var charCode = (evt.which) ? evt.which : event.keyCode;
|
||||
if (charCode != 46 && charCode > 31 && (charCode < 48 || charCode > 57)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
var regexp = /^\d*[.]\d*$/;//<2F>Ҽ<EFBFBD><D2BC><EFBFBD>
|
||||
var val = $(this).val();
|
||||
|
||||
if (regexp.test(val)) {//<2F>Ҽ<EFBFBD><D2BC><EFBFBD> Prevent
|
||||
if (charCode == 46) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}).keyup(function (evt) {
|
||||
if ($(this).val() != null && $(this).val() != '') {
|
||||
$(this).val($(this).val().replace(/[^\.0-9]/g, ''));
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
//Confirm
|
||||
function ajax_confirm(url, gubun, prj_code, n_name, n_id, n_pay_id, n_birth, n_date, n_cnt, p_danga, p_sum, p_etc, obj) {
|
||||
$.ajax({
|
||||
url: url,
|
||||
type: "get",
|
||||
data:
|
||||
{
|
||||
"gubun": gubun,
|
||||
"n_id": n_id,
|
||||
"n_pay_id": n_pay_id,
|
||||
"prj_code": prj_code,
|
||||
"n_name": n_name,
|
||||
"n_birth": n_birth,
|
||||
"n_date": n_date,
|
||||
"n_cnt": n_cnt, //Ÿ<><C5B8>
|
||||
"p_danga": p_danga, //<2F>ܰ<EFBFBD>
|
||||
"p_sum": p_sum, //<2F>հ<EFBFBD>
|
||||
"p_etc": p_etc,
|
||||
},
|
||||
dataType:"JSON",
|
||||
success: function (data) {
|
||||
console.log(data);
|
||||
if (data.ok == "1") {
|
||||
if (obj.text() == "Ȯ<><C8AE>") {
|
||||
if (n_id == "" && n_pay_id == "") {
|
||||
obj.parent("td").siblings().eq(2).children(".n_id").val(data.id);
|
||||
obj.parent("td").siblings().eq(2).children(".n_pay_id").val(data.pay_id);
|
||||
obj.parent("td").siblings().eq(6).children(".p_unit").prop("readonly",true);
|
||||
obj.parent("td").siblings().eq(8).children(".p_etc").prop("readonly", true);
|
||||
}
|
||||
obj.text("<22><><EFBFBD><EFBFBD>");
|
||||
obj.css("background", "#CA7C7B");
|
||||
} else {
|
||||
if (n_id != "" || n_pay_id != "") {
|
||||
obj.parent("td").siblings().eq(2).children(".n_id").val("");
|
||||
obj.parent("td").siblings().eq(2).children(".n_pay_id").val("");
|
||||
obj.parent("td").siblings().eq(6).children(".p_unit").prop("readonly", false);
|
||||
obj.parent("td").siblings().eq(8).children(".p_etc").prop("readonly", false);
|
||||
}
|
||||
obj.text("Ȯ<><C8AE>");
|
||||
obj.css("background", "");
|
||||
}
|
||||
} else {
|
||||
if (data.ok == "2") {
|
||||
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ֽ<EFBFBD><D6BD>ϴ<EFBFBD>.\n<><6E><EFBFBD><EFBFBD><EFBFBD>ڿ<EFBFBD><DABF><EFBFBD> <20><><EFBFBD><EFBFBD> <20>ٶ<EFBFBD><D9B6>ϴ<EFBFBD>.");
|
||||
} else {
|
||||
alert("<22><><EFBFBD><EFBFBD>!\n <20>Է<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ٽ<EFBFBD> Ȯ<><C8AE> <20>Ͽ<EFBFBD> <20>ֽñ<D6BD> <20>ٶ<EFBFBD><D9B6>ϴ<EFBFBD>.");
|
||||
}
|
||||
}
|
||||
},
|
||||
error: function () {
|
||||
alert("<22><><EFBFBD><EFBFBD> <20><EFBFBD>\n<><6E><EFBFBD><EFBFBD><EFBFBD>ڿ<EFBFBD><DABF><EFBFBD> <20><><EFBFBD><EFBFBD> <20>Ͻʽÿ<CABD>.");
|
||||
}
|
||||
});
|
||||
}
|
||||
</script>
|
||||
</div>
|
||||
<!-- /.content-wrapper -->
|
||||
<!-- #include virtual = "include/footer.asp" -->
|
||||
666
inspection/qetc_confirm.asp
Normal file
666
inspection/qetc_confirm.asp
Normal file
@@ -0,0 +1,666 @@
|
||||
<!-- #include virtual = "include/header.asp" -->
|
||||
<!-- #include virtual = "include/left.asp" -->
|
||||
<%
|
||||
Dim prj_code : prj_code = Request("prj_code")
|
||||
Dim prj_name : prj_name = Request("prj_name")
|
||||
%>
|
||||
<!-- Content Wrapper. Contains page content -->
|
||||
<div class="content-wrapper">
|
||||
<style>
|
||||
#loadingBar{
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
top: 0px;
|
||||
left: 0px;
|
||||
background-color: rgba(255,255,255,0.5);
|
||||
z-index: 5001;
|
||||
}
|
||||
#loadingBar img{
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
top: 50%;
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
}
|
||||
.date_picker{
|
||||
cursor:pointer;
|
||||
}
|
||||
|
||||
#p_list input{
|
||||
display:inline-block;
|
||||
width:100%;
|
||||
}
|
||||
</style>
|
||||
<!-- Content Header (Page header) -->
|
||||
<div class="content-header">
|
||||
<h1><3E><>Ÿ <20>ٹ<EFBFBD>Ȯ<EFBFBD><C8AE></h1>
|
||||
</div>
|
||||
<!-- /.content-header -->
|
||||
<!-- Main content -->
|
||||
<div class="content-body">
|
||||
<div class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<% Dim f_menu : f_menu = "nk" %>
|
||||
<!-- #include file = "f_menu.asp" -->
|
||||
<div id="loadingBar" style="display: none;"><img src="/images/loadingBar.gif"></div>
|
||||
<div id="fileUploadDialog">
|
||||
<form id='qetcform_up' method='post' enctype="multipart/form-data" action="">
|
||||
<button type="button" class='btn btn-block btn-primary mb-3' id="sampleXlsx"><3E><><EFBFBD><EFBFBD> <20>ٿ<EFBFBD><D9BF>ε<EFBFBD></button>
|
||||
<input type="file" class='form-control' id="ufile" name="ufile" />
|
||||
</form>
|
||||
</div>
|
||||
<form name='qetcform' id="qetcform" method='post'>
|
||||
<div id="prj_list"></div>
|
||||
<table width="1200px" class="table table-sm table-sm2 table-bordered table-head tr-colors">
|
||||
<tr>
|
||||
<td align="center"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ</td>
|
||||
<td align="center" id="prj_sel" style="cursor:pointer;" colspan="3">
|
||||
<span class="prj_name"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD></span>
|
||||
<input type="hidden" name="prj_code" value="<%=prj_code %>" />
|
||||
</td>
|
||||
<td align="center"><button type="button" id="file_upload">List Upload</button></td>
|
||||
<td align="center"><button type="button" id="excel_down" ><3E><><EFBFBD><EFBFBD> <20>ٿ<EFBFBD><D9BF>ε<EFBFBD></button></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center"><3E>ܰ<EFBFBD> <20><><EFBFBD><EFBFBD></td>
|
||||
<td style="text-align:left;"><input type="text" name="all_unit_cost" id="all_unit_cost" value="" /> <20><> <button type="button" id="all_unit"><3E>ϰ<EFBFBD> <20><><EFBFBD><EFBFBD></button></td>
|
||||
<td align="center"><3E><> <20>ο<EFBFBD> <span class="all_row"></span><3E><></td>
|
||||
<td align="center"><button type="button" id="row_plus"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>߰<EFBFBD></button></td>
|
||||
<td align="center">Confrim ó<><C3B3></td>
|
||||
<td align="center"><button type="button" id="all_check"><3E><>ü Ȯ<><C8AE></button></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="6" class='text-center'>
|
||||
<table id="p_list" class="table table-sm table-sm2 table-bordered table-head tr-colors">
|
||||
<tr>
|
||||
<td style="text-align:center;width:50px;"><3E><><EFBFBD><EFBFBD></td>
|
||||
<td style="text-align:center;width:80px;"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td style="text-align:center;width:80px;"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td style="text-align:center;width:80px;"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td style="text-align:center;width:120px;"><3E>ٹ<EFBFBD><D9B9><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td style="text-align:center;width:80px;"><3E>ٹ<EFBFBD><D9B9>ð<EFBFBD></td>
|
||||
<td style="text-align:center;width:80px;"><3E>ܰ<EFBFBD></td>
|
||||
<td style="text-align:center;width:80px;"><3E>߰<EFBFBD><DFB0><EFBFBD><EFBFBD><EFBFBD>1</td>
|
||||
<td style="text-align:center;width:80px;"><3E>߰<EFBFBD><DFB0><EFBFBD><EFBFBD><EFBFBD>2</td>
|
||||
<td style="text-align:center;width:80px;"><3E>հ<EFBFBD></td>
|
||||
<td style="text-align:center;"><3E><><EFBFBD><EFBFBD></td>
|
||||
<td style="text-align:center;width:80px;">Ȯ<><C8AE></td>
|
||||
<td style="text-align:center;width:80px;"></td>
|
||||
</tr>
|
||||
<%
|
||||
dim no : no = 0
|
||||
query = ""
|
||||
query = query &" select isnull(cast(AA.Id as varchar),'') as ID, isnull(cast(BB.Id as varchar),'') as PAY_ID, AA.p_child_sn as p_sn, AA.neakeun_name, left(AA.neakeun_jumin,6) as neakeun_jumin, AA.p_sebu, AA.date, AA.job_add_time_memo, AA.job_confirm_yn, "&VbCrlf
|
||||
query = query &" isnull(BB.s_pay_unit,'0') as s_pay_unit, isnull(BB.s_wan,'0') as s_wan, isnull(AA.extra_pay1,'') as extra_pay1, isnull(AA.extra_pay2,'') as extra_pay2, isnull(BB.s_sum,'0') as s_sum, ISNULL(BB.insert_user,'') as insert_user, "&VbCrlf
|
||||
query = query &" isnull(BB.attribute01,'') as attribute01, isnull(BB.attribute05,'') as attribute05, "&VbCrlf
|
||||
query = query &" case when CC.d_order_cnt = '77' then '<27><><EFBFBD><EFBFBD> <20>Ϸ<EFBFBD>' when CC.d_order_cnt is null then '' else '<27><><EFBFBD><EFBFBD> <20><>' end as d_order_cnt "&VbCrlf
|
||||
query = query &" from project2.dbo.neakeun_work AA "&VbCrlf
|
||||
query = query &" left join "&VbCrlf
|
||||
query = query &" ( "&VbCrlf
|
||||
query = query &" select ID, p_sn, m_name, left(m_jumin,6) as m_jumin, s_pay_unit, s_wan, s_sum, insert_user, attribute01, attribute02, attribute05 "&VbCrlf
|
||||
query = query &" from project2.dbo.T_NEAKEUN_PAY "&VbCrlf
|
||||
query = query &" ) BB on cast(AA.id as varchar)=BB.attribute01 "&VbCrlf
|
||||
query = query &" left join "&VbCrlf
|
||||
query = query &" ( "&VbCrlf
|
||||
query = query &" select d_no, d_order_cnt "&VbCrlf
|
||||
query = query &" from project2.dbo.Document where d_delok='N' "&VbCrlf
|
||||
query = query &" ) CC on BB.attribute05=CC.d_no "&VbCrlf
|
||||
query = query &" where AA.p_child_sn='" & prj_code & "' and AA.workload='ETC' and BB.attribute02='ETC' "&VbCrlf
|
||||
'Response.Write query
|
||||
Rs.open query, adoconn, adopenstatic, adlockreadonly
|
||||
if not rs.eof Then
|
||||
Dim input_readonly
|
||||
while not rs.eof
|
||||
If rs("job_confirm_yn") = "Y" Then
|
||||
input_readonly = "readonly='reaonldy'"
|
||||
else
|
||||
input_readonly = ""
|
||||
End If
|
||||
no = no + 1
|
||||
%>
|
||||
<tr>
|
||||
<td><%=no %></td>
|
||||
<td>
|
||||
<input type='text' name='neakeun_name' class='neakeun_name' value='<%=rs("neakeun_name") %>' <%=input_readonly %>/>
|
||||
<input type='hidden' name='n_id' class='n_id' value='<%=rs("ID") %>' />
|
||||
<input type='hidden' name='n_pay_id' class='n_pay_id' value='<%=rs("PAY_ID") %>' />
|
||||
</td><!--<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> -->
|
||||
<td><input type='text' name='neakeun_jumin' value='<%=rs("neakeun_jumin") %>' <%=input_readonly %>/></td><!--<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> -->
|
||||
<td><input type='text' name='n_gubun' value="<%=rs("p_sebu") %>" <%=input_readonly %>/></td><!--<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> -->
|
||||
<td><input type='text' class='date_picker' name='n_date' value="<%=rs("date") %>" readonly='readonly' /></td><!--<2D>ٹ<EFBFBD><D9B9><EFBFBD><EFBFBD><EFBFBD> -->
|
||||
<td><input type='number' class='e_time' name='e_time' value="<%=rs("s_wan") %>" <%=input_readonly %>/></td><!--<2D>ٹ<EFBFBD><D9B9>ð<EFBFBD> -->
|
||||
<td><input type='number' class='e_unit' name='e_unit' value="<%=rs("s_pay_unit") %>" <%=input_readonly %>/></td><!--<2D>ܰ<EFBFBD> -->
|
||||
<td><span class='add_money1'><%if rs("extra_pay1")="1" Then%>O<%End If %></span><input type='hidden' name='add_money1' value="<%=rs("extra_pay1") %>" ></td><!--<2D>߰<EFBFBD><DFB0><EFBFBD><EFBFBD><EFBFBD>1 -->
|
||||
<td><span class='add_money2'><%if rs("extra_pay2")="1" Then%>O<%End If %></span><input type='hidden' name='add_money2' value="<%=rs("extra_pay2") %>" ></td><!--<2D>߰<EFBFBD><DFB0><EFBFBD><EFBFBD><EFBFBD>2 -->
|
||||
<td><%=formatnumber(rs("s_sum"), 0) %> <20><><input type='hidden' name='sum' value="<%=rs("s_sum") %>" /></td><!--<2D>հ<EFBFBD> -->
|
||||
<td><input type='text' name='e_etc' value="<%=rs("job_add_time_memo") %>" <%=input_readonly %>/></td><!--<2D><><EFBFBD><EFBFBD> -->
|
||||
<td>
|
||||
<%If rs("job_confirm_yn") = "N" Then%>
|
||||
<button type="button" class="confirm" data-value="save">Ȯ<><C8AE></button>
|
||||
<%Else %>
|
||||
<%If rs("attribute05") = "" Then %>
|
||||
<button type="button" class="confirm" data-value="del" style="background:#CA7C7B;"><3E><><EFBFBD><EFBFBD></button>
|
||||
<%Else %>
|
||||
<b style="color:red;"><%=rs("d_order_cnt") %></b>
|
||||
<%End If %>
|
||||
<%End If %>
|
||||
</td><!--Ȯ<><C8AE> -->
|
||||
<td>
|
||||
<%If rs("job_confirm_yn") = "N" Then%>
|
||||
<button type='button' class='row_minus'><3E><><EFBFBD><EFBFBD></button>
|
||||
<%End If %>
|
||||
</td>
|
||||
</tr>
|
||||
<%
|
||||
rs.movenext
|
||||
wend
|
||||
rs.Close
|
||||
End If
|
||||
%>
|
||||
</table>
|
||||
<button type="button" id="pay_go"><3E><><EFBFBD><EFBFBD></button>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.content -->
|
||||
<!-- REQUIRED SCRIPTS -->
|
||||
<script>
|
||||
var prjDialog = $("#prj_list").dialog({
|
||||
autoOpen: false,
|
||||
modal: true,
|
||||
resizable: false,
|
||||
position: { my: "center", at: "top" },
|
||||
show: "blind",
|
||||
width: "600",
|
||||
height: "500",
|
||||
title: "",
|
||||
open: function () {
|
||||
$(".ui-widget-overlay").css({
|
||||
opacity: 0.5,
|
||||
filter: "Alpha(Opacity=50)",
|
||||
backgroundColor: "gray"
|
||||
});
|
||||
},
|
||||
close: function (event, ui) {
|
||||
$("body").css({
|
||||
overflow: 'inherit'
|
||||
});
|
||||
url = "";
|
||||
prjDialog.dialog("close");
|
||||
}
|
||||
});
|
||||
$(function () {
|
||||
prj_code = "<%=prj_code %>";
|
||||
prj_name = "<%=prj_name %>";
|
||||
|
||||
if (prj_code != "") {
|
||||
$(".prj_name").text("(" + prj_code + ") " + prj_name);
|
||||
}else{
|
||||
$("#p_list").css("display", "none");
|
||||
$("#p_list").parent("td").text("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD><EFBFBD>Ͽ<EFBFBD> <20>ֽʽÿ<CABD>.");
|
||||
}
|
||||
|
||||
var tr_cnt = $("#p_list tr").length;
|
||||
|
||||
if (tr_cnt > 0) {
|
||||
tr_cnt = tr_cnt - 1;
|
||||
}
|
||||
|
||||
$(".all_row").text(tr_cnt);
|
||||
|
||||
|
||||
$("#prj_sel").click(function () {
|
||||
var url = "prj_list_modal.asp?gubun=etc";
|
||||
modal_open(url, "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD>");
|
||||
});
|
||||
|
||||
$("#row_plus").click(function () {
|
||||
if (prj_code == "") { alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD><EFBFBD>Ͽ<EFBFBD> <20>ֽʽÿ<CABD>."); return false;}
|
||||
tr_cnt = tr_cnt + 1;
|
||||
var rowitem = "<tr>"
|
||||
rowitem += "<td class='tit5'>" + tr_cnt + "</td><!--<2D><><EFBFBD><EFBFBD> -->"
|
||||
rowitem += "<td class='tit5'><input type='text' name='neakeun_name' class='neakeun_name' value='' />"
|
||||
rowitem += "<input type='hidden' name='n_id' class='n_id' value='' />"
|
||||
rowitem += "<input type='hidden' name='n_pay_id' class='n_pay_id' value='' /></td><!--<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> -->"
|
||||
rowitem += "<td class='tit5'><input type='text' name='neakeun_jumin' value='' readonly/></td><!--<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> -->"
|
||||
rowitem += "<td class='tit5'><input type='text' name='n_gubun'/></td><!--<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> -->"
|
||||
rowitem += "<td class='tit5'><input type='text' class='date_picker' name='n_date' readonly='readonly' /></td><!--<2D>ٹ<EFBFBD><D9B9><EFBFBD><EFBFBD><EFBFBD> -->"
|
||||
rowitem += "<td class='tit5'><input type='number' class='e_time' name='e_time' /></td><!--<2D>ٹ<EFBFBD><D9B9>ð<EFBFBD> -->"
|
||||
rowitem += "<td class='tit5'><input type='number' class='e_unit' name='e_unit' /></td><!--<2D>ܰ<EFBFBD> -->"
|
||||
rowitem += "<td class='tit5'><span class='add_money1'></span><input type='hidden' name='add_money1' ></td><!--<2D>߰<EFBFBD><DFB0><EFBFBD><EFBFBD><EFBFBD>1 -->"
|
||||
rowitem += "<td class='tit5'><span class='add_money2'></span><input type='hidden' name='add_money2' ></td><!--<2D>߰<EFBFBD><DFB0><EFBFBD><EFBFBD><EFBFBD>2 -->"
|
||||
rowitem += "<td class='tit5'><3E><><input type='hidden' name='sum' ></td><!--<2D>հ<EFBFBD> -->"
|
||||
rowitem += "<td class='tit5'><input type='text' name='e_etc'/></td><!--<2D><><EFBFBD><EFBFBD> -->"
|
||||
rowitem += "<td class='tit5'><button type='button' class='confirm' >Ȯ<><C8AE></button></td><!--Ȯ<><C8AE> -->"
|
||||
rowitem += "<td><button type='button' class='row_minus'><3E><><EFBFBD><EFBFBD></button></td>"
|
||||
rowitem += "</tr>"
|
||||
$("#p_list tr:last").after(rowitem);
|
||||
$("#p_list tr:last .date_picker").datepicker();
|
||||
$(".all_row").text(tr_cnt);
|
||||
});
|
||||
|
||||
|
||||
|
||||
$(document).on("click", ".row_minus", function () {
|
||||
if (parseInt($(".all_row").text(tr_cnt)) <= 1) {
|
||||
alert("1<><31><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>ִ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Ұ<EFBFBD><D2B0>մϴ<D5B4>.");
|
||||
return false;
|
||||
} else {
|
||||
$(this).parent().parent().remove();
|
||||
tr_cnt = tr_cnt - 1;
|
||||
$(".all_row").text(tr_cnt);
|
||||
}
|
||||
});
|
||||
|
||||
fileUploadDialog = $("#fileUploadDialog").dialog({
|
||||
autoOpen: false,
|
||||
modal: true,
|
||||
resizable: false,
|
||||
height: 220,
|
||||
width: 400,
|
||||
title: 'EXCEL <20><><EFBFBD><EFBFBD>',
|
||||
close: function () {
|
||||
var $el = $('#ufile');
|
||||
$el.wrap('<form>').closest('form').get(0).reset();
|
||||
$el.unwrap();
|
||||
},
|
||||
buttons: {
|
||||
"<22><><EFBFBD><EFBFBD>": uploadOk,
|
||||
"<22><><EFBFBD><EFBFBD>": uploadCancel
|
||||
}
|
||||
});
|
||||
|
||||
fileUploadDialog.dialog("option", "position", {
|
||||
my: 'center',
|
||||
at: 'center',
|
||||
of: window
|
||||
});
|
||||
|
||||
$("#file_upload").click(function () {
|
||||
if (prj_code == "") { alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD><EFBFBD>Ͽ<EFBFBD> <20>ֽʽÿ<CABD>."); return false; }
|
||||
fileUploadDialog.dialog("open");
|
||||
});
|
||||
|
||||
//<2F><>ü <20>ܰ<EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
$("#all_unit").click(function () {
|
||||
if (prj_code == "") { alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD><EFBFBD>Ͽ<EFBFBD> <20>ֽʽÿ<CABD>."); return false; }
|
||||
if ($("#all_unit_cost").val() == "") {
|
||||
alert("<22><>ü <20>ܰ<EFBFBD><DCB0><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ͽ<EFBFBD> <20>ֽñ<D6BD> <20>ٶ<EFBFBD><D9B6>ϴ<EFBFBD>.");
|
||||
return false;
|
||||
} else {
|
||||
if (confirm("<22>ϰ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ÿ<EFBFBD><C3BF><EFBFBD> <20>κ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ܰ<EFBFBD><DCB0><EFBFBD> <20><><EFBFBD><EFBFBD> <20>˴ϴ<CBB4>.\n<><6E><EFBFBD><EFBFBD> <20>Ͻðڽ<C3B0><DABD>ϱ<EFBFBD>?")) {
|
||||
var all_unit_cost = $("#all_unit_cost").val();
|
||||
$(".e_unit").each(function (e) {
|
||||
if ($(".e_unit").eq(e).prop("readonly") == false) {
|
||||
$(".e_unit").eq(e).val(all_unit_cost);
|
||||
var sum = cnt_sum($(this));
|
||||
if (isNaN(sum)) {
|
||||
$(this).parent("td").siblings().eq(8).text(0 + " <20><>");
|
||||
} else {
|
||||
$(this).parent("td").siblings().eq(8).text(commify(Math.ceil(sum)) + " <20><>");
|
||||
}
|
||||
}
|
||||
});
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
//<2F>ܰ<EFBFBD> <20>հ<EFBFBD>(<28>ð<EFBFBD> <20><><EFBFBD><EFBFBD>)
|
||||
$(document).on("keyup", '.e_time', function (e) {
|
||||
var sum = cnt_sum($(this));
|
||||
|
||||
if (isNaN(sum)) {
|
||||
$(this).parent("td").siblings().eq(8).text(0 + " <20><>");
|
||||
} else {
|
||||
$(this).parent("td").siblings().eq(8).text(commify(Math.ceil(sum)) + " <20><>");
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
//<2F>ܰ<EFBFBD> <20>հ<EFBFBD>(<28>ܰ<EFBFBD> <20><><EFBFBD><EFBFBD>)
|
||||
$(document).on("keyup", '.e_unit',function (e) {
|
||||
var sum = cnt_sum($(this));
|
||||
|
||||
if (isNaN(sum)) {
|
||||
$(this).parent("td").siblings().eq(8).text(0 + " <20><>");
|
||||
} else {
|
||||
$(this).parent("td").siblings().eq(8).text(commify(Math.ceil(sum)) + " <20><>");
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
$(document).on("click", '.e_time',function () {
|
||||
unit_evt($(this));
|
||||
});
|
||||
|
||||
$(document).on("keyup", '.e_unit',function () {
|
||||
unit_evt($(this));
|
||||
});
|
||||
|
||||
$(document).on("keydown", "input[name=neakeun_name]", function (key) {
|
||||
if (key.keyCode == 13) {
|
||||
key.preventDefault();
|
||||
var tr_index = $(this).closest("tr").prevAll().length;
|
||||
var m_name = $(this).val();
|
||||
if(m_name.trim() != ""){
|
||||
var url = "/project_list/myun_search.asp?cutmenu=1&dialog=1&part=naekeun_search&m_name=" + m_name + "&n_etc=1&tr_index=" + tr_index;
|
||||
modal_open(url, "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>");
|
||||
}else{
|
||||
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20≯<EFBFBD><CCB8><EFBFBD> <20>Է<EFBFBD><D4B7><EFBFBD><EFBFBD>ּ<EFBFBD><D6BC><EFBFBD>.");
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
//<2F><>ü Confirm
|
||||
$("#all_check").click(function () {
|
||||
if (prj_code == "") { alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD><EFBFBD>Ͽ<EFBFBD> <20>ֽʽÿ<CABD>."); return false; }
|
||||
if (confirm("Ȯ<><C8AE> ó<><C3B3> <20>ȵ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>鸸 ó<><C3B3> <20>˴ϴ<CBB4>.\n<><6E><EFBFBD><EFBFBD> <20>Ͻðڽ<C3B0><DABD>ϱ<EFBFBD>?")) {
|
||||
$(".confirm").each(function () {
|
||||
var gubun = $(this).text();
|
||||
if (gubun == "Ȯ<><C8AE>") {
|
||||
$(this).trigger("click");
|
||||
}
|
||||
});
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
$(document).on("click", ".confirm", function () {
|
||||
//$(".confirm").click(function () {
|
||||
var gubun = "e";
|
||||
var obj = $(this);
|
||||
var prj_code = $("input[name=prj_code]").val();
|
||||
var n_name = obj.parent("td").siblings().eq(1).children().eq(0).val();
|
||||
var n_id = obj.parent("td").siblings().eq(1).children().eq(1).val();
|
||||
var n_pay_id = obj.parent("td").siblings().eq(1).children().eq(2).val();
|
||||
var n_birth = obj.parent("td").siblings().eq(2).children("input[name=neakeun_jumin]").val();
|
||||
var n_gubun = obj.parent("td").siblings().eq(3).children("input[name=n_gubun]").val();
|
||||
var n_date = obj.parent("td").siblings().eq(4).children("input[name=n_date]").val();
|
||||
var n_time = obj.parent("td").siblings().eq(5).children("input[name=e_time]").val();
|
||||
var n_danga = obj.parent("td").siblings().eq(6).children("input[name=e_unit]").val();
|
||||
var n_add1 = obj.parent("td").siblings().eq(7).children("input[name=add_money1]").val();
|
||||
var n_add2 = obj.parent("td").siblings().eq(8).children("input[name=add_money2]").val();
|
||||
var n_sum = obj.parent("td").siblings().eq(9).text().replace(/,/g, "").replace('<27><>', '');
|
||||
var n_etc = obj.parent("td").siblings().eq(10).children("input[name=e_etc]").val();
|
||||
|
||||
if (n_time == "" || n_danga == "" || n_sum == "") {
|
||||
alert("<22>ݾ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ȵǾ<C8B5> <20>ֽ<EFBFBD><D6BD>ϴ<EFBFBD>.");
|
||||
return false
|
||||
}
|
||||
|
||||
if (obj.text() == "Ȯ<><C8AE>") {
|
||||
url = "neakeun_save_ajax.asp";
|
||||
} else {
|
||||
url = "neakeun_del_ajax.asp";
|
||||
}
|
||||
|
||||
ajax_confirm(url, gubun, prj_code, escape(n_name), n_id, n_pay_id, n_birth, escape(n_gubun), n_date, n_time, n_danga, n_add1, n_add2, n_sum, escape(n_etc), obj);
|
||||
});
|
||||
|
||||
$(document).on("click", "#pay_go", function () {
|
||||
var url = "/approval/doc_myun_pay.asp?title=<3D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ǽ<EFBFBD>";
|
||||
$("#qetcform").attr("action", url);
|
||||
$("#qetcform").submit();
|
||||
});
|
||||
|
||||
$("#excel_down").click(function () {
|
||||
var d = new Date()
|
||||
$("#p_list").table2excel({
|
||||
name: "<%=prj_code %>_" + d.getFullYear() + d.getMonth() + d.getDate(),
|
||||
filename: "<%=prj_code %>_" + d.getFullYear() + d.getMonth() + d.getDate(),
|
||||
fileext: ".xls",
|
||||
exclude_inputs: true
|
||||
});
|
||||
});
|
||||
|
||||
$("#sampleXlsx").click(function(){
|
||||
location.href = "./n_etc_list.xlsx";
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
function unit_evt(obj) {
|
||||
$(obj).css('imeMode', 'disabled').keypress(function (evt) {
|
||||
if (evt.which && (evt.which < 45 || evt.which > 57)) {
|
||||
evt.preventDefault();
|
||||
}
|
||||
|
||||
var charCode = (evt.which) ? evt.which : event.keyCode;
|
||||
if (charCode != 46 && charCode > 31 && (charCode < 48 || charCode > 57)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
var regexp = /^\d*[.]\d*$/;//<2F>Ҽ<EFBFBD><D2BC><EFBFBD>
|
||||
var val = $(this).val();
|
||||
|
||||
if (regexp.test(val)) {//<2F>Ҽ<EFBFBD><D2BC><EFBFBD> Prevent
|
||||
if (charCode == 46) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
}).keyup(function (evt) {
|
||||
if ($(this).val() != null && $(this).val() != '') {
|
||||
$(this).val($(this).val().replace(/[^\.0-9]/g, ''));
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
//<2F>ܰ<EFBFBD>, <20>հ<EFBFBD>
|
||||
function cnt_sum(obj) {
|
||||
var t_index = parseInt(obj.parent("td").index());
|
||||
var time = 0;//<2F>ٹ<EFBFBD><D9B9>ð<EFBFBD>
|
||||
var unit_cost = 0;//<2F>ܰ<EFBFBD>
|
||||
var add = 0;//<2F>߰<EFBFBD><DFB0><EFBFBD><EFBFBD><EFBFBD>
|
||||
|
||||
if (t_index == 5) {
|
||||
time = parseFloat(obj.val());
|
||||
unit_cost = parseFloat(obj.parent("td").next().children('input[type="number"]').val());
|
||||
} else {
|
||||
time = parseFloat(obj.parent("td").prev().children('input[type="number"]').val());
|
||||
unit_cost = parseFloat(obj.val());
|
||||
}
|
||||
|
||||
if (time < 4) {
|
||||
add = 0;
|
||||
obj.parent("td").next().next().children(".add_money1").text("");
|
||||
obj.parent("td").next().next().children("input[name=add_money1]").val("");
|
||||
obj.parent("td").next().next().next().children(".add_money2").text("");
|
||||
obj.parent("td").next().next().next().children("input[name=add_money2]").val("");
|
||||
} else if (time > 3 && time < 8) {
|
||||
add = 5000;
|
||||
obj.parent("td").next().next().children(".add_money1").text("O");
|
||||
obj.parent("td").next().next().children("input[name=add_money1]").val("1");
|
||||
obj.parent("td").next().next().next().children(".add_money2").text("");
|
||||
obj.parent("td").next().next().next().children("input[name=add_money2]").val("");
|
||||
} else if (time > 7) {
|
||||
add = 10000;
|
||||
obj.parent("td").next().next().children(".add_money1").text("O");
|
||||
obj.parent("td").next().next().children("input[name=add_money1]").val("1");
|
||||
obj.parent("td").next().next().next().children(".add_money2").text("O");
|
||||
obj.parent("td").next().next().next().children("input[name=add_money2]").val("1");
|
||||
}
|
||||
|
||||
return time * unit_cost + add;
|
||||
}
|
||||
|
||||
function modal_open(url, ptitle) {
|
||||
$("body").css({
|
||||
overflow: 'hidden'
|
||||
});
|
||||
|
||||
prjDialog.load(url, function () {
|
||||
prjDialog.dialog("option", "title", ptitle);
|
||||
prjDialog.dialog("open");
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
function uploadOk() {
|
||||
var frm = $("#qetcform_up")[0];
|
||||
var frmData = new FormData(frm);
|
||||
if ($("#ufile")[0].files.length == 0) {
|
||||
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ּ<EFBFBD><D6BC><EFBFBD>.");
|
||||
return;
|
||||
}
|
||||
$.ajax({
|
||||
url: './qetc_upload.asp',
|
||||
processData: false,
|
||||
contentType: false,
|
||||
data: frmData,
|
||||
type: 'POST',
|
||||
beforeSend:function(){
|
||||
$("#loadingBar").show();
|
||||
},
|
||||
success: function (res) {
|
||||
console.log(res);
|
||||
if (res == "1") {
|
||||
excelReadFunc($("#ufile")[0].files[0].name);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function uploadCancel() {
|
||||
fileUploadDialog.dialog("close");
|
||||
}
|
||||
|
||||
function excelReadFunc(excelFileName) {
|
||||
$.ajax({
|
||||
url: './qetc_readfile.asp',
|
||||
data: { "excelName": escape(excelFileName) },
|
||||
type: 'get',
|
||||
dataType:"json",
|
||||
success: function (response) {
|
||||
excelDataTable(response.table_data);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function excelDataTable(excelData) {
|
||||
var obj = excelData;
|
||||
uploadCancel();
|
||||
$.each(obj, function (key, value) {
|
||||
var add1=0, add2=0, add=0, add1_g="", add2_g="";
|
||||
var sum=0;
|
||||
|
||||
if (key === 0) return true;
|
||||
if (parseInt(value.n_time) > 3 && parseInt(value.n_time) < 8) {
|
||||
add1 = 1;
|
||||
add = 5000;
|
||||
add1_g = "O";
|
||||
} else if (parseInt(value.n_time) > 7) {
|
||||
add1 = 1;
|
||||
add2 = 1;
|
||||
add = 10000;
|
||||
add1_g = "O";
|
||||
add2_g = "O";
|
||||
}
|
||||
|
||||
sum = value.n_time * value.n_danga + add;
|
||||
var tr_cnt = parseInt($(".all_row").text()) + 1;
|
||||
var rowitem = "<tr>"
|
||||
rowitem += "<td class='tit5'>" + tr_cnt + "</td><!--<2D><><EFBFBD><EFBFBD> -->"
|
||||
rowitem += "<td class='tit5'><input type='text' name='neakeun_name' class='neakeun_name' value='" + value.n_name + "' />"
|
||||
rowitem += "<input type='hidden' name='n_id' class='n_id' value='' />"
|
||||
rowitem += "<input type='hidden' name='n_pay_id' class='n_pay_id' value='' /></td><!--<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> -->"
|
||||
rowitem += "<td class='tit5'><input type='text' name='neakeun_jumin' value='" + value.n_birth + "' readonly /></td><!--<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> -->"
|
||||
rowitem += "<td class='tit5'><input type='text' name='n_gubun' value='" + value.n_gubun + "' /></td><!--<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> -->"
|
||||
rowitem += "<td class='tit5'><input type='text' class='date_picker' name='n_date' value='" + value.n_date + "' /></td><!--<2D>ٹ<EFBFBD><D9B9><EFBFBD><EFBFBD><EFBFBD> -->"
|
||||
rowitem += "<td class='tit5'><input type='number' class='e_time' name='e_time' value='" + value.n_time + "' /></td><!--<2D>ٹ<EFBFBD><D9B9>ð<EFBFBD> -->"
|
||||
rowitem += "<td class='tit5'><input type='number' class='e_unit' name='e_unit' value='" + value.n_danga + "' /></td><!--<2D>ܰ<EFBFBD> -->"
|
||||
rowitem += "<td class='tit5'><span class='add_money1'>" + add1_g + "</span><input type='hidden' name='add_money1' value='" + add1 + "'></td><!--<2D>߰<EFBFBD><DFB0><EFBFBD><EFBFBD><EFBFBD>1 -->"
|
||||
rowitem += "<td class='tit5'><span class='add_money2'>" + add2_g + "</span><input type='hidden' name='add_money2' value='" + add2 + "'></td><!--<2D>߰<EFBFBD><DFB0><EFBFBD><EFBFBD><EFBFBD>2 -->"
|
||||
rowitem += "<td class='tit5'>" + commify(sum) + " <20><><input type='hidden' name='sum' value='" + sum + "' ></td><!--<2D>հ<EFBFBD> -->"
|
||||
rowitem += "<td class='tit5'><input type='text' name='e_etc' value='" + value.n_etc + "' /></td><!--<2D><><EFBFBD><EFBFBD> -->"
|
||||
rowitem += "<td class='tit5'><button type='button' class='confirm' >Ȯ<><C8AE></button></td><!--Ȯ<><C8AE> -->"
|
||||
rowitem += "<td><button type='button' class='row_minus'><3E><><EFBFBD><EFBFBD></button></td>"
|
||||
rowitem += "</tr>"
|
||||
$("#p_list tr:last").after(rowitem);
|
||||
$("#p_list tr:last .date_picker").datepicker();
|
||||
$(".all_row").text(tr_cnt);
|
||||
});
|
||||
|
||||
$("#loadingBar").hide();
|
||||
}
|
||||
|
||||
//Confirm
|
||||
|
||||
function ajax_confirm(url, gubun, prj_code, n_name, n_id, n_pay_id, n_birth, n_gubun, n_date, p_time, p_danga, n_add1, n_add2, p_sum, p_etc, obj) {
|
||||
$.ajax({
|
||||
url: url,
|
||||
type: "get",
|
||||
data:
|
||||
{
|
||||
"gubun": gubun,
|
||||
"prj_code": prj_code,
|
||||
"n_name": n_name,
|
||||
"n_id": n_id,
|
||||
"n_pay_id": n_pay_id,
|
||||
"n_birth": n_birth,
|
||||
"n_gubun": n_gubun,
|
||||
"n_date": n_date,
|
||||
"n_cnt": p_time, //<2F>ٹ<EFBFBD><D9B9>ð<EFBFBD>(<28>μ<EFBFBD>)
|
||||
"p_danga": p_danga, //<2F>ܰ<EFBFBD>
|
||||
"n_add1": n_add1,
|
||||
"n_add2": n_add2,
|
||||
"p_sum": p_sum,
|
||||
"p_etc": p_etc,
|
||||
},
|
||||
dataType: "JSON",
|
||||
success: function (data) {
|
||||
console.log(data);
|
||||
if (data.ok == "1") {
|
||||
if (obj.text() == "Ȯ<><C8AE>") {
|
||||
if (n_id == "") {
|
||||
obj.parent("td").siblings().eq(1).children('.n_id').val(data.id);
|
||||
}
|
||||
if (n_pay_id == "") {
|
||||
obj.parent("td").siblings().eq(1).children('.n_pay_id').val(data.pay_id);
|
||||
}
|
||||
obj.parent("td").siblings().children('input').prop("readonly", true);
|
||||
obj.parent("td").next().children().hide();
|
||||
obj.text("<22><><EFBFBD><EFBFBD>");
|
||||
obj.css("background", "#CA7C7B");
|
||||
} else {
|
||||
if (n_id != "") {
|
||||
obj.parent("td").siblings().eq(1).children('.n_id').val("");
|
||||
}
|
||||
if (n_pay_id != "") {
|
||||
obj.parent("td").siblings().eq(1).children('.n_pay_id').val("");
|
||||
}
|
||||
obj.parent("td").siblings().children('input').prop("readonly", false);
|
||||
obj.parent("td").next().children().show();
|
||||
obj.text("Ȯ<><C8AE>");
|
||||
obj.css("background", "");
|
||||
}
|
||||
} else {
|
||||
if (data.ok == "2") {
|
||||
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ֽ<EFBFBD><D6BD>ϴ<EFBFBD>.\n<><6E><EFBFBD><EFBFBD><EFBFBD>ڿ<EFBFBD><DABF><EFBFBD> <20><><EFBFBD><EFBFBD> <20>ٶ<EFBFBD><D9B6>ϴ<EFBFBD>.");
|
||||
} else {
|
||||
alert("<22><><EFBFBD><EFBFBD>!\n <20>Է<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ٽ<EFBFBD> Ȯ<><C8AE> <20>Ͽ<EFBFBD> <20>ֽñ<D6BD> <20>ٶ<EFBFBD><D9B6>ϴ<EFBFBD>.");
|
||||
}
|
||||
}
|
||||
},
|
||||
error: function () {
|
||||
alert("<22><><EFBFBD><EFBFBD> <20><EFBFBD>\n<><6E><EFBFBD><EFBFBD><EFBFBD>ڿ<EFBFBD><DABF><EFBFBD> <20><><EFBFBD><EFBFBD> <20>Ͻʽÿ<CABD>.");
|
||||
}
|
||||
});
|
||||
}
|
||||
</script>
|
||||
</div>
|
||||
<!-- /.content-wrapper -->
|
||||
<!-- #include virtual = "include/footer.asp" -->
|
||||
48
inspection/qetc_readfile.asp
Normal file
48
inspection/qetc_readfile.asp
Normal file
@@ -0,0 +1,48 @@
|
||||
<%@ LANGUAGE="VBSCRIPT" CodePage=65001 %>
|
||||
<!-- #include virtual = "include/JSON_2.0.4.asp" -->
|
||||
<%
|
||||
Response.charset="UTF-8"
|
||||
|
||||
Set xlDb = Server.CreateObject("ADODB.Connection")
|
||||
Set oRs = Server.CreateObject("ADODB.RecordSet")
|
||||
|
||||
excelName = unescape(Request("excelName"))
|
||||
FileName = "D:\TEMP\" & excelName
|
||||
|
||||
Dim r_cnt
|
||||
Dim table_data
|
||||
Dim json
|
||||
Dim json_obj
|
||||
|
||||
connectString = "Provider=Microsoft.ACE.OLEDB.12.0; Data Source=" & FileName & "; Extended Properties='Excel 12.0;HDR=YES;IMEX=1'"
|
||||
xlDb.Open connectString
|
||||
|
||||
Query = " SELECT * FROM [Sheet1$] "
|
||||
oRs.Open Query, xlDb, 1
|
||||
|
||||
redim table_data(oRs.RecordCount)
|
||||
|
||||
i = 0
|
||||
Do while not oRs.EOF
|
||||
i = i + 1
|
||||
set json_obj = jsObject()
|
||||
json_obj("No") = i
|
||||
json_obj("n_name") = Trim(oRs.Fields(0).Value)
|
||||
json_obj("n_birth") = Trim(oRs.Fields(1).Value)
|
||||
json_obj("n_gubun") = Trim(oRs.Fields(2).Value)
|
||||
json_obj("n_date") = Trim(oRs.Fields(3).Value)
|
||||
json_obj("n_time") = Trim(oRs.Fields(4).Value)
|
||||
json_obj("n_danga") = Trim(oRs.Fields(5).Value)
|
||||
json_obj("n_etc") = Trim(oRs.Fields(6).Value)
|
||||
set table_data(i) = json_obj
|
||||
oRs.MoveNext
|
||||
Loop
|
||||
|
||||
set json = jsOBject()
|
||||
json("table_data") = table_data
|
||||
|
||||
Response.Write toJSON(json)
|
||||
|
||||
'Response.Write table_date
|
||||
'Response.Write oRs.recordcount &"//"& oRs.Fields.count
|
||||
%>
|
||||
15
inspection/qetc_upload.asp
Normal file
15
inspection/qetc_upload.asp
Normal file
@@ -0,0 +1,15 @@
|
||||
<%@ LANGUAGE="VBSCRIPT" %>
|
||||
<%
|
||||
Response.charset="EUC-KR"
|
||||
On Error Resume Next
|
||||
Set uploadform = Server.CreateObject("DEXT.FileUpload")
|
||||
uploadform.DefaultPath = "D:\TEMP"
|
||||
uploadform.Save
|
||||
Set uploadform = Nothing
|
||||
If Err Then
|
||||
Response.Write "Error occured :"
|
||||
Response.Write Err.Description
|
||||
Else
|
||||
Response.Write "1"
|
||||
End If
|
||||
%>
|
||||
480
inspection/work_status.asp
Normal file
480
inspection/work_status.asp
Normal file
@@ -0,0 +1,480 @@
|
||||
<!-- #include virtual = "include/header.asp" -->
|
||||
<%
|
||||
dim command
|
||||
command = Request("command")
|
||||
|
||||
s_date_st = request("s_date_st")
|
||||
s_date_end = request("s_date_end")
|
||||
s_name = request("s_name")
|
||||
s_work = "'" & replace(replace(request("s_work"), " ", ""), ",", "','") & "'"
|
||||
s_p_sn = request("s_p_sn")
|
||||
s_p_subject = request("s_p_subject")
|
||||
s_column = replace(request("s_column"), " ", "")
|
||||
|
||||
Dim column_dic
|
||||
Set column_dic = Server.CreateObject("Scripting.Dictionary")
|
||||
With column_dic
|
||||
.Add "intranet_project", "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD>ڵ<EFBFBD>"
|
||||
.Add "p_subject", "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE>"
|
||||
.Add "work_kind", "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
||||
.Add "log_user", "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ID"
|
||||
.Add "log_user_name", "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>"
|
||||
.Add "log_date", "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>¥"
|
||||
.Add "in_time", "<22><><EFBFBD>ٽð<D9BD>"
|
||||
.Add "out_time", "<22><><EFBFBD>ٽð<D9BD>"
|
||||
.Add "log_s_time", "ùCall"
|
||||
.Add "log_e_time", "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Call"
|
||||
.Add "cnt", "<22><><EFBFBD><EFBFBD>Count"
|
||||
End With
|
||||
|
||||
if command <> "excel" then
|
||||
%>
|
||||
<!-- #include virtual = "include/left.asp" -->
|
||||
<!-- Content Wrapper. Contains page content -->
|
||||
<div class="content-wrapper">
|
||||
<style>
|
||||
.t_table .t_head{
|
||||
cursor:pointer;
|
||||
}
|
||||
</style>
|
||||
<!-- Content Header (Page header) -->
|
||||
<div class="content-header">
|
||||
<h1>CATI/<2F><><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><>Ȳ</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=Work_Status.xls"
|
||||
end if
|
||||
%>
|
||||
<form name="work_status" method="post">
|
||||
<input type="hidden" value="<%=command %>" name="command" />
|
||||
<input type="hidden" value="<%=s_work %>" name="s_work_arr" />
|
||||
<input type="hidden" value="<%=s_column %>" name="s_column_arr" />
|
||||
<table class="table table-sm table-sm2 table-bordered table-head tr-colors">
|
||||
<% If command <> "excel" Then %>
|
||||
<tr>
|
||||
<td align="center" width="12%"><3E><> <20><></td>
|
||||
<td align="left" width="38%">
|
||||
<input type="text" style="width:100px;text-align:center;CURSOR: pointer;" value="<%=s_date_st %>" name="s_date_st" class='selectDate' readonly />
|
||||
~
|
||||
<input type="text" style="width:100px;text-align:center;CURSOR: pointer;" value="<%=s_date_end %>" name="s_date_end" class='selectDate' readonly />
|
||||
</td>
|
||||
<td align="center" width="12%"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD></td>
|
||||
<td align="left" width="38%">
|
||||
<input type="text" name="s_name" value="<%=s_name %>" style="width:200px;"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" width="12%"><3E><> <20><></td>
|
||||
<td align="left" width="38%">
|
||||
<label class='mx-2' for="CATI"><input type="checkbox" value="CATI" id="CATI" name="s_work"/> CATI</label>
|
||||
<label class='mx-2' for="<22><><EFBFBD><EFBFBD>"><input type="checkbox" value="<22><><EFBFBD><EFBFBD>" id="<22><><EFBFBD><EFBFBD>" name="s_work" /> <20><><EFBFBD><EFBFBD></label>
|
||||
<label class='mx-2' for="<22><><EFBFBD><EFBFBD>(FF)"><input type="checkbox" value="<22><><EFBFBD><EFBFBD>(FF)" id="<22><><EFBFBD><EFBFBD>(FF)" name="s_work" /> <20><><EFBFBD><EFBFBD>(FF)</label>
|
||||
<label class='mx-2' for="<22><><EFBFBD><EFBFBD>(CATI)"><input type="checkbox" value="<22><><EFBFBD><EFBFBD>(CATI)" id="<22><><EFBFBD><EFBFBD>(CATI)" name="s_work" /> <20><><EFBFBD><EFBFBD>(CATI)</label>
|
||||
<label class='mx-2' for="<22><>ġ"><input type="checkbox" value="<22><>ġ" id="<22><>ġ" name="s_work" /> <20><>ġ</label>
|
||||
</td>
|
||||
<td align="center" width="12%"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20>ڵ<EFBFBD></td>
|
||||
<td align="left" width="38%">
|
||||
<input type="text" name="s_p_sn" value="<%=s_p_sn %>" style="width:200px;"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" width="12%"><3E><><EFBFBD><EFBFBD> Column <20><><EFBFBD><EFBFBD></td>
|
||||
<td align="left" width="38%">
|
||||
<label class='mx-2' for="work_kind"><input type="checkbox" value="work_kind" id="work_kind" name="s_column"/> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></label>
|
||||
<label class='mx-2' for="log_date"><input type="checkbox" value="log_date" id="log_date" name="s_column"/> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>¥</label>
|
||||
<label class='mx-2' for="intranet_project"><input type="checkbox" value="intranet_project,p_subject" id="intranet_project" name="s_column"/> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ</label>
|
||||
<label class='mx-2' for="log_user_name"><input type="checkbox" value="log_user_name" id="log_user_name" name="s_column"/> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD></label>
|
||||
</td>
|
||||
<td align="center" width="12%"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><></td>
|
||||
<td align="left" width="38%">
|
||||
<input type="text" name="s_p_subject" value="<%=s_p_subject %>" style="width:200px;"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3" align="right"><font color="red"><b><3E>˻<EFBFBD> <20><> 1<>п<EFBFBD><D0BF><EFBFBD> 10<31><30> <20><><EFBFBD><EFBFBD> <20>ҿ<EFBFBD><D2BF><EFBFBD> <20><> <20>ֽ<EFBFBD><D6BD>ϴ<EFBFBD></b></font></td>
|
||||
<td colspan="1" align="right">
|
||||
<a href="javascript:search_go('view');"><img src="/images/common/btn_smallsrch.gif" /></a>
|
||||
<a href="javascript:search_go('excel');"><img src="/images/common/btn_smallexcel.gif" /></a>
|
||||
</td>
|
||||
</tr>
|
||||
<% End if %>
|
||||
<% if command <> "" Then %>
|
||||
<tr>
|
||||
<td colspan="4" align="center">
|
||||
<div style="width:100%;overflow-y:scroll;max-height:545px;height:545px;">
|
||||
<table class="t_table table table-sm table-sm2 table-bordered table-head tr-colors">
|
||||
<%
|
||||
query = " SELECT "
|
||||
if s_column <> "" Then
|
||||
query = query & " " & s_column & ", "
|
||||
else
|
||||
query = query & " intranet_project, p_subject, work_kind, log_user, log_user_name, log_date, in_time, out_time, log_s_time, log_e_time, "
|
||||
End if
|
||||
query = query & " sum(cnt) AS cnt "
|
||||
query = query & " FROM ( "
|
||||
query = query & " SELECT intranet_project, p_subject, work_kind, "
|
||||
query = query & " (SELECT TOP 1 new_id FROM project2.dbo.man WITH(nolock) WHERE id = BSU.log_user) AS log_user, BSU.log_user AS m_id, log_user_name, log_date, cnt "
|
||||
query = query & " FROM "
|
||||
query = query & " ( "
|
||||
query = query & " SELECT P.intranet_project, TPM.p_subject, 'CATI' AS work_kind, L.log_user, L.log_user_name, L.log_date, L.prj_code, P.prj_name, sum(cnt) AS cnt "
|
||||
query = query & " FROM ( "
|
||||
query = query & " SELECT log_user, log_user_name, log_date, prj_code, sum(cnt) AS cnt "
|
||||
query = query & " FROM ( "
|
||||
query = query & " SELECT s_client AS 'log_user', s_client_name AS 'log_user_name', s_date AS 'log_date', prj_code, count(*) AS cnt "
|
||||
query = query & " FROM new_cati.dbo.sheet1 WITH(NOLOCK) "
|
||||
query = query & " WHERE s_client NOT IN ('0', '15254', '15632') "
|
||||
query = query & " GROUP BY s_client, s_client_name, s_date, prj_code "
|
||||
query = query & " UNION ALL "
|
||||
query = query & " SELECT s_client AS 'log_user', s_client_name AS 'log_user_name', s_date AS 'log_date', prj_code, 0 AS cnt "
|
||||
query = query & " FROM new_cati.dbo.sheet1_Send WITH(NOLOCK) "
|
||||
query = query & " WHERE s_client NOT IN ('0', '15254', '15632') "
|
||||
query = query & " GROUP BY s_client, s_client_name, s_date, prj_code "
|
||||
query = query & " ) CS "
|
||||
query = query & " GROUP BY log_user, log_user_name, log_date, prj_code "
|
||||
query = query & " ) L LEFT OUTER JOIN ( "
|
||||
query = query & " SELECT prj_code, prj_name, intranet_project "
|
||||
query = query & " FROM new_cati.dbo.project WITH(NOLOCK) "
|
||||
query = query & " WHERE intranet_project IS NOT NULL "
|
||||
query = query & " ) P ON L.prj_code = P.prj_code LEFT OUTER JOIN ( "
|
||||
query = query & " SELECT p_child_sn, p_subject "
|
||||
query = query & " FROM project2.dbo.T_PROJECT_METHOD WITH(NOLOCK) "
|
||||
query = query & " WHERE p_child_sn IS NOT NULL "
|
||||
query = query & " ) TPM ON P.intranet_project = TPM.p_child_sn "
|
||||
query = query & " GROUP BY P.intranet_project, TPM.p_subject, L.log_user, L.log_user_name, L.log_date, L.prj_code, P.prj_name "
|
||||
query = query & " UNION ALL "
|
||||
query = query & " SELECT KL.intranet_project, TPM.p_subject, '<27><><EFBFBD><EFBFBD>' AS work_kind, m.id AS log_user, U.login_name, L.log_date, CONVERT(VARCHAR(20), KL.id) AS kikoan_id, KL.kikoan_name, sum(L.cnt) AS cnt "
|
||||
query = query & " FROM "
|
||||
query = query & " ( "
|
||||
query = query & " SELECT user_id, kikoan_name, log_date, count(*) AS cnt "
|
||||
query = query & " FROM contact.dbo.log WITH(NOLOCK) "
|
||||
query = query & " WHERE log_stat = '<27><><EFBFBD>ð<EFBFBD><C3B0><EFBFBD> <20><><EFBFBD><EFBFBD>' "
|
||||
query = query & " GROUP BY user_id, kikoan_name, log_date "
|
||||
query = query & " ) L LEFT OUTER JOIN ( "
|
||||
query = query & " SELECT id, login_name "
|
||||
query = query & " FROM contact.dbo.login_user WITH(NOLOCK) "
|
||||
query = query & " WHERE login_name IS NOT NULL "
|
||||
query = query & " ) U ON L.user_id = U.id LEFT OUTER JOIN ( "
|
||||
query = query & " SELECT id, m_name, m_jumin "
|
||||
query = query & " FROM project2.dbo.man "
|
||||
query = query & " WHERE m_activity = 'Ȱ<><C8B0>' "
|
||||
query = query & " AND grade_3 <> '' "
|
||||
query = query & " ) M ON U.login_name = M.m_name LEFT OUTER JOIN ( "
|
||||
query = query & " SELECT id, intranet_project, kikoan_name "
|
||||
query = query & " FROM contact.dbo.kikoan_list WITH(NOLOCK) "
|
||||
query = query & " WHERE intranet_project IS NOT NULL "
|
||||
query = query & " ) KL ON (L.kikoan_name = KL.kikoan_name OR L.kikoan_name = CONVERT(VARCHAR(20), KL.id)) LEFT OUTER JOIN ( "
|
||||
query = query & " SELECT p_child_sn, p_subject "
|
||||
query = query & " FROM project2.dbo.T_PROJECT_METHOD WITH(NOLOCK) "
|
||||
query = query & " ) TPM ON KL.intranet_project = TPM.p_child_sn "
|
||||
query = query & " GROUP BY KL.intranet_project, TPM.p_subject, m.id, U.login_name, L.log_date, CONVERT(VARCHAR(20), KL.id), KL.kikoan_name "
|
||||
query = query & " UNION ALL "
|
||||
query = query & " SELECT ISNULL(TPF.intranet_project, IRL.p_sn) AS intranet_project, TPM.p_subject, '<27><><EFBFBD><EFBFBD>(FF)' AS work_kind, M.id AS log_user, M.m_name, "
|
||||
query = query & " inspection_date AS log_date, IRL.p_sn, ISNULL(Ltrim(TPF.p_subject), Ltrim(TPM.p_subject)) AS p_subject, sum(cnt) AS cnt "
|
||||
query = query & " FROM ( "
|
||||
query = query & " SELECT p_sn, s_id, CONVERT(VARCHAR(10), inspection_date, 120) AS inspection_date, inspection_user, count(*) AS cnt "
|
||||
query = query & " FROM project2.dbo.T_INSPECTION_RES WITH(NOLOCK) "
|
||||
query = query & " WHERE r_result NOT IN ('5', '6', '7') AND LEN(inspection_user) < 8 "
|
||||
query = query & " GROUP BY p_sn, s_id, CONVERT(VARCHAR(10), inspection_date, 120), inspection_user "
|
||||
query = query & " UNION ALL "
|
||||
query = query & " SELECT p_sn, s_id, CONVERT(VARCHAR(10), inspection_date, 120) AS inspection_date, inspection_user, count(*) AS cnt "
|
||||
query = query & " FROM project2.dbo.T_INSPECTION_RES_LOG WITH(NOLOCK) "
|
||||
query = query & " WHERE r_result NOT IN ('5', '6', '7') AND LEN(inspection_user) < 8 "
|
||||
query = query & " GROUP BY p_sn, s_id, CONVERT(VARCHAR(10), inspection_date, 120), inspection_user "
|
||||
query = query & " ) IRL LEFT OUTER JOIN ( "
|
||||
query = query & " SELECT id, m_name "
|
||||
query = query & " FROM project2.dbo.man WITH(NOLOCK) "
|
||||
query = query & " ) M ON IRL.inspection_user = M.id LEFT OUTER JOIN ( "
|
||||
query = query & " SELECT p_child_sn, intranet_project, p_subject "
|
||||
query = query & " FROM project2.dbo.T_PROJECT_FCS WITH(NOLOCK) "
|
||||
query = query & " ) TPF ON IRL.p_sn = TPF.p_child_sn LEFT OUTER JOIN ( "
|
||||
query = query & " SELECT p_child_sn, p_subject "
|
||||
query = query & " FROM project2.dbo.T_PROJECT_METHOD WITH(NOLOCK) "
|
||||
query = query & " ) TPM ON ISNULL(TPF.intranet_project, IRL.p_sn) = TPM.p_child_sn "
|
||||
query = query & " GROUP BY ISNULL(TPF.intranet_project, IRL.p_sn), TPM.p_subject, M.id, M.m_name, inspection_date, IRL.p_sn, ISNULL(Ltrim(TPF.p_subject), Ltrim(TPM.p_subject)) "
|
||||
query = query & " UNION ALL "
|
||||
query = query & " SELECT P.intranet_project, TPM.p_subject, '<27><><EFBFBD><EFBFBD>(CATI)' AS work_kind, tel_inspection_uid AS log_user, tel_inspection_user, "
|
||||
query = query & " tel_inspection_date AS log_date, TIC.prj_code, P.prj_name, sum(cnt) AS cnt "
|
||||
query = query & " FROM ( "
|
||||
query = query & " SELECT prj_code, tel_inspection_uid, tel_inspection_user, CONVERT(VARCHAR(10), tel_inspection_date, 120) AS tel_inspection_date, count(*) AS cnt "
|
||||
query = query & " FROM new_cati.dbo.T_INSPECTION_CATI WITH(NOLOCK) "
|
||||
query = query & " WHERE tel_inspection_user <> '' AND tel_inspection_uid IS NOT NULL AND LEN(tel_inspection_uid) < 8 "
|
||||
query = query & " GROUP BY prj_code, tel_inspection_uid, tel_inspection_user, CONVERT(VARCHAR(10), tel_inspection_date, 120) "
|
||||
query = query & " ) TIC LEFT OUTER JOIN ( "
|
||||
query = query & " SELECT prj_code, prj_name, intranet_project "
|
||||
query = query & " FROM new_cati.dbo.project WITH(NOLOCK) "
|
||||
query = query & " ) P ON TIC.prj_code = P.prj_code LEFT OUTER JOIN ( "
|
||||
query = query & " SELECT p_child_sn, p_subject "
|
||||
query = query & " FROM project2.dbo.T_PROJECT_METHOD WITH(NOLOCK) "
|
||||
query = query & " ) TPM ON P.intranet_project = TPM.p_child_sn "
|
||||
query = query & " GROUP BY P.intranet_project, TPM.p_subject, tel_inspection_uid, tel_inspection_user, tel_inspection_date, TIC.prj_code, P.prj_name "
|
||||
query = query & " ) BSU "
|
||||
query = query & " WHERE log_date BETWEEN '"&s_date_st&"' AND '"&s_date_end&"' "
|
||||
query = query & " ) T LEFT OUTER JOIN ( "
|
||||
query = query & " SELECT nek.neakeun_name, nek.m_id, nek.date, nek.in_time, nek.out_time, "
|
||||
query = query & " REPLACE(LEFT(RIGHT(CONVERT(varchar(20), LT.log_s_time, 120), 8), 5), ':', '') AS log_s_time, REPLACE(LEFT(RIGHT(CONVERT(varchar(20), LT.log_e_time, 120), 8), 5), ':', '') AS log_e_time "
|
||||
query = query & " FROM ( "
|
||||
query = query & " SELECT neakeun_name, m_id, date, in_time, out_time "
|
||||
query = query & " FROM project2.dbo.neakeun_in_out_time WITH(NOLOCK) "
|
||||
query = query & " ) nek LEFT OUTER JOIN ( "
|
||||
query = query & " SELECT log_user, log_date, min(log_s_time) AS log_s_time, max(log_e_time) AS log_e_time "
|
||||
query = query & " FROM new_cati.dbo.log_cati_prj_in_out WITH(NOLOCK) "
|
||||
query = query & " GROUP BY log_user, log_date "
|
||||
query = query & " ) LT ON nek.m_id = LT.log_user AND nek.date = LT.log_date "
|
||||
query = query & " ) YY ON T.m_id = YY.m_id AND T.log_date = YY.date "
|
||||
query = query & " WHERE LEFT(log_user_name, 3) <> '13.' "
|
||||
If s_name <> "" Then
|
||||
query = query & " AND log_user_name LIKE '%" & s_name & "%' "
|
||||
End If
|
||||
If s_work <> "" Then
|
||||
query = query & " AND work_kind IN (" & s_work & ") "
|
||||
End If
|
||||
If s_p_sn <> "" Then
|
||||
query = query & " AND intranet_project LIKE '" & s_p_sn & "%' "
|
||||
End If
|
||||
If s_p_subject <> "" Then
|
||||
query = query & " AND p_subject LIKE '%" & s_p_subject & "%' "
|
||||
End If
|
||||
if s_column <> "" Then
|
||||
query = query & " GROUP BY " & s_column & " "
|
||||
query = query & " ORDER BY " & s_column & " "
|
||||
Else
|
||||
query = query & " GROUP BY work_kind, log_date, intranet_project, p_subject, T.log_user, log_user_name, YY.in_time, YY.out_time, YY.log_s_time, YY.log_e_time "
|
||||
query = query & " ORDER BY work_kind, log_date, intranet_project, p_subject, T.log_user, log_user_name, YY.in_time, YY.out_time, YY.log_s_time, YY.log_e_time "
|
||||
End if
|
||||
'Response.Write query
|
||||
AdoRs.open query, adoconn, adopenstatic, adlockreadonly
|
||||
|
||||
If AdoRs.RecordCount > 0 Then
|
||||
%>
|
||||
<tr height="25px" class="t_head">
|
||||
<%
|
||||
For i = 0 To AdoRs.fields.count - 1
|
||||
%>
|
||||
<td align="center"><%= column_dic.Item(AdoRs.fields(i).Name)%> </td>
|
||||
<%If s_work="'CATI'" and column_dic.Item(AdoRs.fields(i).Name)="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>" Then%><!--##### <20><> ī<><C4AB>Ʈ -->
|
||||
<td align="center"><3E><> Count </td>
|
||||
<%End If %>
|
||||
<%
|
||||
Next
|
||||
%>
|
||||
</tr>
|
||||
<%
|
||||
Else
|
||||
%>
|
||||
<tr height="25px">
|
||||
<td align="center" width="100%"><3E>˻<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD></td>
|
||||
</tr>
|
||||
<%
|
||||
End If
|
||||
|
||||
|
||||
|
||||
Do While Not AdoRs.Eof
|
||||
%>
|
||||
<tr class="t_contents">
|
||||
<%
|
||||
For i = 0 To AdoRs.fields.count - 1 ' <20><><EFBFBD><EFBFBD> - 1 <20><> <20>ؾߵǴµ<C7B4>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>÷<EFBFBD> cnt <20><> Detail ȭ<><C8AD> <20><>ũ<EFBFBD><C5A9> <20>ɱ<EFBFBD><C9B1><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
%>
|
||||
<td align="center" style=""><%= AdoRs.fields(i) %></td>
|
||||
<%If s_work="'CATI'" and column_dic.Item(AdoRs.fields(i).Name)="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>" Then%><!--##### <20><> ī<><C4AB>Ʈ -->
|
||||
<td align="center" style="">
|
||||
<%
|
||||
query2=""
|
||||
query2=query2&" SELECT count(*) AS tcnt "
|
||||
query2=query2&" FROM new_cati.dbo.logfile WITH(NOLOCK) "
|
||||
query2=query2&" WHERE prj_code = (SELECT TOP 1 prj_code FROM new_cati.dbo.project WHERE intranet_project = '"&AdoRs("intranet_project")&"') "
|
||||
query2=query2&" AND log_user_name = '"&AdoRs("log_user_name")&"' "
|
||||
rsc.Open query2, adoConn, 1
|
||||
%>
|
||||
<%=rsc("tcnt") %>
|
||||
<%
|
||||
rsc.Close
|
||||
%>
|
||||
</td>
|
||||
<%End If %>
|
||||
<%
|
||||
Next
|
||||
'<27><><EFBFBD><EFBFBD> <20><>ũ Ȱ<><C8B0>ȭ <20><> <20>Ʒ<EFBFBD> <20>ּ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD> For<6F><72> AdoRs.fields.count - 2 <20><> <20><><EFBFBD><EFBFBD>
|
||||
%>
|
||||
</tr>
|
||||
<%
|
||||
AdoRs.MoveNext
|
||||
Loop
|
||||
%>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<% End if %>
|
||||
</table>
|
||||
</form>
|
||||
<%if command <> "excel" then%>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.content -->
|
||||
<!-- REQUIRED SCRIPTS -->
|
||||
<script>
|
||||
$(function () {
|
||||
$(".selectDate").datepicker();
|
||||
if ($("input[name=s_work_arr]").val() != "") {
|
||||
$("input[name=s_work]").each(function (i) {
|
||||
if ($("input[name=s_work_arr]").val().indexOf("'" + $(this).val() + "'") > -1) {
|
||||
$(this).prop("checked", true);
|
||||
}
|
||||
});
|
||||
}
|
||||
if ($("input[name=s_column_arr]").val() != "") {
|
||||
$("input[name=s_column]").each(function (i) {
|
||||
if ($("input[name=s_column_arr]").val().indexOf($(this).val()) > -1) {
|
||||
$(this).prop("checked", true);
|
||||
}
|
||||
});
|
||||
}
|
||||
var sort_col_check = [];
|
||||
$(".t_table .t_head td").each(function (index) {
|
||||
sort_col_check[index] = 0; // 1<><31> asc, 2<><32> desc, 0<><30> <20>ʱ<EFBFBD>
|
||||
});
|
||||
$(".t_table .t_head td").click(function () {
|
||||
// $(".t_table .t_head td").index(this) Ŭ<><C5AC><EFBFBD><EFBFBD> <20>÷<EFBFBD><C3B7><EFBFBD> INDEX
|
||||
// $(".t_table .t_head > td").length tr<74><72> column <20><>
|
||||
// $(".t_table .t_contents").length tr<74><72> row <20><>
|
||||
// var arr_tb = new array($(".t_table .t_contents").length, $(".t_table .t_head > td").length);
|
||||
var num_yn = true;
|
||||
var equal_value = true;
|
||||
var prev_value = "";
|
||||
var s_col_index = $(".t_table .t_head td").index(this);
|
||||
var arr_tb = [];
|
||||
if (sort_col_check[s_col_index] == 1) {
|
||||
sort_col_check[s_col_index] = 2;
|
||||
} else {
|
||||
sort_col_check[s_col_index] = 1;
|
||||
}
|
||||
$(".t_table .t_contents").each(function (tr_i) {
|
||||
arr_tb[tr_i] = $(this).find("td").eq(s_col_index).text();
|
||||
if (prev_value == "") {
|
||||
prev_value = arr_tb[tr_i];
|
||||
}
|
||||
if (prev_value != arr_tb[tr_i]) {
|
||||
equal_value = false;
|
||||
}
|
||||
if (isNaN(arr_tb[tr_i]) == true) {
|
||||
num_yn = false;
|
||||
}
|
||||
$(this).find("td").each(function (td_i) {
|
||||
if (td_i != s_col_index) {
|
||||
arr_tb[tr_i] = arr_tb[tr_i] + "^||^" + $(this).text();
|
||||
}
|
||||
});
|
||||
});
|
||||
if (equal_value != true) { // <20>÷<EFBFBD><C3B7><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>ʾƾ<CABE> Sort <20><><EFBFBD><EFBFBD>
|
||||
if (num_yn == true) { // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD>
|
||||
if (sort_col_check[s_col_index] == 1) {
|
||||
arr_tb.sort(function (a, b) { return a.split("^||^")[0] - b.split("^||^")[0]; }); // <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> Asc
|
||||
$(".t_table .t_head td").each(function (e) {
|
||||
if (e == s_col_index) {
|
||||
$(this).text($(this).text().replace("<22><>", "").replace("<22><>", "") + "<22><>");
|
||||
} else {
|
||||
$(this).text($(this).text().replace("<22><>", "").replace("<22><>", ""));
|
||||
}
|
||||
});
|
||||
} else if (sort_col_check[s_col_index] == 2) {
|
||||
arr_tb.reverse(function (a, b) { return a.split("^||^")[0] - b.split("^||^")[0]; }); // <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> Desc
|
||||
$(".t_table .t_head td").each(function (e) {
|
||||
if (e == s_col_index) {
|
||||
$(this).text($(this).text().replace("<22><>", "").replace("<22><>", "") + "<22><>");
|
||||
} else {
|
||||
$(this).text($(this).text().replace("<22><>", "").replace("<22><>", ""));
|
||||
}
|
||||
});
|
||||
}
|
||||
} else { // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD>
|
||||
if (sort_col_check[s_col_index] == 1) {
|
||||
arr_tb.sort(); // <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> Asc
|
||||
$(".t_table .t_head td").each(function (e) {
|
||||
if (e == s_col_index) {
|
||||
$(this).text($(this).text().replace("<22><>", "").replace("<22><>", "") + "<22><>");
|
||||
} else {
|
||||
$(this).text($(this).text().replace("<22><>", "").replace("<22><>", ""));
|
||||
}
|
||||
});
|
||||
} else if (sort_col_check[s_col_index] == 2) {
|
||||
arr_tb.reverse(); // <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> Desc
|
||||
$(".t_table .t_head td").each(function (e) {
|
||||
if (e == s_col_index) {
|
||||
$(this).text($(this).text().replace("<22><>", "").replace("<22><>", "") + "<22><>");
|
||||
} else {
|
||||
$(this).text($(this).text().replace("<22><>", "").replace("<22><>", ""));
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
$(".t_table .t_contents").each(function (tr_i) {
|
||||
var tmp_arr = arr_tb[tr_i].split("^||^");
|
||||
var chk_ind = 0;
|
||||
$(this).find("td").eq(s_col_index).text(tmp_arr[0]);
|
||||
for (var i = 0; i < tmp_arr.length; i++) {
|
||||
if (i != s_col_index) {
|
||||
chk_ind = chk_ind + 1;
|
||||
$(this).find("td").eq(i).text(tmp_arr[chk_ind]);
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
function dateDiff(_date1, _date2) {
|
||||
var diffDate_1 = _date1 instanceof Date ? _date1 : new Date(_date1);
|
||||
var diffDate_2 = _date2 instanceof Date ? _date2 : new Date(_date2);
|
||||
|
||||
diffDate_1 = new Date(diffDate_1.getFullYear(), diffDate_1.getMonth() + 1, diffDate_1.getDate());
|
||||
diffDate_2 = new Date(diffDate_2.getFullYear(), diffDate_2.getMonth() + 1, diffDate_2.getDate());
|
||||
|
||||
var diff = Math.abs(diffDate_2.getTime() - diffDate_1.getTime());
|
||||
diff = Math.ceil(diff / (1000 * 3600 * 24));
|
||||
|
||||
return diff;
|
||||
}
|
||||
|
||||
function search_go(command) {
|
||||
var month_limit = 90;
|
||||
var frm = document.work_status;
|
||||
var chk_yn = false;
|
||||
if (frm.s_date_st.value == "" || frm.s_date_end.value == "") {
|
||||
alert("<22>Ⱓ<EFBFBD><E2B0A3> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ּ<EFBFBD><D6BC><EFBFBD>");
|
||||
return;
|
||||
}
|
||||
if (dateDiff(frm.s_date_st.value, frm.s_date_end.value) > 90) {
|
||||
alert("90<39><30> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Ⱓ<EFBFBD><E2B0A3> <20>˻<EFBFBD><CBBB><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>մϴ<D5B4>");
|
||||
return;
|
||||
}
|
||||
$("input[name=s_work]").each(function (i) {
|
||||
if ($(this).prop("checked") == true) {
|
||||
chk_yn = true;
|
||||
}
|
||||
});
|
||||
if (chk_yn == false) {
|
||||
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 1<><31> <20>̻<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ּ<EFBFBD><D6BC><EFBFBD>");
|
||||
return;
|
||||
}
|
||||
frm.action = "./work_status.asp?command=" + command;
|
||||
frm.submit();
|
||||
}
|
||||
</script>
|
||||
</div>
|
||||
<!-- /.content-wrapper -->
|
||||
<!-- #include virtual = "include/footer.asp" -->
|
||||
<% end if %>
|
||||
94
inspection/work_status_detail_ajax.asp
Normal file
94
inspection/work_status_detail_ajax.asp
Normal file
@@ -0,0 +1,94 @@
|
||||
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<OBJECT RUNAT=Server PROGID=ADODB.Recordset id=rsp></OBJECT>
|
||||
<%
|
||||
|
||||
|
||||
date_st = request("date_st")
|
||||
date_end = request("date_end")
|
||||
params = unescape(request("params"))
|
||||
arr_param = split(params, ",")
|
||||
|
||||
Response.CharSet = "EUC-KR" '<27>ѱ<EFBFBD>
|
||||
Response.AddHeader "Pragma","no-cache"
|
||||
Response.AddHeader "cache-control", "no-staff"
|
||||
Response.Expires = -1
|
||||
|
||||
query = ""
|
||||
query = query & " SELECT intranet_project, p_subject, work_kind, log_user_name, log_date, log_st_time, log_ontel, tel_stat_label, prj_code, prj_name FROM "
|
||||
query = query & " ( "
|
||||
query = query & " SELECT P.intranet_project, TPM.p_subject, 'CATI' as work_kind, log_user_name, log_date, log_st_time, log_ontel, CS.tel_stat_label, L.prj_code, P.prj_name "
|
||||
query = query & " FROM new_cati.dbo.logfile L WITH(NOLOCK) LEFT OUTER JOIN "
|
||||
query = query & " new_cati.dbo.project P WITH(NOLOCK) ON L.prj_code = P.prj_code LEFT OUTER JOIN "
|
||||
query = query & " new_cati.dbo.cati_stat CS WITH(NOLOCK) ON L.log_stat = CS.tel_stat AND CS.prj_code = '0' LEFT OUTER JOIN "
|
||||
query = query & " project2.dbo.T_PROJECT_METHOD TPM WITH(NOLOCK) ON P.intranet_project = TPM.p_child_sn "
|
||||
query = query & " WHERE log_user <> '15254' AND log_user <> '15632' AND P.intranet_project IS NOT NULL "
|
||||
query = query & " "
|
||||
query = query & " UNION ALL "
|
||||
query = query & " SELECT KL.intranet_project, TPM.p_subject, '<27><><EFBFBD><EFBFBD>' as work_kind, login_name, log_date, log_time + ':00' as log_time, tel_num, contac_stat_label, CONVERT(VARCHAR(10), KL.id) as kikoan_id, KL.kikoan_name "
|
||||
query = query & " FROM contact.dbo.log L WITH(NOLOCK) LEFT OUTER JOIN "
|
||||
query = query & " contact.dbo.login_user U WITH(NOLOCK) ON L.user_id = U.id LEFT OUTER JOIN "
|
||||
query = query & " contact.dbo.kikoan_list KL WITH(NOLOCK) ON (L.kikoan_name = KL.kikoan_name OR L.kikoan_name = CONVERT(VARCHAR(10), KL.id)) LEFT OUTER JOIN "
|
||||
query = query & " contact.dbo.contac_stat CS WITH(NOLOCK) ON KL.id = CS.kikoan_id AND L.contac_stat = CS.contac_stat LEFT OUTER JOIN "
|
||||
query = query & " project2.dbo.T_PROJECT_METHOD TPM WITH(NOLOCK) ON KL.intranet_project = TPM.p_child_sn "
|
||||
query = query & " WHERE KL.intranet_project IS NOT NULL AND login_name IS NOT NULL AND log_stat = '<27><><EFBFBD>ð<EFBFBD><C3B0><EFBFBD> <20><><EFBFBD><EFBFBD>' AND login_name <> '<27><><EFBFBD><EFBFBD>' "
|
||||
query = query & " "
|
||||
query = query & " UNION ALL "
|
||||
query = query & " SELECT ISNULL(TPF.intranet_project, IRL.p_sn) as intranet_project, TP.p_subject, '<27><><EFBFBD><EFBFBD>(FF)' as work_kind, M.m_name, "
|
||||
query = query & " CONVERT(VARCHAR(10), inspection_date, 120) as inspection_date, RIGHT(CONVERT(VARCHAR(19), inspection_date, 120), 8) as inspection_time, "
|
||||
query = query & " CASE WHEN ISNULL(R.r_tel, '') = '' THEN ISNULL(R.r_phone, '') ELSE R.r_tel END as r_tel_num, TRR.r_result_label, IRL.p_sn, ISNULL(Ltrim(TPF.p_subject), Ltrim(TPM.p_subject)) as p_subject "
|
||||
query = query & " FROM project2.dbo.T_INSPECTION_RES_LOG IRL WITH(NOLOCK) LEFT OUTER JOIN "
|
||||
query = query & " project2.dbo.RES R WITH(NOLOCK) ON IRL.p_sn = R.p_sn AND IRL.s_id = R.s_id AND R.DelGubun = 'N' AND R.s_error IS NULL AND R.r_error IS NULL AND R.m_error IS NULL LEFT OUTER JOIN "
|
||||
query = query & " project2.dbo.man M WITH(NOLOCK) ON IRL.inspection_user = M.id LEFT OUTER JOIN "
|
||||
query = query & " project2.dbo.T_PROJECT_FCS TPF WITH(NOLOCK) ON IRL.p_sn = TPF.p_child_sn LEFT OUTER JOIN "
|
||||
query = query & " project2.dbo.T_PROJECT_METHOD TPM WITH(NOLOCK) ON IRL.p_sn = TPM.p_child_sn LEFT OUTER JOIN "
|
||||
query = query & " project2.dbo.T_PROJECT_METHOD TP WITH(NOLOCK) ON ISNULL(TPF.intranet_project, IRL.p_sn) = TP.p_child_sn LEFT OUTER JOIN "
|
||||
query = query & " project2.dbo.t_res_result TRR WITH(NOLOCK) ON IRL.r_result = TRR.r_result AND TRR.p_sn = '0' "
|
||||
query = query & " WHERE LEN(IRL.inspection_user) < 8 "
|
||||
query = query & " "
|
||||
query = query & " UNION ALL "
|
||||
query = query & " SELECT P.intranet_project, TPM.p_subject, '<27><><EFBFBD><EFBFBD>(CATI)' as work_kind, tel_inspection_user, "
|
||||
query = query & " CONVERT(VARCHAR(10), tel_inspection_date, 120) as inspection_date, RIGHT(CONVERT(VARCHAR(19), tel_inspection_date, 120), 8) as inspection_time, "
|
||||
query = query & " tel_oktelno, CASE WHEN tel_result = '1' THEN '<27><><EFBFBD><EFBFBD>OK' ELSE 'ERROR' END as tel_result_label, TIC.prj_code, P.prj_name "
|
||||
query = query & " FROM new_cati.dbo.T_INSPECTION_CATI TIC WITH(NOLOCK) LEFT OUTER JOIN "
|
||||
query = query & " new_cati.dbo.project P WITH(NOLOCK) ON TIC.prj_code = P.prj_code LEFT OUTER JOIN "
|
||||
query = query & " project2.dbo.T_PROJECT_METHOD TPM WITH(NOLOCK) ON P.intranet_project = TPM.p_child_sn "
|
||||
query = query & " WHERE tel_inspection_user <> '' "
|
||||
query = query & " ) T "
|
||||
query = query & " WHERE log_date BETWEEN '" & date_st & "' AND '" & date_end & "' "
|
||||
For i = LBOUND(arr_param) TO UBOUND(arr_param) - 1
|
||||
If i mod 2 = 0 Then
|
||||
query = query & " AND " & arr_param(i)
|
||||
Else
|
||||
query = query & " = '" & arr_param(i) & "' "
|
||||
End if
|
||||
Next
|
||||
query = query & " ORDER BY work_kind, log_date, log_st_time, intranet_project, log_user_name "
|
||||
|
||||
response.write "<tr height='25px'>"
|
||||
response.write " <td class='tit2' align='center'><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>"
|
||||
response.write " <td class='tit2' align='center'><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>¥</td>"
|
||||
response.write " <td class='tit2' align='center'><3E><><EFBFBD><EFBFBD><EFBFBD>ð<EFBFBD></td>"
|
||||
response.write " <td class='tit2' align='center'><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD>ڵ<EFBFBD></td>"
|
||||
response.write " <td class='tit2' align='center'><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD></td>"
|
||||
response.write " <td class='tit2' align='center'><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>°<EFBFBD></td>"
|
||||
response.write " <td class='tit2' align='center'><3E><>ȭ<EFBFBD><C8AD>ȣ(<28><>ȭ <20><>)</td>"
|
||||
response.write " <td class='tit2' align='center'><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD>ڵ<EFBFBD></td>"
|
||||
response.write "</tr>"
|
||||
rsp.Open query, adoConn, 1
|
||||
do while not rsp.eof
|
||||
'intranet_project, p_subject, work_kind, log_user_name, log_date, log_st_time, log_ontel, tel_stat_label, prj_code, prj_name
|
||||
response.write "<tr>"
|
||||
response.write " <td class='tit4' align='center'>" & rsp("work_kind") & "</td>"
|
||||
response.write " <td class='tit4' align='center'>" & rsp("log_date") & "</td>"
|
||||
response.write " <td class='tit4' align='center'>" & rsp("log_st_time") & "</td>"
|
||||
response.write " <td class='tit4' align='center'>" & rsp("intranet_project") & "</td>"
|
||||
response.write " <td class='tit4' align='center'>" & rsp("log_user_name") & "</td>"
|
||||
response.write " <td class='tit4' align='center'>" & rsp("tel_stat_label") & "</td>"
|
||||
response.write " <td class='tit4' align='center'>" & rsp("log_ontel") & "</td>"
|
||||
response.write " <td class='tit4' align='center'>" & rsp("prj_code") & "</td>"
|
||||
response.write "</tr>"
|
||||
rsp.movenext
|
||||
loop
|
||||
rsp.close
|
||||
%>
|
||||
Reference in New Issue
Block a user