예제 #1
0
        private void InserirPrioridadeUnionista(IPrioridadeUnionistaPatente prioridadeUnionistaPatente, long idPatente)
        {
            var comandoSQL = new StringBuilder();
            IDBHelper DBHelper = ServerUtils.getDBHelper();

            prioridadeUnionistaPatente.Identificador = GeradorDeID.getInstancia().getProximoID();

            comandoSQL.Append("INSERT INTO MP_PATENTEPRIORIDADEUNIONISTA(IDPRIORIDADEUNIONISTA, DATA_PRIORIDADE, NUMERO_PRIORIDADE, IDPATENTE, IDPAIS) VALUES(");
            comandoSQL.Append(prioridadeUnionistaPatente.Identificador + ", ");
            comandoSQL.Append(prioridadeUnionistaPatente.DataPrioridade.HasValue ? prioridadeUnionistaPatente.DataPrioridade.Value.ToString("yyyyMMdd") + ", " : "NULL, ");
            comandoSQL.Append("'" + UtilidadesDePersistencia.FiltraApostrofe(prioridadeUnionistaPatente.NumeroPrioridade) + "', ");
            comandoSQL.Append(idPatente + ", ");
            comandoSQL.Append(prioridadeUnionistaPatente.Pais.ID + ") ");
            DBHelper.ExecuteNonQuery(comandoSQL.ToString());
        }
 public void CarregueObjetoReal()
 {
     _ObjetoReal = RepositorioPrioridadeUnionistaPatente.obtenhaInstancia().ObtenhaPrioridadeUnionista(_ID);
 }