You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
631 lines
27 KiB
Plaintext
631 lines
27 KiB
Plaintext
1 month ago
|
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CompanyEdit.aspx.cs" Inherits="TradeManage.SysManage.CompanyEdit" %>
|
||
|
|
||
|
<!DOCTYPE html>
|
||
|
|
||
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||
|
<head runat="server">
|
||
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||
|
<title></title>
|
||
|
<link rel="stylesheet" type="text/css" href="../themes/default/easyui.css" />
|
||
|
<link rel="stylesheet" type="text/css" href="../themes/icon.css" />
|
||
|
<link rel="stylesheet" type="text/css" href="../themes/New.css" />
|
||
|
<link rel="stylesheet" type="text/css" href="../themes/DataGrid.css" />
|
||
|
<link rel="stylesheet" type="text/css" href="../Scripts/fancybox/jquery.fancybox-1.3.4.css" />
|
||
|
<script src="../Scripts/MicrosoftAjax.js" type="text/javascript"></script>
|
||
|
<script src="../Scripts/jquery.min.js" type="text/javascript"></script>
|
||
|
<script src="../Scripts/jquery.easyui.min.js" type="text/javascript"></script>
|
||
|
<script src="../Scripts/DataGrid.js" type="text/javascript"></script>
|
||
|
<script src="../Scripts/DataPager.js" type="text/javascript"></script>
|
||
|
<script src="../Scripts/jquery.bgiframe.min.js" type="text/javascript"></script>
|
||
|
<script src="../Scripts/Global.js" type="text/javascript"></script>
|
||
|
<script src="../Scripts/WindowLoad.js" type="text/javascript"></script>
|
||
|
<script src="../Scripts/MaskedTextBox.js" type="text/javascript"></script>
|
||
|
<script src="../Scripts/Jquery.geo.js" type="text/javascript"></script>
|
||
|
<script src="../Scripts/fancybox/jquery.fancybox-1.3.4.js" type="text/javascript"></script>
|
||
|
|
||
|
<script type="text/javascript">
|
||
|
var WindowLoadModel = new WindowLoad();
|
||
|
var geoListBox2 = null;
|
||
|
var UserType = '<%= Convert.ToString(Session["UserType"]) %>';
|
||
|
var Model = null;
|
||
|
var AddrModel = null;
|
||
|
var datagrid1 = new nblf.ui.DataGrid("DataGrid1");
|
||
|
var WindowLoadModel = new WindowLoad();
|
||
|
|
||
|
$(function () {
|
||
|
if (UserType == "S"){
|
||
|
window.location = "CompanyList.aspx";
|
||
|
return;
|
||
|
}
|
||
|
WindowLoadModel.ApplicationPath = "../"; //当前网站的根路径
|
||
|
WindowLoadModel.ControlID = "WindowLoad"; //提示框控件ID
|
||
|
WindowLoadModel.Isbgiframe = true; //兼容IE6
|
||
|
WindowLoadModel.Load(); //初始化并且加载样式
|
||
|
$("#txtWeightRate").MaskedTextBox();
|
||
|
//ajax全局变量设置
|
||
|
ajaxInit(WindowLoadModel);
|
||
|
//为表格平均分配剩下的宽度
|
||
|
TableAveColWidth("tb1");
|
||
|
|
||
|
geoListBox2 = new geoListBox("listShen", "listShi", "listQu");
|
||
|
BindCompanyType();
|
||
|
//读取数据
|
||
|
GetModel();
|
||
|
|
||
|
//保存
|
||
|
$("#cmdSave").click(function () {
|
||
|
Save();
|
||
|
});
|
||
|
$("#btn_Cancel").bind("click", $.fancybox.close);
|
||
|
CreateDataGrid();
|
||
|
ReadData();
|
||
|
$("#btn_Cancel").bind("click", $.fancybox.close);
|
||
|
$("#cmdAdd").click(function () {
|
||
|
AddrModel = null;
|
||
|
ShowFancybox();
|
||
|
});
|
||
|
|
||
|
$("#cmdSave1").click(function () {
|
||
|
SaveAddr();
|
||
|
});
|
||
|
$("#btn_sch").click(function () {
|
||
|
ReadData();
|
||
|
});
|
||
|
|
||
|
$("#" + datagrid1.TableID + " input[CommandName]").live("click", function () {
|
||
|
var index = $(this).parentsUntil("tr").parent().attr("index");
|
||
|
AddrModel = datagrid1.Get_Model(index);
|
||
|
var ColName = $(this).attr("CommandName");
|
||
|
if (ColName == "cmdEdit") {
|
||
|
ShowFancybox();
|
||
|
}
|
||
|
if (ColName == "cmdDel") {
|
||
|
Delete(AddrModel.Id);
|
||
|
}
|
||
|
});
|
||
|
|
||
|
|
||
|
});
|
||
|
|
||
|
//#region 读取机构类型
|
||
|
function BindCompanyType() {
|
||
|
var param = new Object();
|
||
|
param.CompanyID = 0;
|
||
|
param.KeyName = "CompanyType";
|
||
|
$.ajax({
|
||
|
url: "../UserService.asmx/GetListBaseCode",
|
||
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
||
|
async: false,
|
||
|
success: function (data) {
|
||
|
if (data.d == null) { alert("机构类型不存在,请先添加机构类型"); return; }
|
||
|
var html = new Sys.StringBuilder();
|
||
|
//html.append("<option value='0'>全部</option>");
|
||
|
$(data.d).each(function () {
|
||
|
html.append("<option value='" + this.ID + "'>" + this.Name + "</option>");
|
||
|
});
|
||
|
$('#listCompanyType').html(html.toString());
|
||
|
}
|
||
|
});
|
||
|
}
|
||
|
//#endregion
|
||
|
//#region 读取数据
|
||
|
function GetModel() {
|
||
|
var param = new Object();
|
||
|
$.ajax({
|
||
|
url: "SysManageService.asmx/Get_JC_CompanyModel",
|
||
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
||
|
success: function (data) {
|
||
|
Model = data.d;
|
||
|
$("#txtCompanyName").val(Model.CompanyName);
|
||
|
$("#txtSimpleName").val(Model.SimpleName);
|
||
|
$("#txtCompanyCode").val(Model.CompanyCode);
|
||
|
$("#txtPhone").val(Model.Phone);
|
||
|
$("#txtFax").val(Model.Fax);
|
||
|
$("#txtChargeName").val(Model.ChargeName);
|
||
|
$("#txtAddress").val(Model.Address);
|
||
|
$("#txtEmail").val(Model.Email);
|
||
|
$("#txtHomePage").val(Model.HomePage);
|
||
|
$("#txtCompanyDesc").val(Model.CompanyDesc);
|
||
|
$("#listCompanyType").val(Model.CompanyType);
|
||
|
$("#txtprovince").val(Model.province);
|
||
|
$("#txtcity").val(Model.city);
|
||
|
$("#txtcounty").val(Model.county);
|
||
|
//$("#txtstreet").val(Model.street);
|
||
|
$("#txtCompanyEnglishName").val(Model.CompanyEnglishName);
|
||
|
$("#txtChargeEnglishName").val(Model.ChargeEnglishName);
|
||
|
$("#txtEnglishAddress").val(Model.EnglishAddress);
|
||
|
if (Model.WeightRate!=null)
|
||
|
$("#txtWeightRate").val(Model.WeightRate);
|
||
|
else
|
||
|
$("#txtWeightRate").val("20");
|
||
|
geoListBox2.Select(0, Model.Shen);
|
||
|
geoListBox2.Select(1, Model.Shi);
|
||
|
geoListBox2.Select(2, Model.Qu);
|
||
|
}
|
||
|
});
|
||
|
}
|
||
|
//#endregion
|
||
|
|
||
|
//#region 保存
|
||
|
function Save() {
|
||
|
if (Model == null) {
|
||
|
Model = new Object();
|
||
|
Model.CompanyID = 0;
|
||
|
}
|
||
|
Model.CompanyName = $("#txtCompanyName").val();
|
||
|
Model.SimpleName = $("#txtSimpleName").val();
|
||
|
Model.CompanyEnglishName = $("#txtCompanyEnglishName").val();
|
||
|
|
||
|
Model.CompanyCode = $("#txtCompanyCode").val();
|
||
|
Model.CompanyType = $("#listCompanyType").val();
|
||
|
Model.CompanyDesc = $("#txtCompanyDesc").val();
|
||
|
Model.HomePage = $("#txtHomePage").val();
|
||
|
Model.Phone = $("#txtPhone").val();
|
||
|
// Model.Fax = $("#txtFax").val();
|
||
|
Model.Address = $("#txtAddress").val();
|
||
|
Model.Email = $("#txtEmail").val();
|
||
|
Model.PostCode = $("#txtPostCode").val();
|
||
|
Model.ChargeName = $("#txtChargeName").val();
|
||
|
Model.ChargeEnglishName = $("#txtChargeEnglishName").val();
|
||
|
Model.WeightRate = $("#txtWeightRate").val();
|
||
|
Model.EnglishAddress = $("#txtEnglishAddress").val();
|
||
|
Model.Shen = $("#listShen").val();
|
||
|
Model.Shi = $("#listShi").val();
|
||
|
Model.Qu = $("#listQu").val();
|
||
|
Model.province = $("#txtprovince").val();
|
||
|
Model.city = $("#txtcity").val();
|
||
|
Model.county = $("#txtcounty").val();
|
||
|
Model.State = 1;
|
||
|
if (Model.CompanyName == "") { alert("机构名称不能为空"); return; }
|
||
|
if (Model.SimpleName == "") { alert("机构简称不能为空"); return; }
|
||
|
if (datagrid1.DataSource == null || datagrid1.DataSource.length == 0)
|
||
|
{ alert("必须添加一个发货地址"); return; }
|
||
|
//if (Model.CompanyCode == "") { alert("代码不能为空"); return; }
|
||
|
//if (Model.CompanyType == null) { alert("请选择类型"); return; }
|
||
|
//if (Model.Shen == "省份") { alert("请选择省"); return; }
|
||
|
//if (Model.Shi == "地级市") { alert("请选择市"); return; }
|
||
|
//if (Model.Qu == "区、县级市、县") { alert("请选择地区"); return; }
|
||
|
//if (Model.Email != "" && JqueryIsEmail(Model.Email) == false) { alert("请输入有效的邮箱地址"); return; }
|
||
|
//if (Model.Phone != "" && JqueryIsPhone(Model.Phone) == false) { alert("请输入有效的电话号码"); return; }
|
||
|
//if (CheckCompanyCode(Model) == false) { alert("代码重复"); return; }
|
||
|
// if (CheckCompanyName(Model) == false) { alert("名称重复"); return; }
|
||
|
// if (CheckSimpleName(Model) == false) { alert("简称重复"); return; }
|
||
|
|
||
|
var param = new Object();
|
||
|
param.Model = Model;
|
||
|
WindowLoadModel.Show();
|
||
|
$.ajax({
|
||
|
url: "SysManageService.asmx/Save_JC_Company",
|
||
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
||
|
success: function (data) {
|
||
|
WindowLoadModel.Hide();
|
||
|
if (Model.CompanyID == 0) ReadData();
|
||
|
alert("保存成功");
|
||
|
}
|
||
|
});
|
||
|
}
|
||
|
//#endregion
|
||
|
//#region 判断代码是否重复
|
||
|
function CheckCompanyCode(Model) {
|
||
|
if (Model.CompanyCode == "") return true;
|
||
|
var param = new Object();
|
||
|
param.CompanyID = Model.CompanyID;
|
||
|
param.CompanyCode = Model.CompanyCode;
|
||
|
var bk = false;
|
||
|
$.ajax({
|
||
|
url: "SysManageService.asmx/CheckCompanyCode",
|
||
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
||
|
async: false,
|
||
|
success: function (data) {
|
||
|
bk = data.d;
|
||
|
}
|
||
|
});
|
||
|
return bk;
|
||
|
}
|
||
|
//#endregion
|
||
|
//#region 判断名称是否重复
|
||
|
function CheckCompanyName(Model) {
|
||
|
if (Model.CompanyName == "") return true;
|
||
|
var param = new Object();
|
||
|
param.CompanyID = Model.CompanyID;
|
||
|
param.CompanyName = Model.CompanyName;
|
||
|
var bk = false;
|
||
|
$.ajax({
|
||
|
url: "SysManageService.asmx/CheckCompanyName",
|
||
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
||
|
async: false,
|
||
|
success: function (data) {
|
||
|
bk = data.d;
|
||
|
}
|
||
|
});
|
||
|
return bk;
|
||
|
}
|
||
|
//#endregion
|
||
|
//#region 判断简称是否重复
|
||
|
function CheckSimpleName(Model) {
|
||
|
if (Model.SimpleName == "") return true;
|
||
|
var param = new Object();
|
||
|
param.CompanyID = Model.CompanyID;
|
||
|
param.SimpleName = Model.SimpleName;
|
||
|
var bk = false;
|
||
|
$.ajax({
|
||
|
url: "SysManageService.asmx/CheckSimpleName",
|
||
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
||
|
async: false,
|
||
|
success: function (data) {
|
||
|
bk = data.d;
|
||
|
}
|
||
|
});
|
||
|
return bk;
|
||
|
}
|
||
|
//#region 弹出
|
||
|
function ShowFancybox() {
|
||
|
$.fancybox({
|
||
|
'autoScale': false,
|
||
|
'transitionIn': 'elastic',
|
||
|
'transitionOut': 'elastic',
|
||
|
'href': '#WindowAdd',
|
||
|
'onStart': function () {
|
||
|
if (AddrModel == null) {
|
||
|
Clear();
|
||
|
} else {
|
||
|
$("#txtSendName1").val(AddrModel.SendName);
|
||
|
$("#txtSendEnglishName1").val(AddrModel.SendEnglishName);
|
||
|
$("#txtAddress1").val(AddrModel.Address);
|
||
|
$("#txtEnglishAddress1").val(AddrModel.EnglishAddress);
|
||
|
$("#txtPhone1").val(AddrModel.Phone);
|
||
|
$("#txtPostCode1").val(AddrModel.PostCode);
|
||
|
$("#txtprovince1").val(AddrModel.province);
|
||
|
$("#txtcity1").val(AddrModel.city);
|
||
|
$("#txtcounty1").val(AddrModel.county);
|
||
|
|
||
|
$("#txtprovincecode1").val(AddrModel.provincecode);
|
||
|
$("#txtcitycode1").val(AddrModel.citycode);
|
||
|
$("#txtcountycode1").val(AddrModel.countycode);
|
||
|
|
||
|
}
|
||
|
}
|
||
|
});
|
||
|
}
|
||
|
//#endregion
|
||
|
//#region 初始化DataGrid
|
||
|
function CreateDataGrid() {
|
||
|
|
||
|
var col = new nblf.ui.DataGridColumn();
|
||
|
col.HeaderText = "中文地址";
|
||
|
col.CellTemplate = "<span>{Bind Address}</span>";
|
||
|
Array.add(datagrid1.Columns, col);
|
||
|
|
||
|
col = new nblf.ui.DataGridColumn();
|
||
|
col.HeaderText = "英文地址";
|
||
|
col.CellTemplate = "<span>{Bind EnglishAddress}</span>";
|
||
|
Array.add(datagrid1.Columns, col);
|
||
|
|
||
|
col = new nblf.ui.DataGridColumn();
|
||
|
col.HeaderText = "电话";
|
||
|
col.CellTemplate = "<span>{Bind Phone}</span>";
|
||
|
Array.add(datagrid1.Columns, col);
|
||
|
|
||
|
col = new nblf.ui.DataGridColumn();
|
||
|
col.HeaderText = "操作";
|
||
|
col.Width = "200px";
|
||
|
col.CellTemplate = "<input CommandName='cmdEdit' class='btnClass dgbtnEdit' type='button' value='编辑'></input> <input CommandName='cmdDel' class='btnClass dgbtnDel' type='button' value='删除'></input>";
|
||
|
Array.add(datagrid1.Columns, col);
|
||
|
|
||
|
datagrid1.IsFixHeader = false;
|
||
|
datagrid1.ShowIndexColumn = false;
|
||
|
datagrid1.AllowPaging = false;
|
||
|
datagrid1.Width = "100%";
|
||
|
datagrid1.SelectMode = nblf.ui.SelectMode.None;
|
||
|
datagrid1.Init();
|
||
|
datagrid1.add_PageIndexChanged(function () { ReadData(); });
|
||
|
|
||
|
}
|
||
|
//#endregion
|
||
|
//#region 读取数据
|
||
|
function ReadData() {
|
||
|
|
||
|
WindowLoadModel.Show();
|
||
|
$.ajax({
|
||
|
url: "SysManageService.asmx/GetPostAddressList",
|
||
|
//data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
||
|
success: function (data) {
|
||
|
WindowLoadModel.Hide();
|
||
|
|
||
|
datagrid1.DataBind(data.d);
|
||
|
}
|
||
|
});
|
||
|
}
|
||
|
//#endregion
|
||
|
//#region 清空
|
||
|
function Clear() {
|
||
|
$("#txtSendName1").val("");
|
||
|
$("#txtSendEnglishName1").val("");
|
||
|
$("#txtAddress1").val("");
|
||
|
$("#txtEnglishAddress1").val("");
|
||
|
$("#txtPhone1").val("");
|
||
|
$("#txtPostCode1").val("");
|
||
|
$("#txtprovince1").val("");
|
||
|
$("#txtcounty1").val("");
|
||
|
$("#txtcity1").val("");
|
||
|
$("#txtprovincecode1").val("");
|
||
|
$("#txtcitycode1").val("");
|
||
|
$("#txtcountycode1").val("");
|
||
|
|
||
|
|
||
|
}
|
||
|
//#endregion
|
||
|
//#region 删除
|
||
|
function Delete(Id) {
|
||
|
if (window.confirm("确定要删除吗?") == false) return;
|
||
|
var param = new Object();
|
||
|
param.Id = Id;
|
||
|
WindowLoadModel.Show();
|
||
|
$.ajax({
|
||
|
url: "SysManageService.asmx/DeletePostAddress",
|
||
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
||
|
success: function (data) {
|
||
|
WindowLoadModel.Hide();
|
||
|
ReadData(); //刷新DataGrid
|
||
|
}
|
||
|
});
|
||
|
}
|
||
|
//#endregion
|
||
|
|
||
|
|
||
|
//#endregion
|
||
|
//#region 保存
|
||
|
function SaveAddr() {
|
||
|
if (AddrModel == null) {
|
||
|
AddrModel = new Object();
|
||
|
AddrModel.Id = 0;
|
||
|
}
|
||
|
AddrModel.SendName = $("#txtSendName1").val();
|
||
|
AddrModel.SendEnglishName = $("#txtSendEnglishName1").val();
|
||
|
AddrModel.Address = $("#txtAddress1").val();
|
||
|
AddrModel.EnglishAddress = $("#txtEnglishAddress1").val();
|
||
|
AddrModel.Phone = $("#txtPhone1").val();
|
||
|
AddrModel.PostCode = $("#txtPostCode1").val();
|
||
|
AddrModel.province = $("#txtprovince1").val();
|
||
|
AddrModel.city = $("#txtcity1").val();
|
||
|
AddrModel.county = $("#txtcounty1").val();
|
||
|
// AddrModel.street = $("#txtstreet").val();
|
||
|
AddrModel.provincecode = $("#txtprovincecode1").val();
|
||
|
AddrModel.citycode = $("#txtcitycode1").val();
|
||
|
AddrModel.countycode = $("#txtcountycode1").val();
|
||
|
//AddrModel.streetcode = $("#txtstreetcode").val();
|
||
|
|
||
|
if (AddrModel.Address == "") { alert("地址(中文)不能为空"); $("#txtAddress1").focus(); return; }
|
||
|
if (AddrModel.EnglishAddress == "") { alert("地址(英文)不能为空"); $("#txtEnglishAddress1").focus(); return; }
|
||
|
if (AddrModel.PostCode == "") { alert("邮编不能为空"); $("#txtPostCode1").focus(); return; }
|
||
|
if (AddrModel.Phone == "") { alert("电话不能为空"); $("#txtPhone1").focus(); return; }
|
||
|
if (AddrModel.SendName == "") { alert("发货人(中文)不能为空"); $("#txtSendName1").focus(); return; }
|
||
|
if (AddrModel.SendEnglishName == "") { alert("发货人(英文)不能为空"); $("#txtSendEnglishName1").focus(); return; }
|
||
|
var param = new Object();
|
||
|
param.Model = AddrModel;
|
||
|
WindowLoadModel.Show();
|
||
|
$.ajax({
|
||
|
url: "SysManageService.asmx/SavePostAddress",
|
||
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
||
|
success: function (data) {
|
||
|
WindowLoadModel.Hide();
|
||
|
ReadData();
|
||
|
alert("保存成功");
|
||
|
$.fancybox.close();
|
||
|
}
|
||
|
});
|
||
|
}
|
||
|
//#endregion
|
||
|
</script>
|
||
|
</head>
|
||
|
<body style="font-size: 12px; background-color: #FFFFFF;">
|
||
|
<div style="display: none;">
|
||
|
<div id="WindowAdd" title="编辑" style="width: 550px; height: 300px;">
|
||
|
<table id="tb2" class="tableAll" style="width: 99%;">
|
||
|
<colgroup>
|
||
|
<col style="width: 80px;" />
|
||
|
<col style="30%" />
|
||
|
<col style="width: 80px;" />
|
||
|
<col />
|
||
|
</colgroup>
|
||
|
<tr>
|
||
|
<td class="f1"><span style="color: Red;">*</span>地址(中文):
|
||
|
</td>
|
||
|
<td colspan="3">
|
||
|
<input id="txtAddress1" type="text" class="editTextbox" style="width: 99%;" />
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="f1"><span style="color: Red;">*</span>地址(英文):
|
||
|
</td>
|
||
|
<td colspan="3">
|
||
|
<input id="txtEnglishAddress1" type="text" class="editTextbox" style="width: 99%;" />
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="f1"><span style="color: Red;">*</span>发货人(中文):
|
||
|
</td>
|
||
|
<td>
|
||
|
<input id="txtSendName1" type="text" class="editTextbox" style="width: 99%;" />
|
||
|
</td>
|
||
|
<td class="f1"><span style="color: Red;">*</span>发货人(英文):
|
||
|
</td>
|
||
|
<td>
|
||
|
<input id="txtSendEnglishName1" type="text" class="editTextbox" style="width: 99%;" />
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="f1"><span style="color: Red;">*</span>电话:
|
||
|
</td>
|
||
|
<td>
|
||
|
<input id="txtPhone1" type="text" class="editTextbox" style="width: 99%;" />
|
||
|
</td>
|
||
|
<td class="f1"><span style="color: Red;">*</span>邮编:
|
||
|
</td>
|
||
|
<td>
|
||
|
<input id="txtPostCode1" type="text" class="editTextbox" style="width: 99%;" />
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="f1">省/市/区:
|
||
|
</td>
|
||
|
<td colspan="3">
|
||
|
<input id="txtprovince1" type="text" class="editTextbox" style="width: 120px;" />省 <input id="txtcity1" type="text" class="editTextbox" style="width: 120px;" />市 <input id="txtcounty1" type="text" class="editTextbox" style="width: 120px;" />区
|
||
|
</td>
|
||
|
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="f1">省/市/区(代码:
|
||
|
</td>
|
||
|
<td colspan="3">
|
||
|
<input id="txtprovincecode1" type="text" class="editTextbox" style="width: 120px;" />省 <input id="txtcitycode1" type="text" class="editTextbox" style="width: 120px;" />市 <input id="txtcountycode1" type="text" class="editTextbox" style="width: 120px;" />区
|
||
|
</td>
|
||
|
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td colspan="4" align="center">
|
||
|
<input id="cmdSave1" class="btnClass btnClassSave" type="button" value="保存" /> <input
|
||
|
id="btn_Cancel" type="button" class="btnClass btnClassClose" value="关 闭" />
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div style="font-size: 12px; background: #fff url(../image/bb6.gif) no-repeat; height: 16px; padding: 3px 0px 0px 20px; width: 60px; margin-bottom: 5px;">机构信息</div>
|
||
|
<table id="tb1" class="tableAll" style="width: 100%;">
|
||
|
<colgroup>
|
||
|
<col style="width: 80px;" />
|
||
|
<col />
|
||
|
<col style="width: 80px;" />
|
||
|
<col />
|
||
|
<col style="width: 80px;" />
|
||
|
<col />
|
||
|
</colgroup>
|
||
|
<tr>
|
||
|
<td class="f1"><span style="color: Red;">*</span>公司名称:
|
||
|
</td>
|
||
|
<td colspan="5">
|
||
|
<input id="txtCompanyName" type="text" class="editTextbox" style="width: 99%;" />
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="f1"><span style="color: Red;">*</span>公司简称:</td>
|
||
|
<td colspan="5">
|
||
|
<input id="txtSimpleName" type="text" class="editTextbox" style="width: 99%;" maxlength="8" />
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="f1">公司英文名:</td>
|
||
|
<td colspan="5">
|
||
|
<input id="txtCompanyEnglishName" type="text" class="editTextbox" style="width: 99%;" /></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="f1"><span style="color: Red;">*</span>代码:
|
||
|
</td>
|
||
|
<td>
|
||
|
<input id="txtCompanyCode" type="text" class="editTextbox" style="width: 99%;" />
|
||
|
</td>
|
||
|
<td class="f1"><span style="color: Red;">*</span>类型:
|
||
|
</td>
|
||
|
<td>
|
||
|
<select id="listCompanyType" class="selectClass" style="width: 99%;">
|
||
|
</select>
|
||
|
</td>
|
||
|
|
||
|
<td class="f1">电话:</td>
|
||
|
<td>
|
||
|
<input id="txtPhone" type="text" class="editTextbox" style="width: 99%;" />
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="f1">负责人:
|
||
|
</td>
|
||
|
<td>
|
||
|
<input id="txtChargeName" type="text" class="editTextbox" style="width: 99%;" /></td>
|
||
|
<td class="f1">负责人(英文):</td>
|
||
|
<td>
|
||
|
<input id="txtChargeEnglishName" type="text" class="editTextbox" style="width: 99%;" />
|
||
|
</td>
|
||
|
<td class="f1">邮编:</td>
|
||
|
<td>
|
||
|
<input id="txtPostCode" type="text" class="editTextbox" style="width: 99%;" />
|
||
|
</td>
|
||
|
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="f1"><span style="color: Red;">*</span>重量偏差校验比例:</td>
|
||
|
<td colspan="5">
|
||
|
<input id="txtWeightRate" type="text" class="editTextbox" style="width: 80px;" />% <font color="red">注:这个用于发货扫描的时候验证货物重量的偏差比例</font></td>
|
||
|
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="f1">邮箱:</td>
|
||
|
<td colspan="5">
|
||
|
<input id="txtEmail" type="text" class="editTextbox" style="width: 99%;" />
|
||
|
</td>
|
||
|
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="f1">地址(中文):
|
||
|
</td>
|
||
|
<td colspan="5">
|
||
|
<input id="txtAddress" type="text" class="editTextbox" style="width: 99%;" />
|
||
|
</td>
|
||
|
</tr>
|
||
|
|
||
|
<tr>
|
||
|
<td class="f1">地址(英文):</td>
|
||
|
<td colspan="5">
|
||
|
<input id="txtEnglishAddress" type="text" class="editTextbox" style="width: 99%;" /></td>
|
||
|
</tr>
|
||
|
|
||
|
<tr>
|
||
|
<td class="f1">公司主页
|
||
|
</td>
|
||
|
<td colspan="5">
|
||
|
<input id="txtHomePage" type="text" class="editTextbox" style="width: 99%;" />
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr style="display:none">
|
||
|
<td class="f1"><span style="color: Red;">*</span>地区
|
||
|
</td>
|
||
|
<td colspan="5">
|
||
|
<select id="listShen" class="selectClass" style="width: 100px;"></select>
|
||
|
省
|
||
|
<select id="listShi" class="selectClass" style="width: 100px;"></select>
|
||
|
市
|
||
|
<select id="listQu" class="selectClass" style="width: 100px;"></select>
|
||
|
区
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="f1">省市区代码:</td>
|
||
|
<td colspan="5">
|
||
|
省: <input id="txtprovince" type="text" class="editTextbox" style="width: 100px;" />市:<input id="txtcity" type="text" class="editTextbox" style="width: 100px;" />区:<input id="txtcounty" type="text" class="editTextbox" style="width: 100px;" /></td>
|
||
|
</tr>
|
||
|
<tr style="display:none">
|
||
|
<td class="f1">公司介绍:
|
||
|
</td>
|
||
|
<td colspan="5">
|
||
|
<textarea id="txtCompanyDesc" rows="15" class="multieditTextbox" style="width: 100%;"></textarea>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr > <td class="f1">发货地址:
|
||
|
</td>
|
||
|
<td colspan="5">
|
||
|
<input id="cmdAdd" class="btnClass btnClassAdd" type="button" value="新增发货地址" /> <font color="red">注:加完地址后请去物流快递页面选择物流的发货地址</font></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td valign="top" colspan="6">
|
||
|
<div id="DataGrid1" class="DataGridStyle"></div>
|
||
|
</td>
|
||
|
<tr>
|
||
|
<td colspan="6" align="center">
|
||
|
<input id="cmdSave" class="btnClass btnClassSave" type="button" value="保存" />
|
||
|
<input id="cmdBack" class="btnClass btnClassBack" type="button" value="返回" />
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</body>
|
||
|
</html>
|