Kaynağa Gözat

报表通讯录筛选项

duhongyu 5 yıl önce
ebeveyn
işleme
e6094c6f17
15 değiştirilmiş dosya ile 475 ekleme ve 117 silme
  1. 7 0
      codegit/CallCenterApi/CallCenterApi.BLL/T_Cus_AddressBook.cs
  2. 2 2
      codegit/CallCenterApi/CallCenterApi.DAL/T_Bus_WorkOrder.cs
  3. 13 1
      codegit/CallCenterApi/CallCenterApi.DAL/T_Cus_AddressBook.cs
  4. 6 4
      codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/AddressBookController.cs
  5. 91 1
      codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/ApplicationsVersionController.cs
  6. 71 0
      codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/EquipmentNumberController.cs
  7. 3 3
      codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/PushMessageController.cs
  8. 1 1
      codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/customer/CustomerController.cs
  9. 54 11
      codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/report/BusinessController.cs
  10. 37 3
      codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/workorder/WorkOrderController.cs
  11. 74 0
      codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/workorder/WorkTypeController.cs
  12. 5 4
      codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/workorder/WorkorderAppController.cs
  13. 4 0
      codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Models/Common/ButtonGroup.cs
  14. 24 6
      codegit/CallCenterCommon/CallCenter.Utility/NPOI/NPOIHelper.cs
  15. 83 81
      codegit/PushMessage/Program.cs

+ 7 - 0
codegit/CallCenterApi/CallCenterApi.BLL/T_Cus_AddressBook.cs

80
             return dal.GetList(strWhere);
80
             return dal.GetList(strWhere);
81
         }
81
         }
82
         /// <summary>
82
         /// <summary>
83
+        /// 获得数据列表
84
+        /// </summary>
85
+        public DataSet GetAPPList(string strWhere)
86
+        {
87
+            return dal.GetAPPList(strWhere);
88
+        }
89
+        /// <summary>
83
         /// 获得前几行数据
90
         /// 获得前几行数据
84
         /// </summary>
91
         /// </summary>
85
         public DataSet GetList(int Top, string strWhere, string filedOrder)
92
         public DataSet GetList(int Top, string strWhere, string filedOrder)

Dosya farkı çok büyük olduğundan ihmal edildi
+ 2 - 2
codegit/CallCenterApi/CallCenterApi.DAL/T_Bus_WorkOrder.cs


+ 13 - 1
codegit/CallCenterApi/CallCenterApi.DAL/T_Cus_AddressBook.cs

358
             }
358
             }
359
             return DbHelperSQL.Query(strSql.ToString());
359
             return DbHelperSQL.Query(strSql.ToString());
360
         }
360
         }
361
-
361
+        /// <summary>
362
+        /// 获得数据列表
363
+        /// </summary>
364
+        public DataSet GetAPPList(string strWhere)
365
+        {
366
+            StringBuilder strSql = new StringBuilder();
367
+            strSql.Append("select code=(dbo.GetPY(UPPER(substring(c.F_Name ,1,1)))),F_Position=(select F_RoleName from T_Sys_RoleInfo where F_RoleId = c.F_PositionId),F_Department = (select F_DeptName from T_Sys_Department where F_DeptId = c.F_DepartmentId),F_Area = (dbo.GetArea(c.F_DepartmentId)),F_Offce = (dbo.GetOffic(c.F_DepartmentId)),*from T_Cus_AddressBook c  ");
368
+            if (strWhere.Trim() != "")
369
+            {
370
+                strSql.Append(" where " + strWhere);
371
+            }
372
+            return DbHelperSQL.Query(strSql.ToString());
373
+        }
362
         /// <summary>
374
         /// <summary>
363
         /// 获得前几行数据
375
         /// 获得前几行数据
364
         /// </summary>
376
         /// </summary>

+ 6 - 4
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/AddressBookController.cs

280
 
280
 
281
                     sql += " and F_DepartmentId in ( select F_DeptId from T_Sys_Department where F_DeptCode like '" + deptModel.F_DeptCode + "%') ";
281
                     sql += " and F_DepartmentId in ( select F_DeptId from T_Sys_Department where F_DeptCode like '" + deptModel.F_DeptCode + "%') ";
282
                 }
282
                 }
283
-                var modelList = bll.GetModelList(sql);
284
-                List<AddressBook> Input = AddressBooks(modelList);
285
-                var modelListOrder = Input.OrderBy(x => x.F_Name);
286
-                return Content(modelListOrder.ToJson());
283
+                var modelList = bll.GetAPPList(sql+ " order by code asc").Tables[0];
284
+                //  List<AddressBook> Input = AddressBooks(modelList);
285
+                //  var modelListOrder = Input.OrderBy(x => x.F_Name);
286
+                return Content(modelList.ToJson());
287
             }
287
             }
288
             return NoToken("未知错误,请重新登录");
288
             return NoToken("未知错误,请重新登录");
289
         }
289
         }
290
+      
291
+       
290
         /// <summary>
292
         /// <summary>
291
         /// 获取一条详细信息 Id
293
         /// 获取一条详细信息 Id
292
         /// </summary>
294
         /// </summary>

+ 91 - 1
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/ApplicationsVersionController.cs

120
             }
120
             }
121
             return Error("获取失败");
121
             return Error("获取失败");
122
         }
122
         }
123
-        public ActionResult GetAndroid()
123
+        public ActionResult GetAndroid(int type=0)
124
         {
124
         {
125
             var configfj = new BLL.T_Sys_SystemConfig().GetModelList(" F_ParamCode='FileUrlPath' ").FirstOrDefault();
125
             var configfj = new BLL.T_Sys_SystemConfig().GetModelList(" F_ParamCode='FileUrlPath' ").FirstOrDefault();
126
             var model = new BLL.T_Sys_ApplicationsVersion().GetModelList("F_IsDelete=0 and F_Type=0 order by F_ID DESC ").FirstOrDefault();
126
             var model = new BLL.T_Sys_ApplicationsVersion().GetModelList("F_IsDelete=0 and F_Type=0 order by F_ID DESC ").FirstOrDefault();
259
         }
259
         }
260
         private BLL.T_Sys_UserAccount userBLL = new BLL.T_Sys_UserAccount();
