Beispiel #1
0
 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)
         };
     }
 }
Beispiel #2
0
 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)
         }
                              );
     }
 }
Beispiel #3
0
 public void DeletePreTestValue(PreTestValue preTestValue)
 {
     this._helper.DeleteDomainObject(preTestValue);
 }
Beispiel #4
0
 public void UpdatePreTestValue(PreTestValue preTestValue)
 {
     this._helper.UpdateDomainObject(preTestValue);
 }
Beispiel #5
0
 public void AddPreTestValue(PreTestValue preTestValue)
 {
     this._helper.AddDomainObject(preTestValue);
 }