<link rel="stylesheet" type="text/css" href="/theme/11/style.css">
<script src="/inc/js/module.js"></script>
<script src="/module/DatePicker/WdatePicker.js"></script>
<script src="/inc/js/ccorrect_btn.js"></script>
<?php
include_once( "inc/conn.php" );
include_once( "inc/editor.php" );
include_once( "inc/utility_all.php" );
include_once( "inc/check_type.php" );
include_once( "inc/utility_field.php" );
include_once( "inc/utility_file.php" );
?>
<html>
<head>
<title>新建设备</title>
<script language="JavaScript">
function CheckForm(){
if(document.form1.DEV_NAME.value==""){
alert("设备名称不能为空");
return(false);
}
document.form1.OP.value="1";
return (true);
}
function sendForm(publish)
{
document.form1.OP.value="1";
if(CheckForm())
document.form1.submit();
}
</script>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<body class="bodycolor" topmargin="5"><table border="0" width="90%" cellspacing="0" cellpadding="3" class="small">
<tr>
<td><img src="/images/notify_new.gif" align="absmiddle"><span class="big3"> 设备新增</span>
</td>
</tr>
</table>
<form action="add.php" method="post" name="form1">
<table class="TableBlock" width="650" align="center">
<tbody>
<tr>
<td class="TableHeader" colspan="6" nowrap="nowrap"><b>基本信息</b></td>
</tr>
<tr>
<td class="TableData" width="86" nowrap="nowrap">种类名称:</td>
<td class="TableData" width="230"><input id="KIND_NAME" class="BigStatic" readonly="readonly" value="" type="text" /></td>
<td class="TableData" nowrap="nowrap">所属部门:</td>
<td class="TableData" width="232" colspan="3"><input type="hidden" name="SPONSORING_DEPARTMENT">
<input type="text" name="SPONSORING_DEPARTMENT_NAME" value="" class=BigStatic size=12 maxlength=100 readonly>
<a href="javascript:;" class="orgAdd" onClick="SelectDeptSingle('','SPONSORING_DEPARTMENT','SPONSORING_DEPARTMENT_NAME')">选择</a>
</td>
</tr>
<tr>
<td class="TableData" width="86" nowrap="nowrap">设备名称:</td>
<td class="TableData" colspan="6"><input title="设备名称" hidden="0" name="DEV_NAME" type="text" /></td>
</tr>
<tr>
<td class="TableData" width="86" nowrap="nowrap">设备编号:</td>
<td class="TableData" width="230"><input id="STAFF_NO" class="BigInput" name="DEV_CODE" type="text" /></td>
<td class="TableData" nowrap="nowrap">设备状态:</td>
<td class="TableData" colspan="3"><select title="设备状态" name="DEV_STATUS">
<option value=" " ></option>
<?php echo code_list( "sbgl_DevState", "" );?>
</select></td>
</tr>
<tr>
<td class="TableData" nowrap="nowrap">责任人:</td>
<td class="TableData"><input type="text" name="ASSESSING_OFFICER_NAME2" size="20" class="BigStatic" readonly value="">
<input type="hidden" name="ASSESSING_OFFICER2" value="">
<a href="javascript:;" class="orgAdd" onClick="SelectUserSingle('','ASSESSING_OFFICER', 'ASSESSING_OFFICER_NAME')">选择</a></td>
<td class="TableData" nowrap="nowrap">使用人:</td>
<td class="TableData" colspan="3"><input type="text" name="ASSESSING_OFFICER_NAME" size="20" class="BigStatic" readonly value="">
<input type="hidden" name="ASSESSING_OFFICER" value="">
<a href="javascript:;" class="orgAdd" onClick="SelectUserSingle('','ASSESSING_OFFICER', 'ASSESSING_OFFICER_NAME')">选择</a></td>
</tr>
<tr>
<td class="TableData" nowrap="nowrap">采购日期:</td>
<td class="TableData" > <input type="text" name="STOCK_DATE" size="10" maxlength="10" class="BigInput" value="" onClick="WdatePicker()">
</td>
<td class="TableData" nowrap="nowrap">设备来源:</td>
<td class="TableData" colspan="3"><select title="设备来源" name="DEV_SOURCE" >
<option value=" " ></option>
<?php echo code_list( "sbgl_DevSource", "" );?>
</select></td>
</tr>
<tr>
<td class="TableData" nowrap="nowrap">保修期至:</td>
<td class="TableData" ><input οnblur="checkDate()" class="BigInput" οnclick="WdatePicker()" maxlength="10" size="10" name="MAINTENENDDATE" type="text" /></td>
<td class="TableData" nowrap="nowrap">报废期至:</td>
<td class="TableData" colspan="3" nowrap="nowrap"><input οnblur="checkDate()" class="BigInput" οnclick="WdatePicker()" maxlength="10" size="10" name="REJECTENDDATE" type="text" /></td>
</tr>
<tr>
<td class="TableData" nowrap="nowrap">品牌:</td>
<td class="TableData"><select title="设备品牌" name="BROND" >
<option value=" " ></option>
<?php echo code_list( "sbgl_DevBrand", "" );?>
</select></td>
<td class="TableData" nowrap="nowrap">规格型号:</td>
<td class="TableData" colspan="3"><select title="规格型号" name="MODEL">
<option value=" " ></option>
<?php echo code_list( "sbgl_DevModels", "" );?>
</select></td>
</tr>
<tr>
<td class="TableData" width="86" nowrap="nowrap">生产商:</td>
<td class="TableData"><select title="设备供应商" name="FAC">
<option value=" " ></option>
<?php echo code_list( "sbgl_DevProducer", "" );?>
</select></td>
<td class="TableData" width="82" nowrap="nowrap">供应商:</td>
<td class="TableData" colspan="3"><select title="设备供应商" name="ACC" >
<option value=" " ></option>
<?php echo code_list( "sbgl_DevProducer", "" );?>
</select></td>
</tr>
<tr>
<td class="TableData" nowrap="nowrap">用途:</td>
<td class="TableData" colspan="5"><select title="设备用途" name="DEV_USE">
<option value=" " ></option>
<?php echo code_list( "sbgl_DevPurpose", "" );?>
</select></td>
</tr>
<tr>
<td class="TableData" nowrap="nowrap">购买人:</td>
<td class="TableData"><input type="text" name="BUYPRS" size="13" class="BigStatic" readonly value="">
<a href="javascript:;" class="orgAdd" onClick="SelectUserSingle('','TO_ID', 'TO_NAME')">选择</a></td>
<td class="TableData" width="82" nowrap="nowrap">购买合同:</td>
<td class="TableData" width="232" colspan="3"><input type="text" id="BUYCONTRACT" width="180"></td>
</tr>
<tr>
<td class="TableData" nowrap="nowrap">启用日期:</td>
<td class="TableData"><input οnblur="checkDate()" class="BigInput" οnclick="WdatePicker()" maxlength="10" size="10" name="DATA_99" type="text" /></td>
<td class="TableData" width="82" nowrap="nowrap">财务编号:</td>
<td class="TableData" width="232" colspan="3"><input type="text" id="SER_CODE" width="180"></td>
</tr>
<tr>
<td class="TableData" nowrap="nowrap">价格:</td>
<td class="TableData"><input type="text" id="PRICE" width="180"></td>
<td class="TableData" width="82" nowrap="nowrap">货币种类:</td>
<td class="TableData" width="232" colspan="3"><select title="货币种类" name="CURRENCYKIND" >
<option value=" " ></option>
<?php echo code_list( "sbgl_CurrencyKind", "" );?>
</select></td>
</tr>
<tr>
<td class="TableData" nowrap="nowrap">生产日期:</td>
<td class="TableData"><input type="text" name="END_DATE" size="10" maxlength="10" class="BigInput" value="" onClick="WdatePicker()"></td>
<td class="TableData" width="82" nowrap="nowrap">出厂编号</td>
<td class="TableData" width="232" colspan="3"><input type="text" id="Finance" width="180" name="DEV_TERMINAL"></td>
</tr>
<tr>
<td class="TableData" nowrap="nowrap">安装位置:</td>
<td class="TableData"><input type="text" id="DEV_PLACE" width="180"></td>
<td class="TableData" width="82" nowrap="nowrap">折旧方法:</td>
<td class="TableData" width="232" colspan="3"><select><option value="不计提折旧">不计提折旧</option><option value="平均年限法">平均年限法</option><</select></td>
</tr>
<tr>
<td class="TableData" nowrap="nowrap">净残值率:</td>
<td class="TableData"><input type="text" id="Finance" width="100px">(%)</td>
<td class="TableData" width="82" nowrap="nowrap">预计使用:</td>
<td class="TableData" width="232" colspan="3"><input type="text" id="Finance" width="100px"></td>
</tr>
<tr>
<td class="TableData" nowrap="nowrap">检修周期:</td>
<td class="TableData"><input title="检修周期" maxlength="3" name="FREQCOUNT" size="3" hidden="0" type="text" /> <select title="周期" name="FREQUNIT">
<option value="" selected="selected"></option>
<option value="天">天</option>
<option value="周">周</option>
<option value="月">月</option>
<option value="年">年</option>
</select></td>
<td class="TableData" width="82" nowrap="nowrap">下次检修:</td>
<td class="TableData" width="232" colspan="3"><input οnblur="checkDate()" class="BigInput" οnclick="WdatePicker()" maxlength="10" size="10" name="NEXTCHECKDATE" type="text" /></td>
</tr>
<tr>
<td class="TableData" width="86" nowrap="nowrap">备注:</td>
<td class="TableData" colspan="6"><textarea title="备注" rich="0" style="width: 400px; height: 50px" name="DEV_NOTE"></textarea></td>
</tr>
<tr align="center" class="TableControl">
<td colspan=6 nowrap>
<input type="hidden" name="OP" value="">
<input type="button" value="保存" class="BigButton" onClick="CheckForm();">
<input type="button" value="返回" class="BigButton" onClick="location='user_list.php?DEPT_ID=242'">
</td>
</tr>
</tbody>
</table>
<form>
</body>
</html>
设备新增 |