260
         private BLL.T_Sys_UserAccount userBLL = new BLL.T_Sys_UserAccount();
261
         /// <summary>
261
         /// <summary>
262
+        /// 上传base64图片
263
+        /// </summary>
264
+        /// <returns></returns>
265
+        public ActionResult UploadBase64(string[] dataurl)
266
+        {
267
+
268
+            //  string stropenid = HttpUtility.UrlDecode(RequestString.GetFormString("openid"));
269
+            #region 保存文件到本地路径
270
+            //  DataTable FileUrl = new DataTable();
271
+            //    var configfj = new BLL.T_Sys_SystemConfig().GetModelList(" F_ParamCode='FileUrlPath' ").FirstOrDefault();
272
+        //    ActionResult res = NoToken("未知错误,请重新登录");
273
+          //  int userId = CurrentUser.UserData.F_UserId;
274
+          //  Model.T_Sys_UserAccount userModel = new BLL.T_Sys_UserAccount().GetModel(userId);
275
+            //string dataurl = HttpUtility.UrlDecode(RequestString.GetFormString("dataurl"));
276
+            //  string dataurl = RequestString.GetFormString("dataurl");
277
+            List<Model.T_Sys_Accessories> acs = new List<Model.T_Sys_Accessories>();
278
+            if (dataurl != null)
279
+            {
280
+                for (int i = 0; i < dataurl.Length; i++)
281
+                {
282
+                    //  string dataurl = RequestString.GetFormString("dataurl");
283
+                    string filename = DateTime.Now.ToString("yyyyMMddHHmmssfff") + i + ".jpg";
284
+                   
285
+                   
286
+                        if (!string.IsNullOrEmpty(dataurl[i ]))
287
+                        {
288
+                            string path = "/Upload/APP/" + DateTime.Now.ToString("yyyy") + "/" + DateTime.Now.ToString("MM") + "/" + DateTime.Now.ToString("dd") + "/";
289
+
290
+                            ImageUpload iu = new ImageUpload();
291
+                            iu.SavePath = path;
292
+                            iu.DataUrl = dataurl[i];
293
+                            if (!string.IsNullOrEmpty(filename))
294
+                            {
295
+                                iu.SaveType = 1;
296
+                                iu.InFileName = filename;
297
+                            }
298
+                            iu.Upload64();
299
+
300
+                            int n = iu.Error;
301
+                            if (n == 0)
302
+                            {
303
+                                path = path + iu.OutFileName;
304
+                                Model.T_Sys_Accessories model_T_Sys_Accessories = new Model.T_Sys_Accessories();
305
+                                model_T_Sys_Accessories.F_CreateTime = DateTime.Now;//上传时间
306
+                                model_T_Sys_Accessories.F_Name = iu.OutFileName;//附件名称
307
+                                model_T_Sys_Accessories.F_Type = ".jpg";//附件类型
308
+                                model_T_Sys_Accessories.F_Url = path;//附件地址
309
+                                model_T_Sys_Accessories.F_Size = iu.FileSize;
310
+                                //model_T_Sys_Accessories.F_UserCode = userModel.F_UserCode;//上传人  
311
+                                int id = new BLL.T_Sys_Accessories().Add(model_T_Sys_Accessories);
312
+                                #endregion
313
+                                model_T_Sys_Accessories.F_Id  = id;//修改为返回对象以便查看图片
314
+                                acs.Add(model_T_Sys_Accessories);
315
+                            }
316
+                            else
317
+                            {
318
+                                string msg = string.Empty;
319
+                                switch (n)
320
+                                {
321
+                                    case 1: msg = "请选择要上传的文件"; break;
322
+                                    case 2: msg = "上传的文件类型不支持"; break;
323
+                                    case 3: msg = "上传的文件过大"; break;
324
+                                    case 4: msg = "未知错误"; break;
325
+                                }
326
+                                return Error(msg);
327
+                            }
328
+                        }
329
+                        else
330
+                        {
331
+                            return Error("请选择要上传的文件");
332
+                        }
333
+                  
334
+                   
335
+                }
336
+
337
+                var obj = new
338
+                {
339
+                    state = "success",
340
+                    message = "成功",
341
+                    acs,
342
+                };
343
+                return Content(obj.ToJson());
344
+
345
+
346
+            }
347
+
348
+            return Error("请选择要上传的文件");
349
+
350
+        }
351
+        /// <summary>
262
         /// 上传附件
352
         /// 上传附件
263
         /// </summary>
353
         /// </summary>
264
         /// <returns></returns>
354
         /// <returns></returns>

+ 71 - 0
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/EquipmentNumberController.cs

60
             }
60
             }
61
             return NoToken("未知错误,请重新登录");
61
             return NoToken("未知错误,请重新登录");
62
         }
62
         }
63
+        public ActionResult GetEquipment()
64
+        {
65
+          
66
+
67
+                DataTable dt = new DataTable();
68
+                string where = "";
69
+                 where = " F_IsDelete=0 ";
70
+                dt = new BLL.T_Sys_EquipmentNumber().GetList(0, where, " F_ID desc").Tables[0];
71
+                List<Model.TreeModel> modelList = BindTree(dt, "0");
72
+               
73
+                if (modelList != null)
74
+                {
75
+                    if (modelList.Count > 0)
76
+                        return Success("加载成功", modelList);
77
+                }
78
+                return Error("加载失败");
79
+           
80
+        }
81
+        /// <summary>
82
+        /// tree  树形部门
83
+        /// </summary>
84
+        /// <param name="tab"></param>
85
+        /// <param name="parentid"></param>
86
+        /// <returns></returns>
87
+        private List<Model.TreeModel> BindTree(DataTable tab, string parentid, int pid = 0)
88
+        {
89
+            DataTable tab2 = new DataTable();
90
+            List<Model.TreeModel> modelList1 = new List<Model.TreeModel>();
91
+            Model.TreeModel mode = new Model.TreeModel();
92
+            string currentID = "0";//当前功能ID
93
+            mode.id = currentID;
94
+            mode.IconCls = "";//图标
95
+            mode.text = "双汇集团";
96
+            mode.children = BindEquipmentNumbeTree(tab, currentID, pid);
97
+            modelList1.Add(mode);
98
+            return modelList1;
99
+
100
+        }
101
+        private List<Model.TreeModel> BindEquipmentNumbeTree(DataTable tab, string parentid, int pid = 0)
102
+        {
103
+            DataTable tab2 = new DataTable();
104
+
105
+
106
+            List<Model.TreeModel> modelList = new List<Model.TreeModel>();
107
+            Model.TreeModel mode = new Model.TreeModel();
108
+            mode.id = "0";
109
+            mode.IconCls = "";//图标
110
+            mode.text = "不清";
111
+            modelList.Add(mode);
112
+            if (tab != null && tab.Rows.Count > 0)
113
+            {
114
+                List<Model.T_Sys_EquipmentNumber> categorylist = new BLL.T_Sys_EquipmentNumber().DataTableToList(tab);
115
+              
116
+                for (int i = 0; i < categorylist.Count; i++)
117
+                {
118
+                    Model.TreeModel model = new Model.TreeModel();
119
+                    string currentID = categorylist[i].F_ID.ToString();//当前功能ID
120
+                    model.id = currentID;
121
+                    model.IconCls = "";//图标
122
+                    model.text = categorylist[i].F_Production;
123
+                    modelList.Add(model);
124
+                }
125
+                return modelList;
126
+
127
+            }
128
+            else
129
+            {
130
+                return null;
131
+            }
132
+
133
+        }
63
         /// <summary>
