private void _helper_DomainObjectToExportRow(object sender, EventArgs e) { if ((e as DomainObjectToExportRowEventArgs).DomainObject != null) { PreTestValue obj = (e as DomainObjectToExportRowEventArgs).DomainObject as PreTestValue; (e as DomainObjectToExportRowEventArgs).ExportRow = new string[] { obj.RCard, obj.ItemCode, obj.MOCode, obj.SSCode, obj.ResCode, obj.Value.ToString(), obj.MaxValue.ToString(), obj.MinValue.ToString(), obj.TestResult, obj.MaintainUser, FormatHelper.ToDateString(obj.MaintainDate), FormatHelper.ToTimeString(obj.MaintainTime) }; } }
private void _helper_DomainObjectToGridRow(object sender, EventArgs e) { if ((e as DomainObjectToGridRowEventArgs).DomainObject != null) { //产品序列号、产品代码、工单代码、产线、资源、测试标准值,测试最大值,测试最小值、测试结果、测试人员,测试日期,测试时间 PreTestValue obj = (e as DomainObjectToGridRowEventArgs).DomainObject as PreTestValue; (e as DomainObjectToGridRowEventArgs).GridRow = new UltraGridRow(new object[] { obj.RCard, obj.ItemCode, obj.MOCode, obj.SSCode, obj.ResCode, obj.Value.ToString(), obj.MaxValue.ToString(), obj.MinValue.ToString(), obj.TestResult, obj.MaintainUser, FormatHelper.ToDateString(obj.MaintainDate), FormatHelper.ToTimeString(obj.MaintainTime) } ); } }
public void DeletePreTestValue(PreTestValue preTestValue) { this._helper.DeleteDomainObject(preTestValue); }
public void UpdatePreTestValue(PreTestValue preTestValue) { this._helper.UpdateDomainObject(preTestValue); }
public void AddPreTestValue(PreTestValue preTestValue) { this._helper.AddDomainObject(preTestValue); }