ソースを参照

添加hangfire

zhangkun 5 年 前
コミット
d9a8fb6650

+ 4 - 0
codegit/CallCenterApi/CallCenterApi.DAL/his/o_sf_bingrenqk.cs

243
                 {
243
                 {
244
                     model.ZFJE = row["ZFJE"].ToString();
244
                     model.ZFJE = row["ZFJE"].ToString();
245
                 }
245
                 }
246
+                if (row["LRRQ"] != null)
247
+                {
248
+                    model.LRRQ = row["LRRQ"].ToString();
249
+                }
246
             }
250
             }
247
             return model;
251
             return model;
248
         }
252
         }

+ 12 - 5
codegit/CallCenterApi/CallCenterApi.DAL/his/sf_bingrenqk.cs

148
             {
148
             {
149
                 StringBuilder strSql = new StringBuilder();
149
                 StringBuilder strSql = new StringBuilder();
150
                 strSql.Append("insert into SF_BINGRENQK(");
150
                 strSql.Append("insert into SF_BINGRENQK(");
151
-                strSql.Append("BAH,BINGRENZYID,BRXH,ZYCS,RYRQ,CYRQ,BRXM,XB,CSRQ,NL,NLR,GJ,HY,SFZH,HKDZ,HKDZYB,XZZ,XZZDH,XZZYB,GZDW,DWDH,DWYB,GXRXM,GX,GXRZZ,GXRDH,RYQK,RYKS,RYBS,ZKKB,CYKS,CYBS,ZYTS,RYQZRQ,KZRBH,KZRXM,ZRYSBH,ZRYSXM,ZZYSBH,ZZYSXM,ZYYSBH,ZYYSXM,ZRHSBH,ZRHSXM,LYFS,FFFS,ZFY,ZFJE)");
151
+                strSql.Append("BAH,BINGRENZYID,BRXH,ZYCS,RYRQ,CYRQ,BRXM,XB,CSRQ,NL,NLR,GJ,HY,SFZH,HKDZ,HKDZYB,XZZ,XZZDH,XZZYB,GZDW,DWDH,DWYB,GXRXM,GX,GXRZZ,GXRDH,RYQK,RYKS,RYBS,ZKKB,CYKS,CYBS,ZYTS,RYQZRQ,KZRBH,KZRXM,ZRYSBH,ZRYSXM,ZZYSBH,ZZYSXM,ZYYSBH,ZYYSXM,ZRHSBH,ZRHSXM,LYFS,FFFS,ZFY,ZFJE,LRRQ)");
152
                 strSql.Append(" values (");
152
                 strSql.Append(" values (");
153
-                strSql.Append("@BAH,@BINGRENZYID,@BRXH,@ZYCS,@RYRQ,@CYRQ,@BRXM,@XB,@CSRQ,@NL,@NLR,@GJ,@HY,@SFZH,@HKDZ,@HKDZYB,@XZZ,@XZZDH,@XZZYB,@GZDW,@DWDH,@DWYB,@GXRXM,@GX,@GXRZZ,@GXRDH,@RYQK,@RYKS,@RYBS,@ZKKB,@CYKS,@CYBS,@ZYTS,@RYQZRQ,@KZRBH,@KZRXM,@ZRYSBH,@ZRYSXM,@ZZYSBH,@ZZYSXM,@ZYYSBH,@ZYYSXM,@ZRHSBH,@ZRHSXM,@LYFS,@FFFS,@ZFY,@ZFJE)");
153
+                strSql.Append("@BAH,@BINGRENZYID,@BRXH,@ZYCS,@RYRQ,@CYRQ,@BRXM,@XB,@CSRQ,@NL,@NLR,@GJ,@HY,@SFZH,@HKDZ,@HKDZYB,@XZZ,@XZZDH,@XZZYB,@GZDW,@DWDH,@DWYB,@GXRXM,@GX,@GXRZZ,@GXRDH,@RYQK,@RYKS,@RYBS,@ZKKB,@CYKS,@CYBS,@ZYTS,@RYQZRQ,@KZRBH,@KZRXM,@ZRYSBH,@ZRYSXM,@ZZYSBH,@ZZYSXM,@ZYYSBH,@ZYYSXM,@ZRHSBH,@ZRHSXM,@LYFS,@FFFS,@ZFY,@ZFJE,@LRRQ)");
154
                 SqlParameter[] parameters = {
154
                 SqlParameter[] parameters = {
155
                     new SqlParameter("@BAH", SqlDbType.NVarChar,100),
155
                     new SqlParameter("@BAH", SqlDbType.NVarChar,100),
156
                     new SqlParameter("@BINGRENZYID", SqlDbType.NVarChar,100),
156
                     new SqlParameter("@BINGRENZYID", SqlDbType.NVarChar,100),
199
                     new SqlParameter("@LYFS", SqlDbType.NVarChar,100),
199
                     new SqlParameter("@LYFS", SqlDbType.NVarChar,100),
200
                     new SqlParameter("@FFFS", SqlDbType.NVarChar,100),
200
                     new SqlParameter("@FFFS", SqlDbType.NVarChar,100),
201
                     new SqlParameter("@ZFY", SqlDbType.NVarChar,100),
201
                     new SqlParameter("@ZFY", SqlDbType.NVarChar,100),
202
-                    new SqlParameter("@ZFJE", SqlDbType.NVarChar,100)};
202
+                    new SqlParameter("@ZFJE", SqlDbType.NVarChar,100),
203
+                    new SqlParameter("@LRRQ", SqlDbType.NVarChar,100)
204
+                };
203
                 parameters[0].Value = model.BAH;
205
                 parameters[0].Value = model.BAH;
204
                 parameters[1].Value = model.BINGRENZYID;
206
                 parameters[1].Value = model.BINGRENZYID;
205
                 parameters[2].Value = model.BRXH;
207
                 parameters[2].Value = model.BRXH;
248
                 parameters[45].Value = model.FFFS;
250
                 parameters[45].Value = model.FFFS;
249
                 parameters[46].Value = model.ZFY;
251
                 parameters[46].Value = model.ZFY;
250
                 parameters[47].Value = model.ZFJE;
252
                 parameters[47].Value = model.ZFJE;
253
+                parameters[48].Value = model.LRRQ;
251
                 CommandInfo md=new CommandInfo(strSql.ToString(), parameters);
254
                 CommandInfo md=new CommandInfo(strSql.ToString(), parameters);
252
                 ha.Add(md);
255
                 ha.Add(md);
253
             }
256
             }
