Feature #2007 » ViewUploadMDBIAPerawatan.js
1 |
Ext.define('MinovaES.view.masterdata.ViewUploadMDBIAPerawatan', { |
---|---|
2 |
extend: 'Ext.panel.Panel', |
3 |
alias: 'widget.masterdata-ViewUploadMDBIAPerawatan', |
4 |
requires: [ |
5 |
'MinovaES.controller.masterdata.CtrlUploadMD', |
6 |
],
|
7 |
controller: 'CtrlUploadMD', |
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 Master Data - Perawatan', |
20 |
height: 270, |
21 |
buttons: [{ |
22 |
xtype: 'button', |
23 |
text: 'Import', |
24 |
action: 'Import', |
25 |
name: 'Import', |
26 |
}],
|
27 |
items: [{ |
28 |
xtype: "minovacombobox", |
29 |
fieldLabel: "Master Data", |
30 |
name: "Table", |
31 |
tableName: "PCMEPMDLIST", |
32 |
param: 'ModuleType[equal]PR,Language[equal]' + LangId, |
33 |
displayField: 'LabelName', |
34 |
valueField: 'TableName', |
35 |
}, { |
36 |
xtype: 'filefield', |
37 |
name: 'File', |
38 |
fieldLabel: 'File', |
39 |
emptyText: 'Select Excel File to upload', |
40 |
allowBlank: false, |
41 |
anchor: '50%', |
42 |
buttonText: 'Browse' |
43 |
}, { |
44 |
xtype: 'radiogroup', |
45 |
fieldLabel: '', |
46 |
margin: '0 0 0 100', |
47 |
anchor: '30%', |
48 |
columns: 2, |
49 |
name: 'UploadExecute', |
50 |
items: [{ |
51 |
inputValue: '0', |
52 |
boxLabel: 'Simulate' |
53 |
}, { |
54 |
inputValue: '1', |
55 |
boxLabel: 'Execute' |
56 |
}],
|
57 |
}, { |
58 |
xtype: 'checkboxfield', |
59 |
margin: '0 0 0 105', |
60 |
boxLabel: 'Force Save Data', |
61 |
name: 'ForceSaveData', |
62 |
inputValue: '1', |
63 |
}],
|
64 |
}, { |
65 |
items: [{ |
66 |
xtype: 'panel', |
67 |
title: 'Result', |
68 |
layout: 'fit', |
69 |
collapsible: true, |
70 |
name: 'PanelResult' |
71 |
}, { |
72 |
xtype: "fieldset", |
73 |
title: "Summary", |
74 |
width: 1052, |
75 |
items: [{ |
76 |
xtype: 'displayfield', |
77 |
name: 'Success', |
78 |
fieldLabel: 'Success' |
79 |
}, { |
80 |
xtype: 'displayfield', |
81 |
name: 'Error', |
82 |
fieldLabel: 'Error' |
83 |
}, { |
84 |
xtype: 'displayfield', |
85 |
name: 'Warning', |
86 |
fieldLabel: 'Warning' |
87 |
}]
|
88 |
}, { |
89 |
items: [ |
90 |
{
|
91 |
xtype: 'minovagrid1', |
92 |
height: 300, |
93 |
id: 'gridresultuploadMD', |
94 |
tableName: 'PDSUPLOADGRID', |
95 |
storename: 'storeresultupload', |
96 |
name: 'gridresultuploadMD', |
97 |
//margin: '0 0 10 0',
|
98 |
autoLoad: false, |
99 |
pagesize: 10000, |
100 |
}
|
101 |
//{
|
102 |
//xtype: 'grid',
|
103 |
//height: 300,
|
104 |
//id: 'gridresultuploadMD',
|
105 |
//name: 'gridresultuploadMD',
|
106 |
//store: Ext.create('Ext.data.Store', {
|
107 |
// storeId: 'storeresultuploadtm',
|
108 |
// fields: ['RecordID']
|
109 |
//}),
|
110 |
//columns: [{
|
111 |
// xtype: 'rownumberer',
|
112 |
// header: 'No'
|
113 |
//}, {
|
114 |
// header: 'Record ID',
|
115 |
// dataIndex: 'RecordID',
|
116 |
// sortable: false,
|
117 |
// width: 200,
|
118 |
// filter: {
|
119 |
// type: 'string',
|
120 |
// itemDefaults: {
|
121 |
// emptyText: 'Search for...'
|
122 |
// }
|
123 |
// },
|
124 |
// editor: {
|
125 |
// itemId: 'RecordID',
|
126 |
// name: 'RecordID',
|
127 |
// }
|
128 |
//}, {
|
129 |
// header: 'Status',
|
130 |
// dataIndex: 'Status',
|
131 |
// sortable: false,
|
132 |
// width: 200,
|
133 |
// filter: {
|
134 |
// type: 'string',
|
135 |
// itemDefaults: {
|
136 |
// emptyText: 'Search for...'
|
137 |
// }
|
138 |
// },
|
139 |
// editor: {
|
140 |
// itemId: 'Status',
|
141 |
// name: 'Status',
|
142 |
// }
|
143 |
//}, {
|
144 |
// header: 'LogID',
|
145 |
// dataIndex: 'LogID',
|
146 |
// sortable: false,
|
147 |
// hidden: true,
|
148 |
// width: 620,
|
149 |
// filter: {
|
150 |
// type: 'string',
|
151 |
// itemDefaults: {
|
152 |
// emptyText: 'Search for...'
|
153 |
// }
|
154 |
// },
|
155 |
// editor: {
|
156 |
// itemId: 'LogID',
|
157 |
// name: 'LogID',
|
158 |
// }
|
159 |
//}, {
|
160 |
// header: 'Log',
|
161 |
// dataIndex: 'Log',
|
162 |
// sortable: false,
|
163 |
// width: 620,
|
164 |
// filter: {
|
165 |
// type: 'string',
|
166 |
// itemDefaults: {
|
167 |
// emptyText: 'Search for...'
|
168 |
// }
|
169 |
// },
|
170 |
// editor: {
|
171 |
// itemId: 'Log',
|
172 |
// name: 'Log',
|
173 |
// }
|
174 |
//}]
|
175 |
//}
|
176 |
]
|
177 |
|
178 |
}],
|
179 |
|
180 |
}]
|
181 |
});
|
182 |
|
183 |
me.callParent(arguments); |
184 |
}
|
185 |
});
|