public void updatetipos(tipo_cargamento_Entity tip) { try { cnn.updateSQL("UPDATE TIPO_CARGAMENTO SET nombretipocarga = '" + tip.nombre_tipo_cargamento + "' WHERE idtipocarga = '" + tip.id_tipo_cargamento + "'"); } catch (Exception ex) { String error = ex.ToString(); } }
public void deletetipos(tipo_cargamento_Entity tip) { try { cnn.deleteSQL("DELETE TIPO_CARGAMENTO WHERE idtipocarga='" + tip.id_tipo_cargamento + "'"); } catch (Exception ex) { String error = ex.ToString(); } }
public void inserttipocargamento(tipo_cargamento_Entity tip) { try { cnn.insertSQL("INSERT INTO TIPO_CARGAMENTO (nombretipocarga)values('" + tip.nombre_tipo_cargamento + "')"); } catch (Exception ex) { String error = ex.ToString(); } }
public void deleteTipo(tipo_cargamento_Entity tip) { try { tipo_cargamento_DAL tipo = new tipo_cargamento_DAL(); tipo.deletetipos(tip); } catch (Exception ex) { String error = ex.ToString(); } }
public void insertTipo(tipo_cargamento_Entity tip) { try { tipo_cargamento_DAL tipo = new tipo_cargamento_DAL(); tipo.inserttipocargamento(tip); } catch (Exception ex) { String error = ex.ToString(); } }