<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/html">
<head>
<title>S032_Master</title>
<meta charset="utf-8" />
<!-- the next meta info is used for some compatibility issue in IE11 -->
<meta http-equiv="X-UA-Compatible" content="IE=9" />
<meta sedName="S032_Master" sedPackage="Sector Components/Sickness/S032_Master" sedGVer="4" sedVer="0" sedPatch="16"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />

<link href="_forms/angular/css/bootstrap.min.css" rel="stylesheet" />
<!-- http://isteven.github.io/angular-multi-select CSS -->
<link href="_forms/angular/css/isteven-multi-select.css" rel="stylesheet" />
<link href="_forms/angular/css/select.css" rel="stylesheet" />
<link href="_forms/angular/css/sed_angular_common_MET.css" rel="stylesheet" />
<link href="_forms/angular/css/sed_angular_common.css" rel="stylesheet" />
<link href="_forms/angular/css/splitter.css" rel="stylesheet" />
<link href="_forms/angular/css/style.css" rel="stylesheet" />

<script src="_forms/angular/js/lib/angular.js"></script>
<script src="_forms/angular/js/lib/angular-animate.js"></script>
<script src="_forms/angular/js/lib/angular-sanitize.js"></script>
<script src="_forms/angular/js/lib/ui-bootstrap-tpls.js"></script>

<script src="_forms/angular/js/src/datePicker1.js"></script>
<!-- http://isteven.github.io/angular-multi-select JS -->
<script src="_forms/angular/js/src/isteven-multi-select.js"></script>
<!-- https://vitalets.github.io/checklist-model JS -->
<script src="_forms/angular/js/src/checklist-model.js"></script>
<!-- ui-select files -->
<script src="_forms/angular/js/src/select.js"></script>
<!-- http://lorenzofox3.github.io/smart-table-website/ -->
<script src="_forms/angular/js/src/smart-table.js"></script>
<!-- RINA style checkbox -->
<script src="_forms/angular/js/src/angular-bootstrap-checkbox-met.js"></script>
<!-- IR widget -->
<script src="_forms/angular/js/src/angular-bootstrap-IR.js"></script>
<!-- TR widget -->
<script src="_forms/angular/js/src/angular-bootstrap-TR.js"></script>

<!-- <script src="_forms/angular/js/src/sed_angular.js"></script> -->
<script src="_forms/angular/js/src/sed_angular_common.js"></script>
<script src="_forms/angular/js/src/sed_angular_common_MET.js"></script>
<script src="_forms/angular/js/src/sed_angular_common_RINA.js"></script>

