Example #1
0
        /// <summary>
        /// 设置
        /// </summary>
        public override void EntitySet()
        {
            BugForm entity = new BugForm();

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

            txtFormNo.Text        = entity.FormNo.ToString();
            drpMakeOPID.EditValue = entity.MakeOPID;
            //txtMakeOPID.Text = entity.MakeOPID.ToString();
            txtMakeDate.DateTime = entity.MakeDate;
            txtConFormNo.Text    = entity.ConFormNo.ToString();
            drpBugType.EditValue = entity.BugType;
            //txtBugType.Text = entity.BugType.ToString();
            drpStatus.EditValue = entity.Status;
            //txtStatus.Text = entity.Status.ToString();
            txtRemark.Text       = entity.Remark.ToString();
            txtAutoOPID.Text     = entity.AutoOPID.ToString();
            txtAutoDate.DateTime = entity.AutoDate;


            if (!findFlag)
            {
            }
        }
Example #2
0
        /// <summary>
        /// 获得实体
        /// </summary>
        /// <returns></returns>
        private BugForm EntityGet()
        {
            BugForm entity = new BugForm();

            entity.ID = HTDataID;
            entity.SelectByID();
            entity.FormNo    = txtFormNo.Text.Trim();
            entity.MakeOPID  = SysConvert.ToString(drpMakeOPID.EditValue);
            entity.MakeDate  = txtMakeDate.DateTime.Date;
            entity.ConFormNo = txtConFormNo.Text.Trim();
            entity.BugType   = SysConvert.ToInt32(drpBugType.EditValue);
            entity.Status    = SysConvert.ToInt32(drpStatus.EditValue);
            entity.Remark    = txtRemark.Text.Trim();
            entity.AutoOPID  = txtAutoOPID.Text.Trim();
            entity.AutoDate  = txtAutoDate.DateTime.Date;

            return(entity);
        }