WebEntry Fixed
This commit is contained in:
@@ -4548,7 +4548,7 @@ class processMap {
|
||||
if (!is_null($oEvent)) {
|
||||
$oData = $oEvent->load($sEventUID);
|
||||
|
||||
if($oData['EVN_ACTION'] != '' && $oData['EVN_ACTION'] != 'WEB_ENTRY')
|
||||
if($oData['EVN_ACTION'] != '' && $oData['EVN_ACTION'] == 'WEB_ENTRY')
|
||||
{
|
||||
require_once 'classes/model/Content.php';
|
||||
$oContent = new Content();
|
||||
@@ -6566,7 +6566,7 @@ function saveExtddEvents($oData)
|
||||
$aData['EVN_RELATED_TO'] = 'MULTIPLE';
|
||||
}
|
||||
if(preg_match("/Start/", $aData['EVN_TYPE'])){
|
||||
$aData['EVN_RELATED_TO'] = 'SINGLE';
|
||||
$aData['EVN_RELATED_TO'] = 'MULTIPLE';
|
||||
}
|
||||
$sEvn_uid = $oData->evn_uid;
|
||||
$oEventData = EventPeer::retrieveByPK($sEvn_uid);
|
||||
|
||||
@@ -108,10 +108,18 @@ try {
|
||||
$template->prepare ();
|
||||
file_put_contents ( $fileName, $template->getOutputContent () );
|
||||
}
|
||||
|
||||
|
||||
require_once 'classes/model/Event.php';
|
||||
$oEvent = new Event ( );
|
||||
$aDataEvent = array();
|
||||
|
||||
$aDataEvent['EVN_UID'] = $oData->WE_EVN_UID;
|
||||
$aDataEvent['EVN_RELATED_TO'] = 'MULTIPLE';
|
||||
$aDataEvent['EVN_ACTION'] = $sDYNAFORM;
|
||||
$output = $oEvent->update($aDataEvent);
|
||||
//Show link
|
||||
$link = $http . $_SERVER['HTTP_HOST'] . '/sys' . SYS_SYS . '/' . SYS_LANG . '/' . SYS_SKIN . '/' . $sPRO_UID . '/' . $dynTitle . '.php';
|
||||
//print "\n<a href='$link' target='_new' > $link </a>";
|
||||
print "\n<a href='$link' target='_new' > $link </a>";
|
||||
|
||||
|
||||
} else {
|
||||
|
||||
@@ -1085,8 +1085,7 @@ MyWorkflow.prototype.saveShape= function(oNewShape)
|
||||
urlparams = '?action='+actiontype+'&data={"tas_uid":"'+tas_uid+'","tas_start":"'+tas_start+'"}';
|
||||
break;
|
||||
case 'addEvent':
|
||||
var tas_uid='';
|
||||
urlparams = '?action='+actiontype+'&data={"uid":"'+ pro_uid +'","tas_uid":"'+tas_uid+'","evn_type":"'+shapetype+'","position":'+pos+',"evn_uid":"'+shapeId+'"}';
|
||||
urlparams = '?action='+actiontype+'&data={"uid":"'+ pro_uid +'","evn_type":"'+shapetype+'","position":'+pos+',"evn_uid":"'+shapeId+'"}';
|
||||
break;
|
||||
case 'updateEvent':
|
||||
urlparams = '?action='+actiontype+'&data={"evn_uid":"'+shapeId +'","evn_type":"'+shapetype+'"}';
|
||||
|
||||
@@ -289,7 +289,7 @@ pmosExt.prototype.popWebEntry= function(_5678)
|
||||
collapsible: false,
|
||||
maximizable: false,
|
||||
width: 450,
|
||||
height: 450,
|
||||
height: 350,
|
||||
minWidth: 300,
|
||||
minHeight: 200,
|
||||
layout: 'fit',
|
||||
@@ -334,14 +334,14 @@ pmosExt.prototype.popWebEntry= function(_5678)
|
||||
var webEntryLink = workflow.webForm.items.items[0].items.items;
|
||||
var propertiesfields = workflow.webForm.items.items[1].items.items;
|
||||
var credentialFields = workflow.webForm.items.items[2].items.items;
|
||||
var evn_uid = workflow.currentSelection.id;
|
||||
var task_uid = propertiesfields[0].getValue();
|
||||
var dyna_uid = propertiesfields[1].getValue();
|
||||
var we_type = propertiesfields[2].getValue();
|
||||
var we_usr = propertiesfields[3].getValue();
|
||||
var tasName = 'test';
|
||||
var username = credentialFields[0].getValue();
|
||||
var password = credentialFields[1].getValue();
|
||||
var args = '?action=webEntry_generate&data={"PRO_UID":"'+pro_uid +'", "TASKS":"'+task_uid+'", "DYNAFORM":"'+dyna_uid+'", "WE_TYPE":"'+we_type+'", "WS_USER":"'+username+'", "WS_PASS":"'+password+'", "WS_ROUNDROBIN":"", "WE_USR":"'+we_usr+'"}';
|
||||
var args = '?action=webEntry_generate&data={"PRO_UID":"'+pro_uid +'", "TASKS":"'+task_uid+'", "DYNAFORM":"'+dyna_uid+'", "WE_TYPE":"'+we_type+'", "WS_USER":"'+username+'", "WS_PASS":"'+password+'", "WS_ROUNDROBIN":"", "WE_USR":"'+we_usr+'", "WE_EVN_UID":"'+evn_uid+'"}';
|
||||
Ext.Ajax.request({
|
||||
url: 'processes_Ajax.php'+ args,
|
||||
success: function(response) {
|
||||
|
||||
Reference in New Issue
Block a user