Merge branch 'feature/PMCORE-3049' of https://bitbucket.org/colosa/processmaker into taskmetrics

This commit is contained in:
Henry Jordan
2021-08-16 18:56:17 +00:00
23 changed files with 1405 additions and 815 deletions

View File

@@ -409,11 +409,7 @@ class RBAC
"PER_CODE" => "PM_SETUP_CLEAR_CACHE", "PER_CODE" => "PM_SETUP_CLEAR_CACHE",
"PER_NAME" => "Setup Clear Cache" "PER_NAME" => "Setup Clear Cache"
], ],
[ // The 00000000000000000000000000000025 was deleted related to the heart beat
"PER_UID" => "00000000000000000000000000000025",
"PER_CODE" => "PM_SETUP_HEART_BEAT",
"PER_NAME" => "Setup Heart Beat"
],
[ [
"PER_UID" => "00000000000000000000000000000026", "PER_UID" => "00000000000000000000000000000026",
"PER_CODE" => "PM_SETUP_ENVIRONMENT", "PER_CODE" => "PM_SETUP_ENVIRONMENT",

5
package-lock.json generated
View File

@@ -3079,6 +3079,11 @@
"integrity": "sha1-3vHxyl1gWdJKdm5YeULCEQbOEnU=", "integrity": "sha1-3vHxyl1gWdJKdm5YeULCEQbOEnU=",
"dev": true "dev": true
}, },
"downloadjs": {
"version": "1.4.7",
"resolved": "https://registry.npmjs.org/downloadjs/-/downloadjs-1.4.7.tgz",
"integrity": "sha1-9p+W+UDg0FU9rCkROYZaPNAQHjw="
},
"duplexify": { "duplexify": {
"version": "3.7.1", "version": "3.7.1",
"resolved": "https://registry.npmjs.org/duplexify/-/duplexify-3.7.1.tgz", "resolved": "https://registry.npmjs.org/duplexify/-/duplexify-3.7.1.tgz",

View File

@@ -31,6 +31,7 @@
"bootstrap-vue-font-awesome-picker": "^0.1.3", "bootstrap-vue-font-awesome-picker": "^0.1.3",
"chart.js": "^2.7.2", "chart.js": "^2.7.2",
"dateformat": "^3.0.3", "dateformat": "^3.0.3",
"downloadjs": "^1.4.7",
"faker": "^5.1.0", "faker": "^5.1.0",
"font-awesome": "^4.7.0", "font-awesome": "^4.7.0",
"hammerjs": "^2.0.8", "hammerjs": "^2.0.8",

View File

@@ -23,7 +23,6 @@ INSERT INTO `RBAC_PERMISSIONS` VALUES
('00000000000000000000000000000022','PM_SETUP_CALENDAR','2016-03-01 00:00:00','2016-03-01 00:00:00',1,'00000000000000000000000000000002'), ('00000000000000000000000000000022','PM_SETUP_CALENDAR','2016-03-01 00:00:00','2016-03-01 00:00:00',1,'00000000000000000000000000000002'),
('00000000000000000000000000000023','PM_SETUP_PROCESS_CATEGORIES','2016-03-01 00:00:00','2016-03-01 00:00:00',1,'00000000000000000000000000000002'), ('00000000000000000000000000000023','PM_SETUP_PROCESS_CATEGORIES','2016-03-01 00:00:00','2016-03-01 00:00:00',1,'00000000000000000000000000000002'),
('00000000000000000000000000000024','PM_SETUP_CLEAR_CACHE','2016-03-01 00:00:00','2016-03-01 00:00:00',1,'00000000000000000000000000000002'), ('00000000000000000000000000000024','PM_SETUP_CLEAR_CACHE','2016-03-01 00:00:00','2016-03-01 00:00:00',1,'00000000000000000000000000000002'),
('00000000000000000000000000000025','PM_SETUP_HEART_BEAT','2016-03-01 00:00:00','2016-03-01 00:00:00',1,'00000000000000000000000000000002'),
('00000000000000000000000000000026','PM_SETUP_ENVIRONMENT','2016-03-01 00:00:00','2016-03-01 00:00:00',1,'00000000000000000000000000000002'), ('00000000000000000000000000000026','PM_SETUP_ENVIRONMENT','2016-03-01 00:00:00','2016-03-01 00:00:00',1,'00000000000000000000000000000002'),
('00000000000000000000000000000027','PM_SETUP_PM_TABLES','2016-03-01 00:00:00','2016-03-01 00:00:00',1,'00000000000000000000000000000002'), ('00000000000000000000000000000027','PM_SETUP_PM_TABLES','2016-03-01 00:00:00','2016-03-01 00:00:00',1,'00000000000000000000000000000002'),
('00000000000000000000000000000028','PM_SETUP_LOGIN','2016-03-01 00:00:00','2016-03-01 00:00:00',1,'00000000000000000000000000000002'), ('00000000000000000000000000000028','PM_SETUP_LOGIN','2016-03-01 00:00:00','2016-03-01 00:00:00',1,'00000000000000000000000000000002'),
@@ -105,7 +104,6 @@ INSERT INTO `RBAC_ROLES_PERMISSIONS` VALUES
('00000000000000000000000000000002','00000000000000000000000000000022'), ('00000000000000000000000000000002','00000000000000000000000000000022'),
('00000000000000000000000000000002','00000000000000000000000000000023'), ('00000000000000000000000000000002','00000000000000000000000000000023'),
('00000000000000000000000000000002','00000000000000000000000000000024'), ('00000000000000000000000000000002','00000000000000000000000000000024'),
('00000000000000000000000000000002','00000000000000000000000000000025'),
('00000000000000000000000000000002','00000000000000000000000000000026'), ('00000000000000000000000000000002','00000000000000000000000000000026'),
('00000000000000000000000000000002','00000000000000000000000000000027'), ('00000000000000000000000000000002','00000000000000000000000000000027'),
('00000000000000000000000000000002','00000000000000000000000000000028'), ('00000000000000000000000000000002','00000000000000000000000000000028'),
@@ -187,7 +185,6 @@ INSERT INTO `RBAC_ROLES_PERMISSIONS` VALUES
('00000000000000000000000000000004','00000000000000000000000000000022'), ('00000000000000000000000000000004','00000000000000000000000000000022'),
('00000000000000000000000000000004','00000000000000000000000000000023'), ('00000000000000000000000000000004','00000000000000000000000000000023'),
('00000000000000000000000000000004','00000000000000000000000000000024'), ('00000000000000000000000000000004','00000000000000000000000000000024'),
('00000000000000000000000000000004','00000000000000000000000000000025'),
('00000000000000000000000000000004','00000000000000000000000000000026'), ('00000000000000000000000000000004','00000000000000000000000000000026'),
('00000000000000000000000000000004','00000000000000000000000000000027'), ('00000000000000000000000000000004','00000000000000000000000000000027'),
('00000000000000000000000000000004','00000000000000000000000000000028'), ('00000000000000000000000000000004','00000000000000000000000000000028'),

View File

@@ -51,10 +51,11 @@ export default {
this.$refs["modal-delete-list"].hide(); this.$refs["modal-delete-list"].hide();
}, },
deleteCustomCaseList() { deleteCustomCaseList() {
api.deleteCaseList(this.data).then((response) => { let that = this;
if (response.statusText == "OK") { api.deleteCaseList(this.data).then((response) => {
that.$refs["modal-pause-case"].hide(); if (response.statusText === "OK") {
that.$parent.$refs["vueTable"].getData(); that.$refs["modal-delete-list"].hide();
that.$parent.$refs["table"].getData();
} }
}); });
} }

View File

@@ -0,0 +1,269 @@
<template>
<b-modal
ref="modal-preview"
scrollable
size="xl"
>
<template v-slot:modal-title></template>
<b-container fluid>
<v-server-table
:data="tableData"
:columns="columns"
:options="options"
ref="table-preview"
name="preview"
>
<div slot="detail">
<i class="fas fa-info-circle"></i>
</div>
<div slot="case_number" slot-scope="props">
{{ props.row.CASE_NUMBER }}
</div>
<div slot="case_title" slot-scope="props">
{{ props.row.CASE_TITLE }}
</div>
<div slot="process_name" slot-scope="props">
{{ props.row.PROCESS_NAME }}
</div>
<div slot="task" slot-scope="props">
<TaskCell :data="props.row.TASK" />
</div>
<div slot="send_by" slot-scope="props">
<CurrentUserCell :data="props.row.USER_DATA" />
</div>
<div slot="current_user" slot-scope="props">
{{ props.row.USERNAME_DISPLAY_FORMAT }}
</div>
<div slot="due_date" slot-scope="props">
{{ props.row.DUE_DATE }}
</div>
<div slot="delegation_date" slot-scope="props">
{{ props.row.DELEGATION_DATE }}
</div>
<div slot="priority" slot-scope="props">
{{ props.row.PRIORITY }}
</div>
<div slot="actions">
<i class="fas fa-ellipsis-v"></i>
</div>
</v-server-table>
</b-container>
<template #modal-footer>
<b-button
variant="danger"
data-dismiss="modal"
@click="cancel"
>
{{ $t("ID_CANCEL") }}
</b-button>
</template>
</b-modal>
</template>
<script>
import api from "../../api/index";
import utils from "../../utils/utils";
import TaskCell from "../../components/vuetable/TaskCell.vue";
import CurrentUserCell from "../../components/vuetable/CurrentUserCell.vue"
export default {
name: "ModalPreview",
props: [],
components: {
TaskCell,
CurrentUserCell,
},
data() {
return {
type: null,
columns: null,
tableData: [],
options: {
filterable: false,
pagination: {
show: false
},
headings: {
detail: this.$i18n.t("ID_DETAIL_CASE"),
case_number: this.$i18n.t("ID_MYCASE_NUMBER"),
case_title: this.$i18n.t("ID_CASE_TITLE"),
process_name: this.$i18n.t("ID_PROCESS_NAME"),
task: this.$i18n.t("ID_TASK"),
send_by: this.$i18n.t("ID_SEND_BY"),
due_date: this.$i18n.t("ID_DUE_DATE"),
delegation_date: this.$i18n.t("ID_DELEGATION_DATE"),
priority: this.$i18n.t("ID_PRIORITY"),
actions: "",
},
requestFunction(data) {
return this.$parent.$parent.$parent.$parent.getCasesForPreview(data)
},
},
}
},
mounted() {
},
methods: {
show() {
this.$refs["modal-preview"].show();
},
cancel() {
this.$refs["modal-preview"].hide();
},
/**
* Get cases data
*/
getCasesForPreview(data) {
let that = this,
dt,
paged,
limit = data.limit,
start = data.page === 1 ? 0 : limit * (data.page - 1),
filters = {},
sort = "";
paged = start + "," + limit;
filters = {
paged: paged,
}
_.forIn(this.filters, function (item, key) {
if(filters && item.value) {
filters[item.filterVar] = item.value;
}
});
if (sort) {
filters["sort"] = sort;
}
return new Promise((resolutionFunc, rejectionFunc) => {
switch (that.type) {
case 'inbox':
api.cases
.todo(filters)
.then((response) => {
dt = that.formatDataResponse(response.data.data);
resolutionFunc({
data: dt,
count: response.data.total,
});
})
.catch((e) => {
rejectionFunc(e);
});
break;
case 'draft':
api.cases
.draft(filters)
.then((response) => {
dt = that.formatDataResponse(response.data.data);
resolutionFunc({
data: dt,
count: response.data.total,
});
})
.catch((e) => {
rejectionFunc(e);
});
break;
case 'paused':
api.cases
.paused(filters)
.then((response) => {
dt = that.formatDataResponse(response.data.data);
resolutionFunc({
data: dt,
count: response.data.total,
});
})
.catch((e) => {
rejectionFunc(e);
});
break;
case 'unassigned':
api.cases
.unassigned(filters)
.then((response) => {
dt = that.formatDataResponse(response.data.data);
resolutionFunc({
data: dt,
count: response.data.total,
});
})
.catch((e) => {
rejectionFunc(e);
});
break;
}
});
},
/**
* Format Response API to grid todo and columns
*/
formatDataResponse(response) {
let data = [];
_.forEach(response, (v) => {
data.push({
CASE_NUMBER: v.APP_NUMBER,
CASE_TITLE: v.DEL_TITLE,
PROCESS_NAME: v.PRO_TITLE,
TASK: [{
TITLE: v.TAS_TITLE,
CODE_COLOR: v.TAS_COLOR,
COLOR: v.TAS_COLOR_LABEL,
DELAYED_TITLE:
v.TAS_STATUS === "OVERDUE"
? this.$i18n.t("ID_DELAYED") + ":"
: this.statusTitle[v.TAS_STATUS],
DELAYED_MSG: v.TAS_STATUS === "OVERDUE" ? v.DELAY : "",
}],
USER_DATA: this.formatUser(v.SEND_BY_INFO),
USERNAME_DISPLAY_FORMAT: utils.userNameDisplayFormat({
userName: v.USR_LASTNAME,
firstName: v.USR_LASTNAME,
lastName: v.USR_LASTNAME,
format: window.config.FORMATS.format || null,
}),
DUE_DATE: v.DEL_TASK_DUE_DATE_LABEL,
DELEGATION_DATE: v.DEL_DELEGATE_DATE_LABEL,
PRIORITY: v.DEL_PRIORITY_LABEL,
DEL_INDEX: v.DEL_INDEX,
APP_UID: v.APP_UID,
PRO_UID: v.PRO_UID,
TAS_UID: v.TAS_UID,
});
});
return data;
},
/**
* Set the format to show user's information
* @return {array} dataFormat
*/
formatUser(data) {
var dataFormat = [],
userDataFormat;
userDataFormat = utils.userNameDisplayFormat({
userName: data.user_tooltip.usr_firstname,
firstName: data.user_tooltip.usr_lastname,
lastName: data.user_tooltip.usr_username,
format: window.config.FORMATS.format || null
});
dataFormat.push({
USERNAME_DISPLAY_FORMAT: userDataFormat,
EMAIL: data.user_tooltip.usr_email,
POSITION: data.user_tooltip.usr_position,
AVATAR: userDataFormat !== "" ? window.config.SYS_SERVER_AJAX +
window.config.SYS_URI +
`users/users_ViewPhotoGrid?pUID=${data.user_tooltip.usr_id}` : "",
UNASSIGNED: userDataFormat !== "" ? true : false
});
return dataFormat;
}
}
}
</script>
<style>
.VueTables__limit-field {
display: none;
}
.table-responsive {
margin-top: -1rem;
}
</style>

View File

@@ -1,7 +1,7 @@
import axios from "axios"; import axios from "axios";
import Api from "../../../../api/Api"; import Api from "../../../../api/Api";
import Services from "./Services"; import Services from "./Services";
import Defaults from "./Mocks/defaults.json";
class caseListApi extends Api { class caseListApi extends Api {
constructor(services) { constructor(services) {
// Here, it calls the parent class' constructor with lengths // Here, it calls the parent class' constructor with lengths
@@ -49,6 +49,31 @@ class caseListApi extends Api {
} }
); );
} }
reportTables(data) {
return this.get({
service: 'REPORT_TABLES',
params: data,
keys: {}
});
}
getDefault(module){
return Defaults[module]
}
createCaseList(data) {
return this.post({
service: "CASE_LIST",
data: data
});
}
updateCaseList(data) {
return this.put({
service: "PUT_CASE_LIST",
keys: {
id: data.id
},
data: data
});
}
} }
let api = new caseListApi(Services); let api = new caseListApi(Services);

