Browse Source

展示隐藏订单明细的价格 和 导入订单报错信息提醒

master
qian 10 months ago
parent
commit
a85c54939e
  1. 10
      SCP/Views/PlanData/SCP_PO.aspx.cs
  2. 2
      SCP/Views/PlanData/SCP_PO_DETAIL.aspx

10
SCP/Views/PlanData/SCP_PO.aspx.cs

@ -215,7 +215,9 @@ namespace SCP.PlanData
_dt = ExcelHelper.GetDataTableOfXlsx(_stream); _dt = ExcelHelper.GetDataTableOfXlsx(_stream);
} }
var list = ConvertHelper.ToList<SCP_PO_EXPORT_IMPORT_MODEL>(ExcelHelper.RemoveEmpty(_dt)).ToList(); var list = ConvertHelper.ToList<SCP_PO_EXPORT_IMPORT_MODEL>(ExcelHelper.RemoveEmpty(_dt)).ToList();
var ret = SCP_PO_CONTROLLER.EXCEL_PO_MOD2(_dt,list, CurrentUser.FactoryList[0], CurrentUser.Name, DateTime.Now, PoState.Open); try
{
var ret = SCP_PO_CONTROLLER.EXCEL_PO_MOD2(_dt, list, CurrentUser.FactoryList[0], CurrentUser.Name, DateTime.Now, PoState.Open);
if (ret.State == ReturnStatus.Succeed && ret.Result == true) if (ret.State == ReturnStatus.Succeed && ret.Result == true)
{ {
@ -230,6 +232,12 @@ namespace SCP.PlanData
{ {
Alert.Show(string.Join("<br>", ret.MessageList)); Alert.Show(string.Join("<br>", ret.MessageList));
} }
}
catch(Exception ex)
{
Alert.Show(ex.Message);
}
} }

2
SCP/Views/PlanData/SCP_PO_DETAIL.aspx

@ -98,7 +98,7 @@
<f:BoundField Width = "100px" SortField="EndTime" DataField = "EndTime" DataFormatString = "{0:yyyy-MM-dd}" HeaderText = "要求到货日期" /> <f:BoundField Width = "100px" SortField="EndTime" DataField = "EndTime" DataFormatString = "{0:yyyy-MM-dd}" HeaderText = "要求到货日期" />
<f:BoundField Width = "50px" SortField="PoUnit" DataField = "PoUnit" DataFormatString = "{0}" Hidden="true" HeaderText = "单位" /> <f:BoundField Width = "50px" SortField="PoUnit" DataField = "PoUnit" DataFormatString = "{0}" Hidden="true" HeaderText = "单位" />
<f:BoundField Width = "80px" SortField="Price" DataField = "Price" DataFormatString = "{0}" HeaderText = "价格" Hidden="true" /> <f:BoundField Width = "80px" SortField="Price" DataField = "Price" DataFormatString = "{0}" HeaderText = "价格" />
<f:BoundField Width = "120px" SortField="SubSite" DataField = "SubSite" DataFormatString = "{0}" HeaderText = "子件物料号" /> <f:BoundField Width = "120px" SortField="SubSite" DataField = "SubSite" DataFormatString = "{0}" HeaderText = "子件物料号" />
<f:BoundField Width = "150px" SortField="Subpartspec" DataField = "Subpartspec" DataFormatString = "{0}" HeaderText = "子件规格" /> <f:BoundField Width = "150px" SortField="Subpartspec" DataField = "Subpartspec" DataFormatString = "{0}" HeaderText = "子件规格" />
<f:BoundField Width = "50px" SortField="CurrencyDesc" DataField = "CurrencyDesc" DataFormatString = "{0}" HeaderText = "币种" Hidden="true" /> <f:BoundField Width = "50px" SortField="CurrencyDesc" DataField = "CurrencyDesc" DataFormatString = "{0}" HeaderText = "币种" Hidden="true" />

Loading…
Cancel
Save