<!--
  Copyright (C) 2010-2026 beCPG. 
   
  This file is part of beCPG 
   
  beCPG is free software: you can redistribute it and/or modify 
  it under the terms of the GNU Lesser General Public License as published by 
  the Free Software Foundation, either version 3 of the License, or 
  (at your option) any later version. 
   
  beCPG is distributed in the hope that it will be useful, 
  but WITHOUT ANY WARRANTY; without even the implied warranty of 
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
  GNU Lesser General Public License for more details. 
   
  You should have received a copy of the GNU Lesser General Public License along with beCPG. If not, see <http://www.gnu.org/licenses/>.
-->
<alfresco-config>


	<config evaluator="model-type" condition="bcpg:product">
		<forms>

			<form id="sub-datagrid-export">
				<field-visibility>
					<show id="cm:name" />
					<show id="bcpg:productHierarchy1" />
					<show id="bcpg:productHierarchy2" />
					<show id="bcpg:erpCode" force="true" />
					<show id="bcpg:eanCode" force="true" />
					<show id="bcpg:subsidiaryRef" force="true" />
					<show id="bcpg:plants" force="true" />
					<show id="bcpg:trademarkRef" force="true" />
				</field-visibility>
				<appearance>
					<field id="cm:name" label-id="becpg.forms.field.product" />
					<field id="bcpg:productHierarchy1" label-id="becpg.forms.field.productHierarchy1" />
					<field id="bcpg:productHierarchy2" label-id="becpg.forms.field.productHierarchy2" />
					<field id="bcpg:plants" label-id="becpg.forms.field.product.plants" />
				</appearance>
			</form>
		</forms>
	</config>

	<config evaluator="model-type" condition="bcpg:client">
		<forms>

			<form id="sub-datagrid-export">
				<field-visibility>

					<!-- mainInfo -->
					<show id="cm:name" />
					<show id="bcpg:erpCode" force="true" />
					<show id="bcpg:clientTel" />
					<show id="bcpg:clientEmail" />
					<show id="bcpg:clientFax" />
					<show id="bcpg:httpLink1" force="true" />
					<show id="bcpg:httpLink2" force="true" />
					<show id="bcpg:httpLink3" force="true" />
					<hide id="bcpg:httpLink4" />
					<hide id="bcpg:httpLink5" />
					<!-- bcpg:location type -->
					<show id="bcpg:locationAddress1" />
					<show id="bcpg:locationAddress2" />
					<show id="bcpg:locationAddress3" />
					<show id="bcpg:locationZip" />
					<show id="bcpg:locationCity" />
					<show id="bcpg:locationState" />
					<show id="bcpg:locationCountry" />
					<show id="bcpg:locationCountryRef" />

				</field-visibility>
				<appearance>
					<field id="cm:name" label-id="becpg.forms.field.claim.client" />
				</appearance>
			</form>
			<form id="product-list">
				<field-visibility>

				<!-- mainInfo -->
					<show id="cm:name" />
					<show id="bcpg:erpCode" force="true" />
					<show id="bcpg:clientTel" />
					<show id="bcpg:clientEmail" />
					<show id="bcpg:clientFax" />
					<show id="bcpg:httpLink1" force="true" />
					<show id="bcpg:httpLink2" force="true" />
					<show id="bcpg:httpLink3" force="true" />
					<hide id="bcpg:httpLink4" />
					<hide id="bcpg:httpLink5" />
				<!-- bcpg:location type -->
					<show id="bcpg:locationAddress1" />
					<show id="bcpg:locationAddress2" />
					<show id="bcpg:locationAddress3" />
					<show id="bcpg:locationZip" />
					<show id="bcpg:locationCity" />
					<show id="bcpg:locationState" />
					<show id="bcpg:locationCountry" />
					<show id="bcpg:locationCountryRef" />

				</field-visibility>
				<appearance>
					<field id="cm:name" read-only="true" label-id="becpg.forms.field.claim.client" />
				</appearance>
			</form>
		</forms>
	</config>
	
	<!-- ______________________________________________ batch _________________________________________ -->


	<config evaluator="model-type" condition="qa:batch">
		<forms>
			<form id="create">
				<field-visibility>
					<!-- mainInfo -->
					<show id="cm:name" />
					<show id="bcpg:code" />
					<show id="bcpg:entityTplRef" force="true" />
					<show id="qa:batchId" />
					<show id="cm:description" force="true" />
					<show id="qa:batchState" />
					
					<!-- product-info -->
					<show id="qa:product" />
					<show id="qa:batchQty" />
					<show id="qa:batchQtyUnit" />
					
					 <!-- Location -->
					<show id="bcpg:plants" force="true" />
					<show id="bcpg:laboratories" force="true" />
					
					<!-- tags and categories -->
					<show id="cm:taggable" />
					<show id="cm:categories" />
					
				
					
					<!-- auditable -->
					<show id="cm:creator" for-mode="view" />
					<show id="cm:created" for-mode="view" />
					<show id="cm:modifier" for-mode="view" />
					<show id="cm:modified" for-mode="view" />

				</field-visibility>
				<appearance>
					<set id="mainInfo" template="/org/alfresco/components/form/2-column-set.ftl" appearance="bordered-panel"
						label-id="becpg.forms.set.batch-info.label" />
					<set id="product-info" template="/org/alfresco/components/form/3-column-set.ftl" appearance="bordered-panel"
						label-id="becpg.forms.set.product-info.label" />
					<set id="categories" appearance="bordered-panel" label-id="becpg.forms.set.category.label"
						template="/org/alfresco/components/form/2-column-set.ftl" />
					<set id="audit" appearance="bordered-panel" label-id="becpg.forms.set.audit.label" template="/org/alfresco/components/form/2-column-set.ftl" />
					
					<!-- mainInfo -->
					<field id="cm:name" set="mainInfo" />
					<field id="bcpg:entityTplRef" set="mainInfo">
						<control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
							<control-param name="ds">becpg/autocomplete/targetassoc/associations/qa:batch?classNames=bcpg:entityTplAspect&amp;excludeProps=bcpg:entityTplEnabled%7Cfalse
							</control-param>
							<control-param name="pageLinkTemplate">entity-data-lists?list=View-properties&amp;nodeRef={nodeRef}
							</control-param>
						</control>
					</field>
					<field id="bcpg:code" read-only="true" set="mainInfo" />
					<field id="qa:batchId" set="mainInfo" />

					<field id="cm:description" set="mainInfo" />

					<field id="qa:batchState" set="mainInfo">
						<control template="/org/alfresco/components/form/controls/selectone.ftl">
							<control-param name="options">Simulation|status.entity-simulation,Valid|status.entity-valid</control-param>
						</control>
					</field>
					
					<!-- product-info -->
					<field id="qa:product" set="product-info">
						<control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
							<control-param name="ds">becpg/autocomplete/targetassoc/associations/bcpg:product?classNames=bcpg:finishedProduct,bcpg:semiFinishedProduct&amp;excludeProps=bcpg:productState%7CArchived,bcpg:productState%7CRefused
							</control-param>
							<control-param name="pageLinkTemplate">entity-data-lists?list=View-properties&amp;nodeRef={nodeRef}
							</control-param>
						</control>
					</field>
					<field id="qa:batchQty" set="product-info" mandatory="true" />
					<field id="qa:batchQtyUnit" set="product-info" mandatory="true">
						<control template="/org/alfresco/components/form/controls/product-unit.ftl">
							<control-param name="options">kg,g,lb,oz,L,cL,mL,gal,cp,fl_oz,P|becpg.forms.field.productUnit
							</control-param>
						</control>
					</field>

					<field id="bcpg:plants" mandatory="false" read-only="false" set="product-info" />
					<field id="bcpg:laboratories" mandatory="false" read-only="false" set="product-info" />
					
					<!-- categories -->
					<field id="cm:taggable" set="categories">
						<control>
							<control-param name="compactMode">true</control-param>
							<control-param name="params">aspect=cm:taggable
							</control-param>
							<control-param name="createNewItemUri">/api/tag/workspace/SpacesStore
							</control-param>
							<control-param name="createNewItemIcon">tag</control-param>
						</control>
					</field>
					<field id="cm:categories" set="categories">
						<control>
							<control-param name="compactMode">true</control-param>
						</control>
					</field>
					
					<!-- audit -->
					<field id="cm:creator" set="audit" />
					<field id="cm:created" set="audit" />
					<field id="cm:modifier" set="audit" />
					<field id="cm:modified" set="audit" />
				</appearance>
			</form>

			<form id="product-list">
				<field-visibility>
					<!-- mainInfo -->
					<show id="cm:name" />
					<show id="bcpg:code" />
					<show id="bcpg:entityTplRef" force="true" />
					<show id="qa:batchId" />
					<show id="cm:description" force="true" />
					<show id="qa:batchState" />
					
					<!-- product-info -->
					<show id="qa:product" />
					<show id="qa:batchQty" />
					<show id="qa:batchQtyUnit" />
					 <!-- Location -->
					<show id="bcpg:plants" force="true" />
					<show id="bcpg:laboratories" force="true" />
					
					<!-- auditable -->
					<show id="cm:creator" force="true" />
					<show id="cm:created" force="true" />
					<show id="cm:modifier" force="true" />
					<show id="cm:modified" force="true" />

				</field-visibility>
				<appearance>
					<field id="cm:name" read-only="true"></field>
				</appearance>
			</form>

			<form id="search">
				<field-visibility>
					<!-- mainInfo -->
					<show id="cm:name" />
					<show id="bcpg:code" />
					<show id="bcpg:entityTplRef" force="true" />
					<show id="qa:batchId" />
					<show id="cm:description" force="true" />
					<show id="qa:batchState" />
					
					<!-- product-info -->
					<show id="qa:product" />
					<show id="qa:batchQty" />
					<show id="qa:batchQtyUnit" />
					 <!-- Location -->
					<show id="bcpg:plants" force="true" />
					<show id="bcpg:laboratories" force="true" />
					
					<!-- auditable -->
					<show id="cm:creator" force="true" />
					<show id="cm:created" force="true" />
					<show id="cm:modifier" force="true" />
					<show id="cm:modified" force="true" />

				</field-visibility>
				<appearance>
					<set id="mainInfo" template="/org/alfresco/components/form/2-column-set.ftl" appearance="bordered-panel"
						label-id="becpg.forms.set.batch-info.label" />
					<set id="product-info" template="/org/alfresco/components/form/3-column-set.ftl" appearance="bordered-panel"
						label-id="becpg.forms.set.product-info.label" />
					<set id="audit" appearance="bordered-panel" label-id="becpg.forms.set.audit.label" template="/org/alfresco/components/form/2-column-set.ftl" />

					<field id="cm:name" set="mainInfo">
						<control template="/org/alfresco/components/form/controls/textfield.ftl" />
					</field>
					<field id="bcpg:code" set="mainInfo">
						<control template="/org/alfresco/components/form/controls/textfield.ftl">
							<control-param name="forceEditable">true</control-param>
						</control>
					</field>
					<field id="bcpg:entityTplRef" set="mainInfo">
						<control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
							<control-param name="ds">becpg/autocomplete/targetassoc/associations/qa:batch?classNames=bcpg:entityTplAspect&amp;excludeProps=bcpg:entityTplEnabled%7Cfalse
							</control-param>
							<control-param name="pageLinkTemplate">entity-data-lists?list=View-properties&amp;nodeRef={nodeRef}
							</control-param>
							<control-param name="isSearch">true</control-param>
						</control>
					</field>
					<field id="qa:batchId" set="mainInfo">
						<control template="/org/alfresco/components/form/controls/textfield.ftl" />
					</field>
					<field id="cm:description" set="mainInfo">
						<control template="/org/alfresco/components/form/controls/textfield.ftl" />
					</field>
					<field id="qa:batchState" set="mainInfo">
						<control template="/org/alfresco/components/form/controls/selectmany.ftl">
							<control-param name="options">Simulation|status.entity-simulation,Valid|status.entity-valid</control-param>
							<control-param name="isSearch">true</control-param>
						</control>
					</field>
					
					<!-- product-info -->
					<field id="qa:product" set="product-info">
						<control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
							<control-param name="ds">becpg/autocomplete/targetassoc/associations/bcpg:product?classNames=bcpg:finishedProduct,bcpg:semiFinishedProduct&amp;excludeProps=bcpg:productState%7CArchived,bcpg:productState%7CRefused
							</control-param>
							<control-param name="pageLinkTemplate">entity-data-lists?list=View-properties&amp;nodeRef={nodeRef}
							</control-param>
							<control-param name="isSearch">true</control-param>
						</control>
					</field>
					<field id="qa:batchQty" set="product-info" />
					<field id="qa:batchQtyUnit" set="product-info">
						<control template="/org/alfresco/components/form/controls/product-unit.ftl">
							<control-param name="options">kg,g,lb,oz,L,cL,mL,gal,cp,fl_oz,P|becpg.forms.field.productUnit
							</control-param>
							<control-param name="insertBlank">true</control-param>
							<control-param name="isSearch">true</control-param>
						</control>
					</field>

					<field id="bcpg:plants" mandatory="false" read-only="false" set="product-info" />
					<field id="bcpg:laboratories" mandatory="false" read-only="false" set="product-info" />
					
					<!-- audit -->
					<field id="cm:creator" set="audit">
						<control>
							<control-param name="forceEditable">true</control-param>
						</control>
					</field>

					<field id="cm:created" set="audit">
						<control template="/org/alfresco/components/form/controls/daterange.ftl" />
					</field>
					<field id="cm:modifier" set="audit">
						<control>
							<control-param name="forceEditable">true</control-param>
						</control>
					</field>

					<field id="cm:modified" set="audit">
						<control template="/org/alfresco/components/form/controls/daterange.ftl" />
					</field>
				</appearance>
			</form>
			<form id="datagridWUsed">
          		<field-visibility>
					<show id="cm:name" />
					<show id="qa:batchState"/>
					<show id="qa:batchQty"/>
					<show id="qa:batchQtyUnit"/>
                    <show id="bcpg:laboratories" force="true" />
					<show id="cm:creator" for-mode="view" />
					<show id="cm:created" for-mode="view" />
          		</field-visibility>
     		</form>
		</forms>
	</config>

	<config evaluator="node-type" condition="qa:batch">
		<forms>
			<form>
				<field-visibility>
					<!-- mainInfo -->
					<show id="cm:name" />
					<show id="bcpg:code" />
					<show id="bcpg:entityTplRef" force="true" />
					<show id="qa:batchId" />
					<show id="cm:description" force="true" />
					<show id="qa:batchState" />
					
					<!-- product-info -->
					<show id="qa:product" />
					<show id="qa:batchQty" />
					<show id="qa:batchQtyUnit" />
					 <!-- Location -->
					<show id="bcpg:plants" force="true" />
					<show id="bcpg:laboratories" force="true" />
					
					<!-- tags and categories -->
					<show id="cm:taggable" />
					<show id="cm:categories" />
					
					<!-- auditable -->
					<show id="cm:creator" for-mode="view" />
					<show id="cm:created" for-mode="view" />
					<show id="cm:modifier" for-mode="view" />
					<show id="cm:modified" for-mode="view" />

				</field-visibility>
				<appearance>
					<set id="mainInfo" template="/org/alfresco/components/form/2-column-set.ftl" appearance="bordered-panel"
						label-id="becpg.forms.set.batch-info.label" />
					<set id="product-info" template="/org/alfresco/components/form/3-column-set.ftl" appearance="bordered-panel"
						label-id="becpg.forms.set.product-info.label" />
					<set id="categories" appearance="bordered-panel" label-id="becpg.forms.set.category.label"
						template="/org/alfresco/components/form/2-column-set.ftl" />
					<set id="audit" appearance="bordered-panel" label-id="becpg.forms.set.audit.label" template="/org/alfresco/components/form/2-column-set.ftl" />

					<field id="cm:name" set="mainInfo" />
					<field id="bcpg:code" read-only="true" set="mainInfo" />

					<field id="bcpg:entityTplRef" set="mainInfo">
						<control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
							<control-param name="ds">becpg/autocomplete/targetassoc/associations/qa:batch?classNames=bcpg:entityTplAspect&amp;excludeProps=bcpg:entityTplEnabled%7Cfalse
							</control-param>
							<control-param name="pageLinkTemplate">entity-data-lists?list=View-properties&amp;nodeRef={nodeRef}
							</control-param>
						</control>
					</field>
					<field id="qa:batchId" set="mainInfo" />

					<field id="cm:description" set="mainInfo" />

					<field id="qa:batchState" set="mainInfo">
						<control template="/org/alfresco/components/form/controls/selectone.ftl">
							<control-param name="options">Simulation|status.entity-simulation,Valid|status.entity-valid</control-param>
						</control>
					</field>
					
					<!-- product-info -->
					<field id="qa:product" set="product-info">
						<control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
							<control-param name="ds">becpg/autocomplete/targetassoc/associations/bcpg:product?classNames=bcpg:finishedProduct,bcpg:semiFinishedProduct&amp;excludeProps=bcpg:productState%7CArchived,bcpg:productState%7CRefused
							</control-param>
							<control-param name="pageLinkTemplate">entity-data-lists?list=View-properties&amp;nodeRef={nodeRef}
							</control-param>
						</control>
					</field>
					<field id="qa:batchQty" set="product-info" mandatory="true" />
					<field id="qa:batchQtyUnit" set="product-info" mandatory="true">
						<control template="/org/alfresco/components/form/controls/product-unit.ftl">
							<control-param name="options">kg,g,lb,oz,L,cL,mL,gal,cp,fl_oz,P|becpg.forms.field.productUnit
							</control-param>
						</control>
					</field>


					<field id="bcpg:plants" mandatory="false" read-only="false" set="product-info" />
					<field id="bcpg:laboratories" mandatory="false" read-only="false" set="product-info" />
					
					<!-- categories -->
					<field id="cm:taggable" set="categories">
						<control>
							<control-param name="compactMode">true</control-param>
							<control-param name="params">aspect=cm:taggable
							</control-param>
							<control-param name="createNewItemUri">/api/tag/workspace/SpacesStore
							</control-param>
							<control-param name="createNewItemIcon">tag</control-param>
						</control>
					</field>
					<field id="cm:categories" set="categories">
						<control>
							<control-param name="compactMode">true</control-param>
						</control>
					</field>
					
					<!-- audit -->
					<field id="cm:creator" set="audit" />
					<field id="cm:created" set="audit" />
					<field id="cm:modifier" set="audit" />
					<field id="cm:modified" set="audit" />

				</appearance>
			</form>

			<form id="doclib-simple-metadata">
				<field-visibility>
					<show id="cm:name" />
					<show id="cm:description" />
					<!-- tags and categories -->
					<show id="cm:taggable" for-mode="edit" force="true" />
					<show id="cm:categories" />
				</field-visibility>
				<edit-form template="../documentlibrary/forms/doclib-simple-metadata.ftl" />
				<appearance>
					<field id="cm:name">
						<control>
							<control-param name="maxLength">255</control-param>
						</control>
					</field>

					<field id="cm:description">
						<control>
							<control-param name="activateLinks">true</control-param>
						</control>
					</field>

					<field id="cm:taggable">
						<control>
							<control-param name="compactMode">true</control-param>
							<control-param name="params">aspect=cm:taggable
							</control-param>
							<control-param name="createNewItemUri">/api/tag/workspace/SpacesStore
							</control-param>
							<control-param name="createNewItemIcon">tag</control-param>
						</control>
					</field>
					<field id="cm:categories">
						<control>
							<control-param name="compactMode">true</control-param>
						</control>
					</field>
				</appearance>
			</form>
			<form id="formulation">
				<field-visibility>
					<show id="qa:batchState" />
				</field-visibility>
				<appearance>
					<field id="qa:batchState">
						<control template="/org/alfresco/components/form/controls/selectone.ftl">
							<control-param name="options">Simulation|status.entity-simulation,Valid|status.entity-valid</control-param>
						</control>
					</field>
				</appearance>
			</form>

			<form id="reports-parameters">
				<field-visibility>
					<show id="rep:reportLocales" force="true" />
					<show id="rep:reportParameters" force="true" />
					<show id="rep:reportTpls" force="true" />
				</field-visibility>
				<appearance>
					<field id="rep:reportLocales">
						<control template="/org/alfresco/components/form/controls/mtlangue.ftl" />
					</field>
					<field id="rep:reportParameters">
						<control template="/org/alfresco/components/form/controls/checkboxmany.ftl" />
					</field>
					<field id="rep:reportTpls">
						<control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
							<control-param name="ds">becpg/autocomplete/targetassoc/associations/rep:reportTpl?excludeProps=rep%3AreportTplIsSystem%7Ctrue%2Crep%3AreportTplIsDisabled%7Ctrue%2Crep%3AreportTplType%7CExportSearch%2Crep%3AreportTplType%7CCompare%2Crep%3AreportTplType%7CSystem
							</control-param>
						</control>
					</field>
				</appearance>
			</form>
		</forms>
	</config>



	<config evaluator="node-type" condition="qa:batchAllocationList">
		<forms>
			<!-- Data List pop-up edit form -->
			<form>
				<field-visibility>
					<show id="qa:product" />
					<show id="qa:batchQty" />
					<show id="qa:batchQtyUnit" />
					<show id="qa:batchState" />
					<show id="qa:batchAllocationStockRefs" />
				</field-visibility>
				<appearance>
					<field id="qa:product" read-only="true" />
					<field id="qa:batchQty" read-only="true" />
					<field id="qa:batchQtyUnit" read-only="true">
						<control template="/org/alfresco/components/form/controls/product-unit.ftl">
							<control-param name="options">kg,g,lb,oz,L,cL,mL,gal,cp,fl_oz,P|becpg.forms.field.productUnit
							</control-param>
						</control>
					</field>
					<field id="qa:batchState" read-only="true" />
					<field id="qa:batchAllocationStockRefs">
						<control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
							<control-param name="ds">becpg/autocomplete/stocks</control-param>
							<control-param name="urlParamsToPass">itemId</control-param>
						</control>
					</field>

				</appearance>

			</form>
		</forms>
	</config>
	<config evaluator="model-type" condition="qa:batchAllocationList">
		<forms>
			<!-- Create item form -->
			<form>
				<field-visibility>
					<show id="qa:product" />
					<show id="qa:batchQty" />
					<show id="qa:batchQtyUnit" />
					<show id="qa:batchState" />
					<show id="qa:batchAllocationStockRefs" />
				</field-visibility>
				<appearance>
					<field id="qa:product" read-only="true" />
					<field id="qa:batchQty" read-only="true" />
					<field id="qa:batchQtyUnit" read-only="true">
						<control template="/org/alfresco/components/form/controls/product-unit.ftl">
							<control-param name="options">kg,g,lb,oz,L,cL,mL,gal,cp,fl_oz,P|becpg.forms.field.productUnit
							</control-param>
						</control>
					</field>
					<field id="qa:batchState" read-only="true" />
					<field id="qa:batchAllocationStockRefs" read-only="true" />
				</appearance>
			</form>
			<!-- Data Grid view -->
			<form id="datagrid">
				<field-visibility>
					<show id="qa:product" />
					<show id="qa:batchQty" />
					<show id="qa:batchQtyUnit" />
					<show id="qa:batchState" />
					<show id="qa:batchAllocationStockRefs" />
					<show id="fm:commentCount" force="true" />
				</field-visibility>
				<appearance>
					<field id="qa:product" read-only="true" />
					<field id="qa:batchQty" read-only="true" />
					<field id="qa:batchQtyUnit" read-only="true">
						<control template="/org/alfresco/components/form/controls/product-unit.ftl">
							<control-param name="options">kg,g,lb,oz,L,cL,mL,gal,cp,fl_oz,P|becpg.forms.field.productUnit
							</control-param>
						</control>
					</field>
					<field id="qa:batchState" read-only="true" />
					<field id="qa:batchAllocationStockRefs" read-only="true" />
					<field id="fm:commentCount" label="hidden" read-only="true" />
				</appearance>
			</form>
		</forms>
	</config>

	<config evaluator="node-type" condition="qa:stockList">
		<forms>
			<!-- Data List pop-up edit form -->
			<form>
				<field-visibility>
					<show id="qa:batchId" />
					<show id="qa:batchQty" />
					<show id="qa:batchQtyUnit" />
					<show id="qa:batchState" />
					<show id="qa:productUseByDate" />
					<show id="bcpg:suppliers" force="true" />
					<show id="bcpg:plants" force="true" />
					<show id="bcpg:laboratories" force="true" />
				</field-visibility>
				<appearance>
					<field id="qa:batchQtyUnit">
						<control template="/org/alfresco/components/form/controls/product-unit.ftl">
							<control-param name="options">kg,g,lb,oz,L,cL,mL,gal,cp,fl_oz,P|becpg.forms.field.productUnit
							</control-param>
						</control>
					</field>
					<field id="qa:batchState">
						<control template="/org/alfresco/components/form/controls/selectone.ftl">
							<control-param name="options">ToValidate|status.entity-tovalidate,Valid|status.entity-valid,Refused|status.entity-refused</control-param>
						</control>
					</field>
				</appearance>

			</form>
		</forms>
	</config>
	<config evaluator="model-type" condition="qa:stockList">
		<forms>
			<!-- Create item form -->
			<form>
				<field-visibility>
					<show id="qa:batchId" />
					<show id="qa:batchQty" />
					<show id="qa:batchQtyUnit" />
					<show id="qa:batchState" />
					<show id="bcpg:suppliers" />
					<show id="qa:productUseByDate" />
					<show id="bcpg:suppliers" force="true" />
					<show id="bcpg:plants" force="true" />
					<show id="bcpg:laboratories" force="true" />
				</field-visibility>
				<appearance>
					<field id="qa:batchQtyUnit">
						<control template="/org/alfresco/components/form/controls/product-unit.ftl">
							<control-param name="options">kg,g,lb,oz,L,cL,mL,gal,cp,fl_oz,P|becpg.forms.field.productUnit
							</control-param>
						</control>
					</field>
					<field id="qa:batchState">
						<control template="/org/alfresco/components/form/controls/selectone.ftl">
							<control-param name="options">ToValidate|status.entity-tovalidate,Valid|status.entity-valid,Refused|status.entity-refused</control-param>
						</control>
					</field>
				</appearance>
			</form>
			<!-- Data Grid view -->
			<form id="datagrid">
				<field-visibility>
					<show id="qa:batchId" />
					<show id="qa:batchQty" />
					<show id="qa:batchQtyUnit" />
					<show id="qa:batchState" />
					<show id="qa:productUseByDate" />
					<show id="bcpg:suppliers" force="true" />
					<show id="bcpg:plants" force="true" />
					<show id="bcpg:laboratories" force="true" />
					<show id="fm:commentCount" force="true" />
				</field-visibility>
				<appearance>
					<field id="qa:batchState">
						<control template="/org/alfresco/components/form/controls/selectone.ftl">
							<control-param name="options">ToValidate|status.entity-tovalidate,Valid|status.entity-valid,Refused|status.entity-refused</control-param>
						</control>
					</field>
					<field id="fm:commentCount" label="hidden" read-only="true" />
				</appearance>
			</form>
		</forms>
	</config>
	
	

	<!-- ______________________________________________ Non conformity_________________________________________ -->
	<!-- qa:nc type (creating nodes nodes) -->
	<config evaluator="model-type" condition="qa:nc">
		<forms>
			<form id="product-list">
				<field-visibility>

					<!-- mainInfo -->
					<show id="cm:name" />
					<show id="bcpg:code" />
					<show id="qa:ncType" />
					<show id="qa:ncPriority" />
					<show id="qa:ncQuantityNc" />
					<show id="qa:ncQuantityNcUnit" />
					<show id="qa:ncCreationStep" />
					<show id="qa:ncDetectionStep" />
					<show id="qa:ncState" />

					<!-- batch -->
					<show id="qa:batchId" force="true" />
					<show id="qa:orderId" force="true" />
					<show id="bcpg:clients" force="true" />
					<show id="bcpg:suppliers" force="true" />

					<!-- Product -->

					<show id="qa:product" force="true" />
					<show id="bcpg:plants" force="true" />
				

					<!-- auditable -->
					<show id="cm:created" />
					<show id="cm:modified" />

				</field-visibility>
				<appearance>
					<field id="cm:name" read-only="true"></field>
				</appearance>
			</form>
			<form id="search">
				<field-visibility>

					<!-- mainInfo -->
					<show id="cm:name" />
					<show id="bcpg:code" />
					<show id="qa:ncType" />
					<show id="qa:ncPriority" />
					<show id="qa:ncQuantityNc" />
					<show id="qa:ncQuantityNcUnit" />
					<show id="qa:ncCreationStep" />
					<show id="qa:ncDetectionStep" />
					<show id="qa:ncState" />

					<!-- batch -->
					<show id="qa:batchId" force="true" />
					<show id="qa:orderId" force="true" />
					<show id="bcpg:clients" force="true" />
					<show id="bcpg:suppliers" force="true" />

					<!-- Product -->

					<show id="qa:product" force="true" />
					<show id="bcpg:plants" force="true" />
				

					<!-- auditable -->
					<show id="cm:created" />
					<show id="cm:modified" />

				</field-visibility>
				<appearance>
					<set id="mainInfo" template="/org/alfresco/components/form/2-column-set.ftl" appearance="bordered-panel"
						label-id="becpg.forms.set.nc-info.label" />
					<field id="cm:name" set="mainInfo">
						<control>
							<control-param name="forceEditable">true</control-param>
						</control>
					</field>
					<field id="bcpg:code" read-only="true" set="mainInfo">
						<control>
							<control-param name="forceEditable">true</control-param>
						</control>
					</field>
					<field id="qa:ncType" set="mainInfo">
						<control>
							<control-param name="forceEditable">true</control-param>
						</control>
					</field>
					<field id="qa:ncPriority" set="mainInfo">
						<control template="/org/alfresco/components/form/controls/selectone.ftl">
							<control-param name="options">,1|priority.high,2|priority.medium,3|priority.low</control-param>
							<control-param name="forceEditable">true</control-param>
						</control>
					</field>
					<field id="qa:ncState" set="mainInfo">
						<control>
							<control-param name="forceEditable">true</control-param>
						</control>
					</field>
					<field id="qa:ncCreationStep" set="mainInfo">
						<control>
							<control-param name="forceEditable">true</control-param>
						</control>
					</field>
					<field id="qa:ncDetectionStep" set="mainInfo">
						<control>
							<control-param name="forceEditable">true</control-param>
						</control>
					</field>
					<field id="qa:ncQuantityNc" set="mainInfo">
						<control>
							<control-param name="forceEditable">true</control-param>
						</control>
					</field>
					<field id="qa:ncQuantityNcUnit" set="mainInfo">
						<control>
							<control-param name="forceEditable">true</control-param>
						</control>
					</field>

					<set id="product-info" appearance="bordered-panel" label-id="becpg.forms.set.product-info.label" />
					<field id="qa:product" set="product-info">
						<control>
							<control-param name="forceEditable">true</control-param>
						</control>
					</field>
					<field id="bcpg:plants" set="product-info" label-id="becpg.forms.field.claim.plants">
						<control>
							<control-param name="forceEditable">true</control-param>
						</control>
					</field>


					<set id="batch-info" template="/org/alfresco/components/form/2-column-set.ftl" appearance="bordered-panel"
						label-id="becpg.forms.set.batch-info.label" />
					<field id="qa:batchId" set="batch-info">
						<control>
							<control-param name="forceEditable">true</control-param>
						</control>
					</field>
					<field id="qa:orderId" set="batch-info">
						<control>
							<control-param name="forceEditable">true</control-param>
						</control>
					</field>
					<field id="bcpg:clients" force="true" set="batch-info">
						<control>
							<control-param name="forceEditable">true</control-param>
						</control>
					</field>
					<field id="bcpg:suppliers" force="true" set="batch-info">
						<control>
							<control-param name="forceEditable">true</control-param>
						</control>
					</field>


				<!-- audit -->
					<set id="audit" appearance="bordered-panel" label-id="becpg.forms.set.audit.label" />
					<field id="cm:created" set="audit">
						<control template="/org/alfresco/components/form/controls/daterange.ftl" />
					</field>
					<field id="cm:modified" set="audit">
						<control template="/org/alfresco/components/form/controls/daterange.ftl" />
					</field>
				</appearance>
			</form>

			<form id="create">
				<field-visibility>
					<!-- mainInfo -->
					<show id="cm:name" />
					<show id="bcpg:code" />
					<show id="qa:ncType" />
					<show id="qa:ncPriority" />
					<show id="cm:description" force="true" />
					<show id="qa:ncCost" />
					<show id="qa:ncQuantityNc" />
					<show id="qa:ncQuantityNcUnit" />
					<show id="qa:ncCreationStep" />
					<show id="qa:ncDetectionStep" />
					<show id="qa:ncState" />
					<show id="qa:ncComment" />

					<!-- Start -->
					<show id="bcpg:clients" force="true" />
					<show id="qa:product" force="true" />
					<show id="qa:batchId" force="true" />
					<show id="qa:productUseByDate" force="true" />
					<show id="qa:orderId" force="true" />
					<show id="bcpg:suppliers" force="true" />
					<show id="qa:batchComment" force="true" />
					
					<!-- Orientation -->
					<show id="bcpg:plants" force="true" />
				</field-visibility>
				<appearance>
					<set id="mainInfo" template="/org/alfresco/components/form/2-column-set.ftl" appearance="bordered-panel"
						label-id="becpg.forms.set.nc-info.label" />
					<field id="cm:name" set="mainInfo" />
					<field id="bcpg:code" read-only="true" set="mainInfo" />
					<field id="qa:ncType" set="mainInfo" />
					<field id="qa:ncState" set="mainInfo" />
					<field id="qa:ncPriority" set="mainInfo">
						<control template="/org/alfresco/components/form/controls/workflow/priority.ftl" />
					</field>
					<field id="qa:ncCreationStep" set="mainInfo" />
					<field id="qa:ncDetectionStep" set="mainInfo" />
					<field id="qa:ncQuantityNc" set="mainInfo" />
					<field id="qa:ncQuantityNcUnit" set="mainInfo" />
					<field id="qa:ncCost" set="mainInfo" />
					<field id="cm:description" set="mainInfo">
						<control template="/org/alfresco/components/form/controls/textarea.ftl">
							<control-param name="rows">3</control-param>
						</control>
					</field>
					<field id="qa:ncComment" set="mainInfo">
						<control template="/org/alfresco/components/form/controls/textarea.ftl">
							<control-param name="rows">3</control-param>
						</control>
					</field>

					<set id="info" appearance="bordered-panel" label-id="workflow.claim.set.start" />
					<set id="info1" parent="info" appearance="" template="/org/alfresco/components/form/2-column-set.ftl" />
					<field id="bcpg:clients" label-id="becpg.forms.field.claim.client" mandatory="false" read-only="false" set="info1">
						<control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
					</field>
					<field id="qa:product" mandatory="false" read-only="false" set="info1" />
					<field id="qa:batchId" mandatory="false" read-only="false" set="info1" />
					<field id="qa:productUseByDate" mandatory="false" read-only="false" set="info1" />
					<field id="bcpg:suppliers" set="info1" />
					<field id="qa:orderId" set="info1" />

					<set id="info4" parent="info" appearance="" />
					<field id="qa:batchComment" set="info4">
						<control template="/org/alfresco/components/form/controls/textarea.ftl">
							<control-param name="rows">3</control-param>
						</control>
					</field>

					<set id="analysis" appearance="bordered-panel" label-id="workflow.claim.set.orientation" />
					<field id="bcpg:plants" set="analysis" mandatory="false" read-only="false" label-id="becpg.forms.field.claim.plants" />
				</appearance>
			</form>
			<form id="datagrid">
				<field-visibility>

					<!-- mainInfo -->
					<show id="qa:ncPriority" />
					<show id="cm:name" />
					<show id="qa:ncType" />


					<show id="bcpg:plants" force="true" />
					<!-- Code produit ? -->
					<show id="qa:product" force="true" />
					<show id="qa:claimType" force="true" />
					<show id="qa:claimDistributionNetwork" force="true" />
					<show id="bcpg:clients" force="true" />
					<show id="qa:claimDescription" force="true" />
					
					<!-- Claim -->

					<!-- 
					<show id="qa:ncState" />
					<show id="cm:creator"   />
					<show id="qa:claimResponseActor" force="true"/> 
					<show id="cm:created"  />
					<show id="qa:claimResponseDate" force="true"/> 
					<show id="qa:claimClosingDate" force="true"/> -->

				</field-visibility>
				<appearance>
					<field id="cm:name" label-id="becpg.forms.field.claim.name" />
					<field id="bcpg:plants" label-id="becpg.forms.field.claim.plants" />
            	<!-- <field id="cm:creator" label-id="becpg.forms.field.claim.creator" />
            	<field id="cm:created" label-id="Date becpg.forms.field.claim.created" /> -->

				</appearance>
			</form>
			<form id="export">
				<field-visibility>
					<!-- mainInfo -->
					<show id="cm:name" force="true" />
					<show id="qa:ncState" force="true" />
					
					<!-- Start -->
					<show id="qa:claimSource" force="true" />
					<show id="qa:claimTradeContact" force="true" />
					<show id="entity_bcpg:clients_bcpg:client" force="true" />
					<show id="qa:claimDistributionNetwork" force="true" />
					<show id="qa:claimCustomerInformation" force="true" />
					<show id="qa:claimTracking" force="true" />
					<show id="entity_qa:product_bcpg:product" force="true" />
					<show id="qa:batchId" force="true" />
					<show id="qa:productUseByDate" force="true" />

					<show id="qa:claimDescription" force="true" />
					<show id="qa:claimStartComment" force="true" />

					<!-- Orientation -->
					<show id="bcpg:plants" force="true" />
					<show id="qa:claimTreatmentActor" force="true" />
					<show id="qa:claimResponseActor" force="true" />
					<show id="qa:claimAnalysisComment" force="true" />
					
					<!-- Treatement -->
					<show id="qa:claimTreatementDate" force="true" />
					<show id="qa:claimTreatementDetails" force="true" />
					<show id="qa:claimTreatementPrevActions" force="true" />
					<show id="qa:claimTreatementComment" force="true" />
					
					<!-- Response -->
					<show id="qa:claimResponseDate" force="true" />
					<show id="qa:claimResponseState" force="true" />
					<show id="qa:claimResponseDetails" force="true" />
					<show id="qa:claimResponseComment" force="true" />
					
					<!-- Classification -->
					<show id="qa:claimType" force="true" />
					<show id="qa:claimOriginHierarchy1" force="true" />
					<show id="qa:claimOriginHierarchy2" force="true" />
					<show id="qa:claimClassificationComment" force="true" />
					
					<!-- Closing -->
					<show id="qa:claimClosingDate" force="true" />
					<show id="qa:claimClosingComment" force="true" />
					
					<!-- auditable -->
					<show id="cm:creator" force="true" />
					<show id="cm:created" force="true" />

					<show id="qa:ncType" force="true" />

				</field-visibility>
				<appearance>
					<field id="cm:name" label-id="becpg.forms.field.claim.name" />
					<field id="bcpg:plants" label-id="becpg.forms.field.claim.plants" />
					<field id="cm:creator" label-id="becpg.forms.field.claim.creator" />
					<field id="cm:created" label-id="becpg.forms.field.claim.created" />
					<field id="qa:ncState" label-id="becpg.forms.field.claim.state" />
				</appearance>
			</form>
			<form id="filter">
				<field-visibility>

					<!-- mainInfo -->
					<show id="qa:ncType" />
					<show id="qa:ncPriority" />
					<show id="cm:name" />
					<show id="bcpg:plants" force="true" />
					<!--  <show id="qa:product" force="true"/> -->

					<show id="entity_qa:product_bcpg:product" />


					<show id="qa:claimType" force="true" />
					<show id="qa:claimDistributionNetwork" force="true" />
					<show id="bcpg:clients" force="true" />
					<show id="qa:ncState" />
					<show id="cm:created" />
					
					<!-- batch 
					<show id="qa:batchId" force="true" />
					-->

				</field-visibility>
				<appearance>
					<set id="mainInfo" template="/org/alfresco/components/form/2-column-set.ftl" />
					<field id="qa:ncType" set="mainInfo">
						<control template="/org/alfresco/components/form/controls/selectone.ftl">
							<control-param name="insertBlank">true</control-param>
							<control-param name="isSearch">true</control-param>
						</control>
					</field>
					<field id="qa:ncPriority" set="mainInfo">
						<control template="/org/alfresco/components/form/controls/selectone.ftl">
							<control-param name="options">1|priority.high,2|priority.medium,3|priority.low</control-param>
							<control-param name="insertBlank">true</control-param>
						</control>
					</field>
					<field id="qa:ncState" label-id="becpg.forms.field.claim.state" set="mainInfo" />
					<field id="cm:name" label-id="becpg.forms.field.claim.name" set="mainInfo" />
					<field id="bcpg:plants" label-id="becpg.forms.field.claim.plants" set="mainInfo" />
					<!--  <field id="qa:product"   set="mainInfo"/> -->
					<field id="entity_qa:product_bcpg:product" set="mainInfo" />

					<field id="qa:claimDistributionNetwork" set="mainInfo">
						<control template="/org/alfresco/components/form/controls/selectone.ftl">
							<control-param name="insertBlank">true</control-param>
							<control-param name="isSearch">true</control-param>
						</control>
					</field>
					<field id="bcpg:clients" set="mainInfo" />
					<field id="qa:claimType" set="mainInfo">
						<control template="/org/alfresco/components/form/controls/selectmany.ftl">
							<control-param name="insertBlank">true</control-param>
							<control-param name="isSearch">true</control-param>
						</control>
					</field>
					<set id="mainInfo2" />
					<field id="cm:created" label-id="becpg.forms.field.claim.created.range" set="mainInfo2">
						<control template="/org/alfresco/components/form/controls/daterange.ftl" />
					</field>

				</appearance>
			</form>
			<form id="datagridWUsed">
				<field-visibility>

					<!-- mainInfo -->
					<show id="cm:name" />
					<show id="bcpg:plants" force="true" />
					<show id="qa:claimType" force="true" />
					<show id="qa:claimDistributionNetwork" force="true" />
					<show id="bcpg:clients" force="true" />
					<show id="bcpg:suppliers" force="true" />
					<show id="qa:claimDescription" force="true" />

				</field-visibility>
				<appearance>
					<field id="cm:name" read-only="true" />
				</appearance>
			</form>
		</forms>
	</config>
	

	<!-- qa:nc type (existing nodes) -->
	<config evaluator="node-type" condition="qa:nc">
		<forms>
			<form>
				<field-visibility>

					<!-- mainInfo -->
					<show id="cm:name" />
					<show id="bcpg:code" />
					<show id="qa:ncType" />
					<show id="qa:ncPriority" />
					<show id="cm:description" force="true" />
					<show id="qa:ncCost" />
					<show id="qa:ncQuantityNc" />
					<show id="qa:ncQuantityNcUnit" />
					<show id="qa:ncCreationStep" />
					<show id="qa:ncDetectionStep" />
					<show id="qa:ncState" />
					<show id="qa:ncComment" />
					
					<!-- Start -->
					<show id="qa:claimSource" />
					<show id="qa:claimTradeContact" />
					<show id="bcpg:clients" />
					<show id="qa:claimDistributionNetwork" />
					<show id="qa:claimCustomerInformation" />
					<show id="qa:claimTracking" />
					<show id="qa:product" />
					<show id="qa:batchId" />
					<show id="qa:productUseByDate" />
					<show id="qa:orderId" />
					<show id="qa:batchComment" />
					<show id="bcpg:suppliers" />


					<show id="qa:claimDescription" />
					<show id="qa:claimStartComment" />

					<!-- Orientation -->
					<show id="bcpg:plants" />
					<show id="qa:claimTreatmentActor" />
					<show id="qa:claimResponseActor" />
					<show id="qa:claimAnalysisComment" />
					
					<!-- Treatement -->
					<show id="qa:claimTreatementDate" />
					<show id="qa:claimTreatementDetails" />
					<show id="qa:claimTreatementPrevActions" />
					<show id="qa:claimTreatementComment" />
					
					<!-- Response -->
					<show id="qa:claimResponseDate" />
					<show id="qa:claimResponseState" />
					<show id="qa:claimResponseDetails" />
					<show id="qa:claimResponseComment" />
					
					<!-- Classification -->
					<show id="qa:claimType" />
					<show id="qa:claimOriginHierarchy1" />
					<show id="qa:claimOriginHierarchy2" />
					<show id="qa:claimClassificationComment" />
					
					<!-- Closing -->
					<show id="qa:claimClosingDate" />
					<show id="qa:claimClosingComment" />
					
					<!-- local security rule -->
					<show id="sec:securityRef" />	
					
					<!-- auditable -->
					<show id="cm:creator" for-mode="view" />
					<show id="cm:created" for-mode="view" />
					<show id="cm:modifier" for-mode="view" />
					<show id="cm:modified" for-mode="view" />

				</field-visibility>
				<appearance>
					<set id="mainInfo" template="/org/alfresco/components/form/2-column-set.ftl" appearance="bordered-panel"
						label-id="becpg.forms.set.nc-info.label" />
					<field id="cm:name" set="mainInfo" />
					<field id="bcpg:code" read-only="true" set="mainInfo" />
					<field id="qa:ncType" set="mainInfo" />
					<field id="qa:ncState" set="mainInfo" />
					<field id="qa:ncPriority" set="mainInfo">
						<control template="/org/alfresco/components/form/controls/workflow/priority.ftl" />
					</field>
					<field id="qa:ncCreationStep" set="mainInfo" />
					<field id="qa:ncDetectionStep" set="mainInfo" />
					<field id="qa:ncQuantityNc" set="mainInfo" />
					<field id="qa:ncQuantityNcUnit" set="mainInfo" />
					<field id="qa:ncCost" set="mainInfo" />
					<field id="cm:description" set="mainInfo">
						<control template="/org/alfresco/components/form/controls/textarea.ftl">
							<control-param name="rows">3</control-param>
						</control>
					</field>
					<field id="qa:ncComment" set="mainInfo">
						<control template="/org/alfresco/components/form/controls/textarea.ftl">
							<control-param name="rows">3</control-param>
						</control>
					</field>

					<set id="info" appearance="bordered-panel" label-id="workflow.claim.set.start" />
					<set id="info1" parent="info" appearance="" template="/org/alfresco/components/form/2-column-set.ftl" />
					<field id="qa:claimSource" mandatory="true" read-only="false" set="info1" />
					<field id="qa:claimTradeContact" mandatory="false" read-only="false" set="info1" />
					<field id="bcpg:clients" label-id="becpg.forms.field.claim.client" mandatory="false" read-only="false" set="info1">
						<control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
					</field>
					<field id="qa:claimDistributionNetwork" mandatory="false" read-only="false" set="info1" />
					<field id="qa:claimCustomerInformation" mandatory="false" read-only="false" set="info1">
						<control template="/org/alfresco/components/form/controls/textarea.ftl" />
					</field>
					<field id="qa:claimTracking" mandatory="true" read-only="false" set="info1" />

					<set id="info2" parent="info" appearance="" template="/org/alfresco/components/form/2-column-set.ftl" />
					<field id="qa:product" mandatory="false" read-only="false" set="info2" />

					<set id="info3" parent="info" appearance="" template="/org/alfresco/components/form/2-column-set.ftl" />
					<field id="qa:batchId" mandatory="false" read-only="false" set="info3" />
					<field id="qa:productUseByDate" mandatory="false" read-only="false" set="info3" />
					<field id="bcpg:suppliers" force="true" set="info3" />
					<field id="qa:orderId" set="info3" />



					<set id="info4" parent="info" appearance="" />
					<field id="qa:batchComment" set="info4">
						<control template="/org/alfresco/components/form/controls/textarea.ftl">
							<control-param name="rows">3</control-param>
						</control>
					</field>
					<field id="qa:claimDescription" mandatory="true" read-only="false" set="info4">
						<control template="/org/alfresco/components/form/controls/textarea.ftl" />
					</field>
					<field id="qa:claimStartComment" set="info4">
						<control template="/org/alfresco/components/form/controls/textarea.ftl" />
					</field>

					<set id="analysis" appearance="bordered-panel" label-id="workflow.claim.set.orientation" />
					<field id="bcpg:plants" set="analysis" mandatory="false" read-only="false" label-id="becpg.forms.field.claim.plants" />

					<set id="analysis2" parent="analysis" appearance="" template="/org/alfresco/components/form/2-column-set.ftl" />
					<field id="qa:claimTreatmentActor" set="analysis2" mandatory="false" read-only="false">
						<control template="/org/alfresco/components/form/controls/authority.ftl">
							<control-param name="extraParams">group=GROUP_ClaimTreatment</control-param>
						</control>
					</field>
					<field id="qa:claimResponseActor" set="analysis2" mandatory="false" read-only="false">
						<control template="/org/alfresco/components/form/controls/authority.ftl">
							<control-param name="extraParams">group=GROUP_ClaimResponse</control-param>
						</control>
					</field>

					<set id="analysis3" appearance="" parent="analysis" />
					<field id="qa:claimAnalysisComment" set="analysis3">
						<control template="/org/alfresco/components/form/controls/textarea.ftl" />
					</field>

					<set id="treatment" appearance="bordered-panel" label-id="workflow.claim.set.treatment" />
					<field id="qa:claimTreatementDate" set="treatment" />
					<field id="qa:claimTreatementDetails" set="treatment" mandatory="true" read-only="false">
						<control template="/org/alfresco/components/form/controls/textarea.ftl" />
					</field>
					<field id="qa:claimTreatementPrevActions" set="treatment" mandatory="false" read-only="false">
						<control template="/org/alfresco/components/form/controls/textarea.ftl" />
					</field>
					<field id="qa:claimTreatementComment" set="treatment">
						<control template="/org/alfresco/components/form/controls/textarea.ftl" />
					</field>

					<set id="response" appearance="bordered-panel" label-id="workflow.claim.set.response" />
					<field id="qa:claimResponseDate" set="response" />
					<field id="qa:claimResponseState" mandatory="true" set="response" />
					<field id="qa:claimResponseDetails" mandatory="true" set="response">
						<control template="/org/alfresco/components/form/controls/textarea.ftl" />
					</field>
					<field id="qa:claimResponseComment" set="response">
						<control template="/org/alfresco/components/form/controls/textarea.ftl" />
					</field>

					<set id="classification" appearance="bordered-panel" label-id="workflow.claim.set.classification" />
					<set id="classification1" parent="classification" appearance="" template="/org/alfresco/components/form/2-column-set.ftl" />
					<field id="qa:claimType" set="classification" mandatory="true" />
					<field id="qa:claimOriginHierarchy1" set="classification1">
						<control template="/org/alfresco/components/form/controls/autocomplete.ftl">
							<control-param name="ds">becpg/autocomplete/linkedvalue/values/System/QualityLists/bcpg:entityLists/claimOrigin_Hierarchy
							</control-param>
						</control>
					</field>
					<field id="qa:claimOriginHierarchy2" set="classification1">
						<control template="/org/alfresco/components/form/controls/autocomplete.ftl">
							<control-param name="ds">becpg/autocomplete/linkedvalue/values/System/QualityLists/bcpg:entityLists/claimOrigin_Hierarchy
							</control-param>
							<control-param name="parent">qa_claimOriginHierarchy1</control-param>
						</control>
					</field>
					<set id="classification2" parent="classification" appearance="" />
					<field id="qa:claimClassificationComment" set="classification2">
						<control template="/org/alfresco/components/form/controls/textarea.ftl" />
					</field>



					<set id="closing" appearance="bordered-panel" label-id="workflow.claim.set.closing" />
					<field id="qa:claimClosingDate" set="closing" />
					<field id="qa:claimClosingComment" set="closing">
						<control template="/org/alfresco/components/form/controls/textarea.ftl" />
					</field>
					<set id="securityRule" appearance="bordered-panel" label-id="becpg.forms.set.securityRule.label" />
					<field id="sec:securityRef" set="securityRule" mandatory="false" read-only="false">
						<control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
							<control-param name="ds">becpg/autocomplete/targetassoc/associations/sec:aclGroup?&amp;excludeProps=sec:isLocalPermission%7Cfalse
							</control-param>
						</control>
					</field>
					<!-- audit -->
					<set id="audit" appearance="bordered-panel" label-id="becpg.forms.set.audit.label" template="/org/alfresco/components/form/2-column-set.ftl" />
					<field id="cm:creator" set="audit" />
					<field id="cm:created" set="audit" />
					<field id="cm:modifier" set="audit" />
					<field id="cm:modified" set="audit" />

				</appearance>
			</form>
         	<form id="supplier">
         		<field-visibility>

					<!-- mainInfo -->
					<show id="cm:name" />
 					<show id="bcpg:code" />
 					<show id="qa:ncPriority" />
 					<show id="qa:ncQuantityNc" />
 					<show id="qa:ncQuantityNcUnit" />
 					
 					<!-- Saisie -->
 					<show force="true" id="qa:product" />
 					<show force="true" id="qa:batchId" />
 					<show force="true" id="qa:productUseByDate" />
 					<show force="true" id="qa:claimDescription" />
 					<show force="true" id="qa:claimStartComment" />
 					
 					<!-- Traitement -->
 					<show force="true" id="qa:claimTreatementDate" />
 					<show force="true" id="qa:claimTreatementDetails" />
 					<show force="true" id="qa:claimTreatementPrevActions" />
 					<show force="true" id="qa:claimTreatementComment" />

				</field-visibility>
				<appearance>
				
					<!-- mainInfo -->
					<set id="mainInfo" template="/org/alfresco/components/form/2-column-set.ftl" appearance="bordered-panel" label-id="becpg.forms.set.nc-info.label" />
					<field id="cm:name" read-only="true" set="mainInfo" />
					<field id="bcpg:code" read-only="true" set="mainInfo" />
					<field id="qa:ncPriority" read-only="true" set="mainInfo">
						<control template="/org/alfresco/components/form/controls/workflow/priority.ftl" />
					</field>
					<field id="qa:ncQuantityNc" read-only="true" set="mainInfo" />
					<field id="qa:ncQuantityNcUnit" read-only="true" set="mainInfo" />
					
					<!-- Saisie -->
					<set id="entry" template="/org/alfresco/components/form/2-column-set.ftl" appearance="bordered-panel" label-id="workflow.claim.set.start" />
					<field id="qa:product" read-only="true" set="entry" />
					<field id="qa:batchId" read-only="true" set="entry" />
					<field id="qa:productUseByDate" read-only="true" set="entry" />
					<field id="qa:claimDescription" read-only="true" set="entry" >
						<control template="/org/alfresco/components/form/controls/textarea.ftl" />
					</field>
					<field id="qa:claimStartComment" read-only="true" set="entry" >
						<control template="/org/alfresco/components/form/controls/textarea.ftl"/>
					</field>
					
					<!-- Traitement -->
					<set id="treatment" template="/org/alfresco/components/form/2-column-set.ftl" appearance="bordered-panel" label-id="workflow.claim.set.treatment" />
					<field id="qa:claimTreatementDate" read-only="false" set="treatment" />
					<field id="qa:claimTreatementDetails" read-only="false" set="treatment" >
						<control template="/org/alfresco/components/form/controls/textarea.ftl" />
					</field>
					<field id="qa:claimTreatementPrevActions" read-only="false" set="treatment" >
						<control template="/org/alfresco/components/form/controls/textarea.ftl" />
					</field>
					<field id="qa:claimTreatementComment" read-only="false" set="treatment" >
						<control template="/org/alfresco/components/form/controls/textarea.ftl" />
					</field>

				</appearance>
      		</form>
		</forms>
	</config>

	<!-- ______________________________________________ Quality control _________________________________________ -->

	<!-- qa:controlPlan type (creating nodes) -->
	<config evaluator="model-type" condition="qa:controlPlan">
		<forms>
			<form id="create">
				<field-visibility>
					<show id="cm:name" />
					<show id="cm:description" force="true" />
					<show id="cm:title" />
					<show id="bcpg:code" />

					<!-- auditable -->
					<show id="cm:creator" for-mode="view" />
					<show id="cm:created" for-mode="view" />
					<show id="cm:modifier" for-mode="view" />
					<show id="cm:modified" for-mode="view" />
				</field-visibility>
				<appearance>
					<field id="cm:description">
						<control template="/org/alfresco/components/form/controls/textarea.ftl">
							<control-param name="rows">3</control-param>
						</control>
					</field>
				</appearance>
			</form>
		</forms>
	</config>

	<!-- qa:controlPlan type (existing nodes) -->
	<config evaluator="node-type" condition="qa:controlPlan">
		<forms>
			<form>
				<field-visibility>
					<show id="cm:name" />
					<show id="cm:description" force="true" />
					<show id="cm:title" />
					<show id="bcpg:code" />
					
					<!-- local security rule -->
					<show id="sec:securityRef" />	

					<!-- auditable -->
					<show id="cm:creator" for-mode="view" />
					<show id="cm:created" for-mode="view" />
					<show id="cm:modifier" for-mode="view" />
					<show id="cm:modified" for-mode="view" />
				</field-visibility>
				<appearance>
					<field id="cm:description">
						<control template="/org/alfresco/components/form/controls/textarea.ftl">
							<control-param name="rows">3</control-param>
						</control>
					</field>
					<set id="securityRule" appearance="bordered-panel" label-id="becpg.forms.set.securityRule.label" />
					<field id="sec:securityRef" set="securityRule" mandatory="false" read-only="false">
						<control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
							<control-param name="ds">becpg/autocomplete/targetassoc/associations/sec:aclGroup?&amp;excludeProps=sec:isLocalPermission%7Cfalse
							</control-param>
						</control>
					</field>
				</appearance>
			</form>
		</forms>
	</config>

	<!-- qa:qualityControl type (creating nodes) -->
	<config evaluator="model-type" condition="qa:qualityControl">
		<forms>
			<form id="create">
				<field-visibility>
					<show id="cm:name" />
					<show id="cm:title" />
					<show id="cm:description" force="true" />
					<show id="qa:qcControlPlans" />

					<!-- batch -->
					<show id="qa:batchId" />
					<show id="qa:orderId" />
					<show id="qa:batchStart" />
					<show id="qa:batchDuration" />
					<show id="bcpg:clients" />
					<show id="bcpg:suppliers" />
					<show id="qa:batchComment" />

					<!-- Product -->
					<show id="qa:product" />

				</field-visibility>
				<appearance>
					<set id="mainInfo" appearance="bordered-panel" label-id="becpg.forms.set.designation.label" />
					<field id="cm:name" set="mainInfo" />
					<field id="cm:title" set="mainInfo" />
					<field id="cm:description" set="mainInfo" />
					<field id="qa:qcControlPlans" set="mainInfo" />

					<set id="product-info" appearance="bordered-panel" label-id="becpg.forms.set.product-info.label" />
					<field id="qa:product" set="product-info" />

					<set id="batch-info" appearance="bordered-panel" label-id="becpg.forms.set.batch-info.label" />
					<field id="qa:batchId" set="batch-info" />
					<field id="qa:orderId" set="batch-info" />
					<field id="qa:batchStart" set="batch-info" />
					<field id="qa:batchDuration" set="batch-info" />
					<field id="bcpg:clients" set="batch-info" />
					<field id="bcpg:suppliers" set="batch-info" />
					<field id="qa:batchComment" set="batch-info">
						<control template="/org/alfresco/components/form/controls/textarea.ftl">
							<control-param name="rows">3</control-param>
						</control>
					</field>

				</appearance>
			</form>
			<form id="product-list">
				<field-visibility>
					<show id="cm:name" />
					<show id="cm:title" />
					<show id="cm:description" force="true" />
					<show id="qa:qcState" />
					<show id="qa:qcControlPlans" />

					<!-- batch -->
					<show id="qa:batchId" />
					<show id="qa:orderId" />
				
					<!-- Product -->
					<show id="qa:product" />

				</field-visibility>
				<appearance>
					<field id="cm:name" read-only="true"></field>
				</appearance>
			</form>
			<form id="search">
				<field-visibility>
					<show id="cm:name" />
					<show id="cm:title" />
					<show id="cm:description" force="true" />
					<show id="qa:qcState" />
					<show id="qa:qcControlPlans" />

					<!-- batch -->
					<show id="qa:batchId" />
					<show id="qa:orderId" />
				
					<!-- Product -->
					<show id="qa:product" />

				</field-visibility>
				<appearance>
					<field id="cm:name">
						<control>
							<control-param name="forceEditable">true</control-param>
						</control>
					</field>
					<field id="cm:title">
						<control>
							<control-param name="forceEditable">true</control-param>
						</control>
					</field>
					<field id="cm:description">
						<control>
							<control-param name="forceEditable">true</control-param>
						</control>
					</field>
					<field id="qa:qcState">
						<control>
							<control-param name="forceEditable">true</control-param>
						</control>
					</field>
					<field id="qa:qcControlPlans">
						<control>
							<control-param name="forceEditable">true</control-param>
						</control>
					</field>
					<field id="qa:batchId">
						<control>
							<control-param name="forceEditable">true</control-param>
						</control>
					</field>
					<field id="qa:orderId">
						<control>
							<control-param name="forceEditable">true</control-param>
						</control>
					</field>
					<field id="qa:product">
						<control>
							<control-param name="forceEditable">true</control-param>
						</control>
					</field>
				</appearance>
			</form>
			<form id="datagridWUsed">
				<field-visibility>
					<show id="bcpg:code" />
					<show id="cm:name" />
					<show id="qa:qcState" />
					<show id="qa:qcControlPlans" />
					<show id="qa:batchId" />
					<show id="qa:batchStart" />
					<show id="qa:batchComment" />
				</field-visibility>
				<appearance>
					<field id="cm:name" read-only="true" />
				</appearance>
			</form>
		</forms>
	</config>

	<!-- qa:qualityControl type (existing nodes) -->
	<config evaluator="node-type" condition="qa:qualityControl">
		<forms>
			<form>
				<field-visibility>
					<show id="cm:name" />
					<show id="cm:title" />
					<show id="cm:description" force="true" />
					<show id="bcpg:code" />
					<show id="qa:qcSamplesCounter" />
					<show id="qa:qcNextAnalysisDate" />
					<show id="qa:qcState" />
					<show id="qa:qcControlPlans" />

					<!-- batch -->
					<show id="qa:batchId" />
					<show id="qa:orderId" />
					<show id="qa:batchStart" />
					<show id="qa:batchDuration" />
					<show id="bcpg:clients" />
					<show id="bcpg:suppliers" />
					<show id="qa:batchComment" />

					<!-- Product -->
					<show id="qa:product" />
					
					<!-- local security rule -->
					<show id="sec:securityRef" />	

					<!-- auditable -->
					<show id="cm:creator" for-mode="view" />
					<show id="cm:created" for-mode="view" />
					<show id="cm:modifier" for-mode="view" />
					<show id="cm:modified" for-mode="view" />

				</field-visibility>
				<appearance>
					<set id="mainInfo" appearance="bordered-panel" label-id="becpg.forms.set.designation.label" />
					<field id="cm:name" set="mainInfo" />
					<field id="cm:title" set="mainInfo" />
					<field id="cm:description" set="mainInfo" />
					<field id="bcpg:code" read-only="true" set="mainInfo" />
					<field id="qa:qcState" set="mainInfo" />
					<field id="qa:qcSamplesCounter" set="mainInfo" />
					<field id="qa:qcNextAnalysisDate" set="mainInfo" />
					<field id="qa:qcControlPlans" set="mainInfo" />

					<set id="product-info" appearance="bordered-panel" label-id="becpg.forms.set.product-info.label" />
					<field id="qa:product" set="product-info" />

					<set id="batch-info" appearance="bordered-panel" label-id="becpg.forms.set.batch-info.label" />
					<field id="qa:batchId" set="batch-info" />
					<field id="qa:orderId" set="batch-info" />
					<field id="qa:batchStart" set="batch-info" />
					<field id="qa:batchDuration" set="batch-info" />
					<field id="bcpg:clients" set="batch-info" />
					<field id="bcpg:suppliers" set="batch-info" />
					<field id="qa:batchComment" set="batch-info">
						<control template="/org/alfresco/components/form/controls/textarea.ftl">
							<control-param name="rows">3</control-param>
						</control>
					</field>

					<set id="securityRule" appearance="bordered-panel" label-id="becpg.forms.set.securityRule.label" />
					<field id="sec:securityRef" set="securityRule" mandatory="false" read-only="false">
						<control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
							<control-param name="ds">becpg/autocomplete/targetassoc/associations/sec:aclGroup?&amp;excludeProps=sec:isLocalPermission%7Cfalse
							</control-param>
						</control>
					</field>

					<!-- audit -->
					<set id="audit" appearance="bordered-panel" label-id="becpg.forms.set.audit.label" />
					<field id="cm:creator" set="audit" />
					<field id="cm:created" set="audit" />
					<field id="cm:modifier" set="audit" />
					<field id="cm:modified" set="audit" />
				</appearance>
			</form>
			<form id="reports-parameters">
				<field-visibility>
					<show id="rep:reportLocales" force="true" />
					<show id="rep:reportParameters" force="true" />
					<show id="rep:reportTpls" force="true" />
				</field-visibility>
				<appearance>
					<field id="rep:reportLocales">
						<control template="/org/alfresco/components/form/controls/mtlangue.ftl" />
					</field>
					<field id="rep:reportParameters" />
					<field id="rep:reportTpls" />
				</appearance>

			</form>
		</forms>
	</config>

	<!-- qa:controlPoint type (existing nodes) -->
	<config evaluator="node-type" condition="qa:controlPoint">
		<forms>
			<form>
				<field-visibility>
					<show id="cm:name" />
					<show id="cm:title" />
					<show id="cm:description" force="true" />
					<show id="bcpg:code" />
					<show id="qa:cpIsExtLabo" />
					<show id="qa:cpReleaseInfo" />
					<show id="qa:cpSendResults" />
					<show id="qa:cpStoreResults" />
					
					<!-- local security rule -->
					<show id="sec:securityRef" />	

					<!-- auditable -->
					<show id="cm:creator" for-mode="view" />
					<show id="cm:created" for-mode="view" />
					<show id="cm:modifier" for-mode="view" />
					<show id="cm:modified" for-mode="view" />
				</field-visibility>
				<appearance>
					<field id="qa:cpReleaseInfo" set="mainInfo">
						<control template="/org/alfresco/components/form/controls/textarea.ftl">
							<control-param name="rows">3</control-param>
						</control>
					</field>
					<set id="securityRule" appearance="bordered-panel" label-id="becpg.forms.set.securityRule.label" />
					<field id="sec:securityRef" set="securityRule" mandatory="false" read-only="false">
						<control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
							<control-param name="ds">becpg/autocomplete/targetassoc/associations/sec:aclGroup?&amp;excludeProps=sec:isLocalPermission%7Cfalse
							</control-param>
						</control>
					</field>
				</appearance>
			</form>
		</forms>
	</config>

	<!-- qa:workItemAnalysis type (existing nodes) -->
	<config evaluator="node-type" condition="qa:workItemAnalysis">
		<forms>
			<form>
				<field-visibility>
					<show id="cm:name" />
					<show id="cm:title" />
					<show id="cm:description" force="true" />
					<show id="bcpg:code" />

					<!-- auditable -->
					<show id="cm:creator" for-mode="view" />
					<show id="cm:created" for-mode="view" />
					<show id="cm:modifier" for-mode="view" />
					<show id="cm:modified" for-mode="view" />
				</field-visibility>
			</form>
		</forms>
	</config>

	<!-- qa:controlStep type (existing nodes) -->
	<config evaluator="node-type" condition="qa:controlStep">
		<forms>
			<form>
				<field-visibility>
					<show id="bcpg:charactName" />
					<show id="cm:title" />
					<show id="cm:description" force="true" />
					<show id="sec:readGroups" force="true" />
					<show id="bcpg:code" />
					<show id="bcpg:isDeleted" />
				</field-visibility>
			</form>
		</forms>
	</config>
	
	<!-- qa:controlStep type (creating nodes) -->
	<config evaluator="model-type" condition="qa:controlStep">
		<forms>
			<form>
				<field-visibility>
					<show id="bcpg:charactName" />
					<show id="cm:title" />
					<show id="cm:description" force="true" />
					<show id="sec:readGroups" force="true" />
					<show id="bcpg:code" />
					<show id="bcpg:isDeleted" />
				</field-visibility>
			</form>
			<form id="datagrid">
				<field-visibility>
					<show id="bcpg:charactName" />
					<show id="cm:title" />
					<show id="bcpg:code" />
					<show id="sec:readGroups" force="true" />
					<show id="bcpg:isDeleted" />
				</field-visibility>
			</form>
		</forms>
	</config>

	<!-- qa:controlMethod type (existing nodes) -->
	<config evaluator="node-type" condition="qa:controlMethod">
		<forms>
			<form>
				<field-visibility>
					<show id="bcpg:charactName" />
					<show id="cm:title" />
					<show id="cm:description" force="true" />
					<show id="bcpg:code" />
					<show id="sec:readGroups" force="true" />
					<show id="bcpg:isDeleted" />
				</field-visibility>
			</form>
		</forms>
	</config>
	
	<!-- qa:controlMethod type (creating nodes) -->
	<config evaluator="model-type" condition="qa:controlMethod">
		<forms>
			<form>
				<field-visibility>
					<show id="bcpg:charactName" />
					<show id="cm:title" />
					<show id="cm:description" force="true" />
					<show id="bcpg:code" />
					<show id="sec:readGroups" force="true" />
					<show id="bcpg:isDeleted" />
				</field-visibility>
			</form>
			<form id="datagrid">
				<field-visibility>
					<show id="bcpg:charactName" />
					<show id="cm:title" />
					<show id="bcpg:code" />
					<show id="sec:readGroups" force="true" />
					<show id="bcpg:isDeleted" />
				</field-visibility>
			</form>
		</forms>
	</config>
	
	<!-- qa:controlCharact type (existing nodes) -->
	<config evaluator="node-type" condition="qa:controlCharact">
		<forms>
			<form>
				<field-visibility>
					<show id="qa:controlCharactType" force="true" />
					<show id="bcpg:charactName" />
					<show id="cm:title" force="true" />
					<show id="cm:description" force="true" />
					<show id="bcpg:code" />
					<show id="sec:readGroups" force="true" />
					<show id="bcpg:isDeleted" />
				</field-visibility>
			</form>
		</forms>
	</config>
	
	<!-- qa:controlCharact type (creating nodes) -->
	<config evaluator="model-type" condition="qa:controlCharact">
		<forms>
			<form>
				<field-visibility>
					<show id="qa:controlCharactType" force="true" />
					<show id="bcpg:charactName" />
					<show id="cm:title" force="true" />
					<show id="cm:description" force="true" />
					<show id="bcpg:code" />
					<show id="sec:readGroups" force="true" />
					<show id="bcpg:isDeleted" />
				</field-visibility>
			</form>
			<form id="datagrid">
				<field-visibility>
					<show id="qa:controlCharactType" force="true" />
					<show id="bcpg:charactName" force="true" />
					<show id="cm:title" force="true" />
					<show id="bcpg:code" />
					<show id="sec:readGroups" force="true" />
					<show id="bcpg:isDeleted" />
				</field-visibility>
			</form>
		</forms>
	</config>
	

	<!-- qa:samplingDefList type (existing nodes) -->
	<config evaluator="node-type" condition="qa:samplingDefList">
		<forms>
			<!-- Data List pop-up edit form -->
			<form>
				<field-visibility>
					<show id="qa:slControlPoint" />
					<show id="qa:sdlQty" />
					<show id="qa:sdlFreqText" />
					<show id="qa:sdlFreq" />
					<show id="qa:sdlFreqUnit" />
					<show id="qa:slControlStep" />
					<show id="qa:slSamplingGroup" />
					<show id="qa:slControlingGroup" />
					<show id="qa:slFixingGroup" />
					<show id="qa:slReaction" />
				</field-visibility>

				<appearance>
					<set id="2-col" template="/org/alfresco/components/form/2-column-set.ftl" />
					<field id="qa:slControlPoint" set="2-col" />
					<field id="qa:sdlQty" set="2-col" />
					<field id="qa:sdlFreqText" help-id="becpg.forms.help.sdlFreqText" set="2-col" />
					<field id="qa:sdlFreq" set="2-col" />
					<field id="qa:sdlFreqUnit" set="2-col" />
					<field id="qa:slControlStep" set="2-col" />
					<field id="qa:slSamplingGroup" set="2-col" />
					<field id="qa:slControlingGroup" set="2-col" />
					<field id="qa:slFixingGroup" set="2-col" />
					<field id="qa:slReaction" set="2-col">
						<control template="/org/alfresco/components/form/controls/textarea.ftl">
							<control-param name="rows">3</control-param>
						</control>
					</field>
				</appearance>
			</form>
		</forms>
	</config>
	<!-- qa:samplingDefList type type (creating nodes nodes) -->
	<config evaluator="model-type" condition="qa:samplingDefList">
		<forms>
			<!-- Create item form -->
			<form>
				<field-visibility>
					<show id="qa:slControlPoint" />
					<show id="qa:sdlQty" />
					<show id="qa:sdlFreqText" />
					<show id="qa:sdlFreq" />
					<show id="qa:sdlFreqUnit" />
					<show id="qa:slControlStep" />
					<show id="qa:slSamplingGroup" />
					<show id="qa:slControlingGroup" />
					<show id="qa:slFixingGroup" />
					<show id="qa:slReaction" />
				</field-visibility>

				<appearance>
					<set id="2-col" template="/org/alfresco/components/form/2-column-set.ftl" />
					<field id="qa:slControlPoint" set="2-col" />
					<field id="qa:sdlQty" set="2-col" />
					<field id="qa:sdlFreqText" help-id="becpg.forms.help.sdlFreqText" set="2-col" />
					<field id="qa:sdlFreq" set="2-col" />
					<field id="qa:sdlFreqUnit" set="2-col" />
					<field id="qa:slControlStep" set="2-col" />
					<field id="qa:slSamplingGroup" set="2-col" />
					<field id="qa:slControlingGroup" set="2-col" />
					<field id="qa:slFixingGroup" set="2-col" />
					<field id="qa:slReaction" set="2-col">
						<control template="/org/alfresco/components/form/controls/textarea.ftl">
							<control-param name="rows">3</control-param>
						</control>
					</field>
				</appearance>
			</form>
			<form id="filter">
				<field-visibility>
					<show id="qa:slControlPoint" />
					<show id="qa:sdlQty" />
					<show id="qa:sdlFreqText" />
					<show id="qa:sdlFreq" />
					<show id="qa:sdlFreqUnit" />
					<show id="qa:slControlStep" />
					<show id="qa:slSamplingGroup" />
					<show id="qa:slControlingGroup" />
					<show id="qa:slFixingGroup" />
					<show id="qa:slReaction" />
				</field-visibility>

				<appearance>
					<set id="2-col" template="/org/alfresco/components/form/2-column-set.ftl" />
					<field id="qa:slControlPoint" set="2-col" />
					<field id="qa:sdlQty" set="2-col" />
					<field id="qa:sdlFreqText" help-id="becpg.forms.help.sdlFreqText" set="2-col" />
					<field id="qa:sdlFreq" set="2-col" />
					<field id="qa:sdlFreqUnit" set="2-col" />
					<field id="qa:slControlStep" set="2-col" />
					<field id="qa:slSamplingGroup" set="2-col" />
					<field id="qa:slControlingGroup" set="2-col" />
					<field id="qa:slFixingGroup" set="2-col" />
					<field id="qa:slReaction" set="2-col">
						<control template="/org/alfresco/components/form/controls/textarea.ftl">
							<control-param name="rows">3</control-param>
						</control>
					</field>
					<field id="qa:sdlFreqUnit" set="2-col">
						<control template="/org/alfresco/components/form/controls/selectone.ftl">
							<control-param name="insertBlank">true</control-param>
							<control-param name="isSearch">true</control-param>
						</control>
					</field>
				</appearance>
			</form>
			<!-- Data Grid view -->
			<form id="datagrid">
				<field-visibility>
					<show id="qa:slControlPoint" />
					<show id="qa:sdlQty" />
					<show id="qa:sdlFreqText" />
					<show id="qa:sdlFreq" />
					<show id="qa:sdlFreqUnit" />
					<show id="qa:slControlStep" />
					<show id="qa:slSamplingGroup" />
					<show id="qa:slControlingGroup" />
					<show id="qa:slFixingGroup" />
				</field-visibility>
			</form>
		</forms>
	</config>

	<!-- qa:samplingList type (existing nodes) -->
	<config evaluator="node-type" condition="qa:samplingList">
		<forms>
			<!-- Data List pop-up edit form -->
			<form>
				<field-visibility>
					<show id="qa:slControlPoint" />
					<show id="qa:slControlStep" />
					<show id="qa:slSamplingGroup" />
					<show id="qa:slControlingGroup" />
					<show id="qa:slFixingGroup" />
					<show id="qa:slSampleId" />
					<show id="qa:slDateTime" />
					<show id="qa:slSampleState" />
					<show id="qa:slReaction" />
				</field-visibility>

				<appearance>
					<field id="qa:slReaction">
						<control template="/org/alfresco/components/form/controls/textarea.ftl">
							<control-param name="rows">3</control-param>
						</control>
					</field>
				</appearance>
			</form>
		</forms>
	</config>
	<!-- qa:samplingList type type (creating nodes nodes) -->
	<config evaluator="model-type" condition="qa:samplingList">
		<forms>
			<!-- Create item form -->
			<form>
				<field-visibility>
					<show id="qa:slControlPoint" />
					<show id="qa:slControlStep" />
					<show id="qa:slSamplingGroup" />
					<show id="qa:slControlingGroup" />
					<show id="qa:slFixingGroup" />
					<show id="qa:slSampleId" />
					<show id="qa:slDateTime" />
					<show id="qa:slSampleState" />
					<show id="qa:slReaction" />
				</field-visibility>

				<appearance>
					<field id="qa:slReaction">
						<control template="/org/alfresco/components/form/controls/textarea.ftl">
							<control-param name="rows">3</control-param>
						</control>
					</field>
				</appearance>
			</form>
			<!-- Data Grid view -->
			<form id="datagrid">
				<field-visibility>
					<show id="qa:slControlPoint" />
					<show id="qa:slControlStep" />
					<show id="qa:slSamplingGroup" />
					<show id="qa:slControlingGroup" />
					<show id="qa:slFixingGroup" />
					<show id="qa:slSampleId" />
					<show id="qa:slDateTime" />
					<show id="qa:slSampleState" />
					<show id="fm:commentCount" force="true" />
				</field-visibility>
				<appearance>
					<field id="fm:commentCount" label="hidden" read-only="true" />
				</appearance>
			</form>

			<form id="filter">
				<field-visibility>
					<show id="qa:slControlPoint" />
					<show id="qa:slControlStep" />
				</field-visibility>
			</form>
		</forms>
	</config>

	<!-- qa:controlDefList type type (creating nodes nodes) -->
	<config evaluator="model-type" condition="qa:controlDefList">
		<forms>
			<!-- Create item form -->
			<form>
				<field-visibility>
					<show id="qa:clType" />
					<show id="qa:clCharacts" />
					<show id="qa:cdlQty" />
					<show id="qa:cdlFreq" />
					<show id="qa:cdlFreqUnit" />
					<show id="qa:clTarget" />
					<show id="qa:clUnit" />
					<show id="qa:clMini" />
					<show id="qa:clMaxi" />
					<show id="qa:clTextCriteria" />
					<show id="qa:clTextCriteriaLimit" />
					<show id="qa:clTemperature" />
					<show id="qa:clMethod" />
					<show id="rep:reportKinds" force="true" />
					<show id="qa:clRequired" />
				</field-visibility>

				<appearance>
					<set id="2-col" template="/org/alfresco/components/form/2-column-set.ftl" />
					<set id="1-col" />
					<field id="qa:clCharacts" set="2-col">
						<control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
							<control-param name="ds">becpg/autocomplete/characts</control-param>
						</control>
					</field>
					<field id="qa:cdlQty" set="2-col" />
					<field id="qa:cdlFreq" set="2-col" />
					<field id="qa:cdlFreqUnit" set="2-col" />
					<field id="qa:clTarget" set="2-col" />
					<field id="qa:clUnit" set="2-col" />
					<field id="qa:clMini" set="2-col" />
					<field id="qa:clMaxi" set="2-col" />
					<field id="qa:clRequired" set="1-col" />
					<field id="qa:clTemperature" set="2-col" />
					<field id="qa:clMethod" set="2-col" />
					<field id="rep:reportKinds" set="2-col" />
					<field id="qa:clTextCriteria" set="2-col">
						<control template="/org/alfresco/components/form/controls/textarea.ftl">
							<control-param name="rows">3</control-param>
						</control>
					</field>
					<field id="qa:clTextCriteriaLimit" set="2-col">
						<control template="/org/alfresco/components/form/controls/textarea.ftl">
							<control-param name="rows">3</control-param>
						</control>
					</field>
				</appearance>
			</form>

			<form id="filter">
				<field-visibility>
					<show id="qa:clType" />
					<show id="qa:clCharacts" />
					<show id="qa:cdlFreq" />
					<show id="qa:clTemperature" />
					<show id="qa:clMethod" />
					<show id="rep:reportKinds" force="true" />
					<show id="qa:clRequired" />
				</field-visibility>
				<appearance>
					<set id="2-col" template="/org/alfresco/components/form/2-column-set.ftl" />
					<set id="1-col" />
					<field id="qa:clCharacts" set="2-col">
						<control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
							<control-param name="ds">becpg/autocomplete/characts</control-param>
						</control>
					</field>
					<field id="qa:cdlFreq" set="2-col" />
					<field id="qa:clTemperature" set="2-col" />
					<field id="qa:clRequired" set="1-col">
						<control template="/org/alfresco/components/form/controls/selectone.ftl">
							<control-param name="options">,false|data.boolean.false,true|data.boolean.true
							</control-param>
						</control>
					</field>
					<field id="qa:clMethod" set="2-col" />
					<field id="rep:reportKinds" set="2-col" />
				</appearance>
			</form>
			
			<!-- Data Grid view -->
			<form id="datagrid">
				<field-visibility>
					<show id="qa:clType" />
					<show id="qa:clCharacts" />
					<show id="qa:cdlQty" />
					<show id="qa:cdlFreq" />
					<show id="qa:cdlFreqUnit" />
					<show id="qa:clTarget" />
					<show id="qa:clUnit" />
					<show id="qa:clMini" />
					<show id="qa:clMaxi" />
					<show id="qa:clTextCriteria" />
					<show id="qa:clTextCriteriaLimit" />
					<show id="qa:clRequired" />
					<show id="qa:clTemperature" />
					<show id="qa:clMethod" />
					<show id="fm:commentCount" force="true" />
					<show id="rep:reportKinds" />
				</field-visibility>
				<appearance>
					<field id="fm:commentCount" label="hidden" read-only="true" />
				</appearance>
			</form>
		</forms>
	</config>
	<!-- qa:controlDefList type (existing nodes) -->
	<config evaluator="node-type" condition="qa:controlDefList">
		<forms>
			<!-- Data List pop-up edit form -->
			<form>
				<field-visibility>
					<show id="qa:clType" />
					<show id="qa:clCharacts" />
					<show id="qa:cdlQty" />
					<show id="qa:cdlFreq" />
					<show id="qa:cdlFreqUnit" />
					<show id="qa:clTarget" />
					<show id="qa:clUnit" />
					<show id="qa:clMini" />
					<show id="qa:clMaxi" />
					<show id="qa:clTextCriteria" />
					<show id="qa:clTextCriteriaLimit" />
					<show id="qa:clTemperature" />
					<show id="qa:clMethod" />
					<show id="rep:reportKinds" />
					<show id="qa:clRequired" />
				</field-visibility>
				<appearance>
					<set id="2-col" template="/org/alfresco/components/form/2-column-set.ftl" />
					<set id="1-col" />
					<field id="qa:clCharacts" set="2-col">
						<control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
							<control-param name="ds">becpg/autocomplete/characts</control-param>
						</control>
					</field>
					<field id="qa:cdlQty" set="2-col" />
					<field id="qa:cdlFreq" set="2-col" />
					<field id="qa:cdlFreqUnit" set="2-col" />
					<field id="qa:clTarget" set="2-col" />
					<field id="qa:clUnit" set="2-col" />
					<field id="qa:clMini" set="2-col" />
					<field id="qa:clMaxi" set="2-col" />
					<field id="qa:clRequired" set="1-col" />
					<field id="qa:clTemperature" set="2-col" />
					<field id="qa:clMethod" set="2-col" />
					<field id="rep:reportKinds" set="2-col" />
					<field id="qa:clTextCriteria" set="2-col">
						<control template="/org/alfresco/components/form/controls/textarea.ftl">
							<control-param name="rows">3</control-param>
						</control>
					</field>
					<field id="qa:clTextCriteriaLimit" set="2-col">
						<control template="/org/alfresco/components/form/controls/textarea.ftl">
							<control-param name="rows">3</control-param>
						</control>
					</field>
				</appearance>
			</form>
		</forms>
	</config>
	


	<!-- qa:controlList type type (creating nodes nodes) -->
	<config evaluator="model-type" condition="qa:controlList">
		<forms>
			<!-- Create item form -->
			<form>
				<field-visibility>
					<show id="qa:clControlPoint" />
					<show id="qa:clSampleId" />
					<show id="qa:clTimePeriod" />
					<show id="qa:clType" />
					<show id="qa:clTemperature" />
					<show id="qa:clMethod" />
					<show id="qa:clCharacts" />
					<show id="qa:clTarget" />
					<show id="qa:clUnit" />
					<show id="qa:clMini" />
					<show id="qa:clMaxi" />
					<show id="qa:clValue" />
					<show id="qa:clState" />
					<show id="qa:clRequired" />
				</field-visibility>

				<appearance>
					<set id="reqInfo" appearance="bordered-panel" label-id="becpg.forms.set.exigences.label"
						template="/org/alfresco/components/form/2-column-set.ftl" />
					<field id="qa:clControlPoint" set="reqInfo" />
					<field id="qa:clSampleId" set="reqInfo" />
					<field id="qa:clTimePeriod" set="reqInfo" />
					<field id="qa:clType" set="reqInfo" />
					<field id="qa:clTemperature" set="reqInfo" />
					<field id="qa:clMethod" set="reqInfo" />
					<field id="qa:clTarget" set="reqInfo" />
					<field id="qa:clUnit" set="reqInfo" />
					<field id="qa:clMini" set="reqInfo" />
					<field id="qa:clMaxi" set="reqInfo" />
					<field id="qa:clCharacts" set="reqInfo" />
					<field id="qa:clRequired" set="reqInfo" />

					<set id="fillInfo" appearance="bordered-panel" label-id="becpg.forms.set.fill-info.label"
						template="/org/alfresco/components/form/2-column-set.ftl" />
					<field id="qa:clValue" set="fillInfo" />
					<field id="qa:clState" set="fillInfo" />
				</appearance>
			</form>
			<form id="filter">
				<field-visibility>
					<show id="qa:clControlPoint" />
					<show id="qa:clSampleId" />
					<show id="qa:clTimePeriod" />
					<show id="qa:clType" />
					<show id="qa:clTemperature" />
					<show id="qa:clMethod" />
					<show id="qa:clCharacts" />
					<show id="qa:clState" />
					<show id="qa:clRequired" />
				</field-visibility>

				<appearance>
					<set id="reqInfo" template="/org/alfresco/components/form/2-column-set.ftl" />
					<field id="qa:clControlPoint" set="reqInfo" />
					<field id="qa:clSampleId" set="reqInfo" />
					<field id="qa:clTimePeriod" set="reqInfo" />
					<field id="qa:clType" set="reqInfo" />
					<field id="qa:clTemperature" set="reqInfo">
						<control template="/org/alfresco/components/form/controls/selectone.ftl">
							<control-param name="insertBlank">true</control-param>
							<control-param name="isSearch">true</control-param>
						</control>
					</field>
					<field id="qa:clMethod" set="reqInfo" />
					<field id="qa:clCharacts" set="reqInfo" />
					<field id="qa:clRequired" set="reqInfo">
						<control template="/org/alfresco/components/form/controls/selectone.ftl">
							<control-param name="insertBlank">true</control-param>
							<control-param name="isSearch">true</control-param>
							<control-param name="options">true|data.boolean.true,false|data.boolean.false
							</control-param>
						</control>
					</field>

					<field id="qa:clState" set="reqInfo" />
				</appearance>
			</form>
			<!-- Data Grid view -->
			<form id="datagrid">
				<field-visibility>
					<show id="qa:clControlPoint" />
					<show id="qa:clSampleId" />
					<show id="qa:clTimePeriod" />
					<show id="qa:clType" />
					<show id="qa:clTemperature" />
					<show id="qa:clMethod" />
					<show id="qa:clCharacts" />
					<show id="qa:clMini" />
					<show id="qa:clMaxi" />
					<show id="qa:clUnit" />
					<show id="qa:clTextCriteria" />
					<show id="qa:clValue" />
					<show id="qa:clState" />
					<show id="qa:clRequired" />
					<show id="fm:commentCount" force="true" />
				</field-visibility>
				<appearance>
					<field help="{&quot;width&quot;:200}" id="qa:clControlPoint" read-only="true" />
					<field id="qa:clSampleId" read-only="true" />
					<field id="qa:clTimePeriod" read-only="true" />
					<field id="qa:clType" read-only="true" />
					<field id="qa:clTemperature" read-only="true" />
					<field id="qa:clMethod" read-only="true" />
					<field id="qa:clCharacts" read-only="true" />
					<field id="qa:clMini" read-only="true" />
					<field id="qa:clMaxi" read-only="true" />
					<field id="qa:clUnit" read-only="true" />
					<field id="qa:clRequired" read-only="true" />
					<field id="fm:commentCount" label="hidden" read-only="true" />
				</appearance>
			</form>
		</forms>
	</config>
	<!-- qa:controlList type (existing nodes) -->
	<config evaluator="node-type" condition="qa:controlList">
		<forms>
			<!-- Data List pop-up edit form -->
			<form>
				<field-visibility>
					<show id="qa:clControlPoint" />
					<show id="qa:clSampleId" />
					<show id="qa:clTimePeriod" />
					<show id="qa:clType" />
					<show id="qa:clTemperature" />
					<show id="qa:clMethod" />
					<show id="qa:clCharacts" />
					<show id="qa:clTarget" />
					<show id="qa:clUnit" />
					<show id="qa:clMini" />
					<show id="qa:clMaxi" />
					<show id="qa:clValue" />
					<show id="qa:clState" />
					<show id="qa:clRequired" />
				</field-visibility>

				<appearance>
					<set id="reqInfo" appearance="bordered-panel" label-id="becpg.forms.set.exigences.label"
						template="/org/alfresco/components/form/2-column-set.ftl" />
					<field id="qa:clControlPoint" read-only="true" set="reqInfo" />
					<field id="qa:clSampleId" read-only="true" set="reqInfo" />
					<field id="qa:clTimePeriod" read-only="true" set="reqInfo" />
					<field id="qa:clType" read-only="true" set="reqInfo" />
					<field id="qa:clTemperature" read-only="true" set="reqInfo" />
					<field id="qa:clMethod" read-only="true" set="reqInfo">
						<control template="/org/alfresco/components/form/controls/association.ftl" />
					</field>
					<field id="qa:clTarget" read-only="true" set="reqInfo" />
					<field id="qa:clUnit" read-only="true" set="reqInfo" />
					<field id="qa:clMini" read-only="true" set="reqInfo" />
					<field id="qa:clMaxi" read-only="true" set="reqInfo" />
					<field id="qa:clCharacts" read-only="true" set="reqInfo">
						<control template="/org/alfresco/components/form/controls/association.ftl" />
					</field>
					<field id="qa:clRequired" read-only="true" set="reqInfo" />

					<set id="fillInfo" appearance="bordered-panel" label-id="becpg.forms.set.fill-info.label"
						template="/org/alfresco/components/form/2-column-set.ftl" />
					<field id="qa:clValue" set="fillInfo" />
					<field id="qa:clState" set="fillInfo" />

				</appearance>
			</form>
		</forms>
	</config>

</alfresco-config>
