2024-05-18 15:28:29 +08:00
|
|
|
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="External_Form.aspx.cs" Inherits="External_Form" %>
|
|
|
|
|
|
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
|
|
|
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
|
|
<head runat="server">
|
|
|
|
<title></title>
|
|
|
|
<script type="text/javascript"></script>
|
|
|
|
<link href="../Css/index.css" rel="stylesheet" type="text/css" />
|
|
|
|
<link href="../Css/edit.css" rel="stylesheet" type="text/css" />
|
|
|
|
<script src="../Js/Calendar3.js" type="text/javascript"></script>
|
|
|
|
<script src="../Jquery-ui/js/jquery-1.10.2.js" type="text/javascript"></script>
|
|
|
|
<script src="../Jquery-ui/js/jquery-ui-1.10.4.custom.js" type="text/javascript"></script>
|
|
|
|
<link href="../Jquery-ui/css/pepper-grinder/jquery-ui-1.10.4.custom.css" rel="stylesheet" type="text/css" />
|
|
|
|
<script src="../Js/commonality.js" type="text/javascript"></script>
|
|
|
|
<link rel="stylesheet" href="../Css/gh-buttons.css" type="text/css"/>
|
|
|
|
<link rel="stylesheet" href="../Css/prettify.css"/>
|
|
|
|
<script src="../Js/prettify.js" type="text/javascript"></script>
|
|
|
|
<script type="text/javascript">
|
|
|
|
//调用添加方法
|
|
|
|
function setbcbd() {
|
|
|
|
$("#<%=severbc.ClientID%>").click();
|
|
|
|
}
|
|
|
|
var beforval="";
|
|
|
|
function add_khlxr() {
|
|
|
|
$("#lxjia").append("<tr><td width='25px' class='head5 '> <img src='../Images_Folder/Button/tjljh.png' onclick='jianhang(this)' width='25px' height='25px' /></td>"
|
|
|
|
+ "<td><input class='inpittxt' type='text'/></td> <td><input class='inpittxt' type='text'/></td><td><input class='inpittxt' type='text'/></td></tr>");
|
|
|
|
}
|
|
|
|
$(document).ready(function () {
|
|
|
|
beforval=$("#mingcheng").val();
|
|
|
|
$("#severbc").click(function () {
|
2024-05-20 17:40:13 +08:00
|
|
|
;
|
2024-05-18 15:28:29 +08:00
|
|
|
var jsonStr2 = "";
|
|
|
|
jsonStr2 += "[";
|
|
|
|
$("#lxjia tr").each(function(){
|
|
|
|
var lianxiren = $(this).find("td").eq(1).children().val();
|
|
|
|
var zhiwei = $(this).find("td").eq(2).children(0).val();
|
|
|
|
var shouji = $(this).find("td").eq(3).children(0).val();
|
|
|
|
if(lianxiren !="")
|
|
|
|
{
|
|
|
|
jsonStr2 += "{";
|
|
|
|
jsonStr2 += "\"lianxiren\":\"" + lianxiren + "\",";
|
|
|
|
jsonStr2 += "\"zhiwei\":\"" + zhiwei + "\",";
|
|
|
|
jsonStr2 += "\"shouji\":\"" + shouji + "\"";
|
|
|
|
jsonStr2 += "},";
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
jsonStr2 = jsonStr2.substring(0, jsonStr2.length - 1);
|
|
|
|
jsonStr2 += "]";
|
|
|
|
document.getElementById("lxr").value= jsonStr2;
|
|
|
|
});
|
|
|
|
var availableTags = [
|
|
|
|
<%=waixiemingtishi %>
|
|
|
|
];
|
|
|
|
$("#mingcheng").autocomplete({
|
|
|
|
source: availableTags
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
function pd() {
|
|
|
|
if ($("#mingcheng").val().replace(/(^\s*)|(\s*$)/g, "") == "") {
|
|
|
|
$("#z_error").text("外协名称不能为空!");
|
|
|
|
return false;
|
|
|
|
}else{
|
|
|
|
$("#z_error").text("");
|
|
|
|
}
|
|
|
|
if($("#id").val().replace(/(^\s*)|(\s*$)/g, "")=="")
|
|
|
|
{
|
|
|
|
var fanhuicount= External_Form.serchmingcheng($("#mingcheng").val()).value;
|
|
|
|
if(fanhuicount>0)
|
|
|
|
{
|
|
|
|
$("#z_error").html("此外协名称已存在");
|
|
|
|
return false;
|
|
|
|
}else{
|
|
|
|
$("#z_error").html("");
|
|
|
|
}
|
|
|
|
}else{
|
|
|
|
if($("#mingcheng").val()!=beforval)
|
|
|
|
{
|
|
|
|
var fanhuicount= External_Form.serchmingcheng($("#mingcheng").val()).value;
|
|
|
|
if(fanhuicount>0)
|
|
|
|
{
|
|
|
|
$("#z_error").html("此外协名称已存在");
|
|
|
|
return false;
|
|
|
|
}else{
|
|
|
|
$("#z_error").html("");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
</script>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<form id="form" runat="server">
|
|
|
|
<div class="rtbjdiv" >
|
|
|
|
<div class="add-top" >
|
|
|
|
<div class="add-top-dh" id="div_listdaohang"><h4>外协商档案表单页   </h4> <a href="External_list.aspx" id="bt_fhlb" runat="server" style=" width:65px" class="button icon pin">回到列表</a></div>
|
|
|
|
<div class="add-top-cz" >
|
|
|
|
<a href="#button" id="bt_tj" onclick="setbcbd()" class="button icon log">保存</a>
|
|
|
|
<a href="#button" id="chongzhi" onclick="form.reset();" style=" width:60px; " class=" button icon reload">重置表单</a>
|
|
|
|
<a href="#button" id="fanhui" onclick="history.back();" style=" width:60px; " class="button icon arrowleft">返回上级</a>
|
|
|
|
<asp:label id="z_error" CssClass="error" runat="server"></asp:label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="alert-tip">
|
|
|
|
<b>温馨提示:</b>
|
|
|
|
<p>• 信息表单中加*号红色标题框为必填项,为了可以顺利保存信息,请您注意填写红色栏目中的信息</p>
|
|
|
|
<p>• 填写信息表单中的外协商名称时,系统将获取到已存在的相似名称。请您确认是否是相同外协商后添加,已避免信息重复</p>
|
|
|
|
</div>
|
|
|
|
<div id="dd_kong" style=" overflow:auto;">
|
|
|
|
<table class="bule"> <tr class="tdlietou"><td><h4>外协商基本信息</h4></td></tr></table>
|
|
|
|
<table class="tablewk">
|
|
|
|
<tr><td style=" height:20px" colspan="13"></td></tr>
|
|
|
|
<tr>
|
|
|
|
<td class="wktblm">外协编号</td><td><asp:TextBox id="bh" runat="server" CssClass="tbinput_hx" ReadOnly Text="自动生成" ></asp:TextBox></td>
|
|
|
|
<td class="wktblm"><font><span>*公司名称</span></font></td><td><asp:TextBox id="mingcheng" runat="server" CssClass="tbinput_bt ui-autocomplete-input"></asp:TextBox></td>
|
|
|
|
<td class="wktblm">开户行</td><td><asp:TextBox id="kaihuhang" runat="server" CssClass="tbinput"></asp:TextBox></td>
|
|
|
|
<td class="wktblm">账号</td><td><asp:TextBox id="zhanghao" runat="server" CssClass="tbinput"></asp:TextBox></td>
|
|
|
|
<td class="wktblm">税号</td><td><asp:TextBox id="shuihao" runat="server" CssClass="tbinput"></asp:TextBox></td>
|
|
|
|
<td class="tdjj5">  </td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="wktblm">电话</td><td><asp:TextBox id="dianhua" runat="server" CssClass="tbinput"></asp:TextBox></td>
|
|
|
|
<td class="wktblm">传真</td><td><asp:TextBox id="chuanzhen" runat="server" CssClass="tbinput"></asp:TextBox></td>
|
|
|
|
<td class="wktblm">邮件</td><td><asp:TextBox id="youjian" runat="server" CssClass="tbinput"></asp:TextBox></td>
|
|
|
|
<td class="wktblm">行业</td><td><asp:dropdownlist id="hangye" runat="server" CssClass="tbinput_xl"></asp:dropdownlist></td>
|
|
|
|
<td class="wktblm">日期</td><td><input name='control_date' type='text' id='riqi' size='10' maxlength='10' onclick='new Calendar().show(this);' readonly='readonly' runat=server class="tbinput_rl" /></td>
|
|
|
|
<td class="tdjj5">  </td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<td class="wktblm" >地址</td><td colspan="9"><asp:TextBox id="dizhi" runat="server" CssClass="tbinput"></asp:TextBox></td>
|
|
|
|
<td class="tdjj5">  </td>
|
|
|
|
</tr>
|
|
|
|
<tr><td class="wktblm">备注</td><td colspan="11"><asp:TextBox id="beizhu" runat="server" CssClass="tbinput" ></asp:TextBox></td>
|
|
|
|
<td class="tdjj5">  </td>
|
|
|
|
</tr>
|
|
|
|
<tr><td style=" height:20px" colspan="13"></td></tr>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
|
|
|
|
<div runat="server" id="lianxiren" ></div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<span style=" display:none"> <asp:button id="severbc" runat="server" CssClass="button bluez small" Text="保存"
|
|
|
|
OnClientClick="return pd()" onclick="bt_tj_Click" ></asp:button> </span>
|
|
|
|
<asp:HiddenField ID="lxr" runat="server" Value="" />
|
|
|
|
<asp:HiddenField ID="id" runat="server" Value="" />
|
|
|
|
<script src="../Js/messageshow.js" type="text/javascript"></script>
|
|
|
|
</form>
|
|
|
|
</body>
|
|
|
|
</html>
|