|
|
@ -220,6 +220,8 @@ namespace SCP.PlanData |
|
|
|
return; |
|
|
|
} |
|
|
|
List<string> list1 = new List<string>(); |
|
|
|
try |
|
|
|
{ |
|
|
|
list1 = CheckPartCode(partCodeList); |
|
|
|
if (list1.Count() > 0) |
|
|
|
{ |
|
|
@ -242,16 +244,6 @@ namespace SCP.PlanData |
|
|
|
{ |
|
|
|
saveret = SCP_PO_CONTROLLER.Save_EXCEL_PO_MOD(list, CurrentUser.FactoryList[0], CurrentUser.Name, DateTime.Now, p_modtype, CurrentUser.SubSiteList[0], CurrentUser.ChineseName, CurrentUser.CellPhone); |
|
|
|
} |
|
|
|
//if (CurrentUser.ConfigList.ContainsKey("数据中心接口"))
|
|
|
|
//{
|
|
|
|
// var apiret = SCP_DC_UNI_CONTROLLER.InsterPo(list, CurrentUser.FactoryList[0], CurrentUser.Name, DateTime.Now, p_modtype, CurrentUser.SubSiteList[0]);
|
|
|
|
// if (apiret.State == ReturnStatus.Failed && apiret.Result == false)
|
|
|
|
// {
|
|
|
|
// Alert.Show(apiret.Message);
|
|
|
|
// return;
|
|
|
|
// }
|
|
|
|
//}
|
|
|
|
//var saveret = SCP_PO_CONTROLLER.Save_EXCEL_PO_MOD(list, CurrentUser.FactoryList[0], CurrentUser.Name, DateTime.Now, p_modtype, CurrentUser.SubSiteList[0], CurrentUser.ChineseName, CurrentUser.CellPhone);
|
|
|
|
if (saveret.State == ReturnStatus.Succeed && saveret.Result == true) |
|
|
|
{ |
|
|
|
BindOrder(); |
|
|
@ -266,6 +258,26 @@ namespace SCP.PlanData |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
catch(Exception ex) |
|
|
|
{ |
|
|
|
Alert.Show(ex.Message); |
|
|
|
LogHelper.Writlog(LogHelper.LogType.Error, typeof(TEA_TASK_SUB), "InsterPo", ex.Message); |
|
|
|
FileUp.Reset(); |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
//if (CurrentUser.ConfigList.ContainsKey("数据中心接口"))
|
|
|
|
//{
|
|
|
|
// var apiret = SCP_DC_UNI_CONTROLLER.InsterPo(list, CurrentUser.FactoryList[0], CurrentUser.Name, DateTime.Now, p_modtype, CurrentUser.SubSiteList[0]);
|
|
|
|
// if (apiret.State == ReturnStatus.Failed && apiret.Result == false)
|
|
|
|
// {
|
|
|
|
// Alert.Show(apiret.Message);
|
|
|
|
// return;
|
|
|
|
// }
|
|
|
|
//}
|
|
|
|
//var saveret = SCP_PO_CONTROLLER.Save_EXCEL_PO_MOD(list, CurrentUser.FactoryList[0], CurrentUser.Name, DateTime.Now, p_modtype, CurrentUser.SubSiteList[0], CurrentUser.ChineseName, CurrentUser.CellPhone);
|
|
|
|
|
|
|
|
} |
|
|
|
protected void BTN_CREATE_Click(object sender, EventArgs e) |
|
|
|
{ |
|
|
|
if (Grid_V_TB_PO.SelectedRowIndexArray.Count() == 0) |
|
|
|