protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["admin_id"] == null)
        {
            Response.Write("<script>alert('页面失效,请您重新登录!');location.href = './admin_login.aspx?type=renshi';</script>");
            return;
        }
        if (CommFun.IsTimeOut("zgj", Session["admin_id"].ToString()))
        {
            Response.Write("<script>alert('您已经提交,不能再访问该页面!');location.href = './main.aspx','_main';</script>");
            return;
        }
        if (!IsPostBack)
        {
            bindData();
            //this.btn_commit.Attributes.Add("onclick", "return   confirm   (\"一旦提交就不可以在修改了,确定要提交吗?\");");
        }
        else
        {
            Save(false);
        }
        string strqry = "SELECT count(*)  FROM cpry  WHERE gzdw =  '" + Session["admin_id"].ToString() + "' and edit_flag = false  and iif(isnull(tj_flag),'未审核',tj_flag) = '推荐' ";

        string ls_count = DBFun.ExecuteScalar(strqry).ToString();

        this.btn_commit.Attributes.Add("onclick", "return   confirm   (\"拟向中国地震局拟推荐参评人员 " + ls_count + " 位,一旦提交不可修改,确定提交?\");");
    }
Exemple #2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["dept_id"] == null)
        {
            Response.Redirect("../SessionTimeOut.aspx?type=top");
        }
        if (CommFun.IsTimeOut("jy", Session["dept_id"].ToString()))
        {
            //Response.Write("<script>alert('您已经提交,不能再访问该页面!');location.href = './main.aspx','_main';</script>");
            //return;
            TD1.Visible      = false;
            btn_Save.Visible = false;
        }
        if (!IsPostBack)
        {
            bindData();
            //this.btn_commit.Attributes.Add("onclick", "return   confirm   (\"一旦提交就不可以在修改了,确定要提交吗?\");");
        }
        //else
        //{
        //    Save(false);
        //}
        string strqry   = "exec Q_Para_CommitNum_By_sqbm '" + Session["dept_name"].ToString() + "'";
        string ls_count = DBFun.ExecuteScalar(strqry).ToString();

        this.btn_commit.Attributes.Add("onclick", "return   confirm   (\"拟推荐课题 " + ls_count + " 项,一旦提交不可修改,确定提交?\");");
    }
 protected void Page_Load(object sender, EventArgs e)
 {
     if (Session["dept_id"] == null)
     {
         Response.Redirect("../SessionTimeOut.aspx?type=top");
     }
     if (!CommFun.IsTimeOut("jy", Session["dept_id"].ToString()))
     {
         Response.Write("<script>alert('您还未提交,不能再访问该页面!');window.history.go(-1);</script>");
         return;
     }
     bindData();
 }
 protected void Page_Load(object sender, EventArgs e)
 {
     if (Session["admin_id"] == null)
     {
         Response.Write("<script>alert('页面失效,请您重新登录!');location.href = './admin_login.aspx?type=lwrs';</script>");
         return;
     }
     if (!CommFun.IsTimeOut("lw", Session["admin_id"].ToString()))
     {
         Response.Write("<script>alert('您还未提交,不能再访问该页面!');window.history.go(-1);</script>");
         return;
     }
     bindData();
 }
Exemple #5
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (Session["dept_id"] == null)
     {
         Response.Redirect("../SessionTimeOut.aspx?type=top");
     }
     if (CommFun.IsTimeOut("jy", Session["dept_id"].ToString()))
     {
         Response.Write("<script>alert('您已经提交,不能再访问该页面!');location.href = './main.aspx','_main';</script>");
         return;
     }
     if (!IsPostBack)
     {
         bindData();
     }
 }
Exemple #6
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (Session["admin_id"] == null)
     {
         Response.Write("<script>alert('页面失效,请您重新登录!');location.href = './admin_login.aspx?type=renshi';</script>");
         return;
     }
     if (CommFun.IsTimeOut("zgj", Session["admin_id"].ToString()))
     {
         Response.Write("<script>alert('您已经提交,不能再访问该页面!');location.href = './main.aspx','_main';</script>");
         return;
     }
     if (!IsPostBack)
     {
         bindData();
     }
 }
 protected void Page_Load(object sender, EventArgs e)
 {
     if (Session["admin_id"] == null)
     {
         Response.Write("<script>alert('页面失效,请您重新登录!');location.href = './admin_login.aspx?type=renshi';</script>");
         return;
     }
     if (CommFun.IsTimeOut("zgj", Session["admin_id"].ToString()))
     {
         Response.Write("<script>alert('您已经提交,不能再访问该页面!');location.href = './main.aspx','_main';</script>");
         return;
     }
     if (!IsPostBack)
     {
         bindData();
         this.btn_commit.Attributes.Add("onclick", "return   confirm   (\"一旦提交就不可以在修改了,确定要提交吗?\");");
     }
 }
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["dept_id"] == null)
        {
            Response.Redirect("../SessionTimeOut.aspx?type=top");
        }
        //判断是否到申报截止日期(包含当天),如果到了不允许访问该页面
        string strqry = " SELECT datediff('d',format(now(),'yyyy-MM-dd'), (select url from t_dict where flm = 8 and bm = 3 )) FROM t_dict;";

        if (Convert.ToInt16(DBFun.ExecuteScalar(strqry)) < 0)
        {
            Response.Write(@"<script>alert('申报截止日期已到,不能再访问该页面!');</script>");
            return;
        }
        if (CommFun.IsTimeOut("jy", Session["dept_id"].ToString()))
        {
            Response.Write("<script>alert('您已经提交,不能再访问该页面!');location.href = './main.aspx','_main';</script>");
            return;
        }
        if (!IsPostBack)
        {
            bindData();
        }
    }