protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
         EstateFwService estateService = new EstateFwService();
         int             recordCount;
         string          type      = ConvertUtility.Trim(Request.QueryString["type"]);
         string          code      = ConvertUtility.Trim(Request.QueryString["code"]);
         int             pageIndex = ConvertUtility.ToInt(Request.QueryString["pageIndex"]);
         this.PageSize         = AppSettings.PageSize;
         this.EstateCollection = estateService.GetEstateByType(type, code, pageIndex, this.PageSize, out recordCount);
         this.RecordCount      = recordCount;
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
示例#2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                int recordCount;

                string type = ConvertUtility.Trim(Request.QueryString["type"]);
                string code = ConvertUtility.Trim(Request.QueryString["code"]);

                this.Type     = type;
                this.Code     = code;
                this.TitleBar = GetTitleBar(this.Type, this.Code);
                this.PageSize = AppSettings.PageSize;
                EstateFwService      estateService    = new EstateFwService();
                IList <EstateFwType> estateCollection = estateService.GetEstateByType(this.Type, this.Code, 1, this.PageSize, out recordCount);
                this.RecordCount      = recordCount;
                this.EstateCollection = new List <EstateFwType>();
                this.EstateCollection = estateCollection;
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }