최초커밋
This commit is contained in:
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" -->
|
||||
Reference in New Issue
Block a user