1 //<script type="text/javascript">
3 // Auto generated file - created by app.Builder.js- do not edit directly (at present!)
5 Roo.namespace('Pman.Dialog');
7 Pman.Dialog.XtupleItem = {
10 '346577d22bb510368e3eddab5df2ca13' :"Reference Files",
11 'be53a0541a6d36f6ecb879fa2c584b08' :"Image",
12 '92b17d3d0f13232ec1d46844c836d4db' :"Invoice UOM",
13 '390fc24b0feebfff8c3fb8625418c2e9' :"Perishable",
14 'f2a6c498fb90ee345d997f888fce3b18' :"Delete",
15 '956e816fa19ca04485c7101adbe07762' :"Displaying records {0} - {1} of {2}",
16 '69395719de41dd8a31905b1e94c91816' :"Select classcode",
17 '82a43f89af6d331d80d441624c5c71fa' :"Default Location",
18 '538a3c9d82a4ea4250b987a357d41184' :"Item Parts",
19 '03ab340b3f99e03cff9e84314ead38c0' :"Qty",
20 '5b8c99dad1893a85076709b2d3c2d2d0' :"IP Address",
21 'fce71ab09b7795157c6e23370b4afb26' :"Stocked",
22 '045a1ac263ac3a9b7420208bdc2df423' :"Select costcat",
23 '0c81971f67c0bd4b33799c5365ec2bf5' :"No Images found",
24 'a1fa27779242b4902f7ae3bdd5c6d508' :"Type",
25 '151ccf95db9b81c11bb20fbc302af4b6' :"Select terms",
26 '786410e93beb0193d89f8608c54feb4b' :"Select item",
27 '0ac9012a8c03a76ee76f04321b3b7fda' :"Lead time",
28 '675c9bd3bbae30af03fe74346dcae9a7' :"Edit / Create item",
29 'dd24f967299e81b9603cb071693d5c32' :"Select vendinfo",
30 '023a5dfa857c4aa0156e6685231a1dbd' :"Select Type",
31 'e8586011952b0d098b0e568f20ca2b1f' :"Select Currency",
32 '9bd81329febf6efe22788e03ddeaf0af' :"Class",
33 '8413c683b4b27cc3f4dbd4c90329d8ba' :"Comments",
34 '820dbd2b8f606aff866c0bbfb6b737c1' :"Changed",
35 'ec211f7c20af43e742bf2570c3cb84f9' :"Add",
36 '0eceeb45861f9585dd7a97a3e36f85c6' :"Created",
37 '386c339d37e737a436499d423a77df0c' :"Currency",
38 '9076cbba1d9ef79280b4f39e2aa0d115' :"Nothing found",
39 '1243daf593fa297e07ab03bf06d925af' :"Searching...",
40 '6df5afb79e960381ed66568c2a644ec6' :"Description (2)",
41 '7be1fa478799242847d4ef861ff6f8e1' :"Min Qty",
42 '6665e3761028c84e1d228de3432229ed' :"SKU",
43 'e54f1b41d200adbd96eb53634388d780' :"Sales Account",
44 '76729937a5eb6b0fd88c42581161facd' :"Select Category",
45 'eccd13e2f1acfd6b8412a2caafa37a80' :"Stock Safety Level",
46 '43b2683180fe5e67a91696c834df0a32' :"Reorder Level",
47 'e1a8f447925ed2867c591aa0865d170e' :"Multi Location",
48 '7d74f3b92b19da5e606d737d339a9679' :"Item",
49 '2ea154449c00001e87af8df7c0728678' :"Control Method",
50 '19df363d15888baa395364fbcd230c05' :"No itemsrc found",
51 '0d122b17933ab4173e9d75d55fc5e764' :"Standard Cost",
52 'df2ad52a14d681b1cd8495f8650fdb56' :"Select prodcat",
53 '49ee3087348e8d44e1feda1917443987' :"Name",
54 'e5353fc67b122d1b42181073b46cd060' :"Vendor Ref#",
55 'c19ea8f7a11074ac743c58d34830b233' :"Select plancode",
56 'ea4788705e6873b424c65e91c2846b19' :"Cancel",
57 'c056b1456660ea65aad6dfc664002b84' :"Item active",
58 '9d98e31f261471f426e906282544c15d' :"Item comments",
59 '20f39d1311ccbd3b7e61cdd4978719f9' :"Itemsite Settings",
60 '1656a671ba692e15836cd85df374556c' :"Price List",
61 'bb8913cd17d59f182acc7be1020007b7' :"UOM",
62 'f9c68217f6ef9a9afe7575e766bd7b9f' :"Planner Code",
63 '76d5bf9597c882d6513f71759df298d5' :"Displaying parts {0} - {1} of {2}",
64 '3601146c4e948c32b6424d2c0a7f0118' :"Price",
65 '1814d65a76028fdfbadab64a5a8076df' :"Suppliers",
66 '90e4ac2e5a22e53df63b6b186d8727ba' :"No Events found",
67 '4ee972120bcda675f75222c87cb9d356' :"Who",
68 '16d2b386b2034b9488996466aaae0b57' :"History",
69 '14fc4f0a5008e1d8d5645071755c596b' :"Price UOM",
70 '089ba2b5edc96565fc22c584ecfbb1a6' :"Displaying events{0} - {1} of {2}",
71 'b5a7adde1af5c87d7fd797b6245c2a39' :"Description",
72 '148cb4c3e6469c6a92d24951485b65ff' :"Item listprice",
73 'c96bc98500430b5eb8e9cfc5959e09b5' :"Item sold",
74 '7f841b4d2f7280eb82318988c6d649d1' :"Displaying itemsrc{0} - {1} of {2}",
75 'a254c25adc7d10d7e9c4889484f875a5' :"Detail",
76 '5aa275a71868f3afcacfd6de452b07eb' :"Costcat",
77 'c0ed345ec857c06b31f7e88745c9bc40' :"Displaying Images {0} - {1} of {2}",
78 'c9cc8cce247e49bae79f15173ce97354' :"Save",
79 '6abc7326bcd435c1eb22ad3714db48c4' :"Lead time (Days)",
80 'ec9ceefe0c19f4c029008c23e3c947b7' :"Vendor",
81 '4d3d769b812b6faa6b76e1a8abaece2d' :"Active",
82 '004bf6c9a40003140292e97330236c53' :"Action",
83 '689202409e48743b914713f96d93947c' :"Value",
84 'f4c6f851b00d5518bf888815de279aba' :"Notes",
85 '10991ea03e3591bebc4c0827fc369540' :"Product Category",
86 'f9838de820f2a2e16241033270c68e29' :"Select uom",
87 '8c489d0946f66d17d73f26366a4bf620' :"Weight",
88 'd85a8a381c36f6dde21d81542830e2b1' :"Sold",
89 '1063e38cb53d94d386f21227fcd84717' :"Remove",
90 '7996af9149ed376ce252e35c4da7146b' :"Select Vendor"
96 show : function(data, cb)
104 this.dialog.show(this.data._el);
107 this.form.setValues(data);
108 this.form.fireEvent('actioncomplete', this.form, { type: 'setdata', data: data });
116 this.dialog = Roo.factory({
122 title : _this._strings['675c9bd3bbae30af03fe74346dcae9a7'] /* Edit / Create item */,
126 xtype : 'LayoutDialog',
128 show : function (_self)
130 _this.dialog.layout.getRegion('center').showPanel(0);
134 alwaysShowTabs : true,
138 xtype : 'LayoutRegion'
142 text : _this._strings['ea4788705e6873b424c65e91c2846b19'] /* Cancel */,
147 click : function (_self, e)
154 text : _this._strings['c9cc8cce247e49bae79f15173ce97354'] /* Save */,
159 click : function (_self, e)
164 // _this.dialog.el.mask("Saving");
165 _this.form.doAction("submit");
168 render : function (_self)
170 _this.saveBtn = this;
178 title : _this._strings['a254c25adc7d10d7e9c4889484f875a5'] /* Detail */,
181 xtype : 'ContentPanel',
186 style : 'margin:10px;',
187 url : baseURL + '/Roo/item.php',
192 actioncomplete : function(_self,action)
194 if (action.type == 'setdata') {
195 _this.form.findField('item_number').el.dom.readOnly = true;
196 _this.form.findField('item_type').disabled = true;
198 if(_this.data.item_id * 1 > 0){
203 '_id' : _this.data.item_id,
204 '_with_itemsite' : 1,
205 '_with_itemcost' : 1,
206 '_with_prodcat' : 1 ,
207 '_with_salesaccnt' : 1
213 _this.form.findField('item_number').el.dom.readOnly = false;
214 _this.form.findField('item_type').disabled = false;
215 _this.form.findField('item_salesaccnt').setValue('');
217 _this.form.findField('item_type').showHide();
221 if (action.type == 'load') {
222 _this.form.findField('item_type').showHide();
225 if (action.type =='submit') {
227 var id = _this.form.findField('item_id').getValue() * 1;
233 '_id' : action.result.data.item_id,
234 '_with_itemsite' : 1,
235 '_with_itemcost' : 1,
236 '_with_prodcat' : 1 ,
237 '_with_salesaccnt' : 1
244 if (_this.callback) {
245 _this.callback.call(_this, _this.form.getValues());
251 rendered : function (form)
259 fieldLabel : _this._strings['6665e3761028c84e1d228de3432229ed'] /* SKU */,
260 name : 'item_number',
267 fieldLabel : _this._strings['b5a7adde1af5c87d7fd797b6245c2a39'] /* Description */,
268 name : 'item_descrip1',
275 fieldLabel : _this._strings['6df5afb79e960381ed66568c2a644ec6'] /* Description (2) */,
276 name : 'item_descrip2',
290 displayField : 'fname',
292 emptyText : _this._strings['023a5dfa857c4aa0156e6685231a1dbd'] /* Select Type */,
293 fieldLabel : _this._strings['a1fa27779242b4902f7ae3bdd5c6d508'] /* Type */,
294 hiddenName : 'item_type',
297 name : 'item_type_name',
298 showHide : function() {
300 var it = this.getValue();
303 'item_itemcost_id_itemcost_curr_id',
304 'item_itemcost_id_itemcost_actcost',
305 'item_itemsite_id_itemsite_reorderlevel',
306 'item_itemsite_id_itemsite_leadtime',
307 'item_itemsite_id_itemsite_location_id',
308 'item_itemsite_id_itemsite_loccntrl',
309 'item_itemsite_id_itemsite_stocked',
310 'item_itemsite_id_itemsite_perishable',
312 'item_itemsite_id_itemsite_safetystock',
313 'item_itemsite_id_itemsite_controlmethod',
314 'item_itemsite_id_itemsite_plancode_id',
315 'item_itemsite_id_itemsite_costcat_id',
316 'item_itemsite_id_itemsite_active',
317 'item_itemsite_id_itemsite_sold'
327 _this.standardCostFieldSet.show();
328 _this.itemsiteFieldSet.show();
335 _this.form.findField('item_listprice').allowBlank = false;
336 _this.form.findField('item_listprice').actionMode = 'fieldEl';
337 _this.form.findField('item_listprice').hideMode = 'display';
338 _this.form.findField('item_listprice').show();
342 case 'R': // refrence
343 options = options.concat(r_req);
345 _this.standardCostFieldSet.hide();
348 case 'P': // purchased..
349 options = options.concat(r_req);
354 Roo.each(options, function(n) {
355 var ff = _this.form.findField(n);
356 ff.allowBlank = !state;
357 ff.actionMode = 'fieldEl';
358 ff.hideMode = 'display';
359 state ? ff.show() : ff.hide();
365 _this.standardCostFieldSet.hide();
366 _this.itemsiteFieldSet.hide();
373 tpl : '<div class=\"x-grid-cell-text x-btn button\"><b>{fname}</b> </div>',
374 triggerAction : 'all',
375 valueField : 'ftype',
381 beforeselect : function (combo, record, index)
383 (function() { combo.showHide(); }).defer(100);
388 [ 'P', "Purchased (eg. a standard product)"],
389 [ 'R' , "Reference (Non-Product)"],
390 [ 'K', "Kit (made up of products)"]
392 fields : [ 'ftype', 'fname'],
395 xtype : 'SimpleStore'
400 displayField : 'classcode_code',
402 emptyText : _this._strings['69395719de41dd8a31905b1e94c91816'] /* Select classcode */,
403 fieldLabel : _this._strings['9bd81329febf6efe22788e03ddeaf0af'] /* Class */,
404 forceSelection : true,
405 hiddenName : 'item_classcode_id',
407 loadingText : _this._strings['1243daf593fa297e07ab03bf06d925af'] /* Searching... */,
409 name : 'item_classcode_id_classcode_code',
411 qtip : _this._strings['69395719de41dd8a31905b1e94c91816'] /* Select classcode */,
413 selectOnFocus : true,
414 tpl : '<div class=\"x-grid-cell-text x-btn button\"><b>{classcode_code}</b> </div>',
415 triggerAction : 'all',
417 valueField : 'classcode_id',
424 sortInfo : { direction : 'ASC', field: 'id' },
429 beforeload : function (_self, o){
430 o.params = o.params || {};
436 url : baseURL + '/Roo/classcode.php',
442 fields : [{"name":"id","type":"int"},{"name":"classcode_code","type":"string"}],
445 totalProperty : 'total',
454 displayField : 'uom_descrip',
456 emptyText : _this._strings['f9838de820f2a2e16241033270c68e29'] /* Select uom */,
457 fieldLabel : _this._strings['92b17d3d0f13232ec1d46844c836d4db'] /* Invoice UOM */,
458 forceSelection : true,
459 hiddenName : 'item_inv_uom_id',
461 loadingText : _this._strings['1243daf593fa297e07ab03bf06d925af'] /* Searching... */,
463 name : 'item_inv_uom_id_uom_descrip',
465 qtip : _this._strings['69395719de41dd8a31905b1e94c91816'] /* Select classcode */,
467 selectOnFocus : true,
468 tpl : '<div class=\"x-grid-cell-text x-btn button\"><b>{uom_descrip}</b> </div>',
469 triggerAction : 'all',
471 valueField : 'uom_id',
478 sortInfo : { direction : 'ASC', field: 'uom_name' },
483 beforeload : function (_self, o){
484 o.params = o.params || {};
490 url : baseURL + '/Roo/uom.php',
497 {"name":"id","type":"int"},
498 {"name":"uom_name","type":"string"},
499 {"name":"uom_descrip","type":"string"},
503 totalProperty : 'total',
512 displayField : 'uom_descrip',
514 emptyText : _this._strings['f9838de820f2a2e16241033270c68e29'] /* Select uom */,
515 fieldLabel : _this._strings['14fc4f0a5008e1d8d5645071755c596b'] /* Price UOM */,
516 forceSelection : true,
517 hiddenName : 'item_price_uom_id',
519 loadingText : _this._strings['1243daf593fa297e07ab03bf06d925af'] /* Searching... */,
521 name : 'item_price_uom_id_uom_descrip',
523 qtip : _this._strings['69395719de41dd8a31905b1e94c91816'] /* Select classcode */,
525 selectOnFocus : true,
526 tpl : '<div class=\"x-grid-cell-text x-btn button\"><b>{uom_descrip}</b> </div>',
527 triggerAction : 'all',
529 valueField : 'uom_id',
536 sortInfo : { direction : 'ASC', field: 'uom_name' },
541 beforeload : function (_self, o){
542 o.params = o.params || {};
548 url : baseURL + '/Roo/uom.php',
555 {"name":"id","type":"int"},
556 {"name":"uom_name","type":"string"},
557 {"name":"uom_descrip","type":"string"},
561 totalProperty : 'total',
570 allowDecimals : true,
571 decimalPrecision : 2,
572 fieldLabel : _this._strings['8c489d0946f66d17d73f26366a4bf620'] /* Weight */,
573 name : 'item_prodweight',
577 xtype : 'NumberField'
580 fieldLabel : _this._strings['9d98e31f261471f426e906282544c15d'] /* Item comments */,
582 name : 'item_comments',
589 fieldLabel : _this._strings['c96bc98500430b5eb8e9cfc5959e09b5'] /* Item sold */,
599 fieldLabel : _this._strings['c056b1456660ea65aad6dfc664002b84'] /* Item active */,
601 name : 'item_active',
611 displayField : 'prodcat_code',
613 emptyText : _this._strings['76729937a5eb6b0fd88c42581161facd'] /* Select Category */,
614 fieldLabel : _this._strings['10991ea03e3591bebc4c0827fc369540'] /* Product Category */,
615 forceSelection : true,
616 hiddenName : 'item_prodcat_id',
618 loadingText : _this._strings['1243daf593fa297e07ab03bf06d925af'] /* Searching... */,
620 name : 'item_prodcat_id_prodcat_code',
622 qtip : _this._strings['df2ad52a14d681b1cd8495f8650fdb56'] /* Select prodcat */,
624 selectOnFocus : true,
625 tpl : '<div class=\"x-grid-cell-text x-btn button\"><b>{prodcat_code}</b> </div>',
626 triggerAction : 'all',
628 valueField : 'prodcat_id',
634 add : function (combo)
636 Pman.Dialog.XtupleProdcat.show({prodcat_id : 0});
638 edit : function (combo, record)
640 var s = _this.form.findField('item_prodcat_id').getValue() * 1;
642 Roo.MessageBox.alert('Error','Please select a account assignment');
645 Pman.Dialog.XtupleProdcat.show({prodcat_id : s});
650 sortInfo : { direction : 'ASC', field: 'id' },
655 beforeload : function (_self, o){
656 o.params = o.params || {};
662 url : baseURL + '/Roo/prodcat.php',
668 fields : [{"name":"id","type":"int"},{"name":"prodcat_code","type":"string"}],
671 totalProperty : 'total',
679 fieldLabel : _this._strings['e54f1b41d200adbd96eb53634388d780'] /* Sales Account */,
680 name : 'item_salesaccnt',
683 xtype : 'DisplayField'
686 fieldLabel : _this._strings['148cb4c3e6469c6a92d24951485b65ff'] /* Item listprice */,
687 name : 'item_listprice',
691 xtype : 'NumberField'
694 legend : _this._strings['0d122b17933ab4173e9d75d55fc5e764'] /* Standard Cost */,
695 style : 'width:320px',
700 render : function (_self)
702 _this.standardCostFieldSet = _self;
708 displayField : 'curr_name',
710 emptyText : _this._strings['e8586011952b0d098b0e568f20ca2b1f'] /* Select Currency */,
711 fieldLabel : _this._strings['386c339d37e737a436499d423a77df0c'] /* Currency */,
712 forceSelection : true,
713 hiddenName : 'item_itemcost_id_itemcost_curr_id',
715 loadingText : _this._strings['1243daf593fa297e07ab03bf06d925af'] /* Searching... */,
719 qtip : _this._strings['e8586011952b0d098b0e568f20ca2b1f'] /* Select Currency */,
720 queryParam : 'query[curr_name]',
721 selectOnFocus : true,
722 tpl : '<div class=\"x-grid-cell-text x-btn button\"><b>{curr_name}</b> </div>',
723 triggerAction : 'all',
725 valueField : 'curr_id',
732 sortInfo : { direction : 'ASC', field: 'curr_symbol' },
737 beforeload : function (_self, o){
738 o.params = o.params || {};
745 url : baseURL + '/Roo/curr_symbol.php',
751 fields : [{"name":"curr_id","type":"int"},"curr_symbol"],
754 totalProperty : 'total',
763 fieldLabel : _this._strings['689202409e48743b914713f96d93947c'] /* Value */,
764 name : 'item_itemcost_id_itemcost_actcost',
768 xtype : 'NumberField'
781 legend : _this._strings['20f39d1311ccbd3b7e61cdd4978719f9'] /* Itemsite Settings */,
782 style : 'width:335px;',
787 render : function (_self)
789 _this.itemsiteFieldSet = _self;
795 fieldLabel : _this._strings['43b2683180fe5e67a91696c834df0a32'] /* Reorder Level */,
796 name : 'item_itemsite_id_itemsite_reorderlevel',
800 xtype : 'NumberField'
804 fieldLabel : _this._strings['eccd13e2f1acfd6b8412a2caafa37a80'] /* Stock Safety Level */,
805 name : 'item_itemsite_id_itemsite_safetystock',
809 xtype : 'NumberField'
813 fieldLabel : _this._strings['6abc7326bcd435c1eb22ad3714db48c4'] /* Lead time (Days) */,
814 name : 'item_itemsite_id_itemsite_leadtime',
818 xtype : 'NumberField'
822 displayField : 'fname',
824 fieldLabel : _this._strings['2ea154449c00001e87af8df7c0728678'] /* Control Method */,
825 hiddenName : 'item_itemsite_id_itemsite_controlmethod',
828 name : 'item_itemsite_id_itemsite_controlmethod_name',
829 tpl : '<div class=\"x-grid-cell-text x-btn button\"><b>{fname}</b> </div>',
830 triggerAction : 'all',
831 valueField : 'ftype',
841 fields : [ 'ftype', 'fname'],
844 xtype : 'SimpleStore'
849 displayField : 'plancode_name',
851 emptyText : _this._strings['c19ea8f7a11074ac743c58d34830b233'] /* Select plancode */,
852 fieldLabel : _this._strings['f9c68217f6ef9a9afe7575e766bd7b9f'] /* Planner Code */,
853 forceSelection : true,
854 hiddenName : 'item_itemsite_id_itemsite_plancode_id',
856 loadingText : _this._strings['1243daf593fa297e07ab03bf06d925af'] /* Searching... */,
858 name : 'plancode_name',
860 qtip : _this._strings['c19ea8f7a11074ac743c58d34830b233'] /* Select plancode */,
862 selectOnFocus : true,
863 tpl : '<div class=\"x-grid-cell-text x-btn button\"><b>{plancode_name}</b> </div>',
864 triggerAction : 'all',
866 valueField : 'plancode_id',
873 sortInfo : { direction : 'ASC', field: 'id' },
878 beforeload : function (_self, o){
879 o.params = o.params || {};
885 url : baseURL + '/Roo/plancode.php',
891 fields : [{"name":"id","type":"int"},{"name":"plancode_code","type":"string"}],
894 totalProperty : 'total',
903 displayField : 'costcat_code',
905 emptyText : _this._strings['045a1ac263ac3a9b7420208bdc2df423'] /* Select costcat */,
906 fieldLabel : _this._strings['5aa275a71868f3afcacfd6de452b07eb'] /* Costcat */,
907 forceSelection : true,
908 hiddenName : 'item_itemsite_id_itemsite_costcat_id',
910 loadingText : _this._strings['1243daf593fa297e07ab03bf06d925af'] /* Searching... */,
912 name : 'costcat_code',
914 qtip : _this._strings['045a1ac263ac3a9b7420208bdc2df423'] /* Select costcat */,
916 selectOnFocus : true,
917 tpl : '<div class=\"x-grid-cell-text x-btn button\"><b>{costcat_code}</b> </div>',
918 triggerAction : 'all',
920 valueField : 'costcat_id',
927 sortInfo : { direction : 'ASC', field: 'id' },
932 beforeload : function (_self, o){
933 o.params = o.params || {};
939 url : baseURL + '/Roo/costcat.php',
945 fields : [{"name":"id","type":"int"},{"name":"costcat_code","type":"string"}],
948 totalProperty : 'total',
956 fieldLabel : _this._strings['4d3d769b812b6faa6b76e1a8abaece2d'] /* Active */,
958 name : 'item_itemsite_id_itemsite_active',
966 fieldLabel : _this._strings['d85a8a381c36f6dde21d81542830e2b1'] /* Sold */,
968 name : 'item_itemsite_id_itemsite_sold',
976 fieldLabel : _this._strings['fce71ab09b7795157c6e23370b4afb26'] /* Stocked */,
978 name : 'item_itemsite_id_itemsite_stocked',
986 fieldLabel : _this._strings['390fc24b0feebfff8c3fb8625418c2e9'] /* Perishable */,
988 name : 'item_itemsite_id_itemsite_perishable',
996 fieldLabel : _this._strings['e1a8f447925ed2867c591aa0865d170e'] /* Multi Location */,
998 name : 'item_itemsite_id_itemsite_loccntrl',
1002 '|xns' : 'Roo.form',
1007 displayField : 'location_name',
1009 emptyText : _this._strings['82a43f89af6d331d80d441624c5c71fa'] /* Default Location */,
1010 fieldLabel : _this._strings['82a43f89af6d331d80d441624c5c71fa'] /* Default Location */,
1011 forceSelection : true,
1012 hiddenName : 'item_itemsite_id_itemsite_location_id',
1014 loadingText : _this._strings['1243daf593fa297e07ab03bf06d925af'] /* Searching... */,
1016 name : 'location_name',
1018 qtip : _this._strings['151ccf95db9b81c11bb20fbc302af4b6'] /* Select terms */,
1019 queryParam : 'query[location_name]',
1020 selectOnFocus : true,
1021 tpl : '<div class=\"x-grid-cell-text x-btn button\"><b>{location_name}</b> </div>',
1022 triggerAction : 'all',
1024 valueField : 'location_id',
1027 '|xns' : 'Roo.form',
1031 sortInfo : { direction : 'ASC', field: 'location_name' },
1033 '|xns' : 'Roo.data',
1036 beforeload : function (_self, o){
1037 o.params = o.params || {};
1039 o.params.location_netable = 1;
1040 o.params._notinternalcompany = 1;
1041 o.params.location_restrict = 0;
1046 url : baseURL + '/Roo/location.php',
1048 '|xns' : 'Roo.data',
1052 fields : [{"name":"location_id","type":"int"},"location_name"],
1055 totalProperty : 'total',
1057 '|xns' : 'Roo.data',
1058 xtype : 'JsonReader'
1070 '|xns' : 'Roo.form',
1079 fitContainer : true,
1082 tableName : 'bomitem',
1083 title : _this._strings['538a3c9d82a4ea4250b987a357d41184'] /* Item Parts */,
1086 xtype : 'GridPanel',
1088 activate : function() {
1089 _this.partspanel = this;
1091 try { if (MODULE.isBuilder) {
1095 var id = _this.form.findField('item_id').getValue() * 1;
1097 Roo.MessageBox.alert("Save First", "Save the item first, before adding parts");
1098 _this.dialog.layout.getRegion('center').showPanel(0);
1102 var type = _this.form.findField('item_type').getValue();
1104 if(!type.length || type != 'K'){
1105 Roo.MessageBox.alert("Error", "Can't add parts to non-kit item");
1106 _this.dialog.layout.getRegion('center').showPanel(0);
1110 if (_this.partsgrid) {
1111 _this.partsgrid.footer.onClick('first');
1117 autoExpandColumn : 'bomitem_item_id_item_descrip1',
1121 '|xns' : 'Roo.grid',
1122 xtype : 'EditorGrid',
1124 afteredit : function (e)
1126 if(e.originalValue == e.value){
1133 url : baseURL + '/Roo/bomitem.php',
1136 bomitem_id : e.record.data.bomitem_id,
1137 bomitem_qtyper : e.value
1139 success : function() {
1140 e.record.set('bomitem_qtyper', e.value);
1149 beforeedit : function (e)
1151 if(e.field != 'bomitem_qtyper'){
1158 _this.partsgrid = this;
1159 //_this.dialog = Pman.Dialog.FILL_IN
1160 if (_this.partspanel.active) {
1161 this.footer.onClick('first');
1167 displayMsg : _this._strings['76d5bf9597c882d6513f71759df298d5'] /* Displaying parts {0} - {1} of {2} */,
1168 emptyMsg : _this._strings['9076cbba1d9ef79280b4f39e2aa0d115'] /* Nothing found */,
1172 xtype : 'PagingToolbar'
1182 displayField : 'item_number',
1184 emptyText : _this._strings['786410e93beb0193d89f8608c54feb4b'] /* Select item */,
1185 fieldLabel : _this._strings['7d74f3b92b19da5e606d737d339a9679'] /* Item */,
1186 forceSelection : true,
1187 loadingText : _this._strings['1243daf593fa297e07ab03bf06d925af'] /* Searching... */,
1190 qtip : _this._strings['786410e93beb0193d89f8608c54feb4b'] /* Select item */,
1191 queryParam : 'query[number_or_name]',
1192 selectOnFocus : true,
1193 tpl : '<div class=\"x-grid-cell-text x-btn button\"><b>{item_number}</b> </div>',
1194 triggerAction : 'all',
1198 xns : Roo.bootstrap,
1199 '|xns' : 'Roo.bootstrap',
1202 render : function (_self)
1204 _this.partsBox = _self;
1206 select : function (combo, record, index)
1208 var item_id = _this.form.findField('item_id').getValue() * 1;
1210 if(typeof(record) == 'undefined' || !record || record.data.id * 1 < 1 || item_id < 1){
1216 _this.partsgrid.ds.each(function(d){
1217 if(record.data.item_id == d.data.bomitem_item_id){
1223 Roo.MessageBox.alert('Error', record.data.item_number + ' already exists!');
1224 _this.partsBox.reset();
1229 url : baseURL + '/Roo/bomitem.php',
1232 bomitem_parent_item_id : item_id,
1233 bomitem_item_id : record.data.item_id,
1236 success : function(res) {
1237 _this.partsBox.reset();
1238 _this.partsgrid.footer.onClick('first');
1245 sortInfo : { direction : 'ASC', field: 'item_number' },
1247 '|xns' : 'Roo.data',
1250 beforeload : function (_self, o){
1251 o.params = o.params || {};
1253 o.params.item_active = 1;
1254 o.params['!item_type'] = 'K';
1259 url : baseURL + '/Roo/item.php',
1261 '|xns' : 'Roo.data',
1266 {"name":"id","type":"int"},
1267 {"name":"item_number","type":"string"}
1271 totalProperty : 'total',
1273 '|xns' : 'Roo.data',
1274 xtype : 'JsonReader'
1280 '|xns' : 'Roo.Toolbar',
1284 cls : 'x-btn-text-icon',
1285 icon : rootURL + '/Pman/templates/images/trash.gif',
1286 text : _this._strings['1063e38cb53d94d386f21227fcd84717'] /* Remove */,
1293 var sel = _this.partsgrid.getSelectionModel().getSelectedCell();
1295 if(!sel || !sel.length){
1296 Roo.MessageBox.alert("Error", "Please select a item from below list");
1300 var d = _this.partsgrid.ds.getAt(sel[0]);
1302 if(d.data.bomitem_id * 1 < 1){
1303 Roo.MessageBox.alert("Error", "Invaild selection");
1308 url : baseURL + '/Roo/bomitem.php',
1311 _delete : d.data.bomitem_id
1313 success : function(res) {
1314 _this.partsgrid.footer.onClick('first');
1325 sortInfo : { field : 'bomitem_item_id_item_name', direction: 'ASC' },
1327 '|xns' : 'Roo.data',
1330 beforeload : function (_self, o)
1332 o.params = o.params || {};
1334 var id = _this.form.findField('item_id').getValue() * 1;
1339 o.params.bom_parent_item_id = id;
1344 url : baseURL + '/Roo/bomitem.php',
1346 '|xns' : 'Roo.data',
1352 'name': 'bomitem_id',
1358 totalProperty : 'total',
1360 '|xns' : 'Roo.data',
1361 xtype : 'JsonReader'
1366 dataIndex : 'bomitem_item_id_item_number',
1367 header : _this._strings['49ee3087348e8d44e1feda1917443987'] /* Name */,
1368 renderer : function(v) { return String.format('{0}', v); },
1371 '|xns' : 'Roo.grid',
1372 xtype : 'ColumnModel'
1375 dataIndex : 'bomitem_item_id_item_descrip1',
1376 header : _this._strings['b5a7adde1af5c87d7fd797b6245c2a39'] /* Description */,
1377 renderer : function(v) { return String.format('{0}', v); },
1380 '|xns' : 'Roo.grid',
1381 xtype : 'ColumnModel'
1385 dataIndex : 'bomitem_qtyper',
1386 header : _this._strings['03ab340b3f99e03cff9e84314ead38c0'] /* Qty */,
1387 renderer : function(v) { return String.format('{0}', v); },
1390 '|xns' : 'Roo.grid',
1391 xtype : 'ColumnModel',
1394 '|xns' : 'Roo.grid',
1395 xtype : 'GridEditor',
1398 cls : 'align-right',
1399 decimalPrecision : 0,
1402 '|xns' : 'Roo.form',
1403 xtype : 'NumberField'
1412 fitContainer : true,
1415 tableName : 'Images',
1416 title : _this._strings['346577d22bb510368e3eddab5df2ca13'] /* Reference Files */,
1419 xtype : 'GridPanel',
1421 activate : function() {
1424 try { if (MODULE.isBuilder) {
1428 var id = _this.form.findField('item_id').getValue() * 1;
1430 Roo.MessageBox.alert("Save First", "Save the item first, before adding image");
1431 _this.dialog.layout.getRegion('center').showPanel(0);
1436 _this.grid.footer.onClick('first');
1442 autoExpandColumn : 'id',
1445 '|xns' : 'Roo.grid',
1448 render : function() {
1451 if (_this.panel.active) {
1452 this.footer.onClick('first');
1455 rowdblclick : function (_self, rowIndex, e)
1458 var s = _self.getDataSource().getAt(rowIndex);
1460 url : baseURL + '/Images/Download/' + s.data.id
1467 displayMsg : _this._strings['c0ed345ec857c06b31f7e88745c9bc40'] /* Displaying Images {0} - {1} of {2} */,
1468 emptyMsg : _this._strings['0c81971f67c0bd4b33799c5365ec2bf5'] /* No Images found */,
1472 xtype : 'PagingToolbar'
1480 cls : 'x-btn-text-icon',
1481 icon : Roo.rootURL + 'images/default/dd/drop-add.gif',
1482 text : _this._strings['ec211f7c20af43e742bf2570c3cb84f9'] /* Add */,
1484 '|xns' : 'Roo.Toolbar',
1489 Pman.Dialog.Image.show({
1492 onid: _this.form.findField('item_id').getValue() * 1,
1495 if (!data) { return; }
1496 _this.grid.footer.onClick('first');
1503 cls : 'x-btn-text-icon',
1504 icon : rootURL + '/Pman/templates/images/trash.gif',
1505 text : _this._strings['f2a6c498fb90ee345d997f888fce3b18'] /* Delete */,
1507 '|xns' : 'Roo.Toolbar',
1512 Pman.genericDelete(_this, 'Images');
1520 sortInfo : { field: 'created' , direction: 'DESC' },
1522 '|xns' : 'Roo.data',
1525 beforeload : function (_self, o)
1527 o.params = o.params || {};
1529 var id = _this.form.findField('item_id').getValue();
1536 o.params.ontable = 'item';
1542 url : baseURL + '/Roo/Images.php',
1544 '|xns' : 'Roo.data',
1582 'name': 'displayorder',
1590 'name': 'parent_image_id',
1596 'dateFormat' : 'Y-m-d H:i:s'
1617 totalProperty : 'total',
1619 '|xns' : 'Roo.data',
1620 xtype : 'JsonReader'
1625 dataIndex : 'created',
1626 header : _this._strings['0eceeb45861f9585dd7a97a3e36f85c6'] /* Created */,
1627 renderer : function(v,x,r) {
1628 return String.format('{0}<br/><i>{1}</i><br/>{2}<br/><i>{3}x{4}</i>',
1629 v.format('d/M/Y'), r.data.mimetype, r.data.filename,
1630 r.data.width, r.data.height
1636 '|xns' : 'Roo.grid',
1637 xtype : 'ColumnModel'
1641 header : _this._strings['be53a0541a6d36f6ecb879fa2c584b08'] /* Image */,
1642 renderer : function(v,x,r) { return String.format('<img src="{0}/Images/Thumb/100/{1}/{2}" height="100">', baseURL, v, r.data.filename); },
1645 '|xns' : 'Roo.grid',
1646 xtype : 'ColumnModel'
1653 fitContainer : true,
1656 tableName : 'ipshead',
1657 title : _this._strings['1656a671ba692e15836cd85df374556c'] /* Price List */,
1660 xtype : 'GridPanel',
1662 activate : function() {
1663 _this.lpanel = this;
1665 try { if (MODULE.isBuilder) {
1669 var id = _this.form.findField('item_id').getValue() * 1;
1671 Roo.MessageBox.alert("Save First", "Save the item first, before adding image");
1672 _this.dialog.layout.getRegion('center').showPanel(0);
1677 _this.lgrid.footer.onClick('first');
1683 autoExpandColumn : 'ipshead_descrip',
1687 '|xns' : 'Roo.grid',
1688 xtype : 'EditorGrid',
1690 afteredit : function (e)
1692 if(e.originalValue == e.value){
1696 var id = _this.form.findField('item_id').getValue() * 1;
1703 url : baseURL + '/Roo/ipsiteminfo',
1706 ipsitem_ipshead_id : e.record.data.ipshead_id,
1707 ipsitem_item_id : id,
1708 ipsitem_price : e.record.data.ipshead_ipsitem_price,
1709 ipsitem_id : e.record.data.ipshead_ipsitem_id
1718 beforeedit : function (e)
1720 if(e.field != 'ipshead_ipsitem_price'){
1728 //_this.dialog = Pman.Dialog.FILL_IN
1729 if (_this.lpanel.active) {
1730 this.footer.onClick('first');
1736 displayMsg : _this._strings['956e816fa19ca04485c7101adbe07762'] /* Displaying records {0} - {1} of {2} */,
1737 emptyMsg : _this._strings['9076cbba1d9ef79280b4f39e2aa0d115'] /* Nothing found */,
1741 xtype : 'PagingToolbar'
1745 sortInfo : { field : 'ipshead_id', direction: 'ASC' },
1747 '|xns' : 'Roo.data',
1750 beforeload : function (_self, o)
1752 o.params = o.params || {};
1754 var id = _this.form.findField('item_id').getValue() * 1;
1759 o.params._with_item = id;
1764 url : baseURL + '/Roo/ipshead.php',
1766 '|xns' : 'Roo.data',
1772 'name': 'ipshead_id',
1776 'name': 'ipshead_name',
1782 totalProperty : 'total',
1784 '|xns' : 'Roo.data',
1785 xtype : 'JsonReader'
1790 dataIndex : 'ipshead_name',
1791 header : _this._strings['49ee3087348e8d44e1feda1917443987'] /* Name */,
1792 renderer : function(v) { return String.format('{0}', v); },
1795 '|xns' : 'Roo.grid',
1796 xtype : 'ColumnModel'
1799 dataIndex : 'ipshead_descrip',
1800 header : _this._strings['b5a7adde1af5c87d7fd797b6245c2a39'] /* Description */,
1801 renderer : function(v) { return String.format('{0}', v); },
1804 '|xns' : 'Roo.grid',
1805 xtype : 'ColumnModel'
1808 dataIndex : 'ipshead_curr_id_curr_name',
1809 header : _this._strings['386c339d37e737a436499d423a77df0c'] /* Currency */,
1810 renderer : function(v) { return String.format('{0}', v); },
1813 '|xns' : 'Roo.grid',
1814 xtype : 'ColumnModel'
1818 dataIndex : 'ipshead_ipsitem_price',
1819 header : _this._strings['3601146c4e948c32b6424d2c0a7f0118'] /* Price */,
1820 renderer : function(v) { return String.format('{0}', Roo.util.Format.number(v*1,2)); },
1823 '|xns' : 'Roo.grid',
1824 xtype : 'ColumnModel',
1827 '|xns' : 'Roo.grid',
1828 xtype : 'GridEditor',
1830 cls : 'align-right',
1831 decimalPrecision : 2,
1833 '|xns' : 'Roo.form',
1834 xtype : 'NumberField'
1843 fitContainer : true,
1846 tableName : 'itemsrc',
1847 title : _this._strings['1814d65a76028fdfbadab64a5a8076df'] /* Suppliers */,
1850 xtype : 'GridPanel',
1852 activate : function() {
1853 _this.itemsrcpanel = this;
1855 try { if (MODULE.isBuilder) {
1859 var id = _this.form.findField('item_id').getValue() * 1;
1861 Roo.MessageBox.alert("Save First", "Save the item first, before adding suppliers");
1862 _this.dialog.layout.getRegion('center').showPanel(0);
1866 var type = _this.form.findField('item_type').getValue();
1869 Roo.MessageBox.alert("Error", "Can't add suppliers to kit item");
1870 _this.dialog.layout.getRegion('center').showPanel(0);
1874 if (_this.itemsrcgrid) {
1875 _this.itemsrcgrid.footer.onClick('first');
1880 autoExpandColumn : 'itemsrc_comments',
1884 '|xns' : 'Roo.grid',
1885 xtype : 'EditorGrid',
1887 afteredit : function (e)
1893 _this.itemsrcgrid = this;
1895 if (_this.itemsrcpanel.active) {
1896 this.footer.onClick('first');
1899 rowdblclick : function (_self, rowIndex, e)
1901 if (!_this.dialog) return;
1902 _this.dialog.show( this.getDataSource().getAt(rowIndex).data, function() {
1903 _this.grid.footer.onClick('first');
1909 displayMsg : _this._strings['7f841b4d2f7280eb82318988c6d649d1'] /* Displaying itemsrc{0} - {1} of {2} */,
1910 emptyMsg : _this._strings['19df363d15888baa395364fbcd230c05'] /* No itemsrc found */,
1914 xtype : 'PagingToolbar'
1922 cls : 'x-btn-text-icon',
1923 icon : Roo.rootURL + 'images/default/dd/drop-add.gif',
1924 text : _this._strings['ec211f7c20af43e742bf2570c3cb84f9'] /* Add */,
1926 '|xns' : 'Roo.Toolbar',
1932 Roo.log("add presed");
1935 var grid = _this.itemsrcgrid;
1937 // uses form defaults or last row value.
1938 var nr = grid.ds.reader.newRow({
1940 itemsrc_item_id : _this.form.findField('item_id').getValue(),
1941 itemsrc_vend_id : 0,
1942 itemsrc_vend_id_vend_name : '',
1943 itemsrc_vend_item_number : '',
1944 itemsrc_vend_item_descrip : '',
1945 itemsrc_comments : '',
1946 itemsrc_vend_uom : 'EA',
1947 itemsrc_invvendoruomratio : 1.0,
1948 itemsrc_minordqty : 0,
1949 itemsrc_multordqty : 0,
1950 itemsrc_leadtime : 30,
1951 itemsrc_ranking : 0,
1952 itemsrc_active : true,
1953 itemsrc_manuf_name : '',
1954 itemsrc_manuf_item_number : '',
1955 itemsrc_manuf_item_descrip: '',
1956 itemsrc_default : true,
1957 itemsrc_upccode : ''
1961 grid.ds.insert(0, nr);
1962 grid.startEditing(0, 0); // type..
1971 sortInfo : { field : 'itemsrc_vend_id_vend_name', direction: 'ASC' },
1973 '|xns' : 'Roo.data',
1976 beforeload : function (_self, o)
1979 var id = 1 * _this.form.findField('item_id').getValue();
1984 o.params.itemsrc_item_id = id;
1986 update : function (_self, record, operation)
1991 if (operation != 'commit') {
1994 if (record.data.itemsrc_vend_id * 1 < 1) {
1995 return; // do not save.
1997 if (record.data.itemsrc_id * 1 < 0) {
1998 return; // do not save. -- updating at present...
2001 var p = Roo.apply({}, record.data);
2002 record.set('itemsrc_id', -1);
2005 url : baseURL + '/Roo/Itemsrc',
2008 success: function(res) {
2009 if (record.data.itemsrc_id *1 < 1) {
2010 record.set('itemsrc_id', res.data.itemsrc_id);
2020 url : baseURL + '/Roo/itemsrc.php',
2022 '|xns' : 'Roo.data',
2028 'name': 'itemsrc_id',
2032 'name': 'itemsrc_item_id',
2036 'name': 'itemsrc_item_id',
2040 'name': 'itemsrc_vend_id',
2044 'name': 'itemsrc_vend_id',
2048 'name': 'itemsrc_vend_item_number',
2052 'name': 'itemsrc_vend_item_descrip',
2056 'name': 'itemsrc_comments',
2060 'name': 'itemsrc_vend_uom',
2064 'name': 'itemsrc_invvendoruomratio',
2068 'name': 'itemsrc_minordqty',
2072 'name': 'itemsrc_multordqty',
2076 'name': 'itemsrc_leadtime',
2080 'name': 'itemsrc_ranking',
2084 'name': 'itemsrc_active',
2088 'name': 'itemsrc_manuf_name',
2092 'name': 'itemsrc_manuf_item_number',
2096 'name': 'itemsrc_manuf_item_descrip',
2100 'name': 'itemsrc_default',
2104 'name': 'itemsrc_upccode',
2110 totalProperty : 'total',
2112 '|xns' : 'Roo.data',
2113 xtype : 'JsonReader'
2118 dataIndex : 'itemsrc_vend_id',
2119 header : _this._strings['ec9ceefe0c19f4c029008c23e3c947b7'] /* Vendor */,
2120 renderer : function(v,x,r) { return String.format('{0}', r.data.itemsrc_vend_id_vend_name); },
2123 '|xns' : 'Roo.grid',
2124 xtype : 'ColumnModel',
2127 '|xns' : 'Roo.grid',
2128 xtype : 'GridEditor',
2131 displayField : 'vend_name',
2133 emptyText : _this._strings['7996af9149ed376ce252e35c4da7146b'] /* Select Vendor */,
2134 forceSelection : true,
2135 hiddenName : 'itemsrc_vend_id',
2137 loadingText : _this._strings['1243daf593fa297e07ab03bf06d925af'] /* Searching... */,
2139 name : 'itemsrc_vend_id_vend_name',
2141 qtip : _this._strings['dd24f967299e81b9603cb071693d5c32'] /* Select vendinfo */,
2142 queryParam : 'q[search]',
2143 selectOnFocus : true,
2144 tpl : '<div class=\"x-grid-cell-text x-btn button\"><b>{vend_name}</b> </div>',
2145 triggerAction : 'all',
2147 valueField : 'vend_id',
2150 '|xns' : 'Roo.form',
2154 sortInfo : { direction : 'ASC', field: 'id' },
2156 '|xns' : 'Roo.data',
2159 beforeload : function (_self, o){
2160 o.params = o.params || {};
2166 url : baseURL + '/Roo/vendinfo.php',
2168 '|xns' : 'Roo.data',
2172 fields : [{"name":"id","type":"int"},{"name":"vend_name","type":"string"}],
2175 totalProperty : 'total',
2177 '|xns' : 'Roo.data',
2178 xtype : 'JsonReader'
2185 dataIndex : 'itemsrc_vend_item_number',
2186 header : _this._strings['e5353fc67b122d1b42181073b46cd060'] /* Vendor Ref# */,
2187 renderer : function(v) { return String.format('{0}', v); },
2190 '|xns' : 'Roo.grid',
2191 xtype : 'ColumnModel',
2194 '|xns' : 'Roo.grid',
2195 xtype : 'GridEditor',
2198 '|xns' : 'Roo.form',
2204 dataIndex : 'itemsrc_comments',
2205 header : _this._strings['8413c683b4b27cc3f4dbd4c90329d8ba'] /* Comments */,
2206 renderer : function(v) { return String.format('{0}', v); },
2209 '|xns' : 'Roo.grid',
2210 xtype : 'ColumnModel',
2213 '|xns' : 'Roo.grid',
2214 xtype : 'GridEditor',
2217 '|xns' : 'Roo.form',
2223 dataIndex : 'itemsrc_vend_uom',
2224 header : _this._strings['bb8913cd17d59f182acc7be1020007b7'] /* UOM */,
2225 renderer : function(v) { return String.format('{0}', v); },
2228 '|xns' : 'Roo.grid',
2229 xtype : 'ColumnModel'
2233 dataIndex : 'itemsrc_minordqty',
2234 header : _this._strings['7be1fa478799242847d4ef861ff6f8e1'] /* Min Qty */,
2235 renderer : function(v) { return String.format('{0}', v); },
2238 '|xns' : 'Roo.grid',
2239 xtype : 'ColumnModel',
2242 '|xns' : 'Roo.grid',
2243 xtype : 'GridEditor',
2245 decimalPrecision : 0,
2248 '|xns' : 'Roo.form',
2249 xtype : 'NumberField'
2255 dataIndex : 'itemsrc_leadtime',
2256 header : _this._strings['0ac9012a8c03a76ee76f04321b3b7fda'] /* Lead time */,
2257 renderer : function(v) { return String.format('{0}', v); },
2260 '|xns' : 'Roo.grid',
2261 xtype : 'ColumnModel',
2264 '|xns' : 'Roo.grid',
2265 xtype : 'GridEditor',
2267 decimalPrecision : 0,
2270 '|xns' : 'Roo.form',
2271 xtype : 'NumberField'
2276 dataIndex : 'itemsrc_active',
2277 header : _this._strings['4d3d769b812b6faa6b76e1a8abaece2d'] /* Active */,
2278 renderer : function(v) { return String.format('{0}', v); },
2281 '|xns' : 'Roo.grid',
2282 xtype : 'ColumnModel'
2289 fitContainer : true,
2292 tableName : 'events',
2293 title : _this._strings['16d2b386b2034b9488996466aaae0b57'] /* History */,
2296 xtype : 'GridPanel',
2298 activate : function() {
2299 _this.hpanel = this;
2301 _this.hgrid.footer.onClick('first');
2306 autoExpandColumn : 'remarks',
2309 '|xns' : 'Roo.grid',
2315 if (_this.hpanel.active) {
2316 this.footer.onClick('first');
2322 displayMsg : _this._strings['089ba2b5edc96565fc22c584ecfbb1a6'] /* Displaying events{0} - {1} of {2} */,
2323 emptyMsg : _this._strings['90e4ac2e5a22e53df63b6b186d8727ba'] /* No Events found */,
2327 xtype : 'PagingToolbar'
2331 sortInfo : { field : 'event_when', direction: 'DESC' },
2333 '|xns' : 'Roo.data',
2336 beforeload : function (_self, options)
2338 options.params = options.params || {};
2340 options.params.on_table = 'item';
2341 options.params.on_id = _this.form.findField('item_id').getValue();
2346 url : baseURL + '/Roo/events.php',
2348 '|xns' : 'Roo.data',
2354 'name': 'event_when',
2366 'name': 'person_id_name',
2376 totalProperty : 'total',
2378 '|xns' : 'Roo.data',
2379 xtype : 'JsonReader'
2384 dataIndex : 'event_when',
2385 header : _this._strings['820dbd2b8f606aff866c0bbfb6b737c1'] /* Changed */,
2386 renderer : function(v) { return String.format('{0}', v ? v.format('d/M/Y H:i:s') : ''); },
2389 '|xns' : 'Roo.grid',
2390 xtype : 'ColumnModel'
2393 dataIndex : 'action',
2394 header : _this._strings['004bf6c9a40003140292e97330236c53'] /* Action */,
2395 renderer : function(v,x,r) { return String.format('{0} - {1}', v, r.data.on_table); },
2398 '|xns' : 'Roo.grid',
2399 xtype : 'ColumnModel'
2402 dataIndex : 'ipaddr',
2403 header : _this._strings['5b8c99dad1893a85076709b2d3c2d2d0'] /* IP Address */,
2404 renderer : function(v) { return String.format('{0}', v); },
2407 '|xns' : 'Roo.grid',
2408 xtype : 'ColumnModel'
2411 dataIndex : 'person_id_name',
2412 header : _this._strings['4ee972120bcda675f75222c87cb9d356'] /* Who */,
2413 renderer : function(v) { return String.format('{0}', v); },
2416 '|xns' : 'Roo.grid',
2417 xtype : 'ColumnModel'
2420 dataIndex : 'remarks',
2421 header : _this._strings['f4c6f851b00d5518bf888815de279aba'] /* Notes */,
2422 renderer : function(v) { return String.format('{0}', v); },
2425 '|xns' : 'Roo.grid',
2426 xtype : 'ColumnModel'