コード例 #1
0
ファイル: IMOver.aspx.cs プロジェクト: qimengcheng/xi
    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
ファイル: IMOver.aspx.cs プロジェクト: qimengcheng/xi
 //绑定库存表
 protected void BindKucun()
 {
     Gridview_Kucun.DataSource = or.Select_Kucun(label11.Text.ToString().Trim());
     Gridview_Kucun.DataBind();
     UpdatePanel_Kucun.Update();
 }