zhangkun лет назад: 5
Родитель
Сommit
1eba95fde8

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

44
             catch (Exception ex)
44
             catch (Exception ex)
45
             {
45
             {
46
                 string aa = ex.Message;
46
                 string aa = ex.Message;
47
-                return "-"+ret;
47
+                return ret + "-----------</br>"+ aa;
48
             }
48
             }
49
             return ret;
49
             return ret;
50
 
50
 
51
         }
51
         }
52
 
52
 
53
         [HttpGet]
53
         [HttpGet]
54
-        public int Data1(int id)
54
+        public string Data1(int id)
55
         {
55
         {
56
             int ret = 0;
56
             int ret = 0;
57
             if (id > 1000)
57
             if (id > 1000)
70
             }
70
             }
71
             catch(Exception ex) {
71
             catch(Exception ex) {
72
                 string aa = ex.Message;
72
                 string aa = ex.Message;
73
-                return -ret; }
74
-            return ret;
73
+                return ret + "-----------</br>" + aa;
74
+            }
75
+            return ret.ToString();
75
 
76
 
76
         }
77
         }
77
 
78
 
78
         [HttpGet]
79
         [HttpGet]
79
-        public int Data2(int id)
80
+        public string Data2(int id)
80
         {
81
         {
81
             int ret = 0;
82
             int ret = 0;
82
             if (id > 1000)
83
             if (id > 1000)
93
                     ret = ret + busSF_SHOUSHUXX.AddAll(modelList);
94
                     ret = ret + busSF_SHOUSHUXX.AddAll(modelList);
94
                 }
95
                 }
95
             }
96
             }
96
-            catch { return -ret; }
97
-            return ret;
97
+            catch (Exception ex) {
98
+                string aa = ex.Message;
99
+                return ret + "-----------</br>" + aa;
100
+            }
101
+            return ret.ToString();
98
 
102
 
99
         }
103
         }
100
 
104
 
101
         [HttpGet]
105
         [HttpGet]
102
-        public int Data3(int id)
106
+        public string Data3(int id)
103
         {
107
         {
104
             int ret = 0;
108
             int ret = 0;
105
             if (id > 1000)
109
             if (id > 1000)
116
                     ret = ret + busSF_YIHUXX.AddAll(modelList);
120
                     ret = ret + busSF_YIHUXX.AddAll(modelList);
117
                 }
121
                 }
118
             }
122
             }
119
-            catch { return -ret; }
120
-            return ret;
123
+            catch (Exception ex)
124
+            {
125
+                string aa = ex.Message;
126
+                return ret + "-----------</br>" + aa;
127
+            }
128
+            return ret.ToString();
121
 
129
 
122
         }
130
         }
123
 
131
 
124
         [HttpGet]
132
         [HttpGet]
125
-        public int Data4(int id)
133
+        public string Data4(int id)
126
         {
134
         {
127
             int ret = 0;
135
             int ret = 0;
128
             if (id > 1000)
136
             if (id > 1000)
139
                     ret = ret + busSF_ZHENDUAN.AddAll(modelList);
147
                     ret = ret + busSF_ZHENDUAN.AddAll(modelList);
140
                 }
148
                 }
141
             }
149
             }
142
-            catch { return -ret; }
143
-            return ret;
150
+            catch (Exception ex)
151
+            {
152
+                string aa = ex.Message;
153
+                return ret + "-----------</br>" + aa;
154
+            }
155
+            return ret.ToString();
144
 
156
 
145
         }
157
         }
146
         /// <summary>
158
         /// <summary>

+ 6 - 2
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/MedicalFollowup/FollowUpController.cs

43
             DataTable dt = new DataTable();
43
             DataTable dt = new DataTable();
44
 
44
 
45
             string dischargedept = HttpUtility.UrlDecode(RequestString.GetQueryString("dischargedept"));//出院科室
45
             string dischargedept = HttpUtility.UrlDecode(RequestString.GetQueryString("dischargedept"));//出院科室
46
-            string strstate = "0";// HttpUtility.UrlDecode(RequestString.GetQueryString("state"));//状态
46
+            string strstate =  HttpUtility.UrlDecode(RequestString.GetQueryString("state"));//状态
47
             string strcode = HttpUtility.UrlDecode(RequestString.GetQueryString("code"));//病案号
47
             string strcode = HttpUtility.UrlDecode(RequestString.GetQueryString("code"));//病案号
48
             string stropename = HttpUtility.UrlDecode(RequestString.GetQueryString("opename"));//手术名称
48
             string stropename = HttpUtility.UrlDecode(RequestString.GetQueryString("opename"));//手术名称
49
             //来电号码
49
             //来电号码
88
                 {
88
                 {
89
                     sql += " and T4.F_Id IS  NULL ";
89
                     sql += " and T4.F_Id IS  NULL ";
90
                 }
90
                 }
91
-               
91
+
92
+            }
93
+            else
94
+            {
95
+                sql += " and T4.F_Id IS  NULL ";
92
             }
96
             }
93
             if (strcode.Trim() != "" && strcode != "undefined")
97
             if (strcode.Trim() != "" && strcode != "undefined")
94
             {
98
             {