HOR-2894
This commit is contained in:
@@ -646,7 +646,7 @@ class Consolidated
|
|||||||
$editor = $this->removeLineBreaks($editor);
|
$editor = $this->removeLineBreaks($editor);
|
||||||
$width = $field->colWidth;
|
$width = $field->colWidth;
|
||||||
|
|
||||||
$caseColumns[] = array("xtype" => "combocolumn", "gridId" => "gridId", "header" => $fieldLabel, "dataIndex" => $field->name, "width" => (int)($width), "align" => $align, "editor" => $editor, "frame" => "true", "clicksToEdit" => "1");
|
$caseColumns[] = array("xtype" => "combocolumn", "gridId" => "gridId", "header" => $fieldLabel, "dataIndex" => $field->name, "width" => (int) ($width), "align" => $align, "editor" => $editor, "frame" => "true", "clicksToEdit" => "1");
|
||||||
$caseReaderFields[] = array("name" => $field->name);
|
$caseReaderFields[] = array("name" => $field->name);
|
||||||
break;
|
break;
|
||||||
case "date":
|
case "date":
|
||||||
@@ -676,7 +676,7 @@ class Consolidated
|
|||||||
$editor = null;
|
$editor = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
$caseColumns[] = array("header" => $fieldLabel, "dataIndex" => $field->name, "width" => (int)($width), "editor" => $editor, "renderer" => $renderer, "frame" => true, "clicksToEdit" => 1, "sortable" => true);
|
$caseColumns[] = array("header" => $fieldLabel, "dataIndex" => $field->name, "width" => (int) ($width), "editor" => $editor, "renderer" => $renderer, "frame" => true, "clicksToEdit" => 1, "sortable" => true);
|
||||||
$caseReaderFields[] = array("name" => $field->name, "type" => "date");
|
$caseReaderFields[] = array("name" => $field->name, "type" => "date");
|
||||||
break;
|
break;
|
||||||
case "currency":
|
case "currency":
|
||||||
@@ -704,7 +704,7 @@ class Consolidated
|
|||||||
$editor = null;
|
$editor = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
$caseColumns[] = array("header" => $fieldLabel, "dataIndex" => $field->name, "width" => (int)($width), "align" => $align, "editor" => $editor, "frame" => true, "clicksToEdit" => 1, "sortable" => true);
|
$caseColumns[] = array("header" => $fieldLabel, "dataIndex" => $field->name, "width" => (int) ($width), "align" => $align, "editor" => $editor, "frame" => true, "clicksToEdit" => 1, "sortable" => true);
|
||||||
$caseReaderFields[] = array("name" => $field->name);
|
$caseReaderFields[] = array("name" => $field->name);
|
||||||
break;
|
break;
|
||||||
case "percentage":
|
case "percentage":
|
||||||
@@ -735,7 +735,7 @@ class Consolidated
|
|||||||
$editor = null;
|
$editor = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
$caseColumns[] = array("header" => $fieldLabel, "dataIndex" => $field->name, "width" => (int)($width), "align" => $align, "editor" => $editor, "renderer" => $renderer, "frame" => true, "clicksToEdit" => 1, "sortable" => true);
|
$caseColumns[] = array("header" => $fieldLabel, "dataIndex" => $field->name, "width" => (int) ($width), "align" => $align, "editor" => $editor, "renderer" => $renderer, "frame" => true, "clicksToEdit" => 1, "sortable" => true);
|
||||||
$caseReaderFields[] = array("name" => $field->name);
|
$caseReaderFields[] = array("name" => $field->name);
|
||||||
break;
|
break;
|
||||||
case "textarea":
|
case "textarea":
|
||||||
@@ -765,7 +765,7 @@ class Consolidated
|
|||||||
$editor = $this->removeLineBreaks($editor);
|
$editor = $this->removeLineBreaks($editor);
|
||||||
$renderer = "* function (value) { return (value); } *";
|
$renderer = "* function (value) { return (value); } *";
|
||||||
$renderer = $this->removeLineBreaks($renderer);
|
$renderer = $this->removeLineBreaks($renderer);
|
||||||
$caseColumns[] = array("header" => $fieldLabel, "dataIndex" => $field->name, "width" => (int)($width), "align" => $align, "editor" => $editor, "renderer" => $renderer, "frame" => true, "clicksToEdit" => 1, "sortable" => true);
|
$caseColumns[] = array("header" => $fieldLabel, "dataIndex" => $field->name, "width" => (int) ($width), "align" => $align, "editor" => $editor, "renderer" => $renderer, "frame" => true, "clicksToEdit" => 1, "sortable" => true);
|
||||||
$caseReaderFields[] = array("name" => $field->name);
|
$caseReaderFields[] = array("name" => $field->name);
|
||||||
|
|
||||||
$hasTextArea = true;
|
$hasTextArea = true;
|
||||||
@@ -793,7 +793,7 @@ class Consolidated
|
|||||||
return Ext.isDate(value)? value.dateFormat('{$dateFormat}') : value;
|
return Ext.isDate(value)? value.dateFormat('{$dateFormat}') : value;
|
||||||
} *";
|
} *";
|
||||||
$renderer = $this->removeLineBreaks($renderer);
|
$renderer = $this->removeLineBreaks($renderer);
|
||||||
$caseColumns[] = array("header" => $fieldLabel, "dataIndex" => $field->name, "width" => (int)($width), "editor" => $editor, "renderer" => $renderer, "frame" => true, "clicksToEdit" => 1, "sortable" => true);
|
$caseColumns[] = array("header" => $fieldLabel, "dataIndex" => $field->name, "width" => (int) ($width), "editor" => $editor, "renderer" => $renderer, "frame" => true, "clicksToEdit" => 1, "sortable" => true);
|
||||||
$caseReaderFields[] = array("name" => $field->name, "type" => "date");
|
$caseReaderFields[] = array("name" => $field->name, "type" => "date");
|
||||||
break;
|
break;
|
||||||
case "link":
|
case "link":
|
||||||
@@ -812,7 +812,7 @@ class Consolidated
|
|||||||
return linkRenderer(value);
|
return linkRenderer(value);
|
||||||
} *";
|
} *";
|
||||||
$renderer = $this->removeLineBreaks($renderer);
|
$renderer = $this->removeLineBreaks($renderer);
|
||||||
$caseColumns[] = array("header" => $fieldLabel, "dataIndex" => $field->name, "width" => (int)($width), "align" => $align, "editor" => $editor, "renderer" => $renderer, "frame" => true, "hidden" => false, "hideable" => false, "clicksToEdit" => 1, "sortable" => true);
|
$caseColumns[] = array("header" => $fieldLabel, "dataIndex" => $field->name, "width" => (int) ($width), "align" => $align, "editor" => $editor, "renderer" => $renderer, "frame" => true, "hidden" => false, "hideable" => false, "clicksToEdit" => 1, "sortable" => true);
|
||||||
$caseReaderFields[] = array("name" => $field->name);
|
$caseReaderFields[] = array("name" => $field->name);
|
||||||
break;
|
break;
|
||||||
case "hidden":
|
case "hidden":
|
||||||
@@ -827,7 +827,7 @@ class Consolidated
|
|||||||
|
|
||||||
$editor = "* new Ext.form.TextField({ allowBlank: false }) *";
|
$editor = "* new Ext.form.TextField({ allowBlank: false }) *";
|
||||||
$editor = $this->removeLineBreaks($editor);
|
$editor = $this->removeLineBreaks($editor);
|
||||||
$caseColumns[] = array("header" => $fieldLabel, "dataIndex" => $field->name, "width" => (int)$width, "align" => $align, "editor" => $editor, "frame" => "true", "hidden" => "true", "hideable" => false, "clicksToEdit" => "1");
|
$caseColumns[] = array("header" => $fieldLabel, "dataIndex" => $field->name, "width" => (int) $width, "align" => $align, "editor" => $editor, "frame" => "true", "hidden" => "true", "hideable" => false, "clicksToEdit" => "1");
|
||||||
$caseReaderFields[] = array("name" => $field->name);
|
$caseReaderFields[] = array("name" => $field->name);
|
||||||
break;
|
break;
|
||||||
case "yesno":
|
case "yesno":
|
||||||
@@ -870,7 +870,7 @@ class Consolidated
|
|||||||
cls: \"\"
|
cls: \"\"
|
||||||
}) *";
|
}) *";
|
||||||
$editor = $this->removeLineBreaks($editor);
|
$editor = $this->removeLineBreaks($editor);
|
||||||
$caseColumns[] = array("xtype" => "combocolumn", "gridId" => "gridId", "header" => $fieldLabel, "dataIndex" => $field->name, "width" => (int)($width), "align" => $align, "editor" => $editor, "frame" => "true", "clicksToEdit" => "1");
|
$caseColumns[] = array("xtype" => "combocolumn", "gridId" => "gridId", "header" => $fieldLabel, "dataIndex" => $field->name, "width" => (int) ($width), "align" => $align, "editor" => $editor, "frame" => "true", "clicksToEdit" => "1");
|
||||||
$caseReaderFields[] = array("name" => $field->name);
|
$caseReaderFields[] = array("name" => $field->name);
|
||||||
break;
|
break;
|
||||||
case "checkbox":
|
case "checkbox":
|
||||||
@@ -885,9 +885,18 @@ class Consolidated
|
|||||||
$dropList[] = $field->name;
|
$dropList[] = $field->name;
|
||||||
$comboBoxYesNoList[] = $field->name;
|
$comboBoxYesNoList[] = $field->name;
|
||||||
|
|
||||||
$editor = "* new Ext.form.Checkbox({ $fieldReadOnly $fieldRequired $fieldValidate cls: \"\"}) *";
|
$inputValue = "";
|
||||||
|
$uncheckedValue = "";
|
||||||
|
if (isset($field->value)) {
|
||||||
|
$inputValue = ",inputValue: '" . $field->value . "'";
|
||||||
|
}
|
||||||
|
if (isset($field->falseValue)) {
|
||||||
|
$uncheckedValue = ",uncheckedValue: '" . $field->falseValue . "'";
|
||||||
|
}
|
||||||
|
|
||||||
|
$editor = "* new Ext.form.CheckboxCustom({ $fieldReadOnly $fieldRequired $fieldValidate cls: \"\" " . $inputValue . $uncheckedValue . " }) *";
|
||||||
$editor = $this->removeLineBreaks($editor);
|
$editor = $this->removeLineBreaks($editor);
|
||||||
$caseColumns[] = array("header" => $fieldLabel, "dataIndex" => $field->name, "width" => (int)($width), "align" => $align, "editor" => $editor, "frame" => true, "clicksToEdit" => 1, "sortable" => true);
|
$caseColumns[] = array("header" => $fieldLabel, "dataIndex" => $field->name, "width" => (int) ($width), "align" => $align, "editor" => $editor, "frame" => true, "clicksToEdit" => 1, "sortable" => true);
|
||||||
$caseReaderFields[] = array("name" => $field->name);
|
$caseReaderFields[] = array("name" => $field->name);
|
||||||
break;
|
break;
|
||||||
case "text":
|
case "text":
|
||||||
@@ -907,7 +916,7 @@ class Consolidated
|
|||||||
$editor = null;
|
$editor = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
$caseColumns[] = array("header" => $fieldLabel, "dataIndex" => $field->name, "width" => (int)($width), "align" => $align, "editor" => $editor, "frame" => true, "clicksToEdit" => 1, "sortable" => true);
|
$caseColumns[] = array("header" => $fieldLabel, "dataIndex" => $field->name, "width" => (int) ($width), "align" => $align, "editor" => $editor, "frame" => true, "clicksToEdit" => 1, "sortable" => true);
|
||||||
$caseReaderFields[] = array("name" => $field->name);
|
$caseReaderFields[] = array("name" => $field->name);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -935,7 +944,6 @@ class Consolidated
|
|||||||
die();
|
die();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get Dropdown Label
|
* Get Dropdown Label
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -1,3 +1,60 @@
|
|||||||
|
Ext.form.CheckboxCustom = Ext.extend(Ext.form.Checkbox, {
|
||||||
|
constructor: function (config) {
|
||||||
|
config = Ext.apply({
|
||||||
|
inputValue: 1,
|
||||||
|
uncheckedValue: 0
|
||||||
|
}, config);
|
||||||
|
Ext.form.CheckboxCustom.superclass.constructor.call(this, config);
|
||||||
|
},
|
||||||
|
getValue: function () {
|
||||||
|
if (this.rendered) {
|
||||||
|
if (this.el.dom.checked === true) {
|
||||||
|
return this.inputValue;
|
||||||
|
}
|
||||||
|
if (this.el.dom.checked === false) {
|
||||||
|
return this.uncheckedValue;
|
||||||
|
}
|
||||||
|
return this.el.dom.checked;
|
||||||
|
}
|
||||||
|
if (this.checked === true) {
|
||||||
|
return this.inputValue;
|
||||||
|
}
|
||||||
|
if (this.checked === false) {
|
||||||
|
return this.uncheckedValue;
|
||||||
|
}
|
||||||
|
return this.checked;
|
||||||
|
},
|
||||||
|
setValue: function (v) {
|
||||||
|
if (v === this.inputValue) {
|
||||||
|
v = true;
|
||||||
|
}
|
||||||
|
if (v === this.uncheckedValue) {
|
||||||
|
v = false;
|
||||||
|
}
|
||||||
|
var checked = this.checked,
|
||||||
|
inputVal = this.inputValue;
|
||||||
|
|
||||||
|
if (v === false) {
|
||||||
|
this.checked = false;
|
||||||
|
} else {
|
||||||
|
this.checked = (v === true || v === 'true' || v == '1' || (inputVal ? v == inputVal : String(v).toLowerCase() == 'on'));
|
||||||
|
}
|
||||||
|
|
||||||
|
if (this.rendered) {
|
||||||
|
this.el.dom.checked = this.checked;
|
||||||
|
this.el.dom.defaultChecked = this.checked;
|
||||||
|
}
|
||||||
|
if (checked != this.checked) {
|
||||||
|
this.fireEvent('check', this, this.checked);
|
||||||
|
if (this.handler) {
|
||||||
|
this.handler.call(this.scope || this, this, this.checked);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
Ext.reg('checkboxCustom', Ext.form.CheckboxCustom);
|
||||||
|
|
||||||
var grdNumRows = 0;
|
var grdNumRows = 0;
|
||||||
var grdRowLabel = [];
|
var grdRowLabel = [];
|
||||||
var fieldGridGral = '';
|
var fieldGridGral = '';
|
||||||
@@ -16,8 +73,8 @@ Ext.ux.grid.ComboColumn = Ext.extend(Ext.grid.Column, {
|
|||||||
|
|
||||||
//Detect if there is an editor and if it at least extends a combobox, otherwise just treat it as a normal column and render the value itself
|
//Detect if there is an editor and if it at least extends a combobox, otherwise just treat it as a normal column and render the value itself
|
||||||
this.renderer = (this.editor && this.editor.triggerAction) ? Ext.ux.renderer.ComboBoxRenderer(this.editor, this.gridId) : function (value) {
|
this.renderer = (this.editor && this.editor.triggerAction) ? Ext.ux.renderer.ComboBoxRenderer(this.editor, this.gridId) : function (value) {
|
||||||
return value;
|
return value;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -57,22 +114,22 @@ Ext.ux.renderer.ComboBoxRenderer = function (combo, gridId) {
|
|||||||
return function (value) {
|
return function (value) {
|
||||||
if (combo.store.getCount() == 0 && gridId) {
|
if (combo.store.getCount() == 0 && gridId) {
|
||||||
combo.store.on(
|
combo.store.on(
|
||||||
"load",
|
"load",
|
||||||
function () {
|
function () {
|
||||||
var grid = Ext.getCmp(gridId);
|
var grid = Ext.getCmp(gridId);
|
||||||
if (grid) {
|
if (grid) {
|
||||||
grid.getView().refresh();
|
grid.getView().refresh();
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
single: true
|
||||||
}
|
}
|
||||||
},
|
|
||||||
{
|
|
||||||
single: true
|
|
||||||
}
|
|
||||||
);
|
);
|
||||||
|
|
||||||
if (grdNumRows > 1 || grdNumRows == 0) {
|
if (grdNumRows > 1 || grdNumRows == 0) {
|
||||||
return value;
|
return value;
|
||||||
} else {
|
} else {
|
||||||
if (typeof(grdRowLabel[comboBoxField]) == "undefined") {
|
if (typeof (grdRowLabel[comboBoxField]) == "undefined") {
|
||||||
grdRowLabel[comboBoxField] = value;
|
grdRowLabel[comboBoxField] = value;
|
||||||
return grdRowLabel[comboBoxField];
|
return grdRowLabel[comboBoxField];
|
||||||
} else {
|
} else {
|
||||||
@@ -101,11 +158,10 @@ var browserHeight = 0;
|
|||||||
if (typeof window.innerWidth != "undefined") {
|
if (typeof window.innerWidth != "undefined") {
|
||||||
browserWidth = window.innerWidth;
|
browserWidth = window.innerWidth;
|
||||||
browserHeight = window.innerHeight;
|
browserHeight = window.innerHeight;
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
//IE6 in standards compliant mode (i.e. with a valid doctype as the first line in the document)
|
//IE6 in standards compliant mode (i.e. with a valid doctype as the first line in the document)
|
||||||
if (typeof document.documentElement != "undefined" && typeof document.documentElement.clientWidth != "undefined" &&
|
if (typeof document.documentElement != "undefined" && typeof document.documentElement.clientWidth != "undefined" &&
|
||||||
document.documentElement.clientWidth != 0) {
|
document.documentElement.clientWidth != 0) {
|
||||||
browserWidth = document.documentElement.clientWidth;
|
browserWidth = document.documentElement.clientWidth;
|
||||||
browserHeight = document.documentElement.clientHeight;
|
browserHeight = document.documentElement.clientHeight;
|
||||||
} else {
|
} else {
|
||||||
@@ -204,7 +260,7 @@ function jumpToCase(appNumber) {
|
|||||||
url: 'cases_Ajax',
|
url: 'cases_Ajax',
|
||||||
success: function (response) {
|
success: function (response) {
|
||||||
var res = Ext.decode(response.responseText),
|
var res = Ext.decode(response.responseText),
|
||||||
nameTab;
|
nameTab;
|
||||||
if (res.exists === true) {
|
if (res.exists === true) {
|
||||||
params = 'APP_NUMBER=' + appNumber;
|
params = 'APP_NUMBER=' + appNumber;
|
||||||
params += '&action=jump';
|
params += '&action=jump';
|
||||||
@@ -234,33 +290,33 @@ function pauseCase(date) {
|
|||||||
unpauseDate = date.format('Y-m-d');
|
unpauseDate = date.format('Y-m-d');
|
||||||
|
|
||||||
Ext.Msg.confirm(
|
Ext.Msg.confirm(
|
||||||
_("ID_CONFIRM"),
|
_("ID_CONFIRM"),
|
||||||
_("ID_PAUSE_CASE_TO_DATE") + " " + date.format("M j, Y"),
|
_("ID_PAUSE_CASE_TO_DATE") + " " + date.format("M j, Y"),
|
||||||
function (btn, text) {
|
function (btn, text) {
|
||||||
if (btn == 'yes') {
|
if (btn == 'yes') {
|
||||||
Ext.MessageBox.show({
|
Ext.MessageBox.show({
|
||||||
msg: _("ID_PROCESSING"),
|
msg: _("ID_PROCESSING"),
|
||||||
wait: true,
|
wait: true,
|
||||||
waitConfig: {
|
waitConfig: {
|
||||||
interval: 200
|
interval: 200
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
Ext.Ajax.request({
|
Ext.Ajax.request({
|
||||||
url: '../cases/cases_Ajax',
|
url: '../cases/cases_Ajax',
|
||||||
success: function (response) {
|
success: function (response) {
|
||||||
parent.updateCasesView();
|
parent.updateCasesView();
|
||||||
parent.updateCasesTree();
|
parent.updateCasesTree();
|
||||||
Ext.MessageBox.hide();
|
Ext.MessageBox.hide();
|
||||||
},
|
},
|
||||||
params: {
|
params: {
|
||||||
action: 'pauseCase',
|
action: 'pauseCase',
|
||||||
unpausedate: unpauseDate,
|
unpausedate: unpauseDate,
|
||||||
APP_UID: rowModel.data.APP_UID,
|
APP_UID: rowModel.data.APP_UID,
|
||||||
DEL_INDEX: rowModel.data.DEL_INDEX
|
DEL_INDEX: rowModel.data.DEL_INDEX
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -329,25 +385,25 @@ Ext.onReady(function () {
|
|||||||
text: _("ID_DERIVATED"),
|
text: _("ID_DERIVATED"),
|
||||||
handler: function () {
|
handler: function () {
|
||||||
Ext.Msg.confirm(_("ID_CONFIRM_ROUTING"), _("ID_ROUTE_BATCH_ROUTING"),
|
Ext.Msg.confirm(_("ID_CONFIRM_ROUTING"), _("ID_ROUTE_BATCH_ROUTING"),
|
||||||
function (btn, text) {
|
function (btn, text) {
|
||||||
if (btn == 'yes') {
|
if (btn == 'yes') {
|
||||||
htmlMessage = "";
|
htmlMessage = "";
|
||||||
var selectedRow = Ext.getCmp(gridId).getSelectionModel().getSelections();
|
var selectedRow = Ext.getCmp(gridId).getSelectionModel().getSelections();
|
||||||
var maxLenght = selectedRow.length;
|
var maxLenght = selectedRow.length;
|
||||||
for (var i in selectedRow) {
|
for (var i in selectedRow) {
|
||||||
rowGrid = selectedRow[i].data;
|
rowGrid = selectedRow[i].data;
|
||||||
for (fieldGrid in rowGrid) {
|
for (fieldGrid in rowGrid) {
|
||||||
if (fieldGrid != 'APP_UID' && fieldGrid != 'APP_NUMBER' && fieldGrid != 'APP_TITLE' && fieldGrid != 'DEL_INDEX') {
|
if (fieldGrid != 'APP_UID' && fieldGrid != 'APP_NUMBER' && fieldGrid != 'APP_TITLE' && fieldGrid != 'DEL_INDEX') {
|
||||||
fieldGridGral = fieldGrid;
|
fieldGridGral = fieldGrid;
|
||||||
fieldGridGralVal = (rowGrid[fieldGrid] != null ) ? rowGrid[fieldGrid] : '';
|
fieldGridGralVal = (rowGrid[fieldGrid] != null) ? rowGrid[fieldGrid] : '';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (selectedRow[i].data) {
|
||||||
|
ajaxDerivationRequest(selectedRow[i].data["APP_UID"], selectedRow[i].data["DEL_INDEX"], maxLenght, selectedRow[i].data["APP_NUMBER"], fieldGridGral, fieldGridGralVal);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
if (selectedRow[i].data) {
|
|
||||||
ajaxDerivationRequest(selectedRow[i].data["APP_UID"], selectedRow[i].data["DEL_INDEX"], maxLenght, selectedRow[i].data["APP_NUMBER"], fieldGridGral, fieldGridGralVal);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -541,7 +597,8 @@ Ext.onReady(function () {
|
|||||||
|
|
||||||
function inArray(arr, obj) {
|
function inArray(arr, obj) {
|
||||||
for (var i = 0; i < arr.length; i++) {
|
for (var i = 0; i < arr.length; i++) {
|
||||||
if (arr[i] == obj) return true;
|
if (arr[i] == obj)
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@@ -559,8 +616,7 @@ Ext.onReady(function () {
|
|||||||
start.setMaxValue(date);
|
start.setMaxValue(date);
|
||||||
start.validate();
|
start.validate();
|
||||||
this.dateRangeMax = date;
|
this.dateRangeMax = date;
|
||||||
}
|
} else if (field.endDateField && (!this.dateRangeMin || (date.getTime() != this.dateRangeMin.getTime()))) {
|
||||||
else if (field.endDateField && (!this.dateRangeMin || (date.getTime() != this.dateRangeMin.getTime()))) {
|
|
||||||
var end = Ext.getCmp(field.endDateField);
|
var end = Ext.getCmp(field.endDateField);
|
||||||
end.setMinValue(date);
|
end.setMinValue(date);
|
||||||
end.validate();
|
end.validate();
|
||||||
@@ -575,7 +631,7 @@ Ext.onReady(function () {
|
|||||||
});
|
});
|
||||||
|
|
||||||
function msgBox(title, msg, type) {
|
function msgBox(title, msg, type) {
|
||||||
if (typeof('type') == 'undefined') {
|
if (typeof ('type') == 'undefined') {
|
||||||
type = 'info';
|
type = 'info';
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -608,7 +664,8 @@ function renderSummary(val, p, r) {
|
|||||||
var summaryIcon = '<img src="/images/ext/default/s.gif" class="x-tree-node-icon ss_layout_header" unselectable="off" id="extdd-17" ';
|
var summaryIcon = '<img src="/images/ext/default/s.gif" class="x-tree-node-icon ss_layout_header" unselectable="off" id="extdd-17" ';
|
||||||
summaryIcon += 'onclick="openSummaryWindow(' + "'" + r.data['APP_UID'] + "'" + ', ' + r.data['DEL_INDEX'] + ')" title="' + _('ID_SUMMARY') + '" />';
|
summaryIcon += 'onclick="openSummaryWindow(' + "'" + r.data['APP_UID'] + "'" + ', ' + r.data['DEL_INDEX'] + ')" title="' + _('ID_SUMMARY') + '" />';
|
||||||
return summaryIcon;
|
return summaryIcon;
|
||||||
};
|
}
|
||||||
|
;
|
||||||
|
|
||||||
function generateGridClassic(proUid, tasUid, dynUid) {
|
function generateGridClassic(proUid, tasUid, dynUid) {
|
||||||
|
|
||||||
@@ -776,7 +833,7 @@ function generateGridClassic(proUid, tasUid, dynUid) {
|
|||||||
var dataResponse = eval("(" + response.responseText + ")");
|
var dataResponse = eval("(" + response.responseText + ")");
|
||||||
|
|
||||||
if (dataResponse.status && dataResponse.status == "OK") {
|
if (dataResponse.status && dataResponse.status == "OK") {
|
||||||
if (typeof(storeConsolidated.lastOptions.params) != "undefined") {
|
if (typeof (storeConsolidated.lastOptions.params) != "undefined") {
|
||||||
pagei = storeConsolidated.lastOptions.params.start;
|
pagei = storeConsolidated.lastOptions.params.start;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1016,7 +1073,7 @@ function generateGrid(proUid, tasUid, dynUid) {
|
|||||||
var dataResponse = eval("(" + response.responseText + ")");
|
var dataResponse = eval("(" + response.responseText + ")");
|
||||||
|
|
||||||
if (dataResponse.status && dataResponse.status == "OK") {
|
if (dataResponse.status && dataResponse.status == "OK") {
|
||||||
if (typeof(storeConsolidated.lastOptions.params) != "undefined") {
|
if (typeof (storeConsolidated.lastOptions.params) != "undefined") {
|
||||||
pagei = storeConsolidated.lastOptions.params.start;
|
pagei = storeConsolidated.lastOptions.params.start;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user