Ejemplo n.º 1
0
        public PartialViewResult AjaxInfo(string seria, string idCard, string capcha)
        {
            AnperoClient client = new AnperoClient();

            client.AgenId = StoreID;
            client.Token  = TokenKey;
            var rs = service.GetWarrantyCardInfo(seria, idCard, capcha, client);

            ViewBag.ProductItem = service.GetProductDetail(StoreID, TokenKey, rs.ProductId);
            return(PartialView(rs));
        }
Ejemplo n.º 2
0
        public ActionResult Success(string id)
        {
            string       msg    = "";
            AnperoClient client = new AnperoClient();

            client.AgenId = StoreID;
            client.Token  = TokenKey;
            var rs = service.GetWarrantyCardById(id, client);

            //WebService.ProductItem item
            ViewBag.ProductItem = service.GetProductDetail(StoreID, TokenKey, rs.ProductId);

            return(View("Info", rs));
        }
Ejemplo n.º 3
0
        public JsonResult AjaxCheckseria(string seria, string idCard, string capcha)
        {
            string       msg    = "";
            AnperoClient client = new AnperoClient();

            client.AgenId = StoreID;
            client.Token  = TokenKey;
            var    rs    = service.GetProductIdBySeria(seria, capcha, client.AgenId);
            string _link = "";

            //WebService.ProductItem item
            if (rs > 0)
            {
                var productItem = service.GetProductDetail(StoreID, TokenKey, rs);
                _link = Anpero.StringHelpper.GetProductLink(productItem.PrName, productItem.Id);
            }


            return(Json(new
            {
                code = rs,
                link = _link
            }));
        }