Browse Source

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

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

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

@ -215,21 +215,29 @@ namespace SCP.PlanData
_dt = ExcelHelper.GetDataTableOfXlsx(_stream);
}
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);
if (ret.State == ReturnStatus.Succeed && ret.Result == true)
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)
{
FileUp.Reset();
FileUp.Reset();
BindOrder();
Alert.Show("导入成功");
BindOrder();
Alert.Show("导入成功");
}
else
{
Alert.Show(string.Join("<br>", ret.MessageList));
}
}
else
catch(Exception ex)
{
Alert.Show(string.Join("<br>", ret.MessageList));
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 = "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 = "150px" SortField="Subpartspec" DataField = "Subpartspec" DataFormatString = "{0}" HeaderText = "子件规格" />
<f:BoundField Width = "50px" SortField="CurrencyDesc" DataField = "CurrencyDesc" DataFormatString = "{0}" HeaderText = "币种" Hidden="true" />

Loading…
Cancel
Save