Example #1
0
		protected override void OnInit(EventArgs e)
		{
			base.OnInit(e);

			ApqSession = new Apq.Web.SessionState.HttpSessionState(Session);
			string UserName = Request.Cookies["UserName"] == null ? string.Empty : Request.Cookies["UserName"].Value;
			string SqlLoginPwd = Request.Cookies["SqlLoginPwd"] == null ? string.Empty : Request.Cookies["SqlLoginPwd"].Value;

			if (ApqSession.User == null || ApqSession.User.Rows.Count == 0)
			{
				if (UserName.Length > 1 && SqlLoginPwd.Length > 2)
				{
					dtxc.WS.WS2 ws = new dtxc.WS.WS2();
					ws.Login_UserNameFromCookie(UserName, SqlLoginPwd);
				}
			}
		}
Example #2
0
        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);

            ApqSession = new Apq.Web.SessionState.HttpSessionState(Session);
            string UserName    = Request.Cookies["UserName"] == null ? string.Empty : Request.Cookies["UserName"].Value;
            string SqlLoginPwd = Request.Cookies["SqlLoginPwd"] == null ? string.Empty : Request.Cookies["SqlLoginPwd"].Value;

            if (ApqSession.User == null || ApqSession.User.Rows.Count == 0)
            {
                if (UserName.Length > 1 && SqlLoginPwd.Length > 2)
                {
                    dtxc.WS.WS2 ws = new dtxc.WS.WS2();
                    ws.Login_UserNameFromCookie(UserName, SqlLoginPwd);
                }
            }
        }
Example #3
0
		protected override void OnInit(EventArgs e)
		{
			base.OnInit(e);

			string LoginName = Request.Cookies["ys-LoginName"] == null ? string.Empty : Request.Cookies["ys-LoginName"].Value;
			string SqlLoginPwd = Request.Cookies["ys-SqlLoginPwd"] == null ? string.Empty : Request.Cookies["ys-SqlLoginPwd"].Value;

			if (ApqSession.User == null || ApqSession.User.Rows.Count == 0)
			{
				if (LoginName.Length > 1 && SqlLoginPwd.Length > 2)
				{
					try
					{
						dtxc.WS.WS2 ws = new dtxc.WS.WS2();
						LoginName = Apq.Web.ExtJS.state.DecodeValue(LoginName)[1];
						SqlLoginPwd = Apq.Web.ExtJS.state.DecodeValue(SqlLoginPwd)[1];
						ws.Login_LoginNameFromCookie(LoginName, SqlLoginPwd);
					}
					catch { }
				}
			}
		}
Example #4
0
		/// <summary>
		/// 自有QueryString参数说明:无
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		protected void Page_Load(object sender, EventArgs e)
		{
			// 参数解析
			string TaskName = Request.QueryString["TaskName"] ?? string.Empty;
			string UserNameBegin = Request.QueryString["UserNameBegin"] ?? string.Empty;

			// 设置分页相关值

			WS.WS2 ws = new dtxc.WS.WS2();
			STReturn stReturn = ws.dtxc_TaskVote_Log_List(TaskName, UserNameBegin);
			if (stReturn.NReturn == 1)
			{
				rpt.DataSource = stReturn.FNReturn;

				//绑定对象

				rpt.DataBind();
				// 设置当前页数
			}

			//绑定对象
		}
Example #5
0
        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);

            string LoginName   = Request.Cookies["ys-LoginName"] == null ? string.Empty : Request.Cookies["ys-LoginName"].Value;
            string SqlLoginPwd = Request.Cookies["ys-SqlLoginPwd"] == null ? string.Empty : Request.Cookies["ys-SqlLoginPwd"].Value;

            if (ApqSession.User == null || ApqSession.User.Rows.Count == 0)
            {
                if (LoginName.Length > 1 && SqlLoginPwd.Length > 2)
                {
                    try
                    {
                        dtxc.WS.WS2 ws = new dtxc.WS.WS2();
                        LoginName   = Apq.Web.ExtJS.state.DecodeValue(LoginName)[1];
                        SqlLoginPwd = Apq.Web.ExtJS.state.DecodeValue(SqlLoginPwd)[1];
                        ws.Login_LoginNameFromCookie(LoginName, SqlLoginPwd);
                    }
                    catch { }
                }
            }
        }
Example #6
0
        /// <summary>
        /// 自有QueryString参数说明:无
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Page_Load(object sender, EventArgs e)
        {
            // 参数解析
            string TaskName      = Request.QueryString["TaskName"] ?? string.Empty;
            string UserNameBegin = Request.QueryString["UserNameBegin"] ?? string.Empty;

            // 设置分页相关值

            WS.WS2       ws       = new dtxc.WS.WS2();
            Apq.STReturn stReturn = ws.dtxc_TaskVote_Log_List(TaskName, UserNameBegin);
            if (stReturn.NReturn == 1)
            {
                rpt.DataSource = stReturn.FNReturn;

                //绑定对象

                rpt.DataBind();
                // 设置当前页数
            }

            //绑定对象
        }