Exemplo n.º 1
0
        public static string ImprimiBoleto(int id_pedido)
        {
            daoVourcher bdp = new daoVourcher();
            //System.Web.UI.HtmlControls.HtmlGenericControl divBoleto = new System.Web.UI.HtmlControls.HtmlGenericControl();
            //divBoleto.InnerHtml = "";

            string t = "";

            if (id_pedido > 0)
            {
                switch ("boleto")
                {
                case "boleto":
                    t = bdp.getExecuteBoleto(Convert.ToInt32(id_pedido));
                    break;
                    //case "taxa":
                    //   // divBoleto.InnerHtml = bdp.executaBoleto(Convert.ToInt32(id_pedido), true);
                    //    break;
                    //case "aceite":
                    //    //GridPedidosAbertos_SelectedIndexChanged(sender, null);
                    //    break;
                }
            }
            return(t);


            //"<table> " +
            //"<tr>" +
            //"<td>" + "teste" +  "<td>" +
            //"</tr>" +
            //"</table>";
        }
Exemplo n.º 2
0
        private void Boleto(int id_pedido)
        {
            divBoleto.InnerHtml = "";
            daoVourcher bdp = new daoVourcher();

            divBoleto.InnerHtml = bdp.getExecuteBoleto(id_pedido);
        }