8 require_once(dirname(__FILE__) .
'/../library/permissions.i');
9 require_once(dirname(__FILE__) .
'/../library/hcuACH.i');
10 require_once(dirname(__FILE__) .
"/../../shared/library/commonJsFunctions.i");
11 require_once(dirname(__FILE__) .
"/../library/hcuUserActivity.i");
14 $serviceShowInfo =
true;
15 $serviceLoadMenu =
true;
16 $serviceShowMenu =
true;
19 require_once(dirname(__FILE__) .
'/../library/hcuService.i');
25 PermCheckFeatureScreen($dbh, $HB_ENV, $MC, FEATURE_BASIC);
30 $Uid = $HB_ENV[
"Uid"];
34 $permissions = privPermGetAllFeatureRights($HB_ENV[
"dbh"], $HB_ENV, array(
"Uid" => $HB_ENV[
"Uid"]));
35 if (!intval($permissions[
"status"][
"code"]) == 0) {
36 throw new exception($permissions[
"status"][
"error"], $permissions[
"status"][
"code"]);
38 $permissions = $permissions[
"data"][$HB_ENV[
"Uid"]];
41 $approvalFeatureList = getApprovalList();
42 $approvalFound =
false;
43 foreach($permissions as $featureCode => $featureRecord) {
44 if (!in_array($featureCode, $approvalFeatureList)) {
47 if ($featureRecord[
"confirm"]) {
48 $approvalFound =
true;
53 if (!$approvalFound) {
56 $sql =
"select 'FOUND' from ${Cu}user a inner join ${Cu}user b on a.user_id = $Uid and a.group_id = b.group_id and a.user_id <> b.user_id";
57 $sth = db_query($sql, $HB_ENV[
"dbh"]);
59 throw new exception(
"Check if multiple users found failed.", 5);
61 if (db_num_rows($sth) > 0) {
62 header (
"Location: hcuPermNotice.prg?" . $HB_ENV[
"cuquery"]);
68 $showPendingApprovalGrid = getValidUserIds($dbh, $Cu, $Cn, $sqls)[
"showPendingApprovalGrid"];
69 $featureDDL = getFeatures($dbh, $Cu, $sqls, $MC, $Uid);
70 $statusApprovalDDL = getApprovalStatuses($MC);
71 $statusActiveDDL = getActiveStatuses($MC);
72 $actionDDL = getActions($MC);
73 }
catch(exception $e) {
74 $showPendingApprovalGrid =
false;
75 $featureDDL = array();
76 $statusApprovalDDL = array();
77 $statusActiveDDL = array();
82 require_once(dirname(__FILE__) .
'/../includes/hcuPreContent.i');
84 printPage($HB_ENV, $showPendingApprovalGrid, $featureDDL, $statusApprovalDDL, $statusActiveDDL, $actionDDL);
85 }
catch (Exception $ex) {
88 $serviceErrorMsg = HCU_JsonDecode($ex->getMessage());
90 $serviceErrorCode = $ex->getCode();
92 require_once(dirname(__FILE__) .
'/../includes/hcuErrorPage.i');
96 require_once(dirname(__FILE__) .
'/../includes/hcuPostContent.i');
106 function printPage($HB_ENV, $showPendingApprovalGrid, $featureDDL, $statusApprovalDDL, $statusActiveDDL, $actionDDL) {
108 $dataURL =
"hcuUserActivity.data?" . $HB_ENV[
"cuquery"];
109 $presURL =
"hcuUserActivity.prg?" . $HB_ENV[
"cuquery"];
110 $logger = $HB_ENV[
"SYSENV"][
"logger"];
112 $Uid = $HB_ENV[
"Uid"];
118 <script type=
"text/javascript">
130 <?php IEFixStartsWith();
131 printExtendShowOverflown();
133 $.homecuValidator.setup({formValidate:
'mainForm', formStatusField:
'formStatus'});
138 var toolTipProps = homecuTooltip.defaults;
139 toolTipProps.filter =
".showEllipsis:visible:overflown";
140 toolTipProps.content =
function(e) {
141 return $(e.target).text().trim();
144 $(
".userActivityDiv").kendoTooltip(toolTipProps);
153 function defineGrids() {
156 var modelDefinition = {
159 kendoId: {type:
"number"}, <?php
160 type: {type:
"string"}, <?php
161 data_id: {type:
"number"}, <?php
163 displayDateFull: {type:
"string"},
164 displayDateMonth: {type:
"string"},
165 displayDateYear: {type:
"string"},
166 displayDateDay: {type:
"string"},
167 area4Text: {type:
"string"},
169 area1Label: {type:
"string"},
170 area1Text: {type:
"string"},
171 area2Label: {type:
"string"},
172 area2Text: {type:
"string"},
173 area3: {type:
"string"},
174 interval: {type:
"string"},
175 area4Label: {type:
"string"},
177 feature_code: {type:
"string"}, <?php
178 feature: {type:
"string"},
179 approved_status: {type:
"number"},
180 approvedDescription: {type:
"string"},
181 details: {type:
"odata"},
182 canApprove: {type:
"string"},
183 infoClass: {type:
"string"},
184 type: {type:
"string"}
188 var gridDefinition = {
196 columns: [{width: 5}, {hidden:
true}, {title:
"date", width: 50}, {title:
"other"}],
198 dataBound:
function() {
201 $(this.wrapper).find(
"colgroup").each(
function() {
202 $(
this).find(
"col:eq(1)").addClass(
"hidden-xs");
206 template:
'<tr><td><span class="hcu-secondary-text"><?php echo $MC->msg("No Records Found", HCU_DISPLAY_AS_JS); ?></span></td></tr>' 208 rowTemplate: $(
"#rowTemplate").html()
211 var headerTemplateTemplate = kendo.template($(
"#headerTemplateTemplate").html());
215 var doneness = [
false,
false,
false], populated =
false, showPendingApprovalGrid = <?php echo $showPendingApprovalGrid ?
"true" :
"false" ?>,
216 ddls = <?php echo HCU_JsonEncode(array(
"featureDDL" => $featureDDL,
"statusApprovalDDL" => $statusApprovalDDL,
"statusActiveDDL" => $statusActiveDDL)); ?>, isFilter=
false;
218 var pendingApprovalGrid =
null, scheduledTransactionsGrid =
null, priorActivityGrid =
null;
221 <?php
if ($showPendingApprovalGrid) { ?>
222 gridId =
"pendingApproval";
223 gridDefinition.toolbar = [{
template: headerTemplateTemplate({grid: gridId})}];
224 gridDefinition.dataSource.transport.read = {url:
"<?php echo $dataURL; ?>&grid=" + gridId, dataType:
"json", type:
"POST"};
225 gridDefinition.dataSource.schema = {model: modelDefinition, parse:
function (data) {
226 var pendingApprovalGrid = $(
"#pendingApprovalGrid").data(
"kendoGrid");
227 var data = data.results; <?php
228 if (data.homecuErrors.length > 0) {
229 $.homecuValidator.displayMessage(data.homecuErrors, $.homecuValidator.settings.statusError);
232 return pendingApprovalGrid.dataSource.data();
234 if (data.homecuInfo.length > 0) {
235 $.homecuValidator.settings.formInfoTitle =
"";
236 $.homecuValidator.displayMessage(data.homecuInfo);
242 return window.homecuData;
247 window.homecuData = data.homecuData;
248 $(
"#priorActivityGrid").data(
"kendoGrid").dataSource.read({operation:
"local"});
250 var gridData = pendingApprovalGrid.dataSource.data();
252 if (data.transferData) {
253 openTransferConfirmWindow(data.transferData);
257 var appInfo = JSON.stringify( { status:
true } );
259 <?php
if ( $HB_ENV[
"platform"] ==
"ADA" ) : ?>
260 AndroidController.notifyCommand(
"CHANGED_PENDING_ACTIVITY", appInfo);
261 <?php elseif ( $HB_ENV[
"platform"] ==
"APP" ) : ?>
264 cmd:
"CHANGED_PENDING_ACTIVITY",
268 window.webkit.messageHandlers.interOp.postMessage(postObject);
271 return $.grep(gridData,
function(n,i) {
return n.kendoId != data.kendoId; });
277 if (!populated && doneness.indexOf(
false) == -1)
281 populateFilters(ddls, showPendingApprovalGrid);
285 return data.homecuData;
289 pendingApprovalGrid = $(
"#pendingApprovalGrid").kendoGrid(gridDefinition).data(
"kendoGrid");
292 gridId =
"scheduledTransactions";
293 gridDefinition.toolbar = [{
template: headerTemplateTemplate({grid: gridId})}];
294 gridDefinition.dataSource.transport.read = {url:
"<?php echo $dataURL; ?>&grid="+gridId, dataType:
"json", type:
"POST"};
295 gridDefinition.dataSource.schema = {model: modelDefinition, parse:
function (data) {
296 var gridId =
"scheduledTransactions";
297 var data = data.results; <?php
298 var scheduledTransactionsGrid = $(
"#scheduledTransactionsGrid").data(
"kendoGrid");
299 if (data.homecuErrors.length > 0) {
300 $.homecuValidator.displayMessage(data.homecuErrors, $.homecuValidator.settings.statusError);
303 return scheduledTransactionsGrid.dataSource.data();
305 if (data.homecuInfo.length > 0) {
306 $.homecuValidator.settings.formInfoTitle =
"";
307 $.homecuValidator.displayMessage(data.homecuInfo);
315 return window.homecuData;
317 case "skipTransactions":
318 window.homecuData = data.homecuData;
319 $(
"#scheduledTransactionsGrid").data(
"kendoGrid").dataSource.read({operation:
"local"});
321 var gridData = scheduledTransactionsGrid.dataSource.data();
322 return $.grep(gridData,
function(n,i) {
return n.data_id != data.dataId; });
327 window.homecuData = data.homecuData;
328 $(data.grid ==
"scheduledTransactions" ?
"#scheduledTransactionsGrid" :
"#priorActivityGrid").data(
"kendoGrid").dataSource.read({operation:
"local"});
330 var gridData = scheduledTransactionsGrid.dataSource.data();
332 if (data.transferData) {
333 openTransferConfirmWindow(data.transferData);
335 return $.grep(gridData,
function(n,i) {
return n.data_id != data.dataId; });
341 $(
"#filterTypeDDL" + gridId).data(
"kendoDropDownList").value(
"");
342 $(
"#statusActiveDDL" + gridId).data(
"kendoDropDownList").value(
"");
343 $(
"#filterFrom" + gridId).data(
"kendoDatePicker").value(
null);
344 $(
"#filterTo" + gridId).data(
"kendoDatePicker").value(
null);
351 if (!populated && doneness.indexOf(
false) == -1) {
354 populateFilters(ddls, showPendingApprovalGrid);
360 return data.homecuData;
362 scheduledTransactionsGrid = $(
"#scheduledTransactionsGrid").kendoGrid(gridDefinition).data(
"kendoGrid");
364 gridId=
"priorActivity";
365 gridDefinition.toolbar = [{
template: headerTemplateTemplate({grid: gridId})}];
367 gridDefinition.dataSource.transport.read = {url:
"<?php echo $dataURL; ?>&grid=" + gridId, dataType:
"json", type:
"POST"};
368 delete gridDefinition.dataSource.transport.destroy;
369 gridDefinition.dataSource.schema = {model: modelDefinition, parse:
function (data) {
370 var gridId=
"priorActivity";
371 var priorActivityGrid = $(
"#priorActivityGrid").data(
"kendoGrid");
372 var data = data.results; <?php
373 if (data.homecuErrors.length > 0) {
374 $.homecuValidator.displayMessage(data.homecuErrors, $.homecuValidator.settings.statusError);
377 return priorActivityGrid.dataSource.data();
379 if (data.homecuInfo.length > 0) {
380 $.homecuValidator.settings.formInfoTitle =
"";
381 $.homecuValidator.displayMessage(data.homecuInfo);
387 return window.homecuData;
393 $(
"#filterTypeDDL"+gridId).data(
"kendoDropDownList").value(
"");
394 $(
"#statusApprovalDDL"+gridId).data(
"kendoDropDownList").value(
"");
395 $(
"#filterFrom"+gridId).data(
"kendoDatePicker").value(
null);
396 $(
"#filterTo"+gridId).data(
"kendoDatePicker").value(
null);
403 if (!populated && doneness.indexOf(
false) == -1) {
406 populateFilters(ddls, showPendingApprovalGrid);
412 return data.homecuData;
414 priorActivityGrid = $(
"#priorActivityGrid").kendoGrid(gridDefinition).data(
"kendoGrid");
416 <?php
if ($showPendingApprovalGrid) { ?>
417 pendingApprovalGrid.dataSource.read({operation:
"read"});
421 scheduledTransactionsGrid.dataSource.read({operation:
"read"});
422 priorActivityGrid.dataSource.read({operation:
"read"});
433 function defineFilters() {
434 <?php
if ($showPendingApprovalGrid) { ?>
435 var featureDDL = $(
"#featureDDL").kendoDropDownList({
439 dataTextField:
"text",
440 dataValueField:
"value",
441 select:
function(e) {
442 var value = e.dataItem.value;
443 var filter = value ==
"" ? [] : {field:
"feature_code",
operator:
"eq", value: value};
444 var grid = $(
"#pendingApprovalGrid").data(
"kendoGrid");
445 if (grid.dataSource.data().length > 0) { <?php
446 grid.dataSource.filter(filter);
450 $(this.wrapper).find(
".fa.fa-caret-down").removeClass(
"fa-caret-down").addClass(
"fa-caret-up");
453 $(this.wrapper).find(
".fa.fa-caret-up").removeClass(
"fa-caret-up").addClass(
"fa-caret-down");
455 valueTemplate:
"<a href='\\#' class='hcu-align-right'>#= text # <i class='fa fa-caret-down'></i></a>",
456 template:
"#= text #" 457 }).data(
"kendoDropDownList");
459 $(featureDDL.wrapper).addClass(
"hcu-dropdownlist");
463 $(
"[id^='filterTo'], [id^='filterFrom']").each(
function() {
464 $(
this).kendoDatePicker({
466 var value = this.value();
467 var isFrom = $(this.element).hasClass(
"filterFrom");
468 var grid = $(this.wrapper).closest(
".activityGridDiv").data(
"grid");
469 var toDatePicker = $(
"#filterTo"+grid).data(
"kendoDatePicker");
471 this.value(
null); <?php
473 toDatePicker.min(
null);
477 toDatePicker.min(this.value());
478 if (toDatePicker.value() < this.value()) { <?php
479 toDatePicker.value(
null);
485 }).data(
"kendoDatePicker");
487 if ($(
this).attr(
"id").startsWith(
"filterFrom")) {
488 $(
this).addClass(
"filterFrom");
492 $(
"[id^='filterTo'].k-input, [id^='filterFrom'].k-input").blur(
function() {
493 $(
this).data(
"kendoDatePicker").trigger(
"change");
497 $(
"[id^='filterTypeDDL'], [id^='statusApprovalDDL'], [id^='statusActiveDDL']").each(
function() {
498 var ddl = $(
this).kendoDropDownList({
502 dataTextField:
"text",
503 dataValueField:
"value" 504 }).data(
"kendoDropDownList");
507 $(
".showFilterBtn").click(
function() {
508 if ($(
this).data(
"isshow")) {
509 $(
this).closest(
".activityGridDiv").find(
".filterDiv").show();
510 $(
this).html(
'<?php echo $MC->msg("Hide Filter", HCU_DISPLAY_AS_HTML); ?> <i class="fa fa-caret-up"></i>');
511 $(
this).data(
"isshow",
false);
513 $(
this).closest(
".activityGridDiv").find(
".filterDiv").hide();
514 $(
this).html(
'<?php echo $MC->msg("Show Filter", HCU_DISPLAY_AS_HTML); ?> <i class="fa fa-caret-down"></i>');
515 $(
this).data(
"isshow",
true);
520 $(
".filterApplyBtn, .filterClearBtn").click(
function() {
521 var grid = $(
this).closest(
".activityGridDiv").data(
"grid");
522 var isClear = $(
this).hasClass(
"filterClearBtn");
523 var from = $(
"#filterFrom"+grid).data(
"kendoDatePicker").value();
524 var to = $(
"#filterTo"+grid).data(
"kendoDatePicker").value();
525 from = from ==
null ?
"" : kendo.toString(from,
"yyyy-MM-dd");
526 to = to ==
null ?
"" : kendo.toString(to,
"yyyy-MM-dd");
528 var parameters = isClear ? {operation:
"clearFilter"} : {operation:
"filter", filterFeature: $(
"#filterTypeDDL"+grid).data(
"kendoDropDownList").value(), filterFrom: from, filterTo: to };
530 if (grid ==
"scheduledTransactions") {
531 parameters.filterStatus = $(
"#statusActiveDDL" + grid).data(
"kendoDropDownList").value();
533 parameters.filterStatus = $(
"#statusApprovalDDL" + grid).data(
"kendoDropDownList").value();
536 var gridId = parameters.grid ==
"scheduledTransactions" ?
"#scheduledTransactionsGrid" :
"#priorActivityGrid";
539 $(
"#" + grid +
"Grid").data(
"kendoGrid").dataSource.read(parameters);
553 function populateFilters(thyDDLs, showPendingApprovalGrid) {
554 if (showPendingApprovalGrid) {
555 $(
"#featureDDL").data(
"kendoDropDownList").dataSource.data(thyDDLs.featureDDL);
557 $(
"[id^='filterTypeDDL'][data-role='dropdownlist']").each(
function() {
558 $(
this).data(
"kendoDropDownList").dataSource.data(thyDDLs.featureDDL);
560 $(
"[id^='statusActiveDDL'][data-role='dropdownlist']").data(
"kendoDropDownList").dataSource.data(thyDDLs.statusActiveDDL);
561 $(
"[id^='statusApprovalDDL'][data-role='dropdownlist']").data(
"kendoDropDownList").dataSource.data(thyDDLs.statusApprovalDDL);
570 function defineActions() {
571 $(
".userActivityDiv").on(
"click",
".activityLink",
function() {
572 var tr = $(
this).closest(
"tr");
573 var grid = $(tr).closest(
".userActivityGrid").data(
"kendoGrid");
574 var gridId = $(grid.element).attr(
"id");
575 var dataItem = grid.dataItem(tr);
576 switch($(
this).data(
"action")) {
577 case "viewDetails": viewDetails(dataItem, gridId);
break;
578 case "approve": changeStatus(dataItem, gridId, 10);
break;
579 case "decline": changeStatus(dataItem, gridId, 90);
break;
580 case "cancel": changeStatus(dataItem, gridId, 99);
break;
581 case "skip": changeStatus(dataItem, gridId, 0);
break;
597 function viewDetails(gridDataItem, gridId) {
598 var detailDialog = $(
"#detailDialog").data(
"kendoDialog");
599 if (detailDialog ==
null) {
600 detailDialog = $(
"<div id='detailDialog'></div>").appendTo(
"body").kendoDialog({
601 title:
'<?php echo $MC->msg("View Details", HCU_DISPLAY_AS_HTML); ?>',
604 if (window.activeWindows !=
null) {
605 window.activeWindows.push(
this);
607 var maxHeight1 = 600;
608 var maxHeight2 = $(window).height() - 150;
609 var maxHeight = maxHeight2 >= maxHeight1 ? maxHeight1 : maxHeight2;
610 $(
"#detailDialog").css({maxHeight: maxHeight});
613 if (window.activeWindows !=
null) {
614 window.activeWindows.pop();
620 {text:
'<?php echo $MC->msg("Okay", HCU_DISPLAY_AS_HTML); ?>', primary:
true}
622 }).data(
"kendoDialog");
624 var
template = kendo.template($(
"#detailTemplate").html());
625 gridDataItem.grid = gridId;
626 detailDialog.content(
template(gridDataItem)).open();
639 function changeStatus(gridDataItem, gridId, status) {
640 var confirmWindow = $(
"#confirmWindow").data(
"kendoDialog");
641 if (confirmWindow ==
null) {
642 confirmWindow = $(
"<div id='confirmWindow'></div>").appendTo(
"body").kendoDialog({
643 title:
'<?php echo $MC->msg("Confirmation"); ?>',
646 if (window.activeWindows !=
null) {
647 window.activeWindows.push(
this);
649 var maxHeight1 = 600;
650 var maxHeight2 = $(window).height() - 150;
651 var maxHeight = maxHeight2 >= maxHeight1 ? maxHeight1 : maxHeight2;
652 $(
"#confirmWindow").css({maxHeight: maxHeight});
655 if (window.activeWindows !=
null) {
656 window.activeWindows.pop();
662 {text:
'<?php echo $MC->msg("Cancel", HCU_DISPLAY_AS_HTML); ?>'},
663 {text:
'<?php echo $MC->msg("Okay", HCU_DISPLAY_AS_HTML); ?>', primary:
true, action:
function() {
664 var status = $(
"#confirmWindow").data(
"status");
665 var gridDataItem = $(
"#confirmWindow").data(
"gridDataItem");
666 var gridId = $(
"#confirmWindow").data(
"gridId");
668 var grid = gridDataItem.type ==
"scheduled" && (status == 10 || status == 99) ?
"scheduledTransactions" :
"priorActivity";
669 var isClear = $(
this).hasClass(
"filterClearBtn");
670 var from = $(
"#filterFrom" + grid).data(
"kendoDatePicker").value();
671 var to = $(
"#filterTo" + grid).data(
"kendoDatePicker").value();
672 from = from ==
null ?
"" : kendo.toString(from,
"yyyy-MM-dd");
673 to = to ==
null ?
"" : kendo.toString(to,
"yyyy-MM-dd");
674 var dataId = gridDataItem.data_id;
676 var operation = status == 0 ?
"skipTransaction" :
"setStatus";
678 var parameters = {operation: operation, status: status, type: gridDataItem.type, dataId: dataId, filterFeature: $(
"#filterTypeDDL" + grid).data(
"kendoDropDownList").value(), filterFrom: from, filterTo: to, grid: grid, kendoId: gridDataItem.kendoId};
680 if (grid ==
"scheduledTransactions") {
681 parameters.filterStatus = $(
"#statusActiveDDL" + grid).data(
"kendoDropDownList").value();
683 parameters.filterStatus = $(
"#statusApprovalDDL" + grid).data(
"kendoDropDownList").value();
687 $(
"#"+gridId).data(
"kendoGrid").dataSource.read(parameters);
690 }).data(
"kendoDialog");
693 $(
"#confirmWindow").data({status: status, gridDataItem: gridDataItem, gridId: gridId});
694 var skip =
'<?php echo $MC->msg("Skip Transaction Msg"); ?><br><br>' +
695 '<?php echo $MC->msg("Skip Transaction Confirm"); ?>';
696 var cancel =
'<?php echo $MC->msg("Confirm Cancel"); ?>';
697 var decline =
'<?php echo $MC->msg("Confirm Decline"); ?>';
698 var approve =
'<?php echo $MC->msg("Confirm Approve"); ?>';
700 if (status == 0) { confirmWindow.content(skip); }
701 else if (status == 10) { confirmWindow.content(approve); }
702 else if (status == 99) { confirmWindow.content(cancel); }
703 else { confirmWindow.content(decline); }
705 confirmWindow.open();
717 function processResults(data, doFunction) {
718 var data = data.results; <?php
719 if (data.homecuErrors.length > 0) {
720 $.homecuValidator.displayMessage(data.homecuErrors, $.homecuValidator.settings.statusError);
723 if (data.homecuInfo.length > 0) {
724 $.homecuValidator.settings.formInfoTitle =
"";
725 $.homecuValidator.displayMessage(data.homecuInfo);
728 if (typeof doFunction ==
"function") {
729 (doFunction)(data.homecuData);
734 function openTransferConfirmWindow(transferData) {
735 var transferConfirmWindow = $(
"#transferConfirmWindow").data(
"kendoDialog");
736 if (transferConfirmWindow ==
null) {
737 transferConfirmWindow = $(
"<div id='transferConfirmWindow'></div>").appendTo(
"body").kendoDialog({
741 title:
'<?php echo $MC->msg('Transfer Confirmation
', HCU_DISPLAY_AS_JS); ?>',
745 actions: [ {text:
"Close", primary:
true} ],
747 if (window.activeWindows !=
null) {
748 window.activeWindows.push(
this);
752 if (window.activeWindows !=
null) {
753 window.activeWindows.pop();
756 }).data(
"kendoDialog");
759 var
template = kendo.template($(
"#confirmationTemplate").html());
760 transferConfirmWindow.content(
template(transferData)).open();
763 var activeWindows = [];
764 $(document).ready(
function() { init();
765 $(
"body").on(
"click",
".k-overlay",
function() {
if (activeWindows.length > 0) activeWindows[activeWindows.length - 1].close();
return false; });
773 <script
id=
"confirmationTemplate" type=
"text/x-kendo-template">
774 <div
id=
"responseDiv">
775 <div
class=
"local-transfer-msg">
776 <?php echo $MC->msg(
'Transfer posted', HCU_DISPLAY_AS_JS); ?>
779 # for (i = 0; i < data.length; i++ ) { # 780 <div
class=
"col-xs-6 text-right">
781 <span
class=
"response-label">#= data[i][
'label'] #:</span>
783 <div
class=
"col-xs-6">
784 <span
class=
"response-field">#= data[i][
'caption'] #</span>
799 <script type=
"text/x-kendo-template" id=
"detailTemplate">
800 # var addressOffset = " "; var groupAltI = 0;# 801 <div
class=
"container hcu-all-100">
802 # for (var i = 0; i != details.length; i++) { var item = details[i]; # 803 # if (item.type == "normalRow") { # 804 <div
class=
"row"><div
class=
"col-xs-12 showEllipsis"><label>#= item.label #</label> #
if (item.text ==
"") { # # }
else { # #= item.text # # } #</div></div>
805 # } else if (item.type == "header") { # 806 <div
class=
"row"><div
class=
"col-xs-12 h4 showEllipsis">#
if (item.text ==
"") { # # }
else { # #: item.text # # } #</div></div>
807 # } else if (item.type == "address") { # 808 <div
class=
"row"><div
class=
"col-xs-12 showEllipsis"><label>#: item.label #</label> #
if (item.addresses.length > 0) { # #: item.addresses[0] # # } #</div></div>
809 # for (var j = 1, len = item.addresses.length; j != len; j++) { var addr = item.addresses[j]; if (addr == "") continue; # 810 <div
class=
"row"><div
class=
"col-xs-12 showEllipsis">#= addressOffset # #: addr #</div></div>
812 # } else if (item.type == "altGroupStart") { # 813 <div
class=
"row # if (groupAltI++ % 2 == 1) { # hcu-alt # } #">
814 # } else if (item.type == "altGroupEnd" || item.type == "wellEnd") { # 816 # } else if (item.type == "wellStart") { # 817 <div
class=
"well well-sm row">
829 <script type=
"text/x-kendo-template" id=
"rowTemplate">
830 <tr data-uid=
"#=uid#">
831 <td
class=
"hcu-activity-bg-#:infoClass#"> </td><td style=
"display:none;">#: canApprove #</td>
833 <td
class=
"hidden-xs">#
if (displayDateFull !=
null) { # <center>#: displayDateMonth #<br><b>#: displayDateDay #</b><br><span
class=
"hcu-smallerYear hcu-secondary-text">
834 #: displayDateYear #</span># } else { # # } #</td> 837 <div
class=
"container hcu-all-100 hcu-bs-no-padding">
838 <div
class=
"row hidden-sm hidden-md hidden-lg hcuSpacer titleRow">
839 <div
class=
"col-xs-6"><span
class=
"floatLeft">#: displayDateFull #</span></div>
840 <div
class=
"col-xs-6"><span
class=
"floatRight">#: feature #</span></div>
843 <div
class=
"col-xs-12 col-sm-4">
844 <div
class=
"col-xs-12 area1 showEllipsis">#
if (area1Label !=
"") { #<label>#= area1Label #</label> # } # #= area1Text # </div>
845 <div
class=
"col-xs-12 area2 showEllipsis">#
if (area2Label !=
"") { #<label>#= area2Label #</label> # } # #= area2Text # </div>
847 <div
class=
"col-xs-12 col-sm-4">
848 <div
class=
"col-xs-12 area3 showEllipsis">#: area3 # </div>
849 <div
class=
"col-xs-12 area4 showEllipsis">#
if (area4Label !=
"") { #<label>#= area4Label #</label> # } # #: area4Text # </div>
851 <div
class=
"col-xs-12 col-sm-4">
852 <div
class=
"hidden-xs col-sm-6 featureDiv showEllipsis">#: feature #</div>
853 <div
class=
"col-xs-12 col-sm-6"><a href=
"\\#" class=
"activityLink" data-action=
"viewDetails">
854 <?php echo $MC->msg(
"View Details", HCU_DISPLAY_AS_JS); ?></a></div>
855 <div
class=
"col-xs-12 col-sm-6 actionDiv">
857 # if ((approved_status == 0) || (approved_status == 10 && type == 'scheduled' && active_status == 'A' && infoClass != 'completed')) { # 858 <div
class=
"dropdown">
859 <a href=
"\\#" class=
"dropdown-toggle" data-toggle=
"dropdown" aria-haspopup=
"true" aria-expanded=
"false"><?php echo $MC->msg(
"Action", HCU_DISPLAY_AS_JS); ?>
860 <span
class=
"caret"></span>
861 <ul
class=
"dropdown-menu" aria-labelledby=
"actionMenu">
863 # if (approved_status == 0) { # 864 # if (canApprove) { # 865 <li><a href=
"\\#" class=
"activityLink" data-action=
"approve"><?php echo $MC->msg(
"Approve", HCU_DISPLAY_AS_JS); ?></a></li>
866 <li><a href=
"\\#" class=
"activityLink" data-action=
"decline"><?php echo $MC->msg(
"Decline", HCU_DISPLAY_AS_JS); ?></a></li>
868 <li><a href=
"\\#" class=
"activityLink" data-action=
"cancel"><?php echo $MC->msg(
"Cancel", HCU_DISPLAY_AS_JS); ?></a></li>
870 # } else if (type == 'scheduled' && active_status == 'A' && interval == 'One Time') { # 871 <li><a href=
"\\#" class=
"activityLink" data-action=
"cancel"><?php echo $MC->msg(
"Cancel", HCU_DISPLAY_AS_JS); ?></a></li>
872 # } else if (type == 'scheduled' && active_status == 'A' && !canApprove) { # 873 <li><a href=
"\\#" class=
"activityLink" data-action=
"skip"><?php echo $MC->msg(
"Skip", HCU_DISPLAY_AS_JS); ?></a></li>
881 # if (approvedDescription != "") { # <?php // On pending approval, set this to empty string. ?> 882 <div
class=
"hidden-xs col-sm-6 showEllipsis">
883 <span
class=
"hcu-activity-fg-#:infoClass#"><span
class=
"control-label"> #: approvedDescription # </span></span>
905 <script type=
"text/x-kendo-template" id=
"headerTemplateTemplate">
906 <div
class=
"container hcu-all-100">
907 # if (grid == "pendingApproval") { # 908 <div
class=
"row hcuSpacer">
909 <div
class=
"col-xs-12">
910 <div
class=
"floatLeft h4"><?php echo $MC->msg(
"Pending Approval", HCU_DISPLAY_AS_JS); ?></div>
911 <div
class=
"floatRight"><div
id=
"featureDDL" class=
"hcu-all-100 showEllipsis"></div></div>
915 <div
class=
"row hcuSpacer">
916 <div
class=
"col-xs-6"><div
class=
"h4">
917 # if (grid == "scheduledTransactions") { # <?php echo $MC->msg("Scheduled Transactions", HCU_DISPLAY_AS_JS); ?> 918 # } else { # <?php echo $MC->msg("Prior Activity", HCU_DISPLAY_AS_JS); ?> # } #</div></div> 919 <div
class=
"col-xs-6"><div
class=
"floatRight"><a
class=
"showFilterBtn" href=
"\\\\#" data-isshow=
"true">
920 <?php echo $MC->msg(
"Show Filter", HCU_DISPLAY_AS_JS); ?>
921 <i
class=
'fa fa-caret-down'></i></a></div></div>
923 <div
class=
"row hcuSpacer filterDiv" style=
"display:none;">
924 <div
class=
"container hcu-all-100 hcu-nopadding">
925 <div
class=
"mainDiv"><div>
926 <div
class=
"row hcuSpacer">
927 <div
class=
"col-xs-12 col-md-8 col-lg-6 hcuSpacer">
928 <div
class=
"col-xs-12 col-sm-6 col-lg-6"><label><?php echo $MC->msg(
"Feature Transfer Type", HCU_DISPLAY_AS_JS); ?></label></div>
929 <div
class=
"col-xs-12 col-sm-6 col-lg-6"><div
id=
"filterTypeDDL#:grid#" class=
"hcu-all-100"></div></div>
931 <div
class=
"col-xs-12 col-md-4 col-lg-4 hcuSpacer">
932 <div
class=
"col-xs-12 col-sm-6 col-md-4 col-lg-4"><label><?php echo $MC->msg(
"Status", HCU_DISPLAY_AS_JS); ?></label></div>
933 # if (grid == "scheduledTransactions") { # 934 <div
class=
"col-xs-12 col-sm-6 col-md-8 col-lg-8"><div
id=
"statusActiveDDL#:grid#" class=
"hcu-all-100"></div></div>
936 <div
class=
"col-xs-12 col-sm-6 col-md-8 col-lg-8"><div
id=
"statusApprovalDDL#:grid#" class=
"hcu-all-100"></div></div>
940 <div
class=
"row hcuSpacer">
941 <div
class=
"col-xs-12 col-md-8 col-lg-6 hcuSpacer">
942 <div
class=
"col-xs-12 col-sm-6 col-lg-6"><label><?php echo $MC->msg(
"From", HCU_DISPLAY_AS_JS); ?></label></div>
943 <div
class=
"col-xs-12 col-sm-6 col-lg-6"><input
id=
"filterFrom#:grid#" class=
"hcu-all-100"></div>
945 <div
class=
"col-xs-12 col-md-4 col-lg-4 hcuSpacer">
946 <div
class=
"col-xs-12 col-sm-6 col-md-4 col-lg-4"><label><?php echo $MC->msg(
"To", HCU_DISPLAY_AS_JS); ?></label></div>
947 <div
class=
"col-xs-12 col-sm-6 col-md-8 col-lg-8"><input
id=
"filterTo#:grid#" class=
"hcu-all-100"></div>
951 <div
class=
"hcu-edit-buttons k-state-default">
952 <a
class=
"filterClearBtn" href=
"\\\\#"><?php echo $MC->msg(
"Clear Filter", HCU_DISPLAY_AS_JS); ?></a>
954 <a
class=
"filterApplyBtn k-button k-primary" href=
"\\\\#"><?php echo $MC->msg(
"Apply", HCU_DISPLAY_AS_JS); ?></a>
967 #featureDDL-list .k-item { 970 text-overflow: ellipsis !important;
976 .local-transfer-msg {
982 <div
class=
"container-fluid userActivityDiv hcu-all-100 hcu-template vsgPrimary">
984 <div
class=
"row hcuSpacer">
985 <h3
class=
"col-xs-12"><?php echo $MC->msg(
"User Activity", HCU_DISPLAY_AS_HTML); ?></h3>
987 <div
class=
"row hcuSpacer">
988 <div
id=
"formStatus" class=
"k-block k-error-colored col-xs-12" style=
"display:none"></div>
990 <?php
if ($showPendingApprovalGrid) { ?>
991 <div
class=
"pendingApprovalDiv activityGridDiv" data-grid=
"pendingApproval">
992 <div
class=
"row hcuSpacer">
993 <div
class=
"col-xs-12"><div
class=
"hcu-all-100 headlessGrid table userActivityGrid" id=
"pendingApprovalGrid"></div></div>
997 <div
class=
"scheduledTransactionsDiv activityGridDiv" data-grid=
"scheduledTransactions">
998 <div
class=
"row hcuSpacer">
999 <div
class=
"col-xs-12"><div
class=
"hcu-all-100 headlessGrid table userActivityGrid" id=
"scheduledTransactionsGrid"></div></div>
1002 <div
class=
"priorActivityDiv activityGridDiv" data-grid=
"priorActivity">
1003 <div
class=
"row hcuSpacer">
1004 <div
class=
"col-xs-12"><div
class=
"hcu-all-100 headlessGrid table userActivityGrid" id=
"priorActivityGrid"></div></div>