public static bool PrepareBaseRole()
 {
     MainFrm frm = new MainFrm();
     DataSources.DSFellowshipTableAdapters.RoleDetialTableAdapter adp = new DataSources.DSFellowshipTableAdapters.RoleDetialTableAdapter();
     //DataSources.dsRetirementCenterTableAdapters.RoleDetialTableAdapter adp = new DataSources.dsRetirementCenterTableAdapters.RoleDetialTableAdapter();
     try
     {
         foreach (DevExpress.XtraBars.BarItem item in frm.ribbonControl.Items)
         {
             if (item.Name != string.Empty)
             {
                 adp.InsertBaseRole(1, item.Name, true, true, true, true);
                 //adp.InsertBaseRole(item.Name);
             }
         }
         return true;
     }
     catch (Exception ex)
     {
         //msgDlg.Show(ex.Message);
         Program.ShowMsg(ex.Message, true, null);
         Program.Logger.LogThis(null, "SQlProvider", FXFW.Logger.OpType.fail, null, null, null);
         throw ex;
     }
 }
 public static bool FillUserPrv()
 {
     DataSources.DSFellowshipTableAdapters.RoleDetialTableAdapter adp = new DataSources.DSFellowshipTableAdapters.RoleDetialTableAdapter();
     try
     {
         adp.FillByUserId(ds.RoleDetial, Program.UserInfo.UserId);
         return true;
     }
     catch (Exception ex)
     {
         System.Windows.Forms.MessageBox.Show(ex.Message);
         throw ex;
     }
 }