// ***************************** ***************************** ***************************** // constructor public SistemaAddViewModel() { this._SistemaRepository = new Protell.DAL.Repository.SistemaRepository(); this._Sistema = new SistemaModel() { IdSistema = new UNID().getNewUNID(), IsActive = true }; }
// ***************************** ***************************** ***************************** // constructor public SistemaModViewModel(SistemaModel p) { this._SistemaRepository = new Protell.DAL.Repository.SistemaRepository(); this._Sistema = new SistemaModel() { IdSistema = p.IdSistema, SistemaName = p.SistemaName, IsActive = p.IsActive, }; }
public void UpdateEstPuntoMedSyncServer(SistemaModel estpuntomed, System.Data.Objects.ObjectContext context) { throw new NotImplementedException(); }
public bool CanSave() { bool _CanSave = false; if ((this._Sistema != null) || !String.IsNullOrEmpty(this._Sistema.SistemaName)) { _CanSave = true; this._CheckSave = this._SistemaRepository.GetSistemaADD(this._Sistema); if (this._CheckSave != null) { _CanSave = false; ElementExists = "El elemento ya existe."; } else { _CanSave = true; ElementExists = ""; } } return _CanSave; }