设备配件管理系统源码(通达OA)
<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/auth.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">
<form action="add.php" method="post" name="form1">
<table class="TableBlock" width="600" align="center">
<tbody>
<tr>
<td class="TableHeader" colspan="6" nowrap="nowrap"><b>基本信息</b></td>
</tr>
<tr>
<td class="TableData" width="100" nowrap="nowrap">种类名称:</td>
<td class="TableData" width="180"><input id="KIND_NAME" class="BigStatic" readonly="readonly" value="流程与IT部" type="text" /></td>
<td class="TableData" nowrap="nowrap">所属部门:</td>
<td class="TableData" width="80%" colspan="3">
<select name="DEPT_CODE" class="inputSelect"><option value=""></option>
<?php echo my_dept_tree( 0, $DEPT_ID, 1 );?>
</select></td>
</tr>
<tr>
<td class="TableData" width="100" nowrap="nowrap">设备名称:</td>
<td class="TableData" width="180" colspan="6"><input title="设备名称" hidden="0" name="DEV_NAME" type="text" /></td>
</tr>
<tr>
<td class="TableData" width="100" nowrap="nowrap">设备编号:</td>
<td class="TableData" width="180"><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="hidden" name="CHARGEBY" value="admin">
<input type="text" name="DEV_USE" size="13" class="BigStatic" readonly value="">
<a href="javascript:;" class="orgAdd" onClick="SelectUserSingle('','TO_ID', 'TO_NAME')">选择</a>
</td>
<td class="TableData" nowrap="nowrap">使用人:</td>
<td class="TableData" colspan="3"> <input type="text" name="DEV_USEMAN" size="13" class="BigStatic" readonly value="">
<a href="javascript:;" class="orgAdd" onClick="SelectUserSingle('','TO_ID', 'TO_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="100" 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="100" 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" width="180" 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="100" nowrap="nowrap">购买合同:</td>
<td class="TableData" width="180" 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="100" nowrap="nowrap">财务编号:</td>
<td class="TableData" width="180" 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="100" nowrap="nowrap">货币种类:</td>
<td class="TableData" width="180" 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="100" nowrap="nowrap">出厂编号</td>
<td class="TableData" width="180" 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="100" nowrap="nowrap">折旧方法:</td>
<td class="TableData" width="180" 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="100" nowrap="nowrap">预计使用:</td>
<td class="TableData" width="180" 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="100" nowrap="nowrap">下次检修:</td>
<td class="TableData" width="180" colspan="3"><input οnblur="checkDate()" class="BigInput" οnclick="WdatePicker()" maxlength="10" size="10" name="NEXTCHECKDATE" type="text" /></td>
</tr>
<tr>
<td class="TableData" width="100" nowrap="nowrap">备注:</td>
<td class="TableData" width="180" 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>