protected override string[] FormatExportRecord(object obj)
 {
     return(new string[] {
         ((ProductionProcess)obj).MOCode.ToString(),
         ((ProductionProcess)obj).RCard.ToString(),
         ((ProductionProcess)obj).RouteCode.ToString(),
         ((ProductionProcess)obj).OPCode.ToString(),
         this.languageComponent1.GetString(((ProductionProcess)obj).ItemStatus.ToString()),
         WebQueryHelper.GetOPResult(this.languageComponent1, ((ProductionProcess)obj).Action),
         ((ProductionProcess)obj).SegmentCode,
         ((ProductionProcess)obj).LineCode.ToString(),
         ((ProductionProcess)obj).ResCode.ToString(),
         FormatHelper.ToDateString(((ProductionProcess)obj).MaintainDate),
         FormatHelper.ToTimeString(((ProductionProcess)obj).MaintainTime),
         ((ProductionProcess)obj).MaintainUser.ToString(),
     }
            );
 }
Exemple #2
0
 private void _helper_DomainObjectToExportRow(object sender, EventArgs e)
 {
     if ((e as DomainObjectToExportRowEventArgsNew).DomainObject != null)
     {
         if (string.Compare(this.txtOperationCodeQuery.Text, "TS", true) != 0)
         {
             OnWipInfoDistributing obj = (e as DomainObjectToExportRowEventArgsNew).DomainObject as OnWipInfoDistributing;
             (e as DomainObjectToExportRowEventArgsNew).ExportRow =
                 new string[] {
                 this.txtItemCodeQuery.Text,
                 this.txtOperationCodeQuery.Text,
                 this.txtResourceCodeQuery.Text,
                 this.txtMoCodeQuery.Text,
                 obj.RunningCard,
                 this.languageComponent1.GetString(obj.ProductStatus),
                 WebQueryHelper.GetOPResult(this.languageComponent1, obj.Action),
                 FormatHelper.ToDateString(obj.MaintainDate),
                 FormatHelper.ToTimeString(obj.MaintainTime),
                 obj.MaintainUser
             };
         }
         else
         {
             OnWipInfoDistributing obj = (e as DomainObjectToExportRowEventArgsNew).DomainObject as OnWipInfoDistributing;
             (e as DomainObjectToExportRowEventArgsNew).ExportRow =
                 new string[] {
                 this.txtItemCodeQuery.Text,
                 this.txtOperationCodeQuery.Text,
                 this.txtResourceCodeQuery.Text,
                 this.txtMoCodeQuery.Text,
                 obj.RunningCard,
                 this.languageComponent1.GetString(obj.ProductStatus),
                 this.languageComponent1.GetString("ItemTracing_ts"),
                 FormatHelper.ToDateString(obj.MaintainDate),
                 FormatHelper.ToTimeString(obj.MaintainTime),
                 obj.MaintainUser
             };
         }
     }
 }