Ejemplo n.º 1
0
    protected void Button1_Click(object sender, EventArgs e)
    {
        TransferSearchCondition SearchCondition = new TransferSearchCondition();

        SearchCondition.PreferredLanguage = "E";

        SearchCondition.PickupCityCode = "LON";
        SearchCondition.PickupCode = "A";
        SearchCondition.PickupPointCode = "LHR";

        SearchCondition.DropOffCityCode = "LON";
        SearchCondition.DropOffCode = "A";
        //SearchCondition.DropOffPointCode = "LHR";

        SearchCondition.TransferDate = new DateTime(2008, 11, 2);
        SearchCondition.AlternateLanguage = "E";

        TransferProductSearcher Searcher = new TransferProductSearcher();
        IList<TransferProduct> Products = Searcher.Search(SearchCondition);

        if (Products != null)
        {
            Terms.Contract.Business_0407.GTATransferMaterial obj = (Terms.Contract.Business_0407.GTATransferMaterial)((TERMS.Business.Centers.ProductCenter.Components.TransferMaterial)((TERMS.Core.Product.ComponentGroup)Products[0].Items[0]).Items[0]);

            //string str = obj.Transfer
        }
    }
Ejemplo n.º 2
0
    public TERMS.Business.Centers.ProductCenter.Components.TransferProduct SearchTransfer(Terms.Sales.Business.TransferSearchCondition transferSearchCondition)
    {
        TERMS.Common.Search.TransferSearchCondition searchCondition = new TERMS.Common.Search.TransferSearchCondition();

        searchCondition.CurrencyCode = transferSearchCondition.CurrencyCode;
        searchCondition.CountryCode = transferSearchCondition.Country;
        searchCondition.PreferredLanguage = transferSearchCondition.PreferredLanguage;

        searchCondition.PickupCityCode = transferSearchCondition.PickupCityCode;
        searchCondition.PickupCode = transferSearchCondition.PickupCode;
        searchCondition.PickupPointCode = transferSearchCondition.PickupPoint;

        searchCondition.DropOffCityCode = transferSearchCondition.DropOffCityCode;
        searchCondition.DropOffCode = transferSearchCondition.DropOffCode;

        searchCondition.TransferDate = transferSearchCondition.TransferDate;
        searchCondition.AlternateLanguage = transferSearchCondition.AlternateLanguage;
        searchCondition.Passengers = transferSearchCondition.Passengers;

        TransferProductSearcher searcher = new TransferProductSearcher();
        IList<TransferProduct> Products = searcher.Search(searchCondition);

        if (Products != null && Products.Count > 0)
        {
            return (TERMS.Business.Centers.ProductCenter.Components.TransferProduct)Products[0];
        }
        else
        {
            return null;
        }
    }