public ConfirmacionIntermediaPresenter(IUnityContainer container, IConfirmacionIntermediaView view)
        {
            View           = view;
            this.container = container;
            this.service   = new WMSServiceClient();
            View.Model     = this.container.Resolve <ConfirmacionIntermediaModel>();

            #region Metodos

            View.ConfirmBasicData          += new EventHandler <EventArgs>(this.OnConfirmBasicData);
            View.GenerarCodigo             += new EventHandler <EventArgs>(this.OnGenerarCodigo);
            View.AddLine                   += new EventHandler <EventArgs>(this.OnAddLine);
            view.CargaMasiva               += new EventHandler <DataEventArgs <DataTable> >(this.OnCargaMasiva);
            View.ReplicateDetails          += new EventHandler <EventArgs>(this.OnReplicateDetails);
            View.ReplicateDetailsBy_Column += new EventHandler <RoutedEventArgs>(this.OnReplicateDetailsBy_Column);
            View.SaveDetails               += new EventHandler <EventArgs>(this.OnSaveDetails);
            View.ConfirmarMovimiento       += this.OnConfirmarMovimiento;
            View.ConfirmarImpresion        += new EventHandler <EventArgs>(this.OnConfirmarImpresion);
            View.Imprimir                  += this.OnImprimir;
            View.DeleteDetails             += new EventHandler <EventArgs>(this.OnDeleteDetails);

            //Recibo
            View.BuscarRegistrosRecibo     += this.OnBuscarRegistrosRecibo;
            View.ActualizarRegistrosRecibo += this.OnActualizarRegistrosRecibo;
            View.ConfirmarRecibo           += this.OnConfirmarRecibo;

            #endregion

            #region Datos

            try { Local = service.GetConnection(new Connection {
                    Name = "LOCAL"
                }).First(); }
            catch { }

            View.Model.ListUbicacionesDestino = service.DirectSQLQuery("EXEC sp_GetProcesos 'UBICACIONESDESTINO', 'CONFIRMACION', 'CLARO'", "", "dbo.Ubicaciones", Local);
            //Cargo las ubicaciones
            View.Model.ListadoPosiciones = service.GetMMaster(new MMaster {
                MetaType = new MType {
                    Code = "POSICION1"
                }
            });

            CargarDatosDetails();
            ListarDatos();


            #endregion
        }
        public ConfirmacionIntermediaPresenter(IUnityContainer container, IConfirmacionIntermediaView view)
        {
            View = view;
            this.container = container;
            this.service = new WMSServiceClient();
            View.Model = this.container.Resolve<ConfirmacionIntermediaModel>();

            #region Metodos

            View.ConfirmBasicData += new EventHandler<EventArgs>(this.OnConfirmBasicData);
            View.GenerarCodigo += new EventHandler<EventArgs>(this.OnGenerarCodigo);
            View.AddLine += new EventHandler<EventArgs>(this.OnAddLine);
            view.CargaMasiva += new EventHandler<DataEventArgs<DataTable>>(this.OnCargaMasiva);
            View.ReplicateDetails += new EventHandler<EventArgs>(this.OnReplicateDetails);
            View.ReplicateDetailsBy_Column += new EventHandler<RoutedEventArgs>(this.OnReplicateDetailsBy_Column);
            View.SaveDetails += new EventHandler<EventArgs>(this.OnSaveDetails);
            View.ConfirmarMovimiento += this.OnConfirmarMovimiento;
            View.ConfirmarImpresion += new EventHandler<EventArgs>(this.OnConfirmarImpresion);
            View.Imprimir += this.OnImprimir;
            View.DeleteDetails += new EventHandler<EventArgs>(this.OnDeleteDetails);

            //Recibo
            View.BuscarRegistrosRecibo += this.OnBuscarRegistrosRecibo;
            View.ActualizarRegistrosRecibo += this.OnActualizarRegistrosRecibo;
            View.ConfirmarRecibo += this.OnConfirmarRecibo;

            #endregion

            #region Datos

            try { Local = service.GetConnection(new Connection { Name = "LOCAL" }).First(); }
            catch { }

            View.Model.ListUbicacionesDestino = service.DirectSQLQuery("EXEC sp_GetProcesos 'UBICACIONESDESTINO', 'CONFIRMACION', 'CLARO'", "", "dbo.Ubicaciones", Local);
            //Cargo las ubicaciones
            View.Model.ListadoPosiciones = service.GetMMaster(new MMaster { MetaType = new MType { Code = "POSICION1" } });

            CargarDatosDetails();
            ListarDatos();


            #endregion
        }