@(designChangeForm: Form[forms.DesignChangeForm], id: Long, delRelations: scala.collection.immutable.Seq[beans.DesignChangeListBean], addRelations: org.squeryl.Query[PartRelation], partBuffer: scala.collection.immutable.Seq[beans.PartsListBean], dcSeq: Long, message: String)(implicit lang: Lang)
@import helper._
@implicitFieldConstructor = @{ FieldConstructor(twitterBootstrapInput.f) }
@main("update Design Change by Play 2.1") {
	<h1>@Messages("title22")</h1>
	@Messages(message)
	<br>
    <a href="/designchangelist?page=0&key=">@Messages("title21")@Messages("title15")</a>
	&nbsp
	<a href="/designChangeNotifylist?page=0&designChangeId=@id&notifyType=3&state=9">@Messages("notify.type0")@Messages("list.link19")</a>
	&nbsp
	<a href="/designChangeNotifylist?page=0&designChangeId=@id&notifyType=4&state=9">@Messages("notify.type1")@Messages("list.link19")</a>
	
	@form(routes.DesignChangeController.designChangeCoverModification(id: Long)) {
		@commonDesignChangeForm(designChangeForm)
	}
	<hr />
	@Messages("title23")
	<table>
		<thead>
			<tr>
				<th>@Messages("form.header10")@Messages("list.header1")</th>
				<th>@Messages("form.header10")@Messages("list.header2")</th>
				<th>@Messages("form.header10")@Messages("list.header3")</th>
				<th>@Messages("form.header10")@Messages("list.header12")</th>
				<th>@Messages("form.header11")@Messages("list.header1")</th>
				<th>@Messages("form.header11")@Messages("list.header2")</th>
				<th>@Messages("form.header11")@Messages("list.header3")</th>
				<th>@Messages("form.header11")@Messages("list.header12")</th>
				<th></th>
			</tr>
		</thead>
		<tbody>
			@for(delRelation <- delRelations.sortBy(dcb => dcb.dcSeq)) {
				<tr>
					<td>@delRelation.parentBefore</td>
					<td><a href="/designChangeCoverModify?designChangeId=@id&dcSeq=@delRelation.dcSeq&message=">@delRelation.childBefore</a></td>
					<td>@if(delRelation.quantityBefore != 0) {
						<a href="/designChangeModify?designChangeId=@id&dcDelSeq=@delRelation.dcSeqBefore&dcAddSeq=@delRelation.dcSeqAfter&message=">@delRelation.quantityBefore</a>
						}
					</td>
					<td><a href="/designChangeModify?designChangeId=@id&dcDelSeq=@delRelation.dcSeqBefore&dcAddSeq=@delRelation.dcSeqAfter&message=">@delRelation.relationKeyBefore</a></td>
					<td>@delRelation.parentAfter</td>
					<td>@delRelation.childAfter</td>
					<td>@if(delRelation.quantityAfter != 0) {
						<a href="/designChangeModify?designChangeId=@id&dcDelSeq=@delRelation.dcSeqBefore&dcAddSeq=@delRelation.dcSeqAfter&message=">@delRelation.quantityAfter</a>
						}
					</td>
					<td><a href="/designChangeModify?designChangeId=@id&dcDelSeq=@delRelation.dcSeqBefore&dcAddSeq=@delRelation.dcSeqAfter&message=">@delRelation.relationKeyAfter</a></td>
					<td><a href="/designChangeCancelByLine?designChangeId=@id&delParent=@delRelation.parentBefore&delChild=@delRelation.childBefore&addParent=@delRelation.parentAfter&addChild=@delRelation.childAfter">@Messages("list.link14")</a></td>
				</tr>
			}
		</tbody>
	</table>
	@if(partBuffer.size != 0) {
		<hr />
		@Messages("title24")
		<table>
			<thead>
				<tr>
					<th>@Messages("list.header1")</th><th></th>
				</tr>				
			</thead>
			<tbody>
				@for(target <- partBuffer) {
					<tr>
						<td>@target.child</td>
						<td><a href="/designChangeAppend?designChangeId=@id&dcSeq=@dcSeq&parentName=@target.child">@Messages("list.link18")</a></td>
					</tr>
				}
			</tbody>
		</table>
	}
	<br />
	<table>
	@form(routes.DesignChangeController.designChangeCancel(id: Long)) {
		<input type="hidden" id="id" value=designChangeForm("id") >
		<input type="submit" class="btn success" value=@Messages("btn.label5") >
	}
	&nbsp
    @form(routes.NotifyController.createNotify(0, id, 3)) {
    	<input type="submit" value=@Messages("btn.label2") class="btn success">
    }
	&nbsp
    @form(routes.NotifyController.createNotify(0, id, 4)) {
    	<input type="submit" value=@Messages("btn.label3") class="btn success">
    }
    </table>
	<br />
    <a href="/designchangelist?page=0&key=">@Messages("title21")@Messages("title15")</a>
	&nbsp
	<a href="/designChangeNotifylist?page=0&designChangeId=@id&notifyType=3&state=9">@Messages("notify.type0")@Messages("list.link19")</a>
	&nbsp
	<a href="/designChangeNotifylist?page=0&designChangeId=@id&notifyType=4&state=9">@Messages("notify.type1")@Messages("list.link19")</a>
	
}