예제 #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();
 }
 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();
 }
 public WorkInstallationPage(SynchronizeEntity syncEntity)
     : base(syncEntity, true)
 {
     this.syncEntity = syncEntity;
     InitPage(syncEntity.Row);
     SetHeader();
 }
 public InvSeriesBatch(SynchronizeEntity syncEntity) : base(syncEntity, true)
 {
     this.pageMaster = syncEntity.Row;
     InitializeComponent();
     Init(syncEntity.Row);
     SetHeader();
 }
 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();
 }
 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();
 }
 public ProjectTransCategorySumPage(SynchronizeEntity syncEntity)
     : base(syncEntity, true)
 {
     this.syncEntity = syncEntity;
     Init(syncEntity.Row);
     SetHeader();
 }
 public VoucherJournalLines(SynchronizeEntity entity)
     : base(entity, true)
 {
     this.syncEntity = entity;
     InitPage(syncEntity.Row);
     SetHeader();
 }
 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);
     }
 }
 public PartInvItemsPage(SynchronizeEntity syncEntity)
     : base(syncEntity, true)
 {
     this.syncEntity = syncEntity;
     if (syncEntity != null)
     {
         InitPage(syncEntity.Row);
     }
     SetHeader();
 }
 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);
 }
 public ProjInvProposal(SynchronizeEntity syncEntity)
     : base(syncEntity, true)
 {
     this.syncEntity = syncEntity;
     if (syncEntity != null)
     {
         Init(syncEntity.Row);
     }
     SetHeader();
 }
 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();
        }