Example #1
0
        private void DoBind()
        {
            DataTable dtSystem       = _menuDal.GetList("State=1  and SystemId='" + UserInfoHelper.SystemId + "'").Tables[0];
            DataTable dtMenuType     = _setInfoDal.GetList("SetInfo_Key='MenuType' and State=1 and SystemId='" + UserInfoHelper.SystemId + "'").Tables[0];
            DataTable dtMenuGroupTxt = _setInfoDal.GetList("SetInfo_Key='MenuGroupTxt' and State=1 and SystemId='" + UserInfoHelper.SystemId + "'").Tables[0];

            DxCtlHelper.BindTreeListLookUpEdit(trePreMenu, dtSystem, "Module_Id", "ParentId", "Module_Id", "Name");
            DxCtlHelper.BindLookUpEdit(lueMenuType, dtMenuType, "Name", "SetInfo_Value");
            DxCtlHelper.BindLookUpEdit(lueMenuGroupTxt, dtMenuGroupTxt, "Name", "SetInfo_Value");
        }
Example #2
0
        private void DoBind()
        {
            DataTable dtOrganizeType = _setInfoDal.GetList("State=1 and SystemId=" + _systemId + " and SetInfo_Key='OrganizeType'").Tables[0]; DxCtlHelper.BindLookUpEditWithInt(lueCategory, dtOrganizeType, "Name", "SetInfo_Value");

            DtTreeList = organizeDal.GetList("State=1 and SystemId=" + _systemId + "").Tables[0];
            DxCtlHelper.BindTreeList(TreeListMain, DtTreeList, "Organize_Id", "ParentId", "Name", "组织机构列表");
        }
Example #3
0
        private void DoBind()
        {
            DataTable dtAuditState = _setInfoDal.GetList("State=1 and SystemId=" + _systemId + " and SetInfo_Key='AuditState'").Tables[0];

            DxCtlHelper.BindLookUpEdit(lueAuditState, dtAuditState, "Name", "SetInfo_Value");
            DataTable dtOrganize = organizeDal.GetList("State=1 and SystemId=" + _systemId + "").Tables[0];

            DxCtlHelper.BindTreeListLookUpEdit(tllCompany, dtOrganize, "Organize_Id", "ParentId", "Organize_Id", "Name");
            DxCtlHelper.BindTreeListLookUpEdit(tllDept, dtOrganize, "Organize_Id", "ParentId", "Organize_Id", "Name");
            DataTable dtMenu = menuDal.GetList("State=1 and SystemId=" + _systemId + "").Tables[0];

            DxCtlHelper.BindTreeList(treeList1, dtMenu, "Module_Id", "ParentId", "Name", "页面/操作名称", true);
        }
Example #4
0
        private void DoBind()
        {
            DataTable dtRole = _roleDal.GetList("State=1").Tables[0];

            DxCtlHelper.BindTreeList(treeList1, dtRole, "Role_Id", "Role_Id", "Name", "角色列表", true);
            DataTable dtRoleType = _setInfoDal.GetList("State=1 and SystemId=" + _systemId + " and SetInfo_Key='RoleType'").Tables[0]; DxCtlHelper.BindLookUpEditWithInt(lueCategory, dtRoleType, "Name", "SetInfo_Value");
            DataTable dtDepart   = _organizeDal.GetList("State=1 and SystemId=" + _systemId + "").Tables[0];

            DxCtlHelper.BindTreeListLookUpEdit(treCompany, dtDepart, "Organize_Id", "ParentId", "Organize_Id", "Name");
            DataTable dtUserName = userRoleDalExtend.GetUserByRoleId("a.RoleId=" + _roleId + " and a.SystemId=" + UserInfoHelper.SystemId + "").Tables[0];

            gridCMain.DataSource = dtUserName;
            DoBindMenu();
            BindMenuToRole();
            //treeList1.FocusedNodeChanged += new FocusedNodeChangedEventHandler(treeList1_FocusedNodeChanged); ;
        }