예제 #1
0
        protected void rightToWork_RefreshData(object sender, StoreReadDataEventArgs e)
        {
            //GEtting the filter from the page
            string filter     = string.Empty;
            int    totalCount = 1;



            //Fetching the corresponding list

            //in this test will take a list of News

            EmployeeRightToWorkListRequest request = new EmployeeRightToWorkListRequest();

            request.EmployeeId = CurrentEmployee.Text;

            ListResponse <EmployeeRightToWork> resp = _employeeService.ChildGetAll <EmployeeRightToWork>(request);

            if (!resp.Success)
            {
                Common.errorMessage(resp);
                return;
            }
            this.rightToWorkStore.DataSource = resp.Items;


            this.rightToWorkStore.DataBind();
        }
예제 #2
0
        private List <EmployeeRightToWork> GetRightToWork()
        {
            EmployeeRightToWorkListRequest request = new EmployeeRightToWorkListRequest();

            request.EmployeeId = CurrentEmployee.Text;

            ListResponse <EmployeeRightToWork> currencies = _employeeService.ChildGetAll <EmployeeRightToWork>(request);

            return(currencies.Items);
        }