134
         /// <summary>
64
         /// 修改设备编号
135
         /// 修改设备编号
65
         /// </summary>
136
         /// </summary>

+ 3 - 3
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/PushMessageController.cs

48
         }
48
         }
49
         public ActionResult PushMessagePush()
49
         public ActionResult PushMessagePush()
50
         {
50
         {
51
-            var modellist = new BLL.T_Wo_WorkOrderItem_New().GetModelList("  F_WoID in(select F_ID from  T_Bus_WorkOrder where F_IsDelete = 0 and F_State in(1, 3, 5)and F_Area in (18, 19, 8, 9, 61, 10, 11, 12, 15, 13, 482, 14, 16, 17,20)) and F_IsUsed = 0 and F_WoState in (1,3,5)");
51
+            var modellist = new BLL.T_Wo_WorkOrderItem_New().GetModelList("  F_WoID in(select F_ID from  T_Bus_WorkOrder where F_IsDelete = 0 and F_State in(1, 3, 5)and F_Area in (18, 19, 8, 9, 61, 10, 11, 12, 15, 13, 482, 14, 16, 17,20,21,22)) and F_IsUsed = 0 and F_WoState in (1,3,5)");
52
             string msg = "";
52
             string msg = "";
53
             if (modellist != null)
53
             if (modellist != null)
54
             {
54
             {
95
         /// <returns></returns>
95
         /// <returns></returns>
96
         public ActionResult SetPush()
96
         public ActionResult SetPush()
97
         {
97
         {
98
-            var modellist = new BLL.T_Wo_WorkOrderItem_New().GetModelList("  F_WoID in(select F_ID from  T_Bus_WorkOrder where F_IsDelete = 0 and F_State in(1, 3, 5)and F_Area in (18, 19, 8, 9, 61, 10, 11, 12, 15, 13, 482, 14, 16, 17,20)) and F_IsUsed = 0 and F_WoState in (1,3,5)");
98
+            var modellist = new BLL.T_Wo_WorkOrderItem_New().GetModelList("  F_WoID in(select F_ID from  T_Bus_WorkOrder where F_IsDelete = 0 and F_State in(1, 3, 5)and F_Area in (18, 19, 8, 9, 61, 10, 11, 12, 15, 13, 482, 14, 16, 17,20,21,22)) and F_IsUsed = 0 and F_WoState in (1,3,5)");
99
           
99
           
100
             string msg = "";
100
             string msg = "";
101
             if (modellist != null)
101
             if (modellist != null)
518
 
518
 
519
          //   var modellist = new BLL.T_Bus_WorkOrder().GetModelList("F_IsDelete=0 and F_State in(1,3,5)  and F_Area in(18,19,8,9,61,10" +
519
          //   var modellist = new BLL.T_Bus_WorkOrder().GetModelList("F_IsDelete=0 and F_State in(1,3,5)  and F_Area in(18,19,8,9,61,10" +
520
              //   ",11,12,15,13,482,14,16,17)");
520
              //   ",11,12,15,13,482,14,16,17)");
521
-            var modellist = new BLL.T_Wo_WorkOrderItem_New().GetModelList("  F_WoID in(select F_ID from  T_Bus_WorkOrder where F_IsDelete = 0 and F_State in(1, 3, 5)and F_Area in (18, 19, 8, 9, 61, 10, 11, 12, 15, 13, 482, 14, 16, 17,20)) and F_IsUsed = 0 and F_WoState in (1,3,5)");
521
+            var modellist = new BLL.T_Wo_WorkOrderItem_New().GetModelList("  F_WoID in(select F_ID from  T_Bus_WorkOrder where F_IsDelete = 0 and F_State in(1, 3, 5)and F_Area in (18, 19, 8, 9, 61, 10, 11, 12, 15, 13, 482, 14, 16, 17,20,21,22)) and F_IsUsed = 0 and F_WoState in (1,3,5)");
522
             if (modellist != null)
522
             if (modellist != null)
523
             {
523
             {
524
                 foreach (var it in modellist)
524
                 foreach (var it in modellist)

+ 1 - 1
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/customer/CustomerController.cs

867
         public ActionResult Import()
867
         public ActionResult Import()
868
         {
868
         {
869
             DataTable dt = new DataTable();
869
             DataTable dt = new DataTable();
870
-            var depts = new BLL.T_Sys_UserAccount().GetModelList("F_DeptId in (select F_DeptId   FROM T_Sys_Department WHERE F_State=1 and (F_DeptCode like '|0|1|21|%' or F_DeptCode like '|0|1|22|%' )) ");
870
+            var depts = new BLL.T_Sys_UserAccount().GetModelList("F_DeptId in (select F_DeptId   FROM T_Sys_Department WHERE F_State=1 and (F_DeptCode like '|0|1|23|%' or F_DeptCode like '|0|1|24|%' )) ");
871
            
871
            
872
             #region 
872
             #region 
873
             dt.Columns.Add("工号");
873
             dt.Columns.Add("工号");

+ 54 - 11
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/report/BusinessController.cs

820
                     factory.proportion = "0.00%";
820
                     factory.proportion = "0.00%";
821
                     for (int i=0;i < modelList.Count;i++)
821
                     for (int i=0;i < modelList.Count;i++)
822
                     {
822
                     {
823
-                        if (modelList[i].F_Manufacturer == it.F_Production)
823
+                        if (!string .IsNullOrEmpty (modelList[i].F_Manufacturer))
824
                         {
824
                         {
825
-                            total++;
826
-                            factory.number++;
825
+                            if (modelList[i].F_Manufacturer .Trim ()== it.F_Production)
826
+                            {
827
+                                total++;
828
+                                factory.number++;
829
+                            }
827
                         }
830
                         }
831
+                        
828
                     }
832
                     }
829
                     if (modelList.Count > 0)
833
                     if (modelList.Count > 0)
830
                         factory.proportion = string.Format("{0:f2}%", (float)factory.number / modelList.Count*100);
834
                         factory.proportion = string.Format("{0:f2}%", (float)factory.number / modelList.Count*100);
847
                 foreach (var it in problem)
851
                 foreach (var it in problem)
848
                 {
852
                 {
849
                     Factory factory = new Factory();
853
                     Factory factory = new Factory();
850
-                    factory.name = it.F_Name ;
854
+                    factory.name = it.F_Describe;
851
                     factory.number = 0;
855
                     factory.number = 0;
852
                     factory.proportion = "0.00%";
856
                     factory.proportion = "0.00%";
853
                     for (int i = 0; i < modelList.Count; i++)
857
                     for (int i = 0; i < modelList.Count; i++)
854
                     {
858
                     {
855
-                        if (modelList[i].F_ProblemCode == it.F_Name)
859
+                        if (!string .IsNullOrEmpty (modelList[i].F_ProblemCode))
856
                         {
860
                         {
857
-                            total++;
858
-                            factory.number++;
861
+                            if (modelList[i].F_ProblemCode.Trim () == it.F_Name)
862
+                            {
863
+                                total++;
864
+                                factory.number++;
865
+                            }
859
                         }
866
                         }
867
+                       
860
                     }
868
                     }
861
                     if (modelList.Count>0)
869
                     if (modelList.Count>0)
862
                     factory.proportion = string.Format("{0:f2}%", (float)factory.number / modelList.Count * 100);
870
                     factory.proportion = string.Format("{0:f2}%", (float)factory.number / modelList.Count * 100);
863
                     product.problem.Add(factory);
871
                     product.problem.Add(factory);
864
                 }
872
                 }
873
+                 product.problem.ForEach(c => {
874
+                  var group = product.problem.Where(a => a.name == c.name);
875
+                  c.number = group.Sum(x => x.number);
876
+                     c.proportion = string.Format("{0:f2}%", (float)c.number / modelList.Count * 100);
877
+                 });
878
+                product.problem = product.problem.Distinct(new ProductNoComparer()).ToList();
879
+
865
                 product.problem.Sort((a, b) => b.number.CompareTo(a.number));
880
                 product.problem.Sort((a, b) => b.number.CompareTo(a.number));
881
+
866
                 Factory factor = new Factory();
882
                 Factory factor = new Factory();
867
                 factor.name = "合计";
883
                 factor.name = "合计";
868
                 factor.number = total;
884
                 factor.number = total;
880
                 foreach (var it in productcode)
896
                 foreach (var it in productcode)
881
                 {
897
                 {
882
                     Factory factory = new Factory();
898
                     Factory factory = new Factory();
883
-                    factory.name = it.F_Name;
899
+                    factory.name = it.F_Describe;
884
                     factory.number = 0;
900
                     factory.number = 0;
885
                     factory.proportion = "0.00%";
901
                     factory.proportion = "0.00%";
886
                     for (int i = 0; i < modelList.Count; i++)
902
                     for (int i = 0; i < modelList.Count; i++)
887
                     {
903
                     {
888
-                        if (modelList[i].F_ProductType == it.F_Name)
904
+                        if (!string.IsNullOrEmpty(modelList[i].F_ProductType))
889
                         {
905
                         {
890
-                            total++;
891
-                            factory.number++;
906
+                            if (modelList[i].F_ProductType.Trim () == it.F_Name)
907
+                            {
908
+                                total++;
909
+                                factory.number++;
910
+                            }
892
                         }
911
                         }
893
                     }
912
                     }
894
                     if (modelList.Count > 0)
913
                     if (modelList.Count > 0)
895
                         factory.proportion = string.Format("{0:f2}%", (float)factory.number / modelList.Count * 100);
914
                         factory.proportion = string.Format("{0:f2}%", (float)factory.number / modelList.Count * 100);
896
                     product.product.Add(factory);
915
                     product.product.Add(factory);
897
                 }
916
                 }
917
+
918
+                product.product.ForEach(c => {
919
+                    var group = product.product.Where(a => a.name == c.name);
920
+                    c.number = group.Sum(x => x.number);
921
+                    c.proportion = string.Format("{0:f2}%", (float)c.number / modelList.Count * 100);
922
+                });
923
+                product.product = product.product.Distinct(new ProductNoComparer()).ToList();
924
+
898
                 product.product.Sort((a, b) => b.number.CompareTo(a.number));
925
                 product.product.Sort((a, b) => b.number.CompareTo(a.number));
899
                 Factory factor = new Factory();
926
                 Factory factor = new Factory();
900
                 factor.name = "合计";
927
                 factor.name = "合计";
929
             #endregion
956
             #endregion
930
            
957
            
931
         }
958
         }
959
+        class ProductNoComparer : IEqualityComparer<Factory>
960
+        {
961
+            public bool Equals(Factory p1, Factory p2)
962
+            {
963
+                if (p1 == null)
964
+                    return p2 == null;
965
+                return p1.name  == p2.name;
966
+            }
967
+
968
+            public int GetHashCode(Factory p)
969
+            {
970
+                if (p == null)
971
+                    return 0;
972
+                return p.name.GetHashCode();
973
+            }
974
+        }
932
         /// <summary>
975
         /// <summary>
933
         /// 工单来源
976
         /// 工单来源
934
         /// </summary>
977
         /// </summary>

+ 37 - 3
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/workorder/WorkOrderController.cs

146
                     sql += $" and F_ProductDate = '" + productDate.Trim() + "'";
146
                     sql += $" and F_ProductDate = '" + productDate.Trim() + "'";
147
                 if (!string.IsNullOrEmpty(batchNumber))//产品编码
147
                 if (!string.IsNullOrEmpty(batchNumber))//产品编码
148
                     sql += $" and F_BatchNumber like '%" + batchNumber.Trim() + "%'";
148
                     sql += $" and F_BatchNumber like '%" + batchNumber.Trim() + "%'";
149
+
149
                 if (!string.IsNullOrEmpty(manufacturer))//生产厂家
150
                 if (!string.IsNullOrEmpty(manufacturer))//生产厂家
150
-                    sql += $" and F_Manufacturer = '" + manufacturer.Trim() + "'";
151
+                {
152
+                    string msg = "";
153
+                    string[] facturer = manufacturer.Split(',');
154
+                    foreach (var it in facturer)
155
+                    {
156
+                        if (msg=="")
157
+                        {
158
+                            msg = "'" + it + "'";
159
+                        }
160
+                        else
161
+                        {
162
+                            msg = msg+","+ "'" + it + "'";
163
+                        }
164
+                       
165
+                    }
166
+                    sql += $" and F_Manufacturer in (" + msg + ")";
167
+                }
168
+                  
151
                 if (!string.IsNullOrEmpty(problemCode))//问题代码
169
                 if (!string.IsNullOrEmpty(problemCode))//问题代码
152
-                    sql += $" and F_ProblemCode = '" + problemCode.Trim() + "'";
170
+                {
171
+                    string msg = "";
172
+                    string[] facturer = problemCode.Split(',');
173
+                    foreach (var it in facturer)
174
+                    {
175
+                        if (msg == "")
176
+                        {
177
+                            msg = "'" + it + "'";
178
+                        }
179
+                        else
180
+                        {
181
+                            msg = msg + "," + "'" + it + "'";
182
+                        }
183
+                    }
184
+                    sql += $" and F_ProblemCode  in (" + msg + ")";
185
+                }
186
+                   
153
                 if (!string.IsNullOrEmpty(notifications))//通知人
187
                 if (!string.IsNullOrEmpty(notifications))//通知人
154
                     sql += $" and F_Notifications = '" + notifications.Trim() + "'";
188
                     sql += $" and F_Notifications = '" + notifications.Trim() + "'";
155
                 if (!string.IsNullOrEmpty(productName))//产品名称
189
                 if (!string.IsNullOrEmpty(productName))//产品名称
539
         private string[] col()
573
         private string[] col()
540
         {
574
         {
541
             string[] ccc = {
575
             string[] ccc = {
542
-                   "序号","姓名","地址","产品代码","产品名称","规格","生产日期","生产时间","产品编码",
576
+                   "序号","大区","办事处","姓名","地址","产品代码","产品名称","规格","生产日期","生产时间","产品编码",
543
                   "生产厂家","问题代码","质量问题","通知人","接听人","落实情况","重复投诉日期"
577
                   "生产厂家","问题代码","质量问题","通知人","接听人","落实情况","重复投诉日期"
544
             };
578
             };
545
             return ccc;
579
             return ccc;

+ 74 - 0
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/workorder/WorkTypeController.cs

297
             return res;
297
             return res;
298
         }
298
         }
299
 
299
 
300
+
301
+
302
+
303
+        public ActionResult GetProblem()
304
+        {
305
+
306
+            DataTable dt = new DataTable();
307
+            string where = "";
308
+            where = " F_DictionaryFlag='WTDM'";
309
+          
310
+            dt = new BLL.T_Sys_DictionaryValue().GetList(0, where, "F_DictionaryValueId asc").Tables[0];
311
+            List<Model.TreeModel> modelList = BindTrTree(dt, "0");
312
+
313
+            if (modelList != null)
314
+            {
315
+                if (modelList.Count > 0)
316
+                    return Success("加载成功", modelList);
317
+            }
318
+            return Error("加载失败");
319
+
320
+        }
321
+        /// <summary>
322
+        /// tree  树形部门
323
+        /// </summary>
324
+        /// <param name="tab"></param>
325
+        /// <param name="parentid"></param>
326
+        /// <returns></returns>
327
+        private List<Model.TreeModel> BindTrTree(DataTable tab, string parentid, int pid = 0)
328
+        {
329
+            DataTable tab2 = new DataTable();
330
+            List<Model.TreeModel> modelList1 = new List<Model.TreeModel>();
331
+            Model.TreeModel mode = new Model.TreeModel();
332
+            string currentID = "0";//当前功能ID
333
+            mode.id = currentID;
334
+            mode.IconCls = "";//图标
335
+            mode.text = "双汇集团";
336
+            mode.children = BindEquipmentNumbeTree(tab, currentID, pid);
337
+            modelList1.Add(mode);
338
+            return modelList1;
339
+
340
+        }
341
+        private List<Model.TreeModel> BindEquipmentNumbeTree(DataTable tab, string parentid, int pid = 0)
342
+        {
343
+            DataTable tab2 = new DataTable();
344
+
345
+
346
+            List<Model.TreeModel> modelList = new List<Model.TreeModel>();
347
+            if (tab != null && tab.Rows.Count > 0)
348
+            {
349
+                List<Model.T_Sys_DictionaryValue> categorylist = new BLL.T_Sys_DictionaryValue().DataTableToList(tab);
350
+
351
+                for (int i = 0; i < categorylist.Count; i++)
352
+                {
353
+                    Model.TreeModel model = new Model.TreeModel();
354
+                    string currentID = categorylist[i].F_DictionaryValueId .ToString();//当前功能ID
355
+                    model.id = currentID;
356
+                    model.IconCls = "";//图标
357
+                    model.text = categorylist[i].F_Name ;
358
+                    modelList.Add(model);
359
+                }
360
+                return modelList;
361
+
362
+            }
363
+            else
364
+            {
365
+                return null;
366
+            }
367
+
368
+        }
369
+
370
+
371
+
372
+
373
+
300
         #region 公共属性
374
         #region 公共属性
301
         string id = "";
375
         string id = "";
302
         string name = "";
376
         string name = "";

Dosya farkı çok büyük olduğundan ihmal edildi
+ 5 - 4
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/workorder/WorkorderAppController.cs


+ 4 - 0
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Models/Common/ButtonGroup.cs

141
                     {
141
                     {
142
                         buttons.Add(assign());
142
                         buttons.Add(assign());
143
                     }
143
                     }
144
+                    else if (code == "YWY" || code == "XTGLY" || code == "ZG")
145
+                    {
146
+                        buttons.Add(handle());
147
+                    }
144
                     break;
148
                     break;
145
             }
149
             }
146
             return buttons;
150
             return buttons;

+ 24 - 6
codegit/CallCenterCommon/CallCenter.Utility/NPOI/NPOIHelper.cs

1184
                                                 cell8.SetCellValue(Factory2[i].name);
1184
                                                 cell8.SetCellValue(Factory2[i].name);
1185
                                                 cell8.CellStyle = cellStylebt;
1185
                                                 cell8.CellStyle = cellStylebt;
1186
                                                 sheet.AddMergedRegion(new CellRangeAddress(t +1+ i, t+1 + i+b , 8, 9));
1186
                                                 sheet.AddMergedRegion(new CellRangeAddress(t +1+ i, t+1 + i+b , 8, 9));
1187
+                                            if (istrue )
1188
+                                            {
1189
+                                                ICell cell22 = irow6.CreateCell(9);
1190
+                                                cell22.CellStyle = cellStylebt;
1191
+                                            }
1187
                                                 break;
1192
                                                 break;
1188
                                             case 1:
1193
                                             case 1:
1189
                                                 ICell cell9 = irow6.CreateCell(10);
1194
                                                 ICell cell9 = irow6.CreateCell(10);
1242
                                                 ICell cell8 = irow6.CreateCell(8);
1247
                                                 ICell cell8 = irow6.CreateCell(8);
1243
                                                 cell8.SetCellValue(Factory3[i - Factory2.Count - b].name);
1248
                                                 cell8.SetCellValue(Factory3[i - Factory2.Count - b].name);
1244
                                                 cell8.CellStyle = cellStylebt;
1249
                                                 cell8.CellStyle = cellStylebt;
1250
+                                          
1245
                                                 sheet.AddMergedRegion(new CellRangeAddress(t +1+ i, t+1 + i + b, 8, 9));
1251
                                                 sheet.AddMergedRegion(new CellRangeAddress(t +1+ i, t+1 + i + b, 8, 9));
1246
                                                 break;
1252
                                                 break;
1247
                                             case 1:
1253
                                             case 1:
1248
                                                 ICell cell9 = irow6.CreateCell(10);
1254
                                                 ICell cell9 = irow6.CreateCell(10);
1249
                                                 cell9.SetCellValue(Factory3[i - Factory2.Count - b].number.ToString());
1255
                                                 cell9.SetCellValue(Factory3[i - Factory2.Count - b].number.ToString());
1250
                                                 cell9.CellStyle = cellStylebt;
1256
                                                 cell9.CellStyle = cellStylebt;
1251
-                                                sheet.AddMergedRegion(new CellRangeAddress(t + 1 + i, t + 1 + i + b, 10, 10));
1257
+                                          
1258
+                                            sheet.AddMergedRegion(new CellRangeAddress(t + 1 + i, t + 1 + i + b, 10, 10));
1252
 
1259
 
1253
                                                 break;
1260
                                                 break;
1254
                                             case 2:
1261
                                             case 2:
1255
                                                 ICell cell12 = irow6.CreateCell(11);
1262
                                                 ICell cell12 = irow6.CreateCell(11);
1256
                                                 cell12.SetCellValue(Factory3[i - Factory2.Count - b].proportion);
1263
                                                 cell12.SetCellValue(Factory3[i - Factory2.Count - b].proportion);
1257
                                                 cell12.CellStyle = cellStylebt;
1264
                                                 cell12.CellStyle = cellStylebt;
1258
-                                                sheet.AddMergedRegion(new CellRangeAddress(t + 1 + i, t + 1 + i + b, 11, 11));
1265
+                                           
1266
+                                            sheet.AddMergedRegion(new CellRangeAddress(t + 1 + i, t + 1 + i + b, 11, 11));
1259
                                                 break;
1267
                                                 break;
1260
                                         }
1268
                                         }
1261
                                     }
1269
                                     }
1268
                                 cell120.CellStyle = cellStylebt;
1276
                                 cell120.CellStyle = cellStylebt;
1269
                                 ICell cell124 = irow6.CreateCell(9);
1277
                                 ICell cell124 = irow6.CreateCell(9);
1270
                                 cell124.CellStyle = cellStylebt;
1278
                                 cell124.CellStyle = cellStylebt;
1271
-                                ICell cell125 = irow6.CreateCell(10);
1272
-                                cell125.CellStyle = cellStylebt;
1273
-                                ICell cell126 = irow6.CreateCell(11);
1274
-                                cell126.CellStyle = cellStylebt;
1279
+                                    ICell cell125 = irow6.CreateCell(10);
1280
+                                    cell125.CellStyle = cellStylebt;
1281
+                                    ICell cell126 = irow6.CreateCell(11);
1282
+                                    cell126.CellStyle = cellStylebt;
1283
+                                
1275
                             }
1284
                             }
