Worked on fixing issues related to ExtJs
This commit is contained in:
@@ -167,11 +167,6 @@ if ( isset ($_REQUEST['action']) ) {
|
||||
$sOutput = $oJSON->encode($sOutput);
|
||||
echo $sOutput;
|
||||
break;
|
||||
case 'process_Edit':
|
||||
$sOutput = $oProcessMap->editProcessNew($oData->pro_uid);
|
||||
$sOutput = $oJSON->encode($sOutput);
|
||||
echo $sOutput;
|
||||
break;
|
||||
case 'loadCategory':
|
||||
$sOutput = $oProcessMap->loadProcessCategory();
|
||||
$sOutput = $oJSON->encode($sOutput);
|
||||
|
||||
@@ -218,12 +218,8 @@ switch($_GET['action'])
|
||||
array_shift($rows);
|
||||
break;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
case 'process_Edit':
|
||||
$rows = $oProcessMap->editProcessNew($_GET['pid']);
|
||||
}
|
||||
//$result['totalCount'] = count($rows);
|
||||
//$result['data'] = $rows;
|
||||
|
||||
@@ -1850,3 +1850,129 @@ MyWorkflow.prototype.redrawAnnotationText = function(fig,sType)
|
||||
MyWorkflow.prototype.createUIDButton = function (value) {
|
||||
Ext.MessageBox.alert ('Info','UID: '+value);
|
||||
}
|
||||
|
||||
MyWorkflow.prototype.ExtVariables = function(fieldName,rowData)
|
||||
{
|
||||
var pro_uid = workflow.getUrlVars();
|
||||
var varFields = Ext.data.Record.create([
|
||||
{
|
||||
name: 'variable',
|
||||
type: 'string'
|
||||
},
|
||||
{
|
||||
name: 'type',
|
||||
type: 'string'
|
||||
},
|
||||
{
|
||||
name: 'label',
|
||||
type: 'string'
|
||||
}
|
||||
]);
|
||||
var varStore = '';
|
||||
varStore = new Ext.data.JsonStore({
|
||||
root : 'data',
|
||||
totalProperty: 'totalCount',
|
||||
idProperty : 'gridIndex',
|
||||
remoteSort : true,
|
||||
fields : varFields,
|
||||
proxy : new Ext.data.HttpProxy({
|
||||
url : 'proxyVariable?pid='+pro_uid+'&sFieldName=form[CTO_CONDITION]&sSymbol=@@'
|
||||
})
|
||||
});
|
||||
//varStore.load();
|
||||
|
||||
var varColumns = new Ext.grid.ColumnModel({
|
||||
columns: [
|
||||
new Ext.grid.RowNumberer(),
|
||||
{
|
||||
id: 'FLD_NAME',
|
||||
header: 'Variable',
|
||||
dataIndex: 'variable',
|
||||
width: 170,
|
||||
editable: false,
|
||||
sortable: true
|
||||
},{
|
||||
id: 'PRO_VARIABLE',
|
||||
header: 'Label',
|
||||
dataIndex: 'label',
|
||||
width: 150,
|
||||
sortable: true
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
var varForm = new Ext.FormPanel({
|
||||
labelWidth: 100,
|
||||
monitorValid : true,
|
||||
width : 400,
|
||||
height : 350,
|
||||
renderer: function(val){return '<table border=1> <tr> <td> @@ </td> <td> Replace the value in quotes </td> </tr> </table>';},
|
||||
items:
|
||||
{
|
||||
xtype:'tabpanel',
|
||||
activeTab: 0,
|
||||
defaults:{
|
||||
autoHeight:true
|
||||
},
|
||||
items:[{
|
||||
title:'All Variables',
|
||||
id :'allVar',
|
||||
layout:'form',
|
||||
listeners: {
|
||||
activate: function(tabPanel){
|
||||
// use {@link Ext.data.HttpProxy#setUrl setUrl} to change the URL for *just* this request.
|
||||
var link = 'proxyVariable?pid='+pro_uid+'&type='+tabPanel.id+'&sFieldName=form[CTO_CONDITION]&sSymbol=@@';
|
||||
varStore.proxy.setUrl(link, true);
|
||||
varStore.load();
|
||||
}
|
||||
},
|
||||
items:[{
|
||||
xtype: 'grid',
|
||||
ds: varStore,
|
||||
cm: varColumns,
|
||||
width: 380,
|
||||
autoHeight: true,
|
||||
//plugins: [editor],
|
||||
//loadMask : true,
|
||||
loadingText : 'Loading...',
|
||||
border: false,
|
||||
listeners: {
|
||||
//rowdblclick: alert("ok"),
|
||||
rowdblclick: function(){
|
||||
var getObjectGridRow = workflow.gridObjectRowSelected;
|
||||
var FieldSelected = workflow.gridField;
|
||||
|
||||
//getting selected row of variables
|
||||
var rowSelected = this.getSelectionModel().getSelected();
|
||||
var rowLabel = rowSelected.data.variable;
|
||||
|
||||
//Assigned new object with condition
|
||||
if(typeof rowData.colModel != 'undefined')
|
||||
rowData.colModel.config[3].editor.setValue(rowLabel);
|
||||
//Assigning / updating Condition for a row
|
||||
else
|
||||
rowData[0].set(fieldName,rowLabel);
|
||||
}
|
||||
}
|
||||
}]
|
||||
}]
|
||||
}
|
||||
});
|
||||
var window = new Ext.Window({
|
||||
title: 'Variables',
|
||||
collapsible: false,
|
||||
maximizable: false,
|
||||
scrollable: true,
|
||||
width: 400,
|
||||
height: 350,
|
||||
minWidth: 200,
|
||||
minHeight: 150,
|
||||
autoScroll: true,
|
||||
layout: 'fit',
|
||||
plain: true,
|
||||
buttonAlign: 'center',
|
||||
items: [varForm]
|
||||
});
|
||||
window.show();
|
||||
|
||||
}
|
||||
|
||||
@@ -6,32 +6,33 @@ ProcessMapContext.prototype.type="ProcessMap";
|
||||
|
||||
ProcessMapContext.prototype.editProcess= function()
|
||||
{
|
||||
var editProcessData = workflow.processEdit;
|
||||
var processCategoryData = workflow.processCategory;
|
||||
var debug = editProcessData.PRO_DEBUG;
|
||||
var pro_category = editProcessData.PRO_CATEGORY;
|
||||
var pro_category_label = editProcessData.PRO_CATEGORY_LABEL;
|
||||
var checkDebug = true;
|
||||
if(debug == '0')
|
||||
checkDebug = false;
|
||||
|
||||
var processCalendar = new Array();
|
||||
processCalendar[0] = new Array();
|
||||
processCalendar[1] = new Array();
|
||||
|
||||
processCalendar[0].name = 'None';
|
||||
processCalendar[0].value = '';
|
||||
processCalendar[1].name = 'Default';
|
||||
processCalendar[1].value = '00000000000000000000000000000001';
|
||||
var pro_uid = workflow.getUrlVars();
|
||||
//var editProcessData = workflow.processEdit;
|
||||
// var processCategoryData = workflow.processCategory;
|
||||
//var debug = editProcessData.PRO_DEBUG;
|
||||
// var pro_category = editProcessData.PRO_CATEGORY;
|
||||
//var pro_category_label = editProcessData.PRO_CATEGORY_LABEL;
|
||||
//var checkdebug = true;
|
||||
//if(debug == '0')
|
||||
// checkDebug = false;
|
||||
//
|
||||
// var processCalendar = new Array();
|
||||
// processCalendar[0] = new Array();
|
||||
// processCalendar[1] = new Array();
|
||||
//
|
||||
// processCalendar[0].name = 'None';
|
||||
// processCalendar[0].value = '';
|
||||
// processCalendar[1].name = 'Default';
|
||||
// processCalendar[1].value = '00000000000000000000000000000001';
|
||||
|
||||
//var processName = processInfo.title.label
|
||||
var editProcess = new Ext.FormPanel({
|
||||
labelWidth: 75, // label settings here cascade unless overridden
|
||||
frame:true,
|
||||
monitorValid : true,
|
||||
width: 500,
|
||||
frame:false,
|
||||
buttonAlign: 'center',
|
||||
//monitorValid : true,
|
||||
width: 450,
|
||||
height: 400,
|
||||
defaults: {width: 350},
|
||||
defaultType: 'textfield',
|
||||
items: [{
|
||||
xtype:'fieldset',
|
||||
@@ -43,88 +44,91 @@ ProcessMapContext.prototype.editProcess= function()
|
||||
defaultType: 'textfield',
|
||||
items: [{
|
||||
fieldLabel: 'Title',
|
||||
name: 'title',
|
||||
value: editProcessData.PRO_TITLE,
|
||||
name: 'PRO_TITLE',
|
||||
width: 300,
|
||||
//value: editProcessData.PRO_TITLE,
|
||||
allowBlank:false
|
||||
},{
|
||||
xtype: 'textarea',
|
||||
fieldLabel: 'Description',
|
||||
name: 'description',
|
||||
value: editProcessData.PRO_DESCRIPTION,
|
||||
name: 'PRO_DESCRIPTION',
|
||||
//value: editProcessData.PRO_DESCRIPTION,
|
||||
width: 300,
|
||||
height : 150
|
||||
|
||||
},{
|
||||
width: 100,
|
||||
width: 300,
|
||||
xtype: 'combo',
|
||||
mode: 'local',
|
||||
value: editProcessData.PRO_CALENDAR,
|
||||
//value: editProcessData.PRO_CALENDAR,
|
||||
forceSelection: true,
|
||||
triggerAction: 'all',
|
||||
editable: false,
|
||||
fieldLabel: 'Calendar',
|
||||
name: 'calendar',
|
||||
name: 'PRO_CALENDAR',
|
||||
hiddenName: 'calendar',
|
||||
displayField: 'name',
|
||||
valueField: 'value',
|
||||
store: new Ext.data.JsonStore({
|
||||
fields : ['name', 'value'],
|
||||
data : processCalendar
|
||||
data : [
|
||||
{name:'none', value: 'none'},
|
||||
{name:'default', value: 'default'}
|
||||
]
|
||||
})
|
||||
}, {
|
||||
width: 100,
|
||||
width: 300,
|
||||
xtype: 'combo',
|
||||
mode: 'local',
|
||||
value: editProcessData.PRO_CATEGORY,
|
||||
//value: editProcessData.PRO_CATEGORY,
|
||||
triggerAction: 'all',
|
||||
forceSelection: true,
|
||||
editable: false,
|
||||
fieldLabel: 'Category',
|
||||
name: 'category',
|
||||
name: 'PRO_CATEGORY',
|
||||
hiddenName: 'category',
|
||||
displayField: 'CATEGORY_NAME',
|
||||
valueField: 'CATEGORY_UID',
|
||||
store: new Ext.data.JsonStore({
|
||||
fields : ['CATEGORY_NAME', 'CATEGORY_UID'],
|
||||
data :processCategoryData
|
||||
fields : ['CATEGORY_NAME', 'CATEGORY_UID']
|
||||
//data :processCategoryData
|
||||
})
|
||||
},{
|
||||
xtype: 'checkbox',
|
||||
fieldLabel: 'Debug',
|
||||
name: 'debug',
|
||||
checked:checkDebug
|
||||
name: 'PRO_DEBUG',
|
||||
checked:workflow.checkdebug
|
||||
}
|
||||
]
|
||||
}],buttons: [{
|
||||
text: 'Save',
|
||||
formBind :true,
|
||||
handler: function(){
|
||||
handler: function(form, action){
|
||||
//waitMsg: 'Saving...', // Wait Message
|
||||
var fields = editProcess.items.items;
|
||||
var pro_title = fields[0].items.items[0].getValue();
|
||||
var pro_description = fields[0].items.items[1].getValue();
|
||||
var pro_calendar = fields[0].items.items[2].getValue();
|
||||
var pro_category = fields[0].items.items[3].getValue();
|
||||
var pro_debug = fields[0].items.items[4].getValue();
|
||||
if(pro_debug == true)
|
||||
pro_debug = '1';
|
||||
//var fields = editProcess.items.items;
|
||||
var getForm = editProcess.getForm().getValues();
|
||||
var pro_title = getForm.PRO_TITLE;
|
||||
var pro_description = getForm.PRO_DESCRIPTION;
|
||||
var pro_calendar = getForm.PRO_CALENDAR;
|
||||
var pro_category = getForm.PRO_CATEGORY;
|
||||
var pro_debug = getForm.PRO_DEBUG;
|
||||
|
||||
if(pro_debug == 'on')
|
||||
pro_debug = 1;
|
||||
else
|
||||
pro_debug = '0';
|
||||
|
||||
var pro_uid = workflow.getUrlVars();
|
||||
|
||||
pro_debug = 0;
|
||||
var urlparams = '?action=saveProcess&data={"PRO_UID":"'+ pro_uid +'","PRO_CALENDAR":"'+ pro_calendar +'","PRO_CATEGORY":"'+ pro_category +'","PRO_DEBUG":"'+ pro_debug +'","PRO_DESCRIPTION":"'+ pro_description +'","PRO_TITLE":"'+ pro_title +'",}';
|
||||
Ext.Ajax.request({
|
||||
url: "processes_Ajax.php"+ urlparams,
|
||||
success: function(response) {
|
||||
workflow.main.items.items[2].setTitle(fields[0].items.items[0].getValue());
|
||||
window.hide();
|
||||
},
|
||||
failure: function(){
|
||||
Ext.Msg.alert ('Failure');
|
||||
Ext.MessageBox.alert ('Status','Process Information Saved Successfully.');
|
||||
//window.hide();
|
||||
}
|
||||
|
||||
});
|
||||
window.hide();
|
||||
}
|
||||
|
||||
},{
|
||||
text: 'Cancel',
|
||||
handler: function(){
|
||||
@@ -133,16 +137,33 @@ ProcessMapContext.prototype.editProcess= function()
|
||||
}
|
||||
}]
|
||||
});
|
||||
console.log(workflow.checkdebug);
|
||||
editProcess.form.load({
|
||||
url:'proxyExtjs.php?pid='+pro_uid+'&action=process_Edit',
|
||||
method:'GET',
|
||||
waitMsg:'Loading',
|
||||
success:function(form, action) {
|
||||
if(action.result.data.PRO_DEBUG== 0)
|
||||
workflow.checkdebug = false;
|
||||
else
|
||||
workflow.checkdebug = true;
|
||||
|
||||
window.show();
|
||||
},
|
||||
failure:function(form, action) {
|
||||
Ext.MessageBox.alert('Message', 'Load failed');
|
||||
}
|
||||
});
|
||||
|
||||
editProcess.render(document.body);
|
||||
workflow.editProcessForm = editProcess;
|
||||
//workflow.editProcessForm = editProcess;
|
||||
|
||||
var window = new Ext.Window({
|
||||
title: 'Edit Process',
|
||||
collapsible: false,
|
||||
maximizable: false,
|
||||
width: 500,
|
||||
height: 400,
|
||||
width: 480,
|
||||
height: 380,
|
||||
minWidth: 300,
|
||||
minHeight: 200,
|
||||
layout: 'fit',
|
||||
@@ -163,7 +184,7 @@ ProcessMapContext.prototype.exportProcess= function()
|
||||
|
||||
var exportProcessForm = new Ext.FormPanel({
|
||||
labelWidth : 120, // label settings here cascade unless overridden
|
||||
frame : true,
|
||||
frame : false,
|
||||
monitorValid : true,
|
||||
title : '',
|
||||
width : 500,
|
||||
@@ -336,7 +357,11 @@ ProcessMapContext.prototype.processPermission= function()
|
||||
{ name: 'OP_GROUP_USER',type: 'string'},
|
||||
{ name: 'OBJ_NAME',type: 'string'},
|
||||
{ name: 'OP_ACTION',type: 'string'},
|
||||
{ name: 'USR_FULLNAME',type: 'string'}
|
||||
{ name: 'USR_FULLNAME',type: 'string'},
|
||||
{ name: 'DYNAFORM_NAME',type: 'string'},
|
||||
{ name: 'INPUT_NAME',type: 'string'},
|
||||
{ name: 'OUTPUT_NAME',type: 'string'}
|
||||
|
||||
|
||||
]);
|
||||
|
||||
@@ -406,6 +431,7 @@ var PermissionGridColumn = new Ext.grid.ColumnModel({
|
||||
},{
|
||||
id: 'OBJECT',
|
||||
header: 'Object',
|
||||
name:'OBJECT',
|
||||
dataIndex: 'OBJECT',
|
||||
width: 100,
|
||||
sortable: true,
|
||||
@@ -465,6 +491,13 @@ var PermissionGridColumn = new Ext.grid.ColumnModel({
|
||||
form.findField('OP_PARTICIPATE').setValue('Yes');
|
||||
else
|
||||
form.findField('OP_PARTICIPATE').setValue('No');
|
||||
|
||||
if(action.result.data.OP_OBJ_TYPE == 'DYNAFORM')
|
||||
Ext.getCmp('dynaform').show();
|
||||
if(action.result.data.OP_OBJ_TYPE == 'INPUT')
|
||||
Ext.getCmp('inputdoc').show();
|
||||
if(action.result.data.OP_OBJ_TYPE == 'OUTPUT')
|
||||
Ext.getCmp('outputdoc').show();
|
||||
},
|
||||
failure:function(form, action) {
|
||||
Ext.MessageBox.alert('Message', 'Load failed');
|
||||
@@ -509,9 +542,40 @@ var PermissionGridColumn = new Ext.grid.ColumnModel({
|
||||
});
|
||||
|
||||
var tb = new Ext.Toolbar({
|
||||
items: [btnCreate,btnRemove,btnEdit]
|
||||
items: [btnCreate,btnRemove,btnEdit,SearchText,btnSearch]
|
||||
|
||||
});
|
||||
|
||||
var SearchText = new Ext.TextField ({
|
||||
id: 'searchTxt',
|
||||
ctCls:'pm_search_text_field',
|
||||
allowBlank: true,
|
||||
width: 150,
|
||||
emptyText: TRANSLATIONS.ID_ENTER_SEARCH_TERM,//'enter search term',
|
||||
listeners: {
|
||||
specialkey: function(f,e){
|
||||
if (e.getKey() == e.ENTER) {
|
||||
doSearch();
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
var btnSearch = new Ext.Button({
|
||||
text:'X',
|
||||
ctCls:'pm_search_x_button',
|
||||
handler: function(){
|
||||
//store.setBaseParam( 'category', '<reset>');
|
||||
//store.setBaseParam( 'processName', '');
|
||||
//store.load({params:{start : 0 , limit : '' }});
|
||||
Ext.getCmp('searchTxt').setValue('');
|
||||
//comboCategory.setValue('');
|
||||
//store.reload();
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
var PermissionGrid = new Ext.grid.GridPanel({
|
||||
store: PermissionStore,
|
||||
id : 'mygrid',
|
||||
@@ -613,7 +677,7 @@ var PermissionGridColumn = new Ext.grid.ColumnModel({
|
||||
width:360,
|
||||
//height: 30,
|
||||
monitorValid : true,
|
||||
frame:true,
|
||||
frame:false,
|
||||
plain: true,
|
||||
buttonAlign: 'center',
|
||||
items:[{
|
||||
@@ -760,7 +824,7 @@ var PermissionGridColumn = new Ext.grid.ColumnModel({
|
||||
autoload: true,
|
||||
width:200,
|
||||
store: dynaformStore,
|
||||
name: 'OBJ_NAME',
|
||||
name: 'DYNAFORM_NAME',
|
||||
valueField:'LABEL',
|
||||
displayField:'LABEL',
|
||||
triggerAction: 'all',
|
||||
@@ -783,7 +847,7 @@ var PermissionGridColumn = new Ext.grid.ColumnModel({
|
||||
xtype: 'combo',
|
||||
fieldLabel: 'Input Document',
|
||||
//hiddenName:'UID',
|
||||
name: 'OBJ_NAME',
|
||||
name: 'INPUT_NAME',
|
||||
width:200,
|
||||
autoload: true,
|
||||
store: inputDocStore,
|
||||
@@ -812,7 +876,7 @@ var PermissionGridColumn = new Ext.grid.ColumnModel({
|
||||
width:200,
|
||||
autoload: true,
|
||||
store: outputDocStore,
|
||||
name: 'OBJ_NAME',
|
||||
name: 'OUTPUT_NAME',
|
||||
valueField:'LABEL',
|
||||
displayField:'LABEL',
|
||||
triggerAction: 'all',
|
||||
@@ -1681,7 +1745,7 @@ ProcessMapContext.prototype.caseTrackerProperties= function()
|
||||
|
||||
var PropertiesForm = new Ext.FormPanel({
|
||||
labelWidth: 75, // label settings here cascade unless overridden
|
||||
frame:true,
|
||||
frame:false,
|
||||
monitorValid : true,
|
||||
width: 300,
|
||||
height: 300,
|
||||
@@ -2016,12 +2080,17 @@ ProcessMapContext.prototype.caseTrackerObjects= function()
|
||||
editable : false
|
||||
},{
|
||||
header : 'Condition',
|
||||
dataIndex : 'CTO_CONDITION',
|
||||
dataindex: 'CTO_CONDITION',
|
||||
name : 'CTO_CONDITION',
|
||||
editable: true,
|
||||
editor: new Ext.form.TextField({
|
||||
allowBlank: true
|
||||
})
|
||||
//xtype: 'textfield',
|
||||
editable : true
|
||||
},{
|
||||
sortable: false,
|
||||
renderer: function(val, meta, record)
|
||||
{
|
||||
var recordData = Ext.util.JSON.encode(record);
|
||||
return String.format("<input type='button' value='@@' onclick=workflow.ExtVariables('CTO_CONDITION','{0}');>",recordData);
|
||||
}
|
||||
}],
|
||||
sm: new Ext.grid.RowSelectionModel({
|
||||
singleSelect: true,
|
||||
@@ -2118,7 +2187,7 @@ ProcessMapContext.prototype.caseTrackerObjects= function()
|
||||
maximizable : false,
|
||||
width : 550,
|
||||
defaults :{ autoScroll:true },
|
||||
height : 450,
|
||||
height : 400,
|
||||
minWidth : 200,
|
||||
minHeight : 150,
|
||||
layout : 'fit',
|
||||
@@ -2192,7 +2261,7 @@ ProcessMapContext.prototype.ExtVariables = function()
|
||||
xtype:'tabpanel',
|
||||
activeTab: 0,
|
||||
defaults:{
|
||||
autoHeight:true,
|
||||
autoHeight:true
|
||||
},
|
||||
items:[{
|
||||
title:'All Variables',
|
||||
|
||||
@@ -165,14 +165,7 @@ ProcessOptions.prototype.addDynaform= function(_5625)
|
||||
});
|
||||
//tablesFieldsStore.load();
|
||||
|
||||
// Renderer function
|
||||
function renderInstall(value, id, r)
|
||||
{
|
||||
//var id = Ext.id();
|
||||
//createGridButton(1, this);
|
||||
//return('<div id="' + id + '"></div>');
|
||||
return ("<input type='button' value='UID' onclick=workflow.createGridButton(value);>")
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -203,13 +196,15 @@ ProcessOptions.prototype.addDynaform= function(_5625)
|
||||
sortable: false,
|
||||
renderer: function(val, meta, record)
|
||||
{
|
||||
return String.format("<input type='button' value='UID' onclick=workflow.createUIDButton('{0}');>",record.data.DYN_UID);
|
||||
return String.format("<input type='button' value='@@' onclick=workflow.createUIDButton('{0}');>",record.data.DYN_UID);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
]
|
||||
});
|
||||
|
||||
|
||||
var addTableColumns = new Ext.grid.ColumnModel({
|
||||
columns: [
|
||||
new Ext.grid.RowNumberer(),
|
||||
@@ -239,6 +234,9 @@ ProcessOptions.prototype.addDynaform= function(_5625)
|
||||
]
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
var dynaformGrid = new Ext.grid.GridPanel({
|
||||
store: taskDynaform,
|
||||
id : 'mygrid',
|
||||
@@ -529,7 +527,8 @@ ProcessOptions.prototype.dbConnection = function()
|
||||
{name: 'DBS_USERNAME',type: 'string'},
|
||||
{name: 'DBS_PASSWORD',type: 'string'},
|
||||
{name: 'DBS_PORT',type: 'string'},
|
||||
{name: 'DBS_DESCRIPTION',type: 'string'}
|
||||
{name: 'DBS_DESCRIPTION',type: 'string'},
|
||||
{name: 'DBS_ENCODE', type:'string'}
|
||||
]);
|
||||
|
||||
var btnNew = new Ext.Button({
|
||||
@@ -590,7 +589,7 @@ ProcessOptions.prototype.dbConnection = function()
|
||||
},
|
||||
|
||||
success: function(response) {
|
||||
Ext.MessageBox.alert ('Status','Step has been removed successfully.');
|
||||
Ext.MessageBox.alert ('Status','Database Connection has been removed successfully.');
|
||||
//Secondly deleting from Grid
|
||||
dbStore.remove(r);
|
||||
//Reloading store after removing steps
|
||||
@@ -624,6 +623,8 @@ ProcessOptions.prototype.dbConnection = function()
|
||||
});
|
||||
dbStore.load();
|
||||
|
||||
|
||||
|
||||
var dbGridColumn = new Ext.grid.ColumnModel({
|
||||
columns: [
|
||||
new Ext.grid.RowNumberer(),
|
||||
@@ -699,7 +700,7 @@ ProcessOptions.prototype.dbConnection = function()
|
||||
maximizable: true,
|
||||
//allowBlank:false,
|
||||
width:450,
|
||||
frame:true,
|
||||
frame:false,
|
||||
autoDestroy : true,
|
||||
monitorValid : true,
|
||||
plain: true,
|
||||
@@ -761,48 +762,53 @@ ProcessOptions.prototype.dbConnection = function()
|
||||
forceSelection: true,
|
||||
//dataIndex : 'ENGINE',
|
||||
displayField: 'value',
|
||||
valueField: 'value',
|
||||
valueField: 'name',
|
||||
name: 'DBS_ENCODE',
|
||||
store: new Ext.data.JsonStore({
|
||||
fields : ['name', 'value'],
|
||||
data : [
|
||||
{name:'big5', value:'big5 - Big5 Traditional Chinese'},
|
||||
{name:'dec8', value:'dec8 - DEC West European'},
|
||||
{name:'cp850', value:'cp850 - DOS West European'},
|
||||
{name:'hp8', value: 'hp8 - HP West European'},
|
||||
{name:'koi8r', value:'koi8r - KOI8-R Relcom Russian'},
|
||||
{name:'latin1', value:'latin1 - cp1252 West European'},
|
||||
{name:'latin2', value:'latin2 - ISO 8859-2 Central European'},
|
||||
{name:'swe7', value:'swe7 - 7bit Swedish'},
|
||||
{name:'ascii', value:'ascii - US ASCII'},
|
||||
{name:'ujis', value:'ujis - EUC-JP Japanese'},
|
||||
{name:'sjis', value:'sjis - Shift-JIS Japanese'},
|
||||
{name:'hebrew', value: 'hebrew - ISO 8859-8 Hebrew'},
|
||||
{name:'tis620', value: 'tis620 - TIS620 Thai'},
|
||||
{name:'euckr', value: 'euckr - EUC-KR Korean'},
|
||||
{name:'koi8u', value: 'koi8u - KOI8-U Ukrainian'},
|
||||
{name:'gb2312', value: 'gb2312 - GB2312 Simplified Chinese'},
|
||||
{name:'greek', value: 'greek - ISO 8859-7 Greek'},
|
||||
{name:'cp1250', value: 'cp1250 - Windows Central European'},
|
||||
{name:'gbk', value: 'gbk - GBK Simplified Chinese'},
|
||||
{name:'latin5', value:'latin5 - ISO 8859-9 Turkish'},
|
||||
{name:'armscii8', value:'armscii8 - ARMSCII-8 Armenian'},
|
||||
{name:'utf8', value:'utf8 - UTF-8 Unicode'},
|
||||
{name:'ucs2', value:'ucs2 - UCS-2 Unicode'},
|
||||
{name:'cp866', value:'cp866 - DOS Russian'},
|
||||
{name:'keybcs2', value: 'keybcs2 - DOS Kamenicky Czech-Slovak'},
|
||||
{name:'macce', value: 'macce - Mac Central European'},
|
||||
{name:'macroman', value:'macroman - Mac West European'},
|
||||
{name:'ascii', value:'ascii - US ASCII'},
|
||||
{name:'big5', value:'big5 - Big5 Traditional Chinese'},
|
||||
{name:'binary', value: 'binary - Binary pseudo charset'},
|
||||
{name:'cp850', value:'cp850 - DOS West European'},
|
||||
{name:'cp852', value: 'cp852 - DOS Central European'},
|
||||
{name:'latin7', value: 'atin7 - ISO 8859-13 Baltic'},
|
||||
{name:'cp866', value:'cp866 - DOS Russian'},
|
||||
{name:'cp932', value: 'cp932] - SJIS for Windows Japanese'},
|
||||
{name:'cp1250', value: 'cp1250 - Windows Central European'},
|
||||
{name:'cp1251', value: 'cp1251 - Windows Cyrillic'},
|
||||
{name:'cp1256', value: 'cp1256 - Windows Arabic'},
|
||||
{name:'cp1257', value: 'cp1257 - Windows Baltic'},
|
||||
{name:'binary', value: 'binary - Binary pseudo charset'},
|
||||
{name:'dec8', value:'dec8 - DEC West European'},
|
||||
{name:'eucjpms', value: 'eucjpms - UJIS for Windows Japanese'},
|
||||
{name:'euckr', value: 'euckr - EUC-KR Korean'},
|
||||
{name:'gb2312', value: 'gb2312 - GB2312 Simplified Chinese'},
|
||||
{name:'gbk', value: 'gbk - GBK Simplified Chinese'},
|
||||
{name:'geostd8', value: 'geostd8 - GEOSTD8 Georgian'},
|
||||
{name:'cp932', value: 'cp932] - SJIS for Windows Japanese'},
|
||||
{name:'eucjpms', value: 'eucjpms - UJIS for Windows Japanese'}
|
||||
]})
|
||||
{name:'greek', value: 'greek - ISO 8859-7 Greek'},
|
||||
{name:'hebrew', value: 'hebrew - ISO 8859-8 Hebrew'},
|
||||
{name:'hp8', value: 'hp8 - HP West European'},
|
||||
{name:'keybcs2', value: 'keybcs2 - DOS Kamenicky Czech-Slovak'},
|
||||
{name:'koi8r', value:'koi8r - KOI8-R Relcom Russian'},
|
||||
{name:'koi8u', value: 'koi8u - KOI8-U Ukrainian'},
|
||||
{name:'latin1', value:'latin1 - cp1252 West European'},
|
||||
{name:'latin2', value:'latin2 - ISO 8859-2 Central European'},
|
||||
{name:'latin5', value:'latin5 - ISO 8859-9 Turkish'},
|
||||
{name:'latin7', value: 'atin7 - ISO 8859-13 Baltic'},
|
||||
{name:'macce', value: 'macce - Mac Central European'},
|
||||
{name:'macroman', value:'macroman - Mac West European'},
|
||||
{name:'sjis', value:'sjis - Shift-JIS Japanese'},
|
||||
{name:'swe7', value:'swe7 - 7bit Swedish'},
|
||||
{name:'tis620', value: 'tis620 - TIS620 Thai'},
|
||||
{name:'ucs2', value:'ucs2 - UCS-2 Unicode'},
|
||||
{name:'ujis', value:'ujis - EUC-JP Japanese'},
|
||||
{name:'utf8', value:'utf8 - UTF-8 Unicode'}
|
||||
]}),
|
||||
onSelect: function(record, index){
|
||||
dbconnForm.getForm().findField('DBS_ENCODE').setValue(record.data.value);
|
||||
this.setValue(record.data[this.valueField || this.displayField]);
|
||||
this.collapse();
|
||||
}
|
||||
}]
|
||||
|
||||
},{
|
||||
@@ -860,7 +866,12 @@ ProcessOptions.prototype.dbConnection = function()
|
||||
{name:"WIN1252", value:"WIN1252"},
|
||||
{name:"WIN1256", value:"WIN1256"},
|
||||
{name:"WIN1258", value:"WIN1258"}
|
||||
]})
|
||||
]}),
|
||||
onSelect: function(record, index){
|
||||
dbconnForm.getForm().findField('DBS_ENCODE').setValue(record.data.value);
|
||||
this.setValue(record.data[this.valueField || this.displayField]);
|
||||
this.collapse();
|
||||
}
|
||||
}]
|
||||
},{
|
||||
xtype: 'fieldset',
|
||||
@@ -883,7 +894,12 @@ ProcessOptions.prototype.dbConnection = function()
|
||||
fields : ['name', 'value'],
|
||||
data : [
|
||||
{name:'utf8', value: 'utf8'}
|
||||
]})
|
||||
]}),
|
||||
onSelect: function(record, index){
|
||||
dbconnForm.getForm().findField('DBS_ENCODE').setValue(record.data.value);
|
||||
this.setValue(record.data[this.valueField || this.displayField]);
|
||||
this.collapse();
|
||||
}
|
||||
}]
|
||||
|
||||
},{
|
||||
@@ -925,7 +941,11 @@ ProcessOptions.prototype.dbConnection = function()
|
||||
id : 'DBS_UID',
|
||||
xtype: 'hidden',
|
||||
name : 'DBS_UID'
|
||||
},{}],
|
||||
},{
|
||||
id : 'DBS_ENCODE',
|
||||
xtype: 'hidden',
|
||||
name : 'DBS_ENCODE'
|
||||
}],
|
||||
buttons: [{text:'Test Connection',
|
||||
id: 'test',
|
||||
//formbind: true,
|
||||
@@ -1000,7 +1020,7 @@ ProcessOptions.prototype.dbConnection = function()
|
||||
url : '../dbConnections/dbConnectionsAjax.php',
|
||||
method: 'POST',
|
||||
params:{
|
||||
DBS_uid :dbConnUID,
|
||||
dbs_uid :dbConnUID,
|
||||
type :Type,
|
||||
server :Server,
|
||||
db_name :DatabaseName,
|
||||
@@ -1523,7 +1543,7 @@ ProcessOptions.prototype.addInputDoc= function(_5625)
|
||||
buttonAlign : 'center'
|
||||
});
|
||||
|
||||
var inputDocColumns = new Ext.grid.ColumnModel({
|
||||
var inputDocColumns = new Ext.grid.ColumnModel({
|
||||
columns: [
|
||||
new Ext.grid.RowNumberer(),
|
||||
{
|
||||
@@ -1553,15 +1573,7 @@ ProcessOptions.prototype.addInputDoc= function(_5625)
|
||||
editor: new Ext.form.TextField({
|
||||
//allowBlank: false
|
||||
})
|
||||
},
|
||||
{
|
||||
sortable: false,
|
||||
renderer: function(val, meta, record)
|
||||
{
|
||||
return String.format("<input type='button' value='UID' onclick=workflow.createUIDButton('{0}');>",record.data.INP_DOC_UID);
|
||||
}
|
||||
}
|
||||
|
||||
]
|
||||
});
|
||||
|
||||
@@ -1800,20 +1812,21 @@ ProcessOptions.prototype.addOutputDoc= function(_5625)
|
||||
monitorValid :true,
|
||||
labelWidth : 100,
|
||||
defaults :{autoScroll:true},
|
||||
width : 500,
|
||||
width : 450,
|
||||
|
||||
items :[{
|
||||
xtype : 'fieldset',
|
||||
layout : 'form',
|
||||
border :true,
|
||||
title : 'Output Document Information',
|
||||
width : 500,
|
||||
width : 450,
|
||||
collapsible : false,
|
||||
labelAlign : '',
|
||||
items :[{
|
||||
xtype : 'textfield',
|
||||
fieldLabel : 'Title',
|
||||
allowBlank : false,
|
||||
width : 300,
|
||||
blankText : 'Enter Title of Output Document',
|
||||
name : 'OUT_DOC_TITLE'
|
||||
},{
|
||||
@@ -1830,12 +1843,14 @@ ProcessOptions.prototype.addOutputDoc= function(_5625)
|
||||
fieldLabel : 'Filename generated',
|
||||
name : 'OUT_DOC_FILENAME',
|
||||
allowBlank : false,
|
||||
width : 250,
|
||||
blankText : 'Select Filename generated',
|
||||
anchor : '100%'
|
||||
}]
|
||||
},{
|
||||
columnWidth:.4,
|
||||
layout: 'form',
|
||||
width : 200,
|
||||
border:false,
|
||||
items: [{
|
||||
xtype:'button',
|
||||
@@ -1857,7 +1872,7 @@ ProcessOptions.prototype.addOutputDoc= function(_5625)
|
||||
fieldLabel : 'Description',
|
||||
name : 'OUT_DOC_DESCRIPTION',
|
||||
height : 120,
|
||||
width : 280
|
||||
width : 300
|
||||
},{
|
||||
width :150,
|
||||
xtype :'combo',
|
||||
@@ -1915,19 +1930,23 @@ ProcessOptions.prototype.addOutputDoc= function(_5625)
|
||||
},{
|
||||
xtype : 'numberfield',
|
||||
fieldLabel : 'Left Margin',
|
||||
name : 'OUT_DOC_LEFT_MARGIN'
|
||||
name : 'OUT_DOC_LEFT_MARGIN',
|
||||
width : 50
|
||||
},{
|
||||
xtype : 'numberfield',
|
||||
fieldLabel : 'Right Margin',
|
||||
name : 'OUT_DOC_RIGHT_MARGIN'
|
||||
name : 'OUT_DOC_RIGHT_MARGIN',
|
||||
width : 50
|
||||
},{
|
||||
xtype : 'numberfield',
|
||||
fieldLabel : 'Top Margin',
|
||||
name : 'OUT_DOC_TOP_MARGIN'
|
||||
name : 'OUT_DOC_TOP_MARGIN',
|
||||
width : 50
|
||||
},{
|
||||
xtype : 'numberfield',
|
||||
fieldLabel : 'Bottom Margin',
|
||||
name : 'OUT_DOC_BOTTOM_MARGIN'
|
||||
name : 'OUT_DOC_BOTTOM_MARGIN',
|
||||
width : 50
|
||||
},{
|
||||
width :150,
|
||||
xtype :'combo',
|
||||
@@ -1947,7 +1966,7 @@ ProcessOptions.prototype.addOutputDoc= function(_5625)
|
||||
{name : 'DOC', value: 'DOC'},
|
||||
{name : 'PDF', value: 'PDF'}]})
|
||||
},{
|
||||
width : 150,
|
||||
width : 50,
|
||||
xtype :'combo',
|
||||
mode :'local',
|
||||
editable :false,
|
||||
@@ -1975,7 +1994,8 @@ ProcessOptions.prototype.addOutputDoc= function(_5625)
|
||||
//id : 'DestPath',
|
||||
fieldLabel : 'Destination Path',
|
||||
name : 'OUT_DOC_DESTINATION_PATH',
|
||||
anchor :'100%'
|
||||
anchor :'100%',
|
||||
width : 250
|
||||
}]
|
||||
},{
|
||||
columnWidth :.4,
|
||||
@@ -2007,7 +2027,8 @@ ProcessOptions.prototype.addOutputDoc= function(_5625)
|
||||
//id :'tags',
|
||||
fieldLabel : 'Tags',
|
||||
name : 'OUT_DOC_TAGS',
|
||||
anchor :'100%'
|
||||
anchor :'100%',
|
||||
width : 250
|
||||
}]
|
||||
},{
|
||||
columnWidth :.4,
|
||||
@@ -2154,9 +2175,9 @@ ProcessOptions.prototype.addOutputDoc= function(_5625)
|
||||
|
||||
var newOPWindow = new Ext.Window({
|
||||
title : _('ID_OUTPUT_DOCUMENTS'),
|
||||
width : 550,
|
||||
width : 500,
|
||||
defaults :{autoScroll:true},
|
||||
height : 450,
|
||||
height : 420,
|
||||
minWidth : 200,
|
||||
minHeight : 150,
|
||||
layout : 'fit',
|
||||
@@ -2364,7 +2385,7 @@ var reportForm =new Ext.FormPanel({
|
||||
maximizable: true,
|
||||
width:450,
|
||||
height:380,
|
||||
frame:true,
|
||||
frame:false,
|
||||
monitorValid : true,
|
||||
plain: true,
|
||||
buttonAlign: 'center',
|
||||
@@ -2559,3 +2580,4 @@ ProcessOptions.prototype.addTriggers= function()
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -778,7 +778,8 @@ TaskContext.prototype.editTaskProperties= function()
|
||||
},{
|
||||
xtype: 'checkbox',
|
||||
fieldLabel: 'Starting Task',
|
||||
name: 'TAS_START'
|
||||
name: 'TAS_START',
|
||||
checked:workflow.checkStartingTask
|
||||
}]
|
||||
},{
|
||||
title:'Assignment Rules',
|
||||
@@ -1221,7 +1222,12 @@ TaskContext.prototype.editTaskProperties= function()
|
||||
method:'GET',
|
||||
waitMsg:'Loading',
|
||||
success:function(form, action) {
|
||||
//To load the values of the selecte radio button in Assignment Rules
|
||||
if(action.result.data.TAS_START== 0)
|
||||
workflow.checkStartingTask = false;
|
||||
else
|
||||
workflow.checkStartingTask = true;
|
||||
|
||||
//To load the values of the selecte radio button in Assignment Rules
|
||||
if(action.result.data.TAS_ASSIGN_TYPE=='BALANCED')
|
||||
form.items.items[4].items[0].checked=true;
|
||||
|
||||
@@ -1263,6 +1269,8 @@ TaskContext.prototype.editTaskProperties= function()
|
||||
form.items.items[13].checked=false;
|
||||
else
|
||||
form.items.items[13].checked=true;
|
||||
|
||||
|
||||
},
|
||||
failure:function(form, action) {
|
||||
Ext.MessageBox.alert('Message', 'Load failed');
|
||||
@@ -1291,7 +1299,7 @@ TaskContext.prototype.editTaskProperties= function()
|
||||
//var getstore = taskPropertiesTabs.getStore();
|
||||
//var getData = getstore.data.items;
|
||||
taskExtObj.saveTaskProperties();
|
||||
window.hide();
|
||||
//window.hide();
|
||||
|
||||
}
|
||||
},{
|
||||
@@ -1310,7 +1318,8 @@ TaskContext.prototype.saveTaskProperties= function()
|
||||
{
|
||||
var saveTaskform = workflow.taskPropertiesTabs.getForm().getValues();
|
||||
var taskId = workflow.currentSelection.id;
|
||||
var newTaskValues = new Array();
|
||||
var object_data = Ext.util.JSON.encode(saveTaskform);
|
||||
/* var newTaskValues = new Array();
|
||||
var oData = null;
|
||||
for (var key in saveTaskform )
|
||||
{
|
||||
@@ -1336,7 +1345,7 @@ TaskContext.prototype.saveTaskProperties= function()
|
||||
oData = '"'+key+'":"'+saveTaskform[key]+'",' + '"TAS_UID":"'+taskId+'",';
|
||||
}
|
||||
}
|
||||
oData = '{'+oData.slice(0,oData.length-1)+'}';
|
||||
oData = '{'+oData.slice(0,oData.length-1)+'}';*/
|
||||
|
||||
Ext.Ajax.request({
|
||||
url: '../tasks/tasks_Ajax.php' ,
|
||||
@@ -1348,7 +1357,7 @@ TaskContext.prototype.saveTaskProperties= function()
|
||||
},
|
||||
params: {
|
||||
functions:'saveTaskData',
|
||||
oData:oData
|
||||
oData:object_data
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -1704,7 +1713,7 @@ TaskContext.prototype.stepTriggers = function()
|
||||
});
|
||||
|
||||
var treeGrid = new Ext.FormPanel({
|
||||
frame: true,
|
||||
frame: false,
|
||||
monitorValid : true,
|
||||
labelAlign: 'left',
|
||||
width: 750,
|
||||
@@ -2174,7 +2183,7 @@ TaskContext.prototype.editSubProcessProperties= function(_3525)
|
||||
loadMask : true,
|
||||
loadingText : 'Loading...',
|
||||
renderTo : 'cases-grid',
|
||||
frame : true,
|
||||
frame : false,
|
||||
autoHeight : true,
|
||||
autoScroll : true,
|
||||
clicksToEdit: 1,
|
||||
@@ -2228,7 +2237,7 @@ TaskContext.prototype.editSubProcessProperties= function(_3525)
|
||||
loadMask : true,
|
||||
loadingText : 'Loading...',
|
||||
renderTo : 'cases-grid',
|
||||
frame : true,
|
||||
frame : false,
|
||||
autoHeight : true,
|
||||
autoScroll : true,
|
||||
clicksToEdit: 1,
|
||||
|
||||
Reference in New Issue
Block a user