public int AttProd() { string query = "UPDATE produto SET Nome = '" + NomeProd + "', CodPlat = " + CodPlat + ", Descricao = '" + DescProd + "', CodCat = '" + CatProd + "', Status = " + StatusProd + ", Preco = " + PrecoProd + ", Qtde = " + QtdeProd + " WHERE CodProduto = " + CodProd + ";"; ClassConexao objCon = new ClassConexao(); return(objCon.ExecutaQuery(query)); }
public int AttClie() { string query = "UPDATE cliente SET Nome = '" + NomeCliente + "',NomeSocial = '" + NomeSocCliente + "',CPF = '" + CpfCliente + "',RG = '" + RgClie + "',OrgEmissor = '" + OrgEmiClie + "',Tel = '" + TelCliente1 + "',Tel1 = '" + TelCliente2 + "',CPF = '" + CpfCliente + "',Sexo = " + SexoCliente + ",Rua = '" + EndRuaCliente + "',Cidade = '" + EndCityCliente + "',CEP = '" + EndCepCliente + "',Estado = '" + EndEstadoCliente + "',DataNasc = '" + DataNascClie.ToString("yyyy-MM-dd") + "',Status = " + StatusClieI + " where CodCliente = " + CodCliente; ClassConexao c = new ClassConexao(); return(c.ExecutaQuery(query)); }
public int DelClie() { string query = "delete from cliente where CodCliente =" + CodCliente; ClassConexao c = new ClassConexao(); return(c.ExecutaQuery(query)); }
public int CadastrarCliente() { string query = "insert into cliente values (0," + "'" + NomeCliente + "'," + "'" + CpfCliente + "','" + RgClie + "','" + OrgEmiClie + "','" + TelCliente1 + "','" + TelCliente4 + "'," + "now()" + ",'" + NomeSocCliente + "'," + SexoCliente + ",'" + EndRuaCliente + "','" + EndCityCliente + "','" + EndCepCliente + "','" + EndEstadoCliente + "','" + DataNascClie.ToString("yyyy-MM-dd") + "',1);"; ClassConexao objCon = new ClassConexao(); return(objCon.ExecutaQuery(query)); }
public int CadastrarFuncionario() { string query = "insert into funcionario values(0,'" + NomeFunc + "','" + NomeSocFunc + "','" + CpfFunc + "','" + RgFunc + "','" + OrgEmiFunc + "'," + SexoFunc + ",'" + UserFunc + "','" + PassFunc + "'," + "now()" + ",'" + StatusFunc + "','" + TelFunc1 + "','" + TelFunc2 + "','" + EndRuaFunc + "','" + EndCityFunc + "','" + EndEstadoFunc + "','" + EndCepFunc + "','" + DataNascFunc + "');"; ClassConexao objCon = new ClassConexao(); return(objCon.ExecutaQuery(query)); }
public int CadPlat() { string query = "insert into plataforma values(0,'" + NomePlat + "');"; ClassConexao objCon = new ClassConexao(); return(objCon.ExecutaQuery(query)); }