|
|
@ -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); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|