// vesselServiceWrapper must be added *********************** public InvoiceListVM(IInvoiceController controller, IFuelController mainController, IInvoiceServiceWrapper serviceWrapper, ICompanyServiceWrapper companyServiceWrapper, IUserServiceWrapper userServiceWrapper, // EnumVM<InvoiceTypeEnum> InvoiceTypeEnum IApprovalFlowServiceWrapper approcalServiceWrapper) { this.controller = controller; this.serviceWrapper = serviceWrapper; this.mainController = mainController; this.companyServiceWrapper = companyServiceWrapper; this.userServiceWrapper = userServiceWrapper; this.approcalServiceWrapper = approcalServiceWrapper; // InvoiceTypesVM = new EnumVM<InvoiceTypeEnum>(); DisplayName = "صورتحساب"; Data = new PagedSortableCollectionView<InvoiceDto>(); Data.PageChanged += Data_PageChanged; //filters CompaniesFilter = new List<CompanyDto>(); InvoiceCreatorsFilter = new ObservableCollection<UserDto>(); FromDateFilter = DateTime.Now.AddMonths(-2); ToDateFilter = DateTime.Now; Load(); }
void init() { Logs = new PagedSortableCollectionView <LogDTOWithActions> { PageSize = 20 }; Logs.OnRefresh += (s, args) => Load(); LogCommands = new List <DataGridCommandViewModel>(); }
void init() { EmployeeCalculationResult = new EmployeeCalculationResultDTO(); EmployeeCalcTotalScores = new PagedSortableCollectionView <JobIndexPointSummaryDTOWithAction> { PageSize = 20 }; EmployeeCalcTotalScores.OnRefresh += (s, args) => refresh(); }
private void init() { employeeCriteria = new EmployeeCriteria(); Inquirers = new PagedSortableCollectionView <EmployeeDTOWithActions>(); SelectedCustomInquirer = new InquiryUnitDTO(); UnitInPeriodUnitIndexDto = new UnitInPeriodUnitIndexDTO(); Inquirers.OnRefresh += (s, args) => getSubjectsInquirers(); }
private void init() { DisplayName = "مديريت تاييد كننده هاي واحد "; employeeCriteria = new EmployeeCriteria(); Employees = new PagedSortableCollectionView <EmployeeDTOWithActions>(); SelectedVerifier = new UnitVerifierDTO(); Employees.OnRefresh += (s, args) => getAllEmployee(); }
void init() { DisplayName = "تعيين دسترسی های کارتابل کاربر"; Users = new PagedSortableCollectionView <UserDescriptionDTO>(); PermittedWorkListUsers = new ObservableCollection <UserDescriptionDTO>(); UserCriteria = new UserCriteria(); Users.OnRefresh += (s, args) => getUsers(null); }
public InvoiceReferenceLookUpVM(IInvoiceController controller, IFuelController mainController, IInvoiceServiceWrapper serviceWrapper) { this.controller = controller; this.mainController = mainController; this.serviceWrapper = serviceWrapper; DisplayName = "انتخاب صورتحساب "; AvailableInvoices = new PagedSortableCollectionView<InvoiceDto>(); }
public MediasViewModel() { DataList = new PagedSortableCollectionView <MediaView>(); DataList.PageSize = 24; // 24 records per page DataList.OnRefresh += new EventHandler <RefreshEventArgs>(DataList_OnRefresh); // Start to get data GetTotalItemCount(); GetData(); }
void init() { DisplayName = "محاسبه عملکرد کارکنان در دوره"; Employees = new PagedSortableCollectionView <EmployeeDTOWithActions>(); CalculationEmployees = new ObservableCollection <EmployeeDTOWithActions>(); policyList = new List <PolicyDescriptionDTO>(); EmployeeCriteria = new EmployeeCriteria(); Employees.OnRefresh += (s, args) => getEmployees(null); AllResultSelected = false; }
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() }; }
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() { 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() { 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 = 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() { 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() { 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() }; }
public OrderReferenceLookUpVM(IOrderController controller, IFuelController mainController, OrderListVM invoiceListVM, IOrderServiceWrapper serviceWrapper) { OrderListVM = invoiceListVM; // OrderListVM.IsVisibleFilter = false; this.controller = controller; this.mainController = mainController; this.serviceWrapper = serviceWrapper; DisplayName = "انتخاب سفارش "; AvailableOrders = new PagedSortableCollectionView<OrderDto>() { PageSize = 10 }; SelectedOrders = new PagedSortableCollectionView<OrderDto>(); AvailableOrders.PageChanged += DataPageChanged; }
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() }; }
void init() { JobIndexCriteria = new JobIndexCriteria(); JobIndexes = new PagedSortableCollectionView <JobIndexDTOWithCategoryAndActions>(); JobIndexes.OnRefresh += (s, args) => refresh(); }
void init() { RuleTrails = new PagedSortableCollectionView <RuleTrailDTOWithAction>(); //RuleTrails.OnRefresh += (s, args) => Load(); RuleTrailCommands = new List <DataGridCommandViewModel>(); }
void init() { jobIndexCategories = new PagedSortableCollectionView <JobIndexCategoryDTOWithActions>(); jobIndexCategories.OnRefresh += (s, args) => Load(); }
void init() { DisplayName = PeriodMgtAppLocalizedResources.CalculationExceptionListViewTitle; calculationExceptions = new PagedSortableCollectionView <CalculationExceptionBriefDTOWithAction>(); calculationExceptions.OnRefresh += (s, args) => refresh(); }