⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 deliversummary.asp

📁 物业管理和办公自动化系统
💻 ASP
字号:
<%
'************************************************************************************************
' 文件名: deliversummary.asp
' Copyright(c) 2001-2002 上海阿尔卡特网络支援系统有限公司
'
'  创建人 : 蔡晓燕
'  日 期 : 2002-07-19
' 修改历史 :
'   ****年**月**日 ****** 修改内容:**************************************************
' 功能描述 :用户通过本页面分发会议纪要,同时可以填写会议的落实事项
'  版 本 :V1.0
'************************************************************************************************
option explicit
'Response.CacheControl = "no-cache"
Response.AddHeader "Pragma", "no-cache"
Response.Expires = -1
%>

<!-- #include file="../include/config.inc" -->
<!-- #include file="../include/common.inc" -->
<!-- #include file="../include/debug.inc" -->
<!-- #include file="../include/db.inc" -->
<!-- #include file="../include/date.inc" -->
<!-- #include file="../include/datahandle.inc" -->
<!-- #include file="../include/recordlist.inc" -->
<!-- #include file="../include/security.inc" -->
<!-- #include file="../common/commonpage.inc" -->
<!-- #include file="../include/emp.inc" -->
<!-- #include file="deliversummary.inc" -->
<!-- #include file="tablelink.inc" -->
<!-- #include file="../include/message.inc" -->
<%
call CheckSecurity()
'*********************************************************************************************************
'获取参数:会议的序列号。如果该参数为空,置为0,表示新的会议申请表
'********************************************************************************************************
dim iMeetingSerial	:	iMeetingSerial = GetParam("meetingserial")
if IsEmpty(iMeetingSerial) then
	Response.Redirect("../common/error.asp?error=" & ToURL("不能在地址栏中直接输入该页面地址噢!"))
	Response.end
end if

'********************************************************************************************************
' 如果是提交,则调用函数UpdateDiary()更新数据库
if UCase(Request.ServerVariables("REQUEST_METHOD") = "POST") then
	UpdateMeeting()
end if

%>

<html>
<head>
<title>会议管理——分发会议纪要</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="../common/common.css" type="text/css">

<!-- 日历 -->
<IFRAME style="display:none;position:absolute;width:148;height:194;z-index=100" ID="CalFrame" MarginHeight=0 MarginWidth=0 noresize frameborder=0 scrolling=no src="../common/cal/calendar.htm"></IFRAME>
<script language="javascript" src="../common/cal/calendar.js"></script>
<script language="vbscript" src="../task/taskremind.vbs"></script>
<script for=document event="onclick()">
<!--
document.all.CalFrame.style.display="none";
//-->
</script>
<!-- 日历 -->
<script language="javascript" src="../include/common.js"></script>

