protected override DataRow GetGridRow(object obj) { SMTTargetQty targetQty = (SMTTargetQty)obj; //return new Infragistics.WebUI.UltraWebGrid.UltraGridRow( // new object[]{ // targetQty.MOCode, // targetQty.SSCode, // targetQty.SegmentCode, // targetQty.TPCode, // targetQty.TPDescription, // targetQty.TPQty, // targetQty.MaintainUser, // FormatHelper.ToDateString(targetQty.MaintainDate), // FormatHelper.ToTimeString(targetQty.MaintainTime) // }); DataRow row = this.DtSource.NewRow(); row["MOCode"] = targetQty.MOCode; row["sscode"] = targetQty.SSCode; row["SegmentCode"] = targetQty.SegmentCode; row["TimePeriodCode"] = targetQty.TPCode; row["TimePeriodDescription"] = targetQty.TPDescription; row["TargetQty"] = targetQty.TPQty; row["MaintainUser"] = targetQty.MaintainUser; row["MaintainDate"] = FormatHelper.ToDateString(targetQty.MaintainDate); row["MaintainTime"] = FormatHelper.ToTimeString(targetQty.MaintainTime); return(row); }
protected override string[] FormatExportRecord(object obj) { SMTTargetQty targetQty = (SMTTargetQty)obj; return(new string[] { targetQty.MOCode, targetQty.SSCode, targetQty.SegmentCode, targetQty.TPCode, targetQty.TPDescription, targetQty.TPQty.ToString(), targetQty.MaintainUser, FormatHelper.ToDateString(targetQty.MaintainDate), FormatHelper.ToTimeString(targetQty.MaintainTime) }); }