Ejemplo n.º 1
0
 private void _helper_DomainObjectToExportRow(object sender, EventArgs e)
 {
     if ((e as DomainObjectToExportRowEventArgs).DomainObject != null)
     {
         if (chbItemDetail.Checked)
         {
             ItemTracingForShelf obj = (e as DomainObjectToExportRowEventArgs).DomainObject as ItemTracingForShelf;
             (e as DomainObjectToExportRowEventArgs).ExportRow =
                 new string[] {
                 obj.MaintainUser,                                                        //车号
                 obj.RCard,
                 obj.MOCode,
                 obj.ItemCode,
                 this.languageComponent1.GetString(obj.ItemStatus),
             };
         }
         else
         {
             ShelfActionListForQuery shelfal = (e as DomainObjectToExportRowEventArgs).DomainObject as ShelfActionListForQuery;
             (e as DomainObjectToExportRowEventArgs).ExportRow =
                 new string[] {
                 shelfal.ShelfNO.ToString(),
                     FormatHelper.ToDateString(shelfal.BurnInDate),
                 FormatHelper.ToTimeString(shelfal.BurnInTime),
                 shelfal.BurnInUser.ToString(),
                 shelfal.BurnInTimePeriod.ToString(),
                 FormatHelper.ToDateString(shelfal.BurnOutDate),
                 FormatHelper.ToTimeString(shelfal.BurnOutTIme),
                 shelfal.BurnOutUser.ToString(),
                 shelfal.eAttribute1.ToString(),
                 shelfal.ResourceCode.ToString(),
                 shelfal.StepSequenceCode.ToString(),
             };
         }
     }
 }
Ejemplo n.º 2
0
 private void _helper_DomainObjectToGridRow(object sender, EventArgs e)
 {
     if ((e as DomainObjectToGridRowEventArgs).DomainObject != null)
     {
         ShelfActionListForQuery shelfal = (e as DomainObjectToGridRowEventArgs).DomainObject as ShelfActionListForQuery;
         (e as DomainObjectToGridRowEventArgs).GridRow = new Infragistics.WebUI.UltraWebGrid.UltraGridRow(
             new object[] {
             shelfal.PKID.ToString(),
             shelfal.ShelfNO.ToString(),
             FormatHelper.ToDateString(shelfal.BurnInDate),
             FormatHelper.ToTimeString(shelfal.BurnInTime),
             shelfal.BurnInUser.ToString(),
             shelfal.BurnInTimePeriod.ToString(),
             FormatHelper.ToDateString(shelfal.BurnOutDate),
             FormatHelper.ToTimeString(shelfal.BurnOutTIme),
             shelfal.BurnOutUser.ToString(),
             shelfal.eAttribute1.ToString(),
             shelfal.ResourceCode.ToString(),
             shelfal.StepSequenceCode.ToString(),
             ""
         }
             );
     }
 }