Ejemplo n.º 1
0
        //private void GetParasHirer()
        //{
        //    if (currentItem != null)
        //    {
        //        paras.Clear();
        //        filterHire = "";
        //        if (!string.IsNullOrEmpty(currentItem.UPTOWN))
        //        {
        //            filterHire += "houseObj.UPTOWN==@" + paras.Count().ToString();
        //            paras.Add(currentItem.UPTOWN);
        //        }
        //        if (!string.IsNullOrEmpty(currentItem.HOUSENAME))
        //        {
        //            if (!string.IsNullOrEmpty(filterHire))
        //            {
        //                filterHire += " and ";
        //            }
        //            filterHire += "houseObj.HOUSENAME==@" + paras.Count().ToString();
        //            paras.Add(currentItem.HOUSENAME);
        //        }
        //        if (currentItem.FLOOR != 0)
        //        {
        //            if (!string.IsNullOrEmpty(filterHire))
        //            {
        //                filterHire += " and ";
        //            }
        //            filterHire += "houseObj.FLOOR==@" + paras.Count().ToString();
        //            paras.Add(currentItem.FLOOR);
        //        }
        //        if (!string.IsNullOrEmpty(roomNo))
        //        {
        //            if (!string.IsNullOrEmpty(filterHire))
        //            {
        //                filterHire += " and ";
        //            }
        //            filterHire += "houseObj.NUM==@" + paras.Count().ToString();
        //            paras.Add(roomNo);
        //        }
        //    }
        //}

        private void LoadData()
        {
            int pageCount = 0;

            GetParas();
            client.GetHouseInfoListPagingAsync(dataPager.PageIndex, dataPager.PageSize, "CREATEDATE descending", filter, paras, pageCount, Common.CurrentLoginUserInfo.EmployeeID);
        }