Exemplo n.º 1
0
        /// <summary>
        /// 设置
        /// </summary>
        public override void EntitySet()
        {
            ReportManage entity = new ReportManage();

            entity.ID = HTDataID;
            bool findFlag = entity.SelectByID();


            drpParentID.EditValue    = entity.ParentID;
            drpWinListID.EditValue   = entity.MenuID;
            txtWinListID.Text        = entity.WinListID.ToString();
            txtSeq.Text              = entity.Seq.ToString();
            txtFileName.Text         = entity.FileName.ToString();
            txtReportName.Text       = entity.ReportName.ToString();
            drpReportModelType.Text  = entity.ModelType.ToString();
            drpReportModel.EditValue = entity.ModelID;
            txtRemark.Text           = entity.Remark.ToString();
            txtHeadTypeID.Text       = entity.HeadTypeID.ToString();
            txtSubTypeID.Text        = entity.SubTypeID.ToString();
            OLDModelType             = entity.ModelID.ToString();
            txtWinID.Text            = entity.WinID.ToString();
            // HTDataSubmitFlag = entity.SubmitFlag;
            //HTDataDelFlag = entity.DelFlag;
            if (!findFlag)
            {
            }

            BindGridDts();
        }
Exemplo n.º 2
0
        /// <summary>
        /// 获得实体
        /// </summary>
        /// <returns></returns>
        private ReportManage EntityGet()
        {
            ReportManage entity = new ReportManage();

            entity.ID = HTDataID;
            entity.SelectByID();

            entity.ParentID   = SysConvert.ToInt32(drpParentID.EditValue);  //父节点ID
            entity.MenuID     = SysConvert.ToInt32(drpWinListID.EditValue); //菜单ID
            entity.WinListID  = SysConvert.ToInt32(txtWinListID.Text.Trim());
            entity.WinID      = SysConvert.ToInt32(txtWinID.Text.Trim());   //窗体ID Enum_WinForm
            entity.Seq        = SysConvert.ToInt32(txtSeq.Text.Trim());
            entity.ReportName = txtReportName.Text.Trim();
            entity.HeadTypeID = SysConvert.ToInt32(txtHeadTypeID.Text.Trim()); //窗体大类
            entity.SubTypeID  = SysConvert.ToInt32(txtSubTypeID.Text.Trim());  //窗体小类
            entity.FileName   = txtFileName.Text.Trim();

            //if (saveFileID == 0)
            if (entity.FileID == 0)
            {
                //生成报表文件名
                FormNoControlRule rule = new FormNoControlRule();
                entity.FileName = rule.RGetFormNo((int)FormNoControlEnum.报表流水号) + ".frx";
            }


            entity.ModelType = drpReportModelType.EditValue.ToString();
            entity.ModelID   = SysConvert.ToInt32(drpReportModel.EditValue);
            entity.Url       = "\\Report\\";
            entity.Remark    = txtRemark.Text.Trim();
            entity.MDate     = DateTime.Now;
            entity.MUser     = FParamConfig.LoginID;

            OLDModelType = entity.ModelID.ToString();
            return(entity);
        }