Example #1
0
        public void loadTransporters()
        {
            ///
            _liqHdrVM = new Liquidation_HdrViewModel();


            _transVM = new TransportersViewModel();
            ///
            this.cbTransport.ItemsSource = _transVM.getAllTransportsByCompany();
            object obj = _liqHdrVM.getNumGuiaBL();

            txtGuide.Text = obj.ToString();
        }
Example #2
0
 /// <summary>
 /// Inicializacion de todos los objetos necesarios para el funcionamiento correcto del formulario
 /// </summary>
 public void startObjects()
 {
     _LiquHdVM = new Liquidation_HdrViewModel();
     ///
     _CoordinatorVM = new CoordinatorViewModel();
     ///
     _TransGuidesVM = new Transporters_GuidesViewModel();
     ///
     _packagesVM = new PackagesViewModel();
     ///
     _packDtlVM = new Packages_DtlViewModel();
     ///
     _ocPackDtl = new ObservableCollection <Packages_Dtl>();
     ///
     _CustomerType = "";
     ///
     //objGenerarTicket = new GenerarTicket();
     ///
     ///GridLiqInfo.DataContext = _LiquHdVM.getLiquidationHdr(_co, "25085");
     ///
 }
Example #3
0
        /// <summary>
        /// Cargar liquidaciones en espera por ser facturadas
        /// </summary>
        public void loadLiquisForInvoice()
        {
            ///
            _LiquHdVM = new Liquidation_HdrViewModel();
            ///
            _ocLiqHdr = _LiquHdVM.getLiquidationsByStatus();
            ///
            if (_ocLiqHdr != null)
            {
                dgOrdersForInv.ItemsSource = _ocLiqHdr;
            }
            else
            {
                dgOrdersForInv.ItemsSource = new ObservableCollection <Liquidation_Hdr>();
            }

            // Realizar totalizados
            calculeTotals();

            ///
            isLoading();
        }