View File

@@ -0,0 +1,300 @@
{
"inbox": [
{
"field": "case_number",
"name": "Case #",
"type": "integer",
"source": "APPLICATION",
"typeSearch": "integer range",
"enableFilter": false,
"set": true
},
{
"field": "case_title",
"name": "Case Title",
"type": "string",
"source": "APPLICATION",
"typeSearch": "search text",
"enableFilter": false,
"set": true
},
{
"field": "process_name",
"name": "Process Name",
"type": "string",
"source": "APPLICATION",
"typeSearch": "search text",
"enableFilter": false,
"set": true
},
{
"field": "task",
"name": "Task",
"type": "string",
"source": "APPLICATION",
"typeSearch": "search text",
"enableFilter": false,
"set": true
},
{
"field": "send_by",
"name": "**ID_SEND_BY**",
"type": "string",
"source": "APPLICATION",
"typeSearch": "search text",
"enableFilter": false,
"set": true
},
{
"field": "due_date",
"name": "Due Date",
"type": "date",
"source": "APPLICATION",
"typeSearch": "date range",
"enableFilter": false,
"set": true
},
{
"field": "delegation_date",
"name": "Delegation Date",
"type": "date",
"source": "APPLICATION",
"typeSearch": "date range",
"enableFilter": false,
"set": true
},
{
"field": "priority",
"name": "Priority",
"type": "string",
"source": "APPLICATION",
"typeSearch": "option",
"enableFilter": false,
"set": true
}
],
"draft": [
{
"field": "case_number",
"name": "Case #",
"type": "integer",
"source": "APPLICATION",
"typeSearch": "integer range",
"enableFilter": false,
"set": true
},
{
"field": "case_title",
"name": "Case Title",
"type": "string",
"source": "APPLICATION",
"typeSearch": "search text",
"enableFilter": false,
"set": true
},
{
"field": "process_name",
"name": "Process Name",
"type": "string",
"source": "APPLICATION",
"typeSearch": "search text",
"enableFilter": false,
"set": true
},
{
"field": "task",
"name": "Task",
"type": "string",
"source": "APPLICATION",
"typeSearch": "search text",
"enableFilter": false,
"set": true
}
],
"paused": [
{
"field": "case_number",
"name": "Case #",
"type": "integer",
"source": "APPLICATION",
"typeSearch": "integer range",
"enableFilter": false,
"set": true
},
{
"field": "case_title",
"name": "Case Title",
"type": "string",
"source": "APPLICATION",
"typeSearch": "search text",
"enableFilter": false,
"set": true
},
{
"field": "process_name",
"name": "Process Name",
"type": "string",
"source": "APPLICATION",
"typeSearch": "search text",
"enableFilter": false,
"set": true
},
{
"field": "task",
"name": "Task",
"type": "string",
"source": "APPLICATION",
"typeSearch": "search text",
"enableFilter": false,
"set": true
},
{
"field": "send_by",
"name": "**ID_SEND_BY**",
"type": "string",
"source": "APPLICATION",
"typeSearch": "search text",
"enableFilter": false,
"set": true
},
{
"field": "due_date",
"name": "Due Date",
"type": "date",
"source": "APPLICATION",
"typeSearch": "date range",
"enableFilter": false,
"set": true
},
{
"field": "delegation_date",
"name": "Delegation Date",
"type": "date",
"source": "APPLICATION",
"typeSearch": "date range",
"enableFilter": false,
"set": true
},
{
"field": "priority",
"name": "Priority",
"type": "string",
"source": "APPLICATION",
"typeSearch": "option",
"enableFilter": false,
"set": true
}
],
"inbox": [
{
"field": "case_number",
"name": "Case #",
"type": "integer",
"source": "APPLICATION",
"typeSearch": "integer range",
"enableFilter": false,
"set": true
},
{
"field": "case_title",
"name": "Case Title",
"type": "string",
"source": "APPLICATION",
"typeSearch": "search text",
"enableFilter": false,
"set": true
},
{
"field": "process_name",
"name": "Process Name",
"type": "string",
"source": "APPLICATION",
"typeSearch": "search text",
"enableFilter": false,
"set": true
},
{
"field": "task",
"name": "Task",
"type": "string",
"source": "APPLICATION",
"typeSearch": "search text",
"enableFilter": false,
"set": true
},
{
"field": "send_by",
"name": "**ID_SEND_BY**",
"type": "string",
"source": "APPLICATION",
"typeSearch": "search text",
"enableFilter": false,
"set": true
},
{
"field": "due_date",
"name": "Due Date",
"type": "date",
"source": "APPLICATION",
"typeSearch": "date range",
"enableFilter": false,
"set": true
},
{
"field": "delegation_date",
"name": "Delegation Date",
"type": "date",
"source": "APPLICATION",
"typeSearch": "date range",
"enableFilter": false,
"set": true
},
{
"field": "priority",
"name": "Priority",
"type": "string",
"source": "APPLICATION",
"typeSearch": "option",
"enableFilter": false,
"set": true
}
],
"unassigned": [
{
"field": "case_number",
"name": "Case #",
"type": "integer",
"source": "APPLICATION",
"typeSearch": "integer range",
"enableFilter": false,
"set": true
},
{
"field": "case_title",
"name": "Case Title",
"type": "string",
"source": "APPLICATION",
"typeSearch": "search text",
"enableFilter": false,
"set": true
},
{
"field": "process_name",
"name": "Process Name",
"type": "string",
"source": "APPLICATION",
"typeSearch": "search text",
"enableFilter": false,
"set": true
},
{
"field": "task",
"name": "Task",
"type": "string",
"source": "APPLICATION",
"typeSearch": "search text",
"enableFilter": false,
"set": true
}
]
}

View File

@@ -2,5 +2,8 @@ export default {
CASE_LIST_TODO: "/caseList/inbox", CASE_LIST_TODO: "/caseList/inbox",
CASE_LIST_DRAFT: "/caseList/draft", CASE_LIST_DRAFT: "/caseList/draft",
CASE_LIST_UNASSIGNED: "/caseList/unassigned", CASE_LIST_UNASSIGNED: "/caseList/unassigned",
CASE_LIST_PAUSED: "/caseList/paused" CASE_LIST_PAUSED: "/caseList/paused",
REPORT_TABLES: "/caseList/report-tables",
CASE_LIST: "/caseList",
PUT_CASE_LIST: "/caseList/{id}"
}; };

View File

