Correct export of Delivery Unit EON_EMOBILITY_VIRTA (42 files, replaces incomplete initial export)
This commit is contained in:
@@ -0,0 +1 @@
|
||||
BILLINGRUNUI
|
||||
@@ -0,0 +1 @@
|
||||
{"type":"mta","builders":{"default":"mtabuilder","configs":{}},"runners":{"configs":{}},"attributes":{"sap.watt.common.setting":["{\"generation\":[{\"templateId\":\"hanatemplates.hanamtaproject\",\"templateVersion\":\"1.0.0\",\"dateTimeStamp\":\"Fri, 08 Nov 2019 12:03:22 GMT\"}],\"translation\":{\"translationDomain\":\"\",\"supportedLanguages\":\"en,fr,de\",\"defaultLanguage\":\"en\",\"defaultI18NPropertyFile\":\"i18n.properties\",\"resourceModelName\":\"i18n\"},\"basevalidator\":{\"services\":{\"json\":\"jsonValidator\",\"xml\":\"xmlValidator\",\"js\":\"jsValidator\"}},\"build\":{\"targetFolder\":\"dist\",\"sourceFolder\":\"webapp\"}}"]},"mixinTypes":[]}
|
||||
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"exposed": true,
|
||||
"authentication": [{
|
||||
"method": "Form"
|
||||
}],
|
||||
|
||||
"mime_mapping": [{
|
||||
"extension": "jpg",
|
||||
"mimetype": "image/jpeg"
|
||||
}],
|
||||
"force_ssl": false,
|
||||
"enable_etags": true,
|
||||
"prevent_xsrf": true,
|
||||
"anonymous_connection": null,
|
||||
"cors": [{
|
||||
"enabled": false
|
||||
}],
|
||||
"cache_control": "no-cache, no-store",
|
||||
"default_file": "index.html"
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
description = "b1i saphanats03 server";
|
||||
host = "192.168.50.187";
|
||||
port = 8080;
|
||||
pathPrefix = "/B1iXcellerator/exec/ipo/vP.0010000105.in_HCSX/com.sap.b1i.vplatform.runtime/INB_HT_CALL_SYNC_XPT/INB_HT_CALL_SYNC_XPT.ipo/proc";
|
||||
proxyType = none;
|
||||
proxyHost = "localhost";
|
||||
proxyPort = 0;
|
||||
authType = none;
|
||||
useSSL = false;
|
||||
timeout = 0;
|
||||
@@ -0,0 +1,71 @@
|
||||
var ParDebug = false;
|
||||
var Billingrunmode = "ABC";
|
||||
var DateFrom = "";
|
||||
var DateTo = "";
|
||||
var BillingRunDate = "20190701";
|
||||
|
||||
|
||||
function doHTTPCallstartBillingrun(Billingrunmode,BillingRunDate,DateFrom,DateTo) {
|
||||
|
||||
//http://172.17.12.201:8080/B1iXcellerator/exec/ipo/vP.0010000104.in_HCSX/com.sap.b1i.vplatform.runtime/INB_HT_CALL_SYNC_XPT/INB_HT_CALL_SYNC_XPT.ipo/proc?biu=uni.eon.emob.addcdr&SysId=0010000100&CdrCallId=4aa9b243be184a4abdb4179f375459be
|
||||
|
||||
var destn_pkg = "uniorg.mrssporty.billingrunui.b1iwrapper";
|
||||
var dest_name = "B1I";
|
||||
|
||||
try
|
||||
|
||||
{
|
||||
|
||||
var dest = $.net.http.readDestination(destn_pkg, dest_name);
|
||||
var client = new $.net.http.Client();
|
||||
var req = new $.web.WebRequest($.net.http.GET, "");
|
||||
var oSysId = "0010000104";
|
||||
// oCdrCallId = "4aa9b243be184a4abdb4179f375459be";
|
||||
req.parameters.set("biu", "uni.msp.billing.run");
|
||||
//req.parameters.set("msglog", "true");
|
||||
req.parameters.set("function", "triggerbillingrun");
|
||||
req.parameters.set("SysId", oSysId);
|
||||
req.parameters.set("Billingrunmode", Billingrunmode);
|
||||
// req.parameters.set("DateFrom", DateFrom);
|
||||
// req.parameters.set("DateTo", DateTo);
|
||||
req.parameters.set("BillingRunDate", BillingRunDate);
|
||||
|
||||
|
||||
//, "/httpdest.png");
|
||||
|
||||
client.request(req, dest);
|
||||
|
||||
var response = client.getResponse();
|
||||
|
||||
var b1iResp = response.body.asString()
|
||||
|
||||
$.trace.debug("DEBUG Billingmode: " + Billingrunmode );
|
||||
|
||||
$.response.status = $.net.http.OK;
|
||||
|
||||
$.response.contentType = "text/xml";
|
||||
|
||||
$.response.setBody(b1iResp);
|
||||
|
||||
} catch (e) {
|
||||
|
||||
$.response.contentType = "text/plain";
|
||||
|
||||
$.response.setBody(e.message);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
if ($.request.parameters.get('Billingrunmode')) {
|
||||
Billingrunmode = $.request.parameters.get('Billingrunmode');
|
||||
}
|
||||
if ($.request.parameters.get('DateFrom')) {
|
||||
DateFrom = $.request.parameters.get('DateFrom');
|
||||
}
|
||||
if ($.request.parameters.get('DateTo')) {
|
||||
DateTo = $.request.parameters.get('DateTo');
|
||||
}
|
||||
if ($.request.parameters.get('BillingRunDate')) {
|
||||
BillingRunDate = $.request.parameters.get('BillingRunDate');
|
||||
}
|
||||
doHTTPCallstartBillingrun(Billingrunmode,BillingRunDate);
|
||||
@@ -0,0 +1,11 @@
|
||||
ID: UOBILLING
|
||||
_schema-version: '2.1'
|
||||
version: 0.0.1
|
||||
|
||||
modules:
|
||||
|
||||
|
||||
- name: BILLINGRUNUI
|
||||
type: html5
|
||||
path: BILLINGRUNUI
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"name": "uniorg-approuter",
|
||||
"engines": {
|
||||
"node": ">=4.0.0 <9.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"@sap/approuter": "5.13.0"
|
||||
},
|
||||
"scripts": {
|
||||
"start": "node node_modules/@sap/approuter/approuter.js"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
sap.ui.define([
|
||||
"sap/ui/core/UIComponent",
|
||||
"sap/ui/Device",
|
||||
"uniorg/eon/virtaportalui/model/models"
|
||||
], function (UIComponent, Device, models) {
|
||||
"use strict";
|
||||
|
||||
return UIComponent.extend("uniorg.eon.virtaportalui.Component", {
|
||||
|
||||
metadata: {
|
||||
manifest: "json"
|
||||
},
|
||||
|
||||
/**
|
||||
* The component is initialized by UI5 automatically during the startup of the app and calls the init method once.
|
||||
* @public
|
||||
* @override
|
||||
*/
|
||||
init: function () {
|
||||
// call the base component's init function
|
||||
UIComponent.prototype.init.apply(this, arguments);
|
||||
|
||||
// enable routing
|
||||
this.getRouter().initialize();
|
||||
|
||||
// set the device model
|
||||
this.setModel(models.createDeviceModel(), "device");
|
||||
}
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,437 @@
|
||||
sap.ui.define([
|
||||
'jquery.sap.global',
|
||||
'sap/ui/core/Fragment',
|
||||
'sap/m/MessageBox',
|
||||
'sap/m/MessagePopover',
|
||||
'sap/m/MessageItem',
|
||||
'sap/m/MessageToast',
|
||||
'sap/ui/core/message/Message',
|
||||
'sap/ui/core/MessageType',
|
||||
'sap/ui/core/Core',
|
||||
'sap/ui/core/mvc/Controller',
|
||||
'sap/ui/model/json/JSONModel',
|
||||
'sap/ui/core/Element'
|
||||
], function (jQuery,Fragment,MessageBox,MessagePopover, MessageItem, MessageToast, Message, MessageType,Core,Controller,JSONModel,Element) {
|
||||
"use strict";
|
||||
//Version 1.0.1
|
||||
var _timeout;
|
||||
var _myrunid;
|
||||
var _hostname = window.location.hostname;
|
||||
var _VersionInfo = '1.0.1';
|
||||
|
||||
|
||||
|
||||
return Controller.extend("uniorg.eon.virtaportalui.controller.View1", {
|
||||
onInit: function () {
|
||||
var oModel = new JSONModel("./localService/mockdata/FormsModel.json");
|
||||
|
||||
|
||||
this.oView = this.getView();
|
||||
this._MessageManager = Core.getMessageManager();
|
||||
this.oView.setModel(oModel);
|
||||
|
||||
// this._MessageManager.registerObject(this.oView.byId("formContainer"), true);
|
||||
this.oView.setModel(this._MessageManager.getMessageModel(),"message");
|
||||
|
||||
|
||||
this.createMessagePopover();
|
||||
},
|
||||
|
||||
convertmydate: function() {
|
||||
var mm = this.getMonth() + 1; // getMonth() is zero-based
|
||||
var dd = this.getDate();
|
||||
|
||||
return [this.getFullYear(),
|
||||
(mm>9 ? '' : '0') + mm,
|
||||
(dd>9 ? '' : '0') + dd
|
||||
].join('');
|
||||
},
|
||||
|
||||
// start messagepopover
|
||||
handleMessagePopoverPress: function (oEvent) {
|
||||
if (!this.oMP) {
|
||||
this.createMessagePopover();
|
||||
}
|
||||
this.oMP.toggle(oEvent.getSource());
|
||||
},
|
||||
|
||||
createMessagePopover: function () {
|
||||
var that = this;
|
||||
|
||||
this.oMP = new MessagePopover({
|
||||
activeTitlePress: function (oEvent) {
|
||||
var oItem = oEvent.getParameter("item"),
|
||||
oPage = that.oView.byId("messageHandlingPage"),
|
||||
oMessage = oItem.getBindingContext("message").getObject(),
|
||||
oControl = Element.registry.get(oMessage.getControlId());
|
||||
|
||||
if (oControl) {
|
||||
oPage.scrollToElement(oControl.getDomRef(), 200, [0, -100]);
|
||||
setTimeout(function(){
|
||||
oControl.focus();
|
||||
}, 300);
|
||||
}
|
||||
},
|
||||
items: {
|
||||
path:"message>/",
|
||||
template: new MessageItem(
|
||||
{
|
||||
title: "{message>message}",
|
||||
subtitle: "{message>additionalText}",
|
||||
groupName: {parts: [{path: 'message>controlIds'}], formatter: this.getGroupName},
|
||||
activeTitle: {parts: [{path: 'message>controlIds'}], formatter: this.isPositionable},
|
||||
type: "{message>type}",
|
||||
description: "{message>message}"
|
||||
})
|
||||
}
|
||||
});
|
||||
|
||||
this.oMP._oMessageView.setGroupItems(true);
|
||||
this.getView().byId("messagePopoverBtn").addDependent(this.oMP);
|
||||
},
|
||||
|
||||
getGroupName : function (sControlId) {
|
||||
// the group name is generated based on the current layout
|
||||
// and is specific for each use case
|
||||
var oControl = Element.registry.get(sControlId);
|
||||
|
||||
if (oControl) {
|
||||
var sFormSubtitle = oControl.getParent().getParent().getTitle().getText(),
|
||||
sFormTitle = oControl.getParent().getParent().getParent().getTitle();
|
||||
|
||||
return sFormTitle + ", " + sFormSubtitle;
|
||||
}
|
||||
},
|
||||
|
||||
isPositionable : function (sControlId) {
|
||||
// Such a hook can be used by the application to determine if a control can be found/reached on the page and navigated to.
|
||||
return sControlId ? true : true;
|
||||
},
|
||||
|
||||
onChange: function (oEvent) {
|
||||
var oInput = oEvent.getSource();
|
||||
|
||||
if (oInput.getRequired()) {
|
||||
this.handleRequiredField(oInput);
|
||||
}
|
||||
|
||||
if (oInput.getLabels()[0].getText() === "Standard Weekly Hours") {
|
||||
this.checkInputConstraints(oInput);
|
||||
}
|
||||
},
|
||||
|
||||
handleRequiredField: function (oInput) {
|
||||
var sTarget = oInput.getBindingContext().getPath() + "/" + oInput.getBindingPath("value");
|
||||
|
||||
this.removeMessageFromTarget(sTarget);
|
||||
|
||||
if (!oInput.getValue()) {
|
||||
this._MessageManager.addMessages(
|
||||
new Message({
|
||||
message: "A mandatory field is required",
|
||||
type: MessageType.Error,
|
||||
additionalText: oInput.getLabels()[0].getText(),
|
||||
target: sTarget,
|
||||
processor: this.getView().getModel()
|
||||
})
|
||||
);
|
||||
}
|
||||
},
|
||||
|
||||
checkInputConstraints: function (oInput) {
|
||||
var oBinding = oInput.getBinding("value"),
|
||||
sValueState = "None",
|
||||
sTarget = oInput.getBindingContext().getPath() + "/" + oInput.getBindingPath("value");
|
||||
|
||||
this.removeMessageFromTarget(sTarget);
|
||||
|
||||
try {
|
||||
oBinding.getType().validateValue(oInput.getValue());
|
||||
} catch (oException) {
|
||||
sValueState = "Warning";
|
||||
this._MessageManager.addMessages(
|
||||
new Message({
|
||||
message: "The value should not exceed 40",
|
||||
type: MessageType.Warning,
|
||||
additionalText: oInput.getLabels()[0].getText(),
|
||||
description: "The value of the working hours field should not exceed 40 hours.",
|
||||
target: sTarget,
|
||||
processor: this.getView().getModel()
|
||||
})
|
||||
);
|
||||
}
|
||||
|
||||
oInput.setValueState(sValueState);
|
||||
},
|
||||
|
||||
removeMessageFromTarget: function (sTarget) {
|
||||
this._MessageManager.getMessageModel().getData().forEach(function(oMessage){
|
||||
if (oMessage.target === sTarget) {
|
||||
this._MessageManager.removeMessages(oMessage);
|
||||
}
|
||||
}.bind(this));
|
||||
},
|
||||
|
||||
_generateInvalidUserInput: function () {
|
||||
var oButton = this.getView().byId("messagePopoverBtn"),
|
||||
oRequiredNameInput = this.oView.byId("formContainer").getItems()[4].getContent()[2],
|
||||
oNumericZipInput = this.oView.byId("formContainer").getItems()[5].getContent()[7],
|
||||
oEmailInput = this.oView.byId("formContainer").getItems()[6].getContent()[13],
|
||||
iWeeklyHours = this.oView.byId("formContainerEmployment").getItems()[0].getContent()[13];
|
||||
|
||||
oButton.setVisible(true);
|
||||
oRequiredNameInput.setValue(undefined);
|
||||
oNumericZipInput.setValue("AAA");
|
||||
oEmailInput.setValue("MariaFontes.com");
|
||||
iWeeklyHours.setValue(400);
|
||||
|
||||
this.handleRequiredField(oRequiredNameInput);
|
||||
this.checkInputConstraints(iWeeklyHours);
|
||||
|
||||
this.oMP.getBinding("items").attachChange(function(oEvent){
|
||||
this.oMP._oMessageView.navigateBack();
|
||||
}.bind(this));
|
||||
|
||||
setTimeout(function(){
|
||||
this.oMP.openBy(oButton);
|
||||
}.bind(this), 100);
|
||||
},
|
||||
|
||||
|
||||
// ende messagpopover
|
||||
|
||||
|
||||
closeMyOpenDialog: function (oEvent) {
|
||||
this._dialog.close();
|
||||
},
|
||||
|
||||
|
||||
onOpenDialog: function (oEvent) {
|
||||
// instantiate dialog
|
||||
if (!this._dialog) {
|
||||
this._dialog = sap.ui.xmlfragment("uniorg.eon.virtaportalui.view.BusyDialog", this);
|
||||
this.getView().addDependent(this._dialog);
|
||||
}
|
||||
|
||||
// open dialog
|
||||
jQuery.sap.syncStyleClass("sapUiSizeCompact", this.getView(), this._dialog);
|
||||
this._dialog.open();
|
||||
|
||||
// simulate end of operation
|
||||
/* _timeout = jQuery.sap.delayedCall(3000, this, function () {
|
||||
this._dialog.close();
|
||||
});*/
|
||||
},
|
||||
|
||||
onDialogClosed: function (oEvent) {
|
||||
jQuery.sap.clearDelayedCall(_timeout);
|
||||
|
||||
if (oEvent.getParameter("cancelPressed")) {
|
||||
MessageToast.show("The operation has been cancelled");
|
||||
} else {
|
||||
MessageToast.show("The operation has been completed");
|
||||
}
|
||||
},
|
||||
|
||||
callb1iphase1: function (myMode,myBookingdate,oEvent) {
|
||||
|
||||
var that = this;
|
||||
var myMode = this.getView().byId("box0").getValue();
|
||||
var myDateFrom = this.getView().byId("picker0").getValue();
|
||||
var myDateTo = this.getView().byId("picker1").getValue();
|
||||
// var myDuedate = this.getView().byId("picker1").getValue();
|
||||
console.log("mymode ist:" + myMode);
|
||||
var today = new Date();
|
||||
|
||||
var parts = myDateFrom.split('.');
|
||||
var parts2 = myDateTo.split('.');
|
||||
var PageSize = 200;
|
||||
// Please pay attention to the month (parts[1]); JavaScript counts months from 0:
|
||||
// January - 0, February - 1, etc.
|
||||
//var mynewdate = new Date(parts[0], parts[1] - 1, parts[2]);
|
||||
myDateFrom = parts[2] + parts[1] + parts[0];
|
||||
myDateTo = parts2[2] + parts2[1] + parts2[0];
|
||||
//var oInput = oEvent.getSource();
|
||||
//var sTarget = oInput.getBindingContext().getPath() + "/" + oInput.getBindingPath("value");
|
||||
|
||||
var myurl ="";
|
||||
if (myMode=='EMP')
|
||||
{
|
||||
myurl = "https://" + _hostname + ":4300/uniorg/eon/virta/v1/getemptrans.xsjs";
|
||||
}
|
||||
if (myMode=='CPO')
|
||||
{
|
||||
myurl = "https://" + _hostname + ":4300/uniorg/eon/virta/v1/getcpotrans.xsjs";
|
||||
}
|
||||
|
||||
var responsephase1 =$.ajax({
|
||||
type: "GET",
|
||||
// data: "POST CONTENT DATA",
|
||||
crossDomain: true,
|
||||
url: myurl,
|
||||
data: {'debug' : true, 'pageSize':PageSize,'DateFrom':myDateFrom,'DateTo':myDateTo,'Billingrunmode':myMode},
|
||||
contentType: "application/json",
|
||||
timeout: 3600000,
|
||||
success: function(result) {
|
||||
that._dialog.close();
|
||||
var bCompact = !!that.getView().$().closest(".sapUiSizeCompact").length;
|
||||
//var xmlDoc = jQuery.parseXML(responsephase1.responseText);
|
||||
//console.log(xmlDoc.childNodes[0].childNodes[1].innerHTML);
|
||||
console.log(responsephase1.responseText);
|
||||
var retrunid = "xxx";
|
||||
var iserror = false;
|
||||
if (retrunid.toString().length > 40){
|
||||
iserror = true;
|
||||
}
|
||||
var encodedResponse = responsephase1.responseJSON;
|
||||
console.log(encodedResponse);
|
||||
|
||||
if (!iserror)
|
||||
{
|
||||
sap.m.MessageBox.information("Data Download finished", {
|
||||
title: "run finished",
|
||||
id: "messageBoxId1",
|
||||
details: encodedResponse,
|
||||
//styleClass: bCompact ? "sapUiSizeCompact" : "",
|
||||
contentWidth: "1000px"
|
||||
|
||||
});
|
||||
that._MessageManager.addMessages(
|
||||
new Message({
|
||||
message: "run finished ID:" + retrunid,
|
||||
type: MessageType.Information,
|
||||
additionalText: encodedResponse
|
||||
// target: sTarget
|
||||
// processor: mythis.getView().getModel()
|
||||
})
|
||||
);
|
||||
|
||||
}
|
||||
else {
|
||||
sap.m.MessageBox.information("run failure", {
|
||||
title: "Error at run",
|
||||
id: "messageBoxId1",
|
||||
details: encodedResponse,
|
||||
styleClass: "sapUiSizeCompact",
|
||||
contentWidth: "1000px"
|
||||
});
|
||||
that._MessageManager.addMessages(
|
||||
new Message({
|
||||
message: "Failure at Http Call",
|
||||
type: MessageType.Error,
|
||||
additionalText: encodedResponse
|
||||
// target: sTarget
|
||||
// processor: mythis.getView().getModel()
|
||||
})
|
||||
);
|
||||
}
|
||||
return retrunid;
|
||||
},
|
||||
error: function(response) {
|
||||
that._dialog.close();
|
||||
/* var encodedResponse = responsephase1.responseText.replace(/&/g, '&')
|
||||
.replace(/</g, '<')
|
||||
.replace(/>/g, '>')
|
||||
.replace(/"/g, '"')
|
||||
.replace(/'/g, ''');
|
||||
console.log(encodedResponse);*/
|
||||
|
||||
//var bCompact = !!this.getView().$().closest(".sapUiSizeCompact").length;
|
||||
// var retrunid = xmlDoc.childNodes[0].childNodes[1].innerHTML;
|
||||
// this.closeMyOpenDialog;
|
||||
sap.m.MessageBox.error("Error in HTTP CALL", {
|
||||
title: "Error in HTTPCALL",
|
||||
id: "messageBoxId1",
|
||||
details: response,
|
||||
styleClass: "sapUiSizeCompact",
|
||||
contentWidth: "1000px"
|
||||
});
|
||||
|
||||
return "";
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
|
||||
pushthebutton: function (oEvent) {
|
||||
//This code was generated by the layout editor.
|
||||
|
||||
var myMode = this.getView().byId("box0").getValue();
|
||||
var myDateFrom = this.getView().byId("picker0").getValue();
|
||||
var myDateTo = this.getView().byId("picker1").getValue();
|
||||
// var myDuedate = this.getView().byId("picker1").getValue();
|
||||
console.log("mymode ist:" + myMode);
|
||||
var today = new Date();
|
||||
|
||||
|
||||
// myBookingdate = today.toISOString().substring(0, 10);
|
||||
var myMode = this.getView().byId("box0").getValue();
|
||||
var myBookingdate = this.getView().byId("picker0").getValue();
|
||||
// var myDuedate = this.getView().byId("picker1").getValue();
|
||||
console.log("mymode ist:" + myMode);
|
||||
var isError = false;
|
||||
|
||||
|
||||
if (myMode.toString().length == 0)
|
||||
{
|
||||
isError = true;
|
||||
var msgtxt="empty Mode please select a value";
|
||||
MessageToast.show(msgtxt);
|
||||
this._MessageManager.addMessages(
|
||||
new Message({
|
||||
message: msgtxt,
|
||||
type: MessageType.Error,
|
||||
additionalText: myMode
|
||||
// target: sTarget
|
||||
// processor: mythis.getView().getModel()
|
||||
})
|
||||
);
|
||||
}
|
||||
|
||||
if (myDateFrom.toString().length > 0 && myDateTo.toString().length > 0 ){
|
||||
|
||||
var today = new Date();
|
||||
var parts = myDateFrom.split('.');
|
||||
var parts2 = myDateTo.split('.');
|
||||
// Please pay attention to the month (parts[1]); JavaScript counts months from 0:
|
||||
// January - 0, February - 1, etc.
|
||||
//var mynewdate = new Date(parts[0], parts[1] - 1, parts[2]);
|
||||
myDateFrom = "20" + parts[2] + parts[1] + parts[0];
|
||||
myDateTo = "20" + parts2[2] + parts2[1] + parts2[0];
|
||||
}
|
||||
else {
|
||||
isError= true;
|
||||
var msgtxt="empty From or To Date please select a value";
|
||||
MessageToast.show(msgtxt);
|
||||
this._MessageManager.addMessages(
|
||||
new Message({
|
||||
message: msgtxt,
|
||||
type: MessageType.Error,
|
||||
additionalText: myMode
|
||||
// target: sTarget
|
||||
// processor: mythis.getView().getModel()
|
||||
})
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
|
||||
if (!isError)
|
||||
{
|
||||
this.onOpenDialog(oEvent);
|
||||
var mycrrundid = this.callb1iphase1(myMode,myBookingdate,oEvent);
|
||||
console.log("Ergebnis functionhttpcall phase1: " + mycrrundid);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1 @@
|
||||
/* Enter your custom styles here */
|
||||
@@ -0,0 +1,4 @@
|
||||
title=VIRTA PORTAL INTERFACE
|
||||
appTitle=VIRTAPORTAL LOADER
|
||||
appDescription=App Description
|
||||
VersionInfo=1.0.7
|
||||
@@ -0,0 +1,35 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||
<meta charset="UTF-8">
|
||||
|
||||
<title>BILLINGRUNUI</title>
|
||||
|
||||
<script id="sap-ui-bootstrap"
|
||||
src="https://sapui5.hana.ondemand.com/resources/sap-ui-core.js"
|
||||
data-sap-ui-libs="sap.m"
|
||||
data-sap-ui-theme="sap_bluecrystal"
|
||||
data-sap-ui-compatVersion="edge"
|
||||
data-sap-ui-resourceroots='{"uniorg.eon.virtaportalui": "./"}'>
|
||||
</script>
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="css/style.css">
|
||||
|
||||
<script>
|
||||
sap.ui.getCore().attachInit(function() {
|
||||
new sap.m.Shell({
|
||||
app: new sap.ui.core.ComponentContainer({
|
||||
height : "100%",
|
||||
name : "uniorg.eon.virtaportalui"
|
||||
})
|
||||
}).placeAt("content");
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body class="sapUiBody" id="content">
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,158 @@
|
||||
{
|
||||
"forms": [
|
||||
{
|
||||
"name": "Julie Armstrong",
|
||||
"street": {
|
||||
"name": "Mainstreet",
|
||||
"number": 1278
|
||||
},
|
||||
"zip": {
|
||||
"code": 12345,
|
||||
"city": "Maintown"
|
||||
},
|
||||
"country": "Germany",
|
||||
"email": "Julie.Armstrong@company.com",
|
||||
"phone": {
|
||||
"number": "+1 (610) 661-1000",
|
||||
"time": "12:00"
|
||||
},
|
||||
"website": "n/a"
|
||||
},
|
||||
{
|
||||
"name": "Denise Smith",
|
||||
"street": {
|
||||
"name": "Mainstreet",
|
||||
"number": 1567
|
||||
},
|
||||
"zip": {
|
||||
"code": 12345,
|
||||
"city": "Maintown"
|
||||
},
|
||||
"country": "Germany",
|
||||
"email": "Denise.Smith@company.com",
|
||||
"phone": {
|
||||
"number": "+1 (610) 661-1000",
|
||||
"time": "12:00"
|
||||
},
|
||||
"website": "n/a"
|
||||
},
|
||||
{
|
||||
"name": "Richard Wilson",
|
||||
"street": {
|
||||
"name": "Mainstreet",
|
||||
"number": 2984
|
||||
},
|
||||
"zip": {
|
||||
"code": 12345,
|
||||
"city": "Maintown"
|
||||
},
|
||||
"country": "Germany",
|
||||
"email": "Richard.Wilson@company.com",
|
||||
"phone": {
|
||||
"number": "+1 (610) 661-1000",
|
||||
"time": "12:00"
|
||||
},
|
||||
"website": "n/a"
|
||||
},
|
||||
{
|
||||
"name": "Gerd Becker",
|
||||
"street": {
|
||||
"name": "Mainstreet",
|
||||
"number": 3614
|
||||
},
|
||||
"zip": {
|
||||
"code": 12345,
|
||||
"city": "Maintown"
|
||||
},
|
||||
"country": "Germany",
|
||||
"email": "Gerd.Becker@company.com",
|
||||
"phone": {
|
||||
"number": "+1 (610) 661-1000",
|
||||
"time": "12:00"
|
||||
},
|
||||
"website": "n/a"
|
||||
},
|
||||
{
|
||||
"name": "John Miller",
|
||||
"street": {
|
||||
"name": "Mainstreet",
|
||||
"number": 1618
|
||||
},
|
||||
"zip": {
|
||||
"code": "AAA",
|
||||
"city": "Maintown"
|
||||
},
|
||||
"country": "Germany",
|
||||
"email": "John.Miller@company.com",
|
||||
"phone": {
|
||||
"number": "+1 (610) 661-1000",
|
||||
"time": "12:00"
|
||||
},
|
||||
"website": "n/a"
|
||||
},
|
||||
{
|
||||
"name": "Stefan Bosch",
|
||||
"street": {
|
||||
"name": "Mainstreet",
|
||||
"number": 4864
|
||||
},
|
||||
"zip": {
|
||||
"code": 12345,
|
||||
"city": "Maintown"
|
||||
},
|
||||
"country": "Germany",
|
||||
"email": "Stefan.Bosch@company.com",
|
||||
"phone": {
|
||||
"number": "+1 (610) 661-1000",
|
||||
"time": "12:00"
|
||||
},
|
||||
"website": "n/a"
|
||||
},
|
||||
{
|
||||
"name": "Maria Fontes",
|
||||
"street": {
|
||||
"name": "Mainstreet",
|
||||
"number": 4864
|
||||
},
|
||||
"zip": {
|
||||
"code": 12345,
|
||||
"city": "Maintown"
|
||||
},
|
||||
"country": "Germany",
|
||||
"email": "",
|
||||
"phone": {
|
||||
"number": "+1 (610) 661-1000",
|
||||
"time": "12:00"
|
||||
},
|
||||
"website": "MariaFontescompany.com"
|
||||
},
|
||||
{
|
||||
"name": "Antonio Ferrari",
|
||||
"street": {
|
||||
"name": "Mainstreet",
|
||||
"number": 2598
|
||||
},
|
||||
"zip": {
|
||||
"code": 12345,
|
||||
"city": "Maintown"
|
||||
},
|
||||
"country": "Germany",
|
||||
"email": "Antonio.Ferrari@company.com",
|
||||
"phone": {
|
||||
"number": "+1 (610) 661-1000",
|
||||
"time": "12:00"
|
||||
},
|
||||
"website": "n/a"
|
||||
}
|
||||
],
|
||||
"employment": [
|
||||
{
|
||||
"jobTitle": "Senior UI Developer (UIDEV-SR)",
|
||||
"payGrade": "Salary Grade 18 (GR-14",
|
||||
"unit": "ABC",
|
||||
"class": "Employee",
|
||||
"fte": 1,
|
||||
"weeklyHours": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,97 @@
|
||||
{
|
||||
"_version": "1.5.0",
|
||||
"sap.app": {
|
||||
"id": "uniorg.eon.virtaportalui",
|
||||
"type": "application",
|
||||
"i18n": "i18n/i18n.properties",
|
||||
"applicationVersion": {
|
||||
"version": "1.0.0"
|
||||
},
|
||||
"title": "{{appTitle}}",
|
||||
"description": "{{appDescription}}",
|
||||
"sourceTemplate": {
|
||||
"id": "hanatemplates.basicSAPUI5ApplicationProject",
|
||||
"version": "0.0.0"
|
||||
}
|
||||
},
|
||||
|
||||
"sap.ui": {
|
||||
"technology": "UI5",
|
||||
"icons": {
|
||||
"icon": "",
|
||||
"favIcon": "",
|
||||
"phone": "",
|
||||
"phone@2": "",
|
||||
"tablet": "",
|
||||
"tablet@2": ""
|
||||
},
|
||||
"deviceTypes": {
|
||||
"desktop": true,
|
||||
"tablet": true,
|
||||
"phone": true
|
||||
},
|
||||
"supportedThemes": [
|
||||
"sap_hcb",
|
||||
"sap_bluecrystal"
|
||||
]
|
||||
},
|
||||
|
||||
"sap.ui5": {
|
||||
"rootView": {
|
||||
"viewName": "uniorg.eon.virtaportalui.view.View1",
|
||||
"type": "XML"
|
||||
},
|
||||
"dependencies": {
|
||||
"minUI5Version": "1.30.0",
|
||||
"libs": {
|
||||
"sap.ui.core": {},
|
||||
"sap.m": {},
|
||||
"sap.ui.layout": {},
|
||||
"sap.ushell": {},
|
||||
"sap.collaboration": {},
|
||||
"sap.ui.comp": {},
|
||||
"sap.uxap": {}
|
||||
}
|
||||
},
|
||||
"contentDensities": {
|
||||
"compact": true,
|
||||
"cozy": true
|
||||
},
|
||||
"models": {
|
||||
"i18n": {
|
||||
"type": "sap.ui.model.resource.ResourceModel",
|
||||
"settings": {
|
||||
"bundleName": "uniorg.eon.virtaportalui.i18n.i18n"
|
||||
}
|
||||
}
|
||||
},
|
||||
"resources": {
|
||||
"css": [{
|
||||
"uri": "css/style.css"
|
||||
}]
|
||||
},
|
||||
"routing": {
|
||||
"config": {
|
||||
"routerClass": "sap.m.routing.Router",
|
||||
"viewType": "XML",
|
||||
"async": true,
|
||||
"viewPath": "uniorg.eon.virtaportalui.view",
|
||||
"controlAggregation": "pages",
|
||||
"controlId": "idAppControl"
|
||||
},
|
||||
"routes": [{
|
||||
"name": "RouteView1",
|
||||
"pattern": "RouteView1",
|
||||
"target": ["TargetView1"]
|
||||
}],
|
||||
"targets": {
|
||||
"TargetView1": {
|
||||
"viewType": "XML",
|
||||
"transition": "slide",
|
||||
"clearAggregation": true,
|
||||
"viewName": "View1"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
sap.ui.define([
|
||||
"sap/ui/model/json/JSONModel",
|
||||
"sap/ui/Device"
|
||||
], function (JSONModel, Device) {
|
||||
"use strict";
|
||||
|
||||
return {
|
||||
|
||||
createDeviceModel: function () {
|
||||
var oModel = new JSONModel(Device);
|
||||
oModel.setDefaultBindingMode("OneWay");
|
||||
return oModel;
|
||||
}
|
||||
|
||||
};
|
||||
});
|
||||
@@ -0,0 +1,9 @@
|
||||
<core:FragmentDefinition
|
||||
xmlns="sap.m"
|
||||
xmlns:core="sap.ui.core">
|
||||
<BusyDialog
|
||||
title="Portal Downloader"
|
||||
text="... Download started ..."
|
||||
showCancelButton="true"
|
||||
close="onDialogClosed"/>
|
||||
</core:FragmentDefinition>
|
||||
@@ -0,0 +1,28 @@
|
||||
<mvc:View
|
||||
controllerName="sap.m.sample.MessageBoxInfo.controller.MessageBoxInfo"
|
||||
xmlns:l="sap.ui.layout"
|
||||
xmlns:mvc="sap.ui.core.mvc"
|
||||
xmlns="sap.m">
|
||||
<l:VerticalLayout
|
||||
class="sapUiContentPadding"
|
||||
setwidth="50"
|
||||
width="100%">
|
||||
<l:content>
|
||||
<Button
|
||||
text="Show Details - Text"
|
||||
class="sapUiSmallMarginBottom"
|
||||
press="showTextInfo"
|
||||
width="500px"/>
|
||||
<Button
|
||||
text="Show Details - FormattedText"
|
||||
class="sapUiSmallMarginBottom"
|
||||
press="showFormattedTextInfo"
|
||||
width="500px"/>
|
||||
<Button
|
||||
text="Show Details - JSON"
|
||||
class="sapUiSmallMarginBottom"
|
||||
press="showJSONInfo"
|
||||
width="500px"/>
|
||||
</l:content>
|
||||
</l:VerticalLayout>
|
||||
</mvc:View>
|
||||
@@ -0,0 +1,44 @@
|
||||
<mvc:View controllerName="uniorg.eon.virtaportalui.controller.View1" xmlns:mvc="sap.ui.core.mvc" xmlns:html="http://www.w3.org/1999/xhtml"
|
||||
displayBlock="true" xmlns="sap.m">
|
||||
<App id="idAppControl">
|
||||
<pages>
|
||||
<Page id="messageHandlingPage" title="{i18n>title} V{i18n>VersionInfo}">
|
||||
<content>
|
||||
<Panel width="auto" class="sapUiResponsiveMargin" accessibleRole="Region">
|
||||
<headerToolbar>
|
||||
<OverflowToolbar height="3rem">
|
||||
<Title text="{i18n>title}"/>
|
||||
<ToolbarSpacer />
|
||||
<Button icon="sap-icon://settings" />
|
||||
<Button icon="sap-icon://drop-down-list" />
|
||||
</OverflowToolbar>
|
||||
</headerToolbar>
|
||||
<Label id="label1" text="VIRTA DATA LOADER" width="50%" design="Bold" textAlign="Left" vAlign="Middle"/>
|
||||
<ComboBox xmlns="sap.m" id="box0" width="60%">
|
||||
<items>
|
||||
<core:Item xmlns:core="sap.ui.core" key="EMP" text="EMP" id="item0"/>
|
||||
<core:Item xmlns:core="sap.ui.core" key="CPO" text="CPO" id="item1"/>
|
||||
</items>
|
||||
</ComboBox>
|
||||
<Label id="label2" text="Define Range" width="60%" design="Bold" textAlign="Left" vAlign="Middle"/>
|
||||
<DatePicker xmlns="sap.m" id="picker0" name="StartDate" required="true" maxWidth="50%" tooltip="Start Date" valueFormat="dd.MM.yyyy"/>
|
||||
<DatePicker xmlns="sap.m" id="picker1" name="EndDate" required="true" maxWidth="50%" tooltip="End Date" valueFormat="dd.MM.yyyy"/>
|
||||
<Button xmlns="sap.m" text="get Data" id="button0" press="pushthebutton"/>
|
||||
</Panel>
|
||||
</content>
|
||||
<footer>
|
||||
<OverflowToolbar>
|
||||
<Button id="messagePopoverBtn" icon="sap-icon://message-popup" type="Emphasized"
|
||||
text="{=${message>/}.length}"
|
||||
visible="{=!!${message>/}.length}"
|
||||
press="handleMessagePopoverPress"/>
|
||||
<ToolbarSpacer/>
|
||||
<!-- <Button type="Emphasized" text="Save" press="_generateInvalidUserInput" />
|
||||
<Button text="Cancel" /> -->
|
||||
</OverflowToolbar>
|
||||
</footer>
|
||||
</Page>
|
||||
</pages>
|
||||
|
||||
</App>
|
||||
</mvc:View>
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"welcomeFile": "webapp/index.html",
|
||||
"authenticationMethod": "none",
|
||||
"routes": []
|
||||
}
|
||||
Reference in New Issue
Block a user