protected override string[] FormatExportRecord(object obj) { BenQGuru.eMES.Domain.OutSourcing.OutWIP wip = (BenQGuru.eMES.Domain.OutSourcing.OutWIP)obj; string[] str = null; if (this.rdbType.SelectedValue == "LOT") { str = new string[] { wip.StartSN, wip.OPCode, wip.Qty.ToString(), wip.ErrorDescription, wip.StepSequenceCode, wip.ShiftDate }; } else { str = new string[] { wip.MOCode, wip.StartSN, wip.EndSN, wip.OPCode, wip.ProductStatus, wip.ErrorDescription, wip.StepSequenceCode, wip.ShiftDate }; } return(str); }
protected override Infragistics.WebUI.UltraWebGrid.UltraGridRow GetGridRow(object obj) { BenQGuru.eMES.Domain.OutSourcing.OutWIP wip = (BenQGuru.eMES.Domain.OutSourcing.OutWIP)obj; object[] objs = null; if (this.rdbType.SelectedValue == "LOT") { objs = new object[] { wip.StartSN, wip.OPCode, wip.Qty, wip.ErrorDescription, wip.StepSequenceCode, wip.ShiftDate }; } else { objs = new object[] { wip.MOCode, wip.StartSN, wip.EndSN, wip.OPCode, wip.ProductStatus, wip.ErrorDescription, wip.StepSequenceCode, wip.ShiftDate }; } return(new Infragistics.WebUI.UltraWebGrid.UltraGridRow(objs)); }