protected void btnAddFile_Click(object sender, EventArgs e)
        {
            if (MapID < 0)
            {
                return;
            }
            if (Request.Files.Count == 0)
            {
                return;
            }
            HttpPostedFile postFile = Request.Files["0"];

            if ((postFile.FileName == "") || (postFile.FileName == null))
            {
                return;
            }
            int fileID = -1;

            CommonUse.PushContPostFile pf = new CommonUse.PushContPostFile(MapID);
            string sret = pf.SaveFile(this, postFile, 1, 1, Utils.GetInt(ddContentType.SelectedValue), ref fileID);

            if (sret != String.Empty)
            {
                lbStatus.Text = sret;
            }
            GridBindVariant();
        }
        protected void btnDeleteFile_Click(object sender, EventArgs e)
        {
            string sIDs = GetCheckedValues(Config.MainCheckboxName);

            if (sIDs == String.Empty)
            {
                return;
            }
            CommonUse.PushContPostFile pf = new CommonUse.PushContPostFile(MapID);
            pf.DeleteFile(this, sIDs);
            GridBindVariant();
        }
        private void vGrid_UpdateCommand(object source, DataGridCommandEventArgs e)
        {
            vGrid.EditItemIndex = -1;
            if (Request.Files.Count == 0)
            {
                return;
            }
            CommonUse.PushContPostFile pf       = new CommonUse.PushContPostFile(MapID);
            HttpPostedFile             postFile = Request.Files[e.Item.Cells[2].Text];

            DropDownList CustomDDL = ( DropDownList)e.Item.Cells[4].Controls[0];
            int          idx       = Utils.GetInt(CustomDDL.SelectedValue);

            int    fileID = Utils.GetInt(e.Item.Cells[2].Text);
            string sret   = pf.SaveFile(this, postFile, Utils.GetInt(((TextBox)e.Item.Cells[7].Controls[0]).Text),
                                        Utils.GetInt(((TextBox)e.Item.Cells[8].Controls[0]).Text), idx, ref fileID);

            if (sret != String.Empty)
            {
                lbStatus.Text = sret;
            }
            GridBindVariant();
        }