<?xml version='1.0' encoding='UTF-8'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
          xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
          xmlns:f="http://java.sun.com/jsf/core">
  <af:pageTemplate viewId="/template/toolbarTemplate.jspx"
                   value="#{bindings.pageTemplateBinding}" id="pt1">
    <f:facet name="facet1">
      <af:panelBox text="#{sc_moduleres.servicedefinition_lbheader}"
                   id="pb_main" showDisclosure="false">
        <f:facet name="toolbar"/>
        <af:panelTabbed id="pt_main" styleClass="AFStretchWidth"
                        dimensionsFrom="auto"
                        partialTriggers="cb_rollback cb_commit cb_remove cb_new cb_filter cb_load cb_refresh">
          <af:showDetailItem text="#{sc_moduleres.servicedefinition_tabservice}"
                             id="sdi_service">
            <af:table var="row" rowBandingInterval="0" id="entityT"
                      columnStretching="blank" styleClass="AFStretchWidth"
                      value="#{pageFlowScope.serviceBean.baseRowCollection}"
                      rowSelection="single"
                      selectedRowKeys="#{pageFlowScope.serviceBean.entityTableRowKeySet}">
              <af:column sortable="false" id="c_code" width="60"
                         headerText="#{sc_moduleres.servicedefinition_lbcode}">
                <af:inputText id="it_code" simple="true"
                              value="#{row.baseEntity.code}"
                              disabled="#{!row.rowProperties.updateable}"
                              partialTriggers="cb_update" columns="100"
                              autoSubmit="true"/>
              </af:column>
              <af:column id="c_name" width="150" headerClass="columnHeaderClass"
                         headerText="#{sc_moduleres.servicedefinition_lbname}">
                <af:inputText id="it_name" simple="true"
                              value="#{row.baseEntity.name}"
                              disabled="#{!row.rowProperties.updateable}"
                              partialTriggers="cb_update" columns="100"
                              autoSubmit="true"/>
              </af:column>
              <af:column id="c_desc"
                         headerText="#{sc_moduleres.servicedefinition_lbdesc}"
                         width="150">
                <af:inputText id="it_desc" simple="true"
                              value="#{row.baseEntity.description}"
                              disabled="#{!row.rowProperties.updateable}"
                              partialTriggers="cb_update" columns="100"
                              autoSubmit="true"/>
              </af:column>
              <af:column id="c_inuse"
                         headerText="#{sc_moduleres.servicedefinition_lbinuse}"
                         align="center" width="50">
                <af:selectBooleanCheckbox id="sbc_inuse" autoSubmit="true"
                                          disabled="#{!row.rowProperties.updateable}"
                                          partialTriggers="cb_update"
                                          value="#{row.baseEntity.inUse}"
                                          simple="true"/>
              </af:column>
              <af:column id="c_unitgroup"
                         headerText="#{sc_moduleres.servicedefinition_lbunitgroup}"
                         width="90">
                <af:selectOneChoice id="soc_unitgroupname" simple="true"
                                    value="#{row.baseEntity.unitGroup}"
                                    disabled="#{!row.rowProperties.updateable}"
                                    autoSubmit="true"
                                    partialTriggers="cb_update">
                  <f:selectItems value="#{pageFlowScope.serviceBean.unitGroupSupplier.itemList}"
                                 id="selectItems_unitgroups"/>
                </af:selectOneChoice>
              </af:column>
              <af:column id="c_servicegoup"
                         headerText="#{sc_moduleres.servicedefinition_lbservicegroup}">
                <af:selectOneChoice id="soc_servicegroup" simple="true"
                                    value="#{row.baseEntity.serviceGroup}"
                                    disabled="#{!row.rowProperties.updateable}"
                                    autoSubmit="true"
                                    partialTriggers="cb_update">
                  <f:selectItems value="#{pageFlowScope.serviceBean.serviceGroupSupplier.itemList}"
                                 id="selectItems_servicegroup"/>
                </af:selectOneChoice>
              </af:column>
              <af:column id="c_vatrate"
                         headerText="#{sc_moduleres.servicedefinition_lbvatrate}"
                         align="center" width="60">
                <af:inputText id="it_vatrate" simple="true"
                              value="#{row.baseEntity.vatRate}"
                              disabled="#{!row.rowProperties.updateable}"
                              partialTriggers="cb_update" columns="100"
                              autoSubmit="true">
                  <f:convertNumber type="number" pattern="##"
                                   integerOnly="true"/>
                </af:inputText>
              </af:column>
              <af:column id="c_vatincluded"
                         headerText="#{sc_moduleres.servicedefinition_lbvatincluded}"
                         align="center" rendered="false">
                <af:selectBooleanCheckbox id="selectBooleanCheckbox1"
                                          autoSubmit="true"
                                          disabled="#{!row.rowProperties.updateable}"
                                          partialTriggers="cb_update"
                                          value="#{row.baseEntity.inUse}"
                                          simple="true"/>
              </af:column>
              <af:column id="c_unitprice"
                         headerText="#{sc_moduleres.servicedefinition_lbunitprice}"
                         width="80">
                <af:inputText id="it_unitprice" simple="true"
                              value="#{row.baseEntity.unitPrice}"
                              disabled="#{!row.rowProperties.updateable}"
                              partialTriggers="cb_update" columns="100"
                              autoSubmit="true">
                  <f:convertNumber type="number" pattern="######.##"/>
                </af:inputText>
              </af:column>
              <af:column id="c_currency"
                         headerText="#{sc_moduleres.servicedefinition_lbcurrency}"
                         width="80">
                <af:selectOneChoice id="soc_currency" simple="true"
                                    value="#{row.baseEntity.currency}"
                                    disabled="#{!row.rowProperties.updateable}"
                                    autoSubmit="true"
                                    partialTriggers="cb_update">
                  <f:selectItems value="#{pageFlowScope.serviceBean.currencySupplier.itemList}"
                                 id="selectItems_currency"/>
                </af:selectOneChoice>
              </af:column>
              <af:column id="c_sellingstatus"
                         headerText="#{sc_moduleres.servicedefinition_lbsellingstat}">
                <af:selectOneChoice id="soc_sellingstat" simple="true"
                                    value="#{row.baseEntity.sellingStatus}"
                                    disabled="#{!row.rowProperties.updateable}"
                                    autoSubmit="true"
                                    partialTriggers="cb_update">
                  <f:selectItems value="#{pageFlowScope.serviceBean.sellingStatusSupplier.itemList}"
                                 id="selectItems_sellingstatus"/>
                </af:selectOneChoice>
              </af:column>
              <af:column id="c_update">
                <af:commandButton text="Güncelle" id="cb_update"
                                  partialSubmit="true"
                                  actionListener="#{pageFlowScope.serviceBean.update}"
                                  immediate="true"
                                  disabled="#{row.rowProperties.updateable}"
                                  partialTriggers="cb_update"/>
              </af:column>
            </af:table>
          </af:showDetailItem>
          <af:showDetailItem text="#{sc_moduleres.servicedefinition_tabcontent}"
                             id="sdi_content">
            <af:table var="rowContent" rowBandingInterval="0" id="contentT"
                      columnStretching="blank" styleClass="AFStretchWidth"
                      value="#{pageFlowScope.serviceBean.selectedMainEntity.contents}"
                      rowSelection="single"
                      selectedRowKeys="#{pageFlowScope.serviceBean.contentTableRowKeySet}">
              <af:column id="c_default"
                         headerText="#{sc_moduleres.servicedefinition_lbdefault}"
                         align="center" width="55">
                <af:selectBooleanCheckbox id="sbc_default"
                                          autoSubmit="true"
                                          disabled="#{!row.rowProperties.updateable}"
                                          value="#{rowContent.defaultContent}"
                                          simple="true"/>
              </af:column>
              <af:column sortable="false" id="c_contentname" width="255"
                         headerText="#{sc_moduleres.servicedefinition_lbcontentname}">
                <af:inputText id="it_contentname" simple="true"
                              value="#{rowContent.name}"
                              disabled="#{!pageFlowScope.serviceBean.selectedMainBaseRow.rowProperties.updateable}" columns="100"
                              autoSubmit="true"/>
              </af:column>
              <af:column id="c_contenttype" width="105"
                         headerClass="columnHeaderClass"
                         headerText="#{sc_moduleres.servicedefinition_lbcontenttype}">
                <af:selectOneChoice id="soc_type" simple="true"
                                    value="#{rowContent.type}"
                                    disabled="#{!pageFlowScope.serviceBean.selectedMainBaseRow.rowProperties.updateable}"
                                    autoSubmit="true">
                  <f:selectItems value="#{pageFlowScope.serviceBean.contentTypeSupplier.itemList}"
                                 id="selectItems5"/>
                </af:selectOneChoice>
              </af:column>
              <af:column id="c_extension"
                         headerText="#{sc_moduleres.servicedefinition_lbextension}"
                         width="54">
                <af:inputText id="it_extension" simple="true"
                              value="#{rowContent.extension}"
                              autoSubmit="true" disabled="false"
                              partialTriggers="if1"/>
              </af:column>
              <af:column id="c_path"
                         headerText="#{sc_moduleres.servicedefinition_lbpath}"
                         width="306">
                <af:inputText id="it_path" simple="true"
                              value="#{rowContent.path}" columns="100"
                              autoSubmit="true" disabled="false"
                              partialTriggers="if1"/>
                <af:inputFile label="Label 1" id="if1"/>
              </af:column>
            </af:table>
          </af:showDetailItem>
        </af:panelTabbed>
      </af:panelBox>
    </f:facet>
    <f:attribute name="toolbarCommandsBean"
                 value="#{pageFlowScope.serviceBean}"/>
  </af:pageTemplate>
</jsp:root>
