Merged in luisfernandosl/processmaker/BUG-15949 (pull request #822)
BUG 15949 "Por defecto deberímostrar... " SOLVED
This commit is contained in:
@@ -73,16 +73,6 @@ foreach ($workspaces as $index => $workspace) {
|
||||
|
||||
sort( $arrayAux );
|
||||
|
||||
$arrayWorkspace = array ();
|
||||
|
||||
foreach ($arrayAux as $index => $value) {
|
||||
$arrayWorkspace[] = array ($value,$value
|
||||
);
|
||||
}
|
||||
|
||||
array_unshift( $arrayWorkspace, array ("ALL",G::LoadTranslation( "ID_ALL_WORKSPACES" )
|
||||
) );
|
||||
|
||||
//Status
|
||||
$arrayStatus = array (array ("ALL",G::LoadTranslation( "ID_ALL" )
|
||||
),array ("COMPLETED",G::LoadTranslation( "COMPLETED" )
|
||||
@@ -95,7 +85,6 @@ $oHeadPublisher->addContent( "setup/cron" ); //Adding a html file .html
|
||||
$oHeadPublisher->addExtJsScript( "setup/cron", false ); //Adding a javascript file .js
|
||||
$oHeadPublisher->assign( "CONFIG", $config );
|
||||
$oHeadPublisher->assign( "CRON", $cronInfo );
|
||||
$oHeadPublisher->assign( "WORKSPACE", $arrayWorkspace );
|
||||
$oHeadPublisher->assign( "STATUS", $arrayStatus );
|
||||
|
||||
G::RenderPage( "publish", "extJs" );
|
||||
|
||||
@@ -66,7 +66,7 @@ function cronArraySet ($str, $filter)
|
||||
$arrayData = array ();
|
||||
|
||||
if ($sw == 1) {
|
||||
$arrayData = array ("DATE" => $date,"WORKSPACE" => $workspace,"ACTION" => $action,"STATUS" => $status,"DESCRIPTION" => $description
|
||||
$arrayData = array ("DATE" => $date, "ACTION" => $action, "STATUS" => $status, "DESCRIPTION" => $description
|
||||
);
|
||||
}
|
||||
|
||||
@@ -116,7 +116,7 @@ $response = array ();
|
||||
switch ($option) {
|
||||
case "LST":
|
||||
$pageSize = $_REQUEST["pageSize"];
|
||||
$workspace = $_REQUEST["workspace"];
|
||||
$workspace = SYS_SYS;
|
||||
$status = $_REQUEST["status"];
|
||||
$dateFrom = $_REQUEST["dateFrom"];
|
||||
$dateTo = $_REQUEST["dateTo"];
|
||||
|
||||
@@ -63,7 +63,6 @@ cron.application = {
|
||||
|
||||
if (typeof record != "undefined") {
|
||||
var strData = "<b>" + _("ID_DATE_LABEL") + "</b><br />" + record.get("DATE") + "<br />";
|
||||
strData = strData + "<b>" + _("ID_WORKSPACE") + "</b><br />" + record.get("WORKSPACE") + "<br />";
|
||||
strData = strData + "<b>" + _("ID_ACTION") + "</b><br />" + record.get("ACTION") + "<br />";
|
||||
strData = strData + "<b>" + _("ID_STATUS") + "</b><br />" + record.get("STATUS") + "<br />";
|
||||
strData = strData + "<b>" + _("ID_DESCRIPTION") + "</b><br />" + record.get("DESCRIPTION") + "<br />";
|
||||
@@ -97,7 +96,6 @@ cron.application = {
|
||||
totalProperty: "resultTotal",
|
||||
fields: [
|
||||
{name: "DATE"},
|
||||
{name: "WORKSPACE"},
|
||||
{name: "ACTION"},
|
||||
{name: "STATUS"},
|
||||
{name: "DESCRIPTION"}
|
||||
@@ -114,7 +112,6 @@ cron.application = {
|
||||
this.baseParams = {
|
||||
"option": "LST",
|
||||
"pageSize": pageSize,
|
||||
"workspace": Ext.getCmp("cboWorkspace").getValue(),
|
||||
"status": Ext.getCmp("cboStatus").getValue(),
|
||||
"dateFrom": Ext.getCmp("dateFrom").getValue(),
|
||||
"dateTo": Ext.getCmp("dateTo").getValue()
|
||||
@@ -129,12 +126,6 @@ cron.application = {
|
||||
}
|
||||
});
|
||||
|
||||
var storeWorkspace = new Ext.data.ArrayStore({
|
||||
idIndex: 0,
|
||||
fields: ["id", "value"],
|
||||
data: WORKSPACE
|
||||
});
|
||||
|
||||
var storeStatus = new Ext.data.ArrayStore({
|
||||
idIndex: 0,
|
||||
fields: ["id", "value"],
|
||||
@@ -166,28 +157,6 @@ cron.application = {
|
||||
value: ""
|
||||
});
|
||||
|
||||
var cboWorkspace = new Ext.form.ComboBox({
|
||||
id: "cboWorkspace",
|
||||
|
||||
valueField: "id",
|
||||
displayField: "value",
|
||||
value: "ALL",
|
||||
store: storeWorkspace,
|
||||
|
||||
triggerAction: "all",
|
||||
mode: "local",
|
||||
editable: false,
|
||||
|
||||
width: 150,
|
||||
|
||||
listeners: {
|
||||
select: function (combo, record, index)
|
||||
{
|
||||
pagingCron.moveFirst();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
var cboStatus = new Ext.form.ComboBox({
|
||||
id: "cboStatus",
|
||||
|
||||
@@ -300,7 +269,6 @@ cron.application = {
|
||||
expander,
|
||||
{id: "ID", dataIndex: "DATE", hidden: true, hideable: false},
|
||||
{header: _("ID_DATE_LABEL"), dataIndex: "DATE", width: 10, align: "center"},
|
||||
{header: _("ID_WORKSPACE"), dataIndex: "WORKSPACE", width: 10},
|
||||
{header: _("ID_ACTION"), dataIndex: "ACTION", width: 10},
|
||||
{header: _("ID_STATUS"), dataIndex: "STATUS", width: 7, align: "center"},
|
||||
{header: _("ID_DESCRIPTION"), dataIndex: "DESCRIPTION"}
|
||||
@@ -399,8 +367,6 @@ cron.application = {
|
||||
//"-",
|
||||
//btnView,
|
||||
"->",
|
||||
{xtype: "tbtext", text: _("ID_WORKSPACE") + " "},
|
||||
cboWorkspace,
|
||||
"-",
|
||||
{xtype: "tbtext", text: _("ID_STATUS") + " "},
|
||||
cboStatus,
|
||||
|
||||
Reference in New Issue
Block a user