修复通过接口传输文件失败问题

master
孙亮 5 months ago
parent e5650b32ae
commit bc2f19a10d

@ -9438,12 +9438,18 @@ namespace BP.WF
{ {
if (dt.TableName.Equals(ath.NoOfObj) == false) if (dt.TableName.Equals(ath.NoOfObj) == false)
continue; continue;
if (nd.HisFormType == NodeFormType.RefOneFrmTree) {
if (ath.NodeID != 0)//节点绑定表单库表单时
continue;
}
dbs.Delete(FrmAttachmentDBAttr.RefPKVal, workID,FrmAttachmentDBAttr.FK_FrmAttachment,nd.NodeFrmID+ "_"+dt.TableName); // 清除现有的数据.
dbs.Delete(FrmAttachmentDBAttr.RefPKVal, workID); // 清除现有的数据. //临时路径
//临时路径
string rootTempPath = SystemConfig.PathOfTemp + workID; string rootTempPath = SystemConfig.PathOfTemp + workID;
if (System.IO.Directory.Exists(rootTempPath) == false) if (System.IO.Directory.Exists(rootTempPath) == false)
System.IO.Directory.CreateDirectory(rootTempPath); System.IO.Directory.CreateDirectory(rootTempPath);
string pkval = gwf.WorkID.ToString();
// 复制数据. // 复制数据.
foreach (DataRow dr in dt.Rows) foreach (DataRow dr in dt.Rows)
{ {
@ -9485,6 +9491,7 @@ namespace BP.WF
} }
catch (Exception ex) catch (Exception ex)
{ {
} }
} }
} }

Loading…
Cancel
Save