예제 #1
0
        public PopUpRecebimentos(CupomPri Venda)
        {
            InitializeComponent();

            LblNumeroVenda.Text = Venda.ID_CP.ToString();
            InputVlrVenda.Text  = Venda.TOTAL_CP.ToString();
            InputSaldo.Text     = Venda.TOTAL_CP.ToString();
        }
예제 #2
0
 public bool DeletarCupomPriSQL(CupomPri 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);
     }
 }
예제 #3
0
 public bool ReplaceCupomPri(CupomPri 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);
     }
 }