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"
35 show : function(data, cb)
43 this.dialog.show(this.data._el);
46 this.form.setValues(data);
47 this.form.fireEvent('actioncomplete', this.form, { type: 'setdata', data: data });
55 this.dialog = Roo.factory({
56 xtype : 'LayoutDialog',
61 title : _this._strings['ddb016a244ff2b895e69d25fb3b5f780'] /* Edit / Create Projects */,
66 xtype : 'LayoutRegion',
73 text : _this._strings['ea4788705e6873b424c65e91c2846b19'] /* Cancel */,
75 click : function (_self, e)
85 text : _this._strings['c9cc8cce247e49bae79f15173ce97354'] /* Save */,
87 click : function (_self, e)
92 _this.dialog.el.mask("Saving");
93 _this.form.doAction("submit");
103 xtype : 'ContentPanel',
111 style : 'margin:10px;',
112 url : baseURL + '/Roo/Projects.php',
114 actioncomplete : function(_self,action)
116 if (action.type == 'setdata') {
117 //_this.dialog.el.mask("Loading");
118 //this.load({ method: 'GET', params: { '_id' : _this.data.id }});
121 if (action.type == 'load') {
122 _this.dialog.el.unmask();
125 if (action.type =='submit') {
127 _this.dialog.el.unmask();
130 if (_this.callback) {
131 _this.callback.call(_this, _this.form.getValues());
137 rendered : function (form)
147 fieldLabel : _this._strings['ca0dbad92a874b2f69b549293387925e'] /* Code */,
155 fieldLabel : _this._strings['8e3a42158ee70b67cf55b33e2789a9e5'] /* Project Name */,
157 qtip : _this._strings['d1847fa47ea6bc047b413947463262ab'] /* Enter Project Name */,
165 displayField : 'desc',
167 emptyText : _this._strings['b5b20a9df20ea61c1cc0485f5e83891e'] /* Select Project Type */,
168 fieldLabel : _this._strings['245fe794333c2b0d5c513129b346b93f'] /* Project Type */,
169 forceSelection : true,
172 loadingText : _this._strings['1243daf593fa297e07ab03bf06d925af'] /* Searching... */,
176 qtip : _this._strings['b5b20a9df20ea61c1cc0485f5e83891e'] /* Select Project Type */,
177 queryParam : 'query[name]',
178 selectOnFocus : true,
179 tpl : '<div class=\"x-grid-cell-text x-btn button\"><b>{desc}</b> </div>',
180 triggerAction : 'all',
187 xtype : 'SimpleStore',
188 data : [ [ 'U' , "Project (Unconfirmed)" ],
190 [ 'C' , "Project (Closed)" ],
191 [ 'N' , "Non-Project" ],
192 [ 'X' , "Non-Project (Closed)" ]
194 fields : [ 'code', 'desc' ],
202 displayField : 'name',
204 emptyText : _this._strings['99b344c8ae43e3e7213862b8f35c4e51'] /* Select Company */,
205 fieldLabel : _this._strings['577d7068826de925ea2aec01dbadf5e4'] /* Client */,
206 forceSelection : true,
207 hiddenName : 'client_id',
209 loadingText : _this._strings['1243daf593fa297e07ab03bf06d925af'] /* Searching... */,
211 name : 'client_id_name',
213 qtip : _this._strings['9675747b5ab12d05f18518761e68a533'] /* Select Companies */,
214 queryParam : 'query[name]',
215 selectOnFocus : true,
216 tpl : '<div class=\"x-grid-cell-text x-btn button\"><b>{name}</b> </div>',
217 triggerAction : 'all',
222 add : function (combo)
224 Pman.Dialog.Companies.show( { id: 0 }, function(data) {
225 _this.form.setValues({
227 client_id_name : data.name
237 sortInfo : { direction : 'ASC', field: 'name' },
239 beforeload : function (_self, o){
240 o.params = o.params || {};
243 o.params['query[group_pulldown]'] = 1;
251 url : baseURL + '/Roo/core_company',
256 xtype : 'JsonReader',
257 fields : [{"name":"id","type":"int"},{"name":"code","type":"string"}],
260 totalProperty : 'total',
269 displayField : 'name',
271 emptyText : _this._strings['ab83ccde6764ca581702f38d79834615'] /* Select Team */,
272 fieldLabel : _this._strings['ac848fa228f49ba2b8a5fbd76596817d'] /* Team */,
273 forceSelection : true,
274 hiddenName : 'team_id',
276 loadingText : _this._strings['1243daf593fa297e07ab03bf06d925af'] /* Searching... */,
278 name : 'team_id_name',
280 qtip : _this._strings['ab83ccde6764ca581702f38d79834615'] /* Select Team */,
281 queryParam : 'query[name]',
282 selectOnFocus : true,
283 tpl : '<div class=\"x-grid-cell-text x-btn button\"><b>{name}</b> </div>',
284 triggerAction : 'all',
293 sortInfo : { direction : 'ASC', field: 'id' },
295 beforeload : function (_self, o){
296 o.params = o.params || {};
305 url : baseURL + '/Roo/Groups.php',
310 xtype : 'JsonReader',
311 fields : [{"name":"id","type":"int"},{"name":"name","type":"string"}],
314 totalProperty : 'total',
322 fieldLabel : _this._strings['24f9e53eb92c0995d04433c1f7a4c9c0'] /* File location */,
323 name : 'file_location',
330 fieldLabel : _this._strings['231bc72756b5e6de492aaaa1577f61b1'] /* Remarks */,
339 legend : _this._strings['1a11b1adc359c03db0ca798a00e2632c'] /* Opened */,
345 altFormats : 'Y-m-d|d/m/Y',
346 fieldLabel : _this._strings['ca528d836417871a349312db705a1951'] /* Open date */,
356 displayField : 'name',
358 emptyText : _this._strings['340c2ee497b85d5954b01c64de7f44f6'] /* Select Person */,
359 fieldLabel : _this._strings['223aad18ce30620a724d8a97021ce26e'] /* Open by */,
360 forceSelection : true,
361 hiddenName : 'open_by',
363 loadingText : _this._strings['1243daf593fa297e07ab03bf06d925af'] /* Searching... */,
365 name : 'open_by_name',
367 qtip : _this._strings['340c2ee497b85d5954b01c64de7f44f6'] /* Select Person */,
368 queryParam : 'query[name]',
369 selectOnFocus : true,
370 tpl : '<div class=\"x-grid-cell-text x-btn button\"><b>{name}</b> </div>',
371 triggerAction : 'all',
380 sortInfo : { direction : 'ASC', field: 'id' },
382 beforeload : function (_self, o){
383 o.params = o.params || {};
392 url : baseURL + '/Roo/core_person',
397 xtype : 'JsonReader',
398 fields : [{"name":"id","type":"int"},{"name":"name","type":"string"}],
401 totalProperty : 'total',