Exemplo n.º 1
0
 private static void vInsertService(ref mdlDataBaseAccess.clsDataBaseAccess cls_dba_ConnectionDB)
 {
     mdlDataBaseAccess.Tabelas.XsdTbWebServiceServicos typDatSetServicos = cls_dba_ConnectionDB.GetTbWebServiceServicos(null, null, null, null, null);
     mdlDataBaseAccess.Tabelas.XsdTbWebServiceServicos.tbWebServiceServicosRow dtrwServico = typDatSetServicos.tbWebServiceServicos.NewtbWebServiceServicosRow();
     dtrwServico.nIdServico = 1;
     dtrwServico.strServico = mdlConstantes.clsConstantes.DEFAULT_SERVICO;
     typDatSetServicos.tbWebServiceServicos.AddtbWebServiceServicosRow(dtrwServico);
     try
     {
         cls_dba_ConnectionDB.SetTbWebServiceServicos(typDatSetServicos);
     }
     catch
     {
     }
 }
Exemplo n.º 2
0
 private static bool bExistService(ref mdlDataBaseAccess.clsDataBaseAccess cls_dba_ConnectionDB)
 {
     mdlDataBaseAccess.Tabelas.XsdTbWebServiceServicos typDatSetServicos = cls_dba_ConnectionDB.GetTbWebServiceServicos(null, null, null, null, null);
     return(typDatSetServicos.tbWebServiceServicos.Rows.Count > 0);
 }