@@ -2,187 +2,280 @@
<div id="home"> <div id="home">
<div class="demo"> <div class="demo">
<div class="container"> <div class="container">
<h5>{{ $t("ID_NEW_CASES_LISTS") }}</h5> <h5>{{ $t("ID_NEW_CASES_LISTS") }} ({{ module.title }})</h5>
<b-form @submit="onSubmit">
<div class="row"> <b-row>
<div class="col-sm"> <b-col cols="6">
<b-row> <b-row>
<b-col> <b-col>
<b-form-group <b-form-group
id="nameLabel" id="nameLabel"
label="Name" :label="$t('ID_NAME')"
label-for="name" label-for="name"
>
<b-form-input
id="name"
v-model="params.name"
placeholder="Set a Case List Name"
required
></b-form-input>
</b-form-group>
</b-col>
<b-col>
<b-form-group
id="tableLabel"
label="PM Table "
label-for="name"
>
<multiselect
v-model="params.tableUid"
:options="pmTablesOptions"
placeholder="Chose an option"
label="label"
track-by="value"
:show-no-results="false"
@search-change="asyncFind"
:loading="isLoading"
id="ajax"
:limit="10"
:clear-on-select="true"
> >
</multiselect> <b-form-input
</b-form-group> id="name"
</b-col> v-model="params.name"
</b-row> :state="isValidName"
:placeholder="
<b-form-group $t('ID_SET_A_CASE_LIST_NAME')
id="descriptionLabel" "
label="Description " ></b-form-input>
label-for="description" <b-form-invalid-feedback
> :state="isValidName"
<b-form-textarea
id="description"
v-model="params.description"
placeholder="Some Text"
rows="1"
max-rows="1"
></b-form-textarea>
</b-form-group>
<b-row>
<b-col cols="10">
<v-client-table
:columns="columns"
v-model="data"
:options="options"
>
</v-client-table>
</b-col>
<b-col cols="2">
<!-- Control panel -->
<div class="control-panel">
<div class="vertical-center">
<button
type="button"
class="btn btn-light"
@click="assignAll()"
:disabled="isButtonDisabled"
> >
<i {{ $t("ID_REQUIRED_FIELD") }}
class="fa fa-angle-double-right" </b-form-invalid-feedback>
></i> </b-form-group>
</button> </b-col>
<button <b-col>
type="button" <div :class="{ invalid: isValidTable === false }">
class="btn btn-light" <label>{{ $t("ID_PM_TABLE") }}</label>
@click="assignSelected()" <multiselect
:disabled="isButtonDisabled" v-model="pmTable"
:options="pmTablesOptions"
:placeholder="
$t('ID_CHOOSE_OPTION')
"
label="label"
track-by="value"
:show-no-results="false"
@search-change="asyncFind"
@select="onSelect"
:loading="isLoading"
id="ajax"
:limit="10"
:clear-on-select="true"
> >
<i class="fa fa-angle-right"></i> </multiselect>
</button> <label
<button :class="{
type="button" 'd-block invalid-feedback': isValidTable === false
class="btn btn-light" }"
@click="unassignSelected()" v-show="isValidTable === false"
:disabled="isButtonDisabled" >{{
$t("ID_REQUIRED_FIELD")
}}</label
> >
<i class="fa fa-angle-left"></i>
</button>
<button
type="button"
class="btn btn-light"
@click="unassignAll()"
:disabled="isButtonDisabled"
>
<i
class="fa fa-angle-double-right"
></i>
</button>
</div> </div>
</div> </b-col>
<!-- End Control panel --> </b-row>
</b-col>
</b-row>
<b-form-group
id="iconLabel"
label="Icon "
label-for="icon"
>
<icon-picker
@selected="onSelectIcon"
:default="params.iconList"
/>
</b-form-group>
<div>
<b-form-group <b-form-group
id="menuColor" id="descriptionLabel"
label="Menu Color " :label="$t('ID_DESCRIPTION')"
label-for="description"
>
<b-form-textarea
id="description"
v-model="params.description"
:placeholder="$t('ID_SOME_TEXT')"
rows="1"
max-rows="1"
></b-form-textarea>
</b-form-group>
<b-row>
<b-col cols="11">
<v-client-table
:columns="columns"
v-model="data"
:options="options"
ref="pmTableColumns"
>
<!-- checkbox for each header (prefix column name with h__-->
<template slot="h__selected">
<input
type="checkbox"
@click="selectAllAtOnce()"
/>
</template>
<input
slot="selected"
slot-scope="props"
type="checkbox"
v-model="checkedRows"
:checked="props.row.selected"
:value="props.row.field"
/>
<div slot="action" slot-scope="props">
<b-button
variant="light"
@click="onAddRow(props.row)"
>
<i
ref="iconClose"
class="fas fa-plus"
></i>
</b-button>
</div>
</v-client-table>
</b-col>
<b-col cols="1">
<!-- Control panel -->
<div class="control-panel">
<div class="vertical-center">
<button
type="button"
class="btn btn-light"
@click="assignAll()"
:disabled="isButtonDisabled"
>
<i
class="fa fa-angle-double-right"
></i>
</button>
<button
type="button"
class="btn btn-light"
@click="assignSelected()"
:disabled="isButtonDisabled"
>
<i
class="fa fa-angle-right"
></i>
</button>
<button
type="button"
class="btn btn-light"
@click="unassignSelected()"
:disabled="isButtonDisabled"
>
<i class="fa fa-angle-left"></i>
</button>
<button
type="button"
class="btn btn-light"
@click="unassignAll()"
:disabled="isButtonDisabled"
>
<i
class="fa fa-angle-double-left"
></i>
</button>
</div>
</div>
<!-- End Control panel -->
</b-col>
</b-row>
<b-form-group
id="iconLabel"
:label="$t('ID_ICON')"
label-for="icon" label-for="icon"
> >
<verte <icon-picker
:value="params.iconColor" @selected="onSelectIcon"
id="icon" :default="params.iconList"
@input="onChangeColor" />
picker="square"
menuPosition="left"
model="hex"
>
<svg viewBox="0 0 50 50">
<path
d="M 10 10 H 90 V 90 H 10 L 10 10"
/>
</svg>
</verte>
</b-form-group> </b-form-group>
</div> <div>
<b-form-group
id="menuColor"
:label="$t('ID_MENU_COLOR')"
label-for="icon"
>
<verte
:value="params.iconColor"
id="icon"
@input="onChangeColor"
picker="square"
menuPosition="left"
model="hex"
>
<svg viewBox="0 0 50 50">
<path
d="M 10 10 H 90 V 90 H 10 L 10 10"
/>
</svg>
</verte>
</b-form-group>
</div>
<div> <div>
<b-form-group <b-form-group
id="screenColor" id="screenColor"
label="Screen Color Icon" :label="$t('ID_SCREEN_COLOR_ICON')"
label-for="screen" label-for="screen"
>
<verte
:value="params.iconColorScreen"
@input="onChangeColor"
picker="square"
menuPosition="left"
model="hex"
> >
<svg viewBox="0 0 50 50"> <verte
<path :value="params.iconColorScreen"
d="M 10 10 H 90 V 90 H 10 L 10 10" @input="onChangeColorScreen"
picker="square"
menuPosition="left"
model="hex"
>
<svg viewBox="0 0 50 50">
<path
d="M 10 10 H 90 V 90 H 10 L 10 10"
/>
</svg>
</verte>
</b-form-group>
</div>
</b-col>
<b-col cols="6">
<b-form-group
id="caseListFieldset"
:label="$t('ID_CASE_LIST')"
>
<v-client-table
:columns="columnsCaseList"
v-model="dataCaseList"
:options="caseListOptions"
>
<!-- checkbox for each header (prefix column name with h__-->
<template slot="h__selected">
<input
type="checkbox"
@click="selectAllAtOnceCaseList()"
/> />
</svg> </template>
</verte> <input
slot="selected"
slot-scope="props"
type="checkbox"
v-model="checkedRowsCaseList"
:checked="props.row.selected"
:value="props.row.field"
/>
<b-form-checkbox
slot="enableFilter"
slot-scope="props"
v-model="enabledFilterRows"
@change="onTongleFilter(props.row.field)"
name="check-button"
:checked="props.row.enableFilter"
:value="props.row.field"
switch
>
</b-form-checkbox>
<div slot="action" slot-scope="props">
<b-button
variant="light"
@click="onRemoveRow(props.row)"
>
<i
ref="iconClose"
class="fas fa-minus"
></i>
</b-button>
</div>
</v-client-table>
</b-form-group> </b-form-group>
</div> </b-col>
</b-row>
<div>
<b-button tvariant="danger" @click="onCancel">{{
$t("ID_CANCEL")
}}</b-button>
<b-button variant="outline-primary">{{
$t("ID_PREVIEW")
}}</b-button>
<b-button type="submit" variant="primary">{{
$t("ID_SAVE")
}}</b-button>
</div> </div>
<div class="col-sm"> </b-form>
<v-client-table
:columns="columnsCaseList"
v-model="data"
:options="caseListOptions"
>
</v-client-table>
</div>
</div>
<div>
<b-button variant="danger" @click="onCancel"
>Cancel</b-button
>
<b-button variant="outline-primary">Preview</b-button>
<b-button variant="success">Save</b-button>
</div>
</div> </div>
</div> </div>
</div> </div>
@@ -190,7 +283,7 @@
<script> <script>
import utils from "../../../utils/utils"; import utils from "../../../utils/utils";
import Multiselect from "vue-multiselect"; import Multiselect from "vue-multiselect";
import api from "./../../../api/index"; import Api from "./Api/CaseList";
import IconPicker from "../../../components/iconPicker/IconPicker.vue"; import IconPicker from "../../../components/iconPicker/IconPicker.vue";
export default { export default {
@@ -200,71 +293,209 @@ export default {
IconPicker, IconPicker,
IconPicker, IconPicker,
}, },
props: ["params"], props: ["params", "module"],
data() { data() {
return { return {
icon: "fas fa-user-cog", icon: "fas fa-user-cog",
isLoading: false, isLoading: false,
isButtonDisabled: false, isButtonDisabled: false,
isSelected: false,
isSelectedCaseList: false,
pmTablesOptions: [], pmTablesOptions: [],
columns: ["name", "field", "type", "source", "source"], checkedRows: [],
enabledFilterRows: [],
data: utils.getData(), closedRows: [],
checkedRowsCaseList: [],
columns: ["selected", "name", "field", "type", "source", "action"],
data: [],
options: { options: {
headings: { headings: {
name: "Name", name: this.$i18n.t("ID_NAME"),
field: "Field", field: this.$i18n.t("ID_FIELD"),
type: "Type", type: this.$i18n.t("ID_TYPE"),
source: "Source", source: this.$i18n.t("ID_SOURCE"),
action: "",
}, },
sortable: [],
filterable: true, filterable: true,
},
columnsCaseList: [
"name",
"field",
"type",
"source",
"typeOfSearching",
"enableSearchFilter",
"actions",
],
caseListOptions: {
headings: {
name: "Name",
field: "Field",
type: "Type",
typeOfSearching: "Type of Searching",
enableSearchFilter: "Enable Search Filter",
},
filterable: false,
perPage: 1000, perPage: 1000,
perPageValues: [], perPageValues: [],
texts: { texts: {
count: "", count: "",
}, },
}, },
dataCaseList: [],
columnsCaseList: [
"selected",
"name",
"field",
"type",
"typeSearch",
"enableFilter",
"action",
],
caseListOptions: {
headings: {
name: this.$i18n.t("ID_NAME"),
field: this.$i18n.t("ID_FIELD"),
type: this.$i18n.t("ID_TYPE"),
typeOfSearching: this.$i18n.t("ID_TYPE_OF_SEARCHING"),
enableSearchFilter: this.$i18n.t("ID_ENABLE_SEARCH_FILTER"),
action: "",
},
filterable: false,
perPage: 1000,
perPageValues: [],
sortable: [],
texts: {
count: "",
},
},
defaultCaseList: null,
isValidName: null,
isValidTable: null,
pmTable: null
}; };
}, },
mounted() {}, computed: {
validation() {
return this.params.name !== "";
},
},
mounted() {
this.defaultCaseList = Api.getDefault(this.module.key);
this.dataCaseList = this.defaultCaseList;
if(this.params.id) {
this.editMode();
}
},
methods: { methods: {
unassignSelected() {}, /**
unassignAll() {}, * Edit mode handler
assignSelected() {}, * prepare the datato be rendered
assignAll() {}, */
editMode(){
let that = this;
this.pmTable = {
label: this.params.tableName,
value: this.params.tableUid
}
this.data =this.params.columns.filter(elem => elem.set === false);
this.dataCaseList =this.params.columns.filter(elem => elem.set === true);
this.dataCaseList.forEach(function (value) {
if (value.enableFilter) {
that.enabledFilterRows.push(value.field);
}
});
},
/**
* Select all checkbox handler into available pm tables column list
*/
selectAllAtOnce() {
let length = this.data.length;
this.isSelected = !this.isSelected;
this.checkedRows = [];
for (let i = 0; i < length; i++) {
this.data[i].selected = this.isSelected;
if (this.isSelected) {
this.checkedRows.push(this.data[i].field);
}
}
},
/**
* Select all checkbox handler into case list table
*/
selectAllAtOnceCaseList() {
let length = this.dataCaseList.length;
this.isSelectedCaseList = !this.isSelectedCaseList;
this.checkedRowsCaseList = [];
for (let i = 0; i < length; i++) {
this.dataCaseList[i].selected = this.isSelectedCaseList;
if (this.isSelectedCaseList) {
this.checkedRowsCaseList.push(this.dataCaseList[i].field);
}
}
},
/**
* Unassign the selected columns from custm list
*/
unassignSelected() {
let temp;
let length = this.checkedRowsCaseList.length;
for (let i = 0; i < length; i++) {
temp = this.dataCaseList.find(
(x) => x.field === this.checkedRowsCaseList[i]
);
temp["set"] = false;
this.data.push(temp);
this.dataCaseList = this.dataCaseList.filter((item) => {
return item.field != this.checkedRowsCaseList[i];
});
}
this.checkedRowsCaseList = [];
},
/**
* Unassign all columns from custom list
*/
unassignAll() {
this.data = [...this.data, ...this.dataCaseList];
this.data.forEach(function (element) {
element.set = false;
});
this.dataCaseList = [];
},
/**
* Assign the selected row to custom list
*/
assignSelected() {
let temp;
let length = this.checkedRows.length;
for (let i = 0; i < length; i++) {
temp = this.data.find((x) => x.field === this.checkedRows[i]);
temp["set"] = true;
this.dataCaseList.push(temp);
this.data = this.data.filter((item) => {
return item.field != this.checkedRows[i];
});
}
this.checkedRows = [];
},
/**
* Assign all columns to custom list
*/
assignAll() {
this.dataCaseList = [...this.dataCaseList, ...this.data];
this.dataCaseList.forEach(function (element) {
element.set = true;
});
this.data = [];
},
/**
* On select icon handler
*/
onSelectIcon(data) { onSelectIcon(data) {
console.log(data); this.params.iconList = data;
// this.params.iconList = data;
}, },
/**
* On change color handler
*/
onChangeColor(color) { onChangeColor(color) {
console.log(color); this.params.iconColor = color;
this.menuColor = color;
}, },
/**
* On change color screen handler
*/
onChangeColorScreen(color) {
this.params.iconColorScreen = color;
},
/**
* On Cancel event handler
*/
onCancel() { onCancel() {
this.$emit("closeSketch"); this.$emit("closeSketch");
}, },
onChange(e) {
console.log(e);
},
/** /**
* Find asynchronously in the server * Find asynchronously in the server
* @param {string} query - string from the text field * @param {string} query - string from the text field
@@ -273,28 +504,131 @@ export default {
let self = this; let self = this;
this.isLoading = true; this.isLoading = true;
self.processes = []; self.processes = [];
api.filters self.pmTablesOptions = [];
.processList(query) Api.reportTables({
.then((response) => { search: query,
self.processes = []; })
_.forEach(response.data, function(elem, key) { .then((response) => {
self.pmTablesOptions.push({ self.processes = [];
label: elem.PRO_TITLE, _.forEach(response.data, function(elem, key) {
value: elem.PRO_ID, self.pmTablesOptions.push({
}); label: elem.name,
value: elem.uid,
fields: elem.fields,
}); });
this.isLoading = false; });
this.isLoading = false;
})
.catch((err) => {
console.error(err);
});
},
/**
* On select event handler in multiselect component
* @param {object} option
*/
onSelect(option) {
this.checkedRows = [];
this.data = option.fields;
this.dataCaseList = this.defaultCaseList;
},
/**
* On remove row event handler
* @param {object} row
*/
onRemoveRow(row) {
var temp = this.dataCaseList.find((x) => x.field === row.field);
if (temp) {
temp["set"] = false;
this.data.push(temp);
this.dataCaseList = this.dataCaseList.filter((item) => {
return item.field != row.field;
});
}
},
/**
* On remove row event handler
* @param {object} row
*/
onAddRow(row) {
var temp = this.data.find((x) => x.field === row.field);
if (temp) {
temp["set"] = true;
this.dataCaseList.push(temp);
this.data = this.data.filter((item) => {
return item.field != row.field;
});
}
},
/**
* On submit event handler
*/
onSubmit() {
this.isValidName = true;
this.isValidTable = true;
if (!this.params.name) {
this.isValidName = false;
return;
}
if (!this.pmTable) {
this.isValidTable = false;
return;
}
this.params.tableUid = this.pmTable.value;
this.params.columns = [...this.preparePostColumns(this.dataCaseList), ...this.preparePostColumns(this.data)];
this.params.type = this.module.key;
this.params.userId = window.config.userId;
if (this.params.id) {
delete this.params["tableName"];
Api.updateCaseList(this.params)
.then((response) => {
this.$emit("closeSketch");
}) })
.catch((e) => { .catch((err) => {
console.error(err); console.error(err);
}); });
} else {
Api.createCaseList(this.params)
.then((response) => {
this.$emit("closeSketch");
})
.catch((err) => {
console.error(err);
});
}
}, },
/**
* Prepares columns data to be sended to the server
* @param {array} collection
*/
preparePostColumns(collection){
let temp = [];
collection.forEach(function (value) {
temp.push({
field: value.field,
enableFilter: value.enableFilter || false,
set: value.set || false
})
});
return temp;
},
/**
* Tongle filter switcher
* @param {string} field
*/
onTongleFilter(field){
let objIndex = this.dataCaseList.findIndex((obj => obj.field === field));
this.dataCaseList[objIndex].enableFilter = !this.dataCaseList[objIndex].enableFilter
}
}, },
}; };
</script> </script>
<style src="vue-multiselect/dist/vue-multiselect.min.css"></style> <style src="vue-multiselect/dist/vue-multiselect.min.css"></style>
<style scoped> <style>
.verte { .verte {
position: relative; position: relative;
display: flex; display: flex;
@@ -317,4 +651,11 @@ export default {
width: 70%; width: 70%;
margin: 5px; margin: 5px;
} }
.invalid .multiselect__tags {
border-color: #f04124;
}
.invalid .typo__label {
color: #f04124;
}
</style> </style>

View File

@@ -7,22 +7,13 @@
<h5 >{{ $t("ID_CUSTOM_CASES_LISTS") }}</h5> <h5 >{{ $t("ID_CUSTOM_CASES_LISTS") }}</h5>
<div class="x_content"> <div class="x_content">
<b-container fluid> <b-container fluid>
<b-tabs content-class="mt-3"> <b-tabs content-class="mt-3" @input="onInputTab">
<b-tab :title="$t('TO_DO')" active> <b-tab v-for="i in tabs" :key="'dyn-tab-' + i.key" :title="i.title" lazy>
<Tables module="inbox" <Tables :module="i.key"
@showSketch="onShowSketch" @showSketch="onShowSketch"
@closeSketch="onCloseSketch" @closeSketch="onCloseSketch"
/> />
</b-tab> </b-tab>
<b-tab :title="$t('ID_DRAFT')" lazy>
<Tables module="draft"/>
</b-tab>
<b-tab :title="$t('ID_UNASSIGNED')" lazy>
<Tables module="unassigned"/>
</b-tab>
<b-tab :title="$t('ID_PAUSED')" lazy>
<Tables module="paused"/>
</b-tab>
</b-tabs> </b-tabs>
</b-container> </b-container>
@@ -30,8 +21,9 @@
</div> </div>
<div class="container" v-if="showSketch"> <div class="container" v-if="showSketch">
<CaseListSketch <CaseListSketch
@showSketch="onShowSketch" @showSketch="onShowSketch"
@closeSketch="onCloseSketch" @closeSketch="onCloseSketch"
:module="tabModule"
:params="params" :params="params"
/> />
</div> </div>
@@ -50,11 +42,30 @@ export default {
data() { data() {
return { return {
showSketch: false, showSketch: false,
params: {} params: {},
tabModule: null,
tabs: [
{
key: "inbox",
title: this.$i18n.t("TO_DO")
},
{
key: "draft",
title: this.$i18n.t("ID_DRAFT")
},
{
key: "unassigned",
title: this.$i18n.t("ID_UNASSIGNED")
},
{
key: "paused",
title: this.$i18n.t("ID_PAUSED")
}
]
}; };
}, },
mounted() { mounted() {
this.tabModule= this.tabs[0];
}, },
methods: { methods: {
onShowSketch (params) { onShowSketch (params) {
@@ -63,6 +74,9 @@ export default {
}, },
onCloseSketch (params) { onCloseSketch (params) {
this.showSketch = false; this.showSketch = false;
},
onInputTab(tabIndex){
this.tabModule= this.tabs[tabIndex];
} }
} }
}; };

View File

@@ -1,6 +1,7 @@
<template> <template>
<div id="people"> <div id="people">
<ModalDeleteCaseList ref="modal-delete-list"></ModalDeleteCaseList> <ModalDeleteCaseList ref="modal-delete-list"></ModalDeleteCaseList>
<ModalPreview ref="modal-preview"></ModalPreview>
<button-fleft :data="newList"></button-fleft> <button-fleft :data="newList"></button-fleft>
<button-fleft :data="importList"></button-fleft> <button-fleft :data="importList"></button-fleft>
<v-server-table <v-server-table
@@ -16,11 +17,9 @@
</div> </div>
<div slot="owner" slot-scope="props"> <div slot="owner" slot-scope="props">
<OwnerCell :data="props.row.owner" /> <OwnerCell :data="props.row.owner" />
</div> </div>
</v-server-table> </v-server-table>
</div> </div>
</template> </template>
<script> <script>
import Api from "./Api/CaseList"; import Api from "./Api/CaseList";
@@ -28,7 +27,10 @@ import ButtonFleft from "../../../components/home/ButtonFleft.vue";
import Ellipsis from "../../../components/utils/ellipsis.vue"; import Ellipsis from "../../../components/utils/ellipsis.vue";
import utils from "../../../utils/utils"; import utils from "../../../utils/utils";
import OwnerCell from "../../../components/vuetable/OwnerCell"; import OwnerCell from "../../../components/vuetable/OwnerCell";
import ModalDeleteCaseList from "./../../Modals/ModalDeleteCaseList.vue" import ModalDeleteCaseList from "./../../Modals/ModalDeleteCaseList.vue";
import ModalPreview from "./../../Modals/ModalPreview.vue";
import download from "downloadjs";
export default { export default {
name: "Tables", name: "Tables",
props: ["module"], props: ["module"],
@@ -36,7 +38,8 @@ export default {
ButtonFleft, ButtonFleft,
Ellipsis, Ellipsis,
OwnerCell, OwnerCell,
ModalDeleteCaseList ModalDeleteCaseList,
ModalPreview,
}, },
data() { data() {
return { return {
@@ -49,12 +52,12 @@ export default {
class: "btn-success", class: "btn-success",
onClick: () => { onClick: () => {
this.$emit("showSketch", { this.$emit("showSketch", {
name: "Rocko", name: "",
description: "algo te texto", description: "",
tableUid: "1234", tableUid: "",
iconList: 'far fa-calendar-alt', iconList: "far fa-check-circle",
iconColor: '#4287f5', iconColor: '#000000',
iconColorScreen:'#4287f5', iconColorScreen: '#FFFFFF',
type: this.module type: this.module
}); });
@@ -103,7 +106,8 @@ export default {
return this.$parent.$parent.getCasesForVueTable(data); return this.$parent.$parent.getCasesForVueTable(data);
}, },
} },
customColumns: [],
}; };
}, },
methods: { methods: {
@@ -182,59 +186,102 @@ export default {
this.$refs["modal-delete-list"].data = data; this.$refs["modal-delete-list"].data = data;
this.$refs["modal-delete-list"].show(); this.$refs["modal-delete-list"].show();
}, },
/**
* Show modal preview
* @param {object} data
*/
showPreview(data) { showPreview(data) {
this.$refs["modal-preview"].columns = this.getColumns(data);
}, this.$refs["modal-preview"].type = data.type;
editCustomCaseList(data) { this.$refs["modal-preview"].show();
},
downloadCaseList(data) {
}, },
/** /**
* Show options in the ellipsis * Get columns to show in the preview
* @param {objec} data * @param {Object} data
*/ * @returns {Array} columns
updateDataEllipsis(data) { */
let that = this; getColumns(data) {
this.showEllipsis = !this.showEllipsis; var columns = [],
if (this.showEllipsis) { auxColumn,
this.dataEllipsis = { i;
buttons: { for (i = 0; i < data.columns.length; i += 1) {
open: { auxColumn = data.columns[i];
name: "delete", if (auxColumn.set) {
icon: "far fa-trash-alt", columns.push(auxColumn.field);
color: "red",
fn: function() {
that.showModalDelete(data);
} }
},
note: {
name: "edit",
icon: "far fa-edit",
fn: function() {
that.editCustomCaseList(data);
}
},
reassign: {
name: "download",
icon: "fas fa-arrow-circle-down",
fn: function() {
that.downloadCaseList(data);
}
},
pause: {
name: "preview",
icon: "fas fa-tv",
color: "green",
fn: function() {
that.showPreview(data);
}
}
} }
} columns.push('actions');
} columns.unshift('detail');
}, return columns
},
editCustomCaseList(data) {
this.$emit("showSketch", {
id: data.id,
name: data.name,
description: data.description,
tableUid: data.tableUid,
tableName: data.tableName,
iconList: data.iconList,
iconColor: data.iconColor,
iconColorScreen: data.iconColorScreen,
columns: data.columns,
enableFilter: data.enableFilter,
type: this.module
});
},
/**
* Export the Custom Case List in a json
* @param {object} data
*/
downloadCaseList(data) {
var fileName = data.name,
typeMime = "text/plain";
download(JSON.stringify(data), fileName + ".json", typeMime);
},
/**
* Show options in the ellipsis
* @param {objec} data
*/
updateDataEllipsis(data) {
let that = this;
this.showEllipsis = !this.showEllipsis;
if (this.showEllipsis) {
this.dataEllipsis = {
buttons: {
open: {
name: "delete",
icon: "far fa-trash-alt",
color: "red",
fn: function() {
that.showModalDelete(data);
}
},
note: {
name: "edit",
icon: "far fa-edit",
fn: function() {
that.editCustomCaseList(data);
}
},
reassign: {
name: "download",
icon: "fas fa-arrow-circle-down",
fn: function() {
that.downloadCaseList(data);
}
},
pause: {
name: "preview",
icon: "fas fa-tv",
color: "green",
fn: function() {
that.showPreview(data);
}
}
}
}
}
},
} }
}; };
</script> </script>

