Пример #1
0
        public void EfetuaRecebimentoParcela(int venCod, int pveCod, DateTime dtRecebimento)
        {
            if (pveCod <= 0)
            {
                throw new Exception("O código da parcela é obrigatório");
            }

            if (venCod <= 0)
            {
                throw new Exception("O código da venda é obrigatório");
            }
            if (dtRecebimento != null)
            {
                DaoParcelasVenda DALobj = new DaoParcelasVenda(conexao);
                DALobj.EfetuaRecebimentoParcela(venCod, pveCod, dtRecebimento);
            }
            else
            {
                throw new Exception("Data do recebimento obrigatória");
            }
        }