Exemplo n.º 1
0
        // 绑定套餐
        private void BindDictProduct(object customerid)
        {
            List <Dicttestitem> TestItemList = dicttestservice.GetProduct(customerid);

            DropItem.DataSource     = TestItemList;
            DropItem.DataTextField  = "Testname";
            DropItem.DataValueField = "Dicttestitemid";
            DropItem.DataBind();
            DropItem.Items.Insert(0, new ExtAspNet.ListItem("请选择", "-1"));
        }
Exemplo n.º 2
0
        /// <summary>
        /// 绑定套餐下拉列表
        /// </summary>
        private void BindProductList()
        {
            List <Dicttestitem> TestItemList = dicttestservice.GetProduct(CustomerId);

            dropProducts.DataSource     = TestItemList;
            dropProducts.DataTextField  = "Testname";
            dropProducts.DataValueField = "Dicttestitemid";
            dropProducts.DataBind();
            dropProducts.Items.Insert(0, new ExtAspNet.ListItem("请选择套餐", "-1"));
        }