최초커밋
This commit is contained in:
70
project/punching_input_user_save.asp
Normal file
70
project/punching_input_user_save.asp
Normal file
@@ -0,0 +1,70 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<%
|
||||
SET rsa = server.CreateObject("ADODB.RECORDSET")
|
||||
SET rsp = server.CreateObject("ADODB.RECORDSET")
|
||||
|
||||
dim pn_cd : pn_cd=request.form("pn_cd") '-- <20><>Ī<EFBFBD>ڵ<EFBFBD>
|
||||
dim pu_type : pu_type=request.form("pu_type") '-- <20><>ĪŸ<C4AA><C5B8>
|
||||
|
||||
|
||||
For Each s In request.form
|
||||
|
||||
if left(s,10)="field_set_" then
|
||||
|
||||
sql=" update [project2].[dbo].[T_RES_FIELD_USER_CHANGE] set "&vbCrLf
|
||||
sql=sql&" ting='0' "&vbCrLf '-- <20>̻<EFBFBD><CCBB><EFBFBD>(0)
|
||||
sql=sql&" where ting='1' "&vbCrLf
|
||||
sql=sql&" and pu_child_sn='"&pn_cd&"' "&vbCrLf
|
||||
sql=sql&" and pu_type='"&pu_type&"' "&vbCrLf
|
||||
sql=sql&" and ffusercode='"&replace(s,"field_set_","")&"' "&vbCrLf
|
||||
adoconn.execute sql
|
||||
|
||||
if request.form(s)<>"" then
|
||||
sql=" INSERT INTO [project2].[dbo].[T_RES_FIELD_USER_CHANGE] "&vbCrLf
|
||||
sql=sql&" (pu_child_sn,pu_type,ffusercode,ffusercode_change,insert_date,tuser,ting) "&vbCrLf
|
||||
sql=sql&" VALUES "&vbCrLf
|
||||
sql=sql&" ('"&pn_cd&"' "&vbCrLf
|
||||
sql=sql&" ,'"&pu_type&"' "&vbCrLf
|
||||
sql=sql&" ,'"&replace(s,"field_set_","")&"' "&vbCrLf
|
||||
sql=sql&" ,'"&request.form(s)&"' "&vbCrLf
|
||||
sql=sql&" ,getdate() "&vbCrLf
|
||||
sql=sql&" ,'"&Session("User_Number")&"' "&vbCrLf
|
||||
sql=sql&" ,'1') "&vbCrLf
|
||||
adoconn.execute sql
|
||||
end if
|
||||
|
||||
end if
|
||||
|
||||
next
|
||||
|
||||
|
||||
%>
|
||||
<meta http-equiv="Content-Type" content="application/vnd.ms-excel;charset=euc-kr">
|
||||
<meta http-equiv="Expires" content="Mon, 06 Jan 1990 00:00:01 GMT">
|
||||
<meta http-equiv="Expires" content="-1">
|
||||
<meta http-equiv="Pragma" content="no-cache">
|
||||
<meta http-equiv="Cache-Control" content="no-cache">
|
||||
<title><%=GNB_TITLE%></title>
|
||||
<link rel="stylesheet" type="text/css" href="../css/basic.css">
|
||||
<script src="/js/jquery.min.js"></script>
|
||||
<script src="/js/jquery-ajax-call.js"></script>
|
||||
<script src="/js/jquery.form.min.js"></script>
|
||||
<script language="javascript" src="../js/common.js"></script>
|
||||
<script language=javascript>
|
||||
|
||||
function js_init(x){
|
||||
alert("<22><><EFBFBD><EFBFBD> <20>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD> ");
|
||||
window.open('about:blank','_parent').parent.close();
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body onclick="javascript:try{if(winObj.window.focus()){}}catch(exception){}" ondblclick="javascript:try{if(winObj.window.focus()){}}catch(exception){}" onload="javascript:js_init(xform);" >
|
||||
<form name='xform' method='post' >
|
||||
<input type="hidden" name="pn_cd" value="<%=pn_cd%>" ><!-- <20><>Ī<EFBFBD>ڵ<EFBFBD> -->
|
||||
<input type="hidden" name="pu_type" value="<%=pu_type%>" ><!-- <20><>ĪŸ<C4AA><C5B8> -->
|
||||
<!------------------><!------------------><!------------------>
|
||||
|
||||
<!------------------><!------------------><!------------------>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user