<%@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}/cmproductstat<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}/cmproductstat">列表</a>
                </li>
                <li class="active">
                    <span class="divider" style="color:#26a0da;font-weight:bold;">/</span>
                    <span class="inline"> ${entity.id}</span>
                </li>
            </ul>
        </div>
    </div>
    <!-- 面包屑 end -->
    <house365:flushMessage/>
    <div class="row${fluid}">
        <div class="span12">
            <div class="portlet-header">
                <div class="operation-btn pull-right">
                </div>
            </div>
            <div class="form-horizontal house365Page">
                <div class="house365Border">
                    <!-- 片段头 begin -->
                    <div class="sectionTitle">
                        <h5>详情</h5>
                    </div>
                    <input name="entity.id" type="hidden" value="${entity.id}"/>
                    <div class="row-fluid">
                        <div class="span6 control-group">
                            <label class="control-label">productId:</label>
                            <div class="controls">
                                <c:choose>
                                    <c:when test="${action=='create' || action=='edit'}">
                                        <input type="text" id="entity.productId"
                                               name="entity.productId"
                                               value="${entity.productId}"/>
                                        <font color="red"><form:errors path="cmProductStatVo.entity.productId"/></font>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.productId}&nbsp;</span>
                                    </c:otherwise>
                                </c:choose>

                            </div>
                        </div>
                        <div class="span6 control-group">
                            <label class="control-label">productName:</label>
                            <div class="controls">
                                <c:choose>
                                    <c:when test="${action=='create' || action=='edit'}">
                                        <input type="text" id="entity.productName"
                                               name="entity.productName"
                                               value="${entity.productName}"/>
                                        <font color="red"><form:errors
                                                path="cmProductStatVo.entity.productName"/></font>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.productName}&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.beginStock"
                                               name="entity.beginStock"
                                               value="${entity.beginStock}"/>
                                        <font color="red"><form:errors path="cmProductStatVo.entity.beginStock"/></font>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.beginStock}&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.endStock"
                                               name="entity.endStock"
                                               value="${entity.endStock}"/>
                                        <font color="red"><form:errors path="cmProductStatVo.entity.endStock"/></font>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.endStock}&nbsp;</span>
                                    </c:otherwise>
                                </c:choose>

                            </div>
                        </div>
                    </div>
                    <div class="row-fluid">
                        <div class="span6 control-group">
                            <label class="control-label">yyyy-MM-dd:</label>
                            <div class="controls">
                                <c:choose>
                                    <c:when test="${action=='create' || action=='edit'}">
                                        <input type="text" id="entity.statDate"
                                               name="entity.statDate"
                                               value="${entity.statDate}"/>
                                        <font color="red"><form:errors path="cmProductStatVo.entity.statDate"/></font>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.statDate}&nbsp;</span>
                                    </c:otherwise>
                                </c:choose>

                            </div>
                        </div>
                        <div class="span6 control-group">
                            <label class="control-label">商品类型</label>
                            <div class="controls">
                                <span class="inline">
                    <c:choose>
                        <c:when test="${entity.productType==1}">
                            虚拟
                        </c:when>
                        <c:when test="${entity.productType==0}">
                            实物
                        </c:when>
                        <c:otherwise>
                        </c:otherwise>
                    </c:choose>
                                    &nbsp;</span>
                            </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="${entity.isSeckill==1}">
                                        <strong style="color:red;">秒杀商品</strong>
                                    </c:when>
                                    <c:when test="${entity.isSeckill==0}">
                                        普通商品
                                    </c:when>
                                    <c:otherwise>
                                    </c:otherwise>
                                </c:choose>
                            </div>
                        </div>
                        <div class="span6 control-group">
                            <label class="control-label">city:</label>
                            <div class="controls">
                                <c:choose>
                                    <c:when test="${action=='create' || action=='edit'}">
                                        <input type="text" id="entity.city"
                                               name="entity.city"
                                               value="${entity.city}"/>
                                        <font color="red"><form:errors path="cmProductStatVo.entity.city"/></font>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.city}&nbsp;</span>
                                    </c:otherwise>
                                </c:choose>

                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

</form>
</body>

</html>
