private void btnSelectFileID_Click(object sender, EventArgs e)
        {
            frmSelectFile frmSelectFile = new frmSelectFile();

            frmSelectFile.ShowDialog();



            if (frmSelectFile.Tag != null)
            {
                //取出选择的文件Guid
                List <string> lstGuid = frmSelectFile.Tag as List <string>;


                //选择的文件填充
                if (lstGuid.Count > 0)
                {
                    FileDataManage FileDataManage = new FileDataManage();
                    FileData       filedata       = new FileData();
                    filedata = FileDataManage.GetFileData(lstGuid[0]);

                    txtFileID.Text       = filedata.FileID;
                    txtFileID.Tag        = filedata.FileGuID;
                    txtFileName.Text     = filedata.FileName;
                    txtOldVersionID.Text = filedata.VersionID;
                }
            }
        }
        private void btnAddDetail_Click(object sender, EventArgs e)
        {
            frmSelectFile frmSelectFile = new frmSelectFile();

            frmSelectFile.ShowDialog();



            if (frmSelectFile.Tag != null)
            {
                //取出选择的文件Guid
                List <string> lstGuid = frmSelectFile.Tag as List <string>;


                //选择的文件填充
                if (lstGuid.Count > 0)
                {
                    //得到文件的信息
                    for (int i = 0; i < lstGuid.Count; i++)
                    {
                        //判断当前文件是否已经选在表格中了
                        if (IsExistFileGuID(lstGuid[i]) == false)
                        {
                            FileData filedata = new FileData();
                            filedata = FileDataManage.GetFileData(lstGuid[i]);


                            //填充数据
                            gridView1.AddNewRow();
                            gridView1.SetFocusedRowCellValue(gridFileGuID, filedata.FileGuID);
                            gridView1.SetFocusedRowCellValue(gridFileID, filedata.FileID);
                            gridView1.SetFocusedRowCellValue(gridFileName, filedata.FileName);
                            gridView1.SetFocusedRowCellValue(gridVersionID, filedata.VersionID);
                            gridView1.SetFocusedRowCellValue(gridPublishDate, DateTime.Parse(filedata.PublishDate.ToString()).ToString("yyyy-MM-dd"));
                            gridView1.SetFocusedRowCellValue(gridFileTypeName, FileDataManage.GetFileTypeName(filedata.FileType));
                            gridView1.SetFocusedRowCellValue(gridControlTypeName, base.GetBasicDataNameByID(filedata.ControlType));
                        }
                    }
                }
            }
        }