예제 #1
0
        public SSOApplication(SqlDataReader reader)
        {
            id                  = SharedDBCode.GetReaderIntField(reader, "id", SharedDBCode.DBReaderAction.DBReaderThrowException);
            name                = SharedDBCode.GetReaderStringField(reader, "name", SharedDBCode.DBReaderAction.DBReaderThrowException);
            description         = SharedDBCode.GetReaderStringField(reader, "description", SharedDBCode.DBReaderAction.DBReaderSetDefaultValue);
            executable          = SharedDBCode.GetReaderStringField(reader, "executable", SharedDBCode.DBReaderAction.DBReaderSetDefaultValue);
            hasViews            = SharedDBCode.GetReaderBoolField(reader, "hasViews", SharedDBCode.DBReaderAction.DBReaderThrowException);
            hasProtectedModules = SharedDBCode.GetReaderBoolField(reader, "hasProtectedModules", SharedDBCode.DBReaderAction.DBReaderThrowException);
            url                 = SharedDBCode.GetReaderStringField(reader, "url", SharedDBCode.DBReaderAction.DBReaderSetDefaultValue);
            isVisible           = SharedDBCode.GetReaderBoolField(reader, "intefase_visible", SharedDBCode.DBReaderAction.DBReaderThrowException);
            version             = SharedDBCode.GetReaderStringField(reader, "version", SharedDBCode.DBReaderAction.DBReaderSetDefaultValue);
            image               = SharedDBCode.GetReaderStringField(reader, "image", SharedDBCode.DBReaderAction.DBReaderSetDefaultValue);   //agregó gustavo
            urlPage             = SharedDBCode.GetReaderStringField(reader, "urlPage", SharedDBCode.DBReaderAction.DBReaderSetDefaultValue); //agregó gustavo

            // Unused properties
            priority = 0;
        }
예제 #2
0
        public SSOApplicationGroup(SSOApplication application, SqlDataReader reader)
        {
            this.application = application;
            id          = SharedDBCode.GetReaderIntField(reader, "id", SharedDBCode.DBReaderAction.DBReaderThrowException);
            description = SharedDBCode.GetReaderStringField(reader, "description", SharedDBCode.DBReaderAction.DBReaderThrowException);
            image       = SharedDBCode.GetReaderStringField(reader, "interfase_image", SharedDBCode.DBReaderAction.DBReaderSetDefaultValue);
            priority    = SharedDBCode.GetReaderIntField(reader, "interfase_priority", SharedDBCode.DBReaderAction.DBReaderSetDefaultValue, 0);
            try
            {
                parentId = SharedDBCode.GetReaderIntField(reader, "parent", SharedDBCode.DBReaderAction.DBReaderThrowException);
            }
            catch (Exception)
            {
                parentId = null;
            }

            // Unused properties
            name      = description;
            isVisible = true;
        }
예제 #3
0
 public SSOModule(SqlDataReader reader)
 {
     id            = SharedDBCode.GetReaderIntField(reader, "id", SharedDBCode.DBReaderAction.DBReaderThrowException);
     applicationId = SharedDBCode.GetReaderIntField(reader, "applicationId", SharedDBCode.DBReaderAction.DBReaderThrowException);
     module        = SharedDBCode.GetReaderIntField(reader, "module", SharedDBCode.DBReaderAction.DBReaderThrowException);
     name          = SharedDBCode.GetReaderStringField(reader, "name", SharedDBCode.DBReaderAction.DBReaderThrowException);
     description   = SharedDBCode.GetReaderStringField(reader, "description", SharedDBCode.DBReaderAction.DBReaderSetDefaultValue);
     url           = SharedDBCode.GetReaderStringField(reader, "url", SharedDBCode.DBReaderAction.DBReaderSetDefaultValue);
     isProtected   = SharedDBCode.GetReaderBoolField(reader, "protected", SharedDBCode.DBReaderAction.DBReaderThrowException);
     image         = SharedDBCode.GetReaderStringField(reader, "interfase_image", SharedDBCode.DBReaderAction.DBReaderSetDefaultValue);
     priority      = SharedDBCode.GetReaderIntField(reader, "interfase_priority", SharedDBCode.DBReaderAction.DBReaderSetDefaultValue, 0);
     isVisible     = SharedDBCode.GetReaderBoolField(reader, "interfase_visible", SharedDBCode.DBReaderAction.DBReaderSetDefaultValue, false);
     try
     {
         groupId = SharedDBCode.GetReaderIntField(reader, "groupId", SharedDBCode.DBReaderAction.DBReaderThrowException);
     }
     catch (Exception)
     {
         groupId = null;
     }
 }