452
 		{
455
 		{
453
 			//该表无主键信息,请自定义主键/条件字段
456
 			//该表无主键信息,请自定义主键/条件字段
454
 			StringBuilder strSql=new StringBuilder();
457
 			StringBuilder strSql=new StringBuilder();
455
-			strSql.Append("select  top 1 BAH,BINGRENZYID,BRXH,ZYCS,RYRQ,CYRQ,BRXM,XB,CSRQ,NL,NLR,GJ,HY,SFZH,HKDZ,HKDZYB,XZZ,XZZDH,XZZYB,GZDW,DWDH,DWYB,GXRXM,GX,GXRZZ,GXRDH,RYQK,RYKS,RYBS,ZKKB,CYKS,CYBS,ZYTS,RYQZRQ,KZRBH,KZRXM,ZRYSBH,ZRYSXM,ZZYSBH,ZZYSXM,ZYYSBH,ZYYSXM,ZRHSBH,ZRHSXM,LYFS,FFFS,ZFY,ZFJE from SF_BINGRENQK ");
458
+			strSql.Append("select  top 1 BAH,BINGRENZYID,BRXH,ZYCS,RYRQ,CYRQ,BRXM,XB,CSRQ,NL,NLR,GJ,HY,SFZH,HKDZ,HKDZYB,XZZ,XZZDH,XZZYB,GZDW,DWDH,DWYB,GXRXM,GX,GXRZZ,GXRDH,RYQK,RYKS,RYBS,ZKKB,CYKS,CYBS,ZYTS,RYQZRQ,KZRBH,KZRXM,ZRYSBH,ZRYSXM,ZZYSBH,ZZYSXM,ZYYSBH,ZYYSXM,ZRHSBH,ZRHSXM,LYFS,FFFS,ZFY,ZFJE,LRRQ from SF_BINGRENQK ");
456
 			strSql.Append(" where ");
459
 			strSql.Append(" where ");
457
             strSql.Append(" BINGRENZYID=@id ");
460
             strSql.Append(" BINGRENZYID=@id ");
458
             SqlParameter[] parameters = { new SqlParameter("@id", id)
461
             SqlParameter[] parameters = { new SqlParameter("@id", id)
671
 				{
674
 				{
672
 					model.ZFJE=row["ZFJE"].ToString();
675
 					model.ZFJE=row["ZFJE"].ToString();
673
 				}
676
 				}
674
-			}
677
+                if (row["LRRQ"] != null)
678
+                {
679
+                    model.LRRQ = row["LRRQ"].ToString();
680
+                }
681
+            }
675
 			return model;
682
 			return model;
676
 		}
683
 		}
677
 
684
 

+ 29 - 4
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/CallCenterApi.Interface.csproj

16
     <RootNamespace>CallCenterApi.Interface</RootNamespace>
16
     <RootNamespace>CallCenterApi.Interface</RootNamespace>
17
     <AssemblyName>CallCenterApi.Interface</AssemblyName>
17
     <AssemblyName>CallCenterApi.Interface</AssemblyName>
18
     <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
18
     <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
19
-    <UseIISExpress>true</UseIISExpress>
19
+    <UseIISExpress>false</UseIISExpress>
20
     <IISExpressSSLPort />
20
     <IISExpressSSLPort />
