Exemple #1
0
    private void SearchSendPageList()
    {
        decimal WxPtId = ReDecimal("WxPtId", 0);

        int    c        = ReInt("CurrentPage", 1);
        string inputStr = ReStr("inputStr", "");

        bool Invalid = ReBool("Invalid", false);

        BLL.WxBLL bll = new BLL.WxBLL();

        if (WxPtId == 0)
        {
            throw new Exception("没有确定当前的微信公众平台!");
        }

        StringBuilder s = new StringBuilder();

        s.Append(" 1=1 ");
        s.Append(" and Invalid='" + Invalid + "' ");
        s.Append(" and WxPtId='" + WxPtId + "' ");
        if (inputStr.Trim() != "")
        {
            s.Append(" and WxSendTitle like '%" + inputStr + "%' ");
        }
        DataSet ds = bll.SearchSendPageList(c, 20, s.ToString(), "*");

        RePage(ds);
    }