<!DOCTYPE HTML> 
 | 
<html xmlns:th="http://www.thymeleaf.org"> 
 | 
<head> 
 | 
    <meta charset="utf-8"> 
 | 
    <META HTTP-EQUIV="Pragma" CONTENT="no-cache"> 
 | 
    <meta name="renderer" content="webkit|ie-comp|ie-stand"> 
 | 
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> 
 | 
    <meta name="viewport" 
 | 
          content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/> 
 | 
    <meta http-equiv="Cache-Control" content="no-siteapp"/> 
 | 
    <!-- 本框架基本脚本和样式 --> 
 | 
    <script type="text/javascript" 
 | 
            th:src="@{/js/plugin/jquery-2.1.4.min.js}"></script> 
 | 
    <script type="text/javascript" th:src="@{/js/systools/MBase.js}"></script> 
 | 
</head> 
 | 
<body> 
 | 
<div class="ibox-content"> 
 | 
    <form class="form-horizontal" id="dataform" 
 | 
          onsubmit="javascripr:return false;"> 
 | 
  
 | 
        <div class="form-group"> 
 | 
            <label class="col-offset-1 col-sm-2 control-label">入库类型</label> 
 | 
            <div class="col-sm-3"> 
 | 
                <p class="form-control-static" th:text="${obj?.instoreType}"></p> 
 | 
            </div> 
 | 
  
 | 
            <label class="col-sm-2 control-label">创建时间</label> 
 | 
            <div class="col-sm-3"> 
 | 
                <p class="form-control-static"  th:text="${#dates.format(obj?.instoreDate,'yyyy-MM-dd HH:mm:ss')}" > 
 | 
                </p> 
 | 
            </div> 
 | 
        </div> 
 | 
  
 | 
        <div class="form-group"> 
 | 
            <label class="col-sm-2 control-label">制单人</label> 
 | 
            <div class="col-sm-3"> 
 | 
                <p class="form-control-static" th:text="${obj?.makingmanName}" ></p> 
 | 
            </div> 
 | 
  
 | 
            <label class="col-sm-2 control-label">审核人</label> 
 | 
            <div class="col-sm-3"> 
 | 
                <p class="form-control-static"  th:text="${obj?.appmanName}" ></p> 
 | 
            </div> 
 | 
        </div> 
 | 
  
 | 
        <div class="form-group"> 
 | 
            <label class="col-sm-2 control-label">往来单位</label> 
 | 
            <div class="col-sm-3"> 
 | 
                <p class="form-control-static" th:text="${obj?.supplierName}" ></p> 
 | 
            </div> 
 | 
  
 | 
            <label class="col-sm-2 control-label">备注</label> 
 | 
            <div class="col-sm-3"> 
 | 
                <p class="form-control-static" th:text="${obj?.remark}" ></p> 
 | 
            </div> 
 | 
        </div> 
 | 
  
 | 
        <div class="form-group"> 
 | 
            <label class="col-sm-2 control-label">入库仓库</label> 
 | 
            <!-- TODO============= --> 
 | 
            <div class="col-sm-3"> 
 | 
                <p class="form-control-static" th:text="${obj?.storeName}" ></p> 
 | 
            </div> 
 | 
  
 | 
            <label class="col-sm-2 control-label">总价</label> 
 | 
            <div class="col-sm-3"> 
 | 
                <p class="form-control-static" th:text="${obj?.sumall}"> 
 | 
                </p> 
 | 
            </div> 
 | 
        </div> 
 | 
        <div class="form-group"> 
 | 
            <div class="col-sm-3 col-md-offset-1"> 
 | 
                <span style="font-size: 14px; font-weight: bold;">入库明细 </span> 
 | 
            </div> 
 | 
        </div> 
 | 
        <div class="form-group"> 
 | 
            <div class="col-sm-8 col-md-offset-2"> 
 | 
                <table class="table table-striped table-hover table-bordered" 
 | 
                       id="mgrid"> 
 | 
                    <thead> 
 | 
                    <tr> 
 | 
                        <th>序号</th> 
 | 
                        <th>产品编码</th> 
 | 
                        <th>产品名称</th> 
 | 
                        <th>产品类型</th> 
 | 
  
 | 
                        <th>存货单位</th> 
 | 
                        <th width="120">入库数量</th> 
 | 
                        <th width="120">采购单价</th> 
 | 
                        <th>总金额</th> 
 | 
                    </tr> 
 | 
                    </thead> 
 | 
                    <tbody id="cpId"> 
 | 
                            <tr th:each="item,itemIndex:${obj.instoreDetails}"> 
 | 
                            <td th:text="${itemIndex.index+1 }"></td> 
 | 
                            <td th:text="${item.goods.code }"></td> 
 | 
                            <td th:text="${item.goods.name}"></td> 
 | 
                            <td th:text="${item.goods.goodsSortName}"></td> 
 | 
                            <td th:text="${item.goods.unit}"></td> 
 | 
                            <td th:text="${item.amount}"></td> 
 | 
                            <td th:text="${item.price}"></td> 
 | 
                            <td th:text="${ #numbers.formatDecimal( (item.amount *item.price) ,1,'COMMA',2,'POINT') }"></td> 
 | 
                        </tr> 
 | 
                    </tbody> 
 | 
  
 | 
                </table> 
 | 
            </div> 
 | 
        </div> 
 | 
  
 | 
        <div class="form-group "> 
 | 
            <div class="col-sm-12 text-center"> 
 | 
                <a href="javascript:;" onclick="PreviewMytable()" 
 | 
                   class="btn btn-success radius">预览</a>      <a 
 | 
                    href="javascript:;" onclick="print()" 
 | 
                    class="btn btn-success radius">打印</a>      <a 
 | 
                    href="javascript:;" onclick="MTools.closeForm()" 
 | 
                    class="btn btn-danger radius">取消</a> 
 | 
            </div> 
 | 
        </div> 
 | 
  
 | 
    </form> 
 | 
  
 | 
  
 | 
  
 | 
  
 | 
    <div id="div1" style="display: none;"> 
 | 
        <DIV style="LINE-HEIGHT: 30px" class=size14 align=center> 
 | 
            <h4>入库单</h4> 
 | 
        </DIV> 
 | 
        <div style="position: absolute; right: 20px; top: 5px;"> 
 | 
            总页号:<font color='' format='ChineseNum'><span tdata='pageNO'>第##页</span>/<span 
 | 
                tdata='pageCount'>共##页</span></font> 
 | 
        </div> 
 | 
        <TABLE border=0 cellSpacing=0 cellPadding=0 width="100%"> 
 | 
            <TBODY> 
 | 
            <TR> 
 | 
                <TD width="33%">单据号:<SPAN 
 | 
                        id=rpt_Pro_Order_List_ctl00_lbl_eShop_Name>[[${obj.instoreId }]]</SPAN></TD> 
 | 
                <TD width="33%" th:text="'日期:'+${#dates.format(obj?.instoreDate,'yyyy-MM-dd HH:mm:ss')}"> 
 | 
                   </td> 
 | 
                </TD> 
 | 
                <TD width="33%">入库仓库:<SPAN th:text="${obj?.storeName}"></SPAN></TD> 
 | 
            </TR> 
 | 
            <TR> 
 | 
                <TD>备注:<SPAN th:text="${obj?.remark}" ></SPAN></TD> 
 | 
            </TBODY> 
 | 
        </TABLE> 
 | 
    </div> 
 | 
    <div id="div2" style="display: none;"> 
 | 
  
 | 
        <TABLE border=1 cellSpacing=0 cellPadding=1 width="100%" 
 | 
               style="border-collapse: collapse" bordercolor="#333333"> 
 | 
            <thead> 
 | 
            <TR> 
 | 
                <TD width="10%"> 
 | 
                    <DIV align=center> 
 | 
                        <b>行号</b> 
 | 
                    </DIV> 
 | 
                </TD> 
 | 
                <TD width="12%"> 
 | 
                    <DIV align=center> 
 | 
                        <b>存货编码</b> 
 | 
                    </DIV> 
 | 
                </TD> 
 | 
                <TD width="25%"> 
 | 
                    <DIV align=center> 
 | 
                        <b>存货名称</b> 
 | 
                    </DIV> 
 | 
                </TD> 
 | 
                <TD width="12%"> 
 | 
                    <DIV align=center> 
 | 
                        <b>规格型号</b> 
 | 
                    </DIV> 
 | 
                </TD> 
 | 
                <TD width="12%"> 
 | 
                    <DIV align=center> 
 | 
                        <b>计量单位</b> 
 | 
                    </DIV> 
 | 
                </TD> 
 | 
                <TD width="10%"> 
 | 
                    <DIV align=center> 
 | 
                        <b>数量</b> 
 | 
                    </DIV> 
 | 
                </TD> 
 | 
                <TD width="10%"> 
 | 
                    <DIV align=center> 
 | 
                        <b>单价</b> 
 | 
                    </DIV> 
 | 
                </TD> 
 | 
                <TD width="10%"> 
 | 
                    <DIV align=center> 
 | 
                        <b>金额</b> 
 | 
                    </DIV> 
 | 
                </TD> 
 | 
            </TR> 
 | 
            </thead> 
 | 
            <TBODY> 
 | 
                <tr th:each="item,itemIndex:${obj.instoreDetails}"> 
 | 
                    <td th:text="${itemIndex.index+1}"></td> 
 | 
                    <td th:text="${item.goods.goodsNo}"></td> 
 | 
                    <td th:text="${item.goods.name}"></td> 
 | 
                    <td th:text="${item.goods.volume}+''+${item.goods.measure}+'/'+${item.goods.unit}"></td> 
 | 
                    <td th:text="${item.goods.unit}"></td> 
 | 
                    <td th:text="${item.amount}"></td> 
 | 
                    <td th:text="${item.price}"></td> 
 | 
                    <td th:text="${item.priceTotal}"></td> 
 | 
                </tr> 
 | 
            <tfoot> 
 | 
            <tr> 
 | 
                <TD>小计</TD> 
 | 
                <TD> </TD> 
 | 
                <TD> </TD> 
 | 
                <TD> </TD> 
 | 
                <TD> </TD> 
 | 
                <TD tdata="subSum" format="#,##">###</TD> 
 | 
                <TD> </TD> 
 | 
                <TD tdata="subSum" format="#,##">###</TD> 
 | 
            </tr> 
 | 
            <tr> 
 | 
                <TD colspan="2" style="border: none;" th:text="'制单人:'+${obj.makingmanName }" ></TD> 
 | 
                <td colspan="2" style="border: none;" th:text="'审核人:'+${obj.appmanName}"></td> 
 | 
                <td colspan="2" style="border: none;" th:text="'合计数量:'+${count}"></td> 
 | 
                <td colspan="2" style="border: none;" th:text="'合计金额:'+${money}"></td> 
 | 
            </tr> 
 | 
            </tfoot> 
 | 
        </TABLE> 
 | 
    </div> 
 | 
    <div id="div3" style="display: none;"> 
 | 
        <DIV style="LINE-HEIGHT: 30px" align=center> 
 | 
            <font color="#0000FF"></font> 
 | 
        </DIV> 
 | 
    </div> 
 | 
  
 | 
  
 | 
  
 | 
  
 | 
</div> 
 | 
</body> 
 | 
  
 | 
  
 | 
<script type="text/javascript" th:src="@{/js/systools/MJsBase.js}"></script> 
 | 
<script type="text/javascript" th:src="@{/js/plugin/LodopFuncs.js}"></script> 
 | 
  
 | 
<script type="text/javascript"> 
 | 
    var LODOP; 
 | 
  
 | 
    function PreviewMytable() { 
 | 
        LODOP = getLodop(); 
 | 
        createPage(); 
 | 
        LODOP.PREVIEW(); 
 | 
    }; 
 | 
  
 | 
    function print() { 
 | 
        LODOP = getLodop(); 
 | 
        createPage(); 
 | 
        LODOP.PRINTA(); 
 | 
    } 
 | 
  
 | 
    function createPage(){ 
 | 
        LODOP.PRINT_INIT("打印控件功能演示_Lodop功能_分页打印综合表格"); 
 | 
        var strStyle = "<style> table,td,th {border-width: 1px;border-style: solid;border-collapse: collapse}</style>" 
 | 
        LODOP.ADD_PRINT_TABLE(128, "5%", "90%", 314, strStyle 
 | 
            + document.getElementById("div2").innerHTML); 
 | 
        LODOP.SET_PRINT_STYLEA(0, "Vorient", 3); 
 | 
        LODOP.ADD_PRINT_HTM(26, "5%", "90%", 109, document 
 | 
            .getElementById("div1").innerHTML); 
 | 
        LODOP.SET_PRINT_STYLEA(0, "ItemType", 1); 
 | 
        LODOP.SET_PRINT_STYLEA(0, "LinkedItem", 1); 
 | 
        LODOP.ADD_PRINT_HTM(444, "5%", "90%", 54, document 
 | 
            .getElementById("div3").innerHTML); 
 | 
        LODOP.SET_PRINT_STYLEA(0, "ItemType", 1); 
 | 
        LODOP.SET_PRINT_STYLEA(0, "LinkedItem", 1); 
 | 
  
 | 
        LODOP.SET_PRINT_STYLEA(0, "FontSize", 12); 
 | 
        LODOP.SET_PRINT_STYLEA(0, "FontColor", "#FF0000"); 
 | 
        LODOP.SET_PRINT_STYLEA(0, "Alignment", 2); 
 | 
        LODOP.SET_PRINT_STYLEA(0, "ItemType", 1); 
 | 
        LODOP.SET_PRINT_STYLEA(0, "Horient", 3); 
 | 
        LODOP.SET_PRINT_STYLEA(0, "Horient", 1); 
 | 
        LODOP.ADD_PRINT_TEXT(3, 34, 196, 20, ""); 
 | 
        LODOP.SET_PRINT_STYLEA(0, "ItemType", 1); 
 | 
    } 
 | 
  
 | 
</script> 
 | 
  
 | 
</html> 
 |