<mvc:View xmlns:rowmodes='sap.ui.table.rowmodes' xmlns:mvc='sap.ui.core.mvc' xmlns='sap.m' xmlns:core='sap.ui.core' xmlns:t='sap.ui.table' xmlns:l='sap.ui.layout' xmlns:f='sap.ui.layout.form' xmlns:mc='sap.mcsuite.controls' xmlns:dnd='sap.ui.core.dnd' controllerName='sap.mcsuite.modules.clients.tasks.clients_org.controller.Task' xmlns:utils='sap.mcsuite.model.utils' xmlns:cssgrid='sap.ui.layout.cssgrid' xmlns:tcm='sap.m.table.columnmenu' core:require="{
    format: 'sap/mcsuite/model/Format', 
    translate: 'sap/mcsuite/model/Translate', 
    utils: 'sap/mcsuite/model/Utils'
  }" >
<cssgrid:CSSGrid id='header' class='header-container' width='100%' gridTemplateColumns='1fr 1fr 1fr'>
<HBox id='breadcrumb' class='breadcrumb-container' alignItems='Start' justifyContent='Start'>
  <Breadcrumbs class='breadcrumb' separatorStyle='Slash' currentLocationText='{parts: [{value:"BREADCRUMB"}, {value:"5558"}, {value:"Organization"}], formatter: "translate.Label.get"}'>
    <Link id='homeLink' press='goHome' text='Home' icon='sap-icon://home'/>
    <Link id='moduleLink' press='taskNav' text='{parts: [{value:"FOLDER"}, {value:"CLIENTS"}, {value:""}], formatter: "translate.Label.get"}'>
      <customData>
        <core:CustomData key='module' value='clients'/>
        <core:CustomData key='task' value='index'/>
      </customData>
    </Link>
    </Breadcrumbs>
    </HBox>
<HBox id='title' class='title-container' alignItems='Center' justifyContent='Center'>
    <Title text='{parts: [{value:"TASK"}, {value:"5558"}, {value:""}], formatter: "translate.Label.get"}' level='H1'/>
</HBox>
<HBox id='quicksearch' class='quicksearch-container' alignItems='Center' justifyContent='Center'>
</HBox>
  </cssgrid:CSSGrid>
<VBox id='content' class='content-container' alignItems='Start' justifyContent='Start' width='100%' wrap='Wrap'>
  <HBox class='options hidden-if-empty' width='100%'>
  </HBox>
  <HBox class='aside-main-container' width='100%'>
  <VBox class='aside hidden-if-empty'>
  </VBox>
  <VBox class='main'>
 <VBox class='mc-datagrid' backgroundDesign='Solid' alignContent='SpaceAround' id='subtask11901' >
  <t:Table rows="{ 
  path: '/crm_org_dt', 
  parameters: {$$updateGroupId: 'updateGroup1'} 
}" selectionMode='None' columnHeaderHeight='20px' class='' rowActionCount='1' id='subtask11901-datagrid' threshold='100'
>
<t:rowMode>
<rowmodes:Fixed rowCount='20'/>
</t:rowMode>
  <t:extension>
     <OverflowToolbar style='Clear'>
     <Title text='{parts: [{value:"SUBTITLE"}, {value:"11901"}, {value:"Organizaciones de Venta"}], formatter: "translate.Label.get"}' />
     <ToolbarSpacer/>
     </OverflowToolbar>
  </t:extension>
  <t:columns>
    <t:Column width='auto' sortProperty='id' filterProperty='id' resizable='true'>
      <Label text='{parts: [{value:"crm_org_dt"}, {value:"id"}], formatter: "translate.Field.get"}'/>
      <t:template>
<VBox class='mc-datagrid-field'>
<Text text='{id}' wrapping='false'/><Input value='{id}' visible='false'/></VBox>
</t:template>
    </t:Column>
    <t:Column width='auto' sortProperty='org_id' filterProperty='org_id' resizable='true'>
      <Label text='{parts: [{value:"crm_org_dt"}, {value:"org_id"}], formatter: "translate.Field.get"}'/>
      <t:template>