View File

@@ -89,359 +89,5 @@ export default {
} }
return obj; return obj;
},
getData() {
return [{
code: "ZW",
name: "Zimbabwe",
created_at: "2015-04-24T01:46:50.459583",
updated_at: "2015-04-24T01:46:50.459593",
uri: "http://api.lobbyfacts.eu/api/1/country/245",
id: 245
}, {
code: "ZM",
name: "Zambia",
created_at: "2015-04-24T01:46:50.457459",
updated_at: "2015-04-24T01:46:50.457468",
uri: "http://api.lobbyfacts.eu/api/1/country/244",
id: 244
}, {
code: "YE",
name: "Yemen",
created_at: "2015-04-24T01:46:50.454731",
updated_at: "2015-04-24T01:46:50.454741",
uri: "http://api.lobbyfacts.eu/api/1/country/243",
id: 243
}, {
code: "EH",
name: "Western Sahara",
created_at: "2015-04-24T01:46:50.452002",
updated_at: "2015-04-24T01:46:50.452011",
uri: "http://api.lobbyfacts.eu/api/1/country/242",
id: 242
}, {
code: "WF",
name: "Wallis & Futuna",
created_at: "2015-04-24T01:46:50.449346",
updated_at: "2015-04-24T01:46:50.449355",
uri: "http://api.lobbyfacts.eu/api/1/country/241",
id: 241
}, {
code: "VN",
name: "Vietnam",
created_at: "2015-04-24T01:46:50.446644",
updated_at: "2015-04-24T01:46:50.446652",
uri: "http://api.lobbyfacts.eu/api/1/country/240",
id: 240
}, {
code: "VE",
name: "Venezuela",
created_at: "2015-04-24T01:46:50.444031",
updated_at: "2015-04-24T01:46:50.444040",
uri: "http://api.lobbyfacts.eu/api/1/country/239",
id: 239
}, {
code: "VU",
name: "Vanuatu",
created_at: "2015-04-24T01:46:50.441423",
updated_at: "2015-04-24T01:46:50.441433",
uri: "http://api.lobbyfacts.eu/api/1/country/238",
id: 238
}, {
code: "UZ",
name: "Uzbekistan",
created_at: "2015-04-24T01:46:50.438748",
updated_at: "2015-04-24T01:46:50.438757",
uri: "http://api.lobbyfacts.eu/api/1/country/237",
id: 237
}, {
code: "UY",
name: "Uruguay",
created_at: "2015-04-24T01:46:50.435761",
updated_at: "2015-04-24T01:46:50.435770",
uri: "http://api.lobbyfacts.eu/api/1/country/236",
id: 236
}, {
code: "VI",
name: "United States Virgin Islands",
created_at: "2015-04-24T01:46:50.433229",
updated_at: "2015-04-24T01:46:50.433238",
uri: "http://api.lobbyfacts.eu/api/1/country/235",
id: 235
}, {
code: "US",
name: "United States",
created_at: "2015-04-24T01:46:50.430335",
updated_at: "2015-04-24T01:46:50.430340",
uri: "http://api.lobbyfacts.eu/api/1/country/234",
id: 234
}, {
code: "GB",
name: "United Kingdom",
created_at: "2015-04-24T01:46:50.427956",
updated_at: "2015-04-24T01:46:50.427961",
uri: "http://api.lobbyfacts.eu/api/1/country/233",
id: 233
}, {
code: "AE",
name: "United Arab Emirates",
created_at: "2015-04-24T01:46:50.425383",
updated_at: "2015-04-24T01:46:50.425392",
uri: "http://api.lobbyfacts.eu/api/1/country/232",
id: 232
}, {
code: "UA",
name: "Ukraine",
created_at: "2015-04-24T01:46:50.422970",
updated_at: "2015-04-24T01:46:50.422980",
uri: "http://api.lobbyfacts.eu/api/1/country/231",
id: 231
}, {
code: "UG",
name: "Uganda",
created_at: "2015-04-24T01:46:50.419963",
updated_at: "2015-04-24T01:46:50.419968",
uri: "http://api.lobbyfacts.eu/api/1/country/230",
id: 230
}, {
code: "TV",
name: "Tuvalu",
created_at: "2015-04-24T01:46:50.417896",
updated_at: "2015-04-24T01:46:50.417906",
uri: "http://api.lobbyfacts.eu/api/1/country/229",
id: 229
}, {
code: "TC",
name: "Turks & Caicos Islands",
created_at: "2015-04-24T01:46:50.414854",
updated_at: "2015-04-24T01:46:50.414868",
uri: "http://api.lobbyfacts.eu/api/1/country/228",
id: 228
}, {
code: "TM",
name: "Turkmenistan",
created_at: "2015-04-24T01:46:50.412601",
updated_at: "2015-04-24T01:46:50.412605",
uri: "http://api.lobbyfacts.eu/api/1/country/227",
id: 227
}, {
code: "TR",
name: "Turkey",
created_at: "2015-04-24T01:46:50.411105",
updated_at: "2015-04-24T01:46:50.411110",
uri: "http://api.lobbyfacts.eu/api/1/country/226",
id: 226
}, {
code: "TN",
name: "Tunisia",
created_at: "2015-04-24T01:46:50.409535",
updated_at: "2015-04-24T01:46:50.409539",
uri: "http://api.lobbyfacts.eu/api/1/country/225",
id: 225
}, {
code: "TT",
name: "Trinidad & Tobago",
created_at: "2015-04-24T01:46:50.408030",
updated_at: "2015-04-24T01:46:50.408034",
uri: "http://api.lobbyfacts.eu/api/1/country/224",
id: 224
}, {
code: "TO",
name: "Tonga",
created_at: "2015-04-24T01:46:50.406306",
updated_at: "2015-04-24T01:46:50.406311",
uri: "http://api.lobbyfacts.eu/api/1/country/223",
id: 223
}, {
code: "TK",
name: "Tokelau",
created_at: "2015-04-24T01:46:50.404794",
updated_at: "2015-04-24T01:46:50.404799",
uri: "http://api.lobbyfacts.eu/api/1/country/222",
id: 222
}, {
code: "TG",
name: "Togo",
created_at: "2015-04-24T01:46:50.403306",
updated_at: "2015-04-24T01:46:50.403310",
uri: "http://api.lobbyfacts.eu/api/1/country/221",
id: 221
}, {
code: "TH",
name: "Thailand",
created_at: "2015-04-24T01:46:50.400840",
updated_at: "2015-04-24T01:46:50.400849",
uri: "http://api.lobbyfacts.eu/api/1/country/220",
id: 220
}, {
code: "TZ",
name: "Tanzania",
created_at: "2015-04-24T01:46:50.397846",
updated_at: "2015-04-24T01:46:50.397855",
uri: "http://api.lobbyfacts.eu/api/1/country/219",
id: 219
}, {
code: "TJ",
name: "Tajikistan",
created_at: "2015-04-24T01:46:50.394924",
updated_at: "2015-04-24T01:46:50.394933",
uri: "http://api.lobbyfacts.eu/api/1/country/218",
id: 218
}, {
code: "TW",
name: "Taiwan",
created_at: "2015-04-24T01:46:50.391969",
updated_at: "2015-04-24T01:46:50.391978",
uri: "http://api.lobbyfacts.eu/api/1/country/217",
id: 217
}, {
code: "SY",
name: "Syria",
created_at: "2015-04-24T01:46:50.389120",
updated_at: "2015-04-24T01:46:50.389124",
uri: "http://api.lobbyfacts.eu/api/1/country/216",
id: 216
}, {
code: "CH",
name: "Switzerland",
created_at: "2015-04-24T01:46:50.386939",
updated_at: "2015-04-24T01:46:50.386943",
uri: "http://api.lobbyfacts.eu/api/1/country/215",
id: 215
}, {
code: "SE",
name: "Sweden",
created_at: "2015-04-24T01:46:50.385345",
updated_at: "2015-04-24T01:46:50.385349",
uri: "http://api.lobbyfacts.eu/api/1/country/214",
id: 214
}, {
code: "SZ",
name: "Swaziland",
created_at: "2015-04-24T01:46:50.383834",
updated_at: "2015-04-24T01:46:50.383838",
uri: "http://api.lobbyfacts.eu/api/1/country/213",
id: 213
}, {
code: "SR",
name: "Suriname",
created_at: "2015-04-24T01:46:50.382073",
updated_at: "2015-04-24T01:46:50.382078",
uri: "http://api.lobbyfacts.eu/api/1/country/212",
id: 212
}, {
code: "SD",
name: "Sudan",
created_at: "2015-04-24T01:46:50.380114",
updated_at: "2015-04-24T01:46:50.380119",
uri: "http://api.lobbyfacts.eu/api/1/country/211",
id: 211
}, {
code: "LK",
name: "Sri Lanka",
created_at: "2015-04-24T01:46:50.378189",
updated_at: "2015-04-24T01:46:50.378195",
uri: "http://api.lobbyfacts.eu/api/1/country/210",
id: 210
}, {
code: "ES",
name: "Spain",
created_at: "2015-04-24T01:46:50.376105",
updated_at: "2015-04-24T01:46:50.376109",
uri: "http://api.lobbyfacts.eu/api/1/country/209",
id: 209
}, {
code: "SS",
name: "South Sudan",
created_at: "2015-04-24T01:46:50.373942",
updated_at: "2015-04-24T01:46:50.373946",
uri: "http://api.lobbyfacts.eu/api/1/country/208",
id: 208
}, {
code: "KR",
name: "South Korea",
created_at: "2015-04-24T01:46:50.371790",
updated_at: "2015-04-24T01:46:50.371794",
uri: "http://api.lobbyfacts.eu/api/1/country/207",
id: 207
}, {
code: "GS",
name: "South Georgia & The South Sandwish Islands",
created_at: "2015-04-24T01:46:50.369460",
updated_at: "2015-04-24T01:46:50.369465",
uri: "http://api.lobbyfacts.eu/api/1/country/206",
id: 206
}, {
code: "ZA",
name: "South Africa",
created_at: "2015-04-24T01:46:50.367247",
updated_at: "2015-04-24T01:46:50.367252",
uri: "http://api.lobbyfacts.eu/api/1/country/205",
id: 205
}, {
code: "SO",
name: "Somaliland",
created_at: "2015-04-24T01:46:50.362905",
updated_at: "2016-09-18T18:34:35.724427",
uri: "http://api.lobbyfacts.eu/api/1/country/204",
id: 204
}, {
code: "SB",
name: "Solomon Islands",
created_at: "2015-04-24T01:46:50.360631",
updated_at: "2015-04-24T01:46:50.360635",
uri: "http://api.lobbyfacts.eu/api/1/country/203",
id: 203
}, {
code: "SI",
name: "Slovenia",
created_at: "2015-04-24T01:46:50.358394",
updated_at: "2015-04-24T01:46:50.358399",
uri: "http://api.lobbyfacts.eu/api/1/country/202",
id: 202
}, {
code: "SK",
name: "Slovakia",
created_at: "2015-04-24T01:46:50.356154",
updated_at: "2015-04-24T01:46:50.356158",
uri: "http://api.lobbyfacts.eu/api/1/country/201",
id: 201
}, {
code: "SX",
name: "Sint Maarten",
created_at: "2015-04-24T01:46:50.353807",
updated_at: "2015-04-24T01:46:50.353811",
uri: "http://api.lobbyfacts.eu/api/1/country/200",
id: 200
}, {
code: "SG",
name: "Singapore",
created_at: "2015-04-24T01:46:50.349354",
updated_at: "2015-04-24T01:46:50.349358",
uri: "http://api.lobbyfacts.eu/api/1/country/199",
id: 199
}, {
code: "SL",
name: "Sierra Leone",
created_at: "2015-04-24T01:46:50.347186",
updated_at: "2015-04-24T01:46:50.347190",
uri: "http://api.lobbyfacts.eu/api/1/country/198",
id: 198
}, {
code: "SC",
name: "Seychelles",
created_at: "2015-04-24T01:46:50.344980",
updated_at: "2015-04-24T01:46:50.344984",
uri: "http://api.lobbyfacts.eu/api/1/country/197",
id: 197
}, {
code: "RS",
name: "Serbia",
created_at: "2015-04-24T01:46:50.342496",
updated_at: "2015-04-24T01:46:50.342501",
uri: "http://api.lobbyfacts.eu/api/1/country/196",
id: 196
}];
} }
} }