1276
                             if (!istrue )
1285
                             if (!istrue )
1277
                             {
1286
                             {
1279
                                 {
1288
                                 {
1280
                                     ICell cell119 = irow6.CreateCell(0);
1289
                                     ICell cell119 = irow6.CreateCell(0);
1281
                                     cell119.CellStyle = cellStylebt;
1290
                                     cell119.CellStyle = cellStylebt;
1291
+                                   
1282
                                 }
1292
                                 }
1283
                                 if (i *2 +1>= Factory1.Count&i < Factory2.Count)
1293
                                 if (i *2 +1>= Factory1.Count&i < Factory2.Count)
1284
                                 {
1294
                                 {
1314
                                 cell119.CellStyle = cellStylebt;
1324
                                 cell119.CellStyle = cellStylebt;
1315
                                 ICell cell121 = irow6.CreateCell(7);
1325
                                 ICell cell121 = irow6.CreateCell(7);
1316
                                 cell121.CellStyle = cellStylebt;
1326
                                 cell121.CellStyle = cellStylebt;
1327
+                                ICell cell122 = irow6.CreateCell(4);
1328
+                                cell122.CellStyle = cellStylebt;
1329
+                                ICell cell123 = irow6.CreateCell(5);
1330
+                                cell123.CellStyle = cellStylebt;
1331
+                                ICell cell124 = irow6.CreateCell(6);
1332
+                                cell124.CellStyle = cellStylebt;
1333
+                                sheet.AddMergedRegion(new CellRangeAddress(t + 1 + i, t + 1 + i, 4, 6));
1317
                                 ICell cell132 = irow6.CreateCell(8);
1334
                                 ICell cell132 = irow6.CreateCell(8);
1318
                                 cell132.CellStyle = cellStylebt;
1335
                                 cell132.CellStyle = cellStylebt;
1319
                                 ICell cell128 = irow6.CreateCell(9);
1336
                                 ICell cell128 = irow6.CreateCell(9);
1322
                                 cell129.CellStyle = cellStylebt;
1339
                                 cell129.CellStyle = cellStylebt;
1323
                                 ICell cell130 = irow6.CreateCell(11);
1340
                                 ICell cell130 = irow6.CreateCell(11);
1324
                                 cell130.CellStyle = cellStylebt;
1341
                                 cell130.CellStyle = cellStylebt;
1342
+                             //   sheet.AddMergedRegion(new CellRangeAddress(t + 1 + i, t + 1 + i, 8, 11));
1325
                             }
1343
                             }
1326
                         }
1344
                         }
