public void SelectNewConterparty()
        {
            var page = _tdiNavigation.OpenTdiTab <CounterpartyDlg, Phone>(this, ActiveCall.Phone);
            var tab  = page.TdiTab as CounterpartyDlg;

            page.PageClosed += NewCounerpatry_PageClosed;
        }
        public void NewClientCommand()
        {
            var page = _tdiNavigation.OpenTdiTab <CounterpartyDlg>(this);
            var tab  = page.TdiTab as CounterpartyDlg;

            page.PageClosed += NewCounerpatry_PageClosed;
        }
        public void CreateDocumentDialog(DialogViewModelBase master, StokDocumentType documentType)
        {
            switch (documentType)
            {
            case StokDocumentType.TransferDoc:
                navigation.OpenViewModel <WarehouseTransferViewModel, IEntityUoWBuilder>(master, EntityUoWBuilder.ForCreate());
                break;

            case StokDocumentType.CollectiveExpense:
                navigation.OpenViewModel <CollectiveExpenseViewModel, IEntityUoWBuilder>(master, EntityUoWBuilder.ForCreate());
                break;

            case StokDocumentType.ExpenseEmployeeDoc:
                navigation.OpenViewModel <ExpenseEmployeeViewModel, IEntityUoWBuilder>(master, EntityUoWBuilder.ForCreate());
                break;

            case StokDocumentType.ExpenseObjectDoc:
                navigation.OpenViewModel <ExpenseObjectViewModel, IEntityUoWBuilder>(master, EntityUoWBuilder.ForCreate());
                break;

            case StokDocumentType.IncomeDoc:
                navigation.OpenTdiTab <Dialogs.Stock.IncomeDocDlg>(master);
                break;

            case StokDocumentType.WriteoffDoc:
                navigation.OpenViewModel <WriteOffViewModel, IEntityUoWBuilder>(master, EntityUoWBuilder.ForCreate());
                break;

            case StokDocumentType.Completion:
                navigation.OpenViewModel <CompletionViewModel, IEntityUoWBuilder>(master, EntityUoWBuilder.ForCreate());
                break;

            default:
                throw new NotSupportedException($"Тип документа {documentType} не поддерживается.");
            }
        }
Exemple #4
0
        public void NewClientCommand()
        {
            var page = _tdiNavigation.OpenTdiTab <CounterpartyDlg, Phone>(this, ActiveCall.Phone);

            page.PageClosed += OnNewCounterpartyPageClosed;
        }
Exemple #5
0
 public void ReturnWear()
 {
     navigation.OpenTdiTab <Dialogs.Stock.IncomeDocDlg, EmployeeCard>(employeeViewModel, Entity);
 }
Exemple #6
0
 public void OpenMoreInformationAboutCounterparty()
 {
     var page = tdiNavigation.OpenTdiTab <CounterpartyDlg, int>(null, Client.Id, OpenPageOptions.IgnoreHash);
     var tab  = page.TdiTab as CounterpartyDlg;
 }
Exemple #7
0
 public void ReturnItem()
 {
     navigation.OpenTdiTab <Dialogs.Stock.IncomeDocDlg, Subdivision>(this, Entity);
 }