21
     <IISExpressAnonymousAuthentication />
21
     <IISExpressAnonymousAuthentication />
22
     <IISExpressWindowsAuthentication />
22
     <IISExpressWindowsAuthentication />
45
     <WarningLevel>4</WarningLevel>
45
     <WarningLevel>4</WarningLevel>
46
   </PropertyGroup>
46
   </PropertyGroup>
47
   <ItemGroup>
47
   <ItemGroup>
48
+    <Reference Include="Hangfire.Core, Version=1.7.18.0, Culture=neutral, processorArchitecture=MSIL">
49
+      <HintPath>..\..\..\packages\Hangfire.Core.1.7.18\lib\net45\Hangfire.Core.dll</HintPath>
50
+    </Reference>
51
+    <Reference Include="Hangfire.SqlServer, Version=1.7.18.0, Culture=neutral, processorArchitecture=MSIL">
52
+      <HintPath>..\..\..\packages\Hangfire.SqlServer.1.7.18\lib\net45\Hangfire.SqlServer.dll</HintPath>
53
+    </Reference>
48
     <Reference Include="ICSharpCode.SharpZipLib">
54
     <Reference Include="ICSharpCode.SharpZipLib">
49
       <HintPath>..\..\..\packages\SharpZipLib.0.86.0\lib\20\ICSharpCode.SharpZipLib.dll</HintPath>
55
       <HintPath>..\..\..\packages\SharpZipLib.0.86.0\lib\20\ICSharpCode.SharpZipLib.dll</HintPath>
50
     </Reference>
56
     </Reference>
81
       <Private>True</Private>
87
       <Private>True</Private>
82
     </Reference>
88
     </Reference>
83
     <Reference Include="Microsoft.CSharp" />
89
     <Reference Include="Microsoft.CSharp" />
84
-    <Reference Include="Newtonsoft.Json, Version=10.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
85
-      <HintPath>..\..\..\packages\Newtonsoft.Json.10.0.2\lib\net45\Newtonsoft.Json.dll</HintPath>
90
+    <Reference Include="Microsoft.Owin, Version=4.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
91
+      <HintPath>..\..\..\packages\Microsoft.Owin.4.1.1\lib\net45\Microsoft.Owin.dll</HintPath>
92
+    </Reference>
93
+    <Reference Include="Microsoft.Owin.Host.SystemWeb, Version=4.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
94
+      <HintPath>..\..\..\packages\Microsoft.Owin.Host.SystemWeb.4.1.1\lib\net45\Microsoft.Owin.Host.SystemWeb.dll</HintPath>
95
+    </Reference>
96
+    <Reference Include="Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
97
+      <HintPath>..\..\..\packages\Newtonsoft.Json.11.0.2\lib\net45\Newtonsoft.Json.dll</HintPath>
86
     </Reference>
98
     </Reference>
87
     <Reference Include="NPOI, Version=2.3.0.0, Culture=neutral, PublicKeyToken=0df73ec7942b34e1, processorArchitecture=MSIL">
99
     <Reference Include="NPOI, Version=2.3.0.0, Culture=neutral, PublicKeyToken=0df73ec7942b34e1, processorArchitecture=MSIL">
88
       <SpecificVersion>False</SpecificVersion>
100
       <SpecificVersion>False</SpecificVersion>
100
       <SpecificVersion>False</SpecificVersion>
112
       <SpecificVersion>False</SpecificVersion>
101
       <HintPath>..\..\..\packages\NPOI.2.3.0\lib\net40\NPOI.OpenXmlFormats.dll</HintPath>
113
       <HintPath>..\..\..\packages\NPOI.2.3.0\lib\net40\NPOI.OpenXmlFormats.dll</HintPath>
102
     </Reference>
114
     </Reference>
115
+    <Reference Include="Owin, Version=1.0.0.0, Culture=neutral, PublicKeyToken=f0ebd12fd5e55cc5, processorArchitecture=MSIL">
116
+      <HintPath>..\..\..\packages\Owin.1.0\lib\net40\Owin.dll</HintPath>
117
+    </Reference>
103
     <Reference Include="Senparc.Weixin, Version=4.12.3.31913, Culture=neutral, processorArchitecture=MSIL">
118
     <Reference Include="Senparc.Weixin, Version=4.12.3.31913, Culture=neutral, processorArchitecture=MSIL">
104
       <SpecificVersion>False</SpecificVersion>
119
       <SpecificVersion>False</SpecificVersion>
105
       <HintPath>Lib\Senparc.Weixin.dll</HintPath>
120
       <HintPath>Lib\Senparc.Weixin.dll</HintPath>
307
     <Compile Include="Models\Input\UserAccountInput.cs" />
322
     <Compile Include="Models\Input\UserAccountInput.cs" />
308
     <Compile Include="Models\Input\WoBillInput.cs" />
323
     <Compile Include="Models\Input\WoBillInput.cs" />
