protected override void FillRowViewInfos(XModelBase model, System.Data.DataRow modelRow) { XVStandCheckRecordInfo info = model as XVStandCheckRecordInfo; info.StandNo = XHelper.GetString(modelRow["StandNo"]); info.StandName = XHelper.GetString(modelRow["StandName"]); }
/// <summary> /// 设置修改时的默认值 /// </summary> protected override void SetDefaultValue() { XVStandCheckRecordInfo info = this.m_CurrentModel as XVStandCheckRecordInfo; if (info.StandId != string.Empty) { this.txtStandId.Text = info.StandName; this.txtStandId.ValueMember = info.StandId; this.txtStandId.DisplayMember = info.StandName; } this.txtCheckUserName.Text = info.CheckUserName; this.txtCheckDesc.Text = info.CheckDesc; this.dtCheckDate.Value = XHelper.GetDateTime(info.CheckDate); this.dtNextCheckDate.Value = XHelper.GetDateTime(info.NextCheckDate); this.txtRemark.Text = info.Remark; }
/// <summary> /// 填充实体信息 /// </summary> protected override void FillModelInfo() { XVStandCheckRecordInfo info = this.m_CurrentModel as XVStandCheckRecordInfo; if (this.m_EditStatus == XEditStatus.AddNew || this.m_EditStatus == XEditStatus.AddContinue) { info.RID = this.GetNewId(); } info.StandId = this.txtStandId.ValueMember; info.StandName = this.txtStandId.DisplayMember; info.CheckUserName = this.txtCheckUserName.Text; info.CheckDesc = this.txtCheckDesc.Text; info.CheckDate = XHelper.GetFormatedDate(this.dtCheckDate.Value); info.NextCheckDate = XHelper.GetFormatedDate(this.dtNextCheckDate.Value); info.Remark = this.txtRemark.Text; base.FillModelInfo(); }