<VBox class='mc-datagrid-field'>
<Text text='{org_id}' wrapping='false'/><Input value='{org_id}' visible='false'/></VBox>
</t:template>
    </t:Column>
    <t:Column width='auto' sortProperty='active' filterProperty='active' resizable='true'>
      <Label text='{parts: [{value:"crm_org_dt"}, {value:"active"}], formatter: "translate.Field.get"}'/>
      <t:template>
<HBox class='mc-datagrid-field' alignItems='Center'>
<Text text="{ value: 'true', type: 'format.Boolean',  formatOptions: { } }" />
<CheckBox selected='{active}'/>
</HBox>
</t:template>
    </t:Column>
    <t:Column width='auto' sortProperty='kam_id' filterProperty='kam_id' resizable='true'>
      <Label text='{parts: [{value:"crm_org_dt"}, {value:"kam_id"}], formatter: "translate.Field.get"}'/>
      <t:template>
<VBox class='mc-datagrid-field'>
<Text text='{kam_id}' wrapping='false'/><Input value='{kam_id}' visible='false'/></VBox>
</t:template>
    </t:Column>
    <t:Column width='auto' sortProperty='kam2_id' filterProperty='kam2_id' resizable='true'>
      <Label text='{parts: [{value:"crm_org_dt"}, {value:"kam2_id"}], formatter: "translate.Field.get"}'/>
      <t:template>
<VBox class='mc-datagrid-field'>
<Text text='{kam2_id}' wrapping='false'/><Input value='{kam2_id}' visible='false'/></VBox>
</t:template>
    </t:Column>
  </t:columns>
</t:Table>
</VBox>
  <VBox class='mc-form' backgroundDesign='Solid' alignContent='SpaceAround' id='subtask13989' >
      <f:Form editable='true'>
        <f:layout>
        <f:ResponsiveGridLayout
         labelSpanXL='2'
         labelSpanL='2'
         labelSpanM='2'
         labelSpanS='2'
         adjustLabelSpan='true'
         emptySpanXL='0'
         emptySpanL='4'
         emptySpanM='0'
         emptySpanS='0'
         columnsXL='1'
         columnsL='1'
         columnsM='1'
         singleContainerFullSize='true'
        />
        </f:layout>
      <f:formContainers>
      <f:FormContainer>
      <f:FormElement label='{parts: [{value:"crm_org_dt"}, {value:"org_id"}], formatter: "translate.Field.get"}'>
      <f:fields>
      <Input id='mc_org_id_field'  required='true'  
        showValueHelp='true' 
        selectedKey="{path: 'newEntity>/org_id', targetType: 'string', type: 'sap.ui.model.type.Integer', formatOptions: { groupingEnabled: false }}" 
        suggestionItems="{path: '/crm_org_bs'}" 
        valueHelpRequest='onValueHelpRequest' 
        class='mc-add-select' 
        editable='true' 
        valueHelpIconSrc='sap-icon://fa-solid/chevron-down' 
      > 
       <customData>
         <core:CustomData key='mandatory' value='true'/>
         <core:CustomData key='table' value='crm_org_bs'/>
         <core:CustomData key='title' value='{parts: [{value:"crm_org_dt"}, {value:"org_id"}], formatter: "translate.Field.get"}' />
         <core:CustomData key='filter' value=""/>
        </customData>
        <core:Item key="{path: 'id', type: 'sap.ui.model.type.Integer', formatOptions: { groupingEnabled: false }}" text='{name}'/>
      </Input>
      </f:fields>
      </f:FormElement>
      </f:FormContainer>
      </f:formContainers>
      </f:Form>
    <HBox width='100%' alignItems='Center' justifyContent='Center'>
      <Button text='{parts: [{value:"BUTTON"}, {value:"13989"}, {value:"Agregar"}], formatter: "translate.Label.get"}' id='subtask13989-submitButton'>
        <customData>
          <core:CustomData key='module' value='clients'/>
          <core:CustomData key='task' value='clients_show'/>
          <core:CustomData key='field' value='id'/>
          <core:CustomData key='value' value='{{id}}'/>
        </customData>
      </Button>
    </HBox>
  </VBox>
  </VBox>
  </HBox>
</VBox>
</mvc:View>