309
     <Compile Include="Properties\AssemblyInfo.cs" />
324
     <Compile Include="Properties\AssemblyInfo.cs" />
325
+    <Compile Include="Startup.cs" />
310
   </ItemGroup>
326
   </ItemGroup>
311
   <ItemGroup>
327
   <ItemGroup>
312
     <Content Include="Views\web.config" />
328
     <Content Include="Views\web.config" />
475
     <VisualStudio>
491
     <VisualStudio>
476
       <FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
492
       <FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
477
         <WebProjectProperties>
493
         <WebProjectProperties>
478
-          <SaveServerSettingsInUserFile>True</SaveServerSettingsInUserFile>
494
+          <UseIIS>True</UseIIS>
495
+          <AutoAssignPort>True</AutoAssignPort>
496
+          <DevelopmentServerPort>63662</DevelopmentServerPort>
497
+          <DevelopmentServerVPath>/</DevelopmentServerVPath>
498
+          <IISUrl>http://api.dancheng.test/</IISUrl>
499
+          <NTLMAuthentication>False</NTLMAuthentication>
500
+          <UseCustomServer>False</UseCustomServer>
501
+          <CustomServerUrl>
502
+          </CustomServerUrl>
503
+          <SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile>
479
         </WebProjectProperties>
504
         </WebProjectProperties>
480
       </FlavorProperties>
505
       </FlavorProperties>
481
     </VisualStudio>
506
     </VisualStudio>

+ 25 - 6
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/His/GetController.cs

161
         /// <returns></returns>
161
         /// <returns></returns>
162
         public ActionResult sf_bingrenqk(string key)
162
         public ActionResult sf_bingrenqk(string key)
163
         {
163
         {
164
-            BLL.O_SF_BINGRENQK busSF_BINGRENQK = new BLL.O_SF_BINGRENQK();
165
-            string strWhere = " BAH='{0}' ";
166
-            Model.O_SF_BINGRENQK model = busSF_BINGRENQK.GetModel(strWhere);
164
+            string strWhere = string.Format(" BINGRENZYID='{0}' ", key);
165
+            Model.O_SF_BINGRENQK model = busO_SF_BINGRENQK.GetModel(strWhere);
167
             return Success("成功", model);
166
             return Success("成功", model);
168
         }
167
         }
169
         /// <summary>
168
         /// <summary>
172
         /// <returns></returns>
171
         /// <returns></returns>
173
         public ActionResult sf_shoushuxx(string key)
172
         public ActionResult sf_shoushuxx(string key)
174
         {
173
         {
175
-            BLL.O_SF_SHOUSHUXX busSF_SHOUSHUXX = new BLL.O_SF_SHOUSHUXX();
176
-            string strWhere = " BINGRENZYID='{0}' ";
177
-            Model.O_SF_SHOUSHUXX model = busSF_SHOUSHUXX.GetModel(strWhere);
174
+            string strWhere = string.Format(" BINGRENZYID='{0}' ",key);
175
+            Model.O_SF_SHOUSHUXX model = busO_SF_SHOUSHUXX.GetModel(strWhere);
178
             return Success("成功", model);
176
             return Success("成功", model);
179
         }
177
         }
178
+        /// <summary>
179
+        /// 手术信息  通过住院ID
180
+        /// </summary>
181
+        /// <returns></returns>
182
+        public ActionResult sf_yihuxx(string key)
183
+        {
184
+            string strWhere = string.Format(" ZHIGONGID='{0}' ", key);
185
+            Model.O_SF_YIHUXX model = busO_SF_YIHUXX.GetModel(strWhere);
186
+            return Success("成功", model);
187
+        }
188
+        /// <summary>
189
+        /// 诊断信息  通过住院ID
190
+        /// </summary>
191
+        /// <returns></returns>
192
+        public ActionResult sf_zhenduan(string key)
193
+        {
194
+            string strWhere = string.Format(" BINGRENZYID='{0}' ", key);
195
+            Model.O_SF_ZHENDUAN model = busO_SF_ZHENDUAN.GetModel(strWhere);
196
+            return Success("成功", model);
197
+        }
198
+
180
 
199
 
181
     }
200
     }
182
 }
201
 }

+ 23 - 7
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/MedicalFollowup/FollowUpController.cs

62
             string strtime = "";// HttpUtility.UrlDecode(RequestString.GetQueryString("sftime"));
62
             string strtime = "";// HttpUtility.UrlDecode(RequestString.GetQueryString("sftime"));
63
             //仅包含随访结束的
63
             //仅包含随访结束的
64
             string strsfend = "";// HttpUtility.UrlDecode(RequestString.GetQueryString("sfend"));
64
             string strsfend = "";// HttpUtility.UrlDecode(RequestString.GetQueryString("sfend"));
65
+
66
+            string strResult = "";// HttpUtility.UrlDecode(RequestString.GetQueryString("sresult"));
65
             //仅二级随访未完成
