2011-02-04 15:57:06 +00:00
|
|
|
var Actions = {};
|
|
|
|
|
var showCaseNavigatorPanel;
|
|
|
|
|
var hideCaseNavigatorPanel;
|
|
|
|
|
var informationMenu;
|
|
|
|
|
var caseMenuOpen = false;
|
2012-09-04 13:29:32 -04:00
|
|
|
var menuSelectedTitle = [];
|
2011-02-04 15:57:06 +00:00
|
|
|
var _ENV_CURRENT_DATE;
|
2012-02-13 12:55:23 -04:00
|
|
|
var winTree;
|
2011-02-04 15:57:06 +00:00
|
|
|
|
2012-03-26 16:54:43 -04:00
|
|
|
historyGridListChangeLogGlobal = {};
|
|
|
|
|
historyGridListChangeLogGlobal.idHistory = '';
|
|
|
|
|
historyGridListChangeLogGlobal.tasTitle = '';
|
|
|
|
|
|
|
|
|
|
historyGridListChangeLogGlobal.viewIdDin = '';
|
|
|
|
|
historyGridListChangeLogGlobal.viewIdHistory = '';
|
|
|
|
|
historyGridListChangeLogGlobal.viewDynaformName = '';
|
|
|
|
|
historyGridListChangeLogGlobal.dynDate = '';
|
|
|
|
|
|
|
|
|
|
ActionTabFrameGlobal = {};
|
|
|
|
|
ActionTabFrameGlobal.tabName = '';
|
|
|
|
|
ActionTabFrameGlobal.tabTitle = '';
|
|
|
|
|
ActionTabFrameGlobal.tabData = '';
|
|
|
|
|
|
2013-03-27 13:45:05 -04:00
|
|
|
function formatAMPM(date, initVal) {
|
|
|
|
|
var hours = date.getHours();
|
|
|
|
|
var minutes = (initVal === true)? ((date.getMinutes()<15)? 0: ((date.getMinutes()<30)? 15: ((date.getMinutes()<45)? 30: 45))): date.getMinutes();
|
|
|
|
|
var ampm = hours >= 12 ? 'PM' : 'AM';
|
|
|
|
|
hours = hours % 12;
|
|
|
|
|
hours = hours ? hours : 12; // the hour '0' should be '12'
|
|
|
|
|
minutes = minutes < 10 ? '0'+minutes : minutes;
|
|
|
|
|
var strTime = hours + ':' + minutes + ' ' + ampm;
|
|
|
|
|
return strTime;
|
|
|
|
|
}
|
|
|
|
|
|
2011-02-04 15:57:06 +00:00
|
|
|
Ext.onReady(function(){
|
2012-09-04 13:29:32 -04:00
|
|
|
openToRevisePanel = function() {
|
|
|
|
|
var treeToRevise = new Ext.tree.TreePanel({
|
|
|
|
|
title: treeToReviseTitle,
|
|
|
|
|
width: 250,
|
|
|
|
|
height: 250,
|
|
|
|
|
userArrows: true,
|
|
|
|
|
animate: true,
|
|
|
|
|
autoScroll: true,
|
|
|
|
|
rootVisible: false,
|
|
|
|
|
dataUrl: casesPanelUrl,
|
|
|
|
|
root: {
|
|
|
|
|
nodeType: 'async',
|
|
|
|
|
text : 'To Revise',
|
|
|
|
|
id : 'node-root'
|
|
|
|
|
},
|
|
|
|
|
listeners: {
|
|
|
|
|
render: function() {
|
|
|
|
|
this.expandAll();
|
2011-02-25 14:14:38 +00:00
|
|
|
}
|
|
|
|
|
}
|
2012-09-04 13:29:32 -04:00
|
|
|
});
|
2011-02-25 14:14:38 +00:00
|
|
|
|
2012-09-04 13:29:32 -04:00
|
|
|
if (typeof(winTree) == 'undefined') {
|
|
|
|
|
winTree = new Ext.Window({
|
|
|
|
|
id : 'toReviseWindow',
|
|
|
|
|
width : 220,
|
|
|
|
|
height : 300,
|
|
|
|
|
el : 'toReviseTree',
|
|
|
|
|
collapsible : true,
|
|
|
|
|
plain : true,
|
|
|
|
|
x : 100,
|
|
|
|
|
y : 100,
|
|
|
|
|
constrain : true,
|
2012-09-11 13:47:14 -04:00
|
|
|
items : [treeToRevise],
|
|
|
|
|
closeAction : 'hide'
|
2012-09-04 13:29:32 -04:00
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
Ext.QuickTips.init();
|
|
|
|
|
showCaseNavigatorPanel = function(app_status) {
|
|
|
|
|
if (typeof(treeToReviseTitle) != 'undefined') {
|
|
|
|
|
openToRevisePanel();
|
2011-02-25 14:14:38 +00:00
|
|
|
}
|
|
|
|
|
|
2012-09-04 13:29:32 -04:00
|
|
|
if (caseMenuOpen) {
|
2011-02-04 15:57:06 +00:00
|
|
|
return false;
|
2012-09-04 13:29:32 -04:00
|
|
|
}
|
|
|
|
|
else {
|
2011-02-04 15:57:06 +00:00
|
|
|
caseMenuOpen = true;
|
2012-09-04 13:29:32 -04:00
|
|
|
}
|
2011-07-14 10:45:20 -04:00
|
|
|
|
|
|
|
|
//get the menu
|
2011-03-25 09:14:06 -04:00
|
|
|
Ext.Ajax.request({
|
2011-07-14 10:45:20 -04:00
|
|
|
url : 'ajaxListener',
|
2011-03-25 09:14:06 -04:00
|
|
|
params : {action : 'getCaseMenu', app_status:app_status},
|
2011-07-14 10:45:20 -04:00
|
|
|
success: function ( result, request ) {
|
2012-09-04 13:29:32 -04:00
|
|
|
var data = Ext.util.JSON.decode(result.responseText);
|
2011-03-25 09:14:06 -04:00
|
|
|
for(i=0; i<data.length; i++) {
|
|
|
|
|
switch(data[i].id) {
|
|
|
|
|
case 'STEPS':
|
2012-09-04 13:29:32 -04:00
|
|
|
if (typeof(treeToReviseTitle) == 'undefined') {
|
|
|
|
|
Ext.getCmp('casesStepTree').root.reload();
|
|
|
|
|
}
|
|
|
|
|
Ext.getCmp('stepsMenu').enable();
|
2011-03-25 09:14:06 -04:00
|
|
|
break;
|
2011-07-14 10:45:20 -04:00
|
|
|
case 'NOTES':
|
|
|
|
|
Ext.getCmp('caseNotes').show();
|
|
|
|
|
break;
|
|
|
|
|
|
2011-03-25 09:14:06 -04:00
|
|
|
case 'INFO':
|
|
|
|
|
//filling information menu
|
|
|
|
|
var informationMenu = Ext.getCmp('informationMenu');
|
|
|
|
|
informationMenu.menu.removeAll();
|
|
|
|
|
for(j=0; j<data[i].options.length; j++) {
|
|
|
|
|
informationMenu.menu.add({
|
|
|
|
|
text: data[i].options[j].text,
|
|
|
|
|
handler: data[i].options[j].fn != '' ? Actions[data[i].options[j].fn] : function(){}
|
|
|
|
|
});
|
|
|
|
|
menuSelectedTitle[data[i].options[j].fn] = data[i].options[j].text;
|
|
|
|
|
}
|
|
|
|
|
informationMenu.show();
|
2011-07-14 10:45:20 -04:00
|
|
|
break;
|
|
|
|
|
|
2011-03-25 09:14:06 -04:00
|
|
|
case 'ACTIONS':
|
|
|
|
|
var actionMenu = Ext.getCmp('actionMenu');
|
|
|
|
|
actionMenu.menu.removeAll();
|
|
|
|
|
for(j=0; j<data[i].options.length; j++) {
|
2013-04-22 16:28:42 +00:00
|
|
|
if(!data[i].options[j].hide){
|
2011-11-09 11:28:06 -04:00
|
|
|
actionMenu.menu.add({
|
|
|
|
|
text: data[i].options[j].text,
|
|
|
|
|
handler: data[i].options[j].fn != '' ? Actions[data[i].options[j].fn] : function(){}
|
|
|
|
|
});
|
|
|
|
|
menuSelectedTitle[data[i].options[j].fn] = data[i].options[j].text;
|
|
|
|
|
}
|
2011-03-25 09:14:06 -04:00
|
|
|
}
|
|
|
|
|
actionMenu.show();
|
|
|
|
|
break;
|
2011-07-14 10:45:20 -04:00
|
|
|
|
2011-05-30 12:54:33 -04:00
|
|
|
// custom menus from plugins or others
|
|
|
|
|
default:
|
|
|
|
|
var navPanel = Ext.getCmp('navPanel');
|
|
|
|
|
var tb = navPanel.getTopToolbar();
|
|
|
|
|
|
|
|
|
|
var menu = new Ext.Action({
|
|
|
|
|
id: data[i].id,
|
|
|
|
|
text: data[i].label,
|
|
|
|
|
handler: function(){
|
|
|
|
|
eval(this._action);
|
|
|
|
|
},
|
2011-07-14 10:45:20 -04:00
|
|
|
_action: data[i].action.replace('javascript:', '').replace(';', '')
|
2011-05-30 12:54:33 -04:00
|
|
|
});
|
2011-07-14 10:45:20 -04:00
|
|
|
|
2011-05-30 12:54:33 -04:00
|
|
|
tb.add(menu);
|
2011-03-25 09:14:06 -04:00
|
|
|
}
|
|
|
|
|
}
|
2012-09-04 13:29:32 -04:00
|
|
|
|
2012-06-08 10:22:42 -04:00
|
|
|
if (Ext.getCmp('stepsMenu').disabled === true) {
|
2012-09-04 13:29:32 -04:00
|
|
|
Ext.getCmp('stepsMenu').hide();
|
|
|
|
|
}
|
2011-03-25 09:14:06 -04:00
|
|
|
},
|
2011-07-14 10:45:20 -04:00
|
|
|
failure: function ( result, request) {
|
|
|
|
|
Ext.MessageBox.alert('Failed', result.responseText);
|
2011-03-25 09:14:06 -04:00
|
|
|
}
|
|
|
|
|
});
|
2011-02-04 15:57:06 +00:00
|
|
|
}
|
2011-07-14 10:45:20 -04:00
|
|
|
|
2011-02-04 15:57:06 +00:00
|
|
|
hideCaseNavigatorPanel = function(){
|
|
|
|
|
Ext.getCmp('stepsMenu').pressed = false;
|
|
|
|
|
caseMenuOpen = false;
|
2011-07-14 10:45:20 -04:00
|
|
|
|
2011-02-04 15:57:06 +00:00
|
|
|
Ext.getCmp('navPanelWest').hide();
|
2011-07-14 10:45:20 -04:00
|
|
|
Ext.getCmp('navPanelWest').ownerCt.doLayout();
|
|
|
|
|
|
2011-02-04 15:57:06 +00:00
|
|
|
}
|
2011-07-14 10:45:20 -04:00
|
|
|
|
2011-02-04 15:57:06 +00:00
|
|
|
function togglePreview(btn, pressed){
|
2012-09-04 13:29:32 -04:00
|
|
|
if (typeof(treeToReviseTitle) == 'undefined') {
|
|
|
|
|
var preview = Ext.getCmp('navPanelWest');
|
|
|
|
|
preview[pressed ? 'show' : 'hide']();
|
|
|
|
|
Ext.getCmp('navPanel').ownerCt.doLayout();
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
if (winTree.isVisible()) {
|
|
|
|
|
winTree.hide();
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
winTree.show();
|
|
|
|
|
}
|
|
|
|
|
}
|
2011-02-04 15:57:06 +00:00
|
|
|
}
|
2011-07-14 10:45:20 -04:00
|
|
|
|
2012-09-04 13:29:32 -04:00
|
|
|
if (typeof(treeToReviseTitle) == 'undefined') {
|
2013-06-17 15:52:22 -04:00
|
|
|
var loadMaskStep = new Ext.LoadMask(Ext.getBody(), {msg: _("ID_LOADING_GRID")});
|
|
|
|
|
|
2012-09-04 13:29:32 -04:00
|
|
|
var casesStepTree = new Ext.tree.TreePanel({
|
|
|
|
|
id: 'casesStepTree',
|
|
|
|
|
autoWidth: true,
|
|
|
|
|
userArrows: true,
|
|
|
|
|
animate: true,
|
|
|
|
|
autoScroll: true,
|
|
|
|
|
dataUrl: 'ajaxListener?action=steps',
|
|
|
|
|
rootVisible: false,
|
|
|
|
|
containerScroll: true,
|
|
|
|
|
border: false,
|
|
|
|
|
root: {
|
|
|
|
|
nodeType: 'async'
|
2011-02-04 15:57:06 +00:00
|
|
|
},
|
2012-09-04 13:29:32 -04:00
|
|
|
|
|
|
|
|
listeners: {
|
|
|
|
|
render: function() {
|
|
|
|
|
this.getRootNode().expand();
|
|
|
|
|
},
|
2013-06-17 15:52:22 -04:00
|
|
|
click: function (node, evt)
|
|
|
|
|
{
|
|
|
|
|
var nodeCurrentSelected = this.getSelectionModel().getSelectedNode();
|
|
|
|
|
var swNodeCurrentSelect = 0;
|
|
|
|
|
|
|
|
|
|
if (node.attributes.url) {
|
|
|
|
|
//Set load event
|
|
|
|
|
if (navigator.userAgent.toLowerCase().indexOf("msie") != -1) {
|
|
|
|
|
document.getElementById("openCaseFrame").onreadystatechange = function ()
|
|
|
|
|
{
|
|
|
|
|
if (document.getElementById("openCaseFrame").readyState == "complete") {
|
|
|
|
|
loadMaskStep.hide();
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
} else {
|
|
|
|
|
document.getElementById("openCaseFrame").onload = function ()
|
|
|
|
|
{
|
|
|
|
|
loadMaskStep.hide();
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//Check step current
|
|
|
|
|
var swForm = 1;
|
|
|
|
|
|
|
|
|
|
if (nodeCurrentSelected.attributes.id == "-1") {
|
|
|
|
|
swForm = 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (nodeCurrentSelected.attributes.type != "DYNAFORM") {
|
|
|
|
|
swForm = 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (swForm == 1) {
|
|
|
|
|
var requiredField = "";
|
|
|
|
|
var swRequiredField = 1;
|
2014-01-30 11:18:37 -04:00
|
|
|
var dynaformChange ="";
|
|
|
|
|
var swDynaformChange = 0;
|
|
|
|
|
|
|
|
|
|
if (window.frames["openCaseFrame"].document.getElementsByTagName("form")) {
|
|
|
|
|
dynaformChange = window.frames["openCaseFrame"].document.getElementsByTagName("form").item(0);
|
|
|
|
|
swDynaformChange = (window.frames["openCaseFrame"].dynaFormChanged(dynaformChange))? 1 : 0;
|
|
|
|
|
}
|
2013-06-17 15:52:22 -04:00
|
|
|
|
|
|
|
|
if (window.frames["openCaseFrame"].document.getElementById("DynaformRequiredFields")) {
|
|
|
|
|
requiredField = window.frames["openCaseFrame"].document.getElementById("DynaformRequiredFields").value;
|
|
|
|
|
if (requiredField != "") {
|
|
|
|
|
swRequiredField = (window.frames["openCaseFrame"].validateForm(requiredField))? 1 : 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2014-02-05 16:48:30 -04:00
|
|
|
if (swRequiredField == 1){
|
|
|
|
|
if (swDynaformChange) {
|
2014-01-30 11:18:37 -04:00
|
|
|
Ext.MessageBox.show({
|
|
|
|
|
title: _("ID_CONFIRM"),
|
|
|
|
|
msg: _("ID_DYNAFORM_SAVE_CHANGES"),
|
|
|
|
|
icon: Ext.MessageBox.QUESTION,
|
|
|
|
|
buttons: {ok: _("ID_ACCEPT"), cancel: _("ID_CANCEL")},
|
|
|
|
|
fn: function (btn)
|
|
|
|
|
{
|
|
|
|
|
loadMaskStep.show();
|
|
|
|
|
|
|
|
|
|
if (btn == "ok") {
|
|
|
|
|
var frm = window.frames["openCaseFrame"].document.getElementsByTagName("form");
|
|
|
|
|
|
|
|
|
|
if (frm.length > 0) {
|
|
|
|
|
var result = window.frames["openCaseFrame"].ajax_post(
|
|
|
|
|
frm[0].action.replace("cases_SaveData", "saveForm"),
|
|
|
|
|
frm[0],
|
|
|
|
|
"POST",
|
|
|
|
|
function (responseText)
|
|
|
|
|
{
|
|
|
|
|
//Set URL and redirect
|
|
|
|
|
document.getElementById("openCaseFrame").src = node.attributes.url;
|
|
|
|
|
},
|
|
|
|
|
true
|
|
|
|
|
);
|
|
|
|
|
} else {
|
|
|
|
|
//Set URL and redirect
|
|
|
|
|
document.getElementById("openCaseFrame").src = node.attributes.url;
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
//Set URL and redirect
|
|
|
|
|
document.getElementById("openCaseFrame").src = node.attributes.url;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
2014-02-05 16:48:30 -04:00
|
|
|
} else {
|
2014-06-24 17:04:08 -04:00
|
|
|
loadMaskStep.show();
|
2014-02-05 16:48:30 -04:00
|
|
|
document.getElementById("openCaseFrame").src = node.attributes.url;
|
|
|
|
|
}
|
|
|
|
|
} else {
|
2014-01-30 11:18:37 -04:00
|
|
|
swNodeCurrentSelect = 1;
|
2014-02-05 16:48:30 -04:00
|
|
|
}
|
2013-06-17 15:52:22 -04:00
|
|
|
} else {
|
|
|
|
|
loadMaskStep.show();
|
|
|
|
|
|
|
|
|
|
//Set URL and redirect
|
|
|
|
|
document.getElementById("openCaseFrame").src = node.attributes.url;
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
swNodeCurrentSelect = 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (swNodeCurrentSelect == 1) {
|
|
|
|
|
setTimeout(function () { setNode(nodeCurrentSelected.attributes.id); }, 1);
|
|
|
|
|
}
|
2011-02-04 15:57:06 +00:00
|
|
|
}
|
2012-09-04 13:29:32 -04:00
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
var loader = casesStepTree.getLoader();
|
|
|
|
|
loader.on("load", setNodeini);
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
var casesStepTree = {};
|
|
|
|
|
}
|
2011-07-14 10:45:20 -04:00
|
|
|
|
2011-11-16 13:19:36 -04:00
|
|
|
function setNodeini()
|
|
|
|
|
{
|
|
|
|
|
setNode(idfirstform);
|
2011-11-03 17:36:51 -04:00
|
|
|
}
|
|
|
|
|
|
2011-02-04 15:57:06 +00:00
|
|
|
var navPanelWest = {
|
|
|
|
|
id: 'navPanelWest',
|
|
|
|
|
region: 'west',
|
|
|
|
|
xtype:'panel',
|
|
|
|
|
width: 250,
|
|
|
|
|
height: 500,
|
|
|
|
|
maxSize: 400,
|
|
|
|
|
split: true,
|
|
|
|
|
collapsible: false,
|
|
|
|
|
margins: '0 0 0 0',
|
|
|
|
|
items:[casesStepTree]
|
|
|
|
|
}
|
2011-07-14 10:45:20 -04:00
|
|
|
|
2011-02-04 15:57:06 +00:00
|
|
|
var fnChangeStatus =function(){
|
|
|
|
|
alert('loaded');
|
|
|
|
|
}
|
|
|
|
|
|
2011-02-24 20:34:14 +00:00
|
|
|
var screenWidth = (PMExt.getBrowser().screen.width-140).toString() + 'px';
|
|
|
|
|
|
2011-02-04 15:57:06 +00:00
|
|
|
var navPanelCenter = {
|
|
|
|
|
id: 'navPanelCenter',
|
2011-04-08 19:11:30 -04:00
|
|
|
region: 'center', layout:'fit',forceLayout: true,
|
2011-02-04 15:57:06 +00:00
|
|
|
xtype:'panel',
|
|
|
|
|
items:[{
|
|
|
|
|
xtype:"tabpanel",
|
|
|
|
|
id: 'caseTabPanel',
|
|
|
|
|
deferredRender:false,
|
|
|
|
|
defaults:{autoScroll: true},
|
|
|
|
|
defaultType:"iframepanel",
|
|
|
|
|
activeTab: 0,
|
2012-08-08 17:34:17 -04:00
|
|
|
enableTabScroll: true,
|
2011-02-04 15:57:06 +00:00
|
|
|
//defaults: Ext.apply({}, Ext.isGecko? {style:{position:'absolute'},hideMode:'visibility'}:false),
|
2011-07-14 10:45:20 -04:00
|
|
|
|
2011-02-04 15:57:06 +00:00
|
|
|
items:[{
|
2011-07-04 11:14:07 -04:00
|
|
|
id: 'casesTab',
|
2011-03-17 15:32:01 -04:00
|
|
|
title: _('ID_CASE') +' ' + _APP_NUM,
|
2011-02-04 15:57:06 +00:00
|
|
|
frameConfig:{name:'openCaseFrame', id:'openCaseFrame'},
|
|
|
|
|
defaultSrc : uri,
|
2013-03-14 15:15:04 -04:00
|
|
|
loadMask:{msg: _('ID_LOADING_GRID') },
|
2011-02-24 20:34:14 +00:00
|
|
|
bodyStyle:{height: (PMExt.getBrowser().screen.height-60) + 'px', overflow:'auto'},
|
|
|
|
|
width:screenWidth
|
2011-07-14 10:45:20 -04:00
|
|
|
|
2011-03-25 09:30:45 -04:00
|
|
|
}
|
2011-02-04 15:57:06 +00:00
|
|
|
],
|
|
|
|
|
listeners: {
|
2012-03-29 16:19:45 -04:00
|
|
|
tabchange: function(panel){
|
|
|
|
|
panel.ownerCt.doLayout();
|
|
|
|
|
},
|
2011-02-04 15:57:06 +00:00
|
|
|
render : function(panel){
|
2011-07-14 10:45:20 -04:00
|
|
|
Ext.each([this.el, this[this.collapseEl]] ,
|
2011-03-25 09:30:45 -04:00
|
|
|
function( elm ) {
|
|
|
|
|
elm.setVisibilityMode(Ext.Element.VISIBILITY).originalDisplay ='visible';
|
2011-02-04 15:57:06 +00:00
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}]
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
var navPanel = {
|
|
|
|
|
id: 'navPanel',
|
|
|
|
|
region: 'center',
|
|
|
|
|
layout: 'border',
|
|
|
|
|
items:[navPanelWest, navPanelCenter],
|
|
|
|
|
tbar:[{
|
|
|
|
|
id: 'stepsMenu',
|
2011-02-10 14:37:52 +00:00
|
|
|
text: ' '+_('ID_STEPS'),
|
2011-02-04 15:57:06 +00:00
|
|
|
pressed: false,
|
|
|
|
|
enableToggle:true,
|
|
|
|
|
tooltip: {
|
2011-02-10 14:37:52 +00:00
|
|
|
title: _('ID_CASES_STEPS'),
|
|
|
|
|
text:_('ID_SHOW_HIDE_CASES_STEPS')
|
2011-02-04 15:57:06 +00:00
|
|
|
},
|
|
|
|
|
iconCls: 'ICON_STEPS',
|
2012-06-08 10:22:42 -04:00
|
|
|
toggleHandler: togglePreview,
|
|
|
|
|
disabled: true
|
2011-02-04 15:57:06 +00:00
|
|
|
}, {
|
|
|
|
|
id: 'informationMenu',
|
2011-02-10 14:37:52 +00:00
|
|
|
text: _('ID_INFORMATION'),
|
2011-03-17 15:32:01 -04:00
|
|
|
menu: []
|
2011-02-04 15:57:06 +00:00
|
|
|
}, {
|
|
|
|
|
id: 'actionMenu',
|
2011-02-10 14:37:52 +00:00
|
|
|
text: _('ID_ACTIONS'),
|
2011-02-04 15:57:06 +00:00
|
|
|
menu: []
|
2011-07-14 10:45:20 -04:00
|
|
|
}, {
|
|
|
|
|
id: 'caseNotes',
|
|
|
|
|
pressed: false,
|
|
|
|
|
enableToggle:true,
|
|
|
|
|
text: ' '+_('ID_CASES_NOTES'),
|
|
|
|
|
iconCls: 'ICON_CASES_NOTES',
|
|
|
|
|
tooltip: {
|
|
|
|
|
title: _('ID_CASES_NOTES'),
|
|
|
|
|
text:_('ID_SHOW_CASES_NOTES')
|
|
|
|
|
},
|
|
|
|
|
toggleHandler:function(btn, pressed){
|
|
|
|
|
if(pressed){
|
|
|
|
|
openCaseNotesWindow();
|
|
|
|
|
}else{
|
|
|
|
|
closeCaseNotesWindow();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}]
|
2011-02-04 15:57:06 +00:00
|
|
|
}
|
2011-07-14 10:45:20 -04:00
|
|
|
|
2011-02-04 15:57:06 +00:00
|
|
|
var viewport = new Ext.Viewport({
|
|
|
|
|
layout: 'border',
|
|
|
|
|
items: [navPanel]
|
2011-07-14 10:45:20 -04:00
|
|
|
});
|
2011-02-04 15:57:06 +00:00
|
|
|
|
|
|
|
|
|
2012-06-08 10:22:42 -04:00
|
|
|
// Ext.getCmp('stepsMenu').hide();
|
2011-07-14 10:45:20 -04:00
|
|
|
Ext.getCmp('caseNotes').hide();
|
2011-02-04 15:57:06 +00:00
|
|
|
Ext.getCmp('informationMenu').hide();
|
2011-11-25 11:26:03 -04:00
|
|
|
Ext.getCmp('actionMenu').hide();
|
2011-07-14 10:45:20 -04:00
|
|
|
|
2011-02-04 15:57:06 +00:00
|
|
|
hideCaseNavigatorPanel();
|
|
|
|
|
|
|
|
|
|
// Actions methods
|
2011-07-14 10:45:20 -04:00
|
|
|
|
2011-02-04 15:57:06 +00:00
|
|
|
Actions.processMap = function()
|
|
|
|
|
{
|
2013-06-03 18:13:38 -04:00
|
|
|
Ext.Ajax.request({
|
|
|
|
|
url : 'ajaxListener' ,
|
|
|
|
|
params : {action : 'verifySession'},
|
|
|
|
|
success: function ( result, request ) {
|
|
|
|
|
var data = Ext.util.JSON.decode(result.responseText);
|
|
|
|
|
if( data.lostSession ) {
|
|
|
|
|
Ext.Msg.show({
|
|
|
|
|
title: _('ID_ERROR'),
|
|
|
|
|
msg: data.message,
|
|
|
|
|
animEl: 'elId',
|
|
|
|
|
icon: Ext.MessageBox.ERROR,
|
|
|
|
|
buttons: Ext.MessageBox.OK,
|
|
|
|
|
fn : function(btn) {
|
2014-06-24 17:04:08 -04:00
|
|
|
try
|
BUG 11969 Web session TimeOut at HOME
Se realizo una correccion de los direccionamientos de los iframes al perder sesion, ya q siempre q se perdia sesion antes, se mostraba dentro del mismo iframe el cuadro para volverse a logear, logrando asi q el usuario se mantenga en el mismo iframe una ves se relogee, sin tener asi q volver a buscar el lugar donde estaba trabajando. A pedido de QA, ahora se muestra el cuadro de logeo en el iframe mayor, totalmente fuera de PM, y siempre al volver a logearse se redirecciona al tab HOME > Index, y ya no asi al frame o lugar exacto donde se perdio sesion.
Por ejemplo: si se pie sesion en el listado Draft, no se volvera a dicho listado, sino en cambio al volverse a logear se redireccionara a HOME > Indexdex.
El cambio se aplico a los lugares donde se podia redireccionar al parent.
Se tomo en cuenta tambien que algunos clientes utilizan el listado de casos dentro de sus propias webs.
2013-09-02 17:45:37 -04:00
|
|
|
{
|
|
|
|
|
prnt = parent.parent;
|
|
|
|
|
top.location = top.location;
|
|
|
|
|
}
|
2014-06-24 17:04:08 -04:00
|
|
|
catch (err)
|
BUG 11969 Web session TimeOut at HOME
Se realizo una correccion de los direccionamientos de los iframes al perder sesion, ya q siempre q se perdia sesion antes, se mostraba dentro del mismo iframe el cuadro para volverse a logear, logrando asi q el usuario se mantenga en el mismo iframe una ves se relogee, sin tener asi q volver a buscar el lugar donde estaba trabajando. A pedido de QA, ahora se muestra el cuadro de logeo en el iframe mayor, totalmente fuera de PM, y siempre al volver a logearse se redirecciona al tab HOME > Index, y ya no asi al frame o lugar exacto donde se perdio sesion.
Por ejemplo: si se pie sesion en el listado Draft, no se volvera a dicho listado, sino en cambio al volverse a logear se redireccionara a HOME > Indexdex.
El cambio se aplico a los lugares donde se podia redireccionar al parent.
Se tomo en cuenta tambien que algunos clientes utilizan el listado de casos dentro de sus propias webs.
2013-09-02 17:45:37 -04:00
|
|
|
{
|
|
|
|
|
parent.location = parent.location;
|
|
|
|
|
}
|
2013-06-03 18:13:38 -04:00
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
Actions.tabFrame('processMap');
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
failure: function ( result, request) {
|
|
|
|
|
if (typeof(result.responseText) != 'undefined') {
|
|
|
|
|
Ext.MessageBox.alert( _('ID_FAILED'), result.responseText);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
2011-02-04 15:57:06 +00:00
|
|
|
}
|
2011-07-14 10:45:20 -04:00
|
|
|
|
2011-02-04 15:57:06 +00:00
|
|
|
Actions.processInformation = function()
|
|
|
|
|
{
|
2013-06-03 18:13:38 -04:00
|
|
|
Ext.Ajax.request({
|
|
|
|
|
url : 'ajaxListener' ,
|
|
|
|
|
params : {action : 'getProcessInformation'},
|
|
|
|
|
success: function ( result, request ) {
|
|
|
|
|
var data = Ext.util.JSON.decode(result.responseText);
|
|
|
|
|
if( data.lostSession ) {
|
|
|
|
|
Ext.Msg.show({
|
|
|
|
|
title: _('ID_ERROR'),
|
|
|
|
|
msg: data.message,
|
|
|
|
|
animEl: 'elId',
|
|
|
|
|
icon: Ext.MessageBox.ERROR,
|
|
|
|
|
buttons: Ext.MessageBox.OK,
|
|
|
|
|
fn : function(btn) {
|
2014-06-24 17:04:08 -04:00
|
|
|
try
|
BUG 11969 Web session TimeOut at HOME
Se realizo una correccion de los direccionamientos de los iframes al perder sesion, ya q siempre q se perdia sesion antes, se mostraba dentro del mismo iframe el cuadro para volverse a logear, logrando asi q el usuario se mantenga en el mismo iframe una ves se relogee, sin tener asi q volver a buscar el lugar donde estaba trabajando. A pedido de QA, ahora se muestra el cuadro de logeo en el iframe mayor, totalmente fuera de PM, y siempre al volver a logearse se redirecciona al tab HOME > Index, y ya no asi al frame o lugar exacto donde se perdio sesion.
Por ejemplo: si se pie sesion en el listado Draft, no se volvera a dicho listado, sino en cambio al volverse a logear se redireccionara a HOME > Indexdex.
El cambio se aplico a los lugares donde se podia redireccionar al parent.
Se tomo en cuenta tambien que algunos clientes utilizan el listado de casos dentro de sus propias webs.
2013-09-02 17:45:37 -04:00
|
|
|
{
|
|
|
|
|
prnt = parent.parent;
|
|
|
|
|
top.location = top.location;
|
|
|
|
|
}
|
2014-06-24 17:04:08 -04:00
|
|
|
catch (err)
|
BUG 11969 Web session TimeOut at HOME
Se realizo una correccion de los direccionamientos de los iframes al perder sesion, ya q siempre q se perdia sesion antes, se mostraba dentro del mismo iframe el cuadro para volverse a logear, logrando asi q el usuario se mantenga en el mismo iframe una ves se relogee, sin tener asi q volver a buscar el lugar donde estaba trabajando. A pedido de QA, ahora se muestra el cuadro de logeo en el iframe mayor, totalmente fuera de PM, y siempre al volver a logearse se redirecciona al tab HOME > Index, y ya no asi al frame o lugar exacto donde se perdio sesion.
Por ejemplo: si se pie sesion en el listado Draft, no se volvera a dicho listado, sino en cambio al volverse a logear se redireccionara a HOME > Indexdex.
El cambio se aplico a los lugares donde se podia redireccionar al parent.
Se tomo en cuenta tambien que algunos clientes utilizan el listado de casos dentro de sus propias webs.
2013-09-02 17:45:37 -04:00
|
|
|
{
|
|
|
|
|
parent.location = parent.location;
|
|
|
|
|
}
|
2013-06-03 18:13:38 -04:00
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
fieldset = {
|
|
|
|
|
xtype : 'fieldset',
|
|
|
|
|
autoHeight : true,
|
|
|
|
|
defaults : {
|
|
|
|
|
width : 170,
|
|
|
|
|
xtype:'label',
|
|
|
|
|
labelStyle : 'padding: 0px;',
|
|
|
|
|
style: 'font-weight: bold'
|
|
|
|
|
},
|
|
|
|
|
items : [
|
|
|
|
|
{fieldLabel: _('ID_TITLE'), text: data.PRO_TITLE},
|
|
|
|
|
{fieldLabel: _('ID_DESCRIPTION'), text: data.PRO_DESCRIPTION},
|
|
|
|
|
{fieldLabel: _('ID_CATEGORY'), text: data.PRO_CATEGORY_LABEL},
|
|
|
|
|
{fieldLabel: _('ID_AUTHOR'), text: data.PRO_AUTHOR},
|
|
|
|
|
{fieldLabel: _('ID_CREATE_DATE'), text: data.PRO_CREATE_DATE}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var frm = new Ext.FormPanel( {
|
|
|
|
|
labelAlign : 'right',
|
|
|
|
|
bodyStyle : 'padding:5px 5px 0',
|
|
|
|
|
width : 400,
|
|
|
|
|
autoScroll:true,
|
|
|
|
|
items : [fieldset],
|
|
|
|
|
buttons : [{
|
|
|
|
|
text : 'OK',
|
|
|
|
|
handler : function() {
|
|
|
|
|
win.close();
|
|
|
|
|
}
|
|
|
|
|
}]
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
var win = new Ext.Window({
|
|
|
|
|
title: '',
|
|
|
|
|
width: 450,
|
|
|
|
|
height: 280,
|
|
|
|
|
layout:'fit',
|
|
|
|
|
autoScroll:true,
|
|
|
|
|
modal: true,
|
|
|
|
|
maximizable: false,
|
|
|
|
|
items: [frm]
|
|
|
|
|
});
|
|
|
|
|
win.show();
|
|
|
|
|
}},
|
|
|
|
|
failure: function ( result, request) {
|
|
|
|
|
Ext.MessageBox.alert('Failed', result.responseText);
|
|
|
|
|
}
|
|
|
|
|
});
|
2011-02-04 15:57:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Actions.taskInformation = function()
|
|
|
|
|
{
|
2013-06-03 18:13:38 -04:00
|
|
|
Ext.Ajax.request({
|
|
|
|
|
url : 'ajaxListener' ,
|
|
|
|
|
params : {action : 'getTaskInformation'},
|
|
|
|
|
success: function ( result, request ) {
|
|
|
|
|
var data = Ext.util.JSON.decode(result.responseText);
|
|
|
|
|
if( data.lostSession ) {
|
|
|
|
|
Ext.Msg.show({
|
|
|
|
|
title: _('ID_ERROR'),
|
|
|
|
|
msg: data.message,
|
|
|
|
|
animEl: 'elId',
|
|
|
|
|
icon: Ext.MessageBox.ERROR,
|
|
|
|
|
buttons: Ext.MessageBox.OK,
|
|
|
|
|
fn : function(btn) {
|
2014-06-24 17:04:08 -04:00
|
|
|
try
|
BUG 11969 Web session TimeOut at HOME
Se realizo una correccion de los direccionamientos de los iframes al perder sesion, ya q siempre q se perdia sesion antes, se mostraba dentro del mismo iframe el cuadro para volverse a logear, logrando asi q el usuario se mantenga en el mismo iframe una ves se relogee, sin tener asi q volver a buscar el lugar donde estaba trabajando. A pedido de QA, ahora se muestra el cuadro de logeo en el iframe mayor, totalmente fuera de PM, y siempre al volver a logearse se redirecciona al tab HOME > Index, y ya no asi al frame o lugar exacto donde se perdio sesion.
Por ejemplo: si se pie sesion en el listado Draft, no se volvera a dicho listado, sino en cambio al volverse a logear se redireccionara a HOME > Indexdex.
El cambio se aplico a los lugares donde se podia redireccionar al parent.
Se tomo en cuenta tambien que algunos clientes utilizan el listado de casos dentro de sus propias webs.
2013-09-02 17:45:37 -04:00
|
|
|
{
|
|
|
|
|
prnt = parent.parent;
|
|
|
|
|
top.location = top.location;
|
|
|
|
|
}
|
2014-06-24 17:04:08 -04:00
|
|
|
catch (err)
|
BUG 11969 Web session TimeOut at HOME
Se realizo una correccion de los direccionamientos de los iframes al perder sesion, ya q siempre q se perdia sesion antes, se mostraba dentro del mismo iframe el cuadro para volverse a logear, logrando asi q el usuario se mantenga en el mismo iframe una ves se relogee, sin tener asi q volver a buscar el lugar donde estaba trabajando. A pedido de QA, ahora se muestra el cuadro de logeo en el iframe mayor, totalmente fuera de PM, y siempre al volver a logearse se redirecciona al tab HOME > Index, y ya no asi al frame o lugar exacto donde se perdio sesion.
Por ejemplo: si se pie sesion en el listado Draft, no se volvera a dicho listado, sino en cambio al volverse a logear se redireccionara a HOME > Indexdex.
El cambio se aplico a los lugares donde se podia redireccionar al parent.
Se tomo en cuenta tambien que algunos clientes utilizan el listado de casos dentro de sus propias webs.
2013-09-02 17:45:37 -04:00
|
|
|
{
|
|
|
|
|
parent.location = parent.location;
|
|
|
|
|
}
|
2013-06-03 18:13:38 -04:00
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
fieldset = {
|
|
|
|
|
xtype : 'fieldset',
|
|
|
|
|
autoHeight : true,
|
|
|
|
|
defaults : {
|
|
|
|
|
width : 170,
|
|
|
|
|
xtype:'label',
|
|
|
|
|
labelStyle : 'padding: 0px;',
|
|
|
|
|
style: 'font-weight: bold'
|
|
|
|
|
},
|
|
|
|
|
items : [
|
|
|
|
|
{fieldLabel: _('ID_TITLE'), text: data.TAS_TITLE},
|
|
|
|
|
{fieldLabel: _('ID_DESCRIPTION'), text: data.TAS_DESCRIPTION},
|
|
|
|
|
{fieldLabel: _('ID_INIT_DATE'), text: data.INIT_DATE},
|
|
|
|
|
{fieldLabel: _('ID_DUE_DATE'), text: data.DUE_DATE},
|
|
|
|
|
{fieldLabel: _('ID_FINISH_DATE'), text: data.FINISH},
|
|
|
|
|
{fieldLabel: _('ID_TASK_DURATION'), text: data.DURATION}
|
|
|
|
|
]
|
|
|
|
|
}
|
2013-06-17 15:52:22 -04:00
|
|
|
|
2013-06-03 18:13:38 -04:00
|
|
|
var frm = new Ext.FormPanel( {
|
|
|
|
|
labelAlign : 'right',
|
|
|
|
|
bodyStyle : 'padding:5px 5px 0',
|
|
|
|
|
width : 400,
|
|
|
|
|
autoScroll:true,
|
|
|
|
|
items : [fieldset],
|
|
|
|
|
buttons : [{
|
|
|
|
|
text : 'OK',
|
|
|
|
|
handler : function() {
|
|
|
|
|
win.close();
|
|
|
|
|
}
|
|
|
|
|
}]
|
|
|
|
|
});
|
2013-06-17 15:52:22 -04:00
|
|
|
|
2013-06-03 18:13:38 -04:00
|
|
|
var win = new Ext.Window({
|
|
|
|
|
title: '',
|
|
|
|
|
width: 450,
|
|
|
|
|
height: 280,
|
|
|
|
|
layout:'fit',
|
|
|
|
|
autoScroll:true,
|
|
|
|
|
modal: true,
|
|
|
|
|
maximizable: false,
|
|
|
|
|
items: [frm]
|
|
|
|
|
});
|
|
|
|
|
win.show();
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
failure: function ( result, request) {
|
|
|
|
|
Ext.MessageBox.alert( _('ID_FAILED'), result.responseText);
|
|
|
|
|
}
|
|
|
|
|
});
|
2011-02-04 15:57:06 +00:00
|
|
|
}
|
2011-07-14 10:45:20 -04:00
|
|
|
|
2011-02-04 15:57:06 +00:00
|
|
|
Actions.caseHistory = function()
|
|
|
|
|
{
|
2013-06-03 18:13:38 -04:00
|
|
|
Ext.Ajax.request({
|
|
|
|
|
url : 'ajaxListener' ,
|
|
|
|
|
params : {action : 'verifySession'},
|
|
|
|
|
success: function ( result, request ) {
|
|
|
|
|
var data = Ext.util.JSON.decode(result.responseText);
|
|
|
|
|
if( data.lostSession ) {
|
|
|
|
|
Ext.Msg.show({
|
|
|
|
|
title: _('ID_ERROR'),
|
|
|
|
|
msg: data.message,
|
|
|
|
|
animEl: 'elId',
|
|
|
|
|
icon: Ext.MessageBox.ERROR,
|
|
|
|
|
buttons: Ext.MessageBox.OK,
|
|
|
|
|
fn : function(btn) {
|
2014-06-24 17:04:08 -04:00
|
|
|
try
|
BUG 11969 Web session TimeOut at HOME
Se realizo una correccion de los direccionamientos de los iframes al perder sesion, ya q siempre q se perdia sesion antes, se mostraba dentro del mismo iframe el cuadro para volverse a logear, logrando asi q el usuario se mantenga en el mismo iframe una ves se relogee, sin tener asi q volver a buscar el lugar donde estaba trabajando. A pedido de QA, ahora se muestra el cuadro de logeo en el iframe mayor, totalmente fuera de PM, y siempre al volver a logearse se redirecciona al tab HOME > Index, y ya no asi al frame o lugar exacto donde se perdio sesion.
Por ejemplo: si se pie sesion en el listado Draft, no se volvera a dicho listado, sino en cambio al volverse a logear se redireccionara a HOME > Indexdex.
El cambio se aplico a los lugares donde se podia redireccionar al parent.
Se tomo en cuenta tambien que algunos clientes utilizan el listado de casos dentro de sus propias webs.
2013-09-02 17:45:37 -04:00
|
|
|
{
|
|
|
|
|
prnt = parent.parent;
|
|
|
|
|
top.location = top.location;
|
|
|
|
|
}
|
2014-06-24 17:04:08 -04:00
|
|
|
catch (err)
|
BUG 11969 Web session TimeOut at HOME
Se realizo una correccion de los direccionamientos de los iframes al perder sesion, ya q siempre q se perdia sesion antes, se mostraba dentro del mismo iframe el cuadro para volverse a logear, logrando asi q el usuario se mantenga en el mismo iframe una ves se relogee, sin tener asi q volver a buscar el lugar donde estaba trabajando. A pedido de QA, ahora se muestra el cuadro de logeo en el iframe mayor, totalmente fuera de PM, y siempre al volver a logearse se redirecciona al tab HOME > Index, y ya no asi al frame o lugar exacto donde se perdio sesion.
Por ejemplo: si se pie sesion en el listado Draft, no se volvera a dicho listado, sino en cambio al volverse a logear se redireccionara a HOME > Indexdex.
El cambio se aplico a los lugares donde se podia redireccionar al parent.
Se tomo en cuenta tambien que algunos clientes utilizan el listado de casos dentro de sus propias webs.
2013-09-02 17:45:37 -04:00
|
|
|
{
|
|
|
|
|
parent.location = parent.location;
|
|
|
|
|
}
|
2013-06-03 18:13:38 -04:00
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
Actions.tabFrame('caseHistory');
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
failure: function ( result, request) {
|
|
|
|
|
if (typeof(result.responseText) != 'undefined') {
|
|
|
|
|
Ext.MessageBox.alert( _('ID_FAILED'), result.responseText);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
2011-02-04 15:57:06 +00:00
|
|
|
}
|
2011-07-14 10:45:20 -04:00
|
|
|
|
2011-02-04 15:57:06 +00:00
|
|
|
Actions.messageHistory = function()
|
|
|
|
|
{
|
2013-06-03 18:13:38 -04:00
|
|
|
Ext.Ajax.request({
|
|
|
|
|
url : 'ajaxListener' ,
|
|
|
|
|
params : {action : 'verifySession'},
|
|
|
|
|
success: function ( result, request ) {
|
|
|
|
|
var data = Ext.util.JSON.decode(result.responseText);
|
|
|
|
|
if( data.lostSession ) {
|
|
|
|
|
Ext.Msg.show({
|
|
|
|
|
title: _('ID_ERROR'),
|
|
|
|
|
msg: data.message,
|
|
|
|
|
animEl: 'elId',
|
|
|
|
|
icon: Ext.MessageBox.ERROR,
|
|
|
|
|
buttons: Ext.MessageBox.OK,
|
|
|
|
|
fn : function(btn) {
|
2014-06-24 17:04:08 -04:00
|
|
|
try
|
BUG 11969 Web session TimeOut at HOME
Se realizo una correccion de los direccionamientos de los iframes al perder sesion, ya q siempre q se perdia sesion antes, se mostraba dentro del mismo iframe el cuadro para volverse a logear, logrando asi q el usuario se mantenga en el mismo iframe una ves se relogee, sin tener asi q volver a buscar el lugar donde estaba trabajando. A pedido de QA, ahora se muestra el cuadro de logeo en el iframe mayor, totalmente fuera de PM, y siempre al volver a logearse se redirecciona al tab HOME > Index, y ya no asi al frame o lugar exacto donde se perdio sesion.
Por ejemplo: si se pie sesion en el listado Draft, no se volvera a dicho listado, sino en cambio al volverse a logear se redireccionara a HOME > Indexdex.
El cambio se aplico a los lugares donde se podia redireccionar al parent.
Se tomo en cuenta tambien que algunos clientes utilizan el listado de casos dentro de sus propias webs.
2013-09-02 17:45:37 -04:00
|
|
|
{
|
|
|
|
|
prnt = parent.parent;
|
|
|
|
|
top.location = top.location;
|
|
|
|
|
}
|
2014-06-24 17:04:08 -04:00
|
|
|
catch (err)
|
BUG 11969 Web session TimeOut at HOME
Se realizo una correccion de los direccionamientos de los iframes al perder sesion, ya q siempre q se perdia sesion antes, se mostraba dentro del mismo iframe el cuadro para volverse a logear, logrando asi q el usuario se mantenga en el mismo iframe una ves se relogee, sin tener asi q volver a buscar el lugar donde estaba trabajando. A pedido de QA, ahora se muestra el cuadro de logeo en el iframe mayor, totalmente fuera de PM, y siempre al volver a logearse se redirecciona al tab HOME > Index, y ya no asi al frame o lugar exacto donde se perdio sesion.
Por ejemplo: si se pie sesion en el listado Draft, no se volvera a dicho listado, sino en cambio al volverse a logear se redireccionara a HOME > Indexdex.
El cambio se aplico a los lugares donde se podia redireccionar al parent.
Se tomo en cuenta tambien que algunos clientes utilizan el listado de casos dentro de sus propias webs.
2013-09-02 17:45:37 -04:00
|
|
|
{
|
|
|
|
|
parent.location = parent.location;
|
|
|
|
|
}
|
2013-06-03 18:13:38 -04:00
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
Actions.tabFrame('messageHistory');
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
failure: function ( result, request) {
|
|
|
|
|
if (typeof(result.responseText) != 'undefined') {
|
|
|
|
|
Ext.MessageBox.alert( _('ID_FAILED'), result.responseText);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
2011-02-04 15:57:06 +00:00
|
|
|
}
|
2011-07-14 10:45:20 -04:00
|
|
|
|
2011-02-04 15:57:06 +00:00
|
|
|
Actions.dynaformHistory = function()
|
|
|
|
|
{
|
2013-06-03 18:13:38 -04:00
|
|
|
Ext.Ajax.request({
|
|
|
|
|
url : 'ajaxListener' ,
|
|
|
|
|
params : {action : 'verifySession'},
|
|
|
|
|
success: function ( result, request ) {
|
|
|
|
|
var data = Ext.util.JSON.decode(result.responseText);
|
|
|
|
|
if( data.lostSession ) {
|
|
|
|
|
Ext.Msg.show({
|
|
|
|
|
title: _('ID_ERROR'),
|
|
|
|
|
msg: data.message,
|
|
|
|
|
animEl: 'elId',
|
|
|
|
|
icon: Ext.MessageBox.ERROR,
|
|
|
|
|
buttons: Ext.MessageBox.OK,
|
|
|
|
|
fn : function(btn) {
|
2014-06-24 17:04:08 -04:00
|
|
|
try
|
BUG 11969 Web session TimeOut at HOME
Se realizo una correccion de los direccionamientos de los iframes al perder sesion, ya q siempre q se perdia sesion antes, se mostraba dentro del mismo iframe el cuadro para volverse a logear, logrando asi q el usuario se mantenga en el mismo iframe una ves se relogee, sin tener asi q volver a buscar el lugar donde estaba trabajando. A pedido de QA, ahora se muestra el cuadro de logeo en el iframe mayor, totalmente fuera de PM, y siempre al volver a logearse se redirecciona al tab HOME > Index, y ya no asi al frame o lugar exacto donde se perdio sesion.
Por ejemplo: si se pie sesion en el listado Draft, no se volvera a dicho listado, sino en cambio al volverse a logear se redireccionara a HOME > Indexdex.
El cambio se aplico a los lugares donde se podia redireccionar al parent.
Se tomo en cuenta tambien que algunos clientes utilizan el listado de casos dentro de sus propias webs.
2013-09-02 17:45:37 -04:00
|
|
|
{
|
|
|
|
|
prnt = parent.parent;
|
|
|
|
|
top.location = top.location;
|
|
|
|
|
}
|
2014-06-24 17:04:08 -04:00
|
|
|
catch (err)
|
BUG 11969 Web session TimeOut at HOME
Se realizo una correccion de los direccionamientos de los iframes al perder sesion, ya q siempre q se perdia sesion antes, se mostraba dentro del mismo iframe el cuadro para volverse a logear, logrando asi q el usuario se mantenga en el mismo iframe una ves se relogee, sin tener asi q volver a buscar el lugar donde estaba trabajando. A pedido de QA, ahora se muestra el cuadro de logeo en el iframe mayor, totalmente fuera de PM, y siempre al volver a logearse se redirecciona al tab HOME > Index, y ya no asi al frame o lugar exacto donde se perdio sesion.
Por ejemplo: si se pie sesion en el listado Draft, no se volvera a dicho listado, sino en cambio al volverse a logear se redireccionara a HOME > Indexdex.
El cambio se aplico a los lugares donde se podia redireccionar al parent.
Se tomo en cuenta tambien que algunos clientes utilizan el listado de casos dentro de sus propias webs.
2013-09-02 17:45:37 -04:00
|
|
|
{
|
|
|
|
|
parent.location = parent.location;
|
|
|
|
|
}
|
2013-06-03 18:13:38 -04:00
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
Actions.tabFrame('dynaformHistory');
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
failure: function ( result, request) {
|
|
|
|
|
if (typeof(result.responseText) != 'undefined') {
|
|
|
|
|
Ext.MessageBox.alert( _('ID_FAILED'), result.responseText);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
2011-02-04 15:57:06 +00:00
|
|
|
}
|
2011-07-14 10:45:20 -04:00
|
|
|
|
2011-02-04 15:57:06 +00:00
|
|
|
Actions.uploadedDocuments = function()
|
|
|
|
|
{
|
2013-06-03 18:13:38 -04:00
|
|
|
Ext.Ajax.request({
|
|
|
|
|
url : 'ajaxListener' ,
|
|
|
|
|
params : {action : 'verifySession'},
|
|
|
|
|
success: function ( result, request ) {
|
|
|
|
|
var data = Ext.util.JSON.decode(result.responseText);
|
|
|
|
|
if( data.lostSession ) {
|
|
|
|
|
Ext.Msg.show({
|
|
|
|
|
title: _('ID_ERROR'),
|
|
|
|
|
msg: data.message,
|
|
|
|
|
animEl: 'elId',
|
|
|
|
|
icon: Ext.MessageBox.ERROR,
|
|
|
|
|
buttons: Ext.MessageBox.OK,
|
|
|
|
|
fn : function(btn) {
|
2014-06-24 17:04:08 -04:00
|
|
|
try
|
BUG 11969 Web session TimeOut at HOME
Se realizo una correccion de los direccionamientos de los iframes al perder sesion, ya q siempre q se perdia sesion antes, se mostraba dentro del mismo iframe el cuadro para volverse a logear, logrando asi q el usuario se mantenga en el mismo iframe una ves se relogee, sin tener asi q volver a buscar el lugar donde estaba trabajando. A pedido de QA, ahora se muestra el cuadro de logeo en el iframe mayor, totalmente fuera de PM, y siempre al volver a logearse se redirecciona al tab HOME > Index, y ya no asi al frame o lugar exacto donde se perdio sesion.
Por ejemplo: si se pie sesion en el listado Draft, no se volvera a dicho listado, sino en cambio al volverse a logear se redireccionara a HOME > Indexdex.
El cambio se aplico a los lugares donde se podia redireccionar al parent.
Se tomo en cuenta tambien que algunos clientes utilizan el listado de casos dentro de sus propias webs.
2013-09-02 17:45:37 -04:00
|
|
|
{
|
|
|
|
|
prnt = parent.parent;
|
|
|
|
|
top.location = top.location;
|
|
|
|
|
}
|
2014-06-24 17:04:08 -04:00
|
|
|
catch (err)
|
BUG 11969 Web session TimeOut at HOME
Se realizo una correccion de los direccionamientos de los iframes al perder sesion, ya q siempre q se perdia sesion antes, se mostraba dentro del mismo iframe el cuadro para volverse a logear, logrando asi q el usuario se mantenga en el mismo iframe una ves se relogee, sin tener asi q volver a buscar el lugar donde estaba trabajando. A pedido de QA, ahora se muestra el cuadro de logeo en el iframe mayor, totalmente fuera de PM, y siempre al volver a logearse se redirecciona al tab HOME > Index, y ya no asi al frame o lugar exacto donde se perdio sesion.
Por ejemplo: si se pie sesion en el listado Draft, no se volvera a dicho listado, sino en cambio al volverse a logear se redireccionara a HOME > Indexdex.
El cambio se aplico a los lugares donde se podia redireccionar al parent.
Se tomo en cuenta tambien que algunos clientes utilizan el listado de casos dentro de sus propias webs.
2013-09-02 17:45:37 -04:00
|
|
|
{
|
|
|
|
|
parent.location = parent.location;
|
|
|
|
|
}
|
2013-06-03 18:13:38 -04:00
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
Actions.tabFrame('uploadedDocuments');
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
failure: function ( result, request) {
|
|
|
|
|
if (typeof(result.responseText) != 'undefined') {
|
|
|
|
|
Ext.MessageBox.alert( _('ID_FAILED'), result.responseText);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
2011-02-04 15:57:06 +00:00
|
|
|
}
|
2011-07-14 10:45:20 -04:00
|
|
|
|
2011-02-04 15:57:06 +00:00
|
|
|
Actions.generatedDocuments = function()
|
|
|
|
|
{
|
2013-06-03 18:13:38 -04:00
|
|
|
Ext.Ajax.request({
|
|
|
|
|
url : 'ajaxListener' ,
|
|
|
|
|
params : {action : 'verifySession'},
|
|
|
|
|
success: function ( result, request ) {
|
|
|
|
|
var data = Ext.util.JSON.decode(result.responseText);
|
|
|
|
|
if( data.lostSession ) {
|
|
|
|
|
Ext.Msg.show({
|
|
|
|
|
title: _('ID_ERROR'),
|
|
|
|
|
msg: data.message,
|
|
|
|
|
animEl: 'elId',
|
|
|
|
|
icon: Ext.MessageBox.ERROR,
|
|
|
|
|
buttons: Ext.MessageBox.OK,
|
|
|
|
|
fn : function(btn) {
|
2014-06-24 17:04:08 -04:00
|
|
|
try
|
BUG 11969 Web session TimeOut at HOME
Se realizo una correccion de los direccionamientos de los iframes al perder sesion, ya q siempre q se perdia sesion antes, se mostraba dentro del mismo iframe el cuadro para volverse a logear, logrando asi q el usuario se mantenga en el mismo iframe una ves se relogee, sin tener asi q volver a buscar el lugar donde estaba trabajando. A pedido de QA, ahora se muestra el cuadro de logeo en el iframe mayor, totalmente fuera de PM, y siempre al volver a logearse se redirecciona al tab HOME > Index, y ya no asi al frame o lugar exacto donde se perdio sesion.
Por ejemplo: si se pie sesion en el listado Draft, no se volvera a dicho listado, sino en cambio al volverse a logear se redireccionara a HOME > Indexdex.
El cambio se aplico a los lugares donde se podia redireccionar al parent.
Se tomo en cuenta tambien que algunos clientes utilizan el listado de casos dentro de sus propias webs.
2013-09-02 17:45:37 -04:00
|
|
|
{
|
|
|
|
|
prnt = parent.parent;
|
|
|
|
|
top.location = top.location;
|
|
|
|
|
}
|
2014-06-24 17:04:08 -04:00
|
|
|
catch (err)
|
BUG 11969 Web session TimeOut at HOME
Se realizo una correccion de los direccionamientos de los iframes al perder sesion, ya q siempre q se perdia sesion antes, se mostraba dentro del mismo iframe el cuadro para volverse a logear, logrando asi q el usuario se mantenga en el mismo iframe una ves se relogee, sin tener asi q volver a buscar el lugar donde estaba trabajando. A pedido de QA, ahora se muestra el cuadro de logeo en el iframe mayor, totalmente fuera de PM, y siempre al volver a logearse se redirecciona al tab HOME > Index, y ya no asi al frame o lugar exacto donde se perdio sesion.
Por ejemplo: si se pie sesion en el listado Draft, no se volvera a dicho listado, sino en cambio al volverse a logear se redireccionara a HOME > Indexdex.
El cambio se aplico a los lugares donde se podia redireccionar al parent.
Se tomo en cuenta tambien que algunos clientes utilizan el listado de casos dentro de sus propias webs.
2013-09-02 17:45:37 -04:00
|
|
|
{
|
|
|
|
|
parent.location = parent.location;
|
|
|
|
|
}
|
2013-06-03 18:13:38 -04:00
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
Actions.tabFrame('generatedDocuments');
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
failure: function ( result, request) {
|
|
|
|
|
if (typeof(result.responseText) != 'undefined') {
|
|
|
|
|
Ext.MessageBox.alert( _('ID_FAILED'), result.responseText);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
2011-02-04 15:57:06 +00:00
|
|
|
}
|
2011-07-14 10:45:20 -04:00
|
|
|
|
2011-02-04 15:57:06 +00:00
|
|
|
Actions.cancelCase = function()
|
|
|
|
|
{
|
2012-07-25 16:54:54 -04:00
|
|
|
var msgCancel = new Ext.Window({
|
|
|
|
|
width:500,
|
|
|
|
|
plain: true,
|
|
|
|
|
modal: true,
|
2013-08-16 12:05:13 -04:00
|
|
|
resizable: false,
|
2012-07-25 16:54:54 -04:00
|
|
|
title: _('ID_CONFIRM'),
|
|
|
|
|
items: [
|
|
|
|
|
new Ext.FormPanel({
|
|
|
|
|
labelAlign: 'top',
|
|
|
|
|
labelWidth: 75,
|
|
|
|
|
border: false,
|
|
|
|
|
frame: true,
|
|
|
|
|
items: [
|
|
|
|
|
{
|
|
|
|
|
html: '<div align="center" style="font: 14px tahoma,arial,helvetica,sans-serif">' + _('ID_CONFIRM_CANCEL_CASE')+'? </div> <br/>'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
xtype: 'textarea',
|
|
|
|
|
id: 'noteReason',
|
|
|
|
|
fieldLabel: _('ID_CASE_CANCEL_REASON'),
|
|
|
|
|
name: 'noteReason',
|
|
|
|
|
width: 450,
|
|
|
|
|
height: 50
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 'notifyReason',
|
|
|
|
|
xtype:'checkbox',
|
|
|
|
|
name: 'notifyReason',
|
|
|
|
|
hideLabel: true,
|
2012-08-07 17:48:28 -04:00
|
|
|
boxLabel: _('ID_NOTIFY_USERS_CASE')
|
2012-07-25 16:54:54 -04:00
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
|
|
|
|
|
buttonAlign: 'center',
|
|
|
|
|
|
|
|
|
|
buttons: [{
|
|
|
|
|
text: 'Ok',
|
|
|
|
|
handler: function(){
|
|
|
|
|
if (Ext.getCmp('noteReason').getValue() != '') {
|
|
|
|
|
var noteReasonTxt = _('ID_CASE_CANCEL_LABEL_NOTE') + ' ' + Ext.getCmp('noteReason').getValue();
|
|
|
|
|
} else {
|
|
|
|
|
var noteReasonTxt = '';
|
|
|
|
|
}
|
|
|
|
|
var notifyReasonVal = Ext.getCmp('notifyReason').getValue() == true ? 1 : 0;
|
2012-09-04 13:29:32 -04:00
|
|
|
|
2012-07-25 16:54:54 -04:00
|
|
|
Ext.MessageBox.show({ msg: _('ID_PROCESSING'), wait:true,waitConfig: {interval:200} });
|
|
|
|
|
Ext.Ajax.request({
|
|
|
|
|
url : 'ajaxListener' ,
|
|
|
|
|
params : {action : 'cancelCase', NOTE_REASON: noteReasonTxt, NOTIFY_PAUSE: notifyReasonVal},
|
|
|
|
|
success: function ( result, request ) {
|
|
|
|
|
try {
|
2013-04-09 16:35:58 -04:00
|
|
|
parent.notify("", _("ID_CASE_CANCELLED", stringReplace("\\: ", "", _APP_NUM)));
|
2012-07-25 16:54:54 -04:00
|
|
|
}
|
|
|
|
|
catch (e) {
|
|
|
|
|
}
|
|
|
|
|
location.href = 'casesListExtJs';
|
|
|
|
|
},
|
|
|
|
|
failure: function ( result, request) {
|
2013-03-14 15:15:04 -04:00
|
|
|
Ext.MessageBox.alert( _('ID_FAILED'), result.responseText);
|
2012-07-25 16:54:54 -04:00
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
},{
|
2013-03-14 15:15:04 -04:00
|
|
|
text: _('ID_CANCEL'),
|
2012-07-25 16:54:54 -04:00
|
|
|
handler: function(){
|
|
|
|
|
msgCancel.close();
|
|
|
|
|
}
|
|
|
|
|
}]
|
|
|
|
|
})
|
|
|
|
|
]
|
2011-02-04 15:57:06 +00:00
|
|
|
});
|
2012-07-25 16:54:54 -04:00
|
|
|
msgCancel.show(this);
|
2011-02-04 15:57:06 +00:00
|
|
|
}
|
2011-07-14 10:45:20 -04:00
|
|
|
|
2011-02-04 15:57:06 +00:00
|
|
|
Actions.getUsersToReassign = function()
|
|
|
|
|
{
|
|
|
|
|
var store = new Ext.data.Store( {
|
|
|
|
|
autoLoad: true,
|
|
|
|
|
proxy : new Ext.data.HttpProxy({
|
|
|
|
|
url: 'ajaxListener?action=getUsersToReassign'
|
|
|
|
|
}),
|
|
|
|
|
reader : new Ext.data.JsonReader( {
|
|
|
|
|
root: 'data',
|
|
|
|
|
fields : [
|
|
|
|
|
{name : 'USR_UID'},
|
2011-08-12 15:46:26 -04:00
|
|
|
{name : 'USR_USERNAME'},
|
2011-02-04 15:57:06 +00:00
|
|
|
{name : 'USR_FIRSTNAME'},
|
2011-08-12 15:46:26 -04:00
|
|
|
{name : 'USR_LASTNAME'}
|
2011-02-04 15:57:06 +00:00
|
|
|
]
|
|
|
|
|
})
|
|
|
|
|
});
|
2011-07-14 10:45:20 -04:00
|
|
|
|
2011-02-04 15:57:06 +00:00
|
|
|
var grid = new Ext.grid.GridPanel( {
|
|
|
|
|
id: 'reassignGrid',
|
|
|
|
|
height:300,
|
|
|
|
|
width:'300',
|
|
|
|
|
title : '',
|
|
|
|
|
stateful : true,
|
2013-06-06 15:34:18 -04:00
|
|
|
stateId : 'gridCasesOpen',
|
2011-02-04 15:57:06 +00:00
|
|
|
enableColumnResize: true,
|
|
|
|
|
enableHdMenu: true,
|
|
|
|
|
frame:false,
|
|
|
|
|
cls : 'grid_with_checkbox',
|
|
|
|
|
columnLines: true,
|
|
|
|
|
|
|
|
|
|
viewConfig: {
|
|
|
|
|
forceFit:true
|
|
|
|
|
},
|
2011-07-14 10:45:20 -04:00
|
|
|
|
2011-02-04 15:57:06 +00:00
|
|
|
cm: new Ext.grid.ColumnModel({
|
|
|
|
|
defaults: {
|
|
|
|
|
width: 200,
|
|
|
|
|
sortable: true
|
2011-07-14 10:45:20 -04:00
|
|
|
},
|
2011-02-04 15:57:06 +00:00
|
|
|
columns: [
|
|
|
|
|
{id:'USR_UID', dataIndex: 'USR_UID', hidden:true, hideable:false},
|
2011-08-12 15:46:26 -04:00
|
|
|
{header: _('ID_USER_NAME'), dataIndex: 'USR_USERNAME', width: 300},
|
2011-02-04 15:57:06 +00:00
|
|
|
{header: _('ID_FIRSTNAME'), dataIndex: 'USR_FIRSTNAME', width: 300},
|
2011-08-12 15:46:26 -04:00
|
|
|
{header: _('ID_LASTNAME'), dataIndex: 'USR_LASTNAME', width: 300}
|
2011-02-04 15:57:06 +00:00
|
|
|
]
|
|
|
|
|
}),
|
2014-06-24 17:04:08 -04:00
|
|
|
sm: new Ext.grid.RowSelectionModel({singleSelect: true}),
|
2011-02-04 15:57:06 +00:00
|
|
|
store: store,
|
|
|
|
|
|
|
|
|
|
tbar:[
|
|
|
|
|
{
|
|
|
|
|
text:_('ID_REASSIGN'),
|
|
|
|
|
iconCls: 'ICON_CASES_TO_REASSIGN',
|
|
|
|
|
handler: Actions.reassignCase
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
listeners: {
|
|
|
|
|
//rowdblclick: openCase,
|
|
|
|
|
render: function(){
|
|
|
|
|
this.loadMask = new Ext.LoadMask(this.body, {msg:_('ID_LOADING')});
|
|
|
|
|
this.ownerCt.doLayout();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
2011-07-14 10:45:20 -04:00
|
|
|
|
2011-02-04 15:57:06 +00:00
|
|
|
var win = new Ext.Window({
|
|
|
|
|
title: '',
|
|
|
|
|
width: 450,
|
|
|
|
|
height: 280,
|
|
|
|
|
layout:'fit',
|
|
|
|
|
autoScroll:true,
|
|
|
|
|
modal: true,
|
2013-08-16 12:05:13 -04:00
|
|
|
resizable: false,
|
2011-02-04 15:57:06 +00:00
|
|
|
maximizable: false,
|
|
|
|
|
items: [grid]
|
|
|
|
|
});
|
2013-06-03 18:13:38 -04:00
|
|
|
Ext.Ajax.request({
|
|
|
|
|
url : 'ajaxListener' ,
|
|
|
|
|
params : {action : 'verifySession'},
|
|
|
|
|
success: function ( result, request ) {
|
|
|
|
|
var data = Ext.util.JSON.decode(result.responseText);
|
|
|
|
|
if( data.lostSession ) {
|
|
|
|
|
Ext.Msg.show({
|
|
|
|
|
title: _('ID_ERROR'),
|
|
|
|
|
msg: data.message,
|
|
|
|
|
animEl: 'elId',
|
|
|
|
|
icon: Ext.MessageBox.ERROR,
|
|
|
|
|
buttons: Ext.MessageBox.OK,
|
|
|
|
|
fn : function(btn) {
|
2014-06-24 17:04:08 -04:00
|
|
|
try
|
BUG 11969 Web session TimeOut at HOME
Se realizo una correccion de los direccionamientos de los iframes al perder sesion, ya q siempre q se perdia sesion antes, se mostraba dentro del mismo iframe el cuadro para volverse a logear, logrando asi q el usuario se mantenga en el mismo iframe una ves se relogee, sin tener asi q volver a buscar el lugar donde estaba trabajando. A pedido de QA, ahora se muestra el cuadro de logeo en el iframe mayor, totalmente fuera de PM, y siempre al volver a logearse se redirecciona al tab HOME > Index, y ya no asi al frame o lugar exacto donde se perdio sesion.
Por ejemplo: si se pie sesion en el listado Draft, no se volvera a dicho listado, sino en cambio al volverse a logear se redireccionara a HOME > Indexdex.
El cambio se aplico a los lugares donde se podia redireccionar al parent.
Se tomo en cuenta tambien que algunos clientes utilizan el listado de casos dentro de sus propias webs.
2013-09-02 17:45:37 -04:00
|
|
|
{
|
|
|
|
|
prnt = parent.parent;
|
|
|
|
|
top.location = top.location;
|
|
|
|
|
}
|
2014-06-24 17:04:08 -04:00
|
|
|
catch (err)
|
BUG 11969 Web session TimeOut at HOME
Se realizo una correccion de los direccionamientos de los iframes al perder sesion, ya q siempre q se perdia sesion antes, se mostraba dentro del mismo iframe el cuadro para volverse a logear, logrando asi q el usuario se mantenga en el mismo iframe una ves se relogee, sin tener asi q volver a buscar el lugar donde estaba trabajando. A pedido de QA, ahora se muestra el cuadro de logeo en el iframe mayor, totalmente fuera de PM, y siempre al volver a logearse se redirecciona al tab HOME > Index, y ya no asi al frame o lugar exacto donde se perdio sesion.
Por ejemplo: si se pie sesion en el listado Draft, no se volvera a dicho listado, sino en cambio al volverse a logear se redireccionara a HOME > Indexdex.
El cambio se aplico a los lugares donde se podia redireccionar al parent.
Se tomo en cuenta tambien que algunos clientes utilizan el listado de casos dentro de sus propias webs.
2013-09-02 17:45:37 -04:00
|
|
|
{
|
|
|
|
|
parent.location = parent.location;
|
|
|
|
|
}
|
2013-06-03 18:13:38 -04:00
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
win.show();
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
failure: function ( result, request) {
|
|
|
|
|
if (typeof(result.responseText) != 'undefined') {
|
|
|
|
|
Ext.MessageBox.alert( _('ID_FAILED'), result.responseText);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
2011-02-04 15:57:06 +00:00
|
|
|
}
|
2011-07-14 10:45:20 -04:00
|
|
|
|
2011-02-04 15:57:06 +00:00
|
|
|
Actions.reassignCase = function()
|
|
|
|
|
{
|
|
|
|
|
var rowSelected = Ext.getCmp('reassignGrid').getSelectionModel().getSelected();
|
|
|
|
|
if( rowSelected ) {
|
|
|
|
|
PMExt.confirm(_('ID_CONFIRM'), _('ID_REASSIGN_CONFIRM'), function(){
|
|
|
|
|
Ext.Ajax.request({
|
2011-07-14 10:45:20 -04:00
|
|
|
url : 'ajaxListener' ,
|
2011-02-24 20:34:14 +00:00
|
|
|
params : {action : 'reassignCase', USR_UID: rowSelected.data.USR_UID},
|
2011-02-04 15:57:06 +00:00
|
|
|
success: function ( result, request ) {
|
2011-07-14 10:45:20 -04:00
|
|
|
var data = Ext.util.JSON.decode(result.responseText);
|
2011-02-04 15:57:06 +00:00
|
|
|
if( data.status == 0 ) {
|
2011-09-13 19:31:36 -04:00
|
|
|
try {
|
|
|
|
|
parent.notify('', data.msg);
|
|
|
|
|
}
|
|
|
|
|
catch (e) {
|
|
|
|
|
}
|
2011-02-04 15:57:06 +00:00
|
|
|
location.href = 'casesListExtJs';
|
|
|
|
|
} else {
|
|
|
|
|
alert(data.msg);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
failure: function ( result, request) {
|
2013-03-14 15:15:04 -04:00
|
|
|
Ext.MessageBox.alert( _('ID_FAILED') , result.responseText);
|
2011-02-04 15:57:06 +00:00
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
});
|
2011-07-14 10:45:20 -04:00
|
|
|
}
|
2011-02-04 15:57:06 +00:00
|
|
|
}
|
2011-07-14 10:45:20 -04:00
|
|
|
|
2011-02-04 15:57:06 +00:00
|
|
|
Actions.setUnpauseCaseDate = function()
|
|
|
|
|
{
|
2011-05-30 12:54:33 -04:00
|
|
|
curDate = _ENV_CURRENT_DATE_NO_FORMAT.split('-');
|
2011-04-04 15:15:27 -04:00
|
|
|
filterDate = curDate[0]+'-'+curDate[1]+'-';
|
|
|
|
|
nDay = '' + (parseInt(curDate[2])+1);
|
2011-05-11 15:34:13 -04:00
|
|
|
nDay = nDay.length == 1 ? '0' + nDay : nDay;
|
2011-04-04 15:15:27 -04:00
|
|
|
filterDate += nDay;
|
2013-03-26 15:06:40 -04:00
|
|
|
filterTime = ('0' + curDate[3]).slice(-2) + ':' + ('0' + curDate[4]).slice(-2) + ' ' + curDate[5];
|
2011-07-14 10:45:20 -04:00
|
|
|
|
2011-02-04 15:57:06 +00:00
|
|
|
var fieldset = {
|
|
|
|
|
xtype : 'fieldset',
|
2012-07-25 16:54:54 -04:00
|
|
|
labelWidth: 150,
|
2013-08-16 16:47:56 -04:00
|
|
|
width:380,
|
2012-07-25 16:54:54 -04:00
|
|
|
//autoHeight : true,
|
2011-04-04 15:15:27 -04:00
|
|
|
defaults : {
|
2011-02-04 15:57:06 +00:00
|
|
|
width : 170,
|
2012-09-04 13:29:32 -04:00
|
|
|
xtype:'label',
|
2011-02-04 15:57:06 +00:00
|
|
|
labelStyle : 'padding: 0px;',
|
|
|
|
|
style: 'font-weight: bold'
|
|
|
|
|
},
|
|
|
|
|
items : [
|
2013-04-09 16:35:58 -04:00
|
|
|
{fieldLabel: _("ID_CASE"), text: stringReplace("\\: ", "", _APP_NUM)},
|
|
|
|
|
{fieldLabel: _("ID_PAUSE_DATE"), text: _ENV_CURRENT_DATE},
|
2011-02-04 15:57:06 +00:00
|
|
|
new Ext.form.DateField({
|
BUG 8932 Untranslatable strings Information process Information... SOLVED
- It was found that had several labels that are hardcoded.
- Changed hardcoded labels reusing some existing labels and some things were created some labels.
- labels created: ID_INIT_DATE(Init Date), ID_OVERWRITE(Overwrite),ID_BROWSE(Browse),ID_UPLOADING_TRANSLATION_FILE(Uploading the translation file...),
ID_EVALUATION_RESULT ([Success] Evaluation result)
- Labels reused: ID_TITLE, ID_DESCRIPTION, ID_DUE_DATE, ID_FINISH_DATE, ID_SEND, ID_UPLOADED_DOCUMENTS, ID_GENERATED_DOCUMENTS, ID_FILE, ID_FIRST_NAME,
ID_LAST_NAME,ID_ACTIVE,ID_INACTIVE, ID_MSJ_REPORSTO
- image for Starting a case ...
it is labeled translation.ID_TITLE_START_CASE which works only if you change the language to es-ES
-
2012-04-12 09:07:31 -04:00
|
|
|
id: 'unpauseDate',
|
2011-02-04 15:57:06 +00:00
|
|
|
format: 'Y-m-d',
|
2013-03-14 15:15:04 -04:00
|
|
|
fieldLabel: _('ID_UNPAUSE_DATE'),
|
2011-02-04 15:57:06 +00:00
|
|
|
name: 'unpauseDate',
|
2011-04-04 15:15:27 -04:00
|
|
|
allowBlank: false,
|
2012-03-29 11:09:44 -04:00
|
|
|
value: filterDate,
|
|
|
|
|
minValue: filterDate
|
2012-07-25 16:54:54 -04:00
|
|
|
}),
|
2013-03-26 15:06:40 -04:00
|
|
|
new Ext.form.TimeField({
|
|
|
|
|
id: 'unpauseTime',
|
|
|
|
|
fieldLabel: _('ID_UNPAUSE_TIME'),
|
|
|
|
|
name: 'unpauseTime',
|
|
|
|
|
value: filterTime,
|
2013-03-27 13:45:05 -04:00
|
|
|
minValue: formatAMPM(new Date(), true),
|
2013-03-26 15:06:40 -04:00
|
|
|
format: 'h:i A'
|
|
|
|
|
}),
|
2012-07-25 16:54:54 -04:00
|
|
|
{
|
|
|
|
|
xtype: 'textarea',
|
|
|
|
|
id: 'noteReason',
|
|
|
|
|
fieldLabel: _('ID_CASE_PAUSE_REASON'),
|
|
|
|
|
name: 'noteReason',
|
|
|
|
|
width: 170,
|
|
|
|
|
height: 50
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 'notifyReason',
|
|
|
|
|
xtype:'checkbox',
|
|
|
|
|
name: 'notifyReason',
|
2012-08-07 17:48:28 -04:00
|
|
|
fieldLabel: _('ID_NOTIFY_USERS_CASE')
|
2012-07-25 16:54:54 -04:00
|
|
|
}
|
2011-02-04 15:57:06 +00:00
|
|
|
],
|
|
|
|
|
buttons : [
|
|
|
|
|
{
|
|
|
|
|
id: 'submitPauseCase',
|
2011-02-10 14:37:52 +00:00
|
|
|
text : _('ID_PAUSE_CASE'),
|
2011-02-04 15:57:06 +00:00
|
|
|
handler : Actions.pauseCase,
|
2011-02-09 21:21:33 +00:00
|
|
|
disabled:false
|
2011-02-04 15:57:06 +00:00
|
|
|
},{
|
2013-03-14 15:15:04 -04:00
|
|
|
text : _('ID_CANCEL'),
|
2011-02-04 15:57:06 +00:00
|
|
|
handler : function() {
|
|
|
|
|
win.close();
|
|
|
|
|
}
|
|
|
|
|
}
|
2011-07-14 10:45:20 -04:00
|
|
|
]
|
2011-02-04 15:57:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var frm = new Ext.FormPanel( {
|
|
|
|
|
id: 'unpauseFrm',
|
|
|
|
|
labelAlign : 'right',
|
2012-07-25 16:54:54 -04:00
|
|
|
//bodyStyle : 'padding:5px 5px 0',
|
2013-03-26 15:06:40 -04:00
|
|
|
width : 260,
|
2011-02-04 15:57:06 +00:00
|
|
|
items : [fieldset]
|
|
|
|
|
});
|
2011-07-14 10:45:20 -04:00
|
|
|
|
|
|
|
|
|
2011-02-04 15:57:06 +00:00
|
|
|
var win = new Ext.Window({
|
2013-03-14 15:15:04 -04:00
|
|
|
title: _('ID_PAUSE_CASE'),
|
2013-03-26 15:06:40 -04:00
|
|
|
width: 380,
|
2013-08-16 16:47:56 -04:00
|
|
|
height: 260,
|
2011-02-04 15:57:06 +00:00
|
|
|
layout:'fit',
|
|
|
|
|
autoScroll:true,
|
|
|
|
|
modal: true,
|
|
|
|
|
maximizable: false,
|
2013-04-22 16:28:42 +00:00
|
|
|
resizable: false,
|
2013-08-16 16:47:56 -04:00
|
|
|
draggable: false,
|
2011-02-04 15:57:06 +00:00
|
|
|
items: [frm]
|
|
|
|
|
});
|
2013-06-03 18:13:38 -04:00
|
|
|
Ext.Ajax.request({
|
|
|
|
|
url : 'ajaxListener' ,
|
|
|
|
|
params : {action : 'verifySession'},
|
|
|
|
|
success: function ( result, request ) {
|
|
|
|
|
var data = Ext.util.JSON.decode(result.responseText);
|
|
|
|
|
if( data.lostSession ) {
|
|
|
|
|
Ext.Msg.show({
|
|
|
|
|
title: _('ID_ERROR'),
|
|
|
|
|
msg: data.message,
|
|
|
|
|
animEl: 'elId',
|
|
|
|
|
icon: Ext.MessageBox.ERROR,
|
|
|
|
|
buttons: Ext.MessageBox.OK,
|
|
|
|
|
fn : function(btn) {
|
2014-06-24 17:04:08 -04:00
|
|
|
try
|
BUG 11969 Web session TimeOut at HOME
Se realizo una correccion de los direccionamientos de los iframes al perder sesion, ya q siempre q se perdia sesion antes, se mostraba dentro del mismo iframe el cuadro para volverse a logear, logrando asi q el usuario se mantenga en el mismo iframe una ves se relogee, sin tener asi q volver a buscar el lugar donde estaba trabajando. A pedido de QA, ahora se muestra el cuadro de logeo en el iframe mayor, totalmente fuera de PM, y siempre al volver a logearse se redirecciona al tab HOME > Index, y ya no asi al frame o lugar exacto donde se perdio sesion.
Por ejemplo: si se pie sesion en el listado Draft, no se volvera a dicho listado, sino en cambio al volverse a logear se redireccionara a HOME > Indexdex.
El cambio se aplico a los lugares donde se podia redireccionar al parent.
Se tomo en cuenta tambien que algunos clientes utilizan el listado de casos dentro de sus propias webs.
2013-09-02 17:45:37 -04:00
|
|
|
{
|
|
|
|
|
prnt = parent.parent;
|
|
|
|
|
top.location = top.location;
|
|
|
|
|
}
|
2014-06-24 17:04:08 -04:00
|
|
|
catch (err)
|
BUG 11969 Web session TimeOut at HOME
Se realizo una correccion de los direccionamientos de los iframes al perder sesion, ya q siempre q se perdia sesion antes, se mostraba dentro del mismo iframe el cuadro para volverse a logear, logrando asi q el usuario se mantenga en el mismo iframe una ves se relogee, sin tener asi q volver a buscar el lugar donde estaba trabajando. A pedido de QA, ahora se muestra el cuadro de logeo en el iframe mayor, totalmente fuera de PM, y siempre al volver a logearse se redirecciona al tab HOME > Index, y ya no asi al frame o lugar exacto donde se perdio sesion.
Por ejemplo: si se pie sesion en el listado Draft, no se volvera a dicho listado, sino en cambio al volverse a logear se redireccionara a HOME > Indexdex.
El cambio se aplico a los lugares donde se podia redireccionar al parent.
Se tomo en cuenta tambien que algunos clientes utilizan el listado de casos dentro de sus propias webs.
2013-09-02 17:45:37 -04:00
|
|
|
{
|
|
|
|
|
parent.location = parent.location;
|
|
|
|
|
}
|
2013-06-03 18:13:38 -04:00
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
win.show();
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
failure: function ( result, request) {
|
|
|
|
|
if (typeof(result.responseText) != 'undefined') {
|
|
|
|
|
Ext.MessageBox.alert( _('ID_FAILED'), result.responseText);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
2011-02-04 15:57:06 +00:00
|
|
|
}
|
2011-07-14 10:45:20 -04:00
|
|
|
|
2011-02-04 15:57:06 +00:00
|
|
|
Actions.pauseCase = function()
|
|
|
|
|
{
|
2013-06-03 18:13:38 -04:00
|
|
|
Ext.Ajax.request({
|
|
|
|
|
url : 'ajaxListener' ,
|
|
|
|
|
params : {action : 'verifySession'},
|
|
|
|
|
success: function ( result, request ) {
|
|
|
|
|
var data = Ext.util.JSON.decode(result.responseText);
|
|
|
|
|
if( data.lostSession ) {
|
|
|
|
|
Ext.Msg.show({
|
|
|
|
|
title: _('ID_ERROR'),
|
|
|
|
|
msg: data.message,
|
|
|
|
|
animEl: 'elId',
|
|
|
|
|
icon: Ext.MessageBox.ERROR,
|
|
|
|
|
buttons: Ext.MessageBox.OK,
|
|
|
|
|
fn : function(btn) {
|
2014-06-24 17:04:08 -04:00
|
|
|
try
|
BUG 11969 Web session TimeOut at HOME
Se realizo una correccion de los direccionamientos de los iframes al perder sesion, ya q siempre q se perdia sesion antes, se mostraba dentro del mismo iframe el cuadro para volverse a logear, logrando asi q el usuario se mantenga en el mismo iframe una ves se relogee, sin tener asi q volver a buscar el lugar donde estaba trabajando. A pedido de QA, ahora se muestra el cuadro de logeo en el iframe mayor, totalmente fuera de PM, y siempre al volver a logearse se redirecciona al tab HOME > Index, y ya no asi al frame o lugar exacto donde se perdio sesion.
Por ejemplo: si se pie sesion en el listado Draft, no se volvera a dicho listado, sino en cambio al volverse a logear se redireccionara a HOME > Indexdex.
El cambio se aplico a los lugares donde se podia redireccionar al parent.
Se tomo en cuenta tambien que algunos clientes utilizan el listado de casos dentro de sus propias webs.
2013-09-02 17:45:37 -04:00
|
|
|
{
|
|
|
|
|
prnt = parent.parent;
|
|
|
|
|
top.location = top.location;
|
|
|
|
|
}
|
2014-06-24 17:04:08 -04:00
|
|
|
catch (err)
|
BUG 11969 Web session TimeOut at HOME
Se realizo una correccion de los direccionamientos de los iframes al perder sesion, ya q siempre q se perdia sesion antes, se mostraba dentro del mismo iframe el cuadro para volverse a logear, logrando asi q el usuario se mantenga en el mismo iframe una ves se relogee, sin tener asi q volver a buscar el lugar donde estaba trabajando. A pedido de QA, ahora se muestra el cuadro de logeo en el iframe mayor, totalmente fuera de PM, y siempre al volver a logearse se redirecciona al tab HOME > Index, y ya no asi al frame o lugar exacto donde se perdio sesion.
Por ejemplo: si se pie sesion en el listado Draft, no se volvera a dicho listado, sino en cambio al volverse a logear se redireccionara a HOME > Indexdex.
El cambio se aplico a los lugares donde se podia redireccionar al parent.
Se tomo en cuenta tambien que algunos clientes utilizan el listado de casos dentro de sus propias webs.
2013-09-02 17:45:37 -04:00
|
|
|
{
|
|
|
|
|
parent.location = parent.location;
|
|
|
|
|
}
|
2013-06-03 18:13:38 -04:00
|
|
|
}
|
|
|
|
|
});
|
2013-01-31 10:54:23 -04:00
|
|
|
} else {
|
2013-06-03 18:13:38 -04:00
|
|
|
if (Ext.getCmp('noteReason').getValue() != '') {
|
|
|
|
|
var noteReasonTxt = _('ID_CASE_PAUSE_LABEL_NOTE') + ' ' + Ext.getCmp('noteReason').getValue();
|
|
|
|
|
} else {
|
|
|
|
|
var noteReasonTxt = '';
|
|
|
|
|
}
|
|
|
|
|
var notifyReasonVal = Ext.getCmp('notifyReason').getValue() == true ? 1 : 0;
|
|
|
|
|
var paramsNote = '&NOTE_REASON=' + noteReasonTxt + '&NOTIFY_PAUSE=' + notifyReasonVal;
|
2013-06-17 15:52:22 -04:00
|
|
|
|
2013-06-03 18:13:38 -04:00
|
|
|
var unpauseDate = Ext.getCmp('unpauseDate').getValue();
|
|
|
|
|
if( unpauseDate == '') {
|
|
|
|
|
//Ext.getCmp('submitPauseCase').setDisabled(true);
|
|
|
|
|
return;
|
|
|
|
|
} else
|
|
|
|
|
//Ext.getCmp('submitPauseCase').enable();
|
2013-06-17 15:52:22 -04:00
|
|
|
|
2013-06-03 18:13:38 -04:00
|
|
|
unpauseDate = unpauseDate.format('Y-m-d');
|
2013-06-17 15:52:22 -04:00
|
|
|
|
2013-06-03 18:13:38 -04:00
|
|
|
Ext.getCmp('unpauseFrm').getForm().submit({
|
2013-09-02 10:55:45 -04:00
|
|
|
waitTitle : " ",
|
2013-08-12 11:44:24 -04:00
|
|
|
url:'ajaxListener',
|
2013-06-03 18:13:38 -04:00
|
|
|
method : 'post',
|
|
|
|
|
params : {
|
|
|
|
|
action: 'pauseCase',
|
|
|
|
|
unpauseDate:unpauseDate,
|
|
|
|
|
NOTE_REASON: noteReasonTxt,
|
|
|
|
|
NOTIFY_PAUSE: notifyReasonVal
|
|
|
|
|
},
|
|
|
|
|
waitMsg:'Pausing Case '+stringReplace("\\: ", "", _APP_NUM)+'...',
|
|
|
|
|
timeout : 36000,
|
|
|
|
|
success : function(res, req) {
|
|
|
|
|
if(req.result.success) {
|
|
|
|
|
try {
|
|
|
|
|
parent.notify('PAUSE CASE', req.result.msg);
|
|
|
|
|
}
|
|
|
|
|
catch (e) {
|
|
|
|
|
}
|
|
|
|
|
location.href = 'casesListExtJs';
|
|
|
|
|
} else {
|
|
|
|
|
PMExt.error(_('ID_ERROR'), req.result.msg);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
failure: function ( result, request) {
|
|
|
|
|
if (typeof(result.responseText) != 'undefined') {
|
|
|
|
|
Ext.MessageBox.alert( _('ID_FAILED'), result.responseText);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
2011-02-04 15:57:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Actions.unpauseCase = function()
|
|
|
|
|
{
|
2011-02-09 21:21:33 +00:00
|
|
|
PMExt.confirm(_('ID_CONFIRM'), _('ID_CONFIRM_UNPAUSE_CASE'), function(){
|
2013-03-14 15:15:04 -04:00
|
|
|
var loadMask = new Ext.LoadMask(document.body, {msg: _('ID_UNPAUSING_CASE') });
|
2011-02-09 21:21:33 +00:00
|
|
|
loadMask.show();
|
2011-07-14 10:45:20 -04:00
|
|
|
|
2011-02-09 21:21:33 +00:00
|
|
|
Ext.Ajax.request({
|
|
|
|
|
url : 'ajaxListener' ,
|
2011-02-24 20:34:14 +00:00
|
|
|
params : {action : 'unpauseCase'},
|
2011-02-09 21:21:33 +00:00
|
|
|
success: function ( result, request ) {
|
|
|
|
|
loadMask.hide();
|
2011-07-14 10:45:20 -04:00
|
|
|
var data = Ext.util.JSON.decode(result.responseText);
|
2011-02-09 21:21:33 +00:00
|
|
|
if( data.success ) {
|
2011-09-13 19:31:36 -04:00
|
|
|
try {
|
|
|
|
|
parent.PMExt.notify(_('ID_UNPAUSE_ACTION'), data.msg);
|
|
|
|
|
}
|
|
|
|
|
catch (e) {
|
|
|
|
|
}
|
2011-02-09 21:21:33 +00:00
|
|
|
location.href = 'casesListExtJs';
|
|
|
|
|
} else {
|
|
|
|
|
PMExt.error(_('ID_ERROR'), data.msg);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
failure: function ( result, request) {
|
2013-03-14 15:15:04 -04:00
|
|
|
Ext.MessageBox.alert( _('ID_FAILED') , result.responseText);
|
2011-02-09 21:21:33 +00:00
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
});
|
2011-02-04 15:57:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Actions.deleteCase = function()
|
|
|
|
|
{
|
2013-06-03 18:13:38 -04:00
|
|
|
Ext.Ajax.request({
|
|
|
|
|
url : 'casesList_Ajax' ,
|
|
|
|
|
params : {actionAjax : 'verifySession'},
|
|
|
|
|
success: function ( result, request ) {
|
|
|
|
|
var data = Ext.util.JSON.decode(result.responseText);
|
|
|
|
|
if( data.lostSession ) {
|
|
|
|
|
Ext.Msg.show({
|
|
|
|
|
title: _('ID_ERROR'),
|
|
|
|
|
msg: data.message,
|
|
|
|
|
animEl: 'elId',
|
|
|
|
|
icon: Ext.MessageBox.ERROR,
|
|
|
|
|
buttons: Ext.MessageBox.OK,
|
|
|
|
|
fn : function(btn) {
|
2014-06-24 17:04:08 -04:00
|
|
|
try
|
BUG 11969 Web session TimeOut at HOME
Se realizo una correccion de los direccionamientos de los iframes al perder sesion, ya q siempre q se perdia sesion antes, se mostraba dentro del mismo iframe el cuadro para volverse a logear, logrando asi q el usuario se mantenga en el mismo iframe una ves se relogee, sin tener asi q volver a buscar el lugar donde estaba trabajando. A pedido de QA, ahora se muestra el cuadro de logeo en el iframe mayor, totalmente fuera de PM, y siempre al volver a logearse se redirecciona al tab HOME > Index, y ya no asi al frame o lugar exacto donde se perdio sesion.
Por ejemplo: si se pie sesion en el listado Draft, no se volvera a dicho listado, sino en cambio al volverse a logear se redireccionara a HOME > Indexdex.
El cambio se aplico a los lugares donde se podia redireccionar al parent.
Se tomo en cuenta tambien que algunos clientes utilizan el listado de casos dentro de sus propias webs.
2013-09-02 17:45:37 -04:00
|
|
|
{
|
|
|
|
|
prnt = parent.parent;
|
|
|
|
|
top.location = top.location;
|
|
|
|
|
}
|
2014-06-24 17:04:08 -04:00
|
|
|
catch (err)
|
BUG 11969 Web session TimeOut at HOME
Se realizo una correccion de los direccionamientos de los iframes al perder sesion, ya q siempre q se perdia sesion antes, se mostraba dentro del mismo iframe el cuadro para volverse a logear, logrando asi q el usuario se mantenga en el mismo iframe una ves se relogee, sin tener asi q volver a buscar el lugar donde estaba trabajando. A pedido de QA, ahora se muestra el cuadro de logeo en el iframe mayor, totalmente fuera de PM, y siempre al volver a logearse se redirecciona al tab HOME > Index, y ya no asi al frame o lugar exacto donde se perdio sesion.
Por ejemplo: si se pie sesion en el listado Draft, no se volvera a dicho listado, sino en cambio al volverse a logear se redireccionara a HOME > Indexdex.
El cambio se aplico a los lugares donde se podia redireccionar al parent.
Se tomo en cuenta tambien que algunos clientes utilizan el listado de casos dentro de sus propias webs.
2013-09-02 17:45:37 -04:00
|
|
|
{
|
|
|
|
|
parent.location = parent.location;
|
|
|
|
|
}
|
2013-06-03 18:13:38 -04:00
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
PMExt.confirm(_('ID_CONFIRM'), _('ID_CONFIRM_DELETE_CASE'), function(){
|
|
|
|
|
var loadMask = new Ext.LoadMask(document.body, {msg:'Deleting case...'});
|
|
|
|
|
loadMask.show();
|
|
|
|
|
Ext.Ajax.request({
|
|
|
|
|
url : '../adhocUserProxy/deleteCase',
|
|
|
|
|
success: function ( result, request ) {
|
|
|
|
|
loadMask.hide();
|
|
|
|
|
var data = Ext.util.JSON.decode(result.responseText);
|
|
|
|
|
if( data.success ) {
|
|
|
|
|
try {
|
|
|
|
|
parent.PMExt.notify(_('ID_DELETE_ACTION'), data.msg);
|
|
|
|
|
}
|
|
|
|
|
catch (e) {
|
|
|
|
|
}
|
|
|
|
|
location.href = 'casesListExtJs';
|
|
|
|
|
} else {
|
|
|
|
|
PMExt.error(_('ID_ERROR'), data.msg);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
failure: function ( result, request) {
|
|
|
|
|
Ext.MessageBox.alert('Failed', result.responseText);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
2011-02-04 15:57:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Actions.reactivateCase = function()
|
|
|
|
|
{
|
2011-02-09 21:21:33 +00:00
|
|
|
PMExt.confirm(_('ID_CONFIRM'), _('ID_CONFIRM_REACTIVATE_CASE'), function(){
|
2013-03-14 15:15:04 -04:00
|
|
|
var loadMask = new Ext.LoadMask(document.body, {msg: _('ID_REACTIVATING_CASE') });
|
2011-02-09 21:21:33 +00:00
|
|
|
loadMask.show();
|
|
|
|
|
Ext.Ajax.request({
|
|
|
|
|
url : 'ajaxListener' ,
|
2011-02-24 20:34:14 +00:00
|
|
|
params : {action : 'reactivateCase'},
|
2011-02-09 21:21:33 +00:00
|
|
|
success: function ( result, request ) {
|
|
|
|
|
loadMask.hide();
|
2011-07-14 10:45:20 -04:00
|
|
|
var data = Ext.util.JSON.decode(result.responseText);
|
2011-02-09 21:21:33 +00:00
|
|
|
if( data.success ) {
|
2011-09-13 19:31:36 -04:00
|
|
|
try {
|
|
|
|
|
parent.PMExt.notify(_('ID_REACTIVATE_ACTION'), data.msg);
|
|
|
|
|
}
|
|
|
|
|
catch (e) {
|
|
|
|
|
}
|
2011-02-09 21:21:33 +00:00
|
|
|
location.href = 'casesListExtJs';
|
|
|
|
|
} else {
|
|
|
|
|
PMExt.error(_('ID_ERROR'), data.msg);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
failure: function ( result, request) {
|
2013-03-14 15:15:04 -04:00
|
|
|
Ext.MessageBox.alert( _('ID_FAILED'), result.responseText);
|
2011-02-09 21:21:33 +00:00
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
});
|
2011-02-04 15:57:06 +00:00
|
|
|
}
|
2011-07-14 10:45:20 -04:00
|
|
|
|
2011-02-04 15:57:06 +00:00
|
|
|
//
|
|
|
|
|
Actions.tabFrame = function(name)
|
2012-09-04 13:29:32 -04:00
|
|
|
{
|
2013-06-03 18:13:38 -04:00
|
|
|
Ext.Ajax.request({
|
|
|
|
|
url : 'casesList_Ajax' ,
|
|
|
|
|
params : {action : 'verifySession'},
|
|
|
|
|
success: function ( result, request ) {
|
|
|
|
|
var data = Ext.util.JSON.decode(result.responseText);
|
|
|
|
|
if( data.lostSession ) {
|
|
|
|
|
Ext.Msg.show({
|
|
|
|
|
title: _('ID_ERROR'),
|
|
|
|
|
msg: data.message,
|
|
|
|
|
animEl: 'elId',
|
|
|
|
|
icon: Ext.MessageBox.ERROR,
|
|
|
|
|
buttons: Ext.MessageBox.OK,
|
|
|
|
|
fn : function(btn) {
|
2014-06-24 17:04:08 -04:00
|
|
|
try
|
BUG 11969 Web session TimeOut at HOME
Se realizo una correccion de los direccionamientos de los iframes al perder sesion, ya q siempre q se perdia sesion antes, se mostraba dentro del mismo iframe el cuadro para volverse a logear, logrando asi q el usuario se mantenga en el mismo iframe una ves se relogee, sin tener asi q volver a buscar el lugar donde estaba trabajando. A pedido de QA, ahora se muestra el cuadro de logeo en el iframe mayor, totalmente fuera de PM, y siempre al volver a logearse se redirecciona al tab HOME > Index, y ya no asi al frame o lugar exacto donde se perdio sesion.
Por ejemplo: si se pie sesion en el listado Draft, no se volvera a dicho listado, sino en cambio al volverse a logear se redireccionara a HOME > Indexdex.
El cambio se aplico a los lugares donde se podia redireccionar al parent.
Se tomo en cuenta tambien que algunos clientes utilizan el listado de casos dentro de sus propias webs.
2013-09-02 17:45:37 -04:00
|
|
|
{
|
|
|
|
|
prnt = parent.parent;
|
|
|
|
|
top.location = top.location;
|
|
|
|
|
}
|
2014-06-24 17:04:08 -04:00
|
|
|
catch (err)
|
BUG 11969 Web session TimeOut at HOME
Se realizo una correccion de los direccionamientos de los iframes al perder sesion, ya q siempre q se perdia sesion antes, se mostraba dentro del mismo iframe el cuadro para volverse a logear, logrando asi q el usuario se mantenga en el mismo iframe una ves se relogee, sin tener asi q volver a buscar el lugar donde estaba trabajando. A pedido de QA, ahora se muestra el cuadro de logeo en el iframe mayor, totalmente fuera de PM, y siempre al volver a logearse se redirecciona al tab HOME > Index, y ya no asi al frame o lugar exacto donde se perdio sesion.
Por ejemplo: si se pie sesion en el listado Draft, no se volvera a dicho listado, sino en cambio al volverse a logear se redireccionara a HOME > Indexdex.
El cambio se aplico a los lugares donde se podia redireccionar al parent.
Se tomo en cuenta tambien que algunos clientes utilizan el listado de casos dentro de sus propias webs.
2013-09-02 17:45:37 -04:00
|
|
|
{
|
|
|
|
|
parent.location = parent.location;
|
|
|
|
|
}
|
2013-06-03 18:13:38 -04:00
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
tabId = name + 'MenuOption';
|
|
|
|
|
var uri = 'ajaxListener?action=' + name;
|
|
|
|
|
var TabPanel = Ext.getCmp('caseTabPanel');
|
|
|
|
|
var tab = TabPanel.getItem(tabId);
|
|
|
|
|
//!dataInput
|
|
|
|
|
var tabName = ActionTabFrameGlobal.tabName;
|
|
|
|
|
var tabTitle = ActionTabFrameGlobal.tabTitle;
|
|
|
|
|
|
|
|
|
|
//!dataSystem
|
|
|
|
|
var loadMaskMsg = _('ID_LOADING_GRID');
|
|
|
|
|
|
|
|
|
|
if (name == "dynaformViewFromHistory") {
|
|
|
|
|
var responseObject = Ext.util.JSON.decode(historyGridListChangeLogGlobal.viewDynaformName);
|
|
|
|
|
var dynTitle = responseObject.dynTitle;
|
|
|
|
|
var md5Hash = responseObject.md5Hash;
|
|
|
|
|
name = "dynaformViewFromHistory"+md5Hash;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var caseHistoryIframeRest = name!="caseHistory"?0:-20;
|
|
|
|
|
tabId = name + 'MenuOption';
|
|
|
|
|
var uri = 'ajaxListener?action=' + name;
|
|
|
|
|
|
|
|
|
|
if (name.indexOf("changeLogTab") != -1) {
|
|
|
|
|
var uri = 'ajaxListener?action=' + 'changeLogTab';
|
|
|
|
|
//!historyGridListChangeLogGlobal
|
|
|
|
|
historyGridListChangeLogGlobal.idHistory = historyGridListChangeLogGlobal.idHistory;
|
|
|
|
|
historyGridListChangeLogGlobal.tasTitle = historyGridListChangeLogGlobal.tasTitle;
|
|
|
|
|
//dataSystem
|
|
|
|
|
idHistory = historyGridListChangeLogGlobal.idHistory;
|
|
|
|
|
var tasTitle = historyGridListChangeLogGlobal.tasTitle;
|
|
|
|
|
menuSelectedTitle[name] = tasTitle;
|
|
|
|
|
Actions[name];
|
|
|
|
|
uri += "&idHistory="+idHistory;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (name.indexOf("dynaformViewFromHistory") != -1) {
|
|
|
|
|
var uri = 'ajaxListener?action=' + 'dynaformViewFromHistory';
|
|
|
|
|
uri += '&DYN_UID='+historyGridListChangeLogGlobal.viewIdDin+'&HISTORY_ID='+historyGridListChangeLogGlobal.viewIdHistory;
|
|
|
|
|
menuSelectedTitle[name] = 'View('+dynTitle+' '+historyGridListChangeLogGlobal.dynDate+')';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (name.indexOf("previewMessage") != -1) {
|
|
|
|
|
var uri = 'caseMessageHistory_Ajax?actionAjax=' + 'showHistoryMessage';
|
|
|
|
|
var tabNameArray = tabName.split('_');
|
|
|
|
|
var APP_UID = tabNameArray[1];
|
|
|
|
|
var APP_MSG_UID = tabNameArray[2];
|
|
|
|
|
uri += '&APP_UID='+APP_UID+'&APP_MSG_UID='+APP_MSG_UID;
|
|
|
|
|
menuSelectedTitle[tabName] = tabTitle;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (name.indexOf("previewMessage") != -1) {
|
|
|
|
|
var uri = 'caseMessageHistory_Ajax?actionAjax=' + 'showHistoryMessage';
|
|
|
|
|
var tabNameArray = tabName.split('_');
|
|
|
|
|
var APP_UID = tabNameArray[1];
|
|
|
|
|
var APP_MSG_UID = tabNameArray[2];
|
|
|
|
|
uri += '&APP_UID='+APP_UID+'&APP_MSG_UID='+APP_MSG_UID;
|
|
|
|
|
menuSelectedTitle[tabName] = tabTitle;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (name.indexOf("sendMailMessage") != -1) {
|
|
|
|
|
var uri = 'caseMessageHistory_Ajax?actionAjax=' + 'sendMailMessage_JXP';
|
|
|
|
|
var tabNameArray = tabName.split('_');
|
|
|
|
|
var APP_UID = tabNameArray[1];
|
|
|
|
|
var APP_MSG_UID = tabNameArray[2];
|
|
|
|
|
uri += '&APP_UID='+APP_UID+'&APP_MSG_UID='+APP_MSG_UID;
|
|
|
|
|
menuSelectedTitle[tabName] = tabTitle;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (name=="dynaformHistory") {
|
|
|
|
|
var uri = 'casesHistoryDynaformPage_Ajax?actionAjax=historyDynaformPage';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (name.indexOf("historyDynaformGridHistory") != -1) {
|
|
|
|
|
var historyDynaformGridHistoryGlobal = Ext.util.JSON.decode(ActionTabFrameGlobal.tabData);
|
|
|
|
|
var tabTitle = ActionTabFrameGlobal.tabTitle;
|
|
|
|
|
var PRO_UID = historyDynaformGridHistoryGlobal.PRO_UID;
|
|
|
|
|
var APP_UID = historyDynaformGridHistoryGlobal.APP_UID;
|
|
|
|
|
var TAS_UID = historyDynaformGridHistoryGlobal.TAS_UID;
|
|
|
|
|
var DYN_UID = historyDynaformGridHistoryGlobal.DYN_UID;
|
|
|
|
|
var DYN_TITLE = historyDynaformGridHistoryGlobal.DYN_TITLE;
|
|
|
|
|
var uri = 'casesHistoryDynaformPage_Ajax?actionAjax=showDynaformListHistory';
|
|
|
|
|
uri += '&PRO_UID='+PRO_UID+'&APP_UID='+APP_UID+'&TAS_UID='+TAS_UID+'&DYN_UID='+DYN_UID;
|
|
|
|
|
menuSelectedTitle[name] = tabTitle;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (name.indexOf("dynaformChangeLogViewHistory") != -1) {
|
|
|
|
|
var showDynaformHistoryGlobal = Ext.util.JSON.decode(ActionTabFrameGlobal.tabData);
|
|
|
|
|
var tabTitle = ActionTabFrameGlobal.tabTitle;
|
|
|
|
|
var dynUID = showDynaformHistoryGlobal.dynUID;
|
|
|
|
|
var tablename = showDynaformHistoryGlobal.tablename;
|
|
|
|
|
var dynDate = showDynaformHistoryGlobal.dynDate;
|
|
|
|
|
var dynTitle = showDynaformHistoryGlobal.dynTitle;
|
|
|
|
|
var uri = 'casesHistoryDynaformPage_Ajax?actionAjax=dynaformChangeLogViewHistory';
|
|
|
|
|
uri += '&DYN_UID='+dynUID+'&HISTORY_ID='+tablename;
|
|
|
|
|
menuSelectedTitle[name] = tabTitle;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (name.indexOf("historyDynaformGridPreview") != -1) {
|
|
|
|
|
var historyDynaformGridPreviewGlobal = Ext.util.JSON.decode(ActionTabFrameGlobal.tabData);
|
|
|
|
|
var tabTitle = ActionTabFrameGlobal.tabTitle;
|
|
|
|
|
var DYN_UID = historyDynaformGridPreviewGlobal.DYN_UID;
|
|
|
|
|
var uri = 'casesHistoryDynaformPage_Ajax?actionAjax=historyDynaformGridPreview';
|
|
|
|
|
uri += '&DYN_UID='+DYN_UID;
|
|
|
|
|
menuSelectedTitle[name] = tabTitle;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (name == "uploadDocumentGridDownload") {
|
|
|
|
|
var uploadDocumentGridDownloadGlobal = Ext.util.JSON.decode(ActionTabFrameGlobal.tabData);
|
|
|
|
|
var APP_DOC_UID = uploadDocumentGridDownloadGlobal.APP_DOC_UID;
|
|
|
|
|
var DOWNLOAD_LINK = uploadDocumentGridDownloadGlobal.DOWNLOAD_LINK;
|
|
|
|
|
var TITLE = uploadDocumentGridDownloadGlobal.TITLE;
|
|
|
|
|
var uri = DOWNLOAD_LINK;
|
|
|
|
|
menuSelectedTitle[name] = ActionTabFrameGlobal.tabTitle;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (name == "generatedDocuments") {
|
|
|
|
|
var uri = 'casesGenerateDocumentPage_Ajax.php?actionAjax=casesGenerateDocumentPage';
|
|
|
|
|
}
|
2014-05-23 16:52:36 -04:00
|
|
|
|
|
|
|
|
if (name == "processMap" && _PROJECT_TYPE === 'bpmn') {
|
|
|
|
|
var uri = '../designer?prj_uid=' + _PRO_UID + '&prj_readonly=true&app_uid=' + _APP_UID;
|
|
|
|
|
}
|
2013-06-03 18:13:38 -04:00
|
|
|
|
|
|
|
|
if( tab ) {
|
|
|
|
|
TabPanel.setActiveTab(tabId);
|
|
|
|
|
}
|
|
|
|
|
else {
|
2014-05-23 16:52:36 -04:00
|
|
|
TabPanel.add({
|
|
|
|
|
id: tabId,
|
|
|
|
|
title: menuSelectedTitle[name],
|
|
|
|
|
frameConfig: {name: name + 'Frame', id: name + 'Frame'},
|
|
|
|
|
defaultSrc: uri,
|
|
|
|
|
loadMask: {msg: _('ID_LOADING_GRID') + '...'},
|
|
|
|
|
autoWidth: true,
|
|
|
|
|
closable: true,
|
|
|
|
|
autoScroll: true,
|
|
|
|
|
bodyStyle: {height: (PMExt.getBrowser().screen.height - 60) + 'px', overflow: 'auto'}
|
|
|
|
|
}).show();
|
|
|
|
|
|
|
|
|
|
TabPanel.doLayout();
|
2013-06-03 18:13:38 -04:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
failure: function ( result, request) {
|
|
|
|
|
if (typeof(result.responseText) != 'undefined') {
|
|
|
|
|
Ext.MessageBox.alert( _('ID_FAILED'), result.responseText);
|
|
|
|
|
}
|
|
|
|
|
}
|
2013-06-17 15:52:22 -04:00
|
|
|
});
|
2011-02-04 15:57:06 +00:00
|
|
|
}
|
2011-07-14 10:45:20 -04:00
|
|
|
|
2011-02-04 15:57:06 +00:00
|
|
|
});
|
|
|
|
|
|
2011-05-09 11:48:31 -04:00
|
|
|
Actions.adhocAssignmentUsers = function()
|
2011-05-11 10:53:17 -04:00
|
|
|
{
|
|
|
|
|
Ext.state.Manager.setProvider(new Ext.state.CookieProvider());
|
|
|
|
|
Ext.QuickTips.init();
|
|
|
|
|
store = new Ext.data.GroupingStore( {
|
|
|
|
|
proxy : new Ext.data.HttpProxy({
|
|
|
|
|
url : '../adhocUserProxy/adhocAssignUsersk'
|
|
|
|
|
}),
|
|
|
|
|
reader : new Ext.data.JsonReader( {
|
|
|
|
|
root: 'data',
|
|
|
|
|
fields : [
|
|
|
|
|
{name : 'USR_UID'},
|
|
|
|
|
{name : 'USR_FIRSTNAME'},
|
|
|
|
|
{name : 'USR_LASTNAME'}
|
|
|
|
|
]
|
|
|
|
|
})
|
|
|
|
|
});
|
2011-07-14 10:45:20 -04:00
|
|
|
|
2011-05-11 10:53:17 -04:00
|
|
|
cmk = new Ext.grid.ColumnModel({
|
|
|
|
|
defaults: {
|
|
|
|
|
width: 40,
|
|
|
|
|
sortable: true
|
2011-07-14 10:45:20 -04:00
|
|
|
},
|
2011-05-11 10:53:17 -04:00
|
|
|
columns: [
|
|
|
|
|
{ id:'USR_UID', dataIndex: 'USR_UID', hidden:true, hideable:false},
|
BUG 8932 Untranslatable strings Information process Information... SOLVED
- It was found that had several labels that are hardcoded.
- Changed hardcoded labels reusing some existing labels and some things were created some labels.
- labels created: ID_INIT_DATE(Init Date), ID_OVERWRITE(Overwrite),ID_BROWSE(Browse),ID_UPLOADING_TRANSLATION_FILE(Uploading the translation file...),
ID_EVALUATION_RESULT ([Success] Evaluation result)
- Labels reused: ID_TITLE, ID_DESCRIPTION, ID_DUE_DATE, ID_FINISH_DATE, ID_SEND, ID_UPLOADED_DOCUMENTS, ID_GENERATED_DOCUMENTS, ID_FILE, ID_FIRST_NAME,
ID_LAST_NAME,ID_ACTIVE,ID_INACTIVE, ID_MSJ_REPORSTO
- image for Starting a case ...
it is labeled translation.ID_TITLE_START_CASE which works only if you change the language to es-ES
-
2012-04-12 09:07:31 -04:00
|
|
|
{ header : _('ID_FIRST_NAME'), dataIndex : 'USR_FIRSTNAME', sortable : true, width: 130, align:'center'},
|
|
|
|
|
{ header : _('ID_LAST_NAME'), dataIndex : 'USR_LASTNAME', sortable : true,width: 130, align:'center' }
|
2011-05-11 10:53:17 -04:00
|
|
|
]
|
|
|
|
|
});
|
2011-05-09 11:48:31 -04:00
|
|
|
|
2011-05-11 10:53:17 -04:00
|
|
|
pbark = new Ext.PagingToolbar({
|
|
|
|
|
pageSize: 8,
|
|
|
|
|
store: store,
|
|
|
|
|
displayInfo: true,
|
2013-03-14 15:15:04 -04:00
|
|
|
displayMsg: _('ID_GRID_PAGE_DISPLAYING_USERS_MESSAGE'),
|
2011-05-11 10:53:17 -04:00
|
|
|
emptyMsg: "",
|
|
|
|
|
items:[]
|
|
|
|
|
});
|
2011-02-04 15:57:06 +00:00
|
|
|
|
BUG 8932 Untranslatable strings Information process Information... SOLVED
- It was found that had several labels that are hardcoded.
- Changed hardcoded labels reusing some existing labels and some things were created some labels.
- labels created: ID_INIT_DATE(Init Date), ID_OVERWRITE(Overwrite),ID_BROWSE(Browse),ID_UPLOADING_TRANSLATION_FILE(Uploading the translation file...),
ID_EVALUATION_RESULT ([Success] Evaluation result)
- Labels reused: ID_TITLE, ID_DESCRIPTION, ID_DUE_DATE, ID_FINISH_DATE, ID_SEND, ID_UPLOADED_DOCUMENTS, ID_GENERATED_DOCUMENTS, ID_FILE, ID_FIRST_NAME,
ID_LAST_NAME,ID_ACTIVE,ID_INACTIVE, ID_MSJ_REPORSTO
- image for Starting a case ...
it is labeled translation.ID_TITLE_START_CASE which works only if you change the language to es-ES
-
2012-04-12 09:07:31 -04:00
|
|
|
var adHocUserGrid = new Ext.grid.GridPanel( {
|
2011-11-16 10:07:14 -04:00
|
|
|
region: 'center',
|
|
|
|
|
layout: 'fit',
|
|
|
|
|
id: 'adHocUserGrid',
|
|
|
|
|
height:210,
|
|
|
|
|
//autoWidth : true,
|
|
|
|
|
width:'',
|
|
|
|
|
title : '',
|
|
|
|
|
stateful : true,
|
2013-06-06 15:34:18 -04:00
|
|
|
stateId : 'gridAdHocCasesOpen',
|
2011-11-16 10:07:14 -04:00
|
|
|
enableColumnResize: true,
|
|
|
|
|
enableHdMenu: true,
|
|
|
|
|
frame:false,
|
|
|
|
|
columnLines: true,
|
|
|
|
|
viewConfig: {
|
|
|
|
|
forceFit:true
|
|
|
|
|
},
|
|
|
|
|
cm: cmk,
|
|
|
|
|
store: store,
|
|
|
|
|
tbar:[
|
|
|
|
|
{
|
2012-09-04 13:29:32 -04:00
|
|
|
text:_('ID_ASSIGN'),
|
|
|
|
|
iconCls: 'silk-add',
|
BUG 8932 Untranslatable strings Information process Information... SOLVED
- It was found that had several labels that are hardcoded.
- Changed hardcoded labels reusing some existing labels and some things were created some labels.
- labels created: ID_INIT_DATE(Init Date), ID_OVERWRITE(Overwrite),ID_BROWSE(Browse),ID_UPLOADING_TRANSLATION_FILE(Uploading the translation file...),
ID_EVALUATION_RESULT ([Success] Evaluation result)
- Labels reused: ID_TITLE, ID_DESCRIPTION, ID_DUE_DATE, ID_FINISH_DATE, ID_SEND, ID_UPLOADED_DOCUMENTS, ID_GENERATED_DOCUMENTS, ID_FILE, ID_FIRST_NAME,
ID_LAST_NAME,ID_ACTIVE,ID_INACTIVE, ID_MSJ_REPORSTO
- image for Starting a case ...
it is labeled translation.ID_TITLE_START_CASE which works only if you change the language to es-ES
-
2012-04-12 09:07:31 -04:00
|
|
|
icon: '/images/cases-selfservice.png',
|
2011-11-16 10:07:14 -04:00
|
|
|
handler: assignAdHocUser
|
BUG 8932 Untranslatable strings Information process Information... SOLVED
- It was found that had several labels that are hardcoded.
- Changed hardcoded labels reusing some existing labels and some things were created some labels.
- labels created: ID_INIT_DATE(Init Date), ID_OVERWRITE(Overwrite),ID_BROWSE(Browse),ID_UPLOADING_TRANSLATION_FILE(Uploading the translation file...),
ID_EVALUATION_RESULT ([Success] Evaluation result)
- Labels reused: ID_TITLE, ID_DESCRIPTION, ID_DUE_DATE, ID_FINISH_DATE, ID_SEND, ID_UPLOADED_DOCUMENTS, ID_GENERATED_DOCUMENTS, ID_FILE, ID_FIRST_NAME,
ID_LAST_NAME,ID_ACTIVE,ID_INACTIVE, ID_MSJ_REPORSTO
- image for Starting a case ...
it is labeled translation.ID_TITLE_START_CASE which works only if you change the language to es-ES
-
2012-04-12 09:07:31 -04:00
|
|
|
}
|
2011-11-16 10:07:14 -04:00
|
|
|
],
|
|
|
|
|
bbar: '',
|
|
|
|
|
listeners:{
|
|
|
|
|
rowdblclick: assignAdHocUser
|
|
|
|
|
}
|
2011-05-11 10:53:17 -04:00
|
|
|
});
|
|
|
|
|
|
|
|
|
|
var w = new Ext.Window({
|
2011-11-16 10:07:14 -04:00
|
|
|
title: _('ID_ADHOC_ASSIGNMENT'),
|
|
|
|
|
width: 500,
|
|
|
|
|
height: 240,
|
|
|
|
|
resizable: false,
|
|
|
|
|
items: [ adHocUserGrid ],
|
|
|
|
|
id: 'w'
|
2011-07-14 10:45:20 -04:00
|
|
|
});
|
2011-05-09 11:48:31 -04:00
|
|
|
adHocUserGrid.store.load();
|
BUG 8932 Untranslatable strings Information process Information... SOLVED
- It was found that had several labels that are hardcoded.
- Changed hardcoded labels reusing some existing labels and some things were created some labels.
- labels created: ID_INIT_DATE(Init Date), ID_OVERWRITE(Overwrite),ID_BROWSE(Browse),ID_UPLOADING_TRANSLATION_FILE(Uploading the translation file...),
ID_EVALUATION_RESULT ([Success] Evaluation result)
- Labels reused: ID_TITLE, ID_DESCRIPTION, ID_DUE_DATE, ID_FINISH_DATE, ID_SEND, ID_UPLOADED_DOCUMENTS, ID_GENERATED_DOCUMENTS, ID_FILE, ID_FIRST_NAME,
ID_LAST_NAME,ID_ACTIVE,ID_INACTIVE, ID_MSJ_REPORSTO
- image for Starting a case ...
it is labeled translation.ID_TITLE_START_CASE which works only if you change the language to es-ES
-
2012-04-12 09:07:31 -04:00
|
|
|
w.show();
|
2011-05-09 11:48:31 -04:00
|
|
|
|
2011-11-16 10:07:14 -04:00
|
|
|
function assignAdHocUser()
|
|
|
|
|
{
|
|
|
|
|
rowSelected = adHocUserGrid.getSelectionModel().getSelected();
|
|
|
|
|
PMExt.confirm(_('ID_CONFIRM'), _('ID_CONFIRM_ADHOCUSER_CASE'), function(){
|
2013-03-14 15:15:04 -04:00
|
|
|
var loadMask = new Ext.LoadMask(document.body, {msg:_('ID_ASSIGNMENT_CASE')});
|
2011-05-11 10:53:17 -04:00
|
|
|
loadMask.show();
|
|
|
|
|
Ext.Ajax.request({
|
2011-11-16 10:07:14 -04:00
|
|
|
url : '../adhocUserProxy/reassignCase' ,
|
|
|
|
|
method: 'POST',
|
|
|
|
|
params : {USR_UID: rowSelected.data.USR_UID, THETYPE: 'ADHOC'},
|
|
|
|
|
success: function ( result, request ) {
|
|
|
|
|
loadMask.hide();
|
|
|
|
|
var data = Ext.util.JSON.decode(result.responseText);
|
|
|
|
|
if( data.success ) {
|
|
|
|
|
CloseWindow();
|
|
|
|
|
location.href = 'casesListExtJs';
|
2012-09-04 13:29:32 -04:00
|
|
|
}
|
2011-11-16 10:07:14 -04:00
|
|
|
else {
|
|
|
|
|
PMExt.error(_('ID_ERROR'), data.msg);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
failure: function ( result, request) {
|
2013-03-14 15:15:04 -04:00
|
|
|
Ext.MessageBox.alert(_('ID_FAILED'), result.responseText);
|
2011-05-11 10:53:17 -04:00
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
});
|
2011-07-14 10:45:20 -04:00
|
|
|
}
|
2011-05-09 11:48:31 -04:00
|
|
|
}
|
2011-11-16 10:07:14 -04:00
|
|
|
|
2011-05-11 10:53:17 -04:00
|
|
|
CloseWindow = function(){
|
2011-11-16 10:07:14 -04:00
|
|
|
Ext.getCmp('w').hide();
|
2011-05-09 11:48:31 -04:00
|
|
|
};
|
2011-11-03 17:36:51 -04:00
|
|
|
|
2011-11-16 10:07:14 -04:00
|
|
|
setNode = function(uid){
|
|
|
|
|
var stepsTree = Ext.getCmp('casesStepTree');
|
2011-11-03 17:36:51 -04:00
|
|
|
|
2011-11-16 10:07:14 -04:00
|
|
|
if (!stepsTree) {
|
|
|
|
|
return false;
|
2011-04-04 15:15:27 -04:00
|
|
|
}
|
2011-11-16 10:07:14 -04:00
|
|
|
|
|
|
|
|
var node = stepsTree.getNodeById(uid);
|
|
|
|
|
|
|
|
|
|
if (!node) {
|
|
|
|
|
return false;
|
2011-04-04 15:15:27 -04:00
|
|
|
}
|
2012-09-04 13:29:32 -04:00
|
|
|
|
2011-11-16 13:19:36 -04:00
|
|
|
node.select();
|
2011-11-16 10:07:14 -04:00
|
|
|
}
|