| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- <%@ Page Language="C#" MasterPageFile="~/MasterPage/ErpView.master" AutoEventWireup="true" CodeFile="PackCenter.aspx.cs" Inherits="EDelivery_PackCenter" %>
- <asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
- <script>
- let productHourList = []
- //查询按钮
- function searchFn() {
- var form = new mini.Form("#ctl00_f_all");
- var data = form.getData(true, false);
- var s = data;
- grid.load({
- supplier: s.supplier
- });
- }
- //清除查询内容
- function clearFn() {
- var form = new mini.Form("#ctl00_f_all");
- form.clear();
- }
- function orderPTimeRenderer(e) {
- var grid = e.sender;
- var record = e.record;
- var tid = record.tid;
- var rowIndex = e.rowIndex;
- var html = "<div style=\"display:flex;flex-direction:column;\">";
- html += ("<div>" + formatCommonDate(record.createtime) + "</div>");
- html += "</div>";
- return html;
- }
- function supStateRenderer(e) {
- var record = e.record;
- var html = "<div style=\"display:flex;flex-direction:column;\">";
- if (record.upStatus == 0) {
- html += ("<div style=\"color:blue;\"> 待打包 </div>");
- }
- if (record.upStatus == 1) {
- html += ("<div style=\"color:blue;\"> 打包中 </div>");
- } if (record.upStatus == 2) {
- html += ("<div style=\"color:blue;\"> 打包完成 </div>");
- } if (record.upStatus == 3) {
- html += ("<div style=\"color:blue;\"> 打包失败 </div>");
- } if (record.upStatus == 4) {
- html += ("<div style=\"color:blue;\"> 取消 </div>");
- }
- html += "</div>";
- return html;
- }
- function actionRenderer(e) {
- var record = e.record;
- var html = "";
- if (!!record.fileUrl) {
- html += getGridBtn("notify1", "下载", "downUrl('" + id + "')");
- }
- return html;
- }
- </script>
- </asp:Content>
- <asp:Content ID="Content2" ContentPlaceHolderID="btn" runat="Server">
- </asp:Content>
- <asp:Content ID="Content4" ContentPlaceHolderID="content" runat="Server">
- <div class="mini-fit">
- <div id="m_grid" class="mini-datagrid" style="width: 98%;" contextmenu="#gridMenu" showemptytext="true" emptytext="暂无记录" url="../handler/sync.ashx?t=get_pack_list">
- <div property="columns">
- <div type="checkcolumn" width="20"></div>
- <div field="fileName" width="110" align="center" headeralign="center">名称</div>
- <div field="createtime" width="80" align="center" headeralign="center" renderer="orderPTimeRenderer">创建时间</div>
- <div field="upStatus" width="50" align="center" headeralign="center" renderer="supStateRenderer">状态</div>
- <div field="message" width="200" align="center" headeralign="center">说明</div>
- <div field="downNum" width="80" align="center" headeralign="center">下载次数</div>
- <div field="SupplierName" width="60" align="center" headeralign="center">车间</div>
- <div field="createName" width="60" align="center" headeralign="center">创建人</div>
- <div name="action" width="60" headeralign="center" align="center" renderer="actionRenderer" cellstyle="padding:0;">#</div>
- </div>
- </div>
- </div>
- </asp:Content>
|