최초커밋
This commit is contained in:
83
project/cli_new_ok.asp
Normal file
83
project/cli_new_ok.asp
Normal file
@@ -0,0 +1,83 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<%
|
||||
cli_name = request("cli_name") '<27≯<EFBFBD> <20>˻<EFBFBD><CBBB><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Client Name
|
||||
c_name = request("c_name") '<27><><EFBFBD><EFBFBD> <20>߰<EFBFBD><DFB0><EFBFBD> Client Name
|
||||
c_type = request("c_type") '<27><><EFBFBD><EFBFBD> <20>߰<EFBFBD><DFB0><EFBFBD> Client Type
|
||||
|
||||
'Client <20><><EFBFBD><EFBFBD>
|
||||
dim tmp_cliform(99)
|
||||
|
||||
query = "SELECT * "
|
||||
query = query & "FROM Client_Type "
|
||||
query = query & "ORDER BY sort_key "
|
||||
|
||||
rsc.Open query, adoConn, 1
|
||||
if rsc.RecordCount > 0 then
|
||||
for i = 1 to rsc.RecordCount
|
||||
|
||||
tmp_cliform(int(rsc("c_type_code"))) = rsc("c_type_name")
|
||||
|
||||
rsc.MoveNext
|
||||
next
|
||||
end if
|
||||
rsc.Close
|
||||
|
||||
query = "SELECT MAX(c_code) as c_code "
|
||||
query = query & "FROM Client "
|
||||
query = query & "WHERE c_code < 9900 "
|
||||
|
||||
rsc.Open query, adoConn, 1
|
||||
tmp_code = rsc("c_code") + 1
|
||||
rsc.Close
|
||||
|
||||
query = "SELECT * "
|
||||
query = query & "FROM client "
|
||||
query = query & "WHERE c_name = '" & c_name & "' "
|
||||
|
||||
rsc.Open query, adoConn, 1
|
||||
if rsc.RecordCount > 0 then
|
||||
tmp_result = "1"
|
||||
else
|
||||
tmp_result = "0"
|
||||
end if
|
||||
rsc.Close
|
||||
|
||||
if tmp_result = "0" then
|
||||
query = "INSERT INTO Client "
|
||||
query = query & "(c_code, c_name, c_type) "
|
||||
query = query & "VALUES "
|
||||
query = query & "('" & tmp_code & "', "
|
||||
query = query & "'" & c_name & "', "
|
||||
query = query & "'" & c_type & "')"
|
||||
|
||||
'Response.Write query
|
||||
set dbin = server.CreateObject("ADODB.CONNECTION")
|
||||
dbin.Open adoConn
|
||||
dbin.Execute query
|
||||
dbin.Close
|
||||
%>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
|
||||
<LINK rel="stylesheet" type="text/css" href="/lib/text.css">
|
||||
<title>
|
||||
Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ <20>߰<EFBFBD>
|
||||
</title>
|
||||
<script language=javascript>
|
||||
function goit() {
|
||||
document.pms.action = 'cli_search.asp'
|
||||
document.pms.submit();
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body onLoad="goit()">
|
||||
<form name="pms" method="post">
|
||||
|
||||
<input type="hidden" name="cli_name" value="<%=cli_name%>">
|
||||
<%
|
||||
else
|
||||
alert2 "<22>̹<EFBFBD> <20><><EFBFBD>ϵǾ<CFB5> <20>ִ<EFBFBD> <20≯<EFBFBD><CCB8>Դϴ<D4B4>"
|
||||
end if
|
||||
set rsc = nothing
|
||||
%>
|
||||
Reference in New Issue
Block a user