Пример #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     cid = this.Request.QueryString["cid"].ToString();
     JpGoods jpGoods = new JpGoods();
     if (this.Request.QueryString["type"] != null)
     {
         strType = this.Request.QueryString["type"].ToString();
     }
     string strWhere = "";
     if (strType == "0")
     {
         strWhere = " and hy_cid like '" + cid + "%' and hy_ifsh='2' ";
     }
     else if (strType == "1")
     {
         strWhere = " and (hy_cid = '006001001' or hy_cid='006002001' or  hy_cid='006003001'  or  hy_cid='006004001') and hy_ifsh='2' ";
     }
     else if (strType == "2")
     {
         strWhere = " and (hy_cid = '006001002' or hy_cid='006002002' or  hy_cid='006003002'  or  hy_cid='006004002') and hy_ifsh='2' ";
     }
     else if (strType == "3")
     {
         strWhere = " and (hy_cid = '006001003' or hy_cid='006002003' or  hy_cid='006003003'  or  hy_cid='006004003') and hy_ifsh='2' ";
     }
     pis_totalCount = jpGoods.getDataByCidCount(strWhere);
 }