예제 #1
0
        /// <summary>
        /// 填充实体信息
        /// </summary>
        protected override void FillModelInfo()
        {
            XVFileListInfo info = this.m_CurrentModel as XVFileListInfo;

            if (this.m_EditStatus == XEditStatus.AddNew)
            {
                info.RID = this.GetNewId();
                info.ID  = info.RID;
            }

            info.FileNo       = this.txtFileNo.Text;
            info.FileName     = this.txtFileName.Text;
            info.FileDesc     = this.txtFileDesc.Text;
            info.FolderTypeId = this.txtFolderTypeId.ValueMember;
            info.FolderType   = this.txtFolderTypeId.DisplayMember;
            info.FileTypeId   = this.txtFileTypeId.ValueMember;
            info.FileType     = this.txtFileTypeId.DisplayMember;
            info.FileLevelId  = this.txtFileLevelId.ValueMember;
            info.FileLevel    = this.txtFileLevelId.DisplayMember;
            info.FileStateId  = this.txtFileStateId.ValueMember;
            info.FileState    = this.txtFileStateId.DisplayMember;
            info.PageNum      = XHelper.GetInt(this.nebPageNum.Value);
            info.UserId       = this.txtUserId.Text;
            info.DeptId       = this.txtDeptId.Text;
            info.Remark       = this.txtRemark.Text;

            base.FillModelInfo();
        }
예제 #2
0
        protected override void FillRowViewInfos(XModelBase model, System.Data.DataRow modelRow)
        {
            XVFileListInfo fileListInfo = model as XVFileListInfo;

            fileListInfo.FileType   = XHelper.GetString(modelRow["FileType"]);
            fileListInfo.FileLevel  = XHelper.GetString(modelRow["FileLevel"]);
            fileListInfo.FileState  = XHelper.GetString(modelRow["FileState"]);
            fileListInfo.FolderType = XHelper.GetString(modelRow["FolderType"]);
            fileListInfo.AtchSize   = XHelper.GetDouble(modelRow["AtchSize"]);
            fileListInfo.UploadTime = XHelper.GetString(modelRow["UploadTime"]);
        }
예제 #3
0
        /// <summary>
        /// 设置修改时的默认值
        /// </summary>
        protected override void SetDefaultValue()
        {
            XVFileListInfo info = this.m_CurrentModel as XVFileListInfo;

            this.txtFileNo.Text   = info.FileNo;
            this.txtFileName.Text = info.FileName;
            this.txtFileDesc.Text = info.FileDesc;
            if (info.FolderTypeId != string.Empty)
            {
                this.txtFolderTypeId.Text          = info.FolderType;
                this.txtFolderTypeId.DisplayMember = info.FolderType;
                this.txtFolderTypeId.ValueMember   = info.FolderTypeId;
            }
            if (info.FileTypeId != string.Empty)
            {
                this.txtFileTypeId.Text          = info.FileType;
                this.txtFileTypeId.DisplayMember = info.FileType;
                this.txtFileTypeId.ValueMember   = info.FileTypeId;
            }
            if (info.FileLevelId != string.Empty)
            {
                this.txtFileLevelId.Text          = info.FileLevel;
                this.txtFileLevelId.DisplayMember = info.FileLevel;
                this.txtFileLevelId.ValueMember   = info.FileLevelId;
            }
            if (info.FileStateId != string.Empty)
            {
                this.txtFileStateId.Text          = info.FileState;
                this.txtFileStateId.DisplayMember = info.FileState;
                this.txtFileStateId.ValueMember   = info.FileStateId;
            }
            this.nebPageNum.Value = info.PageNum;
            this.txtUserId.Text   = info.UserId;
            this.txtDeptId.Text   = info.DeptId;
            this.txtRemark.Text   = info.Remark;
        }