67
             //仅二级随访未完成
66
             string strejwwc = "";//HttpUtility.UrlDecode(RequestString.GetQueryString("secondlevel"));
68
             string strejwwc = "";//HttpUtility.UrlDecode(RequestString.GetQueryString("secondlevel"));
67
             //满意度
69
             //满意度
82
             {
84
             {
83
                 if (strstate == "2")
85
                 if (strstate == "2")
84
                 {
86
                 {
85
-                    sql += " and T4.F_Id IS NOT NULL ";
87
+                    sql += " and T4.F_Id IS NOT NULL and T4.F_Result='正常接通'";
86
                 }
88
                 }
87
-                else if (strstate == "0")
89
+                else if (strstate == "1")
88
                 {
90
                 {
89
                     sql += " and T4.F_Id IS  NULL ";
91
                     sql += " and T4.F_Id IS  NULL ";
90
                 }
92
                 }
93
+                else if (strstate == "3")
94
+                {
95
+                    sql += " and T4.F_Id IS NOT NULL and T4.F_Result!='正常接通' ";
96
+                }
91
 
97
 
92
             }
98
             }
93
             else
99
             else
231
             /// 获取随访列表
237
             /// 获取随访列表
232
             /// </summary>
238
             /// </summary>
233
             /// <returns></returns>
239
             /// <returns></returns>
234
-            public ActionResult GetListAllOld()
240
+        public ActionResult GetListAllOld()
235
         {
241
         {
236
             string sql = " and F_IsDel=0 ";
242
             string sql = " and F_IsDel=0 ";
237
             DataTable dt = new DataTable();
243
             DataTable dt = new DataTable();
393
         {
399
         {
394
             taskid = 0;
400
             taskid = 0;
395
             int cc = 0;
401
             int cc = 0;
402
+            var hjconfig = new BLL.T_Sys_DictionaryValue().GetModel(hjjgid);
403
+
404
+            if (hjconfig == null)
405
+            {
406
+                return Error("提交结果配置不正常");
407
+            }
408
+
396
             if (custelid > 0)
409
             if (custelid > 0)
397
             {
410
             {
398
                 var otnModel = busSF_BINGRENQK.GetModel(custelid.ToString());
411
                 var otnModel = busSF_BINGRENQK.GetModel(custelid.ToString());
473
                         modelResult.F_SFNum = 1;
486
                         modelResult.F_SFNum = 1;
474
                     }
487
                     }
475
 
488
 
476
-                   var hjconfig = new BLL.T_Sys_DictionaryValue().GetModel(hjjgid);
477
-                    if (hjconfig != null)
478
-                        modelResult.F_Result  = hjconfig.F_Name;
489
+
490
+                    modelResult.F_Result = hjconfig.F_Name;
479
                     modelResult.F_Id = custelid.ToString();
491
                     modelResult.F_Id = custelid.ToString();
480
                     modelResult.F_SFPersion = CurrentUser.UserData.F_UserName;
492
                     modelResult.F_SFPersion = CurrentUser.UserData.F_UserName;
481
                     modelResult.F_SFPersionId= CurrentUser.UserData.F_UserCode;
493
                     modelResult.F_SFPersionId= CurrentUser.UserData.F_UserCode;
504
                     return Error("问卷答案提交失败!custelid=" + custelid + ",操作人:" + CurrentUser.UserData.F_UserCode);
516
                     return Error("问卷答案提交失败!custelid=" + custelid + ",操作人:" + CurrentUser.UserData.F_UserCode);
505
                 }
517
                 }
506
             }
518
             }
507
-            else
519
+            else if (hjconfig.F_Name.Contains ("正常"))
508
             {
520
             {
509
                 return Error("没有问卷答案提交");
521
                 return Error("没有问卷答案提交");
510
             }
522
             }
523
+            else
524
+            {
525
+                return Success("提交成功!custelid=" + custelid + ",操作人:" + CurrentUser.UserData.F_UserCode);
526
+            }
511
 
527
 
512
         }
528
         }
513
         #endregion
529
         #endregion

+ 38 - 0
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Startup.cs

