Files
KIN/approval/doc_expense2_ajax_sebu_2014.asp
2025-09-29 17:55:08 +09:00

57 lines
1.9 KiB
Plaintext

<!-- #include virtual = "lib/config.asp" -->
<OBJECT RUNAT=Server PROGID=ADODB.Recordset id=rsp></OBJECT>
<%'
d_cost_code = request("hangmok")
p_child_sn = request("p_child_sn")
p_sn = request("p_sn")
'response.Write "hangmok : " & d_cost_code &"<br>"
p_depart = Session("Depart_Code")
d_cost_type = request("d_cost_type")
cost_type = request("cost_type")
hangmok_code = request("hangmok")
' Session.CodePage = 65001 '한글
Response.CharSet = "EUC-KR" '한글
Response.AddHeader "Pragma","no-cache"
Response.AddHeader "cache-control", "no-staff"
Response.Expires = -1
response.write "<option value=" & ">선 택</option>" & "<br>"
If cost_type = 1 Then
query = " select d_cost_code from direct_costcode where d_cost_kind = '" & d_cost_type & "' and id = '" & d_cost_code & "' order by d_cost_kind, d_cost_parents "
Else
query = " select d_cost_code from direct_costcode where d_cost_kind = '" & d_cost_type & "' and id = '" & d_cost_code & "' order by d_cost_kind, d_cost_parents "
End if
'response.write "<option value=" & ">" & query & "</option>" & "<br>"
rsp.Open query, adoConn, 1
hangmok_code = 0
If rsp.recordCount > 0 Then
hangmok_code = rsp("d_cost_code")
End if
rsp.close
If hangmok_code <> 0 Then
query = " select * from direct_costcode where d_cost_kind = '" & d_cost_type & "' and d_cost_parents = '" & hangmok_code & "' and d_cost_useyn = 'Y' order by attribute01 "
rsp.Open query, adoConn, 1
If rsp("Id")="129" or rsp("Id")="268" Then
response.write "<option value='268'>수입인지세</option>" & "<br>"
response.write "<option value='129'>세금과공과금</option>" & "<br>"
Else
for i=1 to rsp.recordCount
response.write "<option value='"& rsp("id")&"'>"&rsp("d_cost_name")&"</option>" & "<br>"
rsp.movenext
next
End If
rsp.close
End if
%>