1327
 
1345
 

+ 83 - 81
codegit/PushMessage/Program.cs

31
             
31
             
32
             
32
             
33
             System.Console.WriteLine("Hello Push!");
33
             System.Console.WriteLine("Hello Push!");
34
-            System.Console.WriteLine(DateTime.Now.ToString("HH"));
35
-            PushTime time = new PushTime();
36
-            time.time = DateTime.Now;
37
-            time.morning = 0;
38
-            time.Afternoon = 0;
39
-            Push(time);
34
+          //  System.Console.WriteLine(DateTime.Now.ToString("HH"));
35
+            //PushTime time = new PushTime();
36
+            //time.time = DateTime.Now;
37
+            //time.morning = 0;
38
+            //time.Afternoon = 0;
39
+            //Push(time);
40
             Thread t = new Thread(new ThreadStart(SetCensusURL));
40
             Thread t = new Thread(new ThreadStart(SetCensusURL));
41
             t.Start();
41
             t.Start();
42
           
42
           
55
                 }
55
                 }
56
                 if ( File.Exists("D:\\Push\\PushMessage.txt"))
56
                 if ( File.Exists("D:\\Push\\PushMessage.txt"))
57
                 {
57
                 {
58
-                    System.Console.WriteLine(JsonConvert.SerializeObject(time));
58
+                  //  System.Console.WriteLine(JsonConvert.SerializeObject(time));
59
                     File.WriteAllText("D:\\Push\\PushMessage.txt", JsonConvert.SerializeObject(time), Encoding.UTF8);
59
                     File.WriteAllText("D:\\Push\\PushMessage.txt", JsonConvert.SerializeObject(time), Encoding.UTF8);
60
                 }
60
                 }
