Example #1
0
 protected override string[] FormatExportRecord(object obj)
 {
     BenQGuru.eMES.Domain.OutSourcing.OutWIPMaterial wip = (BenQGuru.eMES.Domain.OutSourcing.OutWIPMaterial)obj;
     string[] str = null;
     if (this.rdbType.SelectedValue == "LOT")
     {
         str = new string[] {
             wip.StartSN,
             wip.MaterialCode,
             wip.DateCode,
             wip.Supplier
         };
     }
     else
     {
         str = new string[] {
             wip.MOCode,
             wip.StartSN,
             wip.EndSN,
             wip.MaterialCode,
             wip.DateCode,
             wip.Supplier
         };
     }
     return(str);
 }
Example #2
0
 protected override Infragistics.WebUI.UltraWebGrid.UltraGridRow GetGridRow(object obj)
 {
     BenQGuru.eMES.Domain.OutSourcing.OutWIPMaterial wip = (BenQGuru.eMES.Domain.OutSourcing.OutWIPMaterial)obj;
     object[] objs = null;
     if (this.rdbType.SelectedValue == "LOT")
     {
         objs = new object[] {
             wip.StartSN,
             wip.MaterialCode,
             wip.DateCode,
             wip.Supplier
         };
     }
     else
     {
         objs = new object[] {
             wip.MOCode,
             wip.StartSN,
             wip.EndSN,
             wip.MaterialCode,
             wip.DateCode,
             wip.Supplier
         };
     }
     return(new Infragistics.WebUI.UltraWebGrid.UltraGridRow(objs));
 }