Esempio n. 1
0
 private void ProdutoAdd(ProdutoInfo a, Cnx cnz)
 {
     if (a != null)
     {
         cnz.AddMySqlParameterCollection("@id", a.produtoid);
         cnz.AddMySqlParameterCollection("@descricao", a.produtodescricao);
         cnz.AddMySqlParameterCollection("@foto", a.produtofoto);
         cnz.AddMySqlParameterCollection("@valor", a.produtovalor);
     }
 }
Esempio n. 2
0
 private void ItemAdd(SorteioItemInfo a, Cnx cnz)
 {
     if (a != null)
     {
         cnz.AddMySqlParameterCollection("@id", a.ID);
         cnz.AddMySqlParameterCollection("@prod", a.Prod.produtoid);
         cnz.AddMySqlParameterCollection("@sort", a.Sort.sorteioid);
         cnz.AddMySqlParameterCollection("@quant", a.Quant);
     }
 }
Esempio n. 3
0
 private void SorteioAdd(SorteioInfo a, Cnx cnz)
 {
     if (a != null)
     {
         cnz.AddMySqlParameterCollection("@id", a.sorteioid);
         cnz.AddMySqlParameterCollection("@descricao", a.sorteiodescricao);
         cnz.AddMySqlParameterCollection("@quantb", a.sorteiobilhetequant);
         cnz.AddMySqlParameterCollection("@valor", a.sorteiobilhetevalor);
         cnz.AddMySqlParameterCollection("@sdata", a.sorteiodata);
     }
 }
Esempio n. 4
0
 private void BilheteAdd(BilheteInfo a, Cnx cnz)
 {
     if (a != null)
     {
         cnz.AddMySqlParameterCollection("@id", a.bilheteid);
         cnz.AddMySqlParameterCollection("@conc", a.bilheteidconcorrente.concorrenteid);
         cnz.AddMySqlParameterCollection("@vend", a.bilheteidvendedor.concorrenteid);
         cnz.AddMySqlParameterCollection("@sort", a.bilheteidsorteio.sorteioid);
         cnz.AddMySqlParameterCollection("@num", a.bilhetenum);
     }
 }
Esempio n. 5
0
 private void ConcorrenteAdd(ConcorrenteInfo a, Cnx cnz)
 {
     if (a != null)
     {
         cnz.AddMySqlParameterCollection("@id", a.concorrenteid);
         cnz.AddMySqlParameterCollection("@cpf", a.concorrentecpf);
         cnz.AddMySqlParameterCollection("@nome", a.concorrentenome);
         cnz.AddMySqlParameterCollection("@email", a.concorrenteemail);
         cnz.AddMySqlParameterCollection("@tel", a.concorrentetelefone);
     }
 }