private List <DataGridCommandViewModel> createCommands()
 {
     if (SelectedInquirySubject != null)
     {
         return(CommandHelper.GetControlCommands(this, appController, SelectedInquirySubject.ActionCodes));
     }
     return(new List <DataGridCommandViewModel>());
 }
Esempio n. 2
0
 void init()
 {
     PolicyRules  = new PolicyRules();
     RuleCommands = new List <DataGridCommandViewModel>
     {
         CommandHelper.GetControlCommands(this, appController, new List <int> {
             (int)ActionType.AddRule
         }).FirstOrDefault()
     };
 }
Esempio n. 3
0
 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()
     };
 }
Esempio n. 5
0
        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);
        }
Esempio n. 6
0
 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()
     };
 }
Esempio n. 7
0
        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()
            };
            

        }
Esempio n. 8
0
 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()
     };
 }
Esempio n. 9
0
 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()
     };
 }
Esempio n. 10
0
 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()
     };
 }
Esempio n. 11
0
 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()
     };
 }
Esempio n. 12
0
 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()
     };
 }
Esempio n. 13
0
 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()
     };
 }
Esempio n. 14
0
 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()
     };
 }
Esempio n. 15
0
 private List <DataGridCommandViewModel> createCommands()
 {
     return(CommandHelper.GetControlCommands(this, appController, SelectedPeriod.ActionCodes));
 }