Browse Source

调整形态转页面

master
lilili 1 year ago
parent
commit
10df0dd22b
  1. 10
      WMS-BS/NFine.Application/WMS/ICSMTDOCApp.cs
  2. 6
      WMS-BS/NFine.Web/Areas/WMS/Views/ICSMTDOC/Metamorphosis.cshtml

10
WMS-BS/NFine.Application/WMS/ICSMTDOCApp.cs

@ -30,7 +30,7 @@ namespace NFine.Application.WMS
List<DbParameter> parameter = new List<DbParameter>();
#region [SQL]
string sql = @" select distinct a.MTDOCCode,a.CreatePerson,a.CreateDateTime,a.Status,a.MUSER,a.MUSERName,a.MTIME from ICSMTDOC a";
string sql = @" SELECT * FROM (select row_number() over(partition by a.MTDOCCode ORDER BY a.CreateDateTime) as row, a.MTDOCCode,a.CreatePerson,a.CreateDateTime,a.Status,a.MUSER,a.MUSERName,a.MTIME from ICSMTDOC a";
sql += " WHERE 1=1";
sql = string.Format(sql, DbHelper.GetErpIp(), DbHelper.GetErpName());
#endregion
@ -50,6 +50,7 @@ namespace NFine.Application.WMS
//{
// sql += " and a.VenCode='" + NFine.Code.OperatorProvider.Provider.GetCurrent().UserCode + "'";
//}
sql += " ) t WHERE t.Row=1";
return Repository().FindTablePageBySql(sql.ToString(), parameter.ToArray(), ref jqgridparam);
}
@ -60,10 +61,9 @@ namespace NFine.Application.WMS
string sql = string.Empty;
List<DbParameter> parameter = new List<DbParameter>();
string WorkPoint = NFine.Code.OperatorProvider.Provider.GetCurrent().Location.TrimEnd(',');
sql = @" select a.ID,a.DepCode,d.DepName,a.WHCode,c.WarehouseName,a.Sequence,a.LotNo,b.InvCode,b.InvName,a.Quantity,a.Amount,a.MTDOCQuantity,a.MTDOCType
from ICSMTDOC a
left join dbo.ICSInventoryLot e on a.LotNo=e.LotNo and a.WorkPoint=e.WorkPoint
left join ICSInventory b on e.InvCode=b.InvCode and a.WorkPoint=b.WorkPoint
sql = @" select a.ID,a.DepCode,d.DepName,a.WHCode,c.WarehouseName,a.Sequence,b.InvCode,b.InvName,a.Quantity,a.Amount,a.MTDOCQuantity,case WHEN a.MTDOCType='1' then '转换前' ELSE '转换后' END as MTDOCType
from ICSMTDOC a
left join ICSInventory b on a.InvCode=b.InvCode and a.WorkPoint=b.WorkPoint
left join ICSWarehouse c on a.WHCode=c.WarehouseCode and a.WorkPoint=c.WorkPoint
left join ICSDepartment d on a.DepCode=d.DepCode and a.WorkPoint=d.WorkPoint
WHERE a.MTDOCCode='{0}' and a.WorkPoint in ('{1}') order by a.Sequence ";

6
WMS-BS/NFine.Web/Areas/WMS/Views/ICSMTDOC/Metamorphosis.cshtml

@ -108,13 +108,13 @@
{ label: '部门名称', name: 'DepName', width: 100, align: 'left' },
{ label: '仓库代码', name: 'WHCode', width: 100, align: 'left' },
{ label: '仓库名称', name: 'WarehouseName', width: 100, align: 'left' },
{ label: '条码', name: 'LotNo', width: 100, align: 'left' },
//{ label: '条码', name: 'LotNo', width: 100, align: 'left' },
{ label: '料品编码', name: 'InvCode', width: 100, align: 'left' },
{ label: '物料描述', name: 'InvName', width: 100, align: 'left' },
{ label: '物料描述', name: 'InvName', width: 300, align: 'left' },
{ label: '数量', name: 'Quantity', width: 100, align: 'left' },
{ label: '辅计量数量', name: 'Amount', width: 100, align: 'left' },
{ label: '已转换数量', name: 'MTDOCQuantity', width: 100, align: 'left' },
{ label: '转换类型', name: 'MTDOCQuantity', width: 100, align: 'left' },
{ label: '转换类型', name: 'MTDOCType', width: 100, align: 'left' },
],
//colModel: ColModelSub,
shrinkToFit: true,//宽度自适应

Loading…
Cancel
Save