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

        }
예제 #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()
     };
 }
예제 #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()
     };
 }
예제 #10
0
파일: UserListVM.cs 프로젝트: mehabadi/HPMS
 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()
     };
 }
예제 #11
0
파일: JobListVM.cs 프로젝트: mehabadi/HPMS
 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()
     };
 }
예제 #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()
     };
 }
예제 #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()
     };
 }
예제 #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()
     };
 }
예제 #15
0
 private List <DataGridCommandViewModel> createCommands()
 {
     return(CommandHelper.GetControlCommands(this, appController, SelectedPeriod.ActionCodes));
 }