Bug #2863 » ViewUploadJurnal.js
1 |
Ext.define('MinovaES.view.UploadERP.ViewUploadJurnal', { |
---|---|
2 |
extend: 'Ext.panel.Panel', |
3 |
alias: 'widget.UploadERP-ViewUploadJurnal', |
4 |
requires: [ |
5 |
'MinovaES.controller.UploadERP.CtrlUploadJurnal', |
6 |
],
|
7 |
controller: 'CtrlUploadJurnal', |
8 |
renderTo: 'uploadMD', |
9 |
anchor: '50%', |
10 |
initComponent: function () { |
11 |
var me = this; |
12 |
var LangId = localStorage.LangId; |
13 |
Ext.applyIf(me, { |
14 |
items: [{ |
15 |
xtype: 'form', |
16 |
bodyPadding: 30, |
17 |
collapsible: true, |
18 |
name: 'ImportMasterData', |
19 |
title: 'Import Journal', |
20 |
height: 250, |
21 |
buttons: [{ |
22 |
xtype: 'button', |
23 |
text: 'Import', |
24 |
action: 'Import', |
25 |
name: 'Import', |
26 |
},{
|
27 |
xtype: 'button', |
28 |
text: 'Download Template', |
29 |
action: 'template', |
30 |
name: 'DownloadTemplate', |
31 |
}],
|
32 |
items: [ |
33 |
/*{
|
34 |
xtype: "minovacombobox",
|
35 |
fieldLabel: "Table",
|
36 |
name: "Table",
|
37 |
tableName: "PCMEPMDLIST",
|
38 |
param: 'ModuleType[equal]UPL,Language[equal]' + LangId,
|
39 |
displayField: 'LabelName',
|
40 |
valueField: 'TableName',
|
41 |
}, */
|
42 |
{
|
43 |
xtype: "minovacombo", |
44 |
fieldLabel: "Company ID", |
45 |
name: "CompanyID", |
46 |
tableName: "PCMEPCOMPID", |
47 |
displayField: 'CompanyDescription', |
48 |
valueField: 'CompanyID', |
49 |
anchor: '40%', |
50 |
labelWidth : 110, |
51 |
},
|
52 |
{
|
53 |
xtype: "minovacombo", |
54 |
fieldLabel: "Fiscal Year", |
55 |
name: 'FiscalYearRun', |
56 |
tableName: 'PCMEPYEAR', |
57 |
valueField: 'Year', |
58 |
displayField:'Year', |
59 |
anchor: '20%', |
60 |
labelWidth : 110, |
61 |
hidden: true |
62 |
}, { |
63 |
xtype: "minovacombo", |
64 |
fieldLabel: "Fiscal Period", |
65 |
name: 'FiscalPeriodRun', |
66 |
tableName: 'PCMFILOFISCALYEARPERIOD', |
67 |
valueField: 'FiscalPeriod', |
68 |
displayField:'FiscalPeriod', |
69 |
anchor: '20%', |
70 |
labelWidth : 110, |
71 |
hidden: true |
72 |
},
|
73 |
{
|
74 |
xtype: 'hidden', |
75 |
name: 'Table', |
76 |
value: 'PTRFINANCEHEAD', |
77 |
},
|
78 |
{
|
79 |
xtype: 'filefield', |
80 |
name: 'File', |
81 |
fieldLabel: 'File', |
82 |
emptyText: 'Select Excel File to upload', |
83 |
allowBlank: false, |
84 |
anchor: '50%', |
85 |
buttonText: 'Browse', |
86 |
labelWidth : 110, |
87 |
}, { |
88 |
xtype: 'radiogroup', |
89 |
fieldLabel: '', |
90 |
margin: '0 0 0 115', |
91 |
anchor: '30%', |
92 |
columns: 2, |
93 |
name: 'UploadExecute', |
94 |
items: [{ |
95 |
inputValue: '0', |
96 |
boxLabel: 'Simulate' |
97 |
}, { |
98 |
inputValue: '1', |
99 |
boxLabel: 'Execute' |
100 |
}],
|
101 |
}, { |
102 |
xtype: 'checkboxfield', |
103 |
margin: '0 0 0 120', |
104 |
boxLabel: 'Force Save Data', |
105 |
name: 'ForceSaveData', |
106 |
inputValue: '1', |
107 |
}],
|
108 |
}, { |
109 |
items: [{ |
110 |
xtype: 'panel', |
111 |
title: 'Result', |
112 |
//layout: 'fit',
|
113 |
collapsible: true, |
114 |
name: 'PanelResult' |
115 |
}, { |
116 |
xtype: "fieldset", |
117 |
title: "Summary", |
118 |
width: 1052, |
119 |
items: [{ |
120 |
xtype: 'displayfield', |
121 |
name: 'Success', |
122 |
fieldLabel: 'Success' |
123 |
}, { |
124 |
xtype: 'displayfield', |
125 |
name: 'Error', |
126 |
fieldLabel: 'Error' |
127 |
}, { |
128 |
xtype: 'displayfield', |
129 |
name: 'Warning', |
130 |
fieldLabel: 'Warning' |
131 |
}]
|
132 |
}, { |
133 |
items: [ |
134 |
{
|
135 |
xtype: 'minovagrid1', |
136 |
height: 300, |
137 |
id: 'gridresultuploadMD', |
138 |
tableName: 'PDSUPLOADGRID', |
139 |
storename: 'storeresultupload', |
140 |
name: 'gridresultuploadMD', |
141 |
//margin: '0 0 10 0',
|
142 |
autoLoad: false, |
143 |
pagesize: 10000, |
144 |
}
|
145 |
//{
|
146 |
//xtype: 'grid',
|
147 |
//height: 300,
|
148 |
//id: 'gridresultuploadMD',
|
149 |
//name: 'gridresultuploadMD',
|
150 |
//store: Ext.create('Ext.data.Store', {
|
151 |
// storeId: 'storeresultuploadtm',
|
152 |
// fields: ['RecordID']
|
153 |
//}),
|
154 |
//columns: [{
|
155 |
// xtype: 'rownumberer',
|
156 |
// header: 'No'
|
157 |
//}, {
|
158 |
// header: 'Record ID',
|
159 |
// dataIndex: 'RecordID',
|
160 |
// sortable: false,
|
161 |
// width: 200,
|
162 |
// filter: {
|
163 |
// type: 'string',
|
164 |
// itemDefaults: {
|
165 |
// emptyText: 'Search for...'
|
166 |
// }
|
167 |
// },
|
168 |
// editor: {
|
169 |
// itemId: 'RecordID',
|
170 |
// name: 'RecordID',
|
171 |
// }
|
172 |
//}, {
|
173 |
// header: 'Status',
|
174 |
// dataIndex: 'Status',
|
175 |
// sortable: false,
|
176 |
// width: 200,
|
177 |
// filter: {
|
178 |
// type: 'string',
|
179 |
// itemDefaults: {
|
180 |
// emptyText: 'Search for...'
|
181 |
// }
|
182 |
// },
|
183 |
// editor: {
|
184 |
// itemId: 'Status',
|
185 |
// name: 'Status',
|
186 |
// }
|
187 |
//}, {
|
188 |
// header: 'LogID',
|
189 |
// dataIndex: 'LogID',
|
190 |
// sortable: false,
|
191 |
// hidden: true,
|
192 |
// width: 620,
|
193 |
// filter: {
|
194 |
// type: 'string',
|
195 |
// itemDefaults: {
|
196 |
// emptyText: 'Search for...'
|
197 |
// }
|
198 |
// },
|
199 |
// editor: {
|
200 |
// itemId: 'LogID',
|
201 |
// name: 'LogID',
|
202 |
// }
|
203 |
//}, {
|
204 |
// header: 'Log',
|
205 |
// dataIndex: 'Log',
|
206 |
// sortable: false,
|
207 |
// width: 620,
|
208 |
// filter: {
|
209 |
// type: 'string',
|
210 |
// itemDefaults: {
|
211 |
// emptyText: 'Search for...'
|
212 |
// }
|
213 |
// },
|
214 |
// editor: {
|
215 |
// itemId: 'Log',
|
216 |
// name: 'Log',
|
217 |
// }
|
218 |
//}]
|
219 |
//}
|
220 |
]
|
221 |
|
222 |
}],
|
223 |
|
224 |
}]
|
225 |
});
|
226 |
|
227 |
me.callParent(arguments); |
228 |
}
|
229 |
});
|
- « Previous
- 1
- 2
- 3
- Next »