<mvc:View xmlns:controls="sap.viz.ui5.controls"
            xmlns:table="sap.ui.table"
            controllerName="slsordage.controller.Header"
            xmlns:mvc="sap.ui.core.mvc"
            displayBlock="true"
            xmlns:core="sap.ui.core"
            xmlns="sap.m"
            xmlns:f="sap.ui.layout.form"
            xmlns:l="sap.ui.layout"
            xmlns:Fragment="sap.ui.core.Fragment"
            xmlns:smartFilterBar="sap.ui.comp.smartfilterbar"
            xmlns:smartTable="sap.ui.comp.smarttable"
            xmlns:app="sap.ui.app">
 
    <Page id="page"
          title="{i18n>header}"
          showHeader="false"
          enableScrolling="true"
          class="sapUiContentPadding f2mPage"
          showNavButton="false">
 
        <!-- ============================================================ -->
        <!-- HEADER BRAND BAR                                              -->
        <!-- ============================================================ -->
        <Bar class="f2mBrandBar sapUiTinyMarginBottom" design="Header">
            <contentLeft>
                <HBox alignItems="Center" class="sapUiTinyMarginBegin">
                    <core:Icon src="sap-icon://sales-order" size="1.25rem" class="f2mBrandIcon sapUiTinyMarginEnd"/>
                    <Title text="{i18n>header}" level="H3" titleStyle="H4" class="f2mBrandTitle"/>
                </HBox>
            </contentLeft>
            <contentRight>
                <ObjectStatus text="Sales Order Age" state="Information" icon="sap-icon://hint" class="sapUiTinyMarginEnd"/>
            </contentRight>
        </Bar>
 
        <IconTabBar
            id="idIconTabBar"
            select=".onFilterSelect"
            backgroundDesign="Transparent"
            headerBackgroundDesign="Solid"
            tabDensityMode="Compact"
            class="sapUiResponsivePadding--header sapUiResponsivePadding--content f2mTabBar">
 
            <items>
 
                <!-- ============================================================ -->
                <!-- TAB: Crea Ordine (E-REPS)                                    -->
                <!-- ============================================================ -->
                <IconTabFilter
                    icon="sap-icon://sales-order"
                    iconColor="Positive"
                    count="{/headerSet/Counts}"
                    text="{i18n>e-reps}"
                    key="Order"
                    design="Vertical">
 
                    <content>
                        <VBox fitContainer="true" class="f2mTabContent">
                            <Panel expandable="false" backgroundDesign="Transparent" class="f2mSectionPanel sapUiNoContentPadding">
                                <headerToolbar>
                                    <Toolbar design="Transparent" class="f2mSectionToolbar">
                                        <core:Icon src="sap-icon://sales-order" color="#107e3e" class="sapUiTinyMarginBegin sapUiTinyMarginEnd"/>
                                        <Title text="{i18n>e-reps}" level="H4"/>
                                        <ToolbarSpacer/>
                                    </Toolbar>
                                </headerToolbar>
 
                                <Table
                                    id="SalesOrderHeader"
                                    items="{orders>/orders}"
                                    growing="true"
                                    growingThreshold="25"
                                    alternateRowColors="true"
                                    sticky="ColumnHeaders,HeaderToolbar"
                                    class="f2mDataTable"
                                    mode="MultiSelect">
                                    <columns>
                                        <Column id="headerColOrd" minScreenWidth="Tablet" importance="High">
                                            <Text id="headerTextOrd" text="{i18n>Vbeln}"/>
                                        </Column>
                                        <Column id="headerColType" minScreenWidth="Tablet" demandPopin="true">
                                            <Text id="headerTextType" text="{i18n>Auart}"/>
                                        </Column>
                                        <Column id="headerColListino" minScreenWidth="Tablet" demandPopin="true">
                                            <Text id="headerTextListino" text="{i18n>Pltyp}"/>
                                        </Column>
                                        <Column id="headerColSoldTo" minScreenWidth="Tablet" demandPopin="true" hAlign="End" importance="High">
                                            <Text id="headerTextSoldTo" text="{i18n>Sold-To}"/>
                                        </Column>
                                        <Column id="headerColShipTo" minScreenWidth="Tablet" hAlign="End" importance="High" demandPopin="true">
                                            <Text id="headerTextShipTo" text="{i18n>Ship-To}"/>
                                        </Column>
                                        <Column id="headerColAmount" minScreenWidth="Tablet" hAlign="End" importance="High" demandPopin="true">
                                            <Text id="headerTextAmount" text="{i18n>Amount}"/>
                                        </Column>
                                        <Column id="headerColNotes" minScreenWidth="Tablet" hAlign="Center">
                                            <Text id="headerTextNotes" text="{i18n>Notes}"/>
                                        </Column>
                                    </columns>
                                    <items>
                                        <ColumnListItem id="header"
                                                        type="Navigation"
                                                        vAlign="Middle"
                                                        press="onPress"
                                                        selected="false">
                                            <cells>
                                                <Text id="headerVbeln" text="{orders>ext_order_id}"/>
                                                <Text id="headerAuart" text="{orders>auart}"/>
                                                <Text id="headerPltyp" text="{orders>pltyp}"/>
 
                                                <ObjectIdentifier
                                                    id="headerObjKunag"
                                                    title="{orders>kunag}"
                                                    text=""/>
 
                                                <ObjectIdentifier
                                                    id="headerObjKunwe"
                                                    title="{orders>kunwe}"
                                                    text=""/>
 
                                                <ObjectNumber
                                                    id="headerAmount"
                                                    number="{
                                                        parts:[{path:'orders>netwr'},{path:'orders>waerk'}],
                                                        type: 'sap.ui.model.type.Currency',
                                                        formatOptions: {showMeasure: false}
                                                    }"
                                                    unit="{orders>waerk}"
                                                    state="Information"
                                                    class="sapUiSmallMarginBottom"
                                                    inverted="true"/>
 
                                                <core:Icon
                                                    src="{ path: 'orders>notes', formatter: '.getIconNotes' }"
                                                    class="size2"
                                                    color="#64E4CE"
                                                    press="onPressNotes">
                                                </core:Icon>
 
                                            </cells>
                                        </ColumnListItem>
                                    </items>
                                </Table>
                            </Panel>
                        </VBox>
                    </content>
                </IconTabFilter>
 
                <!-- ============================================================ -->
                <!-- TAB: Crea Ordine Parti di Ricambio (Spare Parts)             -->
                <!-- ============================================================ -->
                <IconTabFilter
                    icon="sap-icon://journey-change"
                    iconColor="Critical"
                    count="{/headerSet/Counts}"
                    text="{i18n>e-spare}"
                    key="SpareParts"
                    design="Vertical">
 
                    <content>
                        <VBox fitContainer="true" class="f2mTabContent">
                            <Panel expandable="false" backgroundDesign="Transparent" class="f2mSectionPanel sapUiNoContentPadding">
                                <headerToolbar>
                                    <Toolbar design="Transparent" class="f2mSectionToolbar">
                                        <core:Icon src="sap-icon://journey-change" color="#e9730c" class="sapUiTinyMarginBegin sapUiTinyMarginEnd"/>
                                        <Title text="{i18n>e-spare}" level="H4"/>
                                        <ToolbarSpacer/>
                                    </Toolbar>
                                </headerToolbar>
 
                                <Table
                                    id="SparePartsHeader"
                                    items="{orders>/orders}"
                                    growing="true"
                                    growingThreshold="25"
                                    alternateRowColors="true"
                                    sticky="ColumnHeaders,HeaderToolbar"
                                    class="f2mDataTable"
                                    mode="MultiSelect">
                                    <columns>
                                        <Column id="SPheaderColVbeln" width="12em" minScreenWidth="Tablet" importance="High">
                                            <Text id="SPheaderVbelnText" text="{i18n>Vbeln}"/>
                                        </Column>
                                        <Column id="SPheaderColType" minScreenWidth="Tablet" demandPopin="true">
                                            <Text id="SPheaderTextType" text="{i18n>Auart}"/>
                                        </Column>
                                        <Column id="SPheaderColListino" minScreenWidth="Tablet" demandPopin="true">
                                            <Text id="SPheaderTextListino" text="{i18n>Pltyp}"/>
                                        </Column>
                                        <Column id="SPheaderSoldTo" minScreenWidth="Tablet" demandPopin="true" hAlign="End" importance="High">
                                            <Text id="SPheaderSoldToText" text="{i18n>Sold-To}"/>
                                        </Column>
                                        <Column id="SPheaderShipTo" minScreenWidth="Tablet" demandPopin="true" hAlign="End" importance="High">
                                            <Text id="SPheaderShipToText" text="{i18n>Ship-To}"/>
                                        </Column>
                                        <Column id="SPheaderColAmount" hAlign="End" minScreenWidth="Tablet" demandPopin="true" importance="High">
                                            <Text id="SPheaderTextAmount" text="{i18n>Amount}"/>
                                        </Column>
                                        <Column id="SPheaderColNotes" hAlign="Center" minScreenWidth="Tablet">
                                            <Text id="SPheaderTextNotes" text="{i18n>Notes}"/>
                                        </Column>
                                    </columns>
                                    <items>
                                        <ColumnListItem id="SPheader"
                                                        type="Navigation"
                                                        vAlign="Middle"
                                                        press="onPress"
                                                        selected="false">
                                            <cells>
                                                <ObjectIdentifier id="SPheaderObjId1" title="Ordine" text="{orders>ext_order_id}"/>
                                                <Text id="SPheaderAuart" text="{orders>auart}"/>
                                                <Text id="SPheaderPltyp" text="{orders>pltyp}"/>
                                                <ObjectIdentifier id="SPheaderKunag" title="{orders>kunag}" text="{orders>kunag_name}"/>
                                                <ObjectIdentifier id="SPheaderKunwe" title="{orders>kunwe}" text="{orders>kunwe_name}"/>
                                                <ObjectNumber
                                                    id="SPheaderAmount"
                                                    number="{
                                                        parts:[{path:'orders>netwr'},{path:'orders>waerk'}],
                                                        type: 'sap.ui.model.type.Currency',
                                                        formatOptions: {showMeasure: false}
                                                    }"
                                                    unit="{orders>waerk}"
                                                    state="Information"
                                                    class="sapUiSmallMarginBottom"
                                                    inverted="true"/>
                                                <core:Icon
                                                    src="{ path: 'orders>Notes', formatter: '.getIconNotes' }"
                                                    class="size2"
                                                    color="#64E4CE"
                                                    press="onPressNotes">
                                                </core:Icon>
                                            </cells>
                                        </ColumnListItem>
                                    </items>
                                </Table>
                            </Panel>
                        </VBox>
                    </content>
                </IconTabFilter>
 
                <IconTabSeparator/>
 
                <!-- ============================================================ -->
                <!-- TAB: Report Order                                            -->
                <!-- ============================================================ -->
                <IconTabFilter
                    icon="sap-icon://monitor-payments"
                    iconColor="Neutral"
                    count="{/headerSet/Counts}"
                    text="{i18n>OrderReport}"
                    key="Report"
                    design="Vertical">
 
                    <content>
                        <VBox fitContainer="true" class="f2mTabContent">
                            <Panel expandable="false" backgroundDesign="Transparent" class="f2mSectionPanel sapUiNoContentPadding">
                                <headerToolbar>
                                    <Toolbar design="Transparent" class="f2mSectionToolbar">
                                        <core:Icon src="sap-icon://monitor-payments" color="#0a6ed1" class="sapUiTinyMarginBegin sapUiTinyMarginEnd"/>
                                        <Title text="{i18n>OrderReport}" level="H4"/>
                                        <ToolbarSpacer/>
                                    </Toolbar>
                                </headerToolbar>
 
                                <smartFilterBar:SmartFilterBar id="smartFilterBarReport"
                                                               entitySet="zc_sls_age_reportSet"
                                                               persistencyKey="SmartFilter_Explored"
                                                               showFilterConfiguration="true">
                                </smartFilterBar:SmartFilterBar>
 
                                <smartTable:SmartTable id="Report"
                                                       entitySet="zc_sls_age_reportSet"
                                                       smartFilterId="smartFilterBarReport"
                                                       tableType="ResponsiveTable"
                                                       beforeExport="onBeforeExport"
                                                       useVariantManagement="true"
                                                       useTablePersonalisation="true"
                                                       header="{i18n>OrderReport}"
                                                       showRowCount="true"
                                                       persistencyKey="SmartTableAnalytical_Explored"
                                                       enableAutoBinding="true"
                                                       class="sapUiResponsiveContentPadding f2mSmartTable"
                                                       editTogglable="false"
                                                       editable="false"
                                                       beforeRebindTable="onBeforeRebindOrder">
 
                                    <smartTable:customToolbar>
                                        <OverflowToolbar design="Transparent">
                                            <ToolbarSpacer/>
                                            <OverflowToolbarButton icon="sap-icon://print" tooltip="{i18n>print}" press="onPrintOrder($event,'O')"/>
                                        </OverflowToolbar>
                                    </smartTable:customToolbar>
 
                                    <Table id="orderReportTable" selectionChange="onSelectionChangeChange" mode="MultiSelect">
                                        <ColumnListItem id="Reportheader"
                                                        type="Navigation"
                                                        vAlign="Middle"
                                                        selected="false"
                                                        press="onPress">
                                        </ColumnListItem>
                                    </Table>
 
                                    <smartTable:customData>
                                        <core:CustomData key="select" value="Vkorg,Vtweg,Spart,Pltyp,Pltyp_text,Agent,Zterm,ZtermName,Brgew,Ntgew,Gewei,Volum,Voleh"/>
                                    </smartTable:customData>
 
                                </smartTable:SmartTable>
                            </Panel>
                        </VBox>
                    </content>
                </IconTabFilter>
 
                <!-- ============================================================ -->
                <!-- TAB: Report Consegne                                         -->
                <!-- ============================================================ -->
                <IconTabFilter
                    icon="sap-icon://shipping-status"
                    iconColor="Neutral"
                    count="{/headerSet/Counts}"
                    text="{i18n>Delivery}"
                    key="Delivery"
                    visible="true"
                    design="Vertical">
 
                    <content>
                        <VBox fitContainer="true" class="f2mTabContent">
                            <Panel expandable="false" backgroundDesign="Transparent" class="f2mSectionPanel sapUiNoContentPadding">
                                <headerToolbar>
                                    <Toolbar design="Transparent" class="f2mSectionToolbar">
                                        <core:Icon src="sap-icon://shipping-status" color="#0a6ed1" class="sapUiTinyMarginBegin sapUiTinyMarginEnd"/>
                                        <Title text="{i18n>OrderDelivery}" level="H4"/>
                                        <ToolbarSpacer/>
                                    </Toolbar>
                                </headerToolbar>
 
                                <smartFilterBar:SmartFilterBar id="smartFilterBarDelivery"
                                                               entitySet="ZC_SLS_AGE_deliverySet"
                                                               persistencyKey="SmartFilter_Explored"
                                                               showFilterConfiguration="true">
                                </smartFilterBar:SmartFilterBar>
 
                                <smartTable:SmartTable id="Delivery"
                                                       entitySet="ZC_SLS_AGE_deliverySet"
                                                       smartFilterId="smartFilterBarDelivery"
                                                       tableType="ResponsiveTable"
                                                       beforeExport="onBeforeExport"
                                                       useVariantManagement="true"
                                                       useTablePersonalisation="true"
                                                       header="{i18n>OrderDelivery}"
                                                       showRowCount="true"
                                                       persistencyKey="SmartTableAnalytical_Explored"
                                                       enableAutoBinding="true"
                                                       class="sapUiResponsiveContentPadding f2mSmartTable"
                                                       editTogglable="false"
                                                       editable="false"
                                                       beforeRebindTable="onBeforeRebindDelivery">
 
                                    <smartTable:customToolbar>
                                        <OverflowToolbar design="Transparent">
                                            <ToolbarSpacer/>
                                            <OverflowToolbarButton icon="sap-icon://print" tooltip="{i18n>print}" press="onPrintOrder($event,'D')"/>
                                        </OverflowToolbar>
                                    </smartTable:customToolbar>
 
                                    <Table selectionChange="onSelectionChangeChange" mode="MultiSelect">
                                        <ColumnListItem id="ReportDelivery"
                                                        type="Navigation"
                                                        vAlign="Middle"
                                                        selected="false"
                                                        press="onPressDelivery">
 
                                            <cells>
                                                <Text text="{Vbeln}"/>
                                                <Text text="{Bstkd}"/>
                                                <ObjectStatus text="{statusName}"
                                                              state="{path: 'statusName', formatter: '.statusColor'}"/>
                                                <Text text="{delivery}"/>
                                                <Text text="{ddt}"/>
                                                <Text text="{Pltyp}"/>
                                                <ObjectIdentifier title="{Kunag}" text="{KunagName}"/>
                                                <ObjectIdentifier title="{Kunwe}" text="{KunweName}"/>
                                                <Text text="{path: 'Vdatu', type: 'sap.ui.model.type.Date', formatOptions: { style: 'medium' }}"/>
                                                <Text text="{path: 'wadat_ist', type: 'sap.ui.model.type.Date', formatOptions: { style: 'medium' }}"/>
                                            </cells>
 
                                        </ColumnListItem>
                                    </Table>
 
                                </smartTable:SmartTable>
                            </Panel>
                        </VBox>
                    </content>
                </IconTabFilter>
 
                <!-- ============================================================ -->
                <!-- TAB: Report ZORA2                                            -->
                <!-- ============================================================ -->
                <IconTabFilter
                    icon="sap-icon://product"
                    iconColor="Neutral"
                    count="{/headerSet/Counts}"
                    text="{i18n>ZORA2Report}"
                    key="ZORA2"
                    visible="false"
                    design="Vertical">
 
                    <content>
                        <VBox fitContainer="true" class="f2mTabContent">
                            <Panel expandable="false" backgroundDesign="Transparent" class="f2mSectionPanel sapUiNoContentPadding">
                                <headerToolbar>
                                    <Toolbar design="Transparent" class="f2mSectionToolbar">
                                        <core:Icon src="sap-icon://product" color="#0a6ed1" class="sapUiTinyMarginBegin sapUiTinyMarginEnd"/>
                                        <Title text="{i18n>OrderZORA2}" level="H4"/>
                                        <ToolbarSpacer/>
                                    </Toolbar>
                                </headerToolbar>
 
                                <smartFilterBar:SmartFilterBar id="smartFilterBarZORA2"
                                                               entitySet="ZI_SLSREP002_HSet"
                                                               persistencyKey="SmartFilter_Explored"
                                                               showFilterConfiguration="true">
                                </smartFilterBar:SmartFilterBar>
 
                                <smartTable:SmartTable id="ZORA2"
                                                       entitySet="ZI_SLSREP002_HSet"
                                                       smartFilterId="smartFilterBarZORA2"
                                                       tableType="ResponsiveTable"
                                                       beforeExport="onBeforeExport"
                                                       useVariantManagement="true"
                                                       useTablePersonalisation="true"
                                                       header="{i18n>OrderZORA2}"
                                                       showRowCount="true"
                                                       persistencyKey="SmartTableAnalytical_Explored"
                                                       enableAutoBinding="true"
                                                       class="sapUiResponsiveContentPadding f2mSmartTable"
                                                       editTogglable="false"
                                                       editable="false"
                                                       beforeRebindTable="onBeforeRebindZORA2">
                                    <Table selectionChange="onSelectionChangeChange" mode="MultiSelect">
                                        <ColumnListItem id="ReportZORA2"
                                                        type="Navigation"
                                                        vAlign="Middle"
                                                        selected="false"
                                                        press="onPressZORA2">
                                        </ColumnListItem>
                                    </Table>
                                </smartTable:SmartTable>
                            </Panel>
                        </VBox>
                    </content>
                </IconTabFilter>
 
                <!-- ============================================================ -->
                <!-- TAB: Report Estratto Conto                                   -->
                <!-- ============================================================ -->
                <IconTabFilter
                    icon="sap-icon://customer-financial-fact-sheet"
                    iconColor="Neutral"
                    count="{/headerSet/Counts}"
                    text="{i18n>EC}"
                    key="EC"
                    visible="true"
                    design="Vertical">
 
                    <content>
                        <VBox fitContainer="true" class="f2mTabContent">
                            <Panel expandable="false" backgroundDesign="Transparent" class="f2mSectionPanel sapUiNoContentPadding">
                                <headerToolbar>
                                    <Toolbar design="Transparent" class="f2mSectionToolbar">
                                        <core:Icon src="sap-icon://customer-financial-fact-sheet" color="#0a6ed1" class="sapUiTinyMarginBegin sapUiTinyMarginEnd"/>
                                        <Title text="{i18n>EC}" level="H4"/>
                                        <ToolbarSpacer/>
                                    </Toolbar>
                                </headerToolbar>
 
                                <smartFilterBar:SmartFilterBar id="smartFilterBarEC"
                                                               entitySet="zi_sls_ec_hSet"
                                                               persistencyKey="SmartFilter_Explored"
                                                               showFilterConfiguration="true">
                                </smartFilterBar:SmartFilterBar>
 
                                <smartTable:SmartTable id="EC"
                                                       entitySet="zi_sls_ec_hSet"
                                                       smartFilterId="smartFilterBarEC"
                                                       tableType="ResponsiveTable"
                                                       beforeExport="onBeforeExport"
                                                       useVariantManagement="true"
                                                       useTablePersonalisation="true"
                                                       header="{i18n>EC}"
                                                       showRowCount="true"
                                                       persistencyKey="SmartTableAnalytical_Explored"
                                                       enableAutoBinding="true"
                                                       class="sapUiResponsiveContentPadding f2mSmartTable"
                                                       editTogglable="false"
                                                       editable="false"
                                                       beforeRebindTable="onBeforeRebindEC">
                                    <Table selectionChange="onSelectionChangeChange" mode="MultiSelect">
                                        <ColumnListItem id="ReportEC"
                                                        type="Navigation"
                                                        vAlign="Middle"
                                                        selected="false"
                                                        press="onPressEC">
                                        </ColumnListItem>
                                    </Table>
                                </smartTable:SmartTable>
                            </Panel>
                        </VBox>
                    </content>
                </IconTabFilter>
 
                <!-- ============================================================ -->
                <!-- TAB: Martinelli (nascosto)                                   -->
                <!-- ============================================================ -->
                <IconTabFilter
                    icon="sap-icon://sales-order"
                    iconColor="Negative"
                    count="{/headerSet/Counts}"
                    text="{i18n>e-marti}"
                    key="Martinelli"
                    visible="false"
                    design="Vertical"/>
 
            </items>
        </IconTabBar>
 
        <dependents>
            <core:Fragment id="newOrderCreate" fragmentName="slsordage.view.newOrderV2" type="XML"/>
            <core:Fragment id="Notes"          fragmentName="slsordage.fragment.Notes"  type="XML"/>
        </dependents>
 
        <footer>
            <OverflowToolbar id="OrderFooterHeader" class="f2mFooterBar">
                <content>
                    <!-- Messaggi / Errori -->
                    <Button icon="sap-icon://alert"
                            text="{= ${message>/}.length }"
                            visible="{= ${message>/}.length > 0 }"
                            type="Emphasized"
                            press="onMessagePopoverPress"/>
 
                    <Button icon="sap-icon://clear-all"
                            text="{i18n>Clear}"
                            visible="{= ${message>/}.length > 0 }"
                            type="Emphasized"
                            press="onMessagePopoverClear"/>
 
                    <ToolbarSpacer id="headerTollBarSpace2"/>
 
                    <!-- ================== Button Group for E-REPS ================== -->
                    <Button id="headerRefresh"
                            icon="sap-icon://synchronize"
                            text="{i18n>Refresh}"
                            type="Transparent"
                            press=".onRefresh('01')"
                            class="sapUiSmallMarginBottom f2mFooterBtn"
                            ariaHasPopup="Dialog"/>
                    <Button id="addOrder"
                            icon="sap-icon://create-form"
                            text="{i18n>Add}"
                            type="Default"
                            press=".onAddOrder"
                            class="sapUiSmallMarginBottom f2mFooterBtn"
                            ariaHasPopup="Dialog"/>
                    <Button id="DelOrder"
                            icon="sap-icon://delete"
                            text="{i18n>Del}"
                            type="Reject"
                            press=".onDeleteOrder"
                            class="sapUiSmallMarginBottom f2mFooterBtn"
                            ariaHasPopup="Dialog"/>
                    <Button id="sendtosap"
                            icon="sap-icon://paper-plane"
                            text="{i18n>Send}"
                            type="Accept"
                            press=".onSendToSap"
                            class="sapUiSmallMarginBottom f2mFooterBtn"
                            ariaHasPopup="Dialog"/>
 
                    <ToolbarSeparator/>
 
                    <!-- ================== Button Group for E-SPARE PARTS ================== -->
                    <Button id="SPheaderRefresh"
                            icon="sap-icon://synchronize"
                            text="{i18n>Refresh}"
                            type="Transparent"
                            press=".onRefresh('02')"
                            class="sapUiSmallMarginBottom f2mFooterBtn"
                            ariaHasPopup="Dialog"/>
                    <Button id="SPaddOrder"
                            icon="sap-icon://create-form"
                            text="{i18n>Add}"
                            type="Default"
                            press=".onAddNewOrder('02')"
                            class="sapUiSmallMarginBottom f2mFooterBtn"
                            ariaHasPopup="Dialog"/>
                    <Button id="SPDelOrder"
                            icon="sap-icon://delete"
                            text="{i18n>Del}"
                            type="Reject"
                            press=".onDeleteOrder"
                            class="sapUiSmallMarginBottom f2mFooterBtn"
                            ariaHasPopup="Dialog"/>
                    <Button id="SPsendtosap"
                            icon="sap-icon://paper-plane"
                            text="{i18n>Send}"
                            type="Accept"
                            press=".onSendToSap"
                            class="sapUiSmallMarginBottom f2mFooterBtn"
                            ariaHasPopup="Dialog"/>
                </content>
            </OverflowToolbar>
        </footer>
 
    </Page>
</mvc:View>