Exemplo n.º 1
0
 public void Excluir()
 {
     if (IdCaixa > 0)
     {
         Controle.ExecutaSQL("DELETE FROM ContaCaixa WHERE Id_Caixa=" + IdCaixa.ToString().Trim());
     }
 }
Exemplo n.º 2
0
 public void FecharCaixa()
 {
     if (IdCaixa > 0)
     {
         ArrayList Nm_param = new ArrayList();
         ArrayList Vr_param = new ArrayList();
         string    sSQL     = "UPDATE CaixaBalcao Set Status=1,DtHrEnc=@DtHrEnc Where Id_Caixa=" + IdCaixa.ToString();
         Nm_param.Add("@DtHrEnc"); Vr_param.Add(DtHrEnc);
         Controle.ExecutaSQL(sSQL, Nm_param, Vr_param);
     }
 }