上产附件至IBPS

//导出为文件流(审批文件对接至网签系统)
//var settings = new Stimulsoft.Report.Export.StiPdfExportSettings();
//var service = new Stimulsoft.Report.Export.StiPdfExportService();
//MemoryStream stream = new MemoryStream();
//service.ExportPdf(repo, stream, settings);
//string uploadApi = Yatsoon.Common.Global.GetConfig().GetValue("IBPS.API.AnonymousUploadToOnlineAudit");
//Dictionary<string, string> formDataDic = new Dictionary<string, string>();
//string workCode = "";
//string workName = "";
//if (this.Worker != null)
//{
// workCode = this.Worker.Code;
// workName = this.Worker.Name;
//}
//string auditpath = Yatsoon.Common.Global.GetConfig().GetValue("IBPS.API.OnlineAuditFilePath");
//string otherData = "userCode=" + Server.UrlEncode(workCode) + "&sourceName=" + auditpath + "\\" + bh;
//string data = this.Create<Flower2.Service.Interface.Ref.IFileServiceImpl>().ImitateBrowserFileToService(stream, uploadApi, "application/pdf", bh + ".pdf", otherData);
//JavaScriptSerializer jsonSerialize = new JavaScriptSerializer();
//var obj = jsonSerialize.Deserialize<IBPS_Flow_Response>(data);
//if (obj.state != 200)
//{
// return this.Error("生成审签文件失败;失败原因:</br>" + obj.cause + "</br>请联系管理员!");
//}
//if (string.IsNullOrWhiteSpace(obj.data.id))
//{
// return this.Error("获取网上审签系统返回的文件信息失败:</br>请联系管理员!");
//}
//return this.Success(obj.data.id);

猜你喜欢

转载自www.cnblogs.com/fengyijun/p/10711416.html