private void _helper_DomainObjectToExportRow(object sender, EventArgs e) { if ((e as DomainObjectToExportRowEventArgs).DomainObject != null) { OQCFirstHandingYield obj = (e as DomainObjectToExportRowEventArgs).DomainObject as OQCFirstHandingYield; (e as DomainObjectToExportRowEventArgs).ExportRow = new string[] { obj.ModelCode, obj.ItemCode, obj.FirstHandingAmount.ToString(), obj.FirstHandingYieldAmount.ToString(), System.Decimal.Round((obj.FirstHandingYieldPercent * 100), 2) + "%" }; } }
private void _helper_DomainObjectToGridRow(object sender, EventArgs e) { if ((e as DomainObjectToGridRowEventArgs).DomainObject != null) { OQCFirstHandingYield obj = (e as DomainObjectToGridRowEventArgs).DomainObject as OQCFirstHandingYield; (e as DomainObjectToGridRowEventArgs).GridRow = new UltraGridRow(new object[] { obj.ModelCode, obj.ItemCode, obj.FirstHandingAmount, obj.FirstHandingYieldAmount, System.Decimal.Round((obj.FirstHandingYieldPercent * 100), 2) + "%", "" } ); } }