Exemplo n.º 1
0
 private void MyBind()
 {
     if (Mid > 0)
     {
         videoMod = videoBll.SelReturnModel(Mid);
         Source   = videoMod.VPath;
     }
     ImgWater_T.Text   = WaterModuleConfig.WaterConfig.imgLogo;
     ImgRPT.DataSource = GetWaterImgDT();
     ImgRPT.DataBind();
 }
Exemplo n.º 2
0
        protected void Conver_Btn_Click(object sender, EventArgs e)
        {
            string        fpath = Server.MapPath(Source_T.Text);
            OutputPackage model = conver.ConvertToFLV(Source);

            videoMod       = videoBll.SelReturnModel(Mid);
            videoMod.VName = Path.GetFileName(model.VPath);
            videoMod.VPath = model.VPath;
            videoBll.UpdateByID(videoMod);
            Source = model.VPath;
            function.WriteSuccessMsg("转换完成!");
        }
Exemplo n.º 3
0
        protected void Water_Btn_Click(object sender, EventArgs e)
        {
            //先将图片拷至目标文件夹,再开始
            string fname = "wat_" + Path.GetFileName(Source);
            string ppath = conver.WaterMark(Source, SourceDir + fname, ImgWater_T.Text, 2);

            Source         = function.PToV(ppath);
            videoMod       = videoBll.SelReturnModel(Mid);
            videoMod.VPath = Source;
            videoBll.UpdateByID(videoMod);
            function.WriteSuccessMsg("水印添加完成", "", 0);
        }
 protected void EGV_RowCommand(object sender, GridViewCommandEventArgs e)
 {
     switch (e.CommandName)
     {
     case "del2":
         int             id       = Convert.ToInt32(e.CommandArgument);
         M_Content_Video videoMod = videoBll.SelReturnModel(id);
         videoBll.Del(id);
         SafeSC.DelFile(videoMod.VPath);
         break;
     }
     MyBind();
 }
        protected void SaveInfo_B_Click(object sender, EventArgs e)
        {
            M_Content_Video model = videoBll.SelReturnModel(CID);

            model.VName     = VName_T.Text;
            model.VPath     = VPath_T.Text;
            model.VSize     = VSize_T.Text;
            model.VTime     = VTime_T.Text;
            model.Desc      = Desc_T.Text;
            model.Thumbnail = Thum_Hid.Value;
            videoBll.UpdateByID(model);
            Response.Redirect("VideoList.aspx");
        }
        public void MyBind()
        {
            M_Content_Video model = videoBll.SelReturnModel(CID);

            ID_L.Text       = model.ID.ToString();
            VName_T.Text    = model.VName;
            VPath_T.Text    = model.VPath;
            VSize_T.Text    = FileSystemObject.GetFileSizeByPath(model.VPath);
            VTime_T.Text    = model.VTime;
            UserName_L.Text = buser.SelReturnModel(model.UserID).UserName;
            Desc_T.Text     = model.Desc;
            Thum_Img.Src    = model.Thumbnail;
            Thum_Hid.Value  = model.Thumbnail;
        }