<%@include file="/WEB-INF/common/layouts/common.jsp" %>
<%@ page language="java" pageEncoding="UTF-8" %>
<html>
<head>
    <title>${entity.id}</title>
</head>
<body>
<form id="input_form" class="form-horizontal valid"
      action="${ctx}/cmexchangecode<c:if test="${action=='edit'}">/${entity.id}</c:if>"
      method="post">
        
    <!-- 面包屑 begin -->
	<div class="row-fluid">
		<div class="span12">
				<ul class="breadcrumb">
					<li>
						<span class="divider" style="color:#26a0da;font-weight:bold;">/</span>
						<a href="${ctx}/klfaccount">列表</a>
					</li>
					<li class="active" >
						<span class="divider" style="color:#26a0da;font-weight:bold;">/</span>
						<c:choose>
                             <c:when test="${action=='create'}">
								<span class="inline">新增</span>
                             </c:when>
                             <c:when test="${action=='edit'}">
								<span class="inline"> ${entity.id} </span>
                             </c:when>
                             <c:otherwise>
                             	<span class="inline"> ${entity.id}</span>
                             </c:otherwise>
                         </c:choose>
					</li>
			</ul>
		</div>
	</div>     
	<!-- 面包屑 end -->      
	<house365:flushMessage/>
	 <div class="row${fluid}">
		<div class="span12">
        	<div class="portlet-header">
                <div class="operation-btn pull-right">
                    <c:choose>
                        <c:when test="${action=='edit'}">
                            <button class="btn blue" type="submit"><i
                                    class="icon-save"></i>&nbsp;保存
                            </button>
                            <a href="${ctx}/cmexchangecode/${entity.id}" class="btn gray"><i
                                    class="icon-mail-reply"></i>&nbsp;取消</a>
                        </c:when>
                        <c:when test="${action=='create'}">
                            <button class="btn blue"><i class="icon-save"></i>&nbsp;保存</button>
                            <a href="${ctx}/cmexchangecode" class="btn gray"><i class="icon-mail-reply"></i>&nbsp;返回</a>
                        </c:when>
                        <c:otherwise>
                            <a href="${ctx}/cmexchangecode/${entity.id}?action=edit" class="btn blue"><i
                                    class="icon-edit"></i>&nbsp;编辑</a>
                            <a href="${ctx}/cmexchangecode" class="btn gray"><i class="icon-mail-reply"></i>&nbsp;返回</a>
                        </c:otherwise>
                    </c:choose>
                </div>
            </div>   
			<div class="form-horizontal house365Page">
				<div class="house365Border">
               		<!-- 片段头 begin -->
					<div class="sectionTitle">
						<c:choose>
                             <c:when test="${action=='create'}">
								<h5>新增</h5>
                             </c:when>
                             <c:when test="${action=='edit'}">
								<h5>编辑</h5>
                             </c:when>
                             <c:otherwise>
                             	<h5>详情</h5>
                             </c:otherwise>
                         </c:choose>
					</div>
                    <input name="entity.id" type="hidden" value="${entity.id}"/>
					<div class="row-fluid">
                        <div class="span6 control-group">
                            <label class="control-label">商品id:</label>
                            <div class="controls">
                            	<c:choose>
                                    <c:when test="${action=='create' || action=='edit'}">
										<input type="text" id="entity.goodId"
											name="entity.goodId"
											value="${entity.goodId}" />
										<font color="red"><form:errors path="cmExchangeCodeVo.entity.goodId" /></font>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.goodId}&nbsp;</span>
                                    </c:otherwise>
                                </c:choose>
                            
                            </div>
                        </div>
                        <div class="span6 control-group">
                            <label class="control-label">兑换编码:</label>
                            <div class="controls">
                            	<c:choose>
                                    <c:when test="${action=='create' || action=='edit'}">
										<input type="text" id="entity.exchangeCode"
											name="entity.exchangeCode"
											value="${entity.exchangeCode}" />
										<font color="red"><form:errors path="cmExchangeCodeVo.entity.exchangeCode" /></font>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.exchangeCode}&nbsp;</span>
                                    </c:otherwise>
                                </c:choose>
                            
                            </div>
                        </div>
					</div>
					<div class="row-fluid">
                        <div class="span6 control-group">
                            <label class="control-label">状态 0:未兑换:</label>
                            <div class="controls">
                            	<c:choose>
                                    <c:when test="${action=='create' || action=='edit'}">
										<input type="text" id="entity.status"
											name="entity.status"
											value="${entity.status}" />
										<font color="red"><form:errors path="cmExchangeCodeVo.entity.status" /></font>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.status}&nbsp;</span>
                                    </c:otherwise>
                                </c:choose>
                            
                            </div>
                        </div>
                        <div class="span6 control-group">
                            <label class="control-label">领取人id:</label>
                            <div class="controls">
                            	<c:choose>
                                    <c:when test="${action=='create' || action=='edit'}">
										<input type="text" id="entity.ownerId"
											name="entity.ownerId"
											value="${entity.ownerId}" />
										<font color="red"><form:errors path="cmExchangeCodeVo.entity.ownerId" /></font>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.ownerId}&nbsp;</span>
                                    </c:otherwise>
                                </c:choose>
                            
                            </div>
                        </div>
					</div>
					<div class="row-fluid">
                        <div class="span6 control-group">
                            <label class="control-label">领取人姓名:</label>
                            <div class="controls">
                            	<c:choose>
                                    <c:when test="${action=='create' || action=='edit'}">
										<input type="text" id="entity.ownerName"
											name="entity.ownerName"
											value="${entity.ownerName}" />
										<font color="red"><form:errors path="cmExchangeCodeVo.entity.ownerName" /></font>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.ownerName}&nbsp;</span>
                                    </c:otherwise>
                                </c:choose>
                            
                            </div>
                        </div>
                        <div class="span6 control-group">
                            <label class="control-label">领取人电话:</label>
                            <div class="controls">
                            	<c:choose>
                                    <c:when test="${action=='create' || action=='edit'}">
										<input type="text" id="entity.ownerPhone"
											name="entity.ownerPhone"
											value="${entity.ownerPhone}" />
										<font color="red"><form:errors path="cmExchangeCodeVo.entity.ownerPhone" /></font>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.ownerPhone}&nbsp;</span>
                                    </c:otherwise>
                                </c:choose>
                            
                            </div>
                        </div>
					</div>
					<div class="row-fluid">
                        <div class="span6 control-group">
                            <label class="control-label">有效期开始:</label>
                            <div class="controls">
                            	<c:choose>
                                    <c:when test="${action=='create' || action=='edit'}">
										<input type="text" id="entity.startTimeStr"
											name="entity.startTimeStr"
											value="<fmt:formatDate value='${entity.startTime}' pattern='yyyy-MM-dd HH:mm:ss' />" />
										<font color="red"><form:errors path="cmExchangeCodeVo.entity.startTime" /></font>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.startTime}&nbsp;</span>
                                    </c:otherwise>
                                </c:choose>
                            
                            </div>
                        </div>
                        <div class="span6 control-group">
                            <label class="control-label">有效期结束:</label>
                            <div class="controls">
                            	<c:choose>
                                    <c:when test="${action=='create' || action=='edit'}">
										<input type="text" id="entity.endTimeStr"
											name="entity.endTimeStr"
											value="<fmt:formatDate value='${entity.endTime}' pattern='yyyy-MM-dd HH:mm:ss' />" />
										<font color="red"><form:errors path="cmExchangeCodeVo.entity.endTime" /></font>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.endTime}&nbsp;</span>
                                    </c:otherwise>
                                </c:choose>
                            
                            </div>
                        </div>
					</div>
					<div class="row-fluid">
                        <div class="span6 control-group">
                            <label class="control-label">领取时间:</label>
                            <div class="controls">
                            	<c:choose>
                                    <c:when test="${action=='create' || action=='edit'}">
										<input type="text" id="entity.exchangeTimeStr"
											name="entity.exchangeTimeStr"
											value="<fmt:formatDate value='${entity.exchangeTime}' pattern='yyyy-MM-dd HH:mm:ss' />" />
										<font color="red"><form:errors path="cmExchangeCodeVo.entity.exchangeTime" /></font>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.exchangeTime}&nbsp;</span>
                                    </c:otherwise>
                                </c:choose>
                            
                            </div>
                        </div>
                        <div class="span6 control-group">
                            <label class="control-label">创建时间:</label>
                            <div class="controls">
                            	<c:choose>
                                    <c:when test="${action=='create' || action=='edit'}">
										<input type="text" id="entity.createTimeStr"
											name="entity.createTimeStr"
											value="<fmt:formatDate value='${entity.createTime}' pattern='yyyy-MM-dd HH:mm:ss' />" />
										<font color="red"><form:errors path="cmExchangeCodeVo.entity.createTime" /></font>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.createTime}&nbsp;</span>
                                    </c:otherwise>
                                </c:choose>
                            
                            </div>
                        </div>
					</div>
					<div class="row-fluid">
                        <div class="span6 control-group">
                            <label class="control-label">城市编号:</label>
                            <div class="controls">
                            	<c:choose>
                                    <c:when test="${action=='create' || action=='edit'}">
										<input type="text" id="entity.cityId"
											name="entity.cityId"
											value="${entity.cityId}" />
										<font color="red"><form:errors path="cmExchangeCodeVo.entity.cityId" /></font>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.cityId}&nbsp;</span>
                                    </c:otherwise>
                                </c:choose>
                            
                            </div>
                        </div>
                        <div class="span6 control-group">
                            <label class="control-label">城市名称:</label>
                            <div class="controls">
                            	<c:choose>
                                    <c:when test="${action=='create' || action=='edit'}">
										<input type="text" id="entity.cityName"
											name="entity.cityName"
											value="${entity.cityName}" />
										<font color="red"><form:errors path="cmExchangeCodeVo.entity.cityName" /></font>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.cityName}&nbsp;</span>
                                    </c:otherwise>
                                </c:choose>
                            
                            </div>
                        </div>
					</div>
					<div class="row-fluid">
                        <div class="span6 control-group">
                            <label class="control-label">是否已经删除:</label>
                            <div class="controls">
                            	<c:choose>
                                    <c:when test="${action=='create' || action=='edit'}">
										<input type="text" id="entity.isDeleted"
											name="entity.isDeleted"
											value="${entity.isDeleted}" />
										<font color="red"><form:errors path="cmExchangeCodeVo.entity.isDeleted" /></font>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.isDeleted}&nbsp;</span>
                                    </c:otherwise>
                                </c:choose>
                            
                            </div>
                        </div>
				</div>
			</div>               
        </div>
    </div>   

</form>
</body>

</html>