private List <WTQ1_TransferRequestDetails> GetTransferRequestDetail()
        {
            var list = TransferRequestDetails.Where(t => t.Quantity > 0);

            return(list.Select(d => new WTQ1_TransferRequestDetails()
            {
                ItemCode = d.ItemCode,
                Quantity = d.Quantity,
                WhsCode = Config.WhsCode,
                ItemName = d.ItemName,
                InvntryUom = d.InvntryUom,
                OnHand1 = d.OnHand1,
                CreatedDateL = DateTime.Now,
                CreatedByL = Config.CurrentUser,
                ModifiedByL = Config.CurrentUser,
                ModifiedDateL = DateTime.Now,
            }).ToList());
        }
        private void AddTransferRequestDetail()
        {
            var list = TransferRequestDetails.Where(t => t.Quantity > 0);

            foreach (var detail in list.Select(d => new WTQ1_TransferRequestDetails()
            {
                ItemCode = d.ItemCode,
                Quantity = d.Quantity,
                WhsCode = Config.WhsCode,
                ItemName = d.ItemName,
                InvntryUom = d.InvntryUom,
                OnHand1 = d.OnHand1,
                CreatedDateL = DateTime.Now,
                CreatedByL = Config.CurrentUser,
                ModifiedByL = Config.CurrentUser,
                ModifiedDateL = DateTime.Now,
            }))
            {
                TransferRequest.WTQ1_TransferRequestDetails.Add(detail);
            }
        }