1
+using System;
2
+using System.Threading.Tasks;
3
+using Microsoft.Owin;
4
+using Owin;
5
+using Hangfire;
6
+using CallCenterApi.Interface.Controllers.His;
7
+using System.Collections.Generic;
8
+using Hangfire.Dashboard;
9
+using Hangfire.Annotations;
10
+
11
+[assembly: OwinStartup(typeof(CallCenterApi.Interface.Startup))]
12
+
13
+namespace CallCenterApi.Interface
14
+{
15
+    public class Startup
16
+    {
17
+        public void Configuration(IAppBuilder app)
18
+        {
19
+            GlobalConfiguration.Configuration.UseSqlServerStorage("ConnectionString");
20
+            app.UseHangfireDashboard("/hangfire", new DashboardOptions()
21
+            {
22
+                Authorization = new[] { new CustomAuthorizeFilter() }
23
+            });
24
+            app.UseHangfireServer();
25
+            RecurringJob.AddOrUpdate<GetController>(a => a.Data1(1), Cron.Hourly, TimeZoneInfo.Local,"updatedata1");
26
+            RecurringJob.AddOrUpdate<GetController>(a => a.Data2(1), Cron.Hourly, TimeZoneInfo.Local, "updatedata2");
27
+            RecurringJob.AddOrUpdate<GetController>(a => a.Data3(1), Cron.Hourly, TimeZoneInfo.Local, "updatedata3");
28
+            RecurringJob.AddOrUpdate<GetController>(a => a.Data4(1), Cron.Hourly, TimeZoneInfo.Local, "updatedata4");
29
+        }
30
+    }
31
+    public class CustomAuthorizeFilter : IDashboardAuthorizationFilter
32
+    {
33
+        public bool Authorize([NotNull] DashboardContext context)
34
+        {
35
+            return true;
36
+        }
37
+    }
38
+}

+ 30 - 31
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Web.config

5
   -->
5
   -->
6
 <configuration>
6
 <configuration>
7
   <appSettings>
7
   <appSettings>
8
-    <add key="webpages:Version" value="3.0.0.0"/>
9
-    <add key="webpages:Enabled" value="false"/>
10
-    <add key="ClientValidationEnabled" value="true"/>
11
-    <add key="UnobtrusiveJavaScriptEnabled" value="true"/>
12
-    <add key="DESKey" value="123456789"/>
8
+    <add key="webpages:Version" value="3.0.0.0" />
9
+    <add key="webpages:Enabled" value="false" />
10
+    <add key="ClientValidationEnabled" value="true" />
11
+    <add key="UnobtrusiveJavaScriptEnabled" value="true" />
12
+    <add key="DESKey" value="123456789" />
13
     <!--短信配置-->
13
     <!--短信配置-->
14
-    <add key="smsurl" value="http://api.1086sms.com/api/"/>
15
-    <add key="smsusername" value="zxzb"/>
16
-    <add key="smspassword" value="zxzb123"/>
17
-    <add key="smssign" value=""/>
14
+    <add key="smsurl" value="http://api.1086sms.com/api/" />
15
+    <add key="smsusername" value="zxzb" />
16
+    <add key="smspassword" value="zxzb123" />
17
+    <add key="smssign" value="" />
18
   </appSettings>
18
   </appSettings>
19
   <connectionStrings>
19
   <connectionStrings>
20
-    <add name="ConnectionString" connectionString="Data Source=192.168.4.18;User ID=sa;pwd=800100;Initial Catalog=CallCenter_Dancheng;"/>
21
-    <add name="oracleconn" connectionString="Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.8.3)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=orcl)));User Id=zhangkun;Password=123456;Pooling=true;Min Pool Size=1;Max Pool Size=255;"/>
20
+    <add name="ConnectionString" connectionString="Data Source=192.168.4.18;User ID=sa;pwd=800100;Initial Catalog=CallCenter_Dancheng;" />
21
+    <add name="oracleconn" connectionString="Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.8.3)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=orcl)));User Id=zhangkun;Password=123456;Pooling=true;Min Pool Size=1;Max Pool Size=255;" />
22
   </connectionStrings>
22
   </connectionStrings>
23
   <system.web>
23
   <system.web>
24
-    <compilation debug="true" targetFramework="4.5"/>
25
-    <httpRuntime targetFramework="4.5"/>
24
+    <compilation debug="true" targetFramework="4.5" />
25
+    <httpRuntime targetFramework="4.5" />
26
     <httpModules>
26
     <httpModules>
27
-      <add name="ApplicationInsightsWebTracking" type="Microsoft.ApplicationInsights.Web.ApplicationInsightsHttpModule, Microsoft.AI.Web"/>
27
+      <add name="ApplicationInsightsWebTracking" type="Microsoft.ApplicationInsights.Web.ApplicationInsightsHttpModule, Microsoft.AI.Web" />
28
     </httpModules>
28
     </httpModules>
29
 
29
 
30
     <authentication>
30
     <authentication>
31
-      <forms name=".MyCookie" cookieless="UseCookies" loginUrl="/Login/login" protection="All" timeout="60"/>
31
+      <forms name=".MyCookie" cookieless="UseCookies" loginUrl="/Login/login" protection="All" timeout="60" />
32
     </authentication>
32
     </authentication>
33
 
33
 
34
 
34
 
36
   <runtime>
36
   <runtime>
37
     <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
37
     <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
38
       <dependentAssembly>
38
       <dependentAssembly>
39
-        <assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35"/>
40
-        <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0"/>
39
+        <assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35" />
40
+        <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
41
       </dependentAssembly>
41
       </dependentAssembly>
42
       <dependentAssembly>
