private void BindType() { ddlBaseType.Items.Clear(); ListItem li = new ListItem(); string strwhere = " IsAdmin=1"; if (Model != "") { strwhere += " and Model='" + Model + "' "; } if (managetype != 0) { strwhere += " and IDPath like '%" + managetype + "%'"; } OperateHelper.BindBaseType(ddlBaseType, managetype, strwhere, "cn"); lbIntroduction.Items.Clear(); strwhere = " IsAdmin=1 and Model='GZZN' "; OperateHelper.BindBaseType(lbIntroduction, 0, strwhere, "cn"); lbLink.Items.Clear(); strwhere = " IsAdmin=1 and Model='CSDD' "; OperateHelper.BindBaseType(lbLink, 0, strwhere, "cn"); //lbIntroduction.Items.Clear(); //strwhere = " IsAdmin=1 and Model='CPXZ' "; //OperateHelper.BindBaseType(lbIntroduction, managetype, strwhere, "cn"); //lbLink.Items.Clear(); //strwhere = " IsAdmin=1 and Model='CPXQ' "; //OperateHelper.BindBaseType(lbLink, managetype, strwhere, "cn"); }
private void BindBaseType() { ddlBaseType.Items.Clear(); ListItem li = new ListItem("一级分类", "0"); ddlBaseType.Items.Add(li); OperateHelper.BindBaseType(ddlBaseType, 0, " Model='" + Model + "' ", "cn"); }
private void BindType() { ddlBaseType.Items.Clear(); ListItem li = new ListItem(); string strwhere = " IsAdmin=1"; if (Model != "") { strwhere += " and Model='" + Model + "' "; } if (managetype != 0) { strwhere += " and IDPath like '%" + managetype + "%'"; } OperateHelper.BindBaseType(ddlBaseType, managetype, strwhere, "cn"); }