示例#1
0
    private void FillOptionsLists()
    {
        #region "Fill Lists"
        FillLists.FillYearsList(ddlYears);
        FillLists.FillWorkingStatusList(ddlWorkingStatus_ID);

        //FillLists.FillAuctionsList(ddlAuctions);
        FillLists.FillMarkers(ddlMarkers);
        //FillLists.FillStatesList(ddlState_ID);
        FillLists.FillTowingCompaniesList(ddlTowingCo);
        FillLists.FillColorsList(ddlexterior_color, ddlinterior_color);
        FillLists.FillStylesList(ddlbody_style);
        FillLists.FillDrivesList(ddlCar_drive);
        FillLists.GetEnginesNames(ddlCar_engine);
        FillLists.GetCapacitiesNames(ddlcar_capacity);
        FillLists.FillTransmissionsList(ddlcar_transmission);
        FillLists.FillShipCompaniesList(ddlShippingCompany_ID);
        FillLists.FillShipsList(ddlShip_ID);
        FillLists.FillWorkshopsList(ddlWorkshop_ID);
        FillLists.FillCurrenciesList(ddlCurrency);
        FillLists.FillPortShippingList(ddlPortShipping_ID);

        //FillLists.FillTransportList(ddlTransferes);
        FillLists.FillStoresList(ddlStores);
        #endregion
    }
示例#2
0
    private void FillCompaniesList(string val)
    {
        divCoType.Visible = true; // default

        switch (val)
        {
        case "towing":
        {
            FillLists.FillTowingCompaniesList(ddlDueforCompany);
            break;
        }

        case "shipping":
        {
            FillLists.FillShipCompaniesList(ddlDueforCompany);
            break;
        }

        case "clearance":
        {
            FillLists.FillClearanceList(ddlDueforCompany);
            break;
        }

        case "transport":
        {
            FillLists.FillTransportList(ddlDueforCompany);
            break;
        }

        case "workshop":
        {
            FillLists.FillWorkshopsList(ddlDueforCompany);
            break;
        }

        case "cash":
        {
            divCoType.Visible = false;         //ddlDueforCompany.Visible = false;
            break;
        }

        case "buyer":
        default:
        {
            FillLists.FillBuyersList(ddlDueforCompany);
            break;
        }
        }
    }
示例#3
0
    private void FillCompaniesList(string val)
    {
        switch (val)
        {
        case "towing":
        {
            FillLists.FillTowingCompaniesList(ddlDueforCompany);
            break;
        }

        case "shipping":
        {
            FillLists.FillShipCompaniesList(ddlDueforCompany);
            break;
        }

        case "clearance":
        {
            FillLists.FillClearanceList(ddlDueforCompany);
            break;
        }

        case "transport":
        {
            FillLists.FillTransportList(ddlDueforCompany);
            break;
        }

        case "workshop":
        {
            FillLists.FillWorkshopsList(ddlDueforCompany);
            break;
        }

        case "buyer":
        default:
        {
            FillLists.FillBuyersList(ddlDueforCompany);
            break;
        }
        }
    }