42
       <dependentAssembly>
43
-        <assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35"/>
44
-        <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0"/>
43
+        <assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35" />
44
+        <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
45
       </dependentAssembly>
45
       </dependentAssembly>
46
       <dependentAssembly>
46
       <dependentAssembly>
47
-        <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35"/>
48
-        <bindingRedirect oldVersion="1.0.0.0-5.2.3.0" newVersion="5.2.3.0"/>
47
+        <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
48
+        <bindingRedirect oldVersion="1.0.0.0-5.2.3.0" newVersion="5.2.3.0" />
49
+      </dependentAssembly>
50
+      <dependentAssembly>
51
+        <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
52
+        <bindingRedirect oldVersion="0.0.0.0-11.0.0.0" newVersion="11.0.0.0" />
49
       </dependentAssembly>
53
       </dependentAssembly>
50
     </assemblyBinding>
54
     </assemblyBinding>
51
   </runtime>
55
   </runtime>
52
   <system.codedom>
56
   <system.codedom>
53
     <compilers>
57
     <compilers>
54
-      <compiler language="c#;cs;csharp" extension=".cs"
55
-        type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
56
-        warningLevel="4" compilerOptions="/langversion:6 /nowarn:1659;1699;1701"/>
57
-      <compiler language="vb;vbs;visualbasic;vbscript" extension=".vb"
58
-        type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.VBCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
59
-        warningLevel="4" compilerOptions="/langversion:14 /nowarn:41008 /define:_MYTYPE=\&quot;Web\&quot; /optionInfer+"/>
58
+      <compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:6 /nowarn:1659;1699;1701" />
59
+      <compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.VBCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:14 /nowarn:41008 /define:_MYTYPE=\&quot;Web\&quot; /optionInfer+" />
60
     </compilers>
60
     </compilers>
61
   </system.codedom>
61
   </system.codedom>
62
   <system.webServer>
62
   <system.webServer>
70
       </customHeaders>
70
       </customHeaders>
71
     </httpProtocol>
71
     </httpProtocol>
72
     <!--cors 支持跨域 end-->
72
     <!--cors 支持跨域 end-->
73
-    <validation validateIntegratedModeConfiguration="false"/>
73
+    <validation validateIntegratedModeConfiguration="false" />
74
 
74
 
75
     <modules>
75
     <modules>
76
-      <remove name="ApplicationInsightsWebTracking"/>
77
-      <add name="ApplicationInsightsWebTracking" type="Microsoft.ApplicationInsights.Web.ApplicationInsightsHttpModule, Microsoft.AI.Web"
78
-        preCondition="managedHandler"/>
76
+      <remove name="ApplicationInsightsWebTracking" />
77
+      <add name="ApplicationInsightsWebTracking" type="Microsoft.ApplicationInsights.Web.ApplicationInsightsHttpModule, Microsoft.AI.Web" preCondition="managedHandler" />
79
     </modules>
78
     </modules>
80
   </system.webServer>
79
   </system.webServer>
81
 </configuration>
80
 </configuration>

BIN
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/bin/Newtonsoft.Json.dll


File diff suppressed because it is too large
+ 457 - 305
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/bin/Newtonsoft.Json.xml


BIN
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/obj/Release/Package/PackageTmp/bin/Newtonsoft.Json.dll


+ 6 - 0
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/obj/Release/Package/PackageTmp/packages.config

1
 <?xml version="1.0" encoding="utf-8"?>
1
 <?xml version="1.0" encoding="utf-8"?>
2
 <packages>
2
 <packages>
3
+  <package id="Hangfire.Core" version="1.7.18" targetFramework="net45" />
4
+  <package id="Hangfire.SqlServer" version="1.7.18" targetFramework="net45" />
3
   <package id="log4net" version="2.0.8" targetFramework="net45" />
5
   <package id="log4net" version="2.0.8" targetFramework="net45" />
4
   <package id="Microsoft.ApplicationInsights" version="2.2.0" targetFramework="net45" />
6
   <package id="Microsoft.ApplicationInsights" version="2.2.0" targetFramework="net45" />
5
   <package id="Microsoft.ApplicationInsights.Agent.Intercept" version="2.0.6" targetFramework="net45" />
7
   <package id="Microsoft.ApplicationInsights.Agent.Intercept" version="2.0.6" targetFramework="net45" />
16
   <package id="Microsoft.AspNet.WebPages.zh-Hans" version="3.2.3" targetFramework="net45" />
18
   <package id="Microsoft.AspNet.WebPages.zh-Hans" version="3.2.3" targetFramework="net45" />
17
   <package id="Microsoft.CodeDom.Providers.DotNetCompilerPlatform" version="1.0.0" targetFramework="net45" />
19
   <package id="Microsoft.CodeDom.Providers.DotNetCompilerPlatform" version="1.0.0" targetFramework="net45" />
