private void _helper_DomainObjectToExportRow(object sender, EventArgs e) { if ((e as DomainObjectToExportRowEventArgsNew).DomainObject != null) { QSMTNGList obj = (e as DomainObjectToExportRowEventArgsNew).DomainObject as QSMTNGList; (e as DomainObjectToExportRowEventArgsNew).ExportRow = new string[] { obj.ErrorCodeGroup, obj.ErrorCodeGroupDesc, obj.ErrorCode, obj.ErrorCodeDesc, this.languageComponent1.GetString(obj.AB), FormatHelper.ToDateString(obj.MaintainDate), FormatHelper.ToTimeString(obj.MaintainTime) }; } }
private void _helper_DomainObjectToGridRow(object sender, EventArgs e) { if ((e as DomainObjectToGridRowEventArgsNew).DomainObject != null) { QSMTNGList obj = (e as DomainObjectToGridRowEventArgsNew).DomainObject as QSMTNGList; DataRow row = DtSource.NewRow(); row["ErrorCodeGroup"] = obj.ErrorCodeGroup; row["ErrorCodeGroupDescription"] = obj.ErrorCodeGroupDesc; row["ErrorCode"] = obj.ErrorCode; row["ErrorCodeDescription"] = obj.ErrorCodeDesc; row["ErrorLocation"] = obj.ErrorLocation; row["ErrorSide"] = this.languageComponent1.GetString(obj.AB); row["CollectionDate"] = FormatHelper.ToDateString(obj.MaintainDate); row["CollectionTime"] = FormatHelper.ToTimeString(obj.MaintainTime); (e as DomainObjectToGridRowEventArgsNew).GridRow = row; } }