Пример #1
0
        private void Process()
        {
            if (SelectedOrder != null && ValidateDate() && ConfirmDialog("Desea procesar el Pedido", "Confimar"))
            {
                //Guardar el pedido
                SpecialOrdersHelper.AddOrder(SelectedOrder);
                SaveChanges();

                var currentOrder = SelectedOrder;
                var param        = new Dictionary <string, string>();
                param.Add("@IdSpecialOrder", selectedOrder.IdSpecialOrder.ToString());
                var data = StoredCallbackProcessor.CallDataSet("SP_INV_PEDIDOS_ES", param);
                //var report = new ReportContainer("rptPedidosEspeciales.rpt", data);

                //report.Export(currentOrder.ReportFileName);

                ShowProcessLoader(this);
                AsyncHelper.DoAsync(() =>
                {
                    Sync(currentOrder);
                    RaisePropertyChanged("SpecialOrdersCollection");
                },
                                    ViewModelManager.CloseProcessLoader);
            }
            else
            {
                UndoChanges();
            }
        }
Пример #2
0
        private void SaveNewDetails()
        {
            if (ValidateDate() && ConfirmDialog("Confirma Guardar los cambios ", "Guardar"))
            {
                SpecialOrdersHelper.AddOrder(SelectedOrder);

                SaveChanges();
                ViewModelManager.CloseModal();
                ForceRefresh = true;
                RaisePropertyChanged("SpecialOrdersCollection");
            }
            else
            {
                UndoChanges();
            }
        }