Exemple #1
0
        public ActionResult CardFusion()
        {
            string cardName = Request["cardname"];
            if (string.IsNullOrEmpty(cardName))
            {
                return RedirectToAction("UserHeList");
            }

            bizCardFusion biz = new bizCardFusion();
            List<CardFusion> list = biz.List(cardName);
            ViewData["CardList"] = list;

            bizCard bc = new bizCard();
            ViewData["CardAlias"] = bc.GetByName(bc.List(),cardName).CardAlias;

            ViewData["FusionList"] = biz.GetCardFusion(cardName, UserID);

            ViewData["CardName"] = cardName;

            return View();
        }
Exemple #2
0
        public void ProcessRequest(HttpContext context)
        {
            if (!SessionOper.IsAuthenticated(context))
            {
                context.Response.Write("0");
            }
            else
            {
                if (context.Request.HttpMethod.ToUpper() != "POST")
                {
                    context.Response.Write("0");
                }

                int userid = 0;
                SessionInfo si = null;
                SessionOper.SessionGet(context, out userid, out si);

                string cardname = context.Request["cardname"];

                try
                {
                    bizCardFusion biz = new bizCardFusion();

                    bool b = biz.IsCardFusion(cardname, userid, si.UserName);

                    if (b)
                    {
                        context.Response.Write("1");
                    }
                    else
                    {
                        context.Response.Write("0");
                    }
                }
                catch
                {
                    context.Response.Write("0");
                }
            }
        }