private void getProtypeList()
        {
            SearchProductType search = new SearchProductType();

            using (BLLProductType bll = new BLLProductType())
            {
                DataTable dt = bll.GetTable(search);
                if (dt != null)
                {
                    ddlProductTypeID.DataSource     = dt;
                    ddlProductTypeID.DataTextField  = ProductType.ProductTypeName_FieldName;
                    ddlProductTypeID.DataValueField = ProductType.ID_FieldName;
                    ddlProductTypeID.DataBind();
                }
            }
        }
Beispiel #2
0
        private void getProtypeList()
        {
            SearchProductType search = new SearchProductType();

            using (BLLProductType bll = new BLLProductType())
            {
                DataTable dt = bll.GetTable(search);
                if (dt != null)
                {
                    ddlProductTypeName.DataSource     = dt;
                    ddlProductTypeName.DataTextField  = ProductType.ProductTypeName_FieldName;
                    ddlProductTypeName.DataValueField = ProductType.ID_FieldName;
                    ddlProductTypeName.DataBind();
                    ddlProductTypeName.Items.Insert(0, new ListItem("==请选择类型==", "0"));
                }
            }
        }