Exemplo n.º 1
0
 protected void IniciarPagamento()
 {
     FormaPagamentoPadrao = FormasPagamento.SingleOrDefault(forma => forma.AVista);
     foreach (var condicao in CondicoesPagamento)
     {
         if (condicao.Prazos.Count == 1 && condicao.Prazos[0].Prazo == 0)
         {
             CondicaoPagamento = condicao;
         }
     }
 }
Exemplo n.º 2
0
 public bool DeletarUnidadeMedida(FormasPagamento sql)
 {
     try
     {
         using (var conexao = new SQLiteConnection(System.IO.Path.Combine(pasta, "StfrenteAndroid.db")))
         {
             conexao.Delete(sql);
             return(true);
         }
     }
     catch (SQLiteException ex)
     {
         String exs = ex.ToString();
         return(false);
     }
 }
Exemplo n.º 3
0
 public bool InserirUnidadeMedida(FormasPagamento SQLServ)
 {
     try
     {
         using (var conexao = new SQLiteConnection(System.IO.Path.Combine(pasta, "StfrenteAndroid.db")))
         {
             conexao.InsertOrReplace(SQLServ);
             return(true);
         }
     }
     catch (SQLiteException ex)
     {
         String exs = ex.ToString();
         return(false);
     }
 }