Commit 1a9b5b9b authored by 全洪江's avatar 全洪江

前端页面完成

Signed-off-by: 全洪江's avatarHongjiang <hongjiang.quan@topsunit.com>
parent 8bc16726
......@@ -8,26 +8,20 @@ $(document).ready(function () {
initializeUI();
loadContactListGrid();
bindEvent();
// loadBaoshenEmailListGrid();
// loadCustomerEmailListGrid();
// loadCustomerRelatedListGrid();
// loadCustomerPayInfoListGrid();
loadBaoshenEmailListGrid();
loadCustomerEmailListGrid();
loadCustomerRelatedListGrid();
loadCustomerPayInfoListGrid();
});
function initializeUI() {
UICtrl.layout("#layout", {leftWidth: 3});
}
function initializeTab() {
$('#customerTab').tab({
onClick:function(item){
var _id=item.data('id');
var gm=UICtrl.getGridManager('#'+_id);
UICtrl.onGridResize(gm);
}
})
$('#customerTab').tab();
$('#emailTab').tab()
}
......@@ -75,7 +69,7 @@ function loadContactListGrid() {
usePager: true,
toolbar: toolbarOptions,
width: "100%",
height: "100%",
height: "60%",
heightDiff: -8,
checkbox: true,
fixedCellHeight: true,
......@@ -130,12 +124,12 @@ function loadBaoshenEmailListGrid() {
],
dataAction: "server",
url: web_app.name + '/customerDebtContact/slicedCustomerDebtContactList.ajax',
parms: {customerId: $("#customerId").val(),customerEmailType: 0},
parms: {customerId: $("#customerId").val(), customerEmailType: 0},
pageSize: 10,
usePager: true,
toolbar: toolbarOptions,
width: "100%",
height: "100%",
height: "60%",
heightDiff: -8,
checkbox: true,
fixedCellHeight: true,
......@@ -160,7 +154,7 @@ function loadCustomerEmailListGrid() {
customerEmailManage = UICtrl.grid("#customerEmailListGrid", {
columns: [
{
display: "邮箱地址", name: "customerEmail", width: 200, minWidth: 60, type: "string", align: "left",
display: "邮箱地址", name: "customerEmail", width: 300, minWidth: 60, type: "string", align: "left",
editor: {
required: true, type: "select",
data: {
......@@ -180,18 +174,18 @@ function loadCustomerEmailListGrid() {
},
}
},
{display: "联系人", name: "customerContact", width: 200, minWidth: 60, type: "string", align: "left"},
{display: "开启邮件发送", name: "sendEmail", width: 200, minWidth: 60, type: "string", align: "left"},
{display: "创建人", name: "createdByName", width: 200, minWidth: 60, type: "string", align: "left"}
{display: "联系人", name: "customerContact", width: 300, minWidth: 60, type: "string", align: "left"},
{display: "开启邮件发送", name: "sendEmail", width: 300, minWidth: 60, type: "string", align: "left"},
{display: "创建人", name: "createdByName", width: 300, minWidth: 60, type: "string", align: "left"}
],
dataAction: "server",
url: web_app.name + '/customerDebtContact/slicedCustomerDebtContactList.ajax',
parms: {customerId: $("#customerId").val(),customerEmailType: 1},
parms: {customerId: $("#customerId").val(), customerEmailType: 1},
pageSize: 10,
usePager: true,
toolbar: toolbarOptions,
width: "100%",
height: "100%",
height: "60%",
heightDiff: -8,
checkbox: true,
fixedCellHeight: true,
......@@ -216,7 +210,12 @@ function loadCustomerRelatedListGrid() {
customerRelatedListGrid = UICtrl.grid("#customerRelatedListGrid", {
columns: [
{
display: "关联客户编码", name: "customerCodeRelated", width: 200, minWidth: 60, type: "string", align: "left",
display: "关联客户编码",
name: "customerCodeRelated",
width: 200,
minWidth: 60,
type: "string",
align: "left",
editor: {
required: true, type: "select",
data: {
......@@ -234,8 +233,22 @@ function loadCustomerRelatedListGrid() {
},
}
},
{display: "关联客户简称", name: "customerShortNameRelated", width: 200, minWidth: 60, type: "string", align: "left"},
{display: "关联客户全称", name: "customerNameRelated", width: 200, minWidth: 60, type: "string", align: "left"},
{
display: "关联客户简称",
name: "customerShortNameRelated",
width: 200,
minWidth: 60,
type: "string",
align: "left"
},
{
display: "关联客户全称",
name: "customerNameRelated",
width: 200,
minWidth: 60,
type: "string",
align: "left"
},
{display: "录入人", name: "createdByName", width: 200, minWidth: 60, type: "string", align: "left"},
{display: "录入时间", name: "createdDate", width: 200, minWidth: 60, type: "string", align: "left"},
......@@ -247,7 +260,7 @@ function loadCustomerRelatedListGrid() {
usePager: true,
toolbar: toolbarOptions,
width: "100%",
height: "100%",
height: "40%",
heightDiff: -8,
checkbox: true,
fixedCellHeight: true,
......@@ -275,7 +288,12 @@ function loadCustomerPayInfoListGrid() {
customerPayInfoListGrid = UICtrl.grid("#customerPayInfoListGrid", {
columns: [
{
display: "支付方户名", name: "customerPayAccountName", width: 200, minWidth: 60, type: "string", align: "left",
display: "支付方户名",
name: "customerPayAccountName",
width: 200,
minWidth: 60,
type: "string",
align: "left",
editor: {
required: true, type: "select",
data: {
......@@ -307,7 +325,7 @@ function loadCustomerPayInfoListGrid() {
usePager: true,
toolbar: toolbarOptions,
width: "100%",
height: "100%",
height: "40%",
heightDiff: -8,
checkbox: true,
fixedCellHeight: true,
......@@ -328,10 +346,12 @@ function bindEvent() {
closeDispatchTabItem();
})
}
//右上角的保存控件
function saveData() {
}
function closeDispatchTabItem() {
UICtrl.closeCurrentTab();
}
......@@ -47,7 +47,8 @@
<x:inputC name="customerWorkTime" label="客户工作时间" wrapper="date" labelCol="1" fieldCol="2"/>
<x:inputC name="customerEnName" label="英文名称" labelCol="1" fieldCol="2"/>
<x:inputC name="customerEnShortName" label="英文名简称" labelCol="1" fieldCol="2"/>
<x:inputC name="provinceInfo" label="所属地区" maxLength="32" labelCol="1" fieldCol="2" readonly="true"/>
<x:inputC name="provinceInfo" label="所属地区" maxLength="32" labelCol="1" fieldCol="2"
readonly="true"/>
<x:inputC name="customerLevel" label="客户等级" maxLength="32" labelCol="1" fieldCol="2"/>
<x:inputC name="customerFactoryCode" label="工厂代号" maxLength="32" labelCol="1" fieldCol="2"/>
<x:inputC name="customerAddress" label="地址" maxLength="32" labelCol="1" fieldCol="2"/>
......@@ -61,16 +62,42 @@
fieldCol="2"/>
<x:inputC name="nationalTaxRegistrationNumber" label="国税注册号" maxLength="32" labelCol="1"
fieldCol="2"/>
<div id="contact" position="center">
<x:title title="联系人列表" name="group"/>
<div id="contactListGrid" style="margin: 2px;">
<hr>
</div>
</div>
</div>
<div class="layout" id="customerDebtContactDiv">
<div id='emailTab' style="margin: 0px;">
<div class="ui-tab-links">
<ul id="email_ul">
<li id="baoshenEmailListForm" divid="baoshenEmailListGrid">宝绅邮箱</li>
<li id="customerEmailListForm" divid="customerEmailListGrid">客户邮箱</li>
<li id="baoshenEmailListForm" divid="baoshenEmailListDiv">宝绅邮箱</li>
<li id="customerEmailListForm" divid="customerEmailListDiv">客户邮箱</li>
</ul>
</div>
<div class="ui-tab-content" style="padding: 2px; padding-right: 0;">
<div class="layout" id="baoshenEmailListDiv">
<div id="baoshenEmailList" position="center">
<x:title title="宝绅邮箱列表" name="group"/>
<div id="baoshenEmailListGrid" style="margin: 2px;">
<hr>
</div>
</div>
</div>
<div class="layout" id="customerEmailListDiv">
<div id="customerEmailList" position="center">
<x:title title="客户邮箱列表" name="group"/>
<div id="customerEmailListGrid" style="margin: 2px;">
<hr>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="layout" id="customerOtherInfoDiv">
<div id="customerRelated" position="center">
......@@ -88,81 +115,7 @@
</div>
</div>
<%-- <div><h3>客户基本信息</h3></div>--%>
<%-- <div style="margin: 10px;">--%>
<%-- <div class="hg-form-cols">--%>
<%-- <x:hidden name="customerId"/>--%>
<%-- <x:hidden name="customerBankId"/>--%>
<%-- <x:inputC name="customerCode" label="客户编码" labelCol="1" fieldCol="2"/>--%>
<%-- <x:inputC name="customerName" label="客户全称" labelCol="1" fieldCol="2"/>--%>
<%-- <x:inputC name="customerShortName" label="客户简称" labelCol="1" fieldCol="2"/>--%>
<%-- <x:inputC name="customerWorkTime" label="客户工作时间" wrapper="date" labelCol="1" fieldCol="2"/>--%>
<%-- <x:inputC name="customerEnName" label="英文名称" labelCol="1" fieldCol="2"/>--%>
<%-- <x:inputC name="customerEnShortName" label="英文名简称" labelCol="1" fieldCol="2"/>--%>
<%-- <x:inputC name="provinceInfo" label="所属地区" maxLength="32" labelCol="1" fieldCol="2" readonly="true"/>--%>
<%-- <x:inputC name="customerLevel" label="客户等级" maxLength="32" labelCol="1" fieldCol="2"/>--%>
<%-- <x:inputC name="customerFactoryCode" label="工厂代号" maxLength="32" labelCol="1" fieldCol="2"/>--%>
<%-- <x:inputC name="customerAddress" label="地址" maxLength="32" labelCol="1" fieldCol="2"/>--%>
<%-- <x:inputC name="customerGroup" label="所属集团" maxLength="32" labelCol="1" fieldCol="2"/>--%>
<%-- <x:inputC name="customerZipCode" label="邮编" maxLength="32" labelCol="1" fieldCol="2"/>--%>
<%-- <x:inputC name="customerBankDeposit" label="开户银行" maxLength="32" labelCol="1" fieldCol="2"/>--%>
<%-- <x:inputC name="customerAccountNo" label="银行账户" maxLength="32" labelCol="1" fieldCol="2"/>--%>
<%-- <x:inputC name="customerAccountName" label="户名" maxLength="32" labelCol="1" fieldCol="2"/>--%>
<%-- <x:inputC name="customerCorporation" label="公司法人" maxLength="32" labelCol="1" fieldCol="2"/>--%>
<%-- <x:inputC name="businessRegistrationNumber" label="工商注册号" maxLength="32" labelCol="1" fieldCol="2"/>--%>
<%-- <x:inputC name="nationalTaxRegistrationNumber" label="国税注册号" maxLength="32" labelCol="1" fieldCol="2"/>--%>
<%-- </div>--%>
<%-- <div id="contact" position="center">--%>
<%-- <x:title title="客户列表" name="group"/>--%>
<%-- <div id="contactListGrid" style="margin: 2px;">--%>
<%-- <hr>--%>
<%-- </div>--%>
<%-- </div>--%>
<%-- </div>--%>
<%-- <div class="blank_div clearfix"></div>--%>
<%-- <div><h3>催货通知邮箱</h3>--%>
<%-- <div id='pageTab' style="margin: 0px;">--%>
<%-- <div class="ui-tab-links">--%>
<%-- <ul id="menu_ul">--%>
<%-- <li id="detailForm" divid="baoshenEmailListGrid">宝绅邮箱</li>--%>
<%-- <li id="lossForm" divid="customerEmailListGrid">客户邮箱</li>--%>
<%-- </ul>--%>
<%-- </div>--%>
<%-- </div>--%>
<%-- <div id="baoshenEmail" position="center">--%>
<%-- <x:title title="宝绅邮箱" name="group"/>--%>
<%-- <div id="baoshenEmailListGrid" style="margin: 2px;">--%>
<%-- <hr>--%>
<%-- </div>--%>
<%-- </div>--%>
<%-- <div id="customerEmail" position="center">--%>
<%-- <x:title title="客户邮箱" name="group"/>--%>
<%-- <div id="customerEmailListGrid" style="margin: 2px;">--%>
<%-- <hr>--%>
<%-- </div>--%>
<%-- </div>--%>
<%-- </div>--%>
<%-- <div class="blank_div clearfix"></div>--%>
<%-- <div><h3>其他信息</h3>--%>
<%-- <div id="customerRelated" position="center">--%>
<%-- <x:title title="客户关联关系信息" name="group"/>--%>
<%-- <div id="customerRelatedListGrid" style="margin: 2px;">--%>
<%-- <hr>--%>
<%-- </div>--%>
<%-- </div>--%>
<%-- <div id="customerPayInfo" position="center">--%>
<%-- <x:title title="客户付款信息" name="group"/>--%>
<%-- <div id="customerPayInfoListGrid" style="margin: 2px;">--%>
<%-- <hr>--%>
<%-- </div>--%>
<%-- </div>--%>
<%-- </div>--%>
</div>
</form>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment