コード例 #1
0
 public InventoryReservationReport(SynchronizeEntity syncEntity)
     : base(syncEntity, true)
 {
     this.syncEntity = syncEntity;
     Init(syncEntity.Row);
     SetHeader();
 }
コード例 #2
0
 public ContactPage(SynchronizeEntity syncEntity)
     : base(syncEntity, true)
 {
     this.syncEntity = syncEntity;
     Init(syncEntity.Row);
     SetHeader();
 }
コード例 #3
0
 public InventoryTransactions(SynchronizeEntity syncEntity)
     : base(syncEntity, true)
 {
     this.syncEntity = syncEntity;
     InitializePage(syncEntity.Row);
     SetHeader();
 }
コード例 #4
0
 public CreditorTransactions(SynchronizeEntity syncEntity)
     : base(syncEntity, true)
 {
     this.syncEntity = syncEntity;
     Initialize(syncEntity.Row);
     SetHeader();
 }
コード例 #5
0
 public WorkInstallationPage(SynchronizeEntity syncEntity)
     : base(syncEntity, true)
 {
     this.syncEntity = syncEntity;
     InitPage(syncEntity.Row);
     SetHeader();
 }
コード例 #6
0
 public InvSeriesBatch(SynchronizeEntity syncEntity) : base(syncEntity, true)
 {
     this.pageMaster = syncEntity.Row;
     InitializeComponent();
     Init(syncEntity.Row);
     SetHeader();
 }
コード例 #7
0
 void ViewDocument(SynchronizeEntity sourceData, string header = null)
 {
     if (header == null)
     {
         header = string.Format("{0} {1}", Uniconta.ClientTools.Localization.lookup("View"), Uniconta.ClientTools.Localization.lookup("PhysicalVoucher"));
     }
     if (docViewer == null)
     {
         docViewer = new DocumentViewerWindow(api, header);
         docViewer.InitViewer(sourceData);
         docViewer.Owner    = Application.Current.MainWindow;
         docViewer.Closing += delegate { docViewer.Owner = null; };
         docViewer.Closed  += delegate { docViewer = null; };
     }
     if (DocumentViewerWindow.lastHeight != 0)
     {
         docViewer.Width  = DocumentViewerWindow.lastWidth;
         docViewer.Height = DocumentViewerWindow.lastHeight;
     }
     if (DocumentViewerWindow.isMaximized)
     {
         docViewer.WindowState = WindowState.Maximized;
     }
     docViewer.Show();
 }
コード例 #8
0
 public DebtorPaymentMandate(SynchronizeEntity syncEntity)
     : base(syncEntity, true)
 {
     this.syncEntity = syncEntity;
     InitPage(syncEntity.Row);
     SetHeader();
 }
コード例 #9
0
 public RegenerateOrderFromProjectPage(SynchronizeEntity syncEntity) : base(syncEntity, true)
 {
     if (syncEntity != null)
     {
         InitPage(syncEntity.Row);
     }
 }
コード例 #10
0
        public CompanyUsers(SynchronizeEntity syncEntity) : base(syncEntity, true)
        {
            this.syncEntity = syncEntity;
            CrudAPI Crudapi = new CrudAPI(session, syncEntity.Row as CompanyClient);

            Init(Crudapi);
        }
コード例 #11
0
        public ProjectTransactionPage(SynchronizeEntity syncEntity) : base(syncEntity, true)
        {
            UnicontaBaseEntity master   = syncEntity.Row;
            UnicontaBaseEntity argsProj = null;
            var proj = master as Uniconta.DataModel.Project;

            if (proj != null)
            {
                argsProj = proj;
            }
            else
            {
                var projectPosted = master as ProjectJournalPostedClient;
                if (projectPosted != null)
                {
                    argsProj = projectPosted;
                }
#if !SILVERLIGHT
                else
                {
                    var WIPreport = master as UnicontaClient.Pages.ProjectTransLocalClient;
                    if (WIPreport != null)
                    {
                        argsProj = WIPreport.ProjectRef;
                    }
                }
#endif
            }
            InitializePage(argsProj);
            SetHeader();
        }
コード例 #12
0
 public DocsSendLogGridPage(SynchronizeEntity syncEntity)
     : base(syncEntity, true)
 {
     this.syncEntity = syncEntity;
     InitPage(syncEntity.Row);
     SetHeader();
 }
コード例 #13
0
 public InvItemStoragePage(SynchronizeEntity syncEntity)
     : base(syncEntity, true)
 {
     this.syncEntity = syncEntity;
     Init(syncEntity.Row);
     RemoveMenuItem();
 }
