protected void Page_Load(object sender, EventArgs e)
        {
            PageSize     = RequestTool.getpageSize(25);
            key          = RequestTool.RequestString("key");
            string where = "1=1";
            //if (key != "")
            //    where += " and User_UserName like '%" + key + "%'";
            models = B_Lebi_Agent_Product_Level.GetList(where, "Sort desc", PageSize, page);
            int recordCount = B_Lebi_Agent_Product_Level.Counts(where);

            PageString = Pager.GetPaginationString("?page={0}&key=" + key, page, PageSize, recordCount);
        }
        public string LevelOption(int selid)
        {
            List <Lebi_Agent_Product_Level> models = B_Lebi_Agent_Product_Level.GetList("", "Sort desc");
            string str = "";

            foreach (Lebi_Agent_Product_Level model in models)
            {
                string sel = "";
                if (selid == model.id)
                {
                    sel = "selected";
                }
                str += "<option " + sel + " value=" + model.id + ">" + model.Name + "</option>";
            }
            return(str);
        }