예제 #1
0
 private void btnAlta_Click(object sender, EventArgs e)
 {
     if (!string.IsNullOrEmpty(txtDuracion.Text) && !string.IsNullOrEmpty(txtDesc.Text)
         && !string.IsNullOrEmpty(txtPrecioPorPublicar.Text) && !string.IsNullOrEmpty(txtPorcentaje.Text))
          {
              conec = new SQLConnector();
              string queryAlta = "exec SQL_O.alta_visibilidad '" + txtDesc.Text + "'" + "'" + txtDuracion.Text + "'" + "'" + txtPrecioPorPublicar.Text + "'" + "'" + txtPorcentaje.Text + "'";
              conec.executeOnly(queryAlta);
              MessageBox.Show("Nueva visibilidad creada con exito");
          }
 }
예제 #2
0
 public void facturar(SQLConnector con, int fact_id)
 {
     String query = "UPDATE Item_Factura SET Item_Factura =" + fact_id.ToString()+
                     "WHERE Item_Id =" + id.ToString();
     con.executeOnly(query);
 }