Ejemplo n.º 1
0
    protected string GetCondition1()//用于GridView_LPT绑定
    {
        label_pagestate.Text = Request.QueryString["state"];
        string state = label_pagestate.Text;

        string condition1;
        string temp = "";

        if (state == "scyjhhqbmgl")
        {
            Title = "生产月计划会签维护";
            GridView_LPT.DataSource = ppp.S_PMPCountersignBasic("and PMPCB_Type = '1'");
            GridView_LPT.DataBind();
            UpdatePanel_pt.Update();
        }
        if (state == "sczjhhqbmgl")
        {
            Title = "生产周计划会签维护";
            GridView_LPT.DataSource = ppp.S_PMPCountersignBasic("and PMPCB_Type = '3'");
            GridView_LPT.DataBind();
            UpdatePanel_pt.Update();
        }
        if (state == "mkyjhhqbmgl")
        {
            Title = "模块月计划会签维护";
            GridView_LPT.DataSource = ppp.S_PMPCountersignBasic("and PMPCB_Type = '2'");
            GridView_LPT.DataBind();
            UpdatePanel_pt.Update();
        }
        if (state == "mkzjhhqbmgl")
        {
            Title = "模块周计划会签维护";
            GridView_LPT.DataSource = ppp.S_PMPCountersignBasic("and PMPCB_Type = '4'");
            GridView_LPT.DataBind();
            UpdatePanel_pt.Update();
        }
        condition1 = temp;
        return(condition1);
    }
Ejemplo n.º 2
0
 public void databind2()
 {
     GridView_LPT.DataSource = ppl.S_ProMainSeries_Protype(" and PMS_ID='" + label_SID.Text.Trim() + "'");
     GridView_LPT.DataBind();
     UpdatePanel_pt.Update();
 }