20220915 焊接增加焊工功效分析界面

This commit is contained in:
2022-09-15 23:20:10 +08:00
parent f4640cf410
commit e78dee144b
15 changed files with 551 additions and 14 deletions
@@ -54,13 +54,14 @@ namespace FineUIPro.Web.HJGL.DataImport
}
public void Save()
public string Save()
{
string result = "";
if (Session["AttachFile.webuploader"] == null)
{
ShowNotify("请先上传文件!", MessageBoxIcon.Error);
return;
return result;
}
List<Model.AttachSourceItems> root = JsonConvert.DeserializeObject<List<Model.AttachSourceItems>>(Session["AttachFile.webuploader"].ToString());
foreach (var item in root)
@@ -81,16 +82,31 @@ namespace FineUIPro.Web.HJGL.DataImport
dataImport.CreateMan = this.CurrUser.PersonId;
dataImport.CreateDate = DateTime.Now;
BLL.HJGL_DataImportService.AddHJGL_DataImport(dataImport);
if (!BLL.HJGL_DataImportService.UploadFileToOa(Funs.RootPath + dataImport.FilePath, dataImport.UnitWorkId, "1"))
{
string str = " " + dataImport.FileName + "推送失败|";
result += str;
}
}
Session.Remove("AttachFile.webuploader");
return result;
}
protected void btnSave_Click(object sender, EventArgs e)
{
Save();
ShowNotify("保存成功!", MessageBoxIcon.Success);
string result = Save();
if (result == "")
{
ShowNotify("保存成功!", MessageBoxIcon.Success);
}
else
{
ShowNotify(result, MessageBoxIcon.Warning);
}
PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference());
}
}
}