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