</head>
<body ng-app="sedAngularApp">
	<div ng-controller = "ControllerS032_Master" class="met-root">
		<div>
			<h3 class="sedHeadingAC">S032_Master - S032_Master <br/> </h3>
			<div style="position:absolute;top:0;right:0;font-size:70%">SED API version: 0.14.2 PREVIEW build 3<br/>Model version: 4.0.16</div>
		</div>
		<!--  
		<ui-layout class= "layout" options = "{sizes:['99%', '1%']}" >
		-->
		<div class="layoutAC">
		<bg-splitter orientation="vertical" position="VM.splitterPosition" class="met-splitter">
		<bg-pane min-size="100" scroll-to-id="viewModel.scrollToId">
			<div ng-controller="SedController" ng-cloak ng-init = "section = model.S032_Master; metaSection = metaModel.S032_Master" class="wb-stretch">
				<div id = "content-angular_S032_Master" class="content-angular container-fluid" ng-model-options="{ debounce: 250 }" ng-form="S032_Master" sedName="S032_Master" sedPackage="Sector Components/Sickness/S032_Master" sedGVer="4" sedVer="0" sedPatch="16">
					<div class="tab-content met-content" ng-init="sedForm = S032_Master">
						<div met_start_tag class="form-group" ng-controller="WbAngularSedCtrl">
							<div style="vertical-align:bottom" met_start_tag  ng-controller = "SectionController" ng-init = "section = $parent.section.GlobalNotePAYILP; metaSection = $parent.metaSection.GlobalNotePAYILP" ng-hide = "metaSection.$$isHidden" id="section_{{getNextUUID(metaSection)}}">
								<div style="vertical-align:bottom" met_start_tag class="met_lazy" ng-if="::shouldLoadSection">
								<div style="vertical-align:bottom" class="SECTION_ROW"    id="section_{{getNextUUID(metaSection)}}">
									<label style="vertical-align:bottom" class="control-label SECTION_ROW">1. Global note PAY_ILP <i>*</i>
									</label>
									<div class="SECTION_ROW_WHITESPACE"></div>
								</div>
								<!-- div met_start_tag met_if = "!isChoice" class="container-fluid row"></div-->
								<div met_start_tag class="container-fluid" ng-hide="false">
								<div ng-class="{'has-error': validateForm && metaSection.globalILPReferenceCreditorLiaisonBody.$$error,'has-warning': validateForm && metaSection.globalILPReferenceCreditorLiaisonBody.$$warning && !metaSection.globalILPReferenceCreditorLiaisonBody.$$error}">
									<label class="control-label col-xs-3">1.1. Global ILP Reference Creditor Liaison Body <i>*</i></label>
									<div class="col-xs-7">
										<input ng-model="section.globalILPReferenceCreditorLiaisonBody" ng-disabled="false" class="form-control" type="text" 	value="" id="field_{{getNextUUID(metaSection.globalILPReferenceCreditorLiaisonBody)}}" /><br/>
									</div>
									
									<label class="control-label col-xs-2 error-msg warning-msg" ng-show="validateForm && metaSection.globalILPReferenceCreditorLiaisonBody.$$error">{{metaSection.globalILPReferenceCreditorLiaisonBody.$$error}}</label>
									<label class="control-label col-xs-2 warning-msg" ng-show="validateForm && metaSection.globalILPReferenceCreditorLiaisonBody.$$warning && !metaSection.globalILPReferenceCreditorLiaisonBody.$$error">{{metaSection.globalILPReferenceCreditorLiaisonBody.$$warning}}</label>
								   </div>
								</div>
								<!-- div met_start_tag met_if = "!isChoice" class="container-fluid row"></div-->
								<div met_start_tag class="container-fluid" ng-hide="false">
								<div ng-class="{'has-error': validateForm && metaSection.globalPAYILPReferenceCreditorLiaisonBody.$$error,'has-warning': validateForm && metaSection.globalPAYILPReferenceCreditorLiaisonBody.$$warning && !metaSection.globalPAYILPReferenceCreditorLiaisonBody.$$error}">
									<label class="control-label col-xs-3">1.2. Global PAY_ILP reference Creditor Liaison Body <i>*</i></label>
									<div class="col-xs-7">
										<input ng-model="section.globalPAYILPReferenceCreditorLiaisonBody" ng-disabled="false" class="form-control" type="text" 	value="" id="field_{{getNextUUID(metaSection.globalPAYILPReferenceCreditorLiaisonBody)}}" /><br/>
									</div>
									
									<label class="control-label col-xs-2 error-msg warning-msg" ng-show="validateForm && metaSection.globalPAYILPReferenceCreditorLiaisonBody.$$error">{{metaSection.globalPAYILPReferenceCreditorLiaisonBody.$$error}}</label>
									<label class="control-label col-xs-2 warning-msg" ng-show="validateForm && metaSection.globalPAYILPReferenceCreditorLiaisonBody.$$warning && !metaSection.globalPAYILPReferenceCreditorLiaisonBody.$$error">{{metaSection.globalPAYILPReferenceCreditorLiaisonBody.$$warning}}</label>
								   </div>
								</div>
								<!-- div met_start_tag met_if = "!isChoice" class="container-fluid row"></div-->
								<div met_start_tag class="container-fluid" ng-hide="false">
								<div ng-class="{'has-error': validateForm && metaSection.totalNumberIndividualPayments.$$error,'has-warning': validateForm && metaSection.totalNumberIndividualPayments.$$warning && !metaSection.totalNumberIndividualPayments.$$error}">
									<label class="control-label col-xs-3">1.3. Total Number of Individual Payments <i>*</i></label>
									<div class="col-xs-7"><input ng-model="section.totalNumberIndividualPayments" ng-disabled="false" class="form-control" type="text" 	value="" id="field_{{getNextUUID(metaSection.totalNumberIndividualPayments)}}" /><br/></div>
									
									<label class="control-label col-xs-2 error-msg warning-msg" ng-show="validateForm && metaSection.totalNumberIndividualPayments.$$error">{{metaSection.totalNumberIndividualPayments.$$error}}</label>
									<label class="control-label col-xs-2 warning-msg" ng-show="validateForm && metaSection.totalNumberIndividualPayments.$$warning && !metaSection.totalNumberIndividualPayments.$$error">{{metaSection.totalNumberIndividualPayments.$$warning}}</label>
								   </div>
								</div>
							<div style="vertical-align:bottom" met_start_tag  ng-controller = "SectionController" ng-init = "section = $parent.section.TotalInterestAmount; metaSection = $parent.metaSection.TotalInterestAmount" ng-hide = "metaSection.$$isHidden" id="section_{{getNextUUID(metaSection)}}">
								<div style="vertical-align:bottom" met_start_tag class="met_lazy" ng-if="::shouldLoadSection">
								<div style="vertical-align:bottom" class="SUBSECTION_ROW" id="section_{{getNextUUID(metaSection)}}">
									<label style="vertical-align:bottom" class="control-label">1.4. Total interest amount <i>*</i>
									</label>
								</div>
								<!-- div met_start_tag met_if = "!isChoice" class="container-fluid row"></div-->
								<div met_start_tag class="container-fluid" ng-hide="false">
								<div ng-class="{'has-error': validateForm && metaSection.amount.$$error,'has-warning': validateForm && metaSection.amount.$$warning && !metaSection.amount.$$error}">
									<label class="control-label col-xs-3">1.4.1. Amount <i>*</i></label>
									<div class="col-xs-7"><input ng-model="section.amount" ng-disabled="false" class="form-control" type="text" 	value="" id="field_{{getNextUUID(metaSection.amount)}}" /><br/></div>
									
									<label class="control-label col-xs-2 error-msg warning-msg" ng-show="validateForm && metaSection.amount.$$error">{{metaSection.amount.$$error}}</label>
									<label class="control-label col-xs-2 warning-msg" ng-show="validateForm && metaSection.amount.$$warning && !metaSection.amount.$$error">{{metaSection.amount.$$warning}}</label>
								   </div>
								</div>
								<!-- div met_start_tag met_if = "!isChoice" class="container-fluid row"></div-->
								<div met_start_tag class="container-fluid" ng-hide="false">
								<div ng-class="{'has-error': validateForm && metaSection.currency.$$error,'has-warning': validateForm && metaSection.currency.$$warning && !metaSection.currency.$$error}">
									<label class="control-label col-xs-3">1.4.2. Currency <i>*</i></label>
									<div 		class="col-xs-7">
										
										<!--  single enum: multiplicity 1 and size greater that 5 entries -->
										<ui-select type="enum" ng-model="section.currency" ng-disabled="false" reset-search-input="false" lazy-load="true" id="field_{{getNextUUID(metaSection.currency)}}">
											<ui-select-match allow-clear="true" placeholder="None selected"> {{$select.selected[ 'name']}} </ui-select-match>
											<ui-select-choices repeat="option['value'] as option in input.EESSIEUEFTACurrencyType | filter: $select.search">
												<div ng-bind-html="option['name'] | highlight: $select.search"></div>
											</ui-select-choices>
										</ui-select>
										<br/>
									</div>
									
									<label class="control-label col-xs-2 error-msg warning-msg" ng-show="validateForm && metaSection.currency.$$error">{{metaSection.currency.$$error}}</label>
									<label class="control-label col-xs-2 warning-msg" ng-show="validateForm && metaSection.currency.$$warning && !metaSection.currency.$$error">{{metaSection.currency.$$warning}}</label>
								   </div>
								</div>
							</div>
							</div>
							<div style="vertical-align:bottom" met_start_tag  ng-controller = "SectionController" ng-init = "section = $parent.section.TotalCreditNoteAmount; metaSection = $parent.metaSection.TotalCreditNoteAmount" ng-hide = "metaSection.$$isHidden" id="section_{{getNextUUID(metaSection)}}">
								<div style="vertical-align:bottom" met_start_tag class="met_lazy" ng-if="::shouldLoadSection">
								<div style="vertical-align:bottom" class="SUBSECTION_ROW" id="section_{{getNextUUID(metaSection)}}">
									<label style="vertical-align:bottom" class="control-label">1.5. Total credit note amount <i>*</i>
									</label>
								</div>
								<!-- div met_start_tag met_if = "!isChoice" class="container-fluid row"></div-->
								<div met_start_tag class="container-fluid" ng-hide="false">
								<div ng-class="{'has-error': validateForm && metaSection.amount.$$error,'has-warning': validateForm && metaSection.amount.$$warning && !metaSection.amount.$$error}">
									<label class="control-label col-xs-3">1.5.1. Amount <i>*</i></label>
									<div class="col-xs-7"><input ng-model="section.amount" ng-disabled="false" class="form-control" type="text" 	value="" id="field_{{getNextUUID(metaSection.amount)}}" /><br/></div>
									
									<label class="control-label col-xs-2 error-msg warning-msg" ng-show="validateForm && metaSection.amount.$$error">{{metaSection.amount.$$error}}</label>
									<label class="control-label col-xs-2 warning-msg" ng-show="validateForm && metaSection.amount.$$warning && !metaSection.amount.$$error">{{metaSection.amount.$$warning}}</label>
								   </div>
								</div>
								<!-- div met_start_tag met_if = "!isChoice" class="container-fluid row"></div-->
								<div met_start_tag class="container-fluid" ng-hide="false">
								<div ng-class="{'has-error': validateForm && metaSection.currency.$$error,'has-warning': validateForm && metaSection.currency.$$warning && !metaSection.currency.$$error}">
									<label class="control-label col-xs-3">1.5.2. Currency <i>*</i></label>
									<div 		class="col-xs-7">
										
										<!--  single enum: multiplicity 1 and size greater that 5 entries -->
										<ui-select type="enum" ng-model="section.currency" ng-disabled="false" reset-search-input="false" lazy-load="true" id="field_{{getNextUUID(metaSection.currency)}}">
											<ui-select-match allow-clear="true" placeholder="None selected"> {{$select.selected[ 'name']}} </ui-select-match>
											<ui-select-choices repeat="option['value'] as option in input.EESSIEUEFTACurrencyType | filter: $select.search">
												<div ng-bind-html="option['name'] | highlight: $select.search"></div>
											</ui-select-choices>
										</ui-select>
										<br/>
									</div>
									
									<label class="control-label col-xs-2 error-msg warning-msg" ng-show="validateForm && metaSection.currency.$$error">{{metaSection.currency.$$error}}</label>
									<label class="control-label col-xs-2 warning-msg" ng-show="validateForm && metaSection.currency.$$warning && !metaSection.currency.$$error">{{metaSection.currency.$$warning}}</label>
								   </div>
								</div>
							</div>
							</div>
							<div style="vertical-align:bottom" met_start_tag  ng-controller = "SectionController" ng-init = "section = $parent.section.TotalPaymentAmount; metaSection = $parent.metaSection.TotalPaymentAmount" ng-hide = "metaSection.$$isHidden" id="section_{{getNextUUID(metaSection)}}">
								<div style="vertical-align:bottom" met_start_tag class="met_lazy" ng-if="::shouldLoadSection">
								<div style="vertical-align:bottom" class="SUBSECTION_ROW" id="section_{{getNextUUID(metaSection)}}">
									<label style="vertical-align:bottom" class="control-label">1.6. Total Payment Amount <i>*</i>
									</label>
								</div>
								<!-- div met_start_tag met_if = "!isChoice" class="container-fluid row"></div-->
								<div met_start_tag class="container-fluid" ng-hide="false">
								<div ng-class="{'has-error': validateForm && metaSection.amount.$$error,'has-warning': validateForm && metaSection.amount.$$warning && !metaSection.amount.$$error}">
									<label class="control-label col-xs-3">1.6.1. Amount <i>*</i></label>
									<div class="col-xs-7"><input ng-model="section.amount" ng-disabled="false" class="form-control" type="text" 	value="" id="field_{{getNextUUID(metaSection.amount)}}" /><br/></div>
									
									<label class="control-label col-xs-2 error-msg warning-msg" ng-show="validateForm && metaSection.amount.$$error">{{metaSection.amount.$$error}}</label>
									<label class="control-label col-xs-2 warning-msg" ng-show="validateForm && metaSection.amount.$$warning && !metaSection.amount.$$error">{{metaSection.amount.$$warning}}</label>
								   </div>
								</div>
								<!-- div met_start_tag met_if = "!isChoice" class="container-fluid row"></div-->
								<div met_start_tag class="container-fluid" ng-hide="false">
								<div ng-class="{'has-error': validateForm && metaSection.currency.$$error,'has-warning': validateForm && metaSection.currency.$$warning && !metaSection.currency.$$error}">
									<label class="control-label col-xs-3">1.6.2. Currency <i>*</i></label>
									<div 		class="col-xs-7">
										
										<!--  single enum: multiplicity 1 and size greater that 5 entries -->
										<ui-select type="enum" ng-model="section.currency" ng-disabled="false" reset-search-input="false" lazy-load="true" id="field_{{getNextUUID(metaSection.currency)}}">
											<ui-select-match allow-clear="true" placeholder="None selected"> {{$select.selected[ 'name']}} </ui-select-match>
											<ui-select-choices repeat="option['value'] as option in input.EESSIEUEFTACurrencyType | filter: $select.search">
												<div ng-bind-html="option['name'] | highlight: $select.search"></div>
											</ui-select-choices>
										</ui-select>
										<br/>
									</div>
									
									<label class="control-label col-xs-2 error-msg warning-msg" ng-show="validateForm && metaSection.currency.$$error">{{metaSection.currency.$$error}}</label>
									<label class="control-label col-xs-2 warning-msg" ng-show="validateForm && metaSection.currency.$$warning && !metaSection.currency.$$error">{{metaSection.currency.$$warning}}</label>
								   </div>
								</div>
							</div>
							</div>
								<!-- div met_start_tag met_if = "!isChoice" class="container-fluid row"></div-->
								<div met_start_tag class="container-fluid" ng-hide="false">
								<div ng-class="{'has-error': validateForm && metaSection.dateSubmission.$$error,'has-warning': validateForm && metaSection.dateSubmission.$$warning && !metaSection.dateSubmission.$$error}">
									<label class="control-label col-xs-3">1.7. Date of submission <i>*</i></label>
									<div class="col-xs-7" ng-controller="DatePicker1">
										<p class="input-group">
											<span ng-class="{'met-datepicker-up': metaSection.dateSubmission.$$elemNo >= metaModel.S032_Master.$$elementsNo - 4}">
												<input type="text" class="form-control" datepicker-popup-met ng-model="section.dateSubmission" ng-disabled="false" is-open="status.opened" min-date="minDate" max-date="maxDate" datepicker-options="dateOptions" date-disabled="disabled(date, mode)" close-text="Close" show-weeks="false" year-rows="9" year-columns="9" time-arrow="forward" datepicker-mode="year" placeholder="dd-MM-yyyy" id="field_{{getNextUUID(metaSection.dateSubmission)}}" />
											</span>
											<span class="input-group-btn">
												<button ng-class="{'has-error-date-button': validateForm && metaSection.dateSubmission.$$error, 'has-warning-date-button': validateForm && !metaSection.dateSubmission.$$error && metaSection.dateSubmission.$$warning}" ng-disabled="false" type="button" class="btn btn-default" ng-click="open($event)"><i class="glyphicon glyphicon-calendar"></i></button>
											</span>
										</p>
									</div>
									
									<label class="control-label col-xs-2 error-msg warning-msg" ng-show="validateForm && metaSection.dateSubmission.$$error">{{metaSection.dateSubmission.$$error}}</label>
									<label class="control-label col-xs-2 warning-msg" ng-show="validateForm && metaSection.dateSubmission.$$warning && !metaSection.dateSubmission.$$error">{{metaSection.dateSubmission.$$warning}}</label>
								   </div>
								</div>
							<div style="vertical-align:bottom" met_start_tag  ng-controller = "SectionController" ng-init = "section = $parent.section.BankAccountCreditorLiaisonBody; metaSection = $parent.metaSection.BankAccountCreditorLiaisonBody" ng-hide = "metaSection.$$isHidden" id="section_{{getNextUUID(metaSection)}}">
								<div style="vertical-align:bottom" met_start_tag class="met_lazy" ng-if="::shouldLoadSection">
								<div style="vertical-align:bottom" class="SUBSECTION_ROW" id="section_{{getNextUUID(metaSection)}}">
									<label style="vertical-align:bottom" class="control-label">1.8. Bank Account Creditor Liaison Body <i>*</i>
										<div style="vertical-align:bottom" class="tooltip-handler" tooltip="Information required to identify the bank account for the transfer of the payments." tooltip-enable="true" tooltip-placement="right" tooltip-trigger="click"></div>
									</label>
								</div>
								<!-- div met_start_tag met_if = "!isChoice" class="container-fluid row"></div-->
								<div met_start_tag class="container-fluid" ng-hide="false">
								<div ng-class="{'has-error': validateForm && metaSection.IBAN.$$error,'has-warning': validateForm && metaSection.IBAN.$$warning && !metaSection.IBAN.$$error}">
									<label class="control-label col-xs-3">1.8.1. IBAN <i>*</i></label>
									<div class="tooltip-handler" tooltip="State the IBAN (International Bank Account Number) code of the bank account where the money has to be transferred. IBAN is an internationally agreed system of identifying bank accounts across national borders." tooltip-enable="true" tooltip-placement="left" tooltip-trigger="click"></div>
									<div class="col-xs-7">
										<input ng-model="section.IBAN" ng-disabled="false" class="form-control" type="text" 	value="" id="field_{{getNextUUID(metaSection.IBAN)}}" /><br/>
									</div>
									
									<label class="control-label col-xs-2 error-msg warning-msg" ng-show="validateForm && metaSection.IBAN.$$error">{{metaSection.IBAN.$$error}}</label>
									<label class="control-label col-xs-2 warning-msg" ng-show="validateForm && metaSection.IBAN.$$warning && !metaSection.IBAN.$$error">{{metaSection.IBAN.$$warning}}</label>
								   </div>
								</div>
								<!-- div met_start_tag met_if = "!isChoice" class="container-fluid row"></div-->
								<div met_start_tag class="container-fluid" ng-hide="false">
								<div ng-class="{'has-error': validateForm && metaSection.BICSWIFT.$$error,'has-warning': validateForm && metaSection.BICSWIFT.$$warning && !metaSection.BICSWIFT.$$error}">
									<label class="control-label col-xs-3">1.8.2. BIC-SWIFT</label>
									<div class="tooltip-handler" tooltip="State the sort code (BIC/SWIFT) of the relevant branch in the banking institution where the bank account is hold. (BIC/SWIFT). The SWIFT/BIC code is a standard code that is used when transferring money between banks to uniquely identify banks and financial institutions globally." tooltip-enable="true" tooltip-placement="left" tooltip-trigger="click"></div>
									<div class="col-xs-7">
										<input ng-model="section.BICSWIFT" ng-disabled="false" class="form-control" type="text" 	value="" id="field_{{getNextUUID(metaSection.BICSWIFT)}}" /><br/>
									</div>
									
									<label class="control-label col-xs-2 error-msg warning-msg" ng-show="validateForm && metaSection.BICSWIFT.$$error">{{metaSection.BICSWIFT.$$error}}</label>
									<label class="control-label col-xs-2 warning-msg" ng-show="validateForm && metaSection.BICSWIFT.$$warning && !metaSection.BICSWIFT.$$error">{{metaSection.BICSWIFT.$$warning}}</label>
								   </div>
								</div>
							</div>
							</div>
							</div>
							</div>
						</div>
					</div>
				</div>
			</div>
			</bg-pane>
			<bg-pane min-size="1">
			<div class = "footer-content" ng-controller="FooterController" ng-cloak>
					<table ng-show="errors.length > 0" st-table="errorListDisplay" st-safe-src="errors" class="table table-condensed table-striped table-hover">
					<tbody>
					<tr ng-repeat="row in errorListDisplay | orderBy:'level'">
						<td width="95%" ng-click="showError(row)" class="wb-link" 
							ng-style="{'color':row.severity == 'Error'?'red':'orange'}">
							{{ row.severity }} :
							{{ row.message }}
						</td>
					</tr>
					</tbody>
				</table>
			</div>
		 </bg-pane>
		 </bg-splitter>
		</div>
		<script>
		
		/*
		angular.module("sedAngularApp").run( function() {
			angular.module("sedAngularApp").lazy.controller("ControllerS032_Master",["$scope", ControllerS032_Master]);	
		});
		*/
		
		angular.module("sedAngularApp").lazy.controller("ControllerS032_Master",["$scope", ControllerS032_Master]);
		
		function ControllerS032_Master($scope){
			
			$scope.VM = { splitterPosition:1 };
			
			$scope.contentDiv = "content-angular_S032_Master";
			
			$scope.errors = new Array();
		
			$scope.MODEL = {
	"S032_Master":{
		"sedPackage":"Sector Components/Sickness/S032_Master",
		"sedGVer":"4",
		"sedVer":"0",
		"GlobalNotePAYILP":{
			"globalILPReferenceCreditorLiaisonBody":"",
			"globalPAYILPReferenceCreditorLiaisonBody":"",
			"totalNumberIndividualPayments":"",
			"TotalInterestAmount":{
				"amount":"",
				"currency":""
			},
			"TotalCreditNoteAmount":{
				"amount":"",
				"currency":""
			},
			"TotalPaymentAmount":{
				"amount":"",
				"currency":""
			},
			"dateSubmission":"",
			"BankAccountCreditorLiaisonBody":{
				"IBAN":"",
				"BICSWIFT":""
			}
		}
	}
};
		
			$scope.META_MODEL = {
					"S032_Master":{
							"$$name" : "S032_Master",
							"$$heading":"",
							"$$mandatory":true, 
							"$$repetition":false, 
							"$$type":"sed",
							"$$uuid":"S032_Master",
							"$$hasData":false,
							"GlobalNotePAYILP":{
								"$$name":"GlobalNotePAYILP",
								"$$heading":"1",
								"$$mandatory":true,
								"$$draftCritical":false,
								"$$repetition":false,
								"$$isHidden":false,
								"$$type":"section",
								"$$uuid":0,
								"$$hasData":false,
							"globalILPReferenceCreditorLiaisonBody":{
								"$$name":"globalILPReferenceCreditorLiaisonBody",
								"$$heading":"1.1",
								"$$mandatory":true,
								"$$draftCritical":false,
								"$$repetition":false,
								"$$isHidden":false,
								"$$type":"string",
								"$$uuid":0,
								"$$hasData":false
							},
							"globalPAYILPReferenceCreditorLiaisonBody":{
								"$$name":"globalPAYILPReferenceCreditorLiaisonBody",
								"$$heading":"1.2",
								"$$mandatory":true,
								"$$draftCritical":false,
								"$$repetition":false,
								"$$isHidden":false,
								"$$type":"string",
								"$$uuid":0,
								"$$hasData":false
							},
							"totalNumberIndividualPayments":{
								"$$name":"totalNumberIndividualPayments",
								"$$heading":"1.3",
								"$$mandatory":true,
								"$$draftCritical":false,
								"$$repetition":false,
								"$$isHidden":false,
								"$$hasRestrictions":true,
								"$$restrictions": { "minInclusive":"0" },
								"$$type":"int",
								"$$uuid":0,
								"$$hasData":false
							},
							"TotalInterestAmount":{
								"$$name":"TotalInterestAmount",
								"$$heading":"1.4",
								"$$mandatory":true,
								"$$draftCritical":false,
								"$$repetition":false,
								"$$isHidden":false,
								"$$type":"section",
								"$$uuid":0,
								"$$hasData":false,
							"amount":{
								"$$name":"amount",
								"$$heading":"1.4.1",
								"$$mandatory":true,
								"$$draftCritical":true,
								"$$repetition":false,
								"$$isHidden":false,
								"$$hasRestrictions":true,
								"$$restrictions": { "pattern":"(([1-9][0-9]{0,9})(\\.\\d{2,2})?|([0]{1})(\\.\\d{2,2})?)" },
								"$$type":"double",
								"$$uuid":0,
								"$$hasData":false
							},
							"currency":{
								"$$name":"currency",
								"$$heading":"1.4.2",
								"$$mandatory":true,
								"$$draftCritical":true,
								"$$repetition":false,
								"$$isHidden":false,
								"$$type":"enum",
								"$$uuid":0,
								"$$hasData":false
							}
							},
							"TotalCreditNoteAmount":{
								"$$name":"TotalCreditNoteAmount",
								"$$heading":"1.5",
								"$$mandatory":true,
								"$$draftCritical":false,
								"$$repetition":false,
								"$$isHidden":false,
								"$$type":"section",
								"$$uuid":0,
								"$$hasData":false,
							"amount":{
								"$$name":"amount",
								"$$heading":"1.5.1",
								"$$mandatory":true,
								"$$draftCritical":true,
								"$$repetition":false,
								"$$isHidden":false,
								"$$hasRestrictions":true,
								"$$restrictions": { "pattern":"(([1-9][0-9]{0,9})(\\.\\d{2,2})?|([0]{1})(\\.\\d{2,2})?)" },
								"$$type":"double",
								"$$uuid":0,
								"$$hasData":false
							},
							"currency":{
								"$$name":"currency",
								"$$heading":"1.5.2",
								"$$mandatory":true,
								"$$draftCritical":true,
								"$$repetition":false,
								"$$isHidden":false,
								"$$type":"enum",
								"$$uuid":0,
								"$$hasData":false
							}
							},
							"TotalPaymentAmount":{
								"$$name":"TotalPaymentAmount",
								"$$heading":"1.6",
								"$$mandatory":true,
								"$$draftCritical":false,
								"$$repetition":false,
								"$$isHidden":false,
								"$$type":"section",
								"$$uuid":0,
								"$$hasData":false,
							"amount":{
								"$$name":"amount",
								"$$heading":"1.6.1",
								"$$mandatory":true,
								"$$draftCritical":true,
								"$$repetition":false,
								"$$isHidden":false,
								"$$hasRestrictions":true,
								"$$restrictions": { "pattern":"(([1-9][0-9]{0,9})(\\.\\d{2,2})?|([0]{1})(\\.\\d{2,2})?)" },
								"$$type":"double",
								"$$uuid":0,
								"$$hasData":false
							},
							"currency":{
								"$$name":"currency",
								"$$heading":"1.6.2",
								"$$mandatory":true,
								"$$draftCritical":true,
								"$$repetition":false,
								"$$isHidden":false,
								"$$type":"enum",
								"$$uuid":0,
								"$$hasData":false
							}
							},
							"dateSubmission":{
								"$$name":"dateSubmission",
								"$$heading":"1.7",
								"$$mandatory":true,
								"$$draftCritical":false,
								"$$repetition":false,
								"$$isHidden":false,
								"$$type":"date",
								"$$uuid":0,
								"$$hasData":false
							},
							"BankAccountCreditorLiaisonBody":{
								"$$name":"BankAccountCreditorLiaisonBody",
								"$$heading":"1.8",
								"$$mandatory":true,
								"$$draftCritical":false,
								"$$repetition":false,
								"$$isHidden":false,
								"$$type":"section",
								"$$uuid":0,
								"$$hasData":false,
							"IBAN":{
								"$$name":"IBAN",
								"$$heading":"1.8.1",
								"$$mandatory":true,
								"$$draftCritical":true,
								"$$repetition":false,
								"$$isHidden":false,
								"$$hasRestrictions":true,
								"$$restrictions": { "pattern":"[a-zA-Z]{2}[0-9]{2}[a-zA-Z0-9]{4}[a-zA-Z0-9]{7}([a-zA-Z0-9]?){0,16}" },
								"$$type":"string",
								"$$uuid":0,
								"$$hasData":false
							},
							"BICSWIFT":{
								"$$name":"BICSWIFT",
								"$$heading":"1.8.2",
								"$$mandatory":false,
								"$$draftCritical":false,
								"$$repetition":false,
								"$$isHidden":false,
								"$$hasRestrictions":true,
								"$$restrictions": { "pattern":"([a-zA-Z]){4}([a-zA-Z]){2}([0-9a-zA-Z]){2}([0-9a-zA-Z]{3})?", "minLength":"1", "maxLength":"11" },
								"$$type":"string",
								"$$uuid":0,
								"$$hasData":false
							}
							}
							}
				}
			};
		}
		
		/* Without flags */
		var INPUT = 
		{
			"EESSIEUEFTACurrencyType":
			 [
						{name: "["+"EUR"+"] Euro", value: "EUR$", ticked: false},
						{name: "["+"BGN"+"] Bulgarian Lev", value: "BGN$", ticked: false},
						{name: "["+"CZK"+"] Czech Koruna", value: "CZK$", ticked: false},
						{name: "["+"DKK"+"] Danish Krone", value: "DKK$", ticked: false},
						{name: "["+"GBP"+"] British Pound", value: "GBP$", ticked: false},
						{name: "["+"HRK"+"] Croatian Kuna", value: "HRK$", ticked: false},
						{name: "["+"HUF"+"] Hungarian Forint", value: "HUF$", ticked: false},
						{name: "["+"PLN"+"] Polish Zloty", value: "PLN$", ticked: false},
						{name: "["+"RON"+"] Romanian New Leu", value: "RON$", ticked: false},
						{name: "["+"SEK"+"] Swedish Krona", value: "SEK$", ticked: false},
						{name: "["+"CHF"+"] Swiss Franc", value: "CHF$", ticked: false},
						{name: "["+"ISK"+"] Icelandic Krona", value: "ISK$", ticked: false},
						{name: "["+"NOK"+"] Norwegian Krone", value: "NOK$", ticked: false},
						{name: "["+"LTL"+"] Lithuanian Litas", value: "LTL$", ticked: false},
						{name: "["+"LVL"+"] Latvian Lats", value: "LVL$", ticked: false}
			 ],
			"structureEnd": {}
		};
		
		var ERROR_MESSAGES =
		{
			"section": "section",
			"field": "field",	
			"requiresdata": "requires data",
			"invalidformat": "has invalid formatted data",
			"norestriction": "does not comply with restriction"
		};
		
		var LOCALE =
		{
			"Add": "Add",
			"Translate": "Translate"
		};
		
		</script>	
	</div>

</body>
</html>