|
|
<%@include file="/auth.jsp"%>
|
|
|
<%@page import="java.util.Date"%>
|
|
|
<%@ page import="com.zky.bjca.SM4" %>
|
|
|
<%@ page import="cn.org.bjca.utils.Base64" %>
|
|
|
<%@page language="java" pageEncoding="utf-8" %>
|
|
|
<jsp:useBean id="getPara" scope="application" class="com.zky.para.SyncPara"/>
|
|
|
<%
|
|
|
HashFmlBuf indentureBuf=(HashFmlBuf)request.getAttribute("indenture_buf");
|
|
|
%>
|
|
|
<html>
|
|
|
<head>
|
|
|
<title>维修单位管理修改</title>
|
|
|
<link href="../../css/font.css" rel="stylesheet" type="text/css">
|
|
|
<script src="../../js/date.js"></script>
|
|
|
<script src="../../js/check.js"></script>
|
|
|
<script>
|
|
|
function checkNumber()
|
|
|
{
|
|
|
if(parseInt(form1.indentureId.value))
|
|
|
{
|
|
|
return true;
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
alert("维修商编号只能输入数字");
|
|
|
form1.indentureId.focus();
|
|
|
return false;
|
|
|
}
|
|
|
}
|
|
|
function check(operate) {
|
|
|
form1.operate.value = operate;
|
|
|
if(form1.operate.value="updateIndenture"){
|
|
|
if (form1.indentureId.value == "") {
|
|
|
alert("请输入维修单位编号!");
|
|
|
form1.indentureId.focus();
|
|
|
return false;
|
|
|
}
|
|
|
if (form1.indentureName.value == "") {
|
|
|
alert("请输入维修单位名称!");
|
|
|
form1.indentureName.focus();
|
|
|
return false;
|
|
|
}
|
|
|
if(form1.indenturePhone.value=="")
|
|
|
{
|
|
|
alert("请输入维修单位座机号码");
|
|
|
form1.indenturePhone.focus();
|
|
|
return false;
|
|
|
}
|
|
|
if(form1.indentureMobile.value=="")
|
|
|
{
|
|
|
alert("请输入维修单位手机号码");
|
|
|
form1.indentureMobile.focus();
|
|
|
return false;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
form1.button1.disabled=true;
|
|
|
//form1.button2.disabled=true;
|
|
|
form1.submit();
|
|
|
}
|
|
|
function checklength(el,size){
|
|
|
if(el.value.length > size){
|
|
|
alert("字数超过限制");
|
|
|
}
|
|
|
el.value = el.value.substring(0,size);
|
|
|
}
|
|
|
|
|
|
</script>
|
|
|
<style type="text/css">
|
|
|
.aselect
|
|
|
{
|
|
|
width:156px;
|
|
|
}
|
|
|
</style>
|
|
|
|
|
|
<style type="text/css">
|
|
|
|
|
|
.td1{
|
|
|
width: 30%;
|
|
|
}
|
|
|
table#csstable{
|
|
|
border-top:#D8E9FE 1px solid;
|
|
|
border-left:#D8E9FE 1px solid;
|
|
|
}
|
|
|
table#csstable td{
|
|
|
border-bottom:#D8E9FE 1px solid;
|
|
|
border-right:#D8E9FE 1px solid;
|
|
|
}
|
|
|
|
|
|
table#csstable #bottomcss td{
|
|
|
|
|
|
border-bottom:#D8E9FE 0px solid;
|
|
|
}
|
|
|
|
|
|
</style>
|
|
|
</head>
|
|
|
<body onload="setValue();">
|
|
|
<form name="form1" method="post" action="/servlet/IndentureManage">
|
|
|
<input type="hidden" name="operate" value=""/>
|
|
|
<input type="hidden" name="indentureId" value="<%=indentureBuf.fget("indenture_id",0) %>"/>
|
|
|
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="1" class="box">
|
|
|
<tr>
|
|
|
<td valign="top"><table width="100%" height="23" border="0" cellpadding="0" cellspacing="0">
|
|
|
<tr>
|
|
|
<td width="25%" background="/images/tab_search_01.jpg"><table width="80%" height="23" border="0" align="center" cellpadding="0" cellspacing="0">
|
|
|
<tr>
|
|
|
<td width="3%"><img src="/images/little_red.jpg" width="12" height="12"></td>
|
|
|
<td width="97%" class="font12b"> 维修单位管理修改</td>
|
|
|
</tr>
|
|
|
</table></td>
|
|
|
<td width="82%" background="/images/tab_search_03.jpg"><img src="/images/tab_search_02.jpg" width="12" height="23"></td>
|
|
|
</tr>
|
|
|
</table>
|
|
|
<table width="99%" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="d8e9fe" class="table02">
|
|
|
<tr bgcolor="#FFFFFF">
|
|
|
<td class="cell1" style="line-height: 35px;">维修单位编号</td>
|
|
|
<td class="cell2">
|
|
|
<%=indentureBuf.fget("indenture_id",0) %>
|
|
|
</td>
|
|
|
<td class="cell1">维修单位名称</td>
|
|
|
<td class="cell2">
|
|
|
<input type="text" value="<%=SM4.SM4Decrypt(Base64.decode(indentureBuf.fget("indenture_name",0))) %>" name="indentureName" maxlength="20"/> <font color="#ff0000">*</font>
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr bgcolor="#FFFFFF">
|
|
|
<td class="cell1" style="line-height: 35px;">维修单位地址</td>
|
|
|
<td class="cell2">
|
|
|
<input type="text" name="indentureAddress" value="<%=indentureBuf.fget("indenture_address",0)%>" maxlength="30"/> <font color="#ff0000">*</font>
|
|
|
</td>
|
|
|
<td class="cell1">维修单位座机</td>
|
|
|
<td class="cell2">
|
|
|
<input type="text" name="indenturePhone" value="<%=indentureBuf.fget("indenture_phone",0) %>" class="PhoneNoFormat" maxlength="12"/> <font color="#ff0000">*</font>
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr bgcolor="#FFFFFF">
|
|
|
<td class="cell1" style="line-height: 35px;">维修单位手机</td>
|
|
|
<td class="cell2">
|
|
|
<input type="text" name="indentureMobile" value="<%=indentureBuf.fget("indenture_mobile",0) %>" class="MobileNoFormat" maxlength="11"/> <font color="#ff0000">*</font>
|
|
|
</td>
|
|
|
<td class="cell1">联系人姓名</td>
|
|
|
<td class="cell2">
|
|
|
<input type="text" name="indentureLinkman" value="<%=indentureBuf.fget("indenture_linkman",0) %>" maxlength="10"/> <font color="#ff0000">*</font>
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr bgcolor="#FFFFFF">
|
|
|
<td class="cell1" style="line-height: 35px;">联系人座机</td>
|
|
|
<td class="cell2">
|
|
|
<input type="text" name="linkmanPhone" value="<%=indentureBuf.fget("linkman_phone",0) %>" class="PhoneNoFormat" maxlength="12"/> <font color="#ff0000">*</font>
|
|
|
</td>
|
|
|
<td class="cell1">联系人手机</td>
|
|
|
<td class="cell2">
|
|
|
<input type="text" name="linkmanMobile" value="<%=indentureBuf.fget("linkman_mobile",0) %>" class="MobileNoFormat" maxlength="11"/> <font color="#ff0000">*</font>
|
|
|
</td>
|
|
|
</tr>
|
|
|
|
|
|
<tr bgcolor="#FFFFFF" >
|
|
|
<td class="cell1" style="line-height: 35px;" >
|
|
|
备注:
|
|
|
</td>
|
|
|
<td class="cell2" colspan="3">
|
|
|
<textarea onblur="checklength(this,200)" maxlength="300" name="remark" id="remark" rows="3" cols="93" ><%=indentureBuf.fget("remark",0) %></textarea>
|
|
|
<font color="red">(注:限200字符内)</font>
|
|
|
</td>
|
|
|
</tr>
|
|
|
</table>
|
|
|
<br>
|
|
|
<table width="99%" align="center">
|
|
|
<tr align="center">
|
|
|
<td>
|
|
|
<input type="image" src="../../images1/bc1.png" alt="保存" onclick="check('updateIndenture');"/>
|
|
|
<a href="javascript:history.go(-1)"><img src="../../images1/fh.png" alt="返回" border="0" /></a>
|
|
|
</td>
|
|
|
</tr>
|
|
|
</table>
|
|
|
|
|
|
</td>
|
|
|
</tr>
|
|
|
</table>
|
|
|
<%@include file="/foot.jsp"%>
|
|
|
</form>
|
|
|
</body>
|
|
|
</html>
|
|
|
<script src="/js/ajaxUtils.js"></script> |