Пример #1
0
        public static string CheckFouse()
        {
            string r = "F";
            SessionUserValidate iv = SysValidateBll.ValidateSession();

            if (iv.f)
            {
                Sys_EmplyeeFouseWx sef = sefwb.Query(" and ename='" + iv.u.eno + "'");
                if (sef != null)
                {
                    r = "S";
                }
            }
            else
            {
                r = "F";
            }
            return(r);
        }
Пример #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            string code = "";
            string eno  = "";
            string opid = "";
            string b    = "F";
            Sys_EmplyeeFouseWxBll sb = new Sys_EmplyeeFouseWxBll();

            if (Request.QueryString["code"] != null)
            {
                code = Request.QueryString["code"].ToString();
            }
            if (Request.QueryString["response_type"] != null)
            {
                eno = Request.QueryString["response_type"].ToString();
            }
            if (code != "" && eno != "")
            {
                opid = GetOpenid(code);
                if (opid != "")
                {
                    Sys_EmplyeeFouseWx sw = new Sys_EmplyeeFouseWx();
                    sw.openid = opid;
                    sw.ename  = eno;
                    if (sb.Add(sw) > 0)
                    {
                        b = "S";
                    }
                }
            }
            if (b == "S")
            {
            }
            else
            {
            }
        }