示例#1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     this.owner = PubComm.IsZcMng(Request["id"], User.Identity.Name);
     if (!Page.IsPostBack)
     {
         Page.DataBind();
         this.BindData();
         this.BindTC(null);
     }
 }
示例#2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        this.owner = PubComm.IsZcMng(Request["zcid"], User.Identity.Name);
        if (!Page.IsPostBack)
        {
            if (Request.QueryString["zcid"] != null)
            {
                string  id  = Request["zcid"];
                U_ZCBU  zc1 = new U_ZCBU();
                DataSet ds  = zc1.GetDetailByID(id, "spdoc");
                zc1.Close();


                //////////////////////////////////////////////////////////////////////
                bool AttachFile = false;
                if (ds.Tables[0].Rows.Count > 0)
                {
                    if (ds.Tables[0].Rows[0][0] != DBNull.Value)
                    {
                        AttachFile             = true;
                        AttachFileName         = ds.Tables[0].Rows[0][0].ToString();
                        this.OldFileName.Value = AttachFileName;
                    }
                }

                if (owner == false)
                {
                    this.Row3.Visible = false;
                    this.Row1.Visible = false;
                    if (AttachFile == false)
                    {
                        Response.Write("<br><center>提示:资产负责人没有上传【不良资产处置方案申报表】!<center>");
                        Response.End();
                    }
                }
                else
                {
                    if (AttachFile == false)
                    {
                        this.Row2.Visible = false;
                    }
                    else
                    {
                        this.Row1.Visible = false;
                    }
                }

                Page.DataBind();
            }
        }
    }
示例#3
0
 bool owner = false; //资产责任人
 protected void Page_Load(object sender, EventArgs e)
 {
     this.owner = PubComm.IsZcMng(Request["id"], User.Identity.Name);
     if (!Page.IsPostBack)
     {
         Page.DataBind();
         this.BindData();
         //this.BindSP(null);
         //this.BindHistoryZcSp();
         // U_ZCSPBU sp1 = new U_ZCSPBU();
         // sp1.SetPC(this.pc1, this.zcczid.Text);
         // sp1.Close();
     }
 }
示例#4
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Request["bkind"].ToString() == "0")
        {
            this.owner = PubComm.IsZcMng(Request["zcid"].ToString(), User.Identity.Name);
        }
        else
        {
            this.owner = PubComm.IsZcBaoMng(Request["zcid"].ToString(), User.Identity.Name);
        }


        if (!Page.IsPostBack)
        {
            if (this.owner == false)
            {
                this.Row1.Visible = false;
            }
            this.BindData(null);
        }
    }
示例#5
0
    protected void Page_Load(object sender, EventArgs e)
    {
        zcMng = PubComm.IsZcMng(Request["id"], User.Identity.Name);  //得到权限
        if (!Page.IsPostBack)
        {
            this.BindData();

            //控制时效的增加权限
            if (this.zcMng == false)
            {
                this.butAdd.Visible = false;
            }
            if (PubComm.IsRole("系统管理员"))
            {
                this.Button2.Visible = true;
            }
            else
            {
                this.Button2.Visible = false;
            }
        }
    }