private List <DataGridCommandViewModel> createCommands() { if (SelectedInquirySubject != null) { return(CommandHelper.GetControlCommands(this, appController, SelectedInquirySubject.ActionCodes)); } return(new List <DataGridCommandViewModel>()); }
void init() { PolicyRules = new PolicyRules(); RuleCommands = new List <DataGridCommandViewModel> { CommandHelper.GetControlCommands(this, appController, new List <int> { (int)ActionType.AddRule }).FirstOrDefault() }; }
void init() { UserGroups = new List <UserGroupDTOWithActions>(); UserGroupCommands = new List <DataGridCommandViewModel> { CommandHelper.GetControlCommands(this, appController, new List <int> { (int)ActionType.AddUserGroup }).FirstOrDefault() }; }
void init() { DisplayName = PeriodMgtAppLocalizedResources.PermittedUserListToMyTasksViewTitle; Users = new PagedSortableCollectionView <UserDTOWithActions>(); Users.OnRefresh += (s, args) => refresh(); UserCommands = new List <DataGridCommandViewModel> { CommandHelper.GetControlCommands(this, appController, new List <int> { (int)ActionType.AddPermittedUserToMyTasks }).FirstOrDefault() }; }
private List <DataGridCommandViewModel> createCommands() { var commands = new List <DataGridCommandViewModel>(); commands.Add(new DataGridCommandViewModel { CommandViewModel = AddRootGroupCommand }); if (SelectedAbstractIndexInPeriod != null) { commands.AddRange(CommandHelper.GetControlCommands(this, appController, SelectedAbstractIndexInPeriod.Data.ActionCodes)); } return(commands); }
void init() { JobPositions = new PagedSortableCollectionView <JobPositionDTOWithActions> { PageSize = 20 }; JobPositions.OnRefresh += (s, args) => Load(); JobPositionCommands = new List <DataGridCommandViewModel> { CommandHelper.GetControlCommands(this, appController, new List <int> { (int)ActionType.AddJobPosition }).FirstOrDefault() }; }
void init() { CustomFieldCriteria = new CustomFieldCriteria(); CustomFieldes = new PagedSortableCollectionView<CustomFieldDTOWithActions> { PageSize = 20 }; CustomFieldEntities = new ObservableCollection<CustomFieldEntity>(); CustomFieldes.OnRefresh += (s, args) => refresh(); CustomFieldCommands = new List<DataGridCommandViewModel> { CommandHelper.GetControlCommands(this, appController, new List<int>{ (int) ActionType.CreateCustomField }).FirstOrDefault() }; }
void init() { DisplayName = "مدیریت توابع"; Functions = new PagedSortableCollectionView <FunctionDTODescriptionWithActions>(); PolicyFunctions = new PolicyFunctions(); Functions.OnRefresh += (s, args) => Load(PolicyFunctions.PolicyId); FunctionCommands = new List <DataGridCommandViewModel> { CommandHelper.GetControlCommands(this, appController, new List <int> { (int)ActionType.CreateFunction }).FirstOrDefault() }; }
void init() { DisplayName = PeriodMgtAppLocalizedResources.PeriodListViewTitle; periods = new PagedSortableCollectionView <PeriodDTOWithAction> { PageSize = 20 }; periods.OnRefresh += (s, args) => refresh(); PeriodCommands = new List <DataGridCommandViewModel> { CommandHelper.GetControlCommands(this, appController, new List <int> { (int)ActionType.AddPeriod }).FirstOrDefault() }; }
void init() { UserCriteria = new UserCriteria(); Users = new PagedSortableCollectionView <UserDTOWithActions> { PageSize = 20 }; Users.OnRefresh += (s, args) => refresh(); UserCommands = new List <DataGridCommandViewModel> { CommandHelper.GetControlCommands(this, appController, new List <int> { (int)ActionType.AddUser }).FirstOrDefault() }; }
void init() { DisplayName = BasicInfoAppLocalizedResources.JobListViewTitle; Jobs = new PagedSortableCollectionView <JobDTOWithActions> { PageSize = 20 }; Jobs.OnRefresh += (s, args) => Load(); JobCommands = new List <DataGridCommandViewModel> { CommandHelper.GetControlCommands(this, appController, new List <int> { (int)ActionType.CreateJob }).FirstOrDefault() }; }
void init() { DisplayName = "مدیریت شغل در دوره"; JobList = new PagedSortableCollectionView <JobInPeriodDTOWithActions> { PageSize = 20 }; JobList.OnRefresh += (s, args) => Load(Period); JobInPeriodCommands = new List <DataGridCommandViewModel> { CommandHelper.GetControlCommands(this, appController, new List <int> { (int)ActionType.AddJobInPeriod }).FirstOrDefault() }; }
void init() { period = new PeriodDTO(); Employees = new PagedSortableCollectionView <EmployeeDTOWithActions>() { PageSize = 20 }; Employees.OnRefresh += (s, args) => Load(period); DisplayName = EmployeeMgtAppLocalizedResources.EmployeeListPageTitle + " " + "دوره"; EmployeeCriteria = new EmployeeCriteria(); EmployeeCommands = new List <DataGridCommandViewModel> { CommandHelper.GetControlCommands(this, appController, new List <int> { (int)ActionType.AddEmployee }).FirstOrDefault() }; }
void init() { period = new PeriodDTO(); managerEmployeeNo = String.Empty; Employees = new PagedSortableCollectionView <EmployeeDTOWithActions>() { PageSize = 20 }; Employees.OnRefresh += (s, args) => Load(managerEmployeeNo, period); DisplayName = "ليست همكاران زير مجموعه"; EmployeeCriteria = new EmployeeCriteria(); EmployeeCommands = new List <DataGridCommandViewModel> { CommandHelper.GetControlCommands(this, appController, new List <int> { (int)ActionType.ChangeEmployeePoint }).FirstOrDefault() }; }
private List <DataGridCommandViewModel> createCommands() { return(CommandHelper.GetControlCommands(this, appController, SelectedPeriod.ActionCodes)); }