Ejemplo n.º 1
0
        public ActionResult PrintAll(string pageId)
        {
            List <AssetsPrint> ap = (List <AssetsPrint>)Session["PrintAssets"];

            Session["PrintIndex"] = 0;
            DataTable dt    = (DataTable)Session["PrintBarcodeStyle"];
            string    style = AppBarcodeStyle.BarcodeStyle <AssetsPrint>(this.Url, pageId, dt, ap[0]);

            return(Content(style, "text/html"));
        }
Ejemplo n.º 2
0
        public ActionResult NextAssets(string pageId)
        {
            List <AssetsPrint> ap = (List <AssetsPrint>)Session["PrintAssets"];
            int i = (int)Session["PrintIndex"];

            i = i + 1;
            if (i > ap.Count - 1)
            {
                return(Content("0", "text/html"));
            }
            DataTable dt    = (DataTable)Session["PrintBarcodeStyle"];
            string    style = AppBarcodeStyle.BarcodeStyle <AssetsPrint>(this.Url, pageId, dt, ap[i]);

            Session["PrintIndex"] = i;
            return(Content(style, "text/html"));
        }