61
                 else
61
                 else
62
                 {
62
                 {
63
-                    System.Console.WriteLine(JsonConvert.SerializeObject(time));
63
+                  //  System.Console.WriteLine(JsonConvert.SerializeObject(time));
64
                     File.WriteAllText("D:\\Push\\PushMessage.txt", JsonConvert.SerializeObject(time), Encoding.UTF8);
64
                     File.WriteAllText("D:\\Push\\PushMessage.txt", JsonConvert.SerializeObject(time), Encoding.UTF8);
65
                 }
65
                 }
66
             }
66
             }
73
             }
73
             }
74
 
74
 
75
         }
75
         }
76
-        //http://oa.shuanghui.net
76
+        //http://oa.shuanghui.net:8046/
77
         private static void SetCensusURL()
77
         private static void SetCensusURL()
78
         {
78
         {
79
            
79
            
87
                
87
                
88
                 try
88
                 try
89
                 {
89
                 {
90
-                    string seturl = "http://oa.shuanghui.net/PushMessage/SetCensusURL";
90
+                    string seturl = "http://oa.shuanghui.net:8046/PushMessage/SetCensusURL";
91
                     string Dataaaurl = web.DownloadString(seturl);//这一句话就能请求到数据了
91
                     string Dataaaurl = web.DownloadString(seturl);//这一句话就能请求到数据了
92
-                    string url = "http://oa.shuanghui.net/PushMessage/SetPush";
92
+                //    System.Console.WriteLine("nnvnn" + Dataaaurl);
93
+                    string url = "http://oa.shuanghui.net:8046/PushMessage/SetPush";
93
                     string Dataaa = web.DownloadString(url);//这一句话就能请求到数据了
94
                     string Dataaa = web.DownloadString(url);//这一句话就能请求到数据了
94
-                    Program program = new Program();
95
-                      if (DateTime.Now.ToString("HH") == "09")
96
-                        {
97
-                        string str1 = File.ReadAllText("D:\\Push\\PushMessage.txt");
98
-                        if (!string.IsNullOrEmpty(str1))
99
-                        {
100
-                            var obj = JsonConvert.DeserializeObject<PushTime>(str1);
101
-                            if (obj != null)
102
-                            {
103
-                                if (DateTime.Now.Day - obj.time .Day >0)
104
-                                {
105
-                                    program.time.time = DateTime.Now;
106
-                                    program.time.morning = 1;
107
-                                    program.time.Afternoon = 0;
108
-                                //    System.Console.WriteLine("aavaa" + program.time.morning);
109
-                                    Push(program.time);
110
-                                    string urla = "http://oa.shuanghui.net/PushMessage/PushMessagePush";
111
-                                    string Dataa = web.DownloadString(urla);//这一句话就能请求到数据了
112
-                                }
113
-                                else
114
-                                {
115
-                                    if (program.time.morning<=0)
116
-                                    {
117
-                                        program.time.time = DateTime.Now;
118
-                                        program.time.morning = 1;
119
-                                        program.time.Afternoon = obj.Afternoon ;
120
-                                    //    System.Console.WriteLine("aacaa" + program.time.morning);
121
-                                        Push(program.time);
122
-                                        string urla = "http://oa.shuanghui.net/PushMessage/PushMessagePush";
123
-                                        string Dataa = web.DownloadString(urla);//这一句话就能请求到数据了
124
-                                    }
125
-                                }
126
-                            }
127
-                        }
128
-                        }
129
-                        else if (DateTime.Now.ToString("HH") == "14")
130
-                        {
131
-                        string str1 = File.ReadAllText("D:\\Push\\PushMessage.txt");
132
-                      //  System.Console.WriteLine("nnvnn" + str1);
133
-                        if (!string.IsNullOrEmpty(str1))
134
-                        {
135
-                            var obj = JsonConvert.DeserializeObject<PushTime>(str1);
136
-                            if (obj != null)
137
-                            {
138
-                                if (DateTime.Now.Day - obj.time.Day > 0)
139
-                                {
140
-                                    program.time.time = DateTime.Now;
141
-                                    program.time.morning = obj .morning ;
142
-                                    program.time.Afternoon = 1;
143
-                                    Push(program.time);
144
-                                    //System.Console.WriteLine("nnvnn" + program.time.Afternoon);
145
-                                    string urla = "http://oa.shuanghui.net/PushMessage/PushMessagePush";
146
-                                    string Dataa = web.DownloadString(urla);//这一句话就能请求到数据了
95
+                 //   System.Console.WriteLine("nnvnn" + Dataaa);
96
+                    //Program program = new Program();
97
+                    //  if (DateTime.Now.ToString("HH") == "09")
98
+                    //    {
99
+                    //    string str1 = File.ReadAllText("D:\\Push\\PushMessage.txt");
100
+                    //    if (!string.IsNullOrEmpty(str1))
101
+                    //    {
102
+                    //        var obj = JsonConvert.DeserializeObject<PushTime>(str1);
103
+                    //        if (obj != null)
104
+                    //        {
105
+                    //            if (DateTime.Now.Day - obj.time .Day >0)
106
+                    //            {
107
+                    //                program.time.time = DateTime.Now;
108
+                    //                program.time.morning = 1;
109
+                    //                program.time.Afternoon = 0;
110
+                    //            //    System.Console.WriteLine("aavaa" + program.time.morning);
111
+                    //                Push(program.time);
112
+                    //                string urla = "http://192.168.8.9:1001//PushMessage/PushMessagePush";
113
+                    //                string Dataa = web.DownloadString(urla);//这一句话就能请求到数据了
114
+                    //            }
115
+                    //            else
116
+                    //            {
117
+                    //                 if (program.time.morning<=0)
118
+                    //                {
119
+                    //                    program.time.time = DateTime.Now;
120
+                    //                    program.time.morning = 1;
121
+                    //                    program.time.Afternoon = obj.Afternoon ;
122
+                    //                //    System.Console.WriteLine("aacaa" + program.time.morning);
123
+                    //                    Push(program.time);
124
+                    //                    string urla = "http://192.168.8.9:1001//PushMessage/PushMessagePush";
125
+                    //                    string Dataa = web.DownloadString(urla);//这一句话就能请求到数据了
126
+                    //                }
127
+                    //            }
128
+                    //        }
129
+                    //    }
130
+                    //    }
131
+                    //    else if (DateTime.Now.ToString("HH") == "14")
132
+                    //    {
133
+                    //    string str1 = File.ReadAllText("D:\\Push\\PushMessage.txt");
134
+                    //  //  System.Console.WriteLine("nnvnn" + str1);
135
+                    //    if (!string.IsNullOrEmpty(str1))
136
+                    //    {
137
+                    //        var obj = JsonConvert.DeserializeObject<PushTime>(str1);
138
+                    //        if (obj != null)
139
+                    //        {
140
+                    //            if (DateTime.Now.Day - obj.time.Day > 0)
141
+                    //            {
142
+                    //                program.time.time = DateTime.Now;
143
+                    //                program.time.morning = obj .morning ;
144
+                    //                program.time.Afternoon = 1;
145
+                    //                Push(program.time);
146
+                    //                //System.Console.WriteLine("nnvnn" + program.time.Afternoon);
147
+                    //                string urla = "http://oa.shuanghui.net:8046//PushMessage/PushMessagePush";
148
+                    //                string Dataa = web.DownloadString(urla);//这一句话就能请求到数据了
147
 
149
 
148
 
150
 
149
-                                }
150
-                                else
151
-                                {
152
-                                    if (program.time.Afternoon <= 0)
153
-                                    {
154
-                                        program.time.time = DateTime.Now;
155
-                                        program.time.morning = obj.morning;
156
-                                        program.time.Afternoon = 1;
157
-                                        Push(program.time);
158
-                                      //  System.Console.WriteLine("nncnn" + program.time.Afternoon);
159
-                                        string urla = "http://oa.shuanghui.net/PushMessage/PushMessagePush";
160
-                                        string Dataa = web.DownloadString(urla);//这一句话就能请求到数据了
161
-                                    }
162
-                                }
163
-                            }
164
-                        }
151
+                    //            }
152
+                    //            else
153
+                    //            {
154
+                    //                if (program.time.Afternoon <= 0)
155
+                    //                {
156
+                    //                    program.time.time = DateTime.Now;
157
+                    //                    program.time.morning = obj.morning;
158
+                    //                    program.time.Afternoon = 1;
159
+                    //                    Push(program.time);
160
+                    //                  //  System.Console.WriteLine("nncnn" + program.time.Afternoon);
161
+                    //                    string urla = "http://oa.shuanghui.net:8046//PushMessage/PushMessagePush";
162
+                    //                    string Dataa = web.DownloadString(urla);//这一句话就能请求到数据了
163
+                    //                }
164
+                    //            }
165
+                    //        }
166
+                    //    }
165
                        
167
                        
166
-                     }
168
+                    // }
167
                    
169
                    
168
                     
170
                     
169
                 }
171
                 }