コード例 #14
0
 public Invoices(SynchronizeEntity syncEntity)
     : base(syncEntity, true)
 {
     this.syncEntity = syncEntity;
     InitPage(syncEntity.Row);
     SetHeader();
 }
コード例 #15
0
 public InvVariantDetailPage(SynchronizeEntity syncEntity) : base(syncEntity, true)
 {
     invMaster = (InvItemClient)syncEntity.Row;
     InitializeComponent();
     Init();
     SetHeader();
 }
コード例 #16
0
 public UserDocsPage(SynchronizeEntity entity) : base(entity, true)
 {
     InitializeComponent();
     synchronizeEntity = entity;
     InitPage(entity.Row);
     SetHeader();
 }
コード例 #17
0
 public ProjectTransCategorySumPage(SynchronizeEntity syncEntity)
     : base(syncEntity, true)
 {
     this.syncEntity = syncEntity;
     Init(syncEntity.Row);
     SetHeader();
 }
コード例 #18
0
 public VoucherJournalLines(SynchronizeEntity entity)
     : base(entity, true)
 {
     this.syncEntity = entity;
     InitPage(syncEntity.Row);
     SetHeader();
 }
コード例 #19
0
 public CreditorOpenTrans(SynchronizeEntity syncEntity)
     : base(syncEntity, true)
 {
     this.syncEntity = syncEntity;
     InitPage(syncEntity.Row);
     SetHeader();
 }
コード例 #20
0
 public ProjectOrders(SynchronizeEntity syncEntity)
     : base(syncEntity, true)
 {
     this.syncEntity = syncEntity;
     InitPage(syncEntity.Row);
     SetHeader();
 }
コード例 #21
0
 public DebtorOrderProjectLinePage(SynchronizeEntity syncEntity)
     : base(syncEntity, true)
 {
     if (syncEntity != null)
     {
         InitPage(syncEntity.Row);
     }
 }
コード例 #22
0
 public ProjectInvoiceProjectLinePage(SynchronizeEntity syncEntity)
     : base(syncEntity, true)
 {
     if (syncEntity != null)
     {
         InitPage(syncEntity.Row);
     }
 }
コード例 #23
0
 public PartInvItemsPage(SynchronizeEntity syncEntity)
     : base(syncEntity, true)
 {
     this.syncEntity = syncEntity;
     if (syncEntity != null)
     {
         InitPage(syncEntity.Row);
     }
     SetHeader();
 }
コード例 #24
0
 public CreditorStatement(SynchronizeEntity syncEntity) : base(syncEntity, true)
 {
     _master = syncEntity.Row as Uniconta.DataModel.Creditor;
     if (_master != null)
     {
         FromAccount = _master._Account; ToAccount = _master._Account;
     }
     Init();
     SetHeader();
 }
コード例 #25
0
 static SynchronizeEntity GetUserDoc(SynchronizeEntity syncEntity)
 {
     if (syncEntity.Row is InvItemClient)
     {
         var userDocClient = new UserDocsClient();
         userDocClient.SetMaster(syncEntity.Row);
         syncEntity.Row = userDocClient;
     }
     return(syncEntity);
 }
コード例 #26
0
 public ProjInvProposal(SynchronizeEntity syncEntity)
     : base(syncEntity, true)
 {
     this.syncEntity = syncEntity;
     if (syncEntity != null)
     {
         Init(syncEntity.Row);
     }
     SetHeader();
 }
コード例 #27
0
 public AccountStatement2(SynchronizeEntity syncEntity) : base(syncEntity, true)
 {
     _master = syncEntity.Row as GLAccount;
     if (_master != null)
     {
         FromAccount = _master._Account; ToAccount = _master._Account;
     }
     Init();
     SetHeader();
 }
コード例 #28
0
 public DebtorOffers(SynchronizeEntity syncEntity)
     : base(syncEntity, true)
 {
     this.syncEntity = syncEntity;
     if (syncEntity != null)
     {
         Init(syncEntity.Row);
     }
     SetHeader();
 }
コード例 #29
0
        public UserDocsPage3(SynchronizeEntity master)
            : base(true, GetUserDoc(master))
        {
            this.DataContext = this;
            InitializeComponent();
            var corasauMaster = master.Row;

            InitMaster(corasauMaster, true);
            Loaded += UserDocsPage3_Loaded;
        }
コード例 #30
0
        public TransactionReport(SynchronizeEntity master)
            : base(master, true)
        {
            this.DataContext = this;
            pageMaster       = master;
            InitializeComponent();
            var corasauMaster = master.Row;

            InitMaster(corasauMaster);
            Initialize();
        }