protected void btnDelete_Click(object sender, EventArgs e)
        {
            GA           gAdmin = new GA();
            GAController gadmin = new GAController();
            Property     pro    = new Property();

            pro.PropertyName = drpNewProname.SelectedItem.Text;
            List <PropertyContent> proconlist = new List <PropertyContent>();
            PropertyContent        content    = new PropertyContent();
            string a = gAdmin.PoNameGetID(pro);

            content.PropertyID = a;
            proconlist         = PropertyContent.PoIDGetPcName(content);
            if (proconlist.Count == 0)
            {
                if (gadmin.DeletePrperty(gAdmin, a))
                {
                    this.lblCheck.Text = "删除成功!";
                    //this.Page.ClientScript.RegisterStartupScript(this.GetType(), "", "<script language='javascript'>alert('" + "删除成功" + "');</script>");
                }
                else
                {
                    this.lblCheck.Text = "删除失败!";
                    //this.Page.ClientScript.RegisterStartupScript(this.GetType(), "", "<script language='javascript'>alert('" + "删除失败" + "');</script>");
                }
            }
            else
            {
                this.lblCheck.Text = "该属性下有内容!";
                //this.Page.ClientScript.RegisterStartupScript(this.GetType(), "", "<script language='javascript'>alert('" + "该属性下有内容" + "');</script>");
            }
        }
        protected void dplThirdClum_SelectedIndexChanged(object sender, EventArgs e)
        {
            ThirdClassDm third = new ThirdClassDm();

            third.ThirdClassDmName = dplThirdClum.SelectedItem.Text;
            GA gAdmin = new GA();

            third.ThirdClassDmID = gAdmin.TcNameGetID(third);
            PropertyClassDm propertyclass = new PropertyClassDm();
            List <Property> prolist       = new List <Property>();

            prolist = PropertyClassDm.TcIDGetPoID(third);
            DataList1.DataSource = Property.PoIDGetPoNameList(prolist);
            DataList1.DataBind();
            for (int i = 0; i < prolist.Count; i++)
            {
                PropertyContent proCont = new PropertyContent();
                proCont.PropertyID = prolist[i].PropertyID;
                List <PropertyContent> proConList = new List <PropertyContent>();
                proConList = PropertyContent.PoIDGetPcName(proCont);
                DropDownList ddl = (DropDownList)DataList1.Items[i].FindControl("dpl_PropertyContent");
                for (int j = 0; j < proConList.Count; j++)
                {
                    ddl.Items.Add(new ListItem(proConList[j].PropertyContentName, j.ToString()));
                }
                ddl.Items.Insert(0, new ListItem("选择属性内容"));
                ddl.DataBind();
            }
            this.lbl_tip.Text = "";
        }
        protected void drpNewProname_SelectedIndexChanged(object sender, EventArgs e)
        {
            ListBox2.Items.Clear();
            this.drpNewProcon.Items.Clear();
            Property               property       = new Property();
            PropertyContent        procontent     = new PropertyContent();
            List <PropertyContent> procontentlist = new List <PropertyContent>();
            GA gAdmin = new GA();

            property.PropertyName = this.drpNewProname.SelectedItem.Text;
            procontent.PropertyID = gAdmin.PoNameGetID(property);
            procontentlist        = PropertyContent.PoIDGetPcName(procontent);
            for (int i = 0; i < procontentlist.Count; i++)
            {
                drpNewProcon.Items.Add(new ListItem(procontentlist[i].PropertyContentName, i.ToString()));
                ListBox2.Items.Add(procontentlist[i].PropertyContentName);
            }
            drpNewProcon.Items.Insert(0, new ListItem("请选择属性内容"));
        }