mvcView controllerName=com.ihcltcs.
mvcView controllerName=com.ihcltcs.
MasterData"
xmlns:mvc="sap.ui.core.mvc" displayBlock="true"
xmlns="sap.m"
xmlns:html="http://www.w3.org/1999/xhtml"
xmlns:f="sap.ui.layout.form"
xmlns:l="sap.ui.layout"
xmlns:u="sap.uxap">
<App>
<pages>
<Page id="page">
<u:ObjectPageLayout id="ObjectPageLayout"
showTitleInHeaderContent="false" upperCaseAnchorBar="false">
<u:headerTitle>
<u:ObjectPageDynamicHeaderTitle visible="false">
<!-- <heading>
<m:ObjectStatus ></m:ObjectStatus>
</heading> -->
</u:ObjectPageDynamicHeaderTitle>
</u:headerTitle>
<u:headerContent>
<FlexBox wrap="Wrap">
<Label id="lPlant" required="true"
text="{i18n>label.PlantCd}" class="sapUiLargeMarginBegin sapUiTinyMarginTop"
visible="true"/>
<Input id="IPlant" class="sapUiSmallMarginBegin"
value="{werks}" liveChange="onPlantLiveChg" maxLength="4" editable="true"
width="52px" visible="true"/>
<Text id="IPlantDesc" class="sapUiSmallMarginBegin
sapUiTinyMarginTop" text="{i18n>text.PlantDesc}"/>
</FlexBox>
<HBox justifyContent="End" class="sapUiSmallMarginBottom">
<ToolbarSpacer/>
<Button id="bAdd" icon="sap-icon://add"
press="handleValueHelpRequest" class="sapUiSmallMarginEnd"/>
<Button id="bDelete" icon="sap-icon://delete"
press="onDeleteRow" class="sapUiSmallMarginEnd"/>
<Button id="bSave" type="Emphasized"
text="{i18n>button.Save}" class="sapUiSmallMarginEnd"/>
</HBox>
</u:headerContent>
<u:sections>
<u:ObjectPageSection titleUppercase="false"
showTitle="false">
<u:subSections>
<u:ObjectPageSubSection showTitle="false"
titleUppercase="false">
<u:blocks>
<ScrollContainer width="100%"
horizontal="true" vertical="true">
<Table id="tBusinessMaster"
growing="true" fixedLayout="false" growingScrollToLoad="true" growingThreshold="20"
mode="MultiSelect" items="{/MaterialData}" sticky="ColumnHeaders,HeaderToolbar"
class="sapUiResponsiveMargin">
<columns>
<Column id="C1"
hAlign="Center">
<Text id="T1"
text="{i18n>Column.MaterialCd}"/>
</Column>
<Column id="C2"
hAlign="Center">
<Text id="T2"
text="{i18n>Column.Description}"/>
</Column>
<Column id="C3" hAlign="Center"
width="80px">
<Text id="T3"
text="{i18n>Column.UOM}"/>
</Column>
<Column id="C4" hAlign="Center"
width="100px">
<Text id="T4"
text="{i18n>Column.Supp1_Code}"/>
</Column>
<Column id="C5" hAlign="Center"
width="120px">
<Text id="T5"
text="{i18n>Column.Supp1_Name1}"/>
</Column>
<Column id="C6"
hAlign="Center">
<Text id="T6"
text="{i18n>Column.Supp1_Perc}"/>
</Column>
<Column id="C7" hAlign="Center"
width="100px">
<Text id="T7"
text="{i18n>Column.Supp2_Code}"/>
</Column>
<Column id="C8" hAlign="Center"
width="120px">
<Text id="T8"
text="{i18n>Column.Supp2_Name1}"/>
</Column>
<Column id="C9"
hAlign="Center">
<Text id="T9"
text="{i18n>Column.Supp2_Perc}"/>
</Column>
<Column id="C10"
hAlign="Center" width="100px">
<Text id="T10"
text="{i18n>Column.Supp3_Code}"/>
</Column>
<Column id="C11"
hAlign="Center" width="120px">
<Text id="T11"
text="{i18n>Column.Supp3_Name1}"/>
</Column>
<Column id="C12"
hAlign="Center">
<Text id="T12"
text="{i18n>Column.Supp3_Perc}"/>
</Column>
<Column id="C13"
hAlign="Center">
<Text id="T13"
text="{i18n>Column.Total_Perc}"/>
</Column>
</columns>
<items>
<ColumnListItem id="cLI"
vAlign="Middle">
<cells>
<Text id="tMaterial"
text="{Matnr}"/>
<Text id="tDescription"
text="{Descr}"/>
<Text id="tUOM"
text="{Meins}"/>
<Text id="tSuppNm1"
text="{VendorName1}"/>
<Input id="tSupp1Pr"
maxLength="3" liveChange="fnLchCheckPercentage" change="fnChCheckPercentage"
textAlign="Center" value="{Lifnr1_Per}"/>
<Text id="tSuppNm2"
text="{VendorName2}"/>
<Input id="tSupp2Pr"
maxLength="3" liveChange="fnLchCheckPercentage" change="fnChCheckPercentage"
textAlign="Center" value="{Lifnr2_Per}"/>
<Text id="tSuppNm3"
text="{VendorName3}"/>
<Input id="tSupp3Pr"
maxLength="3" liveChange="fnLchCheckPercentage" change="fnChCheckPercentage"
textAlign="Center" value="{Lifnr3_Per}"/>
<Text id="tTotalPr"
textAlign="Center" text="{TotalPercentage}"/>
</cells>
</ColumnListItem>
</items>
<layoutData>
<l:GridData linebreakS="true"
linebreakM="true" linebreakL="true" indent="L0 M0 S0" span="L12 M12 S12"/>
</layoutData>
</Table>
</ScrollContainer>
</u:blocks>
</u:ObjectPageSubSection>
</u:subSections>
</u:ObjectPageSection>
</u:sections>
</u:ObjectPageLayout>
</Page>
<Page>
<Dialog id="addRowDialog" title="Set Material"
contentWidth="400px">
<VBox>
<Label text="Material Code" labelFor="materialInput"
class="sapUiTinyMarginBegin" />
<beginButton>
<Button text="OK" press=".onDialogConfirm" />
</beginButton>
<endButton>
<Button text="Cancel" press=".onDialogCancel" />
</endButton>
</Dialog>
</Page>
<Page id="dialogPage">
<Dialog id="diaValueHelpMaterialCode"
title="{i18n>title.MaterialCode}" contentWidth="30rem" contentHeight="30rem">
<SearchField id="searchMaterialCode" width="100%"
placeholder="{i18n>placeholder.Search}" liveChange="onSearchMaterialCode"
search="onMaterialCode" />
<Table id="tMaterialCode" mode="None" items="{/results}">
<columns>
<Column>
<header>
<Label text="{i18n>Column.MaterialCd}"
textAlign="Center" />
</header>
</Column>
<Column>
<header>
<Label text="{i18n>Column.Description}"
textAlign="Center" />
</header>
</Column>
<Column>
<header>
<Label text="{i18n>Column.UOM}"
textAlign="Center" />
</header>
</Column>
</columns>
<items>
<ColumnListItem type="Active"
press="fnMaterialCodeVHPress">
<Text id="tVHMaterialCd" text="" />
<Text id="tVHDescription" text="{}"/>
<Text id="tVHUOM" text="{}"/>
</ColumnListItem>
</items>
</Table>
<buttons>
<Button text="{i18n>button.Cancel}"
press="fnCloseMaterialCdVH"></Button>
</buttons>
</Dialog>
</Page>
<Page id="dialogSupplyPage">
<Dialog id="diaValueHelpSupplierCode"
title="{i18n>title.SupplierCode}" contentWidth="25rem" contentHeight="25rem">
<SearchField id="searchSupplierCode" width="100%"
placeholder="{i18n>placeholder.Search}" liveChange="onSearchSupplierCode"
search="onMaterialCode" />
<Table id="tSupplierCode" mode="None" items="{/results}">
<columns>
<Column>
<header>
<Label text="{i18n>Column.SupplierCode}"
textAlign="Center" />
</header>
</Column>
<Column>
<header>
<Label text="{i18n>Column.SupplierName}"
textAlign="Center" />
</header>
</Column>
</columns>
<items>
<ColumnListItem type="Active"
press="fnSupplierCodeVHPress">
<Text id="tVHSupplierCode" text="{}" />
<Text id="tVHSupplierName" text="{}"/>
</ColumnListItem>
</items>
</Table>
<buttons>
<Button text="{i18n>button.Cancel}"
press="fnCloseSupplierCodeVH"></Button>
</buttons>
</Dialog>
</Page>
</pages>
</App>
</mvc:View>