Exemplo n.º 1
0
        private void BindDropDownList()
        {
            customerDetails.BindListControls(ddlIMLocation, "ListDesc", "ListValue", customerDetails.GetLocationList(), "-- Select --");
            customerDetails.BindListControls(ddlAbcCode, "ListDesc", "ListValue", customerDetails.GetListDetails("CustSlsRank"), "-- Select --");
            customerDetails.BindListControls(ddlPriceCode, "ListDesc", "ListValue", customerDetails.GetListDetails("CustPriceCd"), "-- Select --");
            customerDetails.BindListControls(ddlChainCode, "ListDesc", "ListValue", customerDetails.GetChainDetails(), "-- Select --");
            customerDetails.BindListControls(ddlCustomerType, "ListDesc", "ListValue", customerDetails.GetListDetails("CustType"), "-- Select --");
            customerDetails.BindListControls(ddlcSchedule1, "ListValue", "ListValue", customerDetails.GetListDetails("CustContractSchd1"), "-- Select --");
            DataTable dtCustomerContractSchd = customerDetails.GetListDetails("CustContractSchd");

            customerDetails.BindListControls(ddlcSchedule2, "ListValue", "ListValue", dtCustomerContractSchd, "-- Select --");
            customerDetails.BindListControls(ddlcSchedule3, "ListValue", "ListValue", dtCustomerContractSchd, "-- Select --");
            customerDetails.BindListControls(ddlcSchedule4, "ListValue", "ListValue", dtCustomerContractSchd, "-- Select --");
            customerDetails.BindListControls(ddlcSchedule5, "ListValue", "ListValue", dtCustomerContractSchd, "-- Select --");
            customerDetails.BindListControls(ddlcSchedule6, "ListValue", "ListValue", dtCustomerContractSchd, "-- Select --");
            customerDetails.BindListControls(ddlcSchedule7, "ListValue", "ListValue", dtCustomerContractSchd, "-- Select --");
            customerDetails.BindListControls(ddlSODocSort, "ListDesc", "ListValue", customerDetails.GetListDetails("SODocSortInd"), "-- Select --");
            customerDetails.BindListControls(ddlCustDefPrice, "ListDesc", "ListValue", customerDetails.GetListDetails("CustDefPriceSchd"), "-- Select --");
            customerDetails.BindListControls(ddlCustPriceInd, "ListDesc", "ListValue", customerDetails.GetListDetails("CustPriceInd"), "-- Select --");
            customerDetails.BindListControls(ddlSerialCode, "ListDesc", "ListValue", customerDetails.GetListDetails("YesNoInd"), "-- Select --");
            customerDetails.BindListControls(ddlTypeOrder, "ListDesc", "ListValue", customerDetails.GetListDetails("SOEOrderTypes"), "-- Select --");
            customerDetails.BindListControls(ddlShippingTerms, "ListDesc", "ListValue", customerDetails.GetListDetails("ShipTermsCode"), "-- Select --");
            customerDetails.BindListControls(ddlReasonCode, "ListDesc", "ListValue", customerDetails.GetTableValues("REAS"), "-- Select --");
            customerDetails.BindListControls(ddlClassTrade, "ListDesc", "ListValue", customerDetails.GetTableValues("TRD"), "-- Select --");
            customerDetails.BindListControls(ddlRegion, "ListDesc", "ListValue", customerDetails.GetListDetails("SOEOrderTypes"), "-- Select --");
            customerDetails.BindListControls(ddlSalesOrganization, "ListDesc", "ListValue", customerDetails.GetLocationList(), "-- Select --");
            customerDetails.BindListControls(ddlTerritory, "ListDesc", "ListValue", customerDetails.GetListDetails("SalesTerritory"), "-- Select --");
            customerDetails.BindListControls(ddlSalesRep, "ListDesc", "ListValue", customerDetails.GetSalesRep(), "-- Select --");
            customerDetails.BindListControls(ddlcSupportRep, "ListDesc", "ListValue", customerDetails.GetSalesRep(), "-- Select --");
            customerDetails.BindListControls(ddlSalesRank, "ListDesc", "ListValue", customerDetails.GetListDetails("CustSlsRank"), "-- Select --");
            customerDetails.BindListControls(ddlInvoiceIns, "ListDesc", "ListValue", customerDetails.GetListDetails("InvoiceInstr"), "-- Select --");
            customerDetails.BindListControls(ddlInvDelivery, "ListDesc", "ListValue", customerDetails.GetListDetails("InvDeliveryInd"), "-- Select --");
            customerDetails.BindListControls(ddlDiscountType, "ListDesc", "ListValue", customerDetails.GetListDetails("SalesDiscType"), "-- Select --");
            customerDetails.BindListControls(ddlBuyGroup, "ListDesc", "ListValue", customerDetails.GetListDetails("BuyGrp"), "-- Select --");
            customerDetails.BindListControls(ddlRebateGroup, "ListDesc", "ListValue", customerDetails.GetListDetails("CustRebateGrp"), "-- Select --");
            customerDetails.BindListControls(ddlLOB, "ListDesc", "ListValue", customerDetails.GetListDetails("CustSalesLOB"), "-- Select --");
            customerDetails.BindListControls(ddlSIC, "ListDesc", "ListValue", customerDetails.GetListDetails("CustSalesSIC"), "-- Select --");
            //customerDetails.BindListControls(ddlCertsInd, "ListDesc", "ListValue", customerDetails.GetListDetails("CertsRequiredInd"), "-- Select --");
            _ddlBind.BindFromList("CertsRequiredInd", ddlCertsInd, "", "-- Select --");
        }