1 //<script type="text/javascript">
3 // Auto generated file - created by app.Builder.js- do not edit directly (at present!)
5 Pman.Dialog.MTrackMilestone = {
10 show : function(data, cb)
18 this.dialog.show(this.data._el);
21 this.form.setValues(data);
22 this.form.fireEvent('actioncomplete', this.form, { type: 'setdata', data: data });
30 this.dialog = Roo.factory({
31 xtype: 'LayoutDialog',
37 title : "Edit / Create mtrack_milestone",
41 xtype: 'ContentPanel',
49 actioncomplete : function(_self,action)
51 if (action.type == 'setdata') {
52 //_this.dialog.el.mask("Loading");
53 //this.load({ method: 'GET', params: { '_id' : _this.data.id }});
56 if (action.type == 'load') {
57 _this.dialog.el.unmask();
60 if (action.type =='submit') {
62 _this.dialog.el.unmask();
66 _this.callback.call(_this, _this.form.getValues());
72 rendered : function (form)
78 style : 'margin:10px;',
79 url : baseURL + '/Roo/mtrack_milestone.php',
91 fieldLabel : 'Description',
99 fieldLabel : 'Startdate',
106 fieldLabel : 'Duedate',
113 fieldLabel : 'Completed',
120 allowBlank : 'false',
122 emptyText : "Select mtrack_change",
123 forceSelection : true,
125 loadingText : "Searching...",
128 qtip : "Select mtrack_change",
129 selectOnFocus : true,
130 triggerAction : 'all',
133 tpl : '<div class="x-grid-cell-text x-btn button"><b>{ontable}</b> </div>',
134 queryParam : 'query[ontable]',
135 fieldLabel : 'Deleted',
137 displayField : 'ontable',
138 hiddenName : 'deleted',
139 name : 'deleted_ontable',
144 sortInfo : { direction : 'ASC', field: 'id' },
146 beforeload : function (_self, o){
147 o.params = o.params || {};
155 url : baseURL + '/Roo/mtrack_change.php'
162 totalProperty : 'total',
163 fields : [{"name":"id","type":"int"},{"name":"ontable","type":"string"}]
170 allowBlank : 'false',
172 emptyText : "Select mtrack_change",
173 forceSelection : true,
175 loadingText : "Searching...",
178 qtip : "Select mtrack_change",
179 selectOnFocus : true,
180 triggerAction : 'all',
183 tpl : '<div class="x-grid-cell-text x-btn button"><b>{ontable}</b> </div>',
184 queryParam : 'query[ontable]',
185 fieldLabel : 'Created',
187 displayField : 'ontable',
188 hiddenName : 'created',
189 name : 'created_ontable',
194 sortInfo : { direction : 'ASC', field: 'id' },
196 beforeload : function (_self, o){
197 o.params = o.params || {};
205 url : baseURL + '/Roo/mtrack_change.php'
212 totalProperty : 'total',
213 fields : [{"name":"id","type":"int"},{"name":"ontable","type":"string"}]
220 allowBlank : 'false',
222 emptyText : "Select mtrack_change",
223 forceSelection : true,
225 loadingText : "Searching...",
228 qtip : "Select mtrack_change",
229 selectOnFocus : true,
230 triggerAction : 'all',
233 tpl : '<div class="x-grid-cell-text x-btn button"><b>{ontable}</b> </div>',
234 queryParam : 'query[ontable]',
235 fieldLabel : 'Updated',
237 displayField : 'ontable',
238 hiddenName : 'updated',
239 name : 'updated_ontable',
244 sortInfo : { direction : 'ASC', field: 'id' },
246 beforeload : function (_self, o){
247 o.params = o.params || {};
255 url : baseURL + '/Roo/mtrack_change.php'
262 totalProperty : 'total',
263 fields : [{"name":"id","type":"int"},{"name":"ontable","type":"string"}]
270 fieldLabel : 'Project',
285 xtype: 'LayoutRegion',
293 click : function (_self, e)
304 click : function (_self, e)
309 _this.dialog.el.mask("Saving");
310 _this.form.doAction("submit");