View File

@@ -3325,6 +3325,8 @@ class WorkspaceTools
*/ */
public function checkRbacPermissions() public function checkRbacPermissions()
{ {
CLI::logging("-> Remove the permissions depreacated in RBAC \n");
$this->removePermission();
CLI::logging("-> Verifying roles permissions in RBAC \n"); CLI::logging("-> Verifying roles permissions in RBAC \n");
//Update table RBAC permissions //Update table RBAC permissions
$RBAC = RBAC::getSingleton(); $RBAC = RBAC::getSingleton();
@@ -4079,6 +4081,26 @@ class WorkspaceTools
CLI::logging(" Migrating Self-Service by Value Cases Done \n"); CLI::logging(" Migrating Self-Service by Value Cases Done \n");
} }
/**
* Remove the permissions deprecated
*/
public function removePermission()
{
// Initializing
$this->initPropel(true);
$con = Propel::getConnection(RbacUsersPeer::DATABASE_NAME);
// Remove the permission PM_SETUP_HEART_BEAT
CLI::logging("-> Remove permission PM_SETUP_HEART_BEAT \n");
$con->begin();
$stmt = $con->createStatement();
$rs = $stmt->executeQuery("DELETE FROM RBAC_ROLES_PERMISSIONS WHERE PER_UID = '00000000000000000000000000000025'");
$con->commit();
$con->begin();
$stmt = $con->createStatement();
$rs = $stmt->executeQuery("DELETE FROM RBAC_PERMISSIONS WHERE PER_UID = '00000000000000000000000000000025'");
$con->commit();
}
/** /**
* Populate new fields used for avoiding the use of the "APP_CACHE_VIEW" table * Populate new fields used for avoiding the use of the "APP_CACHE_VIEW" table
*/ */

