예제 #1
0
        private void LoadData()
        {
            int    pageCount = 0;
            string filter    = "";

            System.Collections.ObjectModel.ObservableCollection <object> paras = new System.Collections.ObjectModel.ObservableCollection <object>();

            filter += "T_HR_POST.POSTID==@" + paras.Count().ToString();
            paras.Add(PostID);

            //TextBox txtEmpName = Utility.FindChildControl<TextBox Style="{StaticResource TextBoxStyle}">(expander, "txtEmpName");
            //if (!string.IsNullOrEmpty(txtEmpName.Text))
            //{
            //    if (!string.IsNullOrEmpty(filter))
            //    {
            //        filter += " and ";
            //    }
            //    filter += "CNAME==@" + paras.Count().ToString();
            //    paras.Add(txtEmpName.Text.Trim());
            //}

            client.RelationPostPagingAsync(dataPager.PageIndex, dataPager.PageSize, "T_HR_POST.POSTID", filter, paras, pageCount);
            loadbar.Stop();
        }