コード例 #1
0
 public void BindData(BindType bindType)
 {
     if (bindType == BindType.Form)
     {
         var queryArgument = new QueryArgument(UserContext.DataBaseInfo)
         {
             Key = SelectedAccessLevel
         };
         var menus = _controlPanel.GetMenuAccessRights(queryArgument);
         BindMenuRights(menus);
     }
     else
     {
         var queryArgument = new QueryArgument(UserContext.DataBaseInfo)
         {
             filter1   = Constants.SysDesignationCType,
             filter2   = Constants.SysDesignation,
             filter4   = bindType == BindType.List ? Constants.RetriveList : Constants.RetriveForm,
             FilterKey = Constants.TableMCatDetls
         };
         var designations = _controlPanel.GetDesignations(queryArgument);
         BindAccessLevel(designations);
     }
 }