protected override string[] FormatExportRecord(object obj)
        {
            SAPMaterialTransDesc item = obj as SAPMaterialTransDesc;

            return(new string[] {
                item.MaterialLotNo,
                item.PostSeq.ToString(),
                item.ItemCode,
                item.MaterialDescription,
                item.VendorCode,
                item.MoCode,
                item.TransQTY.ToString(),
                item.ReceiveMemo,
                FormatHelper.ToDateString(item.AccountDate),
                FormatHelper.ToDateString(item.VoucherDate),
                item.OrganizationID.ToString(),
                item.FRMStorageID,
                item.TOStorageID,
                item.Unit,
                item.Flag,
                item.ToItemCode,
                item.SAPCode,
                item.ErrorMessage
            });
        }
        protected override Infragistics.WebUI.UltraWebGrid.UltraGridRow GetGridRow(object obj)
        {
            SAPMaterialTransDesc item = obj as SAPMaterialTransDesc;

            return(new Infragistics.WebUI.UltraWebGrid.UltraGridRow(
                       new object[] {
                item.MaterialLotNo,
                item.PostSeq,
                item.ItemCode,
                item.MaterialDescription,
                item.VendorCode,
                item.MoCode,
                item.TransQTY,
                item.ReceiveMemo,
                FormatHelper.ToDateString(item.AccountDate),
                FormatHelper.ToDateString(item.VoucherDate),
                item.OrganizationID.ToString(),
                item.FRMStorageID,
                item.TOStorageID,
                item.Unit,
                item.Flag,
                item.ToItemCode,
                item.SAPCode,
                string.Compare(item.Flag, "SAP", true) == 0 ? "" : item.ErrorMessage,
                ""
            }));
        }