<script language="VBScript">
	sub btnPrint_Onclick()
		'查看打印效果
		frmdeliversummary.formaction.value = "print"
		if trim(frmdeliversummary.mtSubject.value) = "" then
			msgbox"请输入会议主题!"
			frmdeliversummary.mtSubject.focus()
			exit sub
		end if
		if trim(frmdeliversummary.mtName.value) = "" then
			msgbox"请输入会议名称!"
			frmdeliversummary.mtName.focus()
			exit sub
		end if
		if trim(frmdeliversummary.mtTask.value) = "" then
			msgbox"请输入会议内容!"
			frmdeliversummary.mtTask.focus()
			exit sub
		end if
		if LEN(frmdeliversummary.mtTask.value) > 3500 then
			msgbox"会议任务太多,请减少字数(最多3500个中文字符)!"
			frmdeliversummary.mtTask.focus()
			exit sub
		end if
		if trim(frmdeliversummary.department.value) = "" then
			msgbox"请输入召开部门!"
			frmdeliversummary.department.focus()
			exit sub
		end if
		if trim(frmdeliversummary.meeting_room.value) = "" then
			msgbox"请输入召开地点!"
			frmdeliversummary.meeting_room.focus()
			exit sub
		end if
		if trim(frmdeliversummary.presider.value) = "" then
			msgbox"请输入会议主持人!"
			frmdeliversummary.presider.focus()
			exit sub
		end if
		if trim(frmdeliversummary.budget.value) = "" then
			msgbox"请输入费用预算!"
			frmdeliversummary.budget.focus()
			exit sub
		end if
		if not IsNumeric(frmdeliversummary.budget.value) then
			msgbox"费用必须是数字!"
			frmdeliversummary.budget.focus()
			exit sub
		end if
		if trim(frmdeliversummary.start_time.value) = "" then
			msgbox"请输入开始时间!"
			frmdeliversummary.start_time.focus()
			exit sub
		end if
		if not Isdate(frmdeliversummary.start_time.value) then
			msgbox"请输入正确的时间格式(yyyy-mm-dd hh:mm:ss)!"
			frmdeliversummary.start_time.focus()
			exit sub
		end if
		if trim(frmdeliversummary.stop_time.value) = "" then
			msgbox"请输入结束时间!"
			frmdeliversummary.stop_time.focus()
			exit sub
		end if
		if not Isdate(frmdeliversummary.stop_time.value) then
			msgbox"请输入正确的时间格式(yyyy-mm-dd hh:mm:ss)!"
			frmdeliversummary.stop_time.focus()
			exit sub
		end if
		Dim v_length,i	'v_length,i为临时变量
		v_length = frmdeliversummary.attendee.length
		if v_length = 0 then
			msgbox"请输入参会人员!"
			frmdeliversummary.attendee.focus()
			exit sub
		else
			for i = 0 to v_length - 1 
			   frmdeliversummary.attendee.options(i).selected = true
			next
		end if
		frmdeliversummary.submit()
	end sub

	sub btnDeliver_Onclick()
		'立即分发 
		frmdeliversummary.formaction.value = "deliver"
		if trim(frmdeliversummary.mtSubject.value) = "" then
			msgbox"请输入会议主题!"
			frmdeliversummary.mtSubject.focus()
			exit sub
		end if
		if trim(frmdeliversummary.mtName.value) = "" then
			msgbox"请输入会议名称!"
			frmdeliversummary.mtName.focus()
			exit sub
		end if
		if trim(frmdeliversummary.mtTask.value) = "" then
			msgbox"请输入会议内容!"
			frmdeliversummary.mtTask.focus()
			exit sub
		end if
		if LEN(frmdeliversummary.mtTask.value) > 3500 then
			msgbox"会议内容太多,请减少字数(最多3500个中文字符)!"
			frmdeliversummary.mtTask.focus()
			exit sub
		end if
		if trim(frmdeliversummary.department.value) = "" then
			msgbox"请输入召开部门!"
			frmdeliversummary.department.focus()
			exit sub
		end if
		if trim(frmdeliversummary.meeting_room.value) = "" then
			msgbox"请输入召开地点!"
			frmdeliversummary.meeting_room.focus()
			exit sub
		end if
		if trim(frmdeliversummary.presider.value) = "" then
			msgbox"请输入会议主持人!"
			frmdeliversummary.presider.focus()
			exit sub
		end if
		if trim(frmdeliversummary.budget.value) = "" then
			msgbox"请输入费用!"
			frmdeliversummary.budget.focus()
			exit sub
		end if
		if not IsNumeric(frmdeliversummary.budget.value) then
			msgbox"费用必须是数字!"
			frmdeliversummary.budget.focus()
			exit sub
		end if
		if trim(frmdeliversummary.start_time.value) = "" then
			msgbox"请输入开始时间!"
			frmdeliversummary.start_time.focus()
			exit sub
		end if
		if not Isdate(frmdeliversummary.start_time.value) then
			msgbox"请输入正确的时间格式(yyyy-mm-dd hh:mm:ss)!"
			frmdeliversummary.start_time.focus()
			exit sub
		end if
		if trim(frmdeliversummary.stop_time.value) = "" then
			msgbox"请输入结束时间!"
			frmdeliversummary.stop_time.focus()
			exit sub
		end if
		if not Isdate(frmdeliversummary.stop_time.value) then
			msgbox"请输入正确的时间格式(yyyy-mm-dd hh:mm:ss)!"
			frmdeliversummary.stop_time.focus()
			exit sub
		end if
		Dim v_length,i	'v_length,i为临时变量
		v_length = frmdeliversummary.attendee.length
		if v_length = 0 then
			msgbox"请输入参会人员!"
			frmdeliversummary.attendee.focus()
			exit sub
		else
			for i = 0 to v_length - 1 
			   frmdeliversummary.attendee.options(i).selected = true
			next
		end if
		if trim(frmdeliversummary.meeting_effect.value) = "" then
			if msgbox("落实事项没有输入,是否继续?",324) = 7 then
				frmdeliversummary.meeting_effect.focus()
				exit sub
			end if
		end if
		if LEN(frmdeliversummary.meeting_effect.value) > 3500 then
			msgbox"落实事项太多,请减少字数(最多3500个中文字符)!"
			frmdeliversummary.meeting_effect.focus()
			exit sub
		end if
		if trim(frmdeliversummary.meeting_effect.value) <> "" then
			v_length = frmdeliversummary.associate.length
			if v_length = 0 then
				msgbox"请选择相关人员!"
				frmdeliversummary.associate.focus()
				exit sub
			else
				for i = 0 to v_length - 1 
				   frmdeliversummary.associate.options(i).selected = true
				next
			end if
		end if
		v_length = frmdeliversummary.prior.length
		if v_length = 0 then
			msgbox"请选择分发对象!"
			frmdeliversummary.prior.focus()
			exit sub
		else
			for i = 0 to v_length - 1 
			   frmdeliversummary.prior.options(i).selected = true
			next
		end if
		frmdeliversummary.rt.value = FirstRemindTime(frmdeliversummary.rm.value,date())
		frmdeliversummary.submit()
	end sub

	sub btnReset_Onclick()
		'重置
		frmdeliversummary.reset()
	end sub

</script>
</head>

<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" background="../images/bg/bg0.jpg">
<br>

<%
Response.Write OuterTableHeader
Response.Write HeaderWithMenu
Response.Write InnerTableHeader
'********************************************************************************************************
' 主体从这里开始
'-------------------------------------------------------------------------------------------------------------------------------------------------
Response.write FormMeetingTable(iMeetingSerial)
Response.write TableLink1()
'-------------------------------------------------------------------------------------------------------------------------------------------------
' 主体到这里结束
'********************************************************************************************************
Response.Write InnerTableTailer
Response.Write Footer
Response.Write OuterTableTailer
%>

</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -