public InventoryAdjustmentPresenter(IUnityContainer container, IInventoryAdjustmentView view) { View = view; this.container = container; this.service = new WMSServiceClient(); View.Model = this.container.Resolve<InventoryAdjustmentModel>(); //Event Delegate View.LoadForm += new EventHandler<EventArgs>(this.OnLoadForm); //View.LoadProducts += new EventHandler<DataEventArgs<string>>(this.OnLoadProducts); View.LoadUnits += new EventHandler<DataEventArgs<Product>>(this.OnLoadUnits); View.AddToConfirm += new EventHandler<EventArgs>(this.OnAddingToConfirm); View.ExeInventoryAdjustment += new EventHandler<DataEventArgs<DocumentConcept>>(this.OnExecute); View.LoadSourceLocation += new EventHandler<DataEventArgs<string>>(this.OnLoadSource); View.RemoveFromList += new EventHandler<EventArgs>(this.OnRemoveFromList); View.Model.LinesToProcess = new List<DocumentLine>(); View.ResetForm += new EventHandler<EventArgs>(this.OnResetForm); view.LoadAdjustment += new EventHandler<DataEventArgs<Document>>(this.OnLoadAdjustment); view.ReverseAdjustment += new EventHandler<EventArgs>(this.OnReverseAdjustment); View.AddSerial += new EventHandler<DataEventArgs<string>>(this.OnAddSerial); view.ReverseAdjustment += new EventHandler<EventArgs>(this.OnReverseAdjustment); View.ResendToERP += new EventHandler<EventArgs>(View_ResendToERP); View.SearchDocument += new EventHandler<DataEventArgs<string>>(this.OnSearchDocument); LoadHistAdjustments(); }
public MessageRuleByCompanyPresenter(IUnityContainer container, IMessageRuleByCompanyView view) { View = view; this.container = container; this.service = new WMSServiceClient(); View.Model = this.container.Resolve<MessageRuleByCompanyModel>(); //Event Delegate View.LoadSearch += new EventHandler<DataEventArgs<string>>(this.OnLoadSearch); View.New += new EventHandler<EventArgs>(this.OnNew); View.LoadData += new EventHandler<DataEventArgs<MessageRuleByCompany>>(this.OnLoadData); View.Save += new EventHandler<EventArgs>(this.OnSave); View.Delete += new EventHandler<EventArgs>(this.OnDelete); View.Model.ClassEntityList = service.GetClassEntity(new ClassEntity()); view.Model.LabelTemplateList = service.GetLabelTemplate(new LabelTemplate { LabelType = new DocumentType { DocClass = new DocumentClass { DocClassID = SDocClass.Message } } }); View.Model.EntityList = service.GetMessageRuleByCompany(new MessageRuleByCompany()); View.Model.Record = null; }
public CrossDockPresenter(IUnityContainer container, ICrossDockView view, IShellPresenter region) { View = view; this.container = container; this.service = new WMSServiceClient(); this.region = region; View.Model = this.container.Resolve<CrossDockModel>(); //Event Delegate View.ProcessPending += new EventHandler<DataEventArgs<int>>(OnProcessPending); View.RemoveFromList += new EventHandler<EventArgs>(this.OnRemoveFromList); View.AddDocumentToAssigned += new EventHandler<EventArgs>(OnAddDocumentToAssigned); View.SearchDocument += new EventHandler<DataEventArgs<string>>(this.OnSearchDocument); View.CrossDockPreview += new EventHandler<EventArgs>(OnCrossDockPreview); View.ConfirmCrossDock += new EventHandler<EventArgs>(OnConfirmCrossDock); View.SearchHistDocument += new EventHandler<DataEventArgs<string>>(this.OnSearchHistDocument); View.LoadDetails += new EventHandler<DataEventArgs<Document>>(OnLoadDetails); View.ShowTicket += new EventHandler<EventArgs>(OnShowTicket); View.ShowCrossDockDocuments += new EventHandler<EventArgs>(OnShowCrossDockDocuments); View.Model.AnyReceived = false; PutAway = service.GetBinLocation("", true); //Si hay conexion a ERP se habilita el panel de posting //if (App.IsConnectedToErpReceving) View.Model.Node = service.GetNode(new Node { NodeID = Common.NodeType.Received }).First(); //else //View.Model.Node = service.GetNode(new Node { NodeID = Common.NodeType.Stored }).First(); //ShowProcessPanel(); }
public int offset = 2; //# columnas que no se debe replicar porque son fijas. public GeneradorEstibasPresenter(IUnityContainer container, IGeneradorEstibasView view) { View = view; this.container = container; this.service = new WMSServiceClient(); View.Model = this.container.Resolve<GeneradorEstibasModel>(); #region Metodos View.AddLine += new EventHandler<EventArgs>(this.OnAddLine); view.CargaMasiva += new EventHandler<DataEventArgs<DataTable>>(this.OnCargaMasiva); View.ReplicateDetails += new EventHandler<EventArgs>(this.OnReplicateDetails); View.SaveDetails += new EventHandler<EventArgs>(this.OnSaveDetails); #endregion #region Datos //Cargo la variable para las consultas directas try { Local = service.GetConnection(new Connection { Name = "LOCAL" }).First(); } catch { } //Cargo los productos View.Model.ListadoProductos = service.GetProduct(new Product { Reference = "1" }); //Cargo los datos del listado CargarDatosDetails(); #endregion }
public LocationPresenter(IUnityContainer container, ILocationView view) { View = view; this.container = container; this.service = new WMSServiceClient(); View.Model = this.container.Resolve<LocationModel>(); //Event Delegate View.LoadSearch += new EventHandler<DataEventArgs<string>>(this.OnLoadSearch); View.New += new EventHandler<EventArgs>(this.OnNew); View.LoadData += new EventHandler<DataEventArgs<Location>>(this.OnLoadData); View.Save += new EventHandler<EventArgs>(this.OnSave); View.Delete += new EventHandler<EventArgs>(this.OnDelete); ProcessWindow pw = new ProcessWindow("Loading ..."); View.Model.EntityList = service.GetLocation(new Location()); View.Model.Record = new Location { Status = new Status() }; //List Height View.ListRecords.MaxHeight = SystemParameters.FullPrimaryScreenHeight - 250; pw.Close(); }
public ShippingConsolePresenter(IUnityContainer container, IShippingConsoleView view) { try { View = view; this.container = container; this.service = new WMSServiceClient(); View.Model = this.container.Resolve<ShippingConsoleModel>(); //Event Delegate View.AddTaskByUser += new EventHandler<DataEventArgs<Document>>(this.OnAddTaskByUser); View.RemoveTaskByUser += new EventHandler<DataEventArgs<Document>>(this.OnRemoveTaskByUser); View.LoadPickerDocuments += new EventHandler<EventArgs>(this.OnLoadPickerDocuments); //Loading Pickers UserByRol userByRol = new UserByRol { Location = App.curLocation, Rol = new Rol { RolID = BasicRol.Picker } }; View.Model.PickerList = service.GetUserByRol(userByRol); //Loading Open Documents LoadDocuments(); } catch (Exception ex) { Util.ShowError("Error loading view.\n" + ex.Message); } }
public ConnectionPresenter(IUnityContainer container, IConnectionView view, IShellPresenter regionManager) { View = view; this.container = container; this.service = new WMSServiceClient(); View.Model = this.container.Resolve<ConnectionModel>(); this.regionManager = regionManager; //Event Delegate View.New += new EventHandler<EventArgs>(this.OnNew); View.LoadData += new EventHandler<DataEventArgs<Connection>>(this.OnLoadData); View.LoadChilds += new EventHandler<DataEventArgs<ConnectionType>>(this.OnLoadChilds); View.Save += new EventHandler<EventArgs>(this.OnSave); View.Delete += new EventHandler<EventArgs>(this.OnDelete); View.TestConnection += new EventHandler<EventArgs>(this.OnTestConnection); View.Model.ListCnnType = service.GetConnectionType(new ConnectionType()); if (View.Model.ListCnnType != null && View.Model.ListCnnType.Count == 1) LoadChilds(View.Model.ListCnnType[0]); View.Model.Record = null; View.DpChilds.Visibility = Visibility.Collapsed; }
public IntroPresenter(IUnityContainer container, IIntroView view) { View = view; this.container = container; this.service = new WMSServiceClient(); View.Model = this.container.Resolve<IntroModel>(); }
public UnitPresenter(IUnityContainer container, IUnitView view) { View = view; this.container = container; this.service = new WMSServiceClient(); View.Model = this.container.Resolve<UnitModel>(); //Event Delegate View.LoadSearch += new EventHandler<DataEventArgs<string>>(this.OnLoadSearch); View.New += new EventHandler<EventArgs>(this.OnNew); View.LoadData += new EventHandler<DataEventArgs<Unit>>(this.OnLoadData); View.Save += new EventHandler<EventArgs>(this.OnSave); View.Delete += new EventHandler<EventArgs>(this.OnDelete); View.ShowOnlyGroups += new EventHandler<EventArgs>(OnShowOnlyGroups); ProcessWindow pw = new ProcessWindow("Loading ..."); View.Model.EntityList = service.GetUnit(new Unit { Company = App.curCompany }); View.Model.Record = null; View.TxtUnitGroup.IsEnabled = false; //List Height View.ListRecords.MaxHeight = SystemParameters.FullPrimaryScreenHeight - 250; //loading Units View.Model.UnitGroupList = service.GetUnit(new Unit { Company = App.curCompany, BaseAmount = 1 }).Where(f=>f.BaseAmount==1).ToList(); pw.Close(); }
public ConfigOptionPresenter(IUnityContainer container, IConfigOptionView view) { View = view; this.container = container; this.service = new WMSServiceClient(); View.Model = this.container.Resolve<ConfigOptionModel>(); //Event Delegate View.LoadSearch += new EventHandler<DataEventArgs<string>>(this.OnLoadSearch); View.New += new EventHandler<EventArgs>(this.OnNew); View.LoadData += new EventHandler<DataEventArgs<ConfigOptionByCompany>>(this.OnLoadData); View.Save += new EventHandler<EventArgs>(this.OnSave); View.Delete += new EventHandler<EventArgs>(this.OnDelete); View.FilterBy += new EventHandler<DataEventArgs<ConfigType>>(View_FilterBy); ProcessWindow pw = new ProcessWindow("Loading ..."); if (App.curRol.Rol.RolID == BasicRol.Admin) View.Model.EntityList = service.GetConfigOptionByCompany(new ConfigOptionByCompany { Company = App.curCompany }); else View.Model.EntityList = service.GetConfigOptionByCompany(new ConfigOptionByCompany { Company = App.curCompany }) .Where(f => f.ConfigOption.IsAdmin == true).ToList(); View.Model.Record = null; View.Model.TypeList = service.GetConfigType(new ConfigType()); View.Model.TypeList.Add(new ConfigType()); //List Height View.ListRecords.MaxHeight = SystemParameters.FullPrimaryScreenHeight - 250; pw.Close(); }
public SysUserPresenter(IUnityContainer container, ISysUserView view) { View = view; this.container = container; this.service = new WMSServiceClient(); View.Model = this.container.Resolve<SysUserModel>(); //Event Delegate View.LoadSearch += new EventHandler<DataEventArgs<string>>(this.OnLoadSearch); View.New += new EventHandler<EventArgs>(this.OnNew); View.LoadData += new EventHandler<EventArgs>(this.OnLoadData); View.Save += new EventHandler<EventArgs>(this.OnSave); View.Delete += new EventHandler<EventArgs>(this.OnDelete); View.AddRol += new EventHandler<EventArgs>(this.OnAddRol); View.RemoveFromList += new EventHandler<EventArgs>(this.OnRemoveFromList); ProcessWindow pw = new ProcessWindow("Loading ..."); View.Model.EntityList = service.GetSysUser(new SysUser()); //View.Model.Record = null; View.Model.LocationList = service.GetLocation(new Location { Company = App.curCompany }).OrderBy(f => f.Name).ToList(); View.Model.ListRol = service.GetRol(new Rol()).OrderBy(f=>f.Name).ToList(); pw.Close(); }
public ReceivingCubePresenter(IUnityContainer container, IReceivingCubeView view) { View = view; this.container = container; this.service = new WMSServiceClient(); View.Model = this.container.Resolve<ReceivingCubeModel>(); }
public AdministradorPresenter(IUnityContainer container, IAdministradorView view) { View = view; this.container = container; this.service = new WMSServiceClient(); View.Model = this.container.Resolve<AdministradorModel>(); #region Metodos //View.ConfirmBasicData += new EventHandler<EventArgs>(this.OnConfirmBasicData); //View.EvaluarTipoProducto += new EventHandler<DataEventArgs<Product>>(this.OnEvaluarTipoProducto); View.AddLine += new EventHandler<EventArgs>(this.OnAddLine); View.CargarDatosAdministrador += new EventHandler<EventArgs>(this.CargarDatosAdministrador); view.CargaMasiva += new EventHandler<DataEventArgs<DataTable>>(this.OnCargaMasiva); View.ReplicateDetails += new EventHandler<EventArgs>(this.OnReplicateDetails); View.SaveDetails += new EventHandler<EventArgs>(this.OnSaveDetails); View.ConfirmarMovimiento += new EventHandler<EventArgs>(this.OnConfirmarMovimiento); View.ReiniciarCapacitacion += new EventHandler<EventArgs>(this.OnReiniciarCapacitacion); View.ConsultarMovimientos += new EventHandler<EventArgs>(this.OnConsultarMovimientos); View.BuscarEquipoTracking += new EventHandler<EventArgs>(this.OnBuscarEquipoTracking); //Recibo View.BuscarRegistrosRecibo += this.OnBuscarRegistrosRecibo; View.BuscarNombreMaterial += this.OnBuscarNombreMaterial; View.ActualizarRegistrosRecibo += this.OnActualizarRegistrosRecibo; View.ConfirmarRecibo += this.OnConfirmarRecibo; //ConfirmarMovimiento #endregion #region Datos View.Model.HeaderDocument = new Document(); View.Model.RecordCliente = service.GetLocation(new Location { LocationID = App.curLocation.LocationID }).First(); View.Model.ListBinEntradaAlmacen = service.GetBin(new Bin { BinID = 4 }); try { Local = service.GetConnection(new Connection { Name = "LOCAL" }).First(); } catch { } View.Model.ListadoEstatusLogPro = service.GetMMaster(new MMaster { MetaType = new MType { Code = "LOGPROSTAT" } }); View.Model.ListadoPosiciones = service.GetMMaster(new MMaster { MetaType = new MType { Code = "POSICION1" } }); //View.Model.ListadoModelos = service.GetMMaster(new MMaster { MetaType = new MType { Code = "DRIRECMODE" } }); View.Model.ListadoOrigen = service.GetMMaster(new MMaster { MetaType = new MType { Code = "ALIADO" } }); View.Model.ListadoTipoOrigen = service.GetMMaster(new MMaster { MetaType = new MType { Code = "REMISIONRR" } }); View.Model.ListadoTipoREC = service.GetMMaster(new MMaster { MetaType = new MType { Code = "REC" } }); View.Model.ListadoFallas = service.GetMMaster(new MMaster { MetaType = new MType { Code = "FALLADIA" } }); View.Model.ListadoMotScrap = service.GetMMaster(new MMaster { MetaType = new MType { Code = "MOTSCRAP" } }); View.Model.ListadoEstadoRR = service.GetMMaster(new MMaster { MetaType = new MType { Code = "ESTADO RR" } }); View.Model.ListadoProductos = service.GetProduct(new Product()); View.Model.ListadoEquipos = service.DirectSQLQuery("exec sp_GetProcesos2 'HISTORICOSERIAL'", "", "dbo.movimientoclaro", Local); #endregion }
//private IList<ProductStock> curBinStock { get; set; } public KitAssemblyV2Presenter(IUnityContainer container, IKitAssemblyV2View view, IShellPresenter region) { try { View = view; this.container = container; this.service = new WMSServiceClient(); this.region = region; View.Model = this.container.Resolve<KitAssemblyV2Model>(); //Event Delegate View.SearchDocument += new EventHandler<DataEventArgs<string>>(this.OnSearchDocument); View.LoadDetails += new EventHandler<DataEventArgs<Document>>(this.OnLoadDetails); View.LoadUnits += new EventHandler<DataEventArgs<Product>>(this.OnLoadUnits); View.PickComponent += new EventHandler<EventArgs>(this.OnPickComponent); View.ReceiveLabel += new EventHandler<DataEventArgs<string>>(this.OnReceivingLabel); View.ReceiveLabelList += new EventHandler<EventArgs>(this.OnReceivingLabelList); View.PickAtOnce += new EventHandler<EventArgs>(this.OnPickAtOnce); //View.LoadProducts += new EventHandler<DataEventArgs<string>>(this.OnLoadProducts); View.ChangeStatus += new EventHandler<EventArgs>(this.OnChangeStatus); //View.ReceiveLabelTrackOption += new EventHandler<EventArgs>(this.OnReceivingLabelTrackOption); //View.LoadProductManualTrackOption += new EventHandler<EventArgs>(this.OnLoadProductManualTrackOption); //View.AddManualTrackToList += new EventHandler<EventArgs>(this.OnAddManualTrackToList); //View.ReceiveManualTrack += new EventHandler<EventArgs>(this.OnReceiveManualTrack); View.SelectedUnit += new EventHandler<EventArgs>(this.OnSelectUnit); //View.RemoveManualTrack += new EventHandler<EventArgs>(this.OnRemoveManualTrack); View.ShowReceivingTicket += new EventHandler<EventArgs>(this.OnShowReceivingTicket); View.PrintLabels += new EventHandler<EventArgs>(this.OnPrintLabels); //View.LoadBins += new EventHandler<DataEventArgs<string>>(OnLoadBins); View.RemoveFromNode += new EventHandler<DataEventArgs<DocumentBalance>>(OnRemoveFromNode); View.RefreshBin +=new EventHandler<EventArgs>(OnRefreshBin); View.LateDocuments += new EventHandler<DataEventArgs<bool?>>(this.OnLateDocuments); View.NewDocument += new EventHandler<EventArgs>(this.OnNewDocument); View.ConfirmOrder += new EventHandler<EventArgs>(this.OnConfirmOrder); View.Model.Document = new Document(); View.Model.AllPicked = true; View.Model.PrinterList = App.printerList; View.Model.PrinterList.Add(new Printer { PrinterName = WmsSetupValues.DEFAULT }); //Set Node to Stored Node. (el producto pasa directo por no estar conectado a un ERP) View.Model.Node = service.GetNode(new Node { NodeID = NodeType.Process }).First(); //Cargue de Documentos LoadDocuments(); } catch (Exception ex) { Util.ShowError("Error cargando vista.\n" + ex.Message); } }
public AdminInformationPresenter(IUnityContainer container, IAdminInformationView view) { View = view; this.container = container; this.service = new WMSServiceClient(); View.Model = this.container.Resolve<AdminInformationModel>(); #region Metodos #region Busqueda View.LoadData += new EventHandler<DataEventArgs<ClassEntity>>(this.OnLoadData); View.ShowFields += new EventHandler<DataEventArgs<ClassEntity>>(this.OnShowFields); #endregion #region Datos Estaticos View.AsignarProducto += new EventHandler<DataEventArgs<Product>>(this.OnAsignarProducto); View.CargarDatos += new EventHandler<DataEventArgs<Location>>(this.OnCargarDatos); #endregion #region Datos Generales #endregion #region Eventos Botones View.UpdateData += new EventHandler<EventArgs>(this.OnUpdateData); View.DeleteData += new EventHandler<EventArgs>(this.OnDeleteData); #endregion #endregion #region Datos //Obtengo el cliente View.Model.RecordCliente = service.GetLocation(new Location { LocationID = App.curLocation.LocationID }).First(); //Obtengo las opciones de Documento y Label View.Model.SearchTypeList = service.GetClassEntity(new ClassEntity()) .Where(f => f.ClassEntityID == EntityID.Document || f.ClassEntityID == EntityID.Label).ToList(); //Obtengo las ubicaciones del cliente View.Model.BinList = service.GetBin(new Bin { Location = View.Model.RecordCliente }); //Consulto los productos definidos para el cliente //View.Model.ProductsLocationList = service.GetProduct(new Product { Reference = View.Model.RecordCliente.LocationID.ToString() }); //View.Model.ProductsLocationList.Insert(0, service.GetProduct(new Product { ProductCode = WmsSetupValues.DEFAULT }).First()); //Obtengo los estados de los equipos View.Model.StatusList = App.EntityStatusList; #endregion }
public ReportPresenter(IUnityContainer container, IReportView view) { View = view; this.container = container; this.service = new WMSServiceClient(); View.Model = this.container.Resolve<ReportModel>(); //Event Delegate LoadUrlReport(); }
public MoverProductoPresenter(IUnityContainer container, IMoverProductoView view) { View = view; this.container = container; this.service = new WMSServiceClient(); View.Model = this.container.Resolve<MoverProductoModel>(); #region Metodos #region Header View.LoadBinFrom += new EventHandler<DataEventArgs<Location>>(this.OnLoadBinFrom); View.LoadLocationTo += new EventHandler<DataEventArgs<Bin>>(this.OnLoadLocationTo); View.LoadBinTo += new EventHandler<DataEventArgs<Location>>(this.OnLoadBinTo); View.LoadDocumentData += new EventHandler<DataEventArgs<BinRoute>>(this.OnLoadDocumentData); View.ConfirmBasicData += new EventHandler<EventArgs>(this.OnConfirmBasicData); View.NewBasicData += new EventHandler<EventArgs>(this.OnNewBasicData); View.CancelBasicData += new EventHandler<EventArgs>(this.OnCancelBasicData); View.Cbx_Etiqueta1_SelectedValue += new EventHandler<DataEventArgs<MMaster>>(this.OnCbx_Etiqueta1_SelectedValue); #endregion #region Serial View.AddLine += new EventHandler<EventArgs>(this.OnAddLine); View.EvaluarTipoProducto += new EventHandler<DataEventArgs<Product>>(this.OnEvaluarTipoProducto); #endregion #region Details View.SaveDetails += new EventHandler<EventArgs>(this.OnSaveDetails); View.ReplicateDetails += new EventHandler<EventArgs>(View_ReplicateDetails); View.MostrarInformacion += new EventHandler<EventArgs>(this.OnMostrarInformacion); //MostrarInformacion. View.Impresion_1 += new EventHandler<EventArgs>(this.Impresion_Etiqueta1); View.Impresion_2 += new EventHandler<EventArgs>(this.Impresion_Etiqueta2); #endregion #endregion #region Datos View.Model.HeaderDocument = new Document { CreatedBy = App.curUser.UserName }; View.Model.LocationFromList = App.curUser.UserRols.Select(f => f.Location).Distinct().ToList(); View.Model.ListLabelScann = new List<WpfFront.WMSBusinessService.Label>(); View.Model.ListDataInformation = new List<DataInformation>(); #endregion }
public DiagnosticoPresenter(IUnityContainer container, IDiagnosticoView view) { View = view; this.container = container; this.service = new WMSServiceClient(); View.Model = this.container.Resolve<DiagnosticoModel>(); #region Metodos View.ConfirmBasicData += new EventHandler<EventArgs>(this.OnConfirmBasicData); View.GenerarCodigo += new EventHandler<EventArgs>(this.OnGenerarCodigo); //View.EvaluarTipoProducto += new EventHandler<DataEventArgs<Product>>(this.OnEvaluarTipoProducto); 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 += new EventHandler<EventArgs>(this.OnConfirmarMovimiento); View.ConfirmarImpresion += new EventHandler<EventArgs>(this.OnConfirmarImpresion); View.HabilitarUbicacion += new EventHandler<SelectionChangedEventArgs>(this.OnHabilitarUbicacion); //Recibo View.BuscarRegistrosRecibo += this.OnBuscarRegistrosRecibo; View.ActualizarRegistrosRecibo += this.OnActualizarRegistrosRecibo; View.ConfirmarRecibo += this.OnConfirmarRecibo; View.FilaSeleccionada += this.OnFilaSeleccionada; View.DeleteDetails += new EventHandler<EventArgs>(this.OnDeleteDetails); //ConfirmarMovimiento #endregion #region Datos View.Model.HeaderDocument = new Document(); View.Model.RecordCliente = service.GetLocation(new Location { LocationID = App.curLocation.LocationID }).First(); View.Model.ListBinEntradaAlmacen = service.GetBin(new Bin { BinID = 4 }); try { Local = service.GetConnection(new Connection { Name = "LOCAL" }).First(); } catch { } View.Model.ListUbicacionesDestino = service.DirectSQLQuery("EXEC sp_GetProcesos 'UBICACIONESDESTINO', 'DIAGNOSTICO', 'CLARO'", "", "dbo.Ubicaciones", Local); CargarDatosDetails(); //ListarDatos(); OcultarPestanas(); //Cargo las ubicaciones View.Model.ListadoPosiciones = service.GetMMaster(new MMaster { MetaType = new MType { Code = "POSICION1" } }); this.Actualizar_UbicacionDisponible(); #endregion }
public DespachoDTVPresenter(IUnityContainer container, IDespachoDTVView view) { View = view; this.container = container; this.service = new WMSServiceClient(); View.Model = this.container.Resolve<DespachoDTVModel>(); #region Metodos View.ConfirmBasicData += new EventHandler<EventArgs>(this.OnConfirmBasicData); View.AddLine += new EventHandler<EventArgs>(this.OnAddLine); view.CargaMasiva += new EventHandler<DataEventArgs<DataTable>>(this.OnCargaMasiva); View.ReplicateDetails += new EventHandler<EventArgs>(this.OnReplicateDetails); View.SaveDetails += new EventHandler<EventArgs>(this.OnSaveDetails); View.ConfirmarMovimiento += new EventHandler<EventArgs>(this.OnConfirmarMovimiento); View.ImprimirHablador += new EventHandler<EventArgs>(this.OnImprimirHablador); //Recibo View.BuscarRegistrosRecibo += this.OnBuscarRegistrosRecibo; View.ActualizarRegistrosRecibo += this.OnActualizarRegistrosRecibo; View.ConfirmarRecibo += this.OnConfirmarRecibo; View.BuscarRegistrosDespachos += new EventHandler<EventArgs>(this.OnBuscarRegistroDespachos); View.MostrarEquiposDespacho += new EventHandler<EventArgs>(this.OnMostrarEquiposDespacho); View.FilaSeleccionada += this.OnFilaSeleccionada; View.ExportPalletSeleccion += this.OnExportPalletSeleccion; //ConfirmarMovimiento #endregion #region Datos View.Model.HeaderDocument = new Document(); View.Model.RecordCliente = service.GetLocation(new Location { LocationID = App.curLocation.LocationID }).First(); View.Model.ListBinEntradaAlmacen = service.GetBin(new Bin { BinID = 4 }); try { Local = service.GetConnection(new Connection { Name = "LOCAL" }).First(); } catch { } View.Model.ListUbicacionesDestino = service.DirectSQLQuery("EXEC sp_GetProcesos 'UBICACIONESDESTINO', 'DESPACHO', 'CLARO'", "", "dbo.Ubicaciones", Local); View.Model.ListadoPosiciones = service.GetMMaster(new MMaster { MetaType = new MType { Code = "DTVPOSIC" } }); View.Model.ListadoProductosDespacho = service.DirectSQLQuery("SELECT MODELO FROM dbo.Despacho_EquiposDIRECTVC WHERE ESTADO = 'DESPACHADO' GROUP BY MODELO", "", "dbo.Despacho_EquiposDIRECTVC", Local); CargarDatosDetails(); //ListarDatos(); #endregion }
private Boolean seleccionUbicacion = false; // Controla el dato de la ubicacion, si el usuario selecciona nueva pallet (False) se toma del combobox ubicacion, si selecciona una fila/pallet se captura de ahi (True) public AlmacenamientoPresenter(IUnityContainer container, IAlmacenamientoView view) { View = view; this.container = container; this.service = new WMSServiceClient(); View.Model = this.container.Resolve<AlmacenamientoModel>(); #region Metodos View.AddLine += new EventHandler<EventArgs>(this.OnAddLine); view.CargaMasiva += new EventHandler<DataEventArgs<DataTable>>(this.OnCargaMasiva); View.ReplicateDetails += new EventHandler<EventArgs>(this.OnReplicateDetails); View.SaveDetails += new EventHandler<EventArgs>(this.OnSaveDetails); View.ConfirmarMovimiento += new EventHandler<EventArgs>(this.OnConfirmarMovimiento); View.ActualizarRegistrosRecibo += this.OnActualizarRegistrosRecibo; View.BuscarRegistrosRecibo += this.OnBuscarRegistrosRecibo; View.GenerarPallet += new EventHandler<EventArgs>(this.OnGenerarPallet); View.KeyConsultarPallet += new EventHandler<KeyEventArgs>(this.OnKeyConsultarPallet); View.EnterConsultarPallet += new EventHandler<KeyEventArgs>(this.OnEnterConsultarPallet); View.SeleccionPallet_Consulta += new EventHandler<EventArgs>(this.OnSeleccionPalletConsulta); View.Imprimir_Hablador += new EventHandler<EventArgs>(this.OnImprimir_Hablador); View.ListarEquiposSeleccion += new EventHandler<EventArgs>(this.OnListarEquiposSeleccion); View.ImprimirHabladorAlmacen += new EventHandler<EventArgs>(this.OnImprimirHabladorAlmacen); View.EliminarEquipo_Fila += new EventHandler<EventArgs>(this.OnEliminarEquipo_Fila); #endregion #region Datos //Cargo la variable de las consultas directas try { Local = service.GetConnection(new Connection { Name = "LOCAL" }).First(); } catch { } //Cargo las ubicaciones View.Model.ListadoPosiciones = service.GetMMaster(new MMaster { MetaType = new MType { Code = "DTVPOSIC" } }); this.Actualizar_UbicacionDisponible(); View.Model.ListUbicacionesDestino = service.DirectSQLQuery("EXEC sp_GetProcesos 'UBICACIONESDESTINO', 'RECIBOALMACEN', 'CLARO'", "", "dbo.Ubicaciones", Local); CargarListPallets(); //Cargo los datos del listado CargarDatosDetails(); #endregion }
public ProductPresenter(IUnityContainer container, IProductView view) { View = view; this.container = container; this.service = new WMSServiceClient(); View.Model = this.container.Resolve<ProductModel>(); //Event Delegate View.LoadSearch += new EventHandler<DataEventArgs<string>>(this.OnLoadSearch); View.New += new EventHandler<EventArgs>(this.OnNew); View.LoadData += new EventHandler<DataEventArgs<Product>>(this.OnLoadData); View.Save += new EventHandler<EventArgs>(this.OnSave); View.Delete += new EventHandler<EventArgs>(this.OnDelete); View.AssignBinToProduct += new EventHandler<DataEventArgs<Bin>>(OnAssignBinToProduct); View.RemoveFromList += new EventHandler<EventArgs>(this.OnRemoveFromList); View.AddProductTrackOption += new EventHandler<EventArgs>(OnAddProductTrackOption); View.AddProductUnit += new EventHandler<EventArgs>(OnAddProductUnit); View.LoadUnitsFromGroup += new EventHandler<EventArgs>(OnLoadUnitsFromGroup); //View.LoadBins += new EventHandler<DataEventArgs<string>>(OnLoadBins); View.SetRequired += new EventHandler<DataEventArgs<object>>(View_SetRequired); View.UnSetRequired += new EventHandler<DataEventArgs<object>>(View_UnSetRequired); View.UpdateBinToProduct += new EventHandler<DataEventArgs<ZoneBinRelation>>(View_UpdateBinToProduct); View.AddAlternateProduct += new EventHandler<EventArgs>(View_AddAlternateProduct); View.AddProductAccount += new EventHandler<DataEventArgs<ProductAccountRelation>>(View_AddProductAccount); View.UpdateProductAccount += new EventHandler<DataEventArgs<object>>(View_UpdateProductAccount); //View.SetIsMain += new EventHandler<DataEventArgs<object>>(View_SetIsMain); //View.UnSetIsMain += new EventHandler<DataEventArgs<object>>(View_UnSetIsMain); ProcessWindow pw = new ProcessWindow("Loading ..."); View.Model.EntityList = service.GetProductApp(new Product { Company = App.curCompany, Reference = App.curLocation.LocationID.ToString() }, 25); View.Model.Record = null; View.Model.StatusList = App.EntityStatusList; //Load Pick Methods View.Model.PickMethods = App.PickMethodList; view.Model.TemplateList = service.GetLabelTemplate(new LabelTemplate { LabelType = new DocumentType { DocTypeID = LabelType.ProductLabel } }); view.Model.TemplateList.Add(new LabelTemplate()); //List Height View.ListRecords.MaxHeight = SystemParameters.FullPrimaryScreenHeight - 250; View.Model.CurAltern = new ProductAlternate(); //USE CASN if (Util.GetConfigOption("USECASN").Equals("T")) View.TbItmCasN.Visibility = Visibility.Visible; pw.Close(); }
public BodegasPresenter(IUnityContainer container, IBodegasView view) { View = view; this.container = container; this.service = new WMSServiceClient(); View.Model = this.container.Resolve<BodegasModel>(); #region Metodos View.AddLine += new EventHandler<EventArgs>(this.OnAddLine); view.CargaMasiva += new EventHandler<DataEventArgs<DataTable>>(this.OnCargaMasiva); View.ReplicateDetails += new EventHandler<EventArgs>(this.OnReplicateDetails); View.SaveDetails += new EventHandler<EventArgs>(this.OnSaveDetails); //View.ConfirmarMovimiento += new EventHandler<EventArgs>(this.OnConfirmarMovimiento); //View.Imprimir_Hablador += new EventHandler<EventArgs>(this.OnImprimir_Hablador); View.EliminarEquipo_Fila += new EventHandler<EventArgs>(this.OnEliminarEquipo_Fila); View.GenerarPallet += new EventHandler<EventArgs>(this.OnGenerarPallet); View.SeleccionPallet_Consulta += new EventHandler<EventArgs>(this.OnSeleccionPalletConsulta); View.KeyConsultarPallet += new EventHandler<KeyEventArgs>(this.OnKeyConsultarPallet); View.EnterConsultarPallet += new EventHandler<KeyEventArgs>(this.OnEnterConsultarPallet); View.ImprimirHablador += new EventHandler<EventArgs>(this.OnImprimirHablador); //View.ActualizarRegistrosRecibo += this.OnActualizarRegistrosRecibo; //View.BuscarRegistrosRecibo += this.OnBuscarRegistrosRecibo; //View.FilaSeleccionada += this.OnFilaSeleccionada; #endregion #region Datos //Cargo la variable de las consultas directas try { Local = service.GetConnection(new Connection { Name = "LOCAL" }).First(); } catch { } //Cargo las ubicaciones View.Model.ListadoPosiciones = service.GetMMaster(new MMaster { MetaType = new MType { Code = "CLAROPOSIC" } }); View.Model.ListUbicacionesDestino = service.DirectSQLQuery("EXEC sp_GetProcesos 'UBICACIONESDESTINO', 'RECIBOALMACEN', 'CLARO'", "", "dbo.Ubicaciones", Local); this.Actualizar_UbicacionDisponible(); //Creo la consulta para buscar los ultimos 15 pallets registrados //String ConsultaSQL = "EXEC sp_GetProcesos 'BUSCARPALLETALMACENAMIENTO','','" + this.user + "','',''"; //View.Model.ListPallets_Almacenamiento = service.DirectSQLQuery(ConsultaSQL, "", "dbo.EquiposCLARO", Local); //Cargo los datos del listado CargarDatosDetails(); ConsultarPallets(); Calcular_TotalEquipos(); #endregion }
public MoverMercanciaDTVPresenter(IUnityContainer container, IMoverMercanciaDTVView view) { View = view; this.container = container; this.service = new WMSServiceClient(); View.Model = this.container.Resolve<MoverMercanciaDTVModel>(); #region Metodos #region Cambio Ubicaciones View.BuscarRegistrosCambioUbicaciones += this.OnBuscarRegistrosCambioUbicaciones; View.ActualizarRegistrosCambioUbicaciones += this.OnActualizarRegistrosCambioUbicaciones; View.HabilitarCambioUbicacion += this.OnHabilitarCambioUbicacion; View.GuardarNuevaUbicacion += this.OnGuardarNuevaUbicacion; View.FilaSeleccionada += this.OnFilaSeleccionadas; #endregion #region Cambio Clasificacion View.BuscarRegistrosCambioClasificacion += this.OnBuscarRegistrosCambioClasificacion; View.ActualizarRegistrosCambioClasificacion += this.OnActualizarRegistrosCambioClasificacion; View.HabilitarCambioClasificacion += this.OnHabilitarCambioClasificacion; View.GuardarNuevaClasificacion += this.OnGuardarNuevaClasificacion; View.ImprimirRegistros += this.OnImprimirRegistros; View.ExportPalletSeleccion += this.OnExportPalletSeleccion; View.ExportSerialesSeleccion += this.OnExportSerialesSeleccion; #endregion #endregion #region Datos //Cargo la conexion local try { Local = service.GetConnection(new Connection { Name = "LOCAL" }).First(); } catch { } //Cargo las ubicaciones View.Model.ListadoPosiciones = service.GetMMaster(new MMaster { MetaType = new MType { Code = "DTVPOSIC" } }); this.Actualizar_UbicacionDisponible(); // Cargo el nombre de los productos en almacenamiento a los combobox de filtrado View.Model.ListadoProductosActivos = service.DirectSQLQuery("SELECT MODELO FROM dbo.EquiposDIRECTVC WHERE ESTADO = 'ALMACENAMIENTO' GROUP BY MODELO", "", "dbo.EquiposDIRECTVC", Local); //Cargo los datos del listado de ubicaciones destino View.Model.ListUbicacionesDestino = service.DirectSQLQuery("EXEC sp_GetProcesos 'UBICACIONESDESTINO', 'ALMACENAMIENTO', 'CLARO'", "", "dbo.Ubicaciones", Local); #endregion }
public FileProcessPresenter(IUnityContainer container, IFileProcessView view, IShellPresenter region) { View = view; this.container = container; this.region = region; this.service = new WMSServiceClient(); View.Model = this.container.Resolve<FileProcessModel>(); //Event Delegate View.ProcessFile += new EventHandler<DataEventArgs<Stream>>(View_ProcessFile); //Load Process View.Model.EntityList = service.GetCustomProcess(new CustomProcess { ProcessType = new DocumentType { DocTypeID = SDocType.FileProcess } }); }
public EntradaAlmacenPresenter(IUnityContainer container, IEntradaAlmacenView view) { View = view; this.container = container; this.service = new WMSServiceClient(); View.Model = this.container.Resolve<EntradaAlmacenModel>(); #region Metodos #region Header View.CargarHeader += new EventHandler<DataEventArgs<Bin>>(this.OnCargarHeader); View.ConfirmBasicData += new EventHandler<EventArgs>(this.OnConfirmBasicData); View.CancelBasicData += new EventHandler<EventArgs>(this.OnCancelBasicData); View.NewBasicData += new EventHandler<EventArgs>(this.OnNewBasicData); View.MostrarInformacion += new EventHandler<EventArgs>(this.OnMostrarInformacion); //MostrarInformacion. #endregion #region Serial View.EvaluarTipoProducto += new EventHandler<DataEventArgs<Product>>(this.OnEvaluarTipoProducto); View.AddLine += new EventHandler<EventArgs>(this.OnAddLine); #endregion #region Details View.SaveDetails += new EventHandler<EventArgs>(this.OnSaveDetails); View.ReplicateDetails += new EventHandler<EventArgs>(this.OnReplicateDetails); View.Imprimir += new EventHandler<EventArgs>(this.OnImprimir); #endregion #endregion #region Datos View.Model.HeaderDocument = new Document(); View.Model.RecordCliente = service.GetLocation(new Location { LocationID = App.curLocation.LocationID }).First(); View.Model.ListBinEntradaAlmacen = service.GetBin(new Bin { LevelCode = "R", Location = View.Model.RecordCliente }); ProductDefault = service.GetProduct(new Product { ProductCode = WmsSetupValues.DEFAULT }).First(); //string fullyqualifiedname = new DateTime().GetType().AssemblyQualifiedName; try { Local = service.GetConnection(new Connection { Name = "LOCAL" }).First(); } catch { } #endregion }
public EtiquetadosPresenter(IUnityContainer container, IEtiquetadosView view) { View = view; this.container = container; this.service = new WMSServiceClient(); View.Model = this.container.Resolve<EtiquetadosModel>(); #region Metodos View.ConfirmBasicData += new EventHandler<EventArgs>(this.OnConfirmBasicData); //View.EvaluarTipoProducto += new EventHandler<DataEventArgs<Product>>(this.OnEvaluarTipoProducto); 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 += new EventHandler<EventArgs>(this.OnConfirmarMovimiento); View.DeleteDetails += new EventHandler<EventArgs>(this.OnDeleteDetails); View.ImprimirEtiqueta_Individual += new EventHandler<EventArgs>(this.OnImprimirEtiqueta_Individual); View.GetNumeroCodigos += new EventHandler<SelectionChangedEventArgs>(this.OnGetNumeroCodigos); //Recibo //View.BuscarRegistrosRecibo += this.OnBuscarRegistrosRecibo; //View.ActualizarRegistrosRecibo += this.OnActualizarRegistrosRecibo; //View.ConfirmarRecibo += this.OnConfirmarRecibo; //ConfirmarMovimiento #endregion #region Datos View.Model.HeaderDocument = new Document(); View.Model.RecordCliente = service.GetLocation(new Location { LocationID = App.curLocation.LocationID }).First(); View.Model.ListBinEntradaAlmacen = service.GetBin(new Bin { BinID = 4 }); try { Local = service.GetConnection(new Connection { Name = "LOCAL" }).First(); } catch { } View.Model.ListUbicacionesDestino = service.DirectSQLQuery("EXEC sp_GetProcesos 'UBICACIONESDESTINO', 'ETIQUETADO', 'CLARO'", "", "dbo.Ubicaciones", Local); View.Model.ListadoPosiciones = service.GetMMaster(new MMaster { MetaType = new MType { Code = "POSICION1" } }); CargarDatosDetails(); ListarDatos(); #endregion }
public TrackOptionShipPresenter(IUnityContainer container, ITrackOptionShipView view) { View = view; this.container = container; this.service = new WMSServiceClient(); //this.region = region; View.Model = this.container.Resolve<TrackOptionShipModel>(); //Event Delegate View.LoadQuantity += new EventHandler<DataEventArgs<Label>>(View_LoadQuantity); View.PickToList += new EventHandler<EventArgs>(View_PickToList); View.LoadSetup += new EventHandler<EventArgs>(View_LoadSetup); View.PickUniqueLabel += new EventHandler<DataEventArgs<string>>(View_PickUniqueLabel); View.RemoveUniqueTrack += new EventHandler<EventArgs>(View_RemoveUniqueTrack); }
public int offset = 5; //# columnas que no se debe replicar porque son fijas. public ConfirmacionIntermediaPresenterP(IUnityContainer container, IConfirmacionIntermediaViewP view) { View = view; this.container = container; this.service = new WMSServiceClient(); View.Model = this.container.Resolve<ConfirmacionIntermediaModelP>(); #region Metodos View.ConfirmBasicData += new EventHandler<EventArgs>(this.OnConfirmBasicData); view.CargaMasiva += new EventHandler<DataEventArgs<DataTable>>(this.OnCargaMasiva); View.ReplicateDetails += new EventHandler<EventArgs>(this.OnReplicateDetails); View.SaveDetails += new EventHandler<EventArgs>(this.OnSaveDetails); View.EmpacarConfirmacion += new EventHandler<EventArgs>(this.OnConfirmarMovimiento); //Recibo View.BuscarRegistrosRecibo += this.OnBuscarRegistrosRecibo; View.FilaSeleccionada += this.OnFilaSeleccionada; View.ImprimirHablador += new EventHandler<EventArgs>(this.OnImprimirHablador); View.GenerarCodigo += new EventHandler<EventArgs>(this.OnGenerarCodigo); //ConfirmarMovimiento #endregion #region Datos View.Model.HeaderDocument = new Document(); View.Model.RecordCliente = service.GetLocation(new Location { LocationID = App.curLocation.LocationID }).First(); View.Model.ListBinEntradaAlmacen = service.GetBin(new Bin { BinID = 4 }); try { Local = service.GetConnection(new Connection { Name = "LOCAL" }).First(); } catch { } DataTable table = new DataTable(); table.Columns.Add("UbicacionDestino", typeof(string)); table.Rows.Add("DIAGNOSTICO"); View.Model.ListUbicacionesDestino = table; View.Model.ListadoPosiciones = service.GetMMaster(new MMaster { MetaType = new MType { Code = "POSICION1" } }); CargarDatosDetails(); //ListarDatos(); #endregion }
public DespachosPresenter(IUnityContainer container, IDespachosView view) { View = view; this.container = container; this.service = new WMSServiceClient(); View.Model = this.container.Resolve<DespachosModel>(); #region Metodos #region Header View.CargarHeader += new EventHandler<DataEventArgs<Bin>>(this.OnCargarHeader); View.ConfirmBasicData += new EventHandler<EventArgs>(this.OnConfirmBasicData); View.CancelBasicData += new EventHandler<EventArgs>(this.OnCancelBasicData); View.NewBasicData += new EventHandler<EventArgs>(this.OnNewBasicData); #endregion #region Serial View.AddLine += new EventHandler<EventArgs>(this.OnAddLine); #endregion #region Details View.SaveDetails += new EventHandler<EventArgs>(this.OnSaveDetails); #endregion #endregion #region Datos View.Model.HeaderDocument = new Document(); View.Model.RecordCliente = service.GetLocation(new Location { LocationID = App.curLocation.LocationID }).First(); View.Model.ListBinDespachosAlmacen = service.GetBin(new Bin { LevelCode = "D", Location = View.Model.RecordCliente }); //BinDespachos = service.GetBin(new Bin { BinCode = View.Model.RecordCliente.AddressLine2, Location = View.Model.RecordCliente }).First(); ProductDefault = service.GetProduct(new Product { ProductCode = WmsSetupValues.DEFAULT }).First(); LocationDespachos = service.GetLocation(new Location { ErpCode = "DESPACHOS" }).First(); View.Model.ListLabelScann = new List<WpfFront.WMSBusinessService.Label>(); View.Model.ListDataInformation = new List<DataInformation>(); //CargarDatosHeader(); #endregion }
public DocumentManagerPresenter(IUnityContainer container, IDocumentManagerView view) { View = view; this.container = container; this.service = new WMSServiceClient(); View.Model = this.container.Resolve<DocumentManagerModel>(); //Event Delegate View.SaveHeader += new EventHandler<EventArgs>(this.OnSaveHeader); View.ChangeVendorCustomer += new EventHandler<DataEventArgs<DocumentType>>(this.OnChangeVendorCustomer); View.DeleteDocumentLines += new EventHandler<EventArgs>(this.OnDeleteDocumentLines); View.SearchAddress += new EventHandler<DataEventArgs<int>>(OnSearchAddress); //ProcessWindow pw = new ProcessWindow("Loading ..."); //Inicializo las variables del sistema y los listados a mostrar View.Model.Record = new Document(); View.Model.RecordShippingAddress = new DocumentAddress(); View.Model.RecordBildAddress = new DocumentAddress(); View.Model.DocumentLine = new DocumentLine(); View.Model.DocumentLineList = new List<DocumentLine>(); View.Model.DocTypeList = service.GetDocumentType(new DocumentType()).Where(f => f.DocClass.HasAdmin == true).ToList(); /*View.Model.DocConceptList = service.GetDocumentConcept(new DocumentConcept()); View.Model.DocStatusList = service.GetStatus(new Status());*/ View.Model.LocationList = service.GetLocation(new Location()); View.Model.ShippingMethodList = service.GetShippingMethod(new ShippingMethod()); View.Model.PickingMethodList = service.GetPickMethod(new PickMethod()); View.DocumentDate.Text = DateTime.Now.ToString(); View.AdminDocumentLine.PresenterParent = this; //Asigno los campos obligatorios para el documento de cabecera View.Model.Record.Company = new Company { CompanyID = App.curCompany.CompanyID }; View.Model.Record.IsFromErp = false; View.Model.Record.Priority = 0; View.Model.Record.CrossDocking = false; View.Model.Record.CreatedBy = App.curUser.UserName; View.Model.Record.CreationDate = DateTime.Now; //Asigno los campos obligatorios para los registros de direcciones de envio y facturacion View.Model.RecordShippingAddress.CreatedBy = App.curUser.UserName; view.Model.RecordShippingAddress.CreationDate = DateTime.Now; View.Model.RecordBildAddress.CreatedBy = App.curUser.UserName; view.Model.RecordBildAddress.CreationDate = DateTime.Now; //pw.Close(); }