예제 #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            string temp       = "";
            string department = Session["Department"].ToString().Trim();
            temp        += " and d.IMS_ResponDepart like '%" + department + "%'";
            label11.Text = temp;
            BindKucun();
            BindKufang();
            BindKufang1();
            BindApply();
        }
        #region 权限
        if (Request.QueryString["status"] == "BaofeiApply")
        {
            Title = "报废申请";
            Panel_KucunSearch.Visible = true;
            UpdatePanel_KucunSearch.Update();
            Panel_Kucun.Visible = true;
            UpdatePanel_Kucun.Update();
        }
        if (Request.QueryString["status"] == "BaofeiAnalysis")
        {
            Title = "报废申请分析";
            Panel_SearchApply.Visible = true;
            UpdatePanel_SearchApply.Update();
            Panel_ApplyMain.Visible            = true;
            Gridview_Apply.Columns[14].Visible = true;
        }
        if (Request.QueryString["status"] == "BaofeiCheck")
        {
            Title = "报废审核";
            Panel_SearchApply.Visible = true;
            UpdatePanel_SearchApply.Update();
            Panel_ApplyMain.Visible            = true;
            Gridview_Apply.Columns[15].Visible = true;

            UpdatePanel_ApplyMain.Update();
        }
        if (Request.QueryString["status"] == "BaofeiZhixing")
        {
            Title = "报废执行";
            Panel_SearchApply.Visible = true;
            UpdatePanel_SearchApply.Update();
            Panel_ApplyMain.Visible            = true;
            Gridview_Apply.Columns[16].Visible = true;
            UpdatePanel_ApplyMain.Update();
        }
        if (Request.QueryString["status"] == "BaofeiLook")
        {
            Title = "报废查看";
            Panel_SearchApply.Visible = true;
            UpdatePanel_SearchApply.Update();
            Panel_ApplyMain.Visible = true;

            UpdatePanel_ApplyMain.Update();
        }
        #endregion
    }
예제 #2
0
 //绑定申请表
 protected void BindApply()
 {
     Gridview_Apply.DataSource = or.Select_Apply(label17.Text.ToString());
     Gridview_Apply.DataBind();
     UpdatePanel_ApplyMain.Update();
 }