//LookupTransactionGroupList //GetAllCommand public TransactionGroupCreateVM(AccountingUow uow, TransactionGroup model = null, bool isEdit = false) { SubmitCommand = new RelayCommand(SubmitExecute); GetAllCommand = new RelayCommand <List <KeyValuePair <string, string> > >(GetAllExecute); this.isEdit = isEdit; Model = model; if (isEdit == false) { ViewTitle = "افزودن گروه هزینه و درآمد"; if (Model == null) { Model = new TransactionGroup(); } } else { ViewTitle = "ویرایش گروه هزینه و درآمد"; } accountingUow = uow; Model.Exclude(new string[] { "TransactionGroupId", "CreateDate", "RecordStatusId" }); }
public LoginWindowVM() { SetPasswordCommand = new RelayCommand<ArgsParameter<RoutedEventArgs>>(SetPasswordExecute); LoginCommand = new RelayCommand(LoginExecute); CancelCommand = new RelayCommand(CancelExecute); KeyDownCommand = new RelayCommand<ArgsParameter<KeyEventArgs>>(KeyDownExecute); accountingUow = new AccountingUow(); }
public LabelListVM() { ViewTitle = "لیست برچسب ها"; GetAllCommand = new RelayCommand <List <KeyValuePair <string, string> > >(GetAllExecute); CreateEditCommand = new RelayCommand <Label>(CreateEditExecute); ChangeStatusCommand = new RelayCommand <Label>(ChangeStatusExecute); LoadedEventCommand = new RelayCommand(LoadedEventExecute); accountingUow = new AccountingUow(); businessSet = new LabelBusinessSet(accountingUow.LabelRepository, accountingUow.Logger); }
public PersonListVM() { ViewTitle = "لیست اشخاص"; GetAllCommand = new RelayCommand <List <KeyValuePair <string, string> > >(GetAllExecute); LoadedEventCommand = new RelayCommand(LoadedEventExecute); CreateEditCommand = new RelayCommand <Person>(CreateEditExecute); ChangeStatusCommand = new RelayCommand <Person>(ChangeStatusExecute); UpCommand = new RelayCommand <Person>(UpExecute); DownCommand = new RelayCommand <Person>(DownExecute); accountingUow = new AccountingUow(); businessSet = new PersonBusinessSet((PersonRepository)accountingUow.PersonRepository, accountingUow.Logger); }
public TransactionGroupListVM() { ViewTitle = "لیست گروه های هزینه و درآمد"; GetAllCommand = new RelayCommand <List <KeyValuePair <string, string> > >(GetAllExecute); LoadedEventCommand = new RelayCommand(LoadedEventExecute); AddCommand = new RelayCommand <TransactionGroup>(AddExecute); EditCommand = new RelayCommand <TransactionGroup>(EditExecute); DeleteCommand = new RelayCommand <TransactionGroup>(DeleteExecute); UpCommand = new RelayCommand <TransactionGroup>(UpExecute); DownCommand = new RelayCommand <TransactionGroup>(DownExecute); accountingUow = new AccountingUow(); businessSet = new TransactionGroupBusinessSet(accountingUow.TransactionGroupRepository, accountingUow.Logger); }
public PersonCreateVM(AccountingUow uow, Person model = null) { SubmitCommand = new RelayCommand(SubmitExecute); if (model == null) { ViewTitle = "افزودن شخص"; Model = new Person(); } else { isEdit = true; ViewTitle = "ویرایش شخص"; Model = model; Messenger.Default.Send(Model.PersonId, "PersonListView_SaveItemId"); } accountingUow = uow; businessSet = new PersonBusinessSet((PersonRepository)accountingUow.PersonRepository, accountingUow.Logger); Model.Exclude(new string[] { "UserId", "CreateDate", "RecordStatusId" }); }
public LabelCreateVM(AccountingUow uow, Label model = null) { SubmitCommand = new RelayCommand(SubmitExecute); if (model == null) { ViewTitle = "افزودن برچسب"; Model = new Label(); } else { ViewTitle = "ویرایش برچسب"; isEdit = true; Model = model; Messenger.Default.Send(Model.LabelId, "LabelListView_SaveItemId"); } accountingUow = uow; businessSet = new LabelBusinessSet(accountingUow.LabelRepository, accountingUow.Logger); Model.Exclude(new string[] { "UserId", "RecordStatusId", "CreateDate" }); }