Beispiel #1
0
 protected override string[] FormatExportRecord(object obj)
 {
     BenQGuru.eMES.Domain.OutSourcing.OutMO mo = (BenQGuru.eMES.Domain.OutSourcing.OutMO)obj;
     string[] str = null;
     if (this.rdbType.SelectedValue == "LOT")
     {
         str = new string[] {
             mo.StartSN,
             mo.ItemCode,
             mo.PlanQty.ToString(),
             mo.Qty.ToString(),
             mo.OutFactory,
             FormatHelper.ToDateString(mo.CompleteDate),
             mo.Memo
         };
     }
     else
     {
         str = new string[] {
             mo.MOCode,
             mo.ItemCode,
             mo.PlanQty.ToString(),
             mo.Qty.ToString(),
             mo.OutFactory,
             FormatHelper.ToDateString(mo.CompleteDate),
             mo.StartSN,
             mo.EndSN,
             mo.Memo
         };
     }
     return(str);
 }
Beispiel #2
0
 protected override Infragistics.WebUI.UltraWebGrid.UltraGridRow GetGridRow(object obj)
 {
     BenQGuru.eMES.Domain.OutSourcing.OutMO mo = (BenQGuru.eMES.Domain.OutSourcing.OutMO)obj;
     object[] objs = null;
     if (this.rdbType.SelectedValue == "LOT")
     {
         objs = new object[] {
             mo.StartSN,
             mo.ItemCode,
             mo.PlanQty,
             mo.Qty,
             mo.OutFactory,
             FormatHelper.ToDateString(mo.CompleteDate),
             mo.Memo
         };
     }
     else
     {
         objs = new object[] {
             mo.MOCode,
             mo.ItemCode,
             mo.PlanQty,
             mo.Qty,
             mo.OutFactory,
             FormatHelper.ToDateString(mo.CompleteDate),
             mo.StartSN,
             mo.EndSN,
             mo.Memo
         };
     }
     return(new Infragistics.WebUI.UltraWebGrid.UltraGridRow(objs));
 }