public void Init()
 {
     BussinessRoleList = new BussinessRoleMySqlDA().selectAllBussinessRoleOnBuss();
     BussinessRoleONMySqlDA buOnDA = new BussinessRoleONMySqlDA();
     foreach (BussinessRoleOnBussOR obj in BussinessRoleList)
     {
         obj.BussRoleOnList = buOnDA.selectRolesONByRoleID(obj.Id);
     }
 }
        public bool UpdateBussinessRoleON()
        {
            if (string.IsNullOrEmpty(OrgbhWhere))
                return false;

            try
            {
                WriteMsg("0000", "开始更新“业务角色详细”", true);

                BussinessRoleONMSSqlDA mssqlBuss = new BussinessRoleONMSSqlDA();
                List<BussinessRoleONOR> listBuss = mssqlBuss.selectBussinessRoleONData(OrgbhWhere);
                WriteMsg("0000", string.Format("查询到 BussinessRoleON 数量:{0}条", listBuss.Count));

                BussinessRoleONMySqlDA mysqlBuss = new BussinessRoleONMySqlDA();
                mysqlBuss.UpdateBussinessRoleON(listBuss);
                WriteMsg("0000", "更新 BussinessRoleON 成功。");
            }
            catch (Exception ex)
            {
                WriteMsg("", ex.Message);
            }
            return true;
        }