Ejemplo n.º 1
0
        /// <summary>
        /// 获取部门列表
        /// </summary>
        private void Search()
        {
            BusinessCardService businessCardService = new BusinessCardService();

            // 获取数据
            if (this.rbtnPersonal.Checked)
            {
                this.DTBusinessCard = businessCardService.GetDataTableByUser(UserInfo);
            }
            else
            {
                if (this.rbtnPublic.Checked)
                {
                    this.DTBusinessCard = businessCardService.GetPublicDT(UserInfo);
                }
                else
                {
                    if (this.rbtnAll.Checked)
                    {
                        this.DTBusinessCard = businessCardService.GetDataTable(UserInfo);
                    }
                }
            }
            // 绑定屏幕数据
            this.BindData();
        }
Ejemplo n.º 2
0
        private void Search(string organizeId)
        {
            // 获取数据
            BusinessCardService businessCardService = new BusinessCardService();

            this.DTBusinessCard = businessCardService.GetDataTable(UserInfo);
            // 绑定屏幕数据
            this.BindData();
        }