Ejemplo n.º 1
0
        /// <summary>
        /// 显示PDF生成
        /// </summary>
        /// <param name="ProductGuid"></param>
        /// <returns></returns>
        public ActionResult ViewUl_ShowPdf(string prodid, string numberid)
        {
            PlasBll.ProductBll bll = new ProductBll();
            var blist = new Ul_HeadModel();
            var clist = new List <Ul_bodyModel>();

            if (!string.IsNullOrWhiteSpace(prodid))
            {
                var query = bll.GetUl_HeadNumber(prodid);
                if (query != null && query.Count > 0)
                {
                    blist = query[0];
                }
                clist = bll.GetUl_body(numberid);
            }
            ViewBag.blist = blist;
            ViewBag.clist = clist;
            return(View());
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 显示UL数据详情
        /// </summary>
        /// <returns></returns>
        public ActionResult ShowUlPDF(string ProductGuid, string numberid)
        {
            //  ProductGuid = "1298B2AA-ED90-4B79-8ACB-535704D463FD";
            PlasBll.ProductBll bll = new ProductBll();
            var blist = new Ul_HeadModel();
            var clist = new List <Ul_bodyModel>();

            if (!string.IsNullOrWhiteSpace(ProductGuid))
            {
                var query = bll.GetUl_HeadNumber(ProductGuid);
                if (query != null && query.Count > 0)
                {
                    blist = query[0];
                }
                clist = bll.GetUl_body(numberid);
            }
            ViewBag.blist = blist;
            ViewBag.clist = clist;
            ViewBag.pid   = ProductGuid;
            return(View());
        }