|
|
@ -215,7 +215,9 @@ 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); |
|
|
|
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) |
|
|
|
{ |
|
|
|
|
|
|
@ -230,6 +232,12 @@ namespace SCP.PlanData |
|
|
|
{ |
|
|
|
Alert.Show(string.Join("<br>", ret.MessageList)); |
|
|
|
} |
|
|
|
} |
|
|
|
catch(Exception ex) |
|
|
|
{ |
|
|
|
Alert.Show(ex.Message); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|