|
@@ -11,7 +11,6 @@ using System.Drawing;
|
|
|
using System.IO;
|
|
|
using System.Text;
|
|
|
using System.Threading;
|
|
|
-using System.Web.UI.WebControls;
|
|
|
using System.Windows.Forms;
|
|
|
using System.Xml;
|
|
|
|
|
@@ -39,6 +38,9 @@ namespace LisPacsDataUpload
|
|
|
private int zlhr = 0;// 是否为临生免
|
|
|
private int lisSource = 1;// 0中联老版lis 1 中联新版lis 2 专业版临生免 3 三方lis
|
|
|
private int open_multiple_upload_flag = 0;// 开启多个线程上传
|
|
|
+
|
|
|
+ string lis_upload_url = "http://40.26.204.3:8084/phimp-napi/qyhrlischeckreportinfo/save"; //lis 上传接口地址
|
|
|
+ string file_url = "http://40.26.204.3:8084/phimp-napi/attachMent/upload"; // 文件上传地址
|
|
|
private delegate void SetTextCallback(string text);
|
|
|
//在给textBox1.text赋值的地方调用以下方法即可
|
|
|
public Form1()
|
|
@@ -383,7 +385,7 @@ namespace LisPacsDataUpload
|
|
|
lock (LisLock)
|
|
|
{
|
|
|
string Thread_name = "[" + Thname.ToString() + "]";
|
|
|
- string url = "http://40.26.204.3:8084/phimp-napi/qyhrlischeckreportinfo/save";
|
|
|
+
|
|
|
#region 1、单条上传lis文件及数据
|
|
|
LogHelper.Info(Thread_name + "[LIS]开始");
|
|
|
string lis_sql = @"select * from( Select rownum rn,b.* From (Select t.* from lis_upload t
|
|
@@ -470,67 +472,6 @@ namespace LisPacsDataUpload
|
|
|
}
|
|
|
LogHelper.Info("生成pdf成功,地址为 = " );
|
|
|
}
|
|
|
- /*string orgName = dt.Rows[i]["orgName"].ToString();
|
|
|
- string name = dt.Rows[i]["patientName"].ToString();
|
|
|
- string sex = dt.Rows[i]["sex"].ToString();
|
|
|
- string ch = dt.Rows[i]["bedNo"].ToString();
|
|
|
- string zyh = dt.Rows[i]["zyh"].ToString();
|
|
|
- string mzh = dt.Rows[i]["mzh"].ToString();
|
|
|
- string age = dt.Rows[i]["age"].ToString();
|
|
|
- string dep = dt.Rows[i]["dep"].ToString();
|
|
|
- string type;
|
|
|
- string title = dt.Rows[i]["reportName"].ToString();
|
|
|
- string patientType = dt.Rows[i]["patientType"].ToString();
|
|
|
- if (patientType == "1")
|
|
|
- {
|
|
|
- type = "门诊";
|
|
|
- }
|
|
|
- else if (patientType == "2")
|
|
|
- {
|
|
|
- type = "住院";
|
|
|
- }
|
|
|
- else if (patientType == "3")
|
|
|
- {
|
|
|
- type = "体检";
|
|
|
- }
|
|
|
- else
|
|
|
- {
|
|
|
- type = "其他";
|
|
|
- }
|
|
|
- string baseInfo = "姓名:{0} 性别:{1} 年龄:{2} 病人来源:{3} 床号:{4} 住院号:{5} 门诊号:{6} 申请科室:{7}";
|
|
|
-
|
|
|
- string signature = "签名:{0} 日期:{1}";
|
|
|
- string qname = dt.Rows[i]["auditorName"].ToString();
|
|
|
- string qdate = dt.Rows[i]["auditTime"].ToString();
|
|
|
- signature = string.Format(signature, qname, qdate);
|
|
|
- baseInfo = string.Format(baseInfo, name, sex, age, type, ch, zyh, mzh, dep);
|
|
|
- string reportId = dt.Rows[i]["reportId"].ToString();
|
|
|
- string dt_sql = @"Select * From lis_upload_items t Where t.groupItemCode = '" + reportId+"'";
|
|
|
- LogHelper.Info("查询LIS项目指标数据执行sql:" + dt_sql);
|
|
|
- DataTable items = new DataTable();
|
|
|
- if (zlhr == zlhrConstant_true)
|
|
|
- {
|
|
|
- items = OracleHelper<object>.PgQueryDS(dt_sql);
|
|
|
- }
|
|
|
- else
|
|
|
- {
|
|
|
- items = OracleHelper<object>.RunQueryDS(dt_sql);
|
|
|
- }
|
|
|
- LogHelper.Info("查询LIS项目指标数据执行sql 条数=:" + items.Rows.Count);
|
|
|
- if (items.Rows.Count < 1)
|
|
|
- {
|
|
|
- LogHelper.Info("查询LIS项目指标数据为空,生成PDF失败,跳过本条数据生成下一条PDF。");
|
|
|
- continue;
|
|
|
- }
|
|
|
- string res = CreateLisPDF(orgName, baseInfo, items, signature, title);
|
|
|
- if (res == "")
|
|
|
- {
|
|
|
-
|
|
|
- ShowLog = "生成PDF文件失败,[LIS]上传失败!跳过本条数据上传下一条。";
|
|
|
- this.SetText(ShowLog);
|
|
|
- LogHelper.Info(ShowLog);
|
|
|
- continue;
|
|
|
- }*/
|
|
|
//是否授权
|
|
|
if (!isAuthorization())
|
|
|
{
|
|
@@ -554,8 +495,36 @@ namespace LisPacsDataUpload
|
|
|
string file_json = "{\"attachmentType\":\".pdf\",\"attachmentName\":\"检验报告\",\"businessType\":\"A001\",\"attachmentFile\":\"" + attachmentFile + "\"}";
|
|
|
string file_vi = Tools.GuidTo16String();
|
|
|
file_json = Tools.AESEncrypt(file_json, Tools.pwd, file_vi);
|
|
|
- string file_url = "http://40.26.204.3:8084/phimp-napi/attachMent/upload";
|
|
|
- string file_res = Tools.WSCenterData(file_url, file_json, file_vi, Tools.accessToken, 1);
|
|
|
+ //string file_url = "http://40.26.204.3:8084/phimp-napi/attachMent/upload";
|
|
|
+ //string file_res = Tools.WSCenterData(file_url, file_json, file_vi, Tools.accessToken, 1);
|
|
|
+ string file_res = string.Empty;
|
|
|
+ try
|
|
|
+ {
|
|
|
+ file_res = Tools.WSCenterData(file_url, file_json, file_vi, Tools.accessToken, 1);
|
|
|
+ }
|
|
|
+ catch (Exception e)
|
|
|
+ {
|
|
|
+
|
|
|
+ //写入后台表机构记录上传错误的数据
|
|
|
+
|
|
|
+ string errSql = @"Insert Into 互认报告上传异常记录(BUSINESSNUMBER,REPORTID,TYPE,ATTACHMENTID,REQUEST_DATA,IV,UPLOADED,UPLOADE_TIME) Values('{0}','{1}',2,'{2}',{3},{4},0,to_date('{5}','yyyy/mm/dd hh24:mi:ss'))";
|
|
|
+ errSql = string.Format(errSql, dt.Rows[i]["businessNumber"].ToString(), dt.Rows[i]["reportId"].ToString(), null, file_json, file_vi, DateTime.Now.ToString("yyyy/MM/dd HH:mm:ss"));
|
|
|
+ int err_count = 0;
|
|
|
+ if (zlhr == zlhrConstant_true)
|
|
|
+ {
|
|
|
+ LogHelper.Info("errSql:" + errSql);
|
|
|
+ err_count = OracleHelper<object>.PgExecuteNonQuery(errSql);
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ err_count = OracleHelper<object>.ExecuteNonQuery(errSql);
|
|
|
+ }
|
|
|
+ LogHelper.Info("写入后台表机构记录上传错误的数据" + err_count);
|
|
|
+ LogHelper.Info(e.Message);
|
|
|
+ continue;
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
string file_res_aes = Tools.AESDecrypt(file_res, Tools.pwd, file_vi);
|
|
|
ResFile resfile = Tools.JsonToObject<ResFile>(Tools.FormatStr(file_res_aes), Encoding.UTF8);
|
|
|
if (resfile.statusCode != "1")
|
|
@@ -725,13 +694,37 @@ namespace LisPacsDataUpload
|
|
|
continue;
|
|
|
}
|
|
|
string json_pacs = JsonConvert.SerializeObject(plist);
|
|
|
- LogHelper.Info("lis 上传的json>>"+ json_pacs);
|
|
|
-
|
|
|
json_pacs = "{\"mainBody\":" + json_pacs + "}";
|
|
|
string json_pacs_log = json_pacs;
|
|
|
string vi_pacs = Tools.GuidTo16String();
|
|
|
json_pacs = Tools.AESEncrypt(json_pacs, Tools.pwd, vi_pacs);
|
|
|
- string res_pacs = Tools.WSCenterData(url, json_pacs, vi_pacs, Tools.accessToken, 1);
|
|
|
+ string res_pacs = string.Empty;
|
|
|
+ try {
|
|
|
+ res_pacs = Tools.WSCenterData(lis_upload_url, json_pacs, vi_pacs, Tools.accessToken, 1);
|
|
|
+ }
|
|
|
+ catch (Exception e)
|
|
|
+ {
|
|
|
+
|
|
|
+ //写入后台表机构记录上传错误的数据
|
|
|
+
|
|
|
+ string errSql = @"Insert Into 互认报告上传异常记录(BUSINESSNUMBER,REPORTID,TYPE,ATTACHMENTID,REQUEST_DATA,IV,UPLOADED,UPLOADE_TIME) Values('{0}','{1}',2,'{2}',{3},{4},0,to_date('{5}','yyyy/mm/dd hh24:mi:ss'))";
|
|
|
+ errSql = string.Format(errSql, dt.Rows[i]["businessNumber"].ToString(), dt.Rows[i]["reportId"].ToString(), resfile.mainBody.attachmentId, json_pacs, vi_pacs, DateTime.Now.ToString("yyyy/MM/dd HH:mm:ss"));
|
|
|
+ int err_count = 0;
|
|
|
+ if (zlhr == zlhrConstant_true)
|
|
|
+ {
|
|
|
+ LogHelper.Info("errSql:" + errSql);
|
|
|
+ err_count = OracleHelper<object>.PgExecuteNonQuery(errSql);
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ err_count = OracleHelper<object>.ExecuteNonQuery(errSql);
|
|
|
+ }
|
|
|
+ LogHelper.Info("写入后台表机构记录上传错误的数据" + err_count);
|
|
|
+ LogHelper.Info( e.Message);
|
|
|
+ continue;
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
string res_aes_pacs = Tools.AESDecrypt(res_pacs, Tools.pwd, vi_pacs);
|
|
|
ResPacs respacs = Tools.JsonToObject<ResPacs>(Tools.FormatStr(res_aes_pacs), Encoding.UTF8);
|
|
|
LogHelper.Info("上传检验报告的接口状态==" + JsonConvert.SerializeObject(respacs));
|
|
@@ -928,7 +921,35 @@ namespace LisPacsDataUpload
|
|
|
string vi_pacs_pc = Tools.GuidTo16String();
|
|
|
json_pacs_pc = Tools.AESEncrypt(json_pacs_pc, Tools.pwd, vi_pacs_pc);
|
|
|
//string url_pacs = "http://40.26.204.3:8084/phimp-napi/qyhrlischeckreportinfo/save";
|
|
|
- string res_pacs_pc = Tools.WSCenterData(url, json_pacs_pc, vi_pacs_pc, Tools.accessToken, 1);
|
|
|
+ //string res_pacs_pc = Tools.WSCenterData(url, json_pacs_pc, vi_pacs_pc, Tools.accessToken, 1);
|
|
|
+
|
|
|
+ string res_pacs_pc = string.Empty;
|
|
|
+ try
|
|
|
+ {
|
|
|
+ res_pacs_pc = Tools.WSCenterData(lis_upload_url, json_pacs_pc, vi_pacs_pc, Tools.accessToken, 1);
|
|
|
+ }
|
|
|
+ catch (Exception e)
|
|
|
+ {
|
|
|
+ //写入后台表机构记录上传错误的数据
|
|
|
+
|
|
|
+ string errSql = @"Insert Into 互认报告上传异常记录(BUSINESSNUMBER,REPORTID,TYPE,ATTACHMENTID,REQUEST_DATA,IV,UPLOADED,UPLOADE_TIME) Values('{0}','{1}',2,'{2}',{3},{4},0,to_date('{5}','yyyy/mm/dd hh24:mi:ss'))";
|
|
|
+ errSql = string.Format(errSql, dt.Rows[i]["businessNumber"].ToString(), dt.Rows[i]["reportId"].ToString(), null, json_pacs_pc, vi_pacs_pc, DateTime.Now.ToString("yyyy/MM/dd HH:mm:ss"));
|
|
|
+ int err_count = 0;
|
|
|
+ if (zlhr == zlhrConstant_true)
|
|
|
+ {
|
|
|
+ LogHelper.Info("errSql:" + errSql);
|
|
|
+ err_count = OracleHelper<object>.PgExecuteNonQuery(errSql);
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ err_count = OracleHelper<object>.ExecuteNonQuery(errSql);
|
|
|
+ }
|
|
|
+ LogHelper.Info("写入后台表机构记录上传错误的数据" + err_count);
|
|
|
+ LogHelper.Info(e.Message);
|
|
|
+ continue;
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
string res_aes_pacs_pc = Tools.AESDecrypt(res_pacs_pc, Tools.pwd, vi_pacs_pc);
|
|
|
ResPacs respacs_pc = Tools.JsonToObject<ResPacs>(Tools.FormatStr(res_aes_pacs_pc), Encoding.UTF8);
|
|
|
if (respacs_pc.statusCode != "1")
|
|
@@ -1052,7 +1073,6 @@ namespace LisPacsDataUpload
|
|
|
lock (LisLock2)
|
|
|
{
|
|
|
string Thread_name = "[" + Thname.ToString() + "]";
|
|
|
- string url = "http://40.26.204.3:8084/phimp-napi/qyhrlischeckreportinfo/save";
|
|
|
#region 1、单条上传lis文件及数据
|
|
|
LogHelper.Info(Thread_name + "[LIS]开始");
|
|
|
string lis_sql = @"select * from( Select rownum rn,b.* From (Select t.* from lis_upload t
|
|
@@ -1143,74 +1163,12 @@ namespace LisPacsDataUpload
|
|
|
}
|
|
|
LogHelper.Info("生成pdf成功,地址为 = " + generatePdfUrl);
|
|
|
}
|
|
|
-
|
|
|
- /*string orgName = dt.Rows[i]["orgName"].ToString();
|
|
|
- string name = dt.Rows[i]["patientName"].ToString();
|
|
|
- string sex = dt.Rows[i]["sex"].ToString();
|
|
|
- string ch = dt.Rows[i]["bedNo"].ToString();
|
|
|
- string zyh = dt.Rows[i]["zyh"].ToString();
|
|
|
- string mzh = dt.Rows[i]["mzh"].ToString();
|
|
|
- string age = dt.Rows[i]["age"].ToString();
|
|
|
- string dep = dt.Rows[i]["dep"].ToString();
|
|
|
- string type;
|
|
|
- string title = dt.Rows[i]["reportName"].ToString();
|
|
|
- string patientType = dt.Rows[i]["patientType"].ToString();
|
|
|
-
|
|
|
- if (patientType == "1")
|
|
|
- {
|
|
|
- type = "门诊";
|
|
|
- }
|
|
|
- else if (patientType == "2")
|
|
|
- {
|
|
|
- type = "住院";
|
|
|
- }
|
|
|
- else if (patientType == "3")
|
|
|
- {
|
|
|
- type = "体检";
|
|
|
- }
|
|
|
- else
|
|
|
- {
|
|
|
- type = "其他";
|
|
|
- }
|
|
|
- string baseInfo = "姓名:{0} 性别:{1} 年龄:{2} 病人来源:{3} 床号:{4} 住院号:{5} 门诊号:{6} 申请科室:{7}";
|
|
|
-
|
|
|
- string signature = "签名:{0} 日期:{1}";
|
|
|
- string qname = dt.Rows[i]["auditorName"].ToString();
|
|
|
- string qdate = dt.Rows[i]["auditTime"].ToString();
|
|
|
- signature = string.Format(signature, qname, qdate);
|
|
|
- baseInfo = string.Format(baseInfo, name, sex, age, type, ch, zyh, mzh, dep);
|
|
|
- string reportId = dt.Rows[i]["reportId"].ToString();
|
|
|
- string dt_sql = @"Select * From lis_upload_items t Where t.groupItemCode = '" + reportId + "'";
|
|
|
- LogHelper.Info("thread2 项目指标执行sql:" + dt_sql);
|
|
|
- DataTable items = new DataTable();
|
|
|
- if (zlhr==zlhrConstant_true)
|
|
|
- {
|
|
|
- items = OracleHelper<object>.PgQueryDS(dt_sql);
|
|
|
- }
|
|
|
- else
|
|
|
- {
|
|
|
- items = OracleHelper<object>.RunQueryDS(dt_sql);
|
|
|
- }
|
|
|
- LogHelper.Info("thread2 项目指标执行sql 条数:" + items.Rows.Count);
|
|
|
- if (items.Rows.Count < 1)
|
|
|
- {
|
|
|
- LogHelper.Info("查询LIS项目指标数据为空,生成PDF失败,跳过本条数据生成下一条PDF。");
|
|
|
- continue;
|
|
|
- }
|
|
|
- string res = CreateLisPDF(orgName, baseInfo, items, signature, title);
|
|
|
- if (res == "")
|
|
|
- {
|
|
|
- ShowLog = "生成PDF文件失败,[LIS]上传失败!跳过本条数据上传下一条。";
|
|
|
- this.SetText(ShowLog);
|
|
|
- LogHelper.Info(ShowLog);
|
|
|
- continue;
|
|
|
- }*/
|
|
|
+
|
|
|
//是否授权
|
|
|
if (!isAuthorization())
|
|
|
{
|
|
|
continue;
|
|
|
}
|
|
|
- LogHelper.Info("thread2 最后GeneratePdfUrl= " + generatePdfUrl);
|
|
|
string attachmentFile = "";
|
|
|
if (zlhr == zlhrConstant_true)
|
|
|
{
|
|
@@ -1218,14 +1176,41 @@ namespace LisPacsDataUpload
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
+ LogHelper.Info("thread2 最后GeneratePdfUrl= " + generatePdfUrl);
|
|
|
attachmentFile = Tools.FileToBase64Str(generatePdfUrl);
|
|
|
}
|
|
|
//上传文件
|
|
|
string file_json = "{\"attachmentType\":\".pdf\",\"attachmentName\":\"检验报告\",\"businessType\":\"A001\",\"attachmentFile\":\"" + attachmentFile + "\"}";
|
|
|
string file_vi = Tools.GuidTo16String();
|
|
|
file_json = Tools.AESEncrypt(file_json, Tools.pwd, file_vi);
|
|
|
- string file_url = "http://40.26.204.3:8084/phimp-napi/attachMent/upload";
|
|
|
- string file_res = Tools.WSCenterData(file_url, file_json, file_vi, Tools.accessToken, 1);
|
|
|
+ // string file_url = "http://40.26.204.3:8084/phimp-napi/attachMent/upload";
|
|
|
+ //string file_res = Tools.WSCenterData(file_url, file_json, file_vi, Tools.accessToken, 1);
|
|
|
+ string file_res = string.Empty;
|
|
|
+ try
|
|
|
+ {
|
|
|
+ file_res = Tools.WSCenterData(file_url, file_json, file_vi, Tools.accessToken, 1);
|
|
|
+ }
|
|
|
+ catch (Exception e)
|
|
|
+ {
|
|
|
+ LogHelper.Info("写入后台表机构记录上传错误的数据");
|
|
|
+ //写入后台表机构记录上传错误的数据
|
|
|
+ string errSql = @"Insert Into 互认报告上传异常记录(BUSINESSNUMBER,REPORTID,TYPE,ATTACHMENTID,REQUEST_DATA,IV,UPLOADED,UPLOADE_TIME) Values('{0}','{1}',2,'{2}',{3},{4},0,to_date('{5}','yyyy/mm/dd hh24:mi:ss'))";
|
|
|
+ errSql = string.Format(errSql, dt.Rows[i]["businessNumber"].ToString(), dt.Rows[i]["reportId"].ToString(), null, file_json, file_vi, DateTime.Now.ToString("yyyy/MM/dd HH:mm:ss"));
|
|
|
+ int err_count = 0;
|
|
|
+ if (zlhr == zlhrConstant_true)
|
|
|
+ {
|
|
|
+ LogHelper.Info("errSql:" + errSql);
|
|
|
+ err_count = OracleHelper<object>.PgExecuteNonQuery(errSql);
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ err_count = OracleHelper<object>.ExecuteNonQuery(errSql);
|
|
|
+ }
|
|
|
+ LogHelper.Info("写入上传错误状态" + err_count);
|
|
|
+ LogHelper.Info(e.Message);
|
|
|
+ continue;
|
|
|
+
|
|
|
+ }
|
|
|
string file_res_aes = Tools.AESDecrypt(file_res, Tools.pwd, file_vi);
|
|
|
ResFile resfile = Tools.JsonToObject<ResFile>(Tools.FormatStr(file_res_aes), Encoding.UTF8);
|
|
|
if (resfile.statusCode != "1")
|
|
@@ -1398,7 +1383,33 @@ namespace LisPacsDataUpload
|
|
|
string json_pacs_log = json_pacs;
|
|
|
string vi_pacs = Tools.GuidTo16String();
|
|
|
json_pacs = Tools.AESEncrypt(json_pacs, Tools.pwd, vi_pacs);
|
|
|
- string res_pacs = Tools.WSCenterData(url, json_pacs, vi_pacs, Tools.accessToken, 1);
|
|
|
+ //string res_pacs = Tools.WSCenterData(url, json_pacs, vi_pacs, Tools.accessToken, 1);
|
|
|
+ string res_pacs = string.Empty;
|
|
|
+ try
|
|
|
+ {
|
|
|
+ file_res = Tools.WSCenterData(lis_upload_url, json_pacs, vi_pacs, Tools.accessToken, 1);
|
|
|
+ }
|
|
|
+ catch (Exception e)
|
|
|
+ {
|
|
|
+ //写入后台表机构记录上传错误的数据
|
|
|
+ LogHelper.Info("写入后台表机构记录上传错误的数据2");
|
|
|
+
|
|
|
+ string errSql = @"Insert Into 互认报告上传异常记录(BUSINESSNUMBER,REPORTID,TYPE,ATTACHMENTID,REQUEST_DATA,IV,UPLOADED,UPLOADE_TIME) Values('{0}','{1}',2,'{2}',{3},{4},0,to_date('{5}','yyyy/mm/dd hh24:mi:ss'))";
|
|
|
+ errSql = string.Format(errSql, dt.Rows[i]["businessNumber"].ToString(), dt.Rows[i]["reportId"].ToString(), resfile.mainBody.attachmentId, json_pacs, vi_pacs, DateTime.Now.ToString("yyyy/MM/dd HH:mm:ss"));
|
|
|
+ int err_count = 0;
|
|
|
+ if (zlhr == zlhrConstant_true)
|
|
|
+ {
|
|
|
+ LogHelper.Info("errSql:" + errSql);
|
|
|
+ err_count = OracleHelper<object>.PgExecuteNonQuery(errSql);
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ err_count = OracleHelper<object>.ExecuteNonQuery(errSql);
|
|
|
+ }
|
|
|
+ LogHelper.Info("写入数据" + err_count);
|
|
|
+ LogHelper.Info(e.Message);
|
|
|
+ continue;
|
|
|
+ }
|
|
|
string res_aes_pacs = Tools.AESDecrypt(res_pacs, Tools.pwd, vi_pacs);
|
|
|
ResPacs respacs = Tools.JsonToObject<ResPacs>(Tools.FormatStr(res_aes_pacs), Encoding.UTF8);
|
|
|
if (respacs.statusCode != "1")
|
|
@@ -1445,10 +1456,7 @@ namespace LisPacsDataUpload
|
|
|
LogHelper.Info(ShowLog);
|
|
|
GetLisDefault();
|
|
|
}
|
|
|
-
|
|
|
#endregion
|
|
|
-
|
|
|
-
|
|
|
}
|
|
|
|
|
|
}
|
|
@@ -1477,7 +1485,7 @@ namespace LisPacsDataUpload
|
|
|
Where t.attachmentId Is Null
|
|
|
Order By to_date(t.AUDITTIME,'yyyy-mm-dd hh24:mi:ss')
|
|
|
) b
|
|
|
- ) Where rn <= 100";
|
|
|
+ ) Where rn <= 150";
|
|
|
DataTable dt = OracleHelper<object>.RunQueryDS(sql_pdf);
|
|
|
if (dt.Rows.Count < 1)
|
|
|
{
|
|
@@ -1492,6 +1500,8 @@ namespace LisPacsDataUpload
|
|
|
|
|
|
for (int i = 0; i < dt.Rows.Count; i++)
|
|
|
{
|
|
|
+
|
|
|
+ //获取报告数据并生成报告 开始
|
|
|
string orgName = dt.Rows[i]["orgName"].ToString();
|
|
|
string name = dt.Rows[i]["patientName"].ToString();
|
|
|
string sex = dt.Rows[i]["sex"].ToString();
|
|
@@ -1534,6 +1544,8 @@ namespace LisPacsDataUpload
|
|
|
this.SetText(ShowLog);
|
|
|
continue;
|
|
|
}
|
|
|
+ //获取报告数据并生成报告 结束
|
|
|
+
|
|
|
//是否授权
|
|
|
if (!isAuthorization())
|
|
|
{
|