public static List<ReceiptInvoiceDetail> ToList(BLL.ReceiptInvoiceDetail v)
        {
            List<ReceiptInvoiceDetail> list = new List<ReceiptInvoiceDetail>();
            while (!v.EOF)
            {
                ReceiptInvoiceDetail t = new ReceiptInvoiceDetail();
                if (!v.IsColumnNull("ID"))
                    t.ID = v.ID;
                if (!v.IsColumnNull("ReceiptInvoiceID"))
                    t.ReceiptInvoiceID = v.ReceiptInvoiceID;
                if (!v.IsColumnNull("ItemID"))
                    t.ItemID = v.ItemID;
                if (!v.IsColumnNull("HubID"))
                    t.HubID = v.HubID;
                if (!v.IsColumnNull("RequisitionNo"))
                    t.RequisitionNo = v.RequisitionNo;
                if (!v.IsColumnNull("STVNo"))
                    t.STVNo = v.STVNo;
                if (!v.IsColumnNull("AccountID"))
                    t.AccountID = v.AccountID;
                if (!v.IsColumnNull("ManufactureID"))
                    t.ManufactureID = v.ManufactureID;
                if (!v.IsColumnNull("Qty"))
                    t.Qty = v.Qty;
                if (!v.IsColumnNull("Batch"))
                    t.Batch = v.Batch;
                if (!v.IsColumnNull("Expiry"))
                    t.Expiry = v.Expiry;
                if (!v.IsColumnNull("ReceiptInvoiceType"))
                    t.ReceiptInvoiceType = v.ReceiptInvoiceType;
                if (!v.IsColumnNull("UnitCost"))
                    t.UnitCost = v.UnitCost;
                if (!v.IsColumnNull("TotalCost"))
                    t.TotalCost = v.TotalCost;
                if (!v.IsColumnNull("Margin"))
                    t.Margin = v.Margin;

                list.Add(t);
                v.MoveNext();
            }
            return list;
        }
        public static List <ReceiptInvoiceDetail> ToList(BLL.ReceiptInvoiceDetail v)
        {
            List <ReceiptInvoiceDetail> list = new List <ReceiptInvoiceDetail>();

            while (!v.EOF)
            {
                ReceiptInvoiceDetail t = new ReceiptInvoiceDetail();
                if (!v.IsColumnNull("ID"))
                {
                    t.ID = v.ID;
                }
                if (!v.IsColumnNull("ReceiptInvoiceID"))
                {
                    t.ReceiptInvoiceID = v.ReceiptInvoiceID;
                }
                if (!v.IsColumnNull("ItemID"))
                {
                    t.ItemID = v.ItemID;
                }
                if (!v.IsColumnNull("HubID"))
                {
                    t.HubID = v.HubID;
                }
                if (!v.IsColumnNull("RequisitionNo"))
                {
                    t.RequisitionNo = v.RequisitionNo;
                }
                if (!v.IsColumnNull("STVNo"))
                {
                    t.STVNo = v.STVNo;
                }
                if (!v.IsColumnNull("AccountID"))
                {
                    t.AccountID = v.AccountID;
                }
                if (!v.IsColumnNull("ManufactureID"))
                {
                    t.ManufactureID = v.ManufactureID;
                }
                if (!v.IsColumnNull("Qty"))
                {
                    t.Qty = v.Qty;
                }
                if (!v.IsColumnNull("Batch"))
                {
                    t.Batch = v.Batch;
                }
                if (!v.IsColumnNull("Expiry"))
                {
                    t.Expiry = v.Expiry;
                }
                if (!v.IsColumnNull("ReceiptInvoiceType"))
                {
                    t.ReceiptInvoiceType = v.ReceiptInvoiceType;
                }
                if (!v.IsColumnNull("UnitCost"))
                {
                    t.UnitCost = v.UnitCost;
                }
                if (!v.IsColumnNull("TotalCost"))
                {
                    t.TotalCost = v.TotalCost;
                }
                if (!v.IsColumnNull("Margin"))
                {
                    t.Margin = v.Margin;
                }

                list.Add(t);
                v.MoveNext();
            }
            return(list);
        }