Browse Source

上传增加字节大小

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

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

550
                 OnPropertyChanged("VideoSize");
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
         private string _videoTime;
566
         private string _videoTime;
554
         /// <summary>
567
         /// <summary>
555
         /// 日期
568
         /// 日期

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

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

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

1211
                         Visi = vis,
1211
                         Visi = vis,
1212
                         Coll = cos,
1212
                         Coll = cos,
1213
                         FileGuid = videoinfo.FileGuid,
1213
                         FileGuid = videoinfo.FileGuid,
1214
-                        VideoType = videoinfo.VideoType.ToString()
1214
+                        VideoType = videoinfo.VideoType.ToString(),
1215
+                        VideoSizes= videoinfo.VideoSizebyte
1215
                     }); ;
1216
                     }); ;
1216
                 }
1217
                 }
1217
                 i++;
1218
                 i++;
1331
                             };
1332
                             };
1332
                         }
1333
                         }
1333
                         //long size = Convert.ToInt64(FileToolsCommon.GetFileSizeByMB(pageData.menuList[i].FilePath));
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
                         APP.W_UploadWindow.ShowDialog();
1336
                         APP.W_UploadWindow.ShowDialog();
1336
 
1337
 
1337
                     }
1338
                     }

Loading…
Cancel
Save