Ver código fonte

Merge remote-tracking branch 'origin/zhangxueyang' into zyy

注释掉无用代码
# Conflicts:
#	XHWK.WKTool/DAL/DAL_Upload.cs
tags/录制修改前
耀 3 anos atrás
pai
commit
2a62b3fac4

+ 6
- 0
Common/system/BlackboardNew.cs Ver arquivo

@@ -368,6 +368,12 @@ namespace Common.system
368 368
                     isFirst = true;
369 369
                     try
370 370
                     {
371
+                        if(strokes_page_all.Count<=i)
372
+                        {
373
+                            ZBBPage pagetemp = new ZBBPage();
374
+                            pagetemp.lines.Add(new ZBBPageStep());
375
+                            strokes_page_all.Add(pagetemp);
376
+                        }
371 377
                         strokes_page_all[i].lines.Last().lines_curr.Add(stroke);
372 378
                     }
373 379
                     catch (Exception ex)

+ 21
- 19
XHWK.WKTool/DAL/DAL_Upload.cs Ver arquivo

@@ -46,6 +46,10 @@ namespace XHWK.WKTool.DAL
46 46
                     if (jo["code"].ToString() == "0")
47 47
                     {
48 48
                         Message = "";
49
+
50
+                        Model.ResultVo<Model_ResourceAddTwo> resultObj = JsonHelper.JsonToObj<Model.ResultVo<Model_ResourceAddTwo>>(jo.ToString());
51
+
52
+                        APP.ResourceAddTwo = resultObj.obj;
49 53
                         //已存在 不允许上传
50 54
                         return false;
51 55
                         //    if (string.IsNullOrWhiteSpace(jo["obj"].ToString()))
@@ -104,23 +108,21 @@ namespace XHWK.WKTool.DAL
104 108
                     if (resultObj.code == 0 && resultObj.obj != null)
105 109
                     {
106 110
                         APP.ResourceAddTwo = resultObj.obj;
107
-                        //上报合并成功后 修改为已成功上传。
108
-                        foreach (Model_WKData Vdata in APP.WKDataList)
109
-                        {
110
-                            if (Vdata.VideoList == null)
111
-                            {
112
-                                continue;
113
-                            }
114
-
115
-                            foreach (Model_Video videoinfo in Vdata.VideoList)
116
-                            {
117
-                                if (videoinfo.FileGuid == FileCode)
118
-                                {
119
-                                    videoinfo.IsUpload = true;
120
-                                    break;
121
-                                }
122
-                            }
123
-                        }
111
+                        //foreach (Model_WKData Vdata in APP.WKDataList)
112
+                        //{
113
+                        //    if (Vdata.VideoList == null)
114
+                        //    {
115
+                        //        continue;
116
+                        //    }
117
+                        //    foreach (Model_Video videoinfo in Vdata.VideoList)
118
+                        //    {
119
+                        //        if (videoinfo.FileGuid == FileCode)
120
+                        //        {
121
+                        //            //videoinfo.IsUpload = true;
122
+                        //            break;
123
+                        //        }
124
+                        //    }
125
+                        //}
124 126
                         return true;
125 127
                     }
126 128
                     else
@@ -373,7 +375,7 @@ namespace XHWK.WKTool.DAL
373 375
                         bool isres = ReportFileMerge(APP.UserInfo.Schoolid.ToString() + "/resource", VideoInfo.FileGuid, out ErrMessage);
374 376
                         if (isres)
375 377
                         {
376
-                            VideoInfo.IsUpload = true;
378
+                            //VideoInfo.IsUpload = true;
377 379
                             return true;
378 380
                         }
379 381
                         else
@@ -386,7 +388,7 @@ namespace XHWK.WKTool.DAL
386 388
                     {
387 389
                         if (string.IsNullOrWhiteSpace(ErrMessage))
388 390
                         {
389
-                            VideoInfo.IsUpload = true;
391
+                            //VideoInfo.IsUpload = true;
390 392
                             return true;
391 393
                         }
392 394
                         else

+ 1
- 0
XHWK.WKTool/DAL/Interface.cs Ver arquivo

@@ -294,6 +294,7 @@ namespace XHWK.WKTool.DAL
294 294
             }
295 295
             catch (Exception ex)
296 296
             {
297
+                APP.ServerMsg = "网络异常!";
297 298
                 LogHelper.WriteErrLog("【调用接口(RegisterController)】错误日志:" + ex.Message, ex);
298 299
                 return 1;
299 300
             }

+ 18
- 0
XHWK.WKTool/UploadWindow.xaml.cs Ver arquivo

@@ -283,6 +283,24 @@ namespace XHWK.WKTool
283 283
                     {
284 284
                         Dispatcher.Invoke(() =>
285 285
                         {
286
+                            foreach (Model_WKData Vdata in APP.WKDataList)
287
+                            {
288
+                                if (Vdata.VideoList == null)
289
+                                {
290
+                                    continue;
291
+                                }
292
+
293
+                                foreach (Model_Video videoinfo in Vdata.VideoList)
294
+                                {
295
+                                    if (videoinfo.FileGuid == Guid)
296
+                                    {
297
+                                        videoinfo.IsUpload = true;
298
+                                        break;
299
+                                    }
300
+                                }
301
+                            }
302
+
303
+
286 304
                             btnStart.IsEnabled = true;
287 305
                             book_list.IsEnabled = true;
288 306
                             cmbTeachingMaterial.IsEnabled = true;

Carregando…
Cancelar
Salvar