18
   <package id="Microsoft.Net.Compilers" version="1.0.0" targetFramework="net45" developmentDependency="true" />
20
   <package id="Microsoft.Net.Compilers" version="1.0.0" targetFramework="net45" developmentDependency="true" />
21
+  <package id="Microsoft.Owin" version="4.1.1" targetFramework="net45" />
22
+  <package id="Microsoft.Owin.Host.SystemWeb" version="4.1.1" targetFramework="net45" />
19
   <package id="Microsoft.Web.Infrastructure" version="1.0.0.0" targetFramework="net45" />
23
   <package id="Microsoft.Web.Infrastructure" version="1.0.0.0" targetFramework="net45" />
24
+  <package id="Newtonsoft.Json" version="11.0.2" targetFramework="net45" />
25
+  <package id="Owin" version="1.0" targetFramework="net45" />
20
 </packages>
26
 </packages>

+ 6 - 0
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/packages.config

1
 <?xml version="1.0" encoding="utf-8"?>
1
 <?xml version="1.0" encoding="utf-8"?>
2
 <packages>
2
 <packages>
3
+  <package id="Hangfire.Core" version="1.7.18" targetFramework="net45" />
4
+  <package id="Hangfire.SqlServer" version="1.7.18" targetFramework="net45" />
3
   <package id="log4net" version="2.0.8" targetFramework="net45" />
5
   <package id="log4net" version="2.0.8" targetFramework="net45" />
4
   <package id="Microsoft.ApplicationInsights" version="2.2.0" targetFramework="net45" />
6
   <package id="Microsoft.ApplicationInsights" version="2.2.0" targetFramework="net45" />
5
   <package id="Microsoft.ApplicationInsights.Agent.Intercept" version="2.0.6" targetFramework="net45" />
7
   <package id="Microsoft.ApplicationInsights.Agent.Intercept" version="2.0.6" targetFramework="net45" />
16
   <package id="Microsoft.AspNet.WebPages.zh-Hans" version="3.2.3" targetFramework="net45" />
18
   <package id="Microsoft.AspNet.WebPages.zh-Hans" version="3.2.3" targetFramework="net45" />
17
   <package id="Microsoft.CodeDom.Providers.DotNetCompilerPlatform" version="1.0.0" targetFramework="net45" />
19
   <package id="Microsoft.CodeDom.Providers.DotNetCompilerPlatform" version="1.0.0" targetFramework="net45" />
18
   <package id="Microsoft.Net.Compilers" version="1.0.0" targetFramework="net45" developmentDependency="true" />
20
   <package id="Microsoft.Net.Compilers" version="1.0.0" targetFramework="net45" developmentDependency="true" />
21
+  <package id="Microsoft.Owin" version="4.1.1" targetFramework="net45" />
22
+  <package id="Microsoft.Owin.Host.SystemWeb" version="4.1.1" targetFramework="net45" />
19
   <package id="Microsoft.Web.Infrastructure" version="1.0.0.0" targetFramework="net45" />
23
   <package id="Microsoft.Web.Infrastructure" version="1.0.0.0" targetFramework="net45" />
24
+  <package id="Newtonsoft.Json" version="11.0.2" targetFramework="net45" />
25
+  <package id="Owin" version="1.0" targetFramework="net45" />
20
 </packages>
26
 </packages>

+ 11 - 0
codegit/CallCenterApi/CallCenterApi.Model/his/o_sf_bingrenqk.cs

58
         private string _fffs;
58
         private string _fffs;
59
         private string _zfy;
59
         private string _zfy;
60
         private string _zfje;
60
         private string _zfje;
61
+        private string _lrrq;
62
+
63
+
64
+        /// <summary>
65
+        /// 
66
+        /// </summary>
67
+        public string LRRQ
68
+        {
69
+            set { _lrrq = value; }
70
+            get { return _lrrq; }
71
+        }
61
         /// <summary>
72
         /// <summary>
62
         /// 
73
         /// 
63
         /// </summary>
74
         /// </summary>

+ 16 - 4
codegit/CallCenterApi/CallCenterApi.Model/his/sf_bingrenqk.cs

74
 		private string _fffs;
74
 		private string _fffs;
75
 		private string _zfy;
75
 		private string _zfy;
76
 		private string _zfje;
76
 		private string _zfje;
77
-		/// <summary>
78
-		/// 
79
-		/// </summary>
80
-		public string BAH
77
+        private string _lrrq;
78
+
79
+
80
+        /// <summary>
81
+        /// 
82
+        /// </summary>
83
+        public string LRRQ
84
+        {
85
+            set { _lrrq = value; }
86
+            get { return _lrrq; }
87
+        }
88
+
89
+        /// <summary>
90
+        /// 
91
+        /// </summary>
92
+        public string BAH
81
 		{
93
 		{
82
 			set{ _bah=value;}
94
 			set{ _bah=value;}
83
 			get{return _bah;}
95
 			get{return _bah;}