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

📄 handover_input.inc

📁 物业管理和办公自动化系统
💻 INC
📖 第 1 页 / 共 2 页
字号:
<%
'###############################################################################
'#
'#	文件名	 : handover_input.inc
'#	
'#      创建人	 : yaoxiaohui
'#      日期	 : 2002-11-06
'#
'#	修改历史  : ****年**月**日 ****** 
'#      修改内容  : *********************************
'#
'#	功能描述	 : 函数文件
'#      版   本	 : v1.0
'#
'#      Copyright(c) 2001-2002 上海阿尔卡特网络支援系统有限公司
'#
'###############################################################################

'*******************************************************************************
Function HandoverDetail()
   HandoverDetail = _
		"<form name=""frmDetail"" method=post action=""" & sFileName & """>" & vbLF  & _
		"<input type=""hidden"" name=""FormAction"">" & vbLF & _
		"<table cellspacing=0 cellpadding=3 width=""100%"" align=center bgcolor=silver style=""table-layout:fixed;border-style:solid;border-top-width:0px;border-bottom-width:0px;border-left-width:1px;border-right-width:1px;"">" & vbLF & _
		"<tr height=20>" & _
		"<td colspan=8 bgcolor=""black"" align=center style=""color:white;font-weight:600"">填写移交清单记录</td></tr>" & _
		"  <tr height=10 bgcolor=white><td colspan=8></td></tr>" & vbLF & _
		"  <tr height=30 bgcolor=white>" & vbLF & _
		"	<td align=right>名称:</td>" & vbLF & _
		"       <td align=left><input type=""text"" name=""goods_name"" value=""" & pGoodsName & """ size=10 maxlength=20>" & vbLF & _
		"	<td align=right>型号规格:</td>" & vbLF & _
		"       <td align=left><input type=""text"" name=""model"" value=""" & pModel & """ size=10 maxlength=20>" & vbLF & _
		"	<td align=right>单位:</td>" & vbLF & _
		"       <td align=left><input type=""text"" name=""unit"" value=""" & pUnit & """ size=10 maxlength=20>" & vbLF & _
		"	<td align=right>数量:</td>" & vbLF & _
		"       <td align=left><input type=""text"" name=""quantity"" value=""" & pQuantity & """ size=10 maxlength=20>" & vbLF & _
		"  </tr>" & vbLF & _

		"  <tr height=60 bgcolor=white>" & vbLF & _
		"	<td align=right>备注:</td>" & vbLF & _
		"       <td align=left colspan=7><textarea name=""remark"" rows=3 cols=87>" & pRemark & "</textarea></td>" & _
		"  </tr>" & vbLF & _

		"  <tr height=30 bgcolor=white>" & vbLF & _
		"	<td align=center colspan=8>" & _
		"   <a style=""cursor:hand"" title=""添加记录!"" onmouseover=""mover();"" onmouseout=""mout();"" onclick=""btnAdd_OnClick();"">" & _
		"   <img border=0 src=""../images/input.gif"" style=""vertical-align:middle"">添加移交记录</a>" & vbLF & _	
		"    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;" & _
		"   <a style=""cursor:hand"" title=""放弃!"" onmouseover=""mover();"" onmouseout=""mout();"" onclick=""btnCancel_OnClick();"">" & _
		"   <img border=0 src=""../images/delete.gif"" style=""vertical-align:middle"">放弃移交记录</a></td></tr>" & vbLF & _	
		
		"  <tr height=10 bgcolor=white><td colspan=8></td></tr>" & vbLF & _
	    "</table>" & vbLF
End Function
'*******************************************************************************
Function TableHeader()
	TableHeader = _
		"<table cellspacing=1 cellpadding=0 width=""100%"" align=center bgcolor=silver style=""table-layout:fixed"">" & vbLF & _
		"<tr style=""display:none"">" & vbLF & _
		"	<td width=60>这一行仅用于控制表格的宽度</td>" & vbLF & _
		"	<td width=60></td>" & vbLF & _
		"	<td width=100></td>" & vbLF & _
		"	<td width=90></td>" & vbLF & _
		"	<td width=60></td>" & vbLF & _
		"	<td width=80></td>" & vbLF & _
		"	<td width=150></td></tr>" & vbLF & _
		"<tr height=20>" & _
		"<td colspan=7 bgcolor=""#0040a0"" align=center style=""color:white;font-weight:600"">移交物品和设备一览</td></tr>" & _
		"<tr bgcolor=white>" & _
        "<td class=tdHead align=center>&nbsp;序号</td>" & _
		"<td class=tdHead align=center>&nbsp;选择</td>" & _
		"<td class=tdHead align=center>&nbsp;物品名称</td>" & _
		"<td class=tdHead align=center>&nbsp;型号规格</td>" & _
		"<td class=tdHead align=center>&nbsp;单位</td>" & _
		"<td class=tdHead align=center>&nbsp;数量</td>" & _
		"<td class=tdHead align=center>&nbsp;备注</td>" & _
		"</tr>"
End Function
'******************************************************************************
Function TableRecords()
	dim sTemp	: sTemp = ""	'' 临时字符串变量
	dim j					    '' 临时循环变量

	dim myArray,inputArray, str, str2

	str = session("i_array")

	myArray = split(str,"#@$#")

	dim iCounter        : iCounter = 1
    dim rowCount        : rowCount = 0

	dim sGoodsName, sModel, sUnit, sQuantity, sRemark
	
	for j = 1 to UBound(myArray) step 1
	    rowCount = rowCount + 1
		str2 = myArray(j)
		inputArray = split(str2,"#^^#")

		sGoodsName		    	= inputArray(0)
		sModel			        = inputArray(1)
		sUnit		        	= inputArray(2)
		sQuantity	    		= inputArray(3)
		sRemark	    	    	= inputArray(4)

		sTemp = sTemp & "<tr bgcolor=white height=20>" & _
		        "<td align=center nowrap>&nbsp;" & rowCount & "&nbsp;</td>" & _
				"<input type=""hidden"" name=""id"" value=""" & rowCount &""">" & _
				"<td align=center><input type=""checkbox"" id=choose_" & rowCount & " name=""choose"" value=""" & rowCount & """ style=""border-width:0""></td>" & vbLF & _
				"<td align=center title=""" & sGoodsName & """ nowrap>&nbsp;" & sGoodsName & "&nbsp;</td>" & _
				"<input type=""hidden"" name=""goods_name_" & rowCount & """ value=""" & sGoodsName &""">" & _
				"<td align=center title=""" & sModel & """ nowrap>&nbsp;" & sModel & "&nbsp;</td>" & _
				"<input type=""hidden"" name=""model_" & rowCount & """ value=""" & sModel &""">" & _
				"<td align=center title=""" & sUnit & """ nowrap>&nbsp;" & sUnit & "&nbsp;</td>" & _
				"<input type=""hidden"" name=""unit_" & rowCount & """ value=""" & sUnit &""">" & _
				"<td align=center title=""" & sQuantity & """ nowrap>&nbsp;" & sQuantity & "&nbsp;</td>" & _
				"<input type=""hidden"" name=""quantity_" & rowCount & """ value=""" & sQuantity &""">" & _
				"<td align=center title=""" & sRemark & """ nowrap>&nbsp;" & sRemark & "&nbsp;</td>" & _
				"<input type=""hidden"" name=""remark_" & rowCount & """ value=""" & sRemark &""">" & _
				"</tr>"
		
		iCounter = iCounter + 1
	next
	
	' 填补空白行
	sTemp = sTemp & WhiteRows(iCols, iCounter, iRecordsPerPage)

	TableRecords = _ 
				sTemp & _
				"<input type=""hidden"" name=""row_count"" value=""" & rowCount &""">"
End Function
'******************************************************************************
Function SheetShow()
	pOpDate = date
	SheetShow = _
		"<table cellspacing=0 cellpadding=3 width=""100%"" align=center bgcolor=silver style=""table-layout:fixed;border-style:solid;border-top-width:0px;border-bottom-width:1px;border-left-width:1px;border-right-width:1px;"">" & vbLF & _
		"<tr height=20>" & _
		"<td colspan=8 bgcolor=""black"" align=center style=""color:white;font-weight:600"">移交清单细节</td></tr>" & _
		"  <tr height=10 bgcolor=white><td colspan=8></td></tr>" & vbLF & _	
		"  <tr height=30 bgcolor=white>" & vbLF & _
		"	<td align=right colspan=1>移交单位:</td>" & vbLF & _
		"       <td colspan=3><input type=""text"" name=""department"" value=""" & pDepartment & """ size=20 maxlength=20>" & vbLF & _
		"	<td align=right colspan=1>接收单位:</td>" & vbLF & _
		"       <td colspan=3>" & vbLF & _
		"			<select name=""depot_id"" style=""width:130"">" & vbLF & _
		"					<option value=-1>全部</option>" & vbLF & _
							SelectOptions(conn, "select *from t_depot", "depot_id", "depot_name", pDepotID) & vbLF & _
		"			</select></td>" & vbLF & _
		"  </tr>" & vbLF & _

		"  <tr height=30 bgcolor=white>" & vbLF & _
		"	<td align=right colspan=1>移 交 人:</td>" & vbLF & _
		"       <td colspan=3><input type=""text"" name=""handover"" value=""" & pHandover & """ size=20 maxlength=20>" & vbLF & _
		"	<td align=right colspan=1>接 收 人:</td>" & vbLF & _
		"       <td colspan=3><input type=""text"" name=""receiver"" value=""" & pReceiver & """ size=20 maxlength=20>" & vbLF & _
		"  </tr>" & vbLF & _

		"  <tr height=30 bgcolor=white>" & vbLF & _
		"	<td align=right colspan=1>物品类别:</td>" & vbLF & _

⌨️ 快捷键说明

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