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.CoreProject = {
10 '99b344c8ae43e3e7213862b8f35c4e51' :"Select Company",
11 '231bc72756b5e6de492aaaa1577f61b1' :"Remarks",
12 '577d7068826de925ea2aec01dbadf5e4' :"Client",
13 'ca528d836417871a349312db705a1951' :"Open date",
14 'ddb016a244ff2b895e69d25fb3b5f780' :"Edit / Create Projects",
15 'b5b20a9df20ea61c1cc0485f5e83891e' :"Select Project Type",
16 '1243daf593fa297e07ab03bf06d925af' :"Searching...",
17 'ea4788705e6873b424c65e91c2846b19' :"Cancel",
18 '9675747b5ab12d05f18518761e68a533' :"Select Companies",
19 'ac848fa228f49ba2b8a5fbd76596817d' :"Team",
20 '24f9e53eb92c0995d04433c1f7a4c9c0' :"File location",
21 'd1847fa47ea6bc047b413947463262ab' :"Enter Project Name",
22 '340c2ee497b85d5954b01c64de7f44f6' :"Select Person",
23 '1a11b1adc359c03db0ca798a00e2632c' :"Opened",
24 '8e3a42158ee70b67cf55b33e2789a9e5' :"Project Name",
25 'ca0dbad92a874b2f69b549293387925e' :"Code",
26 '245fe794333c2b0d5c513129b346b93f' :"Project Type",
27 'ab83ccde6764ca581702f38d79834615' :"Select Team",
28 'c9cc8cce247e49bae79f15173ce97354' :"Save",
29 '223aad18ce30620a724d8a97021ce26e' :"Open by"
32 'name_qtip' : 'd1847fa47ea6bc047b413947463262ab' /* Enter Project Name */ ,
33 'client_id_name_emptyText' : '99b344c8ae43e3e7213862b8f35c4e51' /* Select Company */ ,
34 'client_id_name_fieldLabel' : '577d7068826de925ea2aec01dbadf5e4' /* Client */ ,
35 'type_desc_emptyText' : 'b5b20a9df20ea61c1cc0485f5e83891e' /* Select Project Type */ ,
36 'type_desc_fieldLabel' : '245fe794333c2b0d5c513129b346b93f' /* Project Type */ ,
37 'type_desc_qtip' : 'b5b20a9df20ea61c1cc0485f5e83891e' /* Select Project Type */ ,
38 'client_id_name_loadingText' : '1243daf593fa297e07ab03bf06d925af' /* Searching... */ ,
39 'code_fieldLabel' : 'ca0dbad92a874b2f69b549293387925e' /* Code */ ,
40 'open_by_name_qtip' : '340c2ee497b85d5954b01c64de7f44f6' /* Select Person */ ,
41 'name_fieldLabel' : '8e3a42158ee70b67cf55b33e2789a9e5' /* Project Name */ ,
42 'team_id_name_loadingText' : '1243daf593fa297e07ab03bf06d925af' /* Searching... */ ,
43 'remarks_fieldLabel' : '231bc72756b5e6de492aaaa1577f61b1' /* Remarks */ ,
44 'open_by_name_emptyText' : '340c2ee497b85d5954b01c64de7f44f6' /* Select Person */ ,
45 'open_by_name_fieldLabel' : '223aad18ce30620a724d8a97021ce26e' /* Open by */ ,
46 'team_id_name_fieldLabel' : 'ac848fa228f49ba2b8a5fbd76596817d' /* Team */ ,
47 'open_date_fieldLabel' : 'ca528d836417871a349312db705a1951' /* Open date */ ,
48 'team_id_name_qtip' : 'ab83ccde6764ca581702f38d79834615' /* Select Team */ ,
49 'team_id_name_emptyText' : 'ab83ccde6764ca581702f38d79834615' /* Select Team */ ,
50 'file_location_fieldLabel' : '24f9e53eb92c0995d04433c1f7a4c9c0' /* File location */ ,
51 'open_by_name_loadingText' : '1243daf593fa297e07ab03bf06d925af' /* Searching... */ ,
52 'type_desc_loadingText' : '1243daf593fa297e07ab03bf06d925af' /* Searching... */ ,
53 'client_id_name_qtip' : '9675747b5ab12d05f18518761e68a533' /* Select Companies */
59 show : function(data, cb)
67 this.dialog.show(this.data._el);
70 this.form.setValues(data);
71 this.form.fireEvent('actioncomplete', this.form, { type: 'setdata', data: data });
79 this.dialog = Roo.factory({
80 xtype : 'LayoutDialog',
85 title : _this._strings['ddb016a244ff2b895e69d25fb3b5f780'] /* Edit / Create Projects */,
90 xtype : 'LayoutRegion',
97 text : _this._strings['ea4788705e6873b424c65e91c2846b19'] /* Cancel */,
99 click : function (_self, e)
109 text : _this._strings['c9cc8cce247e49bae79f15173ce97354'] /* Save */,
111 click : function (_self, e)
117 _this.form.doAction("submit");
127 xtype : 'ContentPanel',
135 style : 'margin:10px;',
136 url : baseURL + '/Roo/Projects.php',
138 actioncomplete : function(_self,action)
140 if (action.type == 'setdata') {
141 //_this.dialog.el.mask("Loading");
142 //this.load({ method: 'GET', params: { '_id' : _this.data.id }});
145 if (action.type == 'load') {
146 _this.dialog.el.unmask();
149 if (action.type =='submit') {
151 _this.dialog.el.unmask();
154 if (_this.callback) {
155 _this.callback.call(_this, _this.form.getValues());
161 rendered : function (form)
171 fieldLabel : _this._strings['ca0dbad92a874b2f69b549293387925e'] /* Code */,
179 fieldLabel : _this._strings['8e3a42158ee70b67cf55b33e2789a9e5'] /* Project Name */,
181 qtip : _this._strings['d1847fa47ea6bc047b413947463262ab'] /* Enter Project Name */,
189 displayField : 'desc',
191 emptyText : _this._strings['b5b20a9df20ea61c1cc0485f5e83891e'] /* Select Project Type */,
192 fieldLabel : _this._strings['245fe794333c2b0d5c513129b346b93f'] /* Project Type */,
193 forceSelection : true,
196 loadingText : _this._strings['1243daf593fa297e07ab03bf06d925af'] /* Searching... */,
200 qtip : _this._strings['b5b20a9df20ea61c1cc0485f5e83891e'] /* Select Project Type */,
201 queryParam : 'query[name]',
202 selectOnFocus : true,
203 tpl : '<div class=\"x-grid-cell-text x-btn button\"><b>{desc}</b> </div>',
204 triggerAction : 'all',
211 xtype : 'SimpleStore',
212 data : [ [ 'U' , "Project (Unconfirmed)" ],
214 [ 'C' , "Project (Closed)" ],
215 [ 'N' , "Non-Project" ],
216 [ 'X' , "Non-Project (Closed)" ]
218 fields : [ 'code', 'desc' ],
226 displayField : 'name',
228 emptyText : _this._strings['99b344c8ae43e3e7213862b8f35c4e51'] /* Select Company */,
229 fieldLabel : _this._strings['577d7068826de925ea2aec01dbadf5e4'] /* Client */,
230 forceSelection : true,
231 hiddenName : 'client_id',
233 loadingText : _this._strings['1243daf593fa297e07ab03bf06d925af'] /* Searching... */,
235 name : 'client_id_name',
237 qtip : _this._strings['9675747b5ab12d05f18518761e68a533'] /* Select Companies */,
238 queryParam : 'query[name]',
239 selectOnFocus : true,
240 tpl : '<div class=\"x-grid-cell-text x-btn button\"><b>{name}</b> </div>',
241 triggerAction : 'all',
246 add : function (combo)
248 Pman.Dialog.Companies.show( { id: 0 }, function(data) {
249 _this.form.setValues({
251 client_id_name : data.name
261 sortInfo : { direction : 'ASC', field: 'name' },
263 beforeload : function (_self, o){
264 o.params = o.params || {};
267 o.params['query[group_pulldown]'] = 1;
275 url : baseURL + '/Roo/core_company',
280 xtype : 'JsonReader',
281 fields : [{"name":"id","type":"int"},{"name":"code","type":"string"}],
284 totalProperty : 'total',
293 displayField : 'name',
295 emptyText : _this._strings['ab83ccde6764ca581702f38d79834615'] /* Select Team */,
296 fieldLabel : _this._strings['ac848fa228f49ba2b8a5fbd76596817d'] /* Team */,
297 forceSelection : true,
298 hiddenName : 'team_id',
300 loadingText : _this._strings['1243daf593fa297e07ab03bf06d925af'] /* Searching... */,
302 name : 'team_id_name',
304 qtip : _this._strings['ab83ccde6764ca581702f38d79834615'] /* Select Team */,
305 queryParam : 'query[name]',
306 selectOnFocus : true,
307 tpl : '<div class=\"x-grid-cell-text x-btn button\"><b>{name}</b> </div>',
308 triggerAction : 'all',
317 sortInfo : { direction : 'ASC', field: 'id' },
319 beforeload : function (_self, o){
320 o.params = o.params || {};
329 url : baseURL + '/Roo/Groups.php',
334 xtype : 'JsonReader',
335 fields : [{"name":"id","type":"int"},{"name":"name","type":"string"}],
338 totalProperty : 'total',
346 fieldLabel : _this._strings['24f9e53eb92c0995d04433c1f7a4c9c0'] /* File location */,
347 name : 'file_location',
354 fieldLabel : _this._strings['231bc72756b5e6de492aaaa1577f61b1'] /* Remarks */,
363 legend : _this._strings['1a11b1adc359c03db0ca798a00e2632c'] /* Opened */,
369 altFormats : 'Y-m-d|d/m/Y',
370 fieldLabel : _this._strings['ca528d836417871a349312db705a1951'] /* Open date */,
380 displayField : 'name',
382 emptyText : _this._strings['340c2ee497b85d5954b01c64de7f44f6'] /* Select Person */,
383 fieldLabel : _this._strings['223aad18ce30620a724d8a97021ce26e'] /* Open by */,
384 forceSelection : true,
385 hiddenName : 'open_by',
387 loadingText : _this._strings['1243daf593fa297e07ab03bf06d925af'] /* Searching... */,
389 name : 'open_by_name',
391 qtip : _this._strings['340c2ee497b85d5954b01c64de7f44f6'] /* Select Person */,
392 queryParam : 'query[name]',
393 selectOnFocus : true,
394 tpl : '<div class=\"x-grid-cell-text x-btn button\"><b>{name}</b> </div>',
395 triggerAction : 'all',
404 sortInfo : { direction : 'ASC', field: 'id' },
406 beforeload : function (_self, o){
407 o.params = o.params || {};
416 url : baseURL + '/Roo/core_person',
421 xtype : 'JsonReader',
422 fields : [{"name":"id","type":"int"},{"name":"name","type":"string"}],
425 totalProperty : 'total',