View File

@@ -7769,6 +7769,12 @@ msgstr "Enable Google Drive."
msgid "Enable PM Gmail" msgid "Enable PM Gmail"
msgstr "Enable PM Gmail" msgstr "Enable PM Gmail"
# TRANSLATION
# LABEL/ID_ENABLE_SEARCH_FILTER
#: LABEL/ID_ENABLE_SEARCH_FILTER
msgid "Enable Search Filter"
msgstr "Enable Search Filter"
# TRANSLATION # TRANSLATION
# LABEL/ID_ENABLE_USER # LABEL/ID_ENABLE_USER
#: LABEL/ID_ENABLE_USER #: LABEL/ID_ENABLE_USER
@@ -8537,6 +8543,12 @@ msgstr "Failure"
msgid "FALSE" msgid "FALSE"
msgstr "FALSE" msgstr "FALSE"
# TRANSLATION
# LABEL/ID_FIELD
#: LABEL/ID_FIELD
msgid "Field"
msgstr "Field"
# TRANSLATION # TRANSLATION
# LABEL/ID_FIELDS # LABEL/ID_FIELDS
#: LABEL/ID_FIELDS #: LABEL/ID_FIELDS
@@ -9083,6 +9095,12 @@ msgstr "Fri"
msgid "From" msgid "From"
msgstr "From" msgstr "From"
# TRANSLATION
# LABEL/ID_SENDER
#: LABEL/ID_SENDER
msgid "Sender"
msgstr "Sender"
# TRANSLATION # TRANSLATION
# LABEL/ID_FROM_EMAIL # LABEL/ID_FROM_EMAIL
#: LABEL/ID_FROM_EMAIL #: LABEL/ID_FROM_EMAIL
@@ -9899,6 +9917,12 @@ msgstr "Hour(s)"
msgid "HTML" msgid "HTML"
msgstr "HTML" msgstr "HTML"
# TRANSLATION
# LABEL/ID_ICON
#: LABEL/ID_ICON
msgid "Icon"
msgstr "Icon"
# TRANSLATION # TRANSLATION
# LABEL/ID_IDENTIFIER_IMPORT_USER # LABEL/ID_IDENTIFIER_IMPORT_USER
#: LABEL/ID_IDENTIFIER_IMPORT_USER #: LABEL/ID_IDENTIFIER_IMPORT_USER
@@ -19109,6 +19133,12 @@ msgstr "Memory Limit (MB)"
msgid "Memory Limit value has to be either a positive integer or -1" msgid "Memory Limit value has to be either a positive integer or -1"
msgstr "Memory Limit value has to be either a positive integer or -1" msgstr "Memory Limit value has to be either a positive integer or -1"
# TRANSLATION
# LABEL/ID_MENU_COLOR
#: LABEL/ID_MENU_COLOR
msgid "Menu Color"
msgstr "Menu Color"
# TRANSLATION # TRANSLATION
# LABEL/ID_MENU_NAME # LABEL/ID_MENU_NAME
#: LABEL/ID_MENU_NAME #: LABEL/ID_MENU_NAME
@@ -24215,6 +24245,12 @@ msgstr "Scheduled Task ID"
msgid "Schema" msgid "Schema"
msgstr "Schema" msgstr "Schema"
# TRANSLATION
# LABEL/ID_SCREEN_COLOR_ICON
#: LABEL/ID_SCREEN_COLOR_ICON
msgid "Screen Color Icon"
msgstr "Screen Color Icon"
# TRANSLATION # TRANSLATION
# LABEL/ID_SCRIPT_TASK # LABEL/ID_SCRIPT_TASK
#: LABEL/ID_SCRIPT_TASK #: LABEL/ID_SCRIPT_TASK
@@ -24851,6 +24887,12 @@ msgstr "Test SMTP Connection"
msgid "Setup" msgid "Setup"
msgstr "Setup" msgstr "Setup"
# TRANSLATION
# LABEL/ID_SET_A_CASE_LIST_NAME
#: LABEL/ID_SET_A_CASE_LIST_NAME
msgid "Set a Case List Name"
msgstr "Set a Case List Name"
# TRANSLATION # TRANSLATION
# LABEL/ID_SET_A_TABLE_NAME # LABEL/ID_SET_A_TABLE_NAME
#: LABEL/ID_SET_A_TABLE_NAME #: LABEL/ID_SET_A_TABLE_NAME
@@ -25304,6 +25346,12 @@ msgstr "Some actor(s) is/are already assigned to task <b>{0}</b>"
# TRANSLATION # TRANSLATION
# LABEL/ID_SOME_FIELDS_REQUIRED # LABEL/ID_SOME_FIELDS_REQUIRED
#: LABEL/ID_SOME_FIELDS_REQUIRED #: LABEL/ID_SOME_FIELDS_REQUIRED
msgid "Some Text"
msgstr "Some Text"
# TRANSLATION
# LABEL/ID_SOME_TEXT
#: LABEL/ID_SOME_TEXT
msgid "Some Fields are required." msgid "Some Fields are required."
msgstr "Some Fields are required." msgstr "Some Fields are required."
@@ -25313,6 +25361,12 @@ msgstr "Some Fields are required."
msgid "Sort by" msgid "Sort by"
msgstr "Sort by" msgstr "Sort by"
# TRANSLATION
# LABEL/ID_SOURCE
#: LABEL/ID_SOURCE
msgid "Source"
msgstr "Source"
# TRANSLATION # TRANSLATION
# LABEL/ID_SOUTHPANEL # LABEL/ID_SOUTHPANEL
#: LABEL/ID_SOUTHPANEL #: LABEL/ID_SOUTHPANEL
@@ -26891,6 +26945,12 @@ msgstr "Tue"
msgid "Type" msgid "Type"
msgstr "Type" msgstr "Type"
# TRANSLATION
# LABEL/ID_TYPE_OF_SEARCHING
#: LABEL/ID_TYPE_OF_SEARCHING
msgid "Type of Searching"
msgstr "Type of Searching"
# TRANSLATION # TRANSLATION
# LABEL/ID_TYPE_PASSWORD # LABEL/ID_TYPE_PASSWORD
#: LABEL/ID_TYPE_PASSWORD #: LABEL/ID_TYPE_PASSWORD
@@ -43797,42 +43857,6 @@ msgstr ""
msgid "[setup/plugin_ListOptions.xml?MNU_IMPORT] Import" msgid "[setup/plugin_ListOptions.xml?MNU_IMPORT] Import"
msgstr "Import" msgstr "Import"
# setup/processHeartBeatConfig.xml?HB_TITLE
# setup/processHeartBeatConfig.xml
#: title - HB_TITLE
msgid "Processmaker Heartbeat"
msgstr "Processmaker Heartbeat"
# setup/processHeartBeatConfig.xml?HB_OPTION
# setup/processHeartBeatConfig.xml
#: dropdown - HB_OPTION
msgid "Enable Heartbeat"
msgstr "Enable Heartbeat"
# setup/processHeartBeatConfig.xml?HB_OPTION-0
# setup/processHeartBeatConfig.xml
#: dropdown - HB_OPTION - 0
msgid "[setup/processHeartBeatConfig.xml?HB_OPTION-0]"
msgstr "No"
# setup/processHeartBeatConfig.xml?HB_OPTION-1
# setup/processHeartBeatConfig.xml
#: dropdown - HB_OPTION - 1
msgid "[setup/processHeartBeatConfig.xml?HB_OPTION-1]"
msgstr "Yes"
# setup/processHeartBeatConfig.xml?HB_SAVE
# setup/processHeartBeatConfig.xml
#: button - HB_SAVE
msgid "[setup/processHeartBeatConfig.xml?HB_SAVE] save"
msgstr "save"
# setup/processHeartBeatConfig.xml?HB_LINKINFO
# setup/processHeartBeatConfig.xml
#: link - HB_LINKINFO
msgid "[setup/processHeartBeatConfig.xml?HB_LINKINFO] Read Online Documentation"
msgstr "Read Online Documentation"
# setup/showMessage.xml?TITLE # setup/showMessage.xml?TITLE
# setup/showMessage.xml # setup/showMessage.xml
#: title - TITLE #: title - TITLE

View File

