Переглянути джерело

customer report & orderImagePanel under msImagePanel

master
Anna Ho 3 роки тому
джерело
коміт
8c610838ba
6 змінених файлів з 44 додано та 3 видалено
  1. +6
    -0
      src/main/webapp/resources/js/locale-zh_CN.js
  2. +6
    -0
      src/main/webapp/resources/js/locale-zh_TW.js
  3. +13
    -2
      src/main/webapp/resources/js/view/Customer/CustomerContainer.js
  4. +13
    -1
      src/main/webapp/resources/js/view/Order/OrderForm.js
  5. +4
    -0
      src/main/webapp/resources/js/view/Order/OrderWindow.js
  6. +2
    -0
      src/main/webapp/resources/js/view/Report/Report_CustomerContainer.js

+ 6
- 0
src/main/webapp/resources/js/locale-zh_CN.js Переглянути файл

@@ -172,6 +172,12 @@ App.loadLocale_CH({
"Orders Report":"订单报告",
"Outstanding Report":"未付报告",
"Customer Report":"客户报告",
"Creation Date":"创建日期",
"Customer (Eng)":"客户(英)",
"Customer (Chinese)":"客户(中)",
"Phone 1":"电话 1",
"Phone 2":"电话 2",
"Order Amount (Total)":"订单金额(总)",

"Current Password":"旧密码",
"New Password":"新密码",


+ 6
- 0
src/main/webapp/resources/js/locale-zh_TW.js Переглянути файл

@@ -173,6 +173,12 @@ App.loadLocale_ZH({
"Orders Report":"訂單報告",
"Outstanding Report":"未付報告",
"Customer Report":"客戶報告",
"Creation Date":"創建日期",
"Customer (Eng)":"客戶(英)",
"Customer (Chinese)":"客戶(中)",
"Phone 1":"電話 1",
"Phone 2":"電話 2",
"Order Amount (Total)":"訂單金額(總)",

"Current Password":"舊密碼",
"New Password":"新密碼",


+ 13
- 2
src/main/webapp/resources/js/view/Customer/CustomerContainer.js Переглянути файл

@@ -1,7 +1,9 @@

Ext.define('App.view.CustomerContainer', {
extend: 'Ext.container.Container',
xtype: 'customerContainer',
alias: 'widget.customerContainer',
itemId: 'customerContainer',
layout: 'vbox',
defaults: {
width: '100%',
@@ -203,11 +205,20 @@ Ext.define('App.view.CustomerContainer', {
}
]
});

me.callParent(arguments);
}
/*
onScan.attachTo(document,{
suffixKeyCodes: [13],
reactToPaste: false,
onScan: function(sCode,iQty ) {
alert(iQty + 'x ' + sCode);
}
});
*/
},
});


Ext.define('App.view.CustomerGrid', {
extend: 'Ext.grid.Panel',
alias: 'widget.customerGrid',


+ 13
- 1
src/main/webapp/resources/js/view/Order/OrderForm.js Переглянути файл

@@ -499,7 +499,19 @@ Ext.define("App.view.OrderForm", {
scope: this
});
}
}
},
{
xtype: 'label',
width: '100%',
html: '<br/><hr />',
},
{
xtype: 'photoPanel',
itemId: 'orderPhotoPanel2',
width: '100%',
refType: 'order',
url: App.url("/order/image-list.json"),
},
]
});



+ 4
- 0
src/main/webapp/resources/js/view/Order/OrderWindow.js Переглянути файл

@@ -81,18 +81,21 @@ Ext.define("App.view.OrderWindow", {
orderPaymentGrid = me.down("orderPaymentGrid"),
orderMeetingGrid = me.down("orderMeetingGrid"),
orderPhotoPanel = me.down("#orderPhotoPanel");
orderPhotoPanel2 = me.down("#orderPhotoPanel2");
orderLogGrid = me.down("orderLogGrid");
orderItemGrid.params = params;
orderPaymentGrid.params = params;
orderMeetingGrid.params = params;
orderPhotoPanel.params = params;
orderPhotoPanel2.params = params;
orderLogGrid.params = params;
orderItemGrid.setDisabled(false);
orderPaymentGrid.setDisabled(false);
orderMeetingGrid.setDisabled(false);
orderPhotoPanel.setDisabled(false);
orderPhotoPanel2.setDisabled(false);
orderLogGrid.setDisabled(false);
refreshBtn.setHidden(false);
@@ -100,6 +103,7 @@ Ext.define("App.view.OrderWindow", {
orderPaymentGrid.loadStore(formData.id);
orderMeetingGrid.loadStore(formData.id);
orderPhotoPanel.loadPanel(formData.id);
orderPhotoPanel2.loadPanel(formData.id);
orderLogGrid.loadStore(formData.id);

orderItemGrid.reconfigure(orderItemGrid.getStore());


+ 2
- 0
src/main/webapp/resources/js/view/Report/Report_CustomerContainer.js Переглянути файл

@@ -22,6 +22,8 @@ Ext.define('App.view.Report_CustomerContainer', {
});
},



params: {},
initComponent: function() {
var me = this,


Завантаження…
Відмінити
Зберегти