Beispiel #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        base.Response.Cache.SetNoStore();
        if (!string.IsNullOrEmpty(base.Request["pc"]))
        {
            this.prjId = base.Request["pc"];
            PTPrjInfoService pTPrjInfoService = new PTPrjInfoService();
            PTPrjInfo        byId             = pTPrjInfoService.GetById(this.prjId);
            this.prjCode = byId.PrjCode;
        }
        if (!string.IsNullOrEmpty(base.Request["opType"]))
        {
            this.opType = base.Request["opType"].Trim();
        }
        if (base.Request["codetype"] != "")
        {
            this.DictTypeID = base.Request["codetype"];
        }
        else
        {
            base.Response.End();
        }
        if (!this.Page.IsPostBack)
        {
            this.TvDict.Nodes.Clear();
            this.TvDict.Target = "FraCodeList2";
            TreeNode treeNode = new TreeNode();
            treeNode.Text        = "选择类型";
            treeNode.Value       = "0";
            treeNode.NavigateUrl = "~/EPC/UserControl1/webNullTS.aspx";
            string dictTypeID;
            if ((dictTypeID = this.DictTypeID) != null)
            {
                if (dictTypeID == "Img")
                {
                    treeNode.Text        = "图纸类型";
                    treeNode.NavigateUrl = string.Concat(new string[]
                    {
                        "/OPM/Business_Data/Business_Data_Manage.aspx?w=0&codeid=0&codetype=",
                        base.Request["codetype"].ToString(),
                        "&pc=",
                        base.Request["pc"].ToString(),
                        "&isshowall=false&opType=",
                        this.opType,
                        "&PrjCode=",
                        this.prjCode
                    });
                    goto IL_271;
                }
                if (dictTypeID == "211")
                {
                    treeNode.NavigateUrl = string.Concat(new string[]
                    {
                        "/OPM/FireManage/FireManageList.aspx?w=0&codeid=0&codetype=",
                        base.Request["codetype"].ToString(),
                        "&pc=",
                        base.Request["pc"].ToString(),
                        "&opType=",
                        this.opType,
                        "&PrjCode=",
                        this.prjCode
                    });
                    goto IL_271;
                }
            }
            treeNode.NavigateUrl = "~/EPC/UserControl1/webNullTS.aspx";
IL_271:
            if (this.DictTypeID == "Img")
            {
                if (this.opType == "img")
                {
                    treeNode.Text        = "图纸类型";
                    treeNode.NavigateUrl = string.Concat(new string[]
                    {
                        "/OPM/Business_Data/Business_Data_Main.aspx?w=0&codeid=0&codetype=",
                        base.Request["codetype"].ToString(),
                        "&pc=",
                        base.Request["pc"].ToString(),
                        "&isshowall=false&opType=",
                        this.opType,
                        "&PrjCode=",
                        this.prjCode
                    });
                }
                if (this.opType == "view")
                {
                    treeNode.Text        = "图纸类型";
                    treeNode.NavigateUrl = string.Concat(new string[]
                    {
                        "/OPM/Business_Data/Business_Data_Main.aspx?w=0&codeid=0&codetype=",
                        base.Request["codetype"].ToString(),
                        "&pc=",
                        base.Request["pc"].ToString(),
                        "&isshowall=false&opType=",
                        this.opType,
                        "&PrjCode=",
                        this.prjCode
                    });
                }
            }
            treeNode.Target   = "FraCodeList3";
            treeNode.Selected = true;
            this.TvDict.Nodes.Add(treeNode);
            DataTable dataTable = CodingAction.CodeInfoListType(this.DictTypeID);
            DataTable dt        = CodingAction.CodeInfoList(dataTable.Rows[0]["TypeID"].ToString());
            this.CreateDictTree(0, dt, treeNode);
        }
    }
Beispiel #2
0
 protected void Page_Load(object sender, System.EventArgs e)
 {
     this.DG.DataSource = CodingAction.CodeInfoList(base.Request["typeID"].ToString());
     this.DG.DataBind();
 }