@@ -30,7 +30,6 @@ INSERT INTO CONTENT (CON_CATEGORY,CON_PARENT,CON_ID,CON_LANG,CON_VALUE) VALUES
('PER_NAME','','00000000000000000000000000000022','en','Setup Calendar'), ('PER_NAME','','00000000000000000000000000000022','en','Setup Calendar'),
('PER_NAME','','00000000000000000000000000000023','en','Setup Process Categories'), ('PER_NAME','','00000000000000000000000000000023','en','Setup Process Categories'),
('PER_NAME','','00000000000000000000000000000024','en','Setup Clear Cache'), ('PER_NAME','','00000000000000000000000000000024','en','Setup Clear Cache'),
('PER_NAME','','00000000000000000000000000000025','en','Setup Heart Beat'),
('PER_NAME','','00000000000000000000000000000026','en','Setup Environment'), ('PER_NAME','','00000000000000000000000000000026','en','Setup Environment'),
('PER_NAME','','00000000000000000000000000000027','en','Setup PM Tables'), ('PER_NAME','','00000000000000000000000000000027','en','Setup PM Tables'),
('PER_NAME','','00000000000000000000000000000028','en','Setup Login'), ('PER_NAME','','00000000000000000000000000000028','en','Setup Login'),
@@ -58127,6 +58126,7 @@ INSERT INTO TRANSLATION (TRN_CATEGORY,TRN_ID,TRN_LANG,TRN_VALUE,TRN_UPDATE_DATE
( 'LABEL','ID_ENABLE_PLUGIN_TIP','en','Enable the selected add-on','2014-10-21') , ( 'LABEL','ID_ENABLE_PLUGIN_TIP','en','Enable the selected add-on','2014-10-21') ,
( 'LABEL','ID_ENABLE_PMDRIVE','en','Enable Google Drive.','2016-01-05') , ( 'LABEL','ID_ENABLE_PMDRIVE','en','Enable Google Drive.','2016-01-05') ,
( 'LABEL','ID_ENABLE_PMGMAIL','en','Enable PM Gmail','2015-07-27') , ( 'LABEL','ID_ENABLE_PMGMAIL','en','Enable PM Gmail','2015-07-27') ,
( 'LABEL','ID_ENABLE_SEARCH_FILTER','en','Enable Search Filter','2021-08-13') ,
( 'LABEL','ID_ENABLE_USER','en','Enable User','2014-10-10') , ( 'LABEL','ID_ENABLE_USER','en','Enable User','2014-10-10') ,
( 'LABEL','ID_ENABLE_VERSIONING','en','Enable Versioning','2014-01-15') , ( 'LABEL','ID_ENABLE_VERSIONING','en','Enable Versioning','2014-01-15') ,
( 'LABEL','ID_ENABLE_VIRTUAL_KEYBOARD','en','Enable Virtual Keyboard (Only uxmodern skin)','2014-01-15') , ( 'LABEL','ID_ENABLE_VIRTUAL_KEYBOARD','en','Enable Virtual Keyboard (Only uxmodern skin)','2014-01-15') ,
@@ -58265,6 +58265,7 @@ INSERT INTO TRANSLATION (TRN_CATEGORY,TRN_ID,TRN_LANG,TRN_VALUE,TRN_UPDATE_DATE
( 'LABEL','ID_FAILED_VALIDATION_IN_CLASS1','en','Failed Validation in class {CLASS}.','2014-01-15') , ( 'LABEL','ID_FAILED_VALIDATION_IN_CLASS1','en','Failed Validation in class {CLASS}.','2014-01-15') ,
( 'LABEL','ID_FAILURE','en','Failure','2014-01-15') , ( 'LABEL','ID_FAILURE','en','Failure','2014-01-15') ,
( 'LABEL','ID_FALSE','en','FALSE','2014-01-15') , ( 'LABEL','ID_FALSE','en','FALSE','2014-01-15') ,
( 'LABEL','ID_FIELD','en','Field','2021-08-10') ,
( 'LABEL','ID_FIELDS','en','Fields','2014-01-15') , ( 'LABEL','ID_FIELDS','en','Fields','2014-01-15') ,
( 'LABEL','ID_FIELDS_CHANGED_NUMBER','en','Fields changed','2014-01-15') , ( 'LABEL','ID_FIELDS_CHANGED_NUMBER','en','Fields changed','2014-01-15') ,
( 'LABEL','ID_FIELDS_LIST','en','Fields handler','2014-01-15') , ( 'LABEL','ID_FIELDS_LIST','en','Fields handler','2014-01-15') ,
@@ -58358,6 +58359,7 @@ INSERT INTO TRANSLATION (TRN_CATEGORY,TRN_ID,TRN_LANG,TRN_VALUE,TRN_UPDATE_DATE
( 'LABEL','ID_FORMS_METADATA_CACHE','en','Forms metadata cache','2014-01-15') , ( 'LABEL','ID_FORMS_METADATA_CACHE','en','Forms metadata cache','2014-01-15') ,
( 'LABEL','ID_FRI','en','Fri','2014-01-15') , ( 'LABEL','ID_FRI','en','Fri','2014-01-15') ,
( 'LABEL','ID_FROM','en','From','2014-01-15') , ( 'LABEL','ID_FROM','en','From','2014-01-15') ,
( 'LABEL','ID_SENDER','en','Sender','2021-08-13') ,
( 'LABEL','ID_FROM_EMAIL','en','Sender Email','2017-02-21') , ( 'LABEL','ID_FROM_EMAIL','en','Sender Email','2017-02-21') ,
( 'LABEL','ID_FROM_FINISH_DATE','en','From Finish Date','2020-12-16') , ( 'LABEL','ID_FROM_FINISH_DATE','en','From Finish Date','2020-12-16') ,
( 'LABEL','ID_FROM_NAME','en','Sender Name','2017-02-21') , ( 'LABEL','ID_FROM_NAME','en','Sender Name','2017-02-21') ,
@@ -58500,6 +58502,7 @@ INSERT INTO TRANSLATION (TRN_CATEGORY,TRN_ID,TRN_LANG,TRN_VALUE,TRN_UPDATE_DATE
( 'LABEL','ID_HOUR_ABBREVIATE','en','Hr(s)','2020-10-02') , ( 'LABEL','ID_HOUR_ABBREVIATE','en','Hr(s)','2020-10-02') ,
( 'LABEL','ID_HOUR_HOURS','en','Hour(s)','2014-10-30') , ( 'LABEL','ID_HOUR_HOURS','en','Hour(s)','2014-10-30') ,
( 'LABEL','ID_HTML','en','HTML','2014-01-15') , ( 'LABEL','ID_HTML','en','HTML','2014-01-15') ,
( 'LABEL','ID_ICON','en','Icon','2021-08-10') ,
( 'LABEL','ID_IDENTIFIER_IMPORT_USER','en','Identifier for an imported user','2014-01-15') , ( 'LABEL','ID_IDENTIFIER_IMPORT_USER','en','Identifier for an imported user','2014-01-15') ,
( 'LABEL','ID_IMAGE','en','Image','2014-01-15') , ( 'LABEL','ID_IMAGE','en','Image','2014-01-15') ,
( 'LABEL','ID_IMAGES_SELECTED','en','images selected','2014-01-15') , ( 'LABEL','ID_IMAGES_SELECTED','en','images selected','2014-01-15') ,
@@ -60070,6 +60073,7 @@ INSERT INTO TRANSLATION (TRN_CATEGORY,TRN_ID,TRN_LANG,TRN_VALUE,TRN_UPDATE_DATE
( 'LABEL','ID_MEMBER_OF','en','MEMBER OF','2014-01-15') , ( 'LABEL','ID_MEMBER_OF','en','MEMBER OF','2014-01-15') ,
( 'LABEL','ID_MEMORY_LIMIT','en','Memory Limit (MB)','2014-01-15') , ( 'LABEL','ID_MEMORY_LIMIT','en','Memory Limit (MB)','2014-01-15') ,
( 'LABEL','ID_MEMORY_LIMIT_VALIDATE','en','Memory Limit value has to be either a positive integer or -1','2017-04-05') , ( 'LABEL','ID_MEMORY_LIMIT_VALIDATE','en','Memory Limit value has to be either a positive integer or -1','2017-04-05') ,
( 'LABEL','ID_MENU_COLOR','en','Menu Color','2021-08-10') ,
( 'LABEL','ID_MENU_NAME','en','Enterprise Manager','2014-10-17') , ( 'LABEL','ID_MENU_NAME','en','Enterprise Manager','2014-10-17') ,
( 'LABEL','ID_MESSAGE','en','Message','2014-01-15') , ( 'LABEL','ID_MESSAGE','en','Message','2014-01-15') ,
( 'LABEL','ID_MESSAGES','en','Messages','2014-01-15') , ( 'LABEL','ID_MESSAGES','en','Messages','2014-01-15') ,
@@ -60948,6 +60952,7 @@ INSERT INTO TRANSLATION (TRN_CATEGORY,TRN_ID,TRN_LANG,TRN_VALUE,TRN_UPDATE_DATE
( 'LABEL','ID_SCHEDULER_SUCCESS_UPDATE','en','Case Scheduler has been updated correctly.','2014-01-15') , ( 'LABEL','ID_SCHEDULER_SUCCESS_UPDATE','en','Case Scheduler has been updated correctly.','2014-01-15') ,
( 'LABEL','ID_SCHEDULER_TASK','en','Scheduled Task ID','2014-01-15') , ( 'LABEL','ID_SCHEDULER_TASK','en','Scheduled Task ID','2014-01-15') ,
( 'LABEL','ID_SCHEMA','en','Schema','2014-01-15') , ( 'LABEL','ID_SCHEMA','en','Schema','2014-01-15') ,
( 'LABEL','ID_SCREEN_COLOR_ICON','en','Screen Color Icon','2021-08-10') ,
( 'LABEL','ID_SCRIPT_TASK','en','Script Task','2015-10-19') , ( 'LABEL','ID_SCRIPT_TASK','en','Script Task','2015-10-19') ,
( 'LABEL','ID_SCRIPT_TASK_ACTIVITY_ALREADY_REGISTERED','en','The Script-Task with {0}: "{1}" already registered','2016-08-01') , ( 'LABEL','ID_SCRIPT_TASK_ACTIVITY_ALREADY_REGISTERED','en','The Script-Task with {0}: "{1}" already registered','2016-08-01') ,
( 'LABEL','ID_SEARCH','en','Search','2014-01-15') , ( 'LABEL','ID_SEARCH','en','Search','2014-01-15') ,
@@ -61057,6 +61062,7 @@ INSERT INTO TRANSLATION (TRN_CATEGORY,TRN_ID,TRN_LANG,TRN_VALUE,TRN_UPDATE_DATE
( 'LABEL','ID_SETUP','en','Admin','2014-01-15') , ( 'LABEL','ID_SETUP','en','Admin','2014-01-15') ,
( 'LABEL','ID_SETUP_MAILCONF_TITLE','en','Test SMTP Connection','2014-01-15') , ( 'LABEL','ID_SETUP_MAILCONF_TITLE','en','Test SMTP Connection','2014-01-15') ,
( 'LABEL','ID_SETUP_WEBSERVICES','en','Setup','2014-01-15') , ( 'LABEL','ID_SETUP_WEBSERVICES','en','Setup','2014-01-15') ,
( 'LABEL','ID_SET_A_CASE_LIST_NAME','en','Set a Case List Name','2021-08-10') ,
( 'LABEL','ID_SET_A_TABLE_NAME','en','Set a Table Name','2014-01-15') , ( 'LABEL','ID_SET_A_TABLE_NAME','en','Set a Table Name','2014-01-15') ,
( 'LABEL','ID_SET_COLUMNS','en','Set Columns','2014-10-10') , ( 'LABEL','ID_SET_COLUMNS','en','Set Columns','2014-10-10') ,
( 'LABEL','ID_SET_MANAGER','en','Set Manager','2015-03-09') , ( 'LABEL','ID_SET_MANAGER','en','Set Manager','2015-03-09') ,
@@ -61135,7 +61141,9 @@ INSERT INTO TRANSLATION (TRN_CATEGORY,TRN_ID,TRN_LANG,TRN_VALUE,TRN_UPDATE_DATE
( 'LABEL','ID_SOMETHING_WRONG','en','Something was wrong','2014-01-15') , ( 'LABEL','ID_SOMETHING_WRONG','en','Something was wrong','2014-01-15') ,
( 'LABEL','ID_SOME_ACTORS_ALREADY_ASSIGNED','en','Some actor(s) is/are already assigned to task <b>{0}</b>','2014-01-15') , ( 'LABEL','ID_SOME_ACTORS_ALREADY_ASSIGNED','en','Some actor(s) is/are already assigned to task <b>{0}</b>','2014-01-15') ,
( 'LABEL','ID_SOME_FIELDS_REQUIRED','en','Some Fields are required.','2014-01-15') , ( 'LABEL','ID_SOME_FIELDS_REQUIRED','en','Some Fields are required.','2014-01-15') ,
( 'LABEL','ID_SOME_TEXT','en','Some Text','2021-08-10') ,
( 'LABEL','ID_SORT_BY','en','Sort by','2015-04-28') , ( 'LABEL','ID_SORT_BY','en','Sort by','2015-04-28') ,
( 'LABEL','ID_SOURCE','en','Source','2021-08-10') ,
( 'LABEL','ID_SOUTHPANEL','en','southPanel','2014-01-15') , ( 'LABEL','ID_SOUTHPANEL','en','southPanel','2014-01-15') ,
( 'LABEL','ID_SPECIFY_DELEGATION_INDEX','en','Please specify the delegation index','2014-01-15') , ( 'LABEL','ID_SPECIFY_DELEGATION_INDEX','en','Please specify the delegation index','2014-01-15') ,
( 'LABEL','ID_SPLIT_BUTTON','en','Split Button','2014-01-15') , ( 'LABEL','ID_SPLIT_BUTTON','en','Split Button','2014-01-15') ,
@@ -61438,6 +61446,7 @@ INSERT INTO TRANSLATION (TRN_CATEGORY,TRN_ID,TRN_LANG,TRN_VALUE,TRN_UPDATE_DATE
( 'LABEL','ID_TRYING_CANCEL','en','You are tying to cancel the current case. Please be aware this action cannot be undone','2020-12-01') , ( 'LABEL','ID_TRYING_CANCEL','en','You are tying to cancel the current case. Please be aware this action cannot be undone','2020-12-01') ,
( 'LABEL','ID_TUE','en','Tue','2014-01-15') , ( 'LABEL','ID_TUE','en','Tue','2014-01-15') ,
( 'LABEL','ID_TYPE','en','Type','2014-01-15') , ( 'LABEL','ID_TYPE','en','Type','2014-01-15') ,
( 'LABEL','ID_TYPE_OF_SEARCHING','en','Type of Searching','2021-08-13') ,
( 'LABEL','ID_TYPE_PASSWORD','en','Type Password','2020-12-15') , ( 'LABEL','ID_TYPE_PASSWORD','en','Type Password','2020-12-15') ,
( 'LABEL','ID_TYPE_PROCESS','en','Process Type','2014-10-22') , ( 'LABEL','ID_TYPE_PROCESS','en','Process Type','2014-10-22') ,
( 'LABEL','ID_TWICE_PER_DAY','en','Twice per day','2014-10-22') , ( 'LABEL','ID_TWICE_PER_DAY','en','Twice per day','2014-10-22') ,

View File

@@ -71,16 +71,6 @@ if ($RBAC->userCanAccess('PM_SETUP') === 1) {
* Remove heartbeat config from core, it will probably be used again * Remove heartbeat config from core, it will probably be used again
* when the functionality will be redesigned. * when the functionality will be redesigned.
*/ */
if ($RBAC->userCanAccess('PM_SETUP_HEART_BEAT') === 1 && false) {
$G_TMP_MENU->AddIdRawOption(
'HEARTBEAT',
'processHeartBeatConfig',
G::LoadTranslation('ID_HEARTBEAT_CONFIG'),
'heartBeat.jpg',
'',
'settings'
);
}
} }
if ($RBAC->userCanAccess('PM_SETUP_ENVIRONMENT') === 1) { if ($RBAC->userCanAccess('PM_SETUP_ENVIRONMENT') === 1) {
$G_TMP_MENU->AddIdRawOption( $G_TMP_MENU->AddIdRawOption(

View File

@@ -2,6 +2,7 @@
use Eusebiu\JavaScript\Facades\ScriptVariables; use Eusebiu\JavaScript\Facades\ScriptVariables;
use Illuminate\Support\Facades\View; use Illuminate\Support\Facades\View;
use ProcessMaker\Core\System; use ProcessMaker\Core\System;
use ProcessMaker\Model\User;
global $translation; global $translation;
global $RBAC; global $RBAC;
@@ -33,4 +34,5 @@ ScriptVariables::add('SYS_URI', SYS_URI);
ScriptVariables::add('SYS_LANG', SYS_LANG); ScriptVariables::add('SYS_LANG', SYS_LANG);
ScriptVariables::add('TRANSLATIONS', $translation); ScriptVariables::add('TRANSLATIONS', $translation);
ScriptVariables::add('FORMATS', $conf->getFormats()); ScriptVariables::add('FORMATS', $conf->getFormats());
ScriptVariables::add('userId', User::getId($_SESSION['USER_LOGGED']));
echo View::make('Views::admin.settings.customCasesList', compact("userCanAccess"))->render(); echo View::make('Views::admin.settings.customCasesList', compact("userCanAccess"))->render();

View File

@@ -1,38 +0,0 @@
<?php
/**
* main.php Cases List main processor
*
* ProcessMaker Open Source Edition
* Copyright (C) 2004 - 2010 Colosa Inc.23
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
*/
global $RBAC;
$RBAC->requirePermissions('PM_SETUP', 'PM_SETUP_HEART_BEAT');
$oHeadPublisher = headPublisher::getSingleton();
$oServerConf = ServerConf::getSingleton();
//you can use SYS_TEMP or SYS_SYS ON HEAR_BEAT_CONF to save for each workspace
$sflag = $oServerConf->getHeartbeatProperty('HB_OPTION', 'HEART_BEAT_CONF');
$heartBeatChecked = $sflag == 1 ? true : false;
$oHeadPublisher->addExtJsScript('setup/processHeartBeatConfig', true); //adding a javascript file .js
$oHeadPublisher->assign('heartBeatChecked', $heartBeatChecked);
G::RenderPage('publish', 'extJs');

View File

@@ -73,7 +73,7 @@ class Metrics extends Api
/** /**
* Get total cases by range * Get total cases by range
* *
* @url /process-total-cases * @url GET /process-total-cases
* *
* @param string $caseList * @param string $caseList
* @param int $processId * @param int $processId
@@ -89,6 +89,7 @@ class Metrics extends Api
*/ */
public function getTotalCasesByRange($caseList, $processId = null, $dateFrom = null, $dateTo = null, $groupBy = 'day') public function getTotalCasesByRange($caseList, $processId = null, $dateFrom = null, $dateTo = null, $groupBy = 'day')
{ {
$usrId = $this->getUserId();
try { try {
switch ($caseList) { switch ($caseList) {
case 'inbox': case 'inbox':
@@ -104,6 +105,7 @@ class Metrics extends Api
$list = new Unassigned(); $list = new Unassigned();
break; break;
} }
$list->setUserId($usrId);
$result = $list->getCountersByRange($processId, $dateFrom, $dateTo, $groupBy); $result = $list->getCountersByRange($processId, $dateFrom, $dateTo, $groupBy);
return $result; return $result;
} catch (Exception $e) { } catch (Exception $e) {

View File

@@ -70,7 +70,7 @@ store = new Ext.data.GroupingStore( {
{header: _("DATE_LABEL"), width: 100, dataIndex: "ABE_REQ_DATE", sortable: true}, {header: _("DATE_LABEL"), width: 100, dataIndex: "ABE_REQ_DATE", sortable: true},
{header: _("ID_CASE_NUMBER_CAPITALIZED"), width: 70, dataIndex: "APP_NUMBER", sortable: true}, {header: _("ID_CASE_NUMBER_CAPITALIZED"), width: 70, dataIndex: "APP_NUMBER", sortable: true},
{header: _("ID_SUBJECT"), width: 150, dataIndex: "ABE_REQ_SUBJECT", sortable: true}, {header: _("ID_SUBJECT"), width: 150, dataIndex: "ABE_REQ_SUBJECT", sortable: true},
{header: _("ID_FROM"), width: 110, dataIndex: "USER", sortable: true}, {header: _("ID_SENDER"), width: 110, dataIndex: "USER", sortable: true},
{header: _("ID_TO"), width: 110, dataIndex: "ABE_REQ_SENT_TO", sortable: true}, {header: _("ID_TO"), width: 110, dataIndex: "ABE_REQ_SENT_TO", sortable: true},
{header: _("ID_STATUS"), width: 40, dataIndex: "ABE_REQ_STATUS", sortable: true}, {header: _("ID_STATUS"), width: 40, dataIndex: "ABE_REQ_STATUS", sortable: true},
{header: _("ID_ANSWERED"), width: 60, dataIndex: "ABE_REQ_ANSWERED"}, {header: _("ID_ANSWERED"), width: 60, dataIndex: "ABE_REQ_ANSWERED"},

View File

@@ -1,44 +0,0 @@
<form id="{$form_id}" name="{$form_name}" action="{$form_action}" class="{$form_className}" method="post" encType="multipart/form-data" style="margin:0px;" onsubmit="return validateForm('{$form_objectRequiredFields}');"> <div class="borderForm" style="width:{$form_width}; padding-left:0; padding-right:0; border-width:{$form_border};">
<div class="boxTop"><div class="a"></div><div class="b"></div><div class="c"></div></div>
<div class="content" style="height:{$form_height};" >
<table width="99%">
<tr>
<td valign='top'>
<input type="hidden" class="notValidateThisFields" name="__notValidateThisFields__" id="__notValidateThisFields__" value="{$form_objectRequiredFields}" />
<input type="hidden" name="DynaformRequiredFields" id="DynaformRequiredFields" value="{$form_objectRequiredFields}" />
<table cellspacing="0" cellpadding="0" border="0" width="100%">
<tr>
<td class='FormTitle' colspan="2" align="">
<table width="100%"><tr><td width="50%" class='FormTitle'>{$form.HB_TITLE} </td><td align="right" >{$form.HB_LINKINFO}</td></tr></table>
</td>
</tr>
<tr>
<td class='FormLabel' width="{$form_labelWidth}">{$HB_OPTION}</td>
<!-- <td class='FormFieldContent' width="{$form_width}" >{$form.HB_OPTION} </td> //-->
<td class='FormFieldContent' width='{$form_fieldContentWidth}' >{$form.HB_OPTION}</td>
</tr>
<tr>
<td class='FormButton' colspan="2" align="center">{$form.HB_SAVE}</td>
</tr>
<tr>
<!-- <td class='FormLabel' width="{$form_labelWidth}">{$HB_LINKINFO}</td> //-->
<!-- <td class='FormFieldContent' width="{$form_width}" >{$form.HB_LINKINFO} </td> //-->
<!-- <td class='FormFieldContent' width='{$form_fieldContentWidth}' >{$form.HB_LINKINFO}</td> -->
</tr>
</table>
</td>
</tr>
</table>
</div>
<div class="boxBottom"><div class="a"></div><div class="b"></div><div class="c"></div></div>
</div>
<script type="text/javascript">
{$form.HB_JS}
</script>
</form>
<script type="text/javascript">
try {literal}{{/literal} dynaformSetFocus();}catch(e){literal}{{/literal}}
</script>

View File

@@ -1,22 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<dynaForm name="ProcessHeartBeatConfig" width="55%" enableTemplate="1">
<HB_TITLE type="title" enablehtml="0" btn_cancel="Cancel" enableHTML="1">
<en><![CDATA[Processmaker Heartbeat]]></en>
</HB_TITLE>
<HB_OPTION type="dropdown" required="0" readonly="0" savelabel="0" mode="edit" options="Array">
<en><![CDATA[Enable Heartbeat]]><option name="0"><![CDATA[No]]></option><option name="1"><![CDATA[Yes]]></option></en>
</HB_OPTION>
<HB_SAVE type="button" onclick="sendValues(this.form);">
<en><![CDATA[save]]></en>
</HB_SAVE>
<HB_LINKINFO type="link" colWidth="60" titleAlign="left" align="left" link="#" onclick="var k=window.open('http://wiki.processmaker.com/index.php/Heartbeat ','_blank');return false;">
<en><![CDATA[Read Online Documentation]]></en>
</HB_LINKINFO>
<HB_JS type="javascript">
var sendValues=function(form){
var hbOption = getField('HB_OPTION').value;
ajax_function('processHeartBeatSave','','HB_OPTION='+hbOption,'POST') ;
window.location = 'processHeartBeatConfig';
};
</HB_JS>
</dynaForm>