Exemple #1
0
        public ActionResult EditarFormaPag()
        {
            FormasPagamentoBLL formaBLL = new FormasPagamentoBLL();

            MLL.FormaPagamento forma = formaBLL.ObterPorId(formaBLL.DescriptografaID(Request.QueryString["codigo"]));

            return(View(forma));
        }
Exemple #2
0
        public string ExcluirFormaPagamento(int codigo)
        {
            FormasPagamentoBLL formaBLL = new FormasPagamentoBLL();

            MLL.FormaPagamento forma = formaBLL.ObterPorId(codigo);

            return(formaBLL.ExcluirFormaPag(forma).ToString());
        }
Exemple #3
0
        /*Actions de Forma de Pagamento
         * =======================================================================================
         */
        // GET: CadastroGeral
        public ActionResult FormasPagamentoCadastrados()
        {
            FormasPagamentoBLL         forma = new FormasPagamentoBLL();
            IList <MLL.FormaPagamento> lista = new List <MLL.FormaPagamento>();

            if (Session["usuarioLogadoID"] == null)
            {
                lista = null;
                Response.Redirect(Url.Action("Index", "Login"));
            }
            else
            {
                lista = forma.ObterListaFormasPag();
            }


            return(View(lista));
        }
Exemple #4
0
        public string EditarFormaPag(MLL.FormaPagamento formaPag)
        {
            FormasPagamentoBLL formaBLL = new FormasPagamentoBLL();

            return(formaBLL.EditarFormaPag(formaPag).ToString());
        }
Exemple #5
0
        public string CadastrarFormaPagamento(MLL.FormaPagamento formaPag)
        {
            FormasPagamentoBLL formaBLL = new FormasPagamentoBLL();

            return(formaBLL.CadastrarFormaPag(formaPag).ToString());
        }