Index: ssts-basedata/src/main/java/com/forgon/disinfectsystem/vo/InvoiceSimpleVO.java =================================================================== diff -u --- ssts-basedata/src/main/java/com/forgon/disinfectsystem/vo/InvoiceSimpleVO.java (revision 0) +++ ssts-basedata/src/main/java/com/forgon/disinfectsystem/vo/InvoiceSimpleVO.java (revision 22592) @@ -0,0 +1,73 @@ +package com.forgon.disinfectsystem.vo; + +import java.util.Date; + +public class InvoiceSimpleVO { + private Long id; + + private String serialNumber; // 流水号 + + private Date sendTime; // 发货时间 + private String depart; // 申请科室 + private String sender; // 发货员 + + /** + * 仓库名称 + */ + private String warehouseName; + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public String getSerialNumber() { + return serialNumber; + } + + public void setSerialNumber(String serialNumber) { + this.serialNumber = serialNumber; + } + + public Date getSendTime() { + return sendTime; + } + + public void setSendTime(Date sendTime) { + this.sendTime = sendTime; + } + + public String getDepart() { + return depart; + } + + public void setDepart(String depart) { + this.depart = depart; + } + + public String getSender() { + return sender; + } + + public void setSender(String sender) { + this.sender = sender; + } + + public String getWarehouseName() { + return warehouseName; + } + + public void setWarehouseName(String warehouseName) { + this.warehouseName = warehouseName; + } + + @Override + public String toString() { + return "InvoiceSimpleVO [id=" + id + ", serialNumber=" + serialNumber + + ", sendTime=" + sendTime + ", depart=" + depart + ", sender=" + + sender + ", warehouseName=" + warehouseName + "]"; + } +} Index: ssts-web/src/main/webapp/disinfectsystem/invoice/invoiceSign.jsp =================================================================== diff -u -r21541 -r22592 --- ssts-web/src/main/webapp/disinfectsystem/invoice/invoiceSign.jsp (.../invoiceSign.jsp) (revision 21541) +++ ssts-web/src/main/webapp/disinfectsystem/invoice/invoiceSign.jsp (.../invoiceSign.jsp) (revision 22592) @@ -49,6 +49,19 @@ .lightbox dd{ padding:20px; margin:0;} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+
+ +
+ +
+
+ +
+
+
+ +
+
+
+
+

今日待签收发货单

+
+
+
+
+
+ +
+
+
+
+

发货单明细

+
+
+
+
+
+ +
+
+ + + + + + \ No newline at end of file Index: ssts-web/src/main/webapp/disinfectsystem/invoice/invoicePlanTable.js =================================================================== diff -u --- ssts-web/src/main/webapp/disinfectsystem/invoice/invoicePlanTable.js (revision 0) +++ ssts-web/src/main/webapp/disinfectsystem/invoice/invoicePlanTable.js (revision 22592) @@ -0,0 +1,206 @@ +$(function() { + var t = $("#table_server") + .bootstrapTable( + { + url : WWWROOT + + '/disinfectSystem/invoiceAction!getTodayWaitSignInvoiceGrid.do?time=' + + new Date(), + method : 'get', + dataType : "json", + showRefresh : "true",// 刷新按钮 + dataField : "data",// 这是返回的json数组的key.默认好像是"rows".这里只有前后端约定好就行 + striped : true,// 设置为 true 会有隔行变色效果 + undefinedText : "空",// 当数据为 undefined 时显示的字符 + pagination : true, // 分页 + // paginationLoop:true,//设置为 true 启用分页条无限循环的功能。 + showColumns : "true",// 是否显示 内容列下拉框 + pageNumber : 1,// 如果设置了分页,首页页码 + // showPaginationSwitch:true,//是否显示 数据条数选择框 + pageSize : 10,// 如果设置了分页,页面数据条数 + pageList : [ 10, 30, 50 ], // 如果设置了分页,设置可供选择的页面数据条数。设置为All + // 则显示所有记录。 + paginationPreText : '‹',// 指定分页条中上一页按钮的图标或文字,这里是< + paginationNextText : '›',// 指定分页条中下一页按钮的图标或文字,这里是> + // singleSelect: false,//设置True 将禁止多选 + search : false, // 显示搜索框 + data_local : "zh-US",// 表格汉化 + sidePagination : "server", // 服务端处理分页 + responseHandler : responseHandler, + queryParams : function(params) {// 自定义参数 + return {// 这里的params是table提供的 + start : params.offset, // 从数据库第几条记录开始 + limit : params.limit, // 找多少条 + keyword : params.search + }; + }, + idField : "id",// 指定主键列 + columns : [ + { + title : 'id',// 表的列名 + field : 'id',// json数据中rows数组中的属性名 + align : 'center'// 水平居中 + }, + { + title : '流水号', + field : 'serialNumber', + align : 'center' + }, + { + title : '发货员', + field : 'sender', + align : 'center' + }, + { + title : '申请时间', + field : 'applicationTime', + align : 'center' + }, + { + title : '科室', + field : 'depart', + align : 'center' + }, + { + title : '发货时间', + field : 'sendTime', + align : 'center' + }, + { + title : '操作', + field : 'id', + align : 'center', + formatter : function(value, row, index) {// 自定义显示标签 + return ' '; + } + } + + ] + }); + t.on('load-success.bs.table', function(data) {// table加载成功后的监听函数 + $(".pull-right").css("display", "block"); + $('#table_server').bootstrapTable('hideColumn', 'id');// 隐藏ID + }); + + // 请求成功方法 + function responseHandler(result) { + /* + * var errcode = result.errcode;//在此做了错误代码的判断 if(errcode != 0){ + * alert("错误代码" + errcode); return; } + */ + // 如果没有错误则返回数据,渲染表格 + return { + total : result.totalCount, // 总页数,前面的key必须为"total" + data : result.data + // 行数据,前面的key要与之前设置的dataField的值一致. + + }; + } + ; +}); + +// 刷新表格数据 +function refresh() { + $('#table_server') + .bootstrapTable( + 'refresh', + { + url : WWWROOT + + '/disinfectSystem/signRecordAction!getSignRecordTodayGrid.do?time=' + + new Date() + }); +} + +// 根据开始、结束时间来查找签收记录的数据 +function searchSignRecord() { + var opt = { + url : WWWROOT + + '/disinfectSystem/signRecordAction!getSignRecordByDate.do?time=' + + new Date(), + silent : true, + query : { + beginDate : $("#beginDate").val(), + endDate : $("#endDate").val() + } + }; + $("#table_server").bootstrapTable('refresh', opt); +} + +// 点击“查看详情”按钮时,打开器械包的table +function changeTable(invoiceId) { + // 先销毁表格 + $("#table_server2").bootstrapTable('destroy'); + // 重新加载 + var t = $("#table_server2") + .bootstrapTable( + { + url : WWWROOT + + '/disinfectSystem/invoiceAction!getWaitSignTousseGridByInvoiceId.do?time=' + + new Date(), + method : 'get', + dataType : "json", + showRefresh : "true",// 刷新按钮 + dataField : "data",// 这是返回的json数组的key.默认好像是"rows".这里只有前后端约定好就行 + striped : true,// 设置为 true 会有隔行变色效果 + undefinedText : "空",// 当数据为 undefined 时显示的字符 + pagination : true, // 分页 + // paginationLoop:true,//设置为 true 启用分页条无限循环的功能。 + showColumns : "true",// 是否显示 内容列下拉框 + pageNumber : 1,// 如果设置了分页,首页页码 + // showPaginationSwitch:true,//是否显示 数据条数选择框 + pageSize : 10,// 如果设置了分页,页面数据条数 + pageList : [ 10, 20, 40, 50 ], // 如果设置了分页,设置可供选择的页面数据条数。设置为All + // 则显示所有记录。 + paginationPreText : '‹',// 指定分页条中上一页按钮的图标或文字,这里是< + paginationNextText : '›',// 指定分页条中下一页按钮的图标或文字,这里是> + // singleSelect: false,//设置True 将禁止多选 + search : true, // 显示搜索框 + data_local : "zh-US",// 表格汉化 + sidePagination : "server", // 服务端处理分页 + responseHandler : responseHandler, + queryParams : function(params) {// 自定义参数,这里的参数是传给后台的,我这是分页用的 + return {// 这里的params是table提供的 + start : params.offset, // 从数据库第几条记录开始 + limit : params.limit, // 找多少条 + keyword : params.search, // 关键字搜索 + invoiceId : invoiceId + }; + }, + idField : "id",// 指定主键列 + columns : [ { + title : 'id',// 表的列名 + field : 'id',// json数据中rows数组中的属性名 + align : 'center'// 水平居中 + }, { + title : '申请的物品', + field : 'tousseName', + align : 'center' + }, { + title : '待签收数量', + field : 'amount', + align : 'center' + }] + }); + t.on('load-success.bs.table', function(data) {// table加载成功后的监听函数 + $(".pull-right").css("display", "block"); + $('#table_server2').bootstrapTable('hideColumn', 'id');// 隐藏ID + }); + + // 请求成功方法 + function responseHandler(result) { + /* + * var errcode = result.errcode;//在此做了错误代码的判断 if(errcode != 0){ + * alert("错误代码" + errcode); return; } + */ + // 如果没有错误则返回数据,渲染表格 + return { + total : result.totalCount, // 总页数,前面的key必须为"total" + data : result.data + // 行数据,前面的key要与之前设置的dataField的值一致. + + }; + } + ; + +} Index: ssts-invoice/src/main/java/com/forgon/disinfectsystem/invoicemanager/service/InvoiceManager.java =================================================================== diff -u -r22252 -r22592 --- ssts-invoice/src/main/java/com/forgon/disinfectsystem/invoicemanager/service/InvoiceManager.java (.../InvoiceManager.java) (revision 22252) +++ ssts-invoice/src/main/java/com/forgon/disinfectsystem/invoicemanager/service/InvoiceManager.java (.../InvoiceManager.java) (revision 22592) @@ -19,6 +19,7 @@ import com.forgon.disinfectsystem.invoicemanager.vo.WaitSignGoodsSummary; import com.forgon.disinfectsystem.recyclingapplication.vo.ApplicationGoodsVo; import com.forgon.disinfectsystem.recyclingapplication.vo.ExpressInvoiceApplicationGoodsVo; +import com.forgon.disinfectsystem.vo.InvoiceSimpleVO; import com.forgon.tools.hibernate.BasePoManager; import com.google.gson.JsonObject; @@ -252,4 +253,19 @@ * @param result */ public String checkExpensiveGoodsEntryAndSaveInvoice(ExpensiveGoodsGodownEntry original,ExpensiveGoodsGodownEntry entry,String entryCheckStatus,Map result); + + /** + * 获取今天待签收的发货单 + * @param departCode 科室编码 + * @return + */ + public List> getTodayWaitSignInvoice(String departCode); + + /** + * 根据发货单ID获取下面的待签收的包实例 + * @param invoiceId 发货单ID + * @param keyword 搜索内容 + * @return + */ + public List> getWaitSignTousseByInvoiceId(Long invoiceId,String keyword); }