?? kq_jbsq_add.asp
字號:
<!--#include file="../inc/Secure.asp"-->
<!--#include file="../inc/conn.asp"-->
<!--#include file="../inc/Const.asp"-->
<!-- #include file="../inc/pubfun_a.inc" -->
<%call checkqx("0803")%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="../css/main.css" type=text/css>
<title>加班申請</title>
<script language=vbscript src="..\js\pubfun_a_c.vbs"></script>
<script language=javascript src="../js/fun_Script.js"></script>
<script language=vbscript>
<!--
sub doSave
frmxx.yjkssj.value=trim(frmxx.yjkssj.value)
frmxx.yjjssj.value=trim(frmxx.yjjssj.value)
frmxx.sqsy.value=trim(frmxx.sqsy.value)
if frmxx.sqzw.value="" then
msgbox "必須選擇申請職務",vbInformation ,"提示"
exit sub
else
ssqzw = left(frmxx.sqzw.value,instr(1,frmxx.sqzw.value,"/")-1)
end if
if not isdate(frmxx.yjkssj.value) then
msgbox "預計開始時間必須輸入日期格式,如" & formatdatetime_activenew(now,"yyyy-mm-dd hh:nn"),vbInformation,"提示"
frmxx.yjkssj.focus
exit sub
end if
frmxx.yjkssj.value=formatdatetime_activenew(frmxx.yjkssj.value,"yyyy-mm-dd hh:nn")
if not isdate(frmxx.yjjssj.value) then
msgbox "預計結束時間必須輸入日期格式,如" & formatdatetime_activenew(now,"yyyy-mm-dd hh:nn"),vbInformation,"提示"
frmxx.yjjssj.focus
exit sub
end if
frmxx.yjjssj.value=formatdatetime_activenew(frmxx.yjjssj.value,"yyyy-mm-dd hh:nn")
if frmxx.yjjssj.value<frmxx.yjkssj.value then
msgbox "預計開始時間必須早于預計結束時間",vbInformation,"提示"
frmxx.yjkssj.focus
exit sub
end if
if not IsNumeric(frmxx.yjgs.value) then
msgbox "預計工時需要輸入數字",vbInformation,"提示"
frmxx.yjgs.focus
exit sub
end if
if cdbl(frmxx.yjgs.value)<0 then
msgbox "預計工時需要輸入大于0的數字",vbInformation,"提示"
frmxx.yjgs.focus
exit sub
end if
frmxx.yjgs.value=cdbl(frmxx.yjgs.value)
dim strsplj
'msgbox "../share/pop_xzsplj.asp?sqzw=" & ssqzw &"&sqbm=" & frmxx.sqbm.value & "&sqlb=08"
frmxx.bBC.style.display="none"
strsplj = popdialog("../share/pop_xzsplj.asp?sqzw=" & ssqzw &"&sqbm=" & frmxx.sqbm.value & "&sqlb=09","400px","400px")
if trim(strsplj)="none" then
msgbox "該申請單沒有選擇相對應的審批流程,無法提交!",vbExclamation,"提示"
frmxx.bBC.style.display="inline"
exit sub
end if
if trim(strsplj)="noall" then
msgbox "沒有為當前申請設置任何對應的審批流程,無法提交!您可以嘗試選擇其他的申請職位后再提交。",vbExclamation,"提示"
frmxx.bBC.style.display="inline"
exit sub
end if
frmxx.splc.value=strsplj
frmxx.sqzw.options(frmxx.sqzw.selectedIndex).value = ssqzw
frmxx.submit
end sub
function fun_chgzw()
dim funsqbm
funsqbm = mid(frmxx.sqzw.value,instr(1,frmxx.sqzw.value,"/")+1)
frmxx.sqbm.value = funsqbm
end function
//-->
</script>
</head>
<body>
<div class="TitleBar">加班申請單</div>
<%
Response.Expires=0
Dim rs
set rs=server.CreateObject("ADODB.recordset")
dim sygbh
sygbh=session("LoginID")
%>
<br>
<table align="center" width="480" class="InputFrameMain"><tr><td><table width=460 border=0 align=center cellpadding=0 cellspacing=0 style="Margin:5px 5px 5px 5px">
<form name="frmxx" id=frmxx method="post" action="kq_jbsq_add_save.asp">
<input type=hidden id=splc name=splc>
<%
rs.Open "Select Name,zw,ssbm from tbioaUser where ID=" & sygbh,oConn,1,1
dim szws,sName,ssqbm
ssqbm = ""
if not rs.EOF then
sName=rs("Name") & ""
szws=rs("zw") & ""
end if
rs.Close
%>
<tr class=InputFrameLine>
<td width=80 class=InputLabelCell align=right>申請人</td>
<td class=InputAreaCell><%=server.HTMLEncode(sName)%></td>
<td width=80 class=InputLabelCell align=right><nobr>職位[部門]</nobr></td>
<td class=InputAreaCell>
<select id=sqzw name=sqzw rows=1 onchange="vbscript:fun_chgzw()">
<%
if szws<>"" then
rs.Open "select a.zwbh,a.zwmc,a.bmbh,b.bmmc from oa_qx_zw a,rs_bmb b where a.bmbh=b.bmbh and a.zwbh in(" & szws & ")",oConn,1,1
do while not rs.EOF
if ssqbm & "" = "" then ssqbm = rs("bmbh")
%>
<option value="<%=rs("zwbh") & "/" & rs("bmbh")%>"><%=server.HTMLEncode(rs("zwmc") & "[" & rs("bmmc") & "]")%></option>
<!--<option value="<%=rs("zwbh")%>"><%=server.HTMLEncode(rs("zwmc") & "[" & rs("bmmc") & "]")%></option>-->
<%
rs.MoveNext
loop
rs.Close
end if
%>
</select>
<input type="hidden" id="sqbm" name="sqbm" value="<%=ssqbm%>">
</td>
</tr>
<tr class=InputFrameLine>
<td width=80 class=InputLabelCell align=right><nobr>預計開始時間</nobr></td>
<td class=InputAreaCell><input type=text class=input id=yjkssj name=yjkssj size=20 maxlength=20 value='<%=formatdatetime_activenew(now,"yyyy-mm-dd hh:nn")%>'></td>
<td width=80 class=InputLabelCell align=right><nobr>預計結束時間</nobr></td>
<td class=InputAreaCell><input type=text class=input id=yjjssj name=yjjssj size=20 maxlength=20 value='<%=formatdatetime_activenew(now,"yyyy-mm-dd hh:nn")%>'></td>
</tr>
<tr class=InputFrameLine>
<td width=80 class=InputLabelCell align=right>預計工時</td>
<td class=InputAreaCell colspan=3><input type=text class=input id=yjgs name=yjgs size=20 maxlength=20 value='0'>小時</td>
</tr>
<tr class=InputFrameLine>
<td width=80 class=InputLabelCell align=right>事由</td>
<td class=InputAreaCell colspan=3><textarea class=inputarea rows=3 cols=50 id=sqsy name=sqsy></textarea></td>
</tr>
<tr class=InputFrameButtonLine>
<td align="center" colspan="4">
<input type=button class=button id=bBC name=bBC onclick="vbscript:doSave" value="確定">
<input type=button class=button id=bFH name=bFH onclick="javascript:location.href='kq_jbsq.asp';" value="返回">
</td>
</tr>
</form>
</table></td></tr></table>
<%
set rs=nothing
oConn.close
set oConn=nothing
%>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -