Files
KIN/project/punching_input_user_save.asp
2025-09-29 17:55:08 +09:00

71 lines
2.5 KiB
Plaintext

<!-- #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") '-- 펀칭코드
dim pu_type : pu_type=request.form("pu_type") '-- 펀칭타입
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 '-- 미사용(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("적용 되었습니다 ");
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%>" ><!-- 펀칭코드 -->
<input type="hidden" name="pu_type" value="<%=pu_type%>" ><!-- 펀칭타입 -->
<!------------------><!------------------><!------------------>
<!------------------><!------------------><!------------------>
</form>
</body>
</html>