Ejemplo n.º 1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!this.Page.IsPostBack)
        {
            string text = base.Request.QueryString["type"];
            string key;
            switch (key = text)
            {
            case "1":
                this.strRur = "/EPC/QuaitySafety/CriterionList.aspx?Flage=Q&Type=Edit";
                break;

            case "2":
                this.strRur = "/EPC/QuaitySafety/CriterionList.aspx?Flage=Q&Type=List";
                break;

            case "3":
                this.strRur = "/EPC/QuaitySafety/CriterionList.aspx?Flage=S&Type=Edit";
                break;

            case "4":
                this.strRur = "/EPC/QuaitySafety/CriterionList.aspx?Flage=S&Type=List";
                break;

            case "5":
                this.strRur = "/EPC/QuaitySafety/AccidentRecord.aspx?Flage=Q&Type=Edit";
                break;

            case "6":
                this.strRur = "/EPC/QuaitySafety/AccidentRecord.aspx?Flage=Q&Type=List";
                break;

            case "7":
                this.strRur = "/EPC/QuaitySafety/AccidentRecord.aspx?Flage=S&Type=Edit";
                break;

            case "8":
                this.strRur = "/EPC/QuaitySafety/AccidentRecord.aspx?Flage=S&Type=List";
                break;

            case "11":
                this.strRur = "DatumClassList.aspx?Parent=3";
                break;

            case "12":
                this.strRur = "DatumClassList.aspx?Parent=2";
                break;
            }
            DataTable type = KnowledgeTypeAction.GetType("");
            string    pid  = base.Request.QueryString["Parent"];
            this.TreeBind(this.strRur, type, pid);
        }
    }
Ejemplo n.º 2
0
    private void DDLBind(string TypeId)
    {
        DataTable type = KnowledgeTypeAction.GetType("");

        this.DDL_Class.DataSource     = type;
        this.DDL_Class.DataTextField  = "TypeName";
        this.DDL_Class.DataValueField = "TypeId";
        this.DDL_Class.DataBind();
        if (TypeId.Trim() != "")
        {
            this.DDL_Class.SelectedValue = TypeId;
        }
    }
Ejemplo n.º 3
0
    protected void Page_Load(object sender, EventArgs e)
    {
        base.Response.Cache.SetNoStore();
        if (base.Request.QueryString["PrjCode"] == Guid.Empty.ToString())
        {
            base.Response.Write("<font style='font-size:9pt'>请先选择分配项目</font>");
            base.Response.End();
        }
        this.ViewState["TYPE"]    = base.Request.QueryString["type"];
        this.ViewState["PrjGuid"] = ((base.Request.QueryString["PrjCode"] == null) ? "" : base.Request.QueryString["PrjCode"].ToString());
        string url = "";

        if (!this.Page.IsPostBack)
        {
            this.ViewState["DT"] = KnowledgeTypeAction.GetType("");
            string a;
            if ((a = this.ViewState["TYPE"].ToString()) != null)
            {
                if (!(a == "1"))
                {
                    if (!(a == "2"))
                    {
                        if (!(a == "3"))
                        {
                            if (a == "4")
                            {
                                url = "DatumSeach.aspx?PrjCode=" + this.ViewState["PrjGuid"].ToString();
                            }
                        }
                        else
                        {
                            url = "DatumAffirmList.aspx?PrjCode=" + this.ViewState["PrjGuid"].ToString();
                        }
                    }
                    else
                    {
                        url = "DatumList.aspx?PrjCode=" + this.ViewState["PrjGuid"].ToString();
                    }
                }
                else
                {
                    url = "TypeList.aspx";
                }
            }
            DataTable type = KnowledgeTypeAction.GetType("");
            this.TreeBind(url, type);
        }
    }