최초커밋
This commit is contained in:
57
approval/doc_expense2_ajax_sebu_2014.asp
Normal file
57
approval/doc_expense2_ajax_sebu_2014.asp
Normal file
@@ -0,0 +1,57 @@
|
||||
<!-- #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 '<27>ѱ<EFBFBD>
|
||||
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>"
|
||||
|
||||
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'><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></option>" & "<br>"
|
||||
response.write "<option value='129'><3E><><EFBFBD>ݰ<EFBFBD><DDB0><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></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
|
||||
%>
|
||||
Reference in New Issue
Block a user