예제 #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.ucTransactionEntry = ((ESI_ITE.View.TransactionEntryView)(target));
                return;

            case 2:
                this.ucLineItems = ((ESI_ITE.View.LineItemView)(target));
                return;
            }
            this._contentLoaded = true;
        }
예제 #2
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.ucTransactionEntry = ((ESI_ITE.View.TransactionEntryView)(target));
     return;
     case 2:
     this.ucLineItems = ((ESI_ITE.View.LineItemView)(target));
     return;
     }
     this._contentLoaded = true;
 }
예제 #3
0
        private void LineItem()
        {
            IFormatProvider culture = new System.Globalization.CultureInfo("en-US", true);

            transaction.TransactionNumber = SelectedTransactionNumber;
            transaction.TransactionType = SelectedTransactionType.Code + " " + SelectedTransactionType.Description;
            transaction.DocumentNumber = DocumentNumber;
            transaction.TransactionDate = DateTime.Parse(TransactionDate, culture);
            transaction.SourceWarehouseCode = SelectedSourceWarehouse.Code;
            transaction.SourceWarehouse = SelectedSourceWarehouse.Name;
            transaction.SourceLocationCode = SelectedSourceLocation.Code;
            transaction.SourceLocation = SelectedSourceLocation.Location;
            transaction.DestinationWarehouseCode = SelectedDestinationWarehouse.Code;
            transaction.DestinationWarehouse = SelectedDestinationWarehouse.Name;
            transaction.DestinationLocationCode = SelectedDestinationLocation.Code;
            transaction.DestinationLocation = SelectedDestinationLocation.Location;
            transaction.ReasonCode = SelectedReason.ReasonCode;
            transaction.Reason = SelectedReason.Description;
            transaction.Comment = Comment;

            //Add new entry to database
            if (SelectedTransactionNumber == latestTransNo)
            {
                if (IsLineable)
                {
                    transaction.AddTransactionEntry(transaction);
                }
            }

            var v = new LineItemView();
            var vm = new LineItemViewModel(this.transaction);
        }