Exemplo n.º 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (this.IsAsyncRequest)
            {
                switch (this.RequestAction)
                {
                case RequestActionEnum.Custom:
                    if (RequestActionString == "querychildren")
                    {
                        string id   = (RequestData.ContainsKey("ID") ? RequestData["ID"].ToString() : String.Empty);
                        string type = RequestData["Type"].ToString().ToLower();

                        if (RequestData.ContainsKey("Type"))
                        {
                            if (type == "gtype")
                            {
                                ents = SysGroup.FindAll("FROM SysGroup as ent WHERE ent.Type = ? order by SortIndex", id);

                                this.PageState.Add("DtList", ents);
                            }
                        }
                    }
                    break;
                }
            }
            else
            {
                // 选择组织结构类型
                SysGroupType[] typeList = SysGroupType.FindAllByProperty("GroupTypeID", 2);
                this.PageState.Add("DtList", typeList);
            }
        }
Exemplo n.º 2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     SysGroupType[] catalogs = SysGroupType.FindAll("from SysGroupType where GroupTypeID=2");
     this.PageState.Add("DtList", catalogs);
 }