荣圣达泛微OA对接,运输类型改为取vopbs.bstype;附件文件名改为取中文File_OriginalName加文件名扩展名

DS7_JinGang
ddlucky 2 years ago
parent 3e060d3d47
commit cb8dfccb78

@ -1062,7 +1062,7 @@ namespace DSWeb.Areas.CommMng.DAL
var oldfilePath = chfeefile.File_Path.Substring(chfeefile.File_Path.IndexOf("\\Areas\\"), chfeefile.File_Path.Length - chfeefile.File_Path.IndexOf("\\Areas\\")).Replace("\\","/");
filePath = (paramset.PARAMVALUE + "/" + oldfilePath).Replace("//Areas", "/Areas");
filePath = filePath.Replace("//Areas", "/Areas");
fileName = chfeefile.File_Name;
fileName = chfeefile.File_OriginalName+"."+ Path.GetExtension(chfeefile.File_Name);
}
@ -1211,7 +1211,20 @@ namespace DSWeb.Areas.CommMng.DAL
var oplbstr = "4";
//4 海运进出口 5空运进出口 6铁路进口 7铁路出口
if (oplbdic.ContainsKey(bs.OPLBNAME)) oplbstr = oplbdic[bs.OPLBNAME];
var _oplbname = bs.BSTYPE;
if (_oplbname == "海运进口" || _oplbname == "海运出口") {
_oplbname = "海运进出口";
}else
if (_oplbname == "空运进口" || _oplbname == "空运出口")
{
_oplbname = "空运进出口";
}else
if (_oplbname == "铁路运输"|| _oplbname == "铁路")
{
_oplbname = "铁路出口";
}
if (oplbdic.ContainsKey(_oplbname)) oplbstr = oplbdic[_oplbname];
newline.workflowRequestTableFields.Add(new Field("yslx", oplbstr));

Loading…
Cancel
Save