Browse Source

上传增加字节大小

tags/录制修改前
zhangxueyang 4 years ago
parent
commit
86112b29a5

+ 13
- 0
XHWK.WKTool/FileDirectoryWindow.xaml.cs View File

@@ -550,6 +550,19 @@ namespace XHWK.WKTool
550 550
                 OnPropertyChanged("VideoSize");
551 551
             }
552 552
         }
553
+        private long _videoSizes;
554
+        /// <summary>
555
+        /// 视频大小
556
+        /// </summary>
557
+        public long VideoSizes
558
+        {
559
+            get => _videoSizes;
560
+            set
561
+            {
562
+                _videoSizes = value;
563
+                OnPropertyChanged("VideoSizes");
564
+            }
565
+        }
553 566
         private string _videoTime;
554 567
         /// <summary>
555 568
         /// 日期

+ 1
- 1
XHWK.WKTool/UploadWindow.xaml.cs View File

@@ -223,7 +223,7 @@ namespace XHWK.WKTool
223 223
                         resourceclass = 2,
224 224
                         resourcecover = APP.ResourceAddTwo.coverpath,
225 225
                         resourcename = Resourcename,
226
-                        resourcesize = Resourcesize,//zxy 文件大小
226
+                        resourcesize = Resourcesize,
227 227
                         resourcetype = 0,
228 228
                         resourceurl = APP.ResourceAddTwo.videopath,
229 229
                         schoolid = APP.UserInfo.Schoolid

+ 3
- 2
XHWK.WKTool/XHMicroLessonSystemWindow.xaml.cs View File

@@ -1211,7 +1211,8 @@ namespace XHWK.WKTool
1211 1211
                         Visi = vis,
1212 1212
                         Coll = cos,
1213 1213
                         FileGuid = videoinfo.FileGuid,
1214
-                        VideoType = videoinfo.VideoType.ToString()
1214
+                        VideoType = videoinfo.VideoType.ToString(),
1215
+                        VideoSizes= videoinfo.VideoSizebyte
1215 1216
                     }); ;
1216 1217
                 }
1217 1218
                 i++;
@@ -1331,7 +1332,7 @@ namespace XHWK.WKTool
1331 1332
                             };
1332 1333
                         }
1333 1334
                         //long size = Convert.ToInt64(FileToolsCommon.GetFileSizeByMB(pageData.menuList[i].FilePath));
1334
-                        APP.W_UploadWindow.Initialize(pageData.menuList[i].VideoName, 11110 /*Convert.ToInt64(pageData.menuList[i].VideoSize)*/, pageData.menuList[i].VideoType, pageData.menuList[i].FileGuid);
1335
+                        APP.W_UploadWindow.Initialize(pageData.menuList[i].VideoName, pageData.menuList[i].VideoSizes, pageData.menuList[i].VideoType, pageData.menuList[i].FileGuid);
1335 1336
                         APP.W_UploadWindow.ShowDialog();
1336 1337
 
1337 1338
                     }

Loading…
Cancel
Save