Browse Source

上传

tags/录制修改前
zhangxueyang 4 years ago
parent
commit
bd42287623
2 changed files with 9 additions and 1 deletions
  1. 1
    0
      XHWK.WKTool/DAL/DAL_Upload.cs
  2. 8
    1
      XHWK.WKTool/FileDirectoryWindow.xaml.cs

+ 1
- 0
XHWK.WKTool/DAL/DAL_Upload.cs View File

172
                         bool isres = ReportFileMerge(APP.UserInfo.Schoolid.ToString() + "/resource", VideoInfo.FileGuid, out ErrMessage);
172
                         bool isres = ReportFileMerge(APP.UserInfo.Schoolid.ToString() + "/resource", VideoInfo.FileGuid, out ErrMessage);
173
                         if (isres)
173
                         if (isres)
174
                         {
174
                         {
175
+                            VideoInfo.IsUpload = true;
175
                             return true;
176
                             return true;
176
                         }
177
                         }
177
                         else
178
                         else

+ 8
- 1
XHWK.WKTool/FileDirectoryWindow.xaml.cs View File

87
                     Colour = colour,
87
                     Colour = colour,
88
                     Visi = vis,
88
                     Visi = vis,
89
                     Coll=cos,
89
                     Coll=cos,
90
+                    FileGuid= videoinfo.FileGuid,
90
                 }) ; ; 
91
                 }) ; ; 
91
                 i++;
92
                 i++;
92
             }
93
             }
139
             {
140
             {
140
                 if (buttons[i] == sender)
141
                 if (buttons[i] == sender)
141
                 {
142
                 {
142
-                 
143
+                    DAL_Upload dAL_Upload = new DAL_Upload();
144
+                    string msg = string.Empty;
145
+                    dAL_Upload.UploadVideo(pageData.menuList[i].FileGuid,out msg);
143
                 }
146
                 }
144
             }
147
             }
145
         }
148
         }
381
                 OnPropertyChanged("Coll");
384
                 OnPropertyChanged("Coll");
382
             }
385
             }
383
         }
386
         }
387
+        /// <summary>
388
+        /// 唯一编号
389
+        /// </summary>
390
+        public string FileGuid { get; set; } 
384
     }
391
     }
385
 }
392
 }

Loading…
Cancel
Save