コード例 #1
0
ファイル: GroupList.aspx.cs プロジェクト: liu4434004/EHR2
        private void OnStart()
        {
            int        RecordCount = 0;
            QueryParam qp          = new QueryParam();

            qp.Orderfld  = "G_Level,G_ShowOrder";
            qp.OrderType = 0;
            qp.Where     = string.Format("Where G_ParentID ={0} and G_Delete=0 ", GroupID);
            ArrayList lst = BusinessFacade.sys_GroupList(qp, out RecordCount);

            CatCountTxt.Text = RecordCount.ToString();
            if (GroupID == 0)
            {
                CatNameTxt.Text = "部门列表";
            }
            else
            {
                CatNameTxt.Text = BusinessFacade.sys_GroupDisp(GroupID).G_CName;
            }

            SubGroup.DataSource = lst;
            SubGroup.DataBind();

            CatListTitle.Text = string.Format("<a href='GroupList.aspx'>部门列表</a>{0}", BusinessFacade.GetGroupTitle(GroupID));
        }