Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/21/11 22:07:58 (14 years ago)
Author:
wtollsch
Message:

#1433 AlgorithmClass, Algorithm, ProblemClass, Problem create/update appropriate controller/models/views, File upload (Algorithm / Problem)

Location:
branches/WebApplication/MVC2/HLWebOKBAdminPlugin/Models
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/WebApplication/MVC2/HLWebOKBAdminPlugin/Models/AdminModel.cs

    r6218 r6246  
    232232            return 0;
    233233        }//SaveProblem
     234
     235       
    234236    }
    235237}
  • branches/WebApplication/MVC2/HLWebOKBAdminPlugin/Models/AlgorithmClassModel.cs

    r6161 r6246  
    1212
    1313        public String SelectedSubMenu { get; set; }
    14         public IList<AlgorithmClass> AlgorithmClasses { get { return AlgorithmClassGetAll(); } }
     14        public IList<AlgorithmClass> AlgorithmClasses {
     15            get { return AlgorithmClassGetAll(); }
     16            set { ;}
     17        }
    1518
    1619        public AlgorithmClass AlgorithmClass { get; set; }
  • branches/WebApplication/MVC2/HLWebOKBAdminPlugin/Models/AlgorithmModel.cs

    r6213 r6246  
    105105            return 0;
    106106        }//SaveAlgorithm
     107
     108        public void UpdateAlgorithmData(long id, byte[] data) {
     109            AdministrationServiceClient adminClient = Admin.GetClientFactory();
     110
     111            if (adminClient != null) {
     112                adminClient.UpdateAlgorithmData(id, data);
     113            }
     114        }//UpdateProblemData
    107115    }
    108116}
  • branches/WebApplication/MVC2/HLWebOKBAdminPlugin/Models/ProblemClassModel.cs

    r6161 r6246  
    1010
    1111        public String SelectedSubMenu { get; set; }
    12         public IList<ProblemClass> ProblemClasses { get { return ProblemClassGetAll(); } }
     12        public IList<ProblemClass> ProblemClasses {
     13            get { return ProblemClassGetAll();}
     14            set {;}
     15        }
    1316
    1417        public ProblemClass ProblemClass { get; set; }
  • branches/WebApplication/MVC2/HLWebOKBAdminPlugin/Models/ProblemModel.cs

    r6213 r6246  
    108108            return 0;
    109109        }//SaveProblem
     110
     111        public void UpdateProblemData(long id, byte[] data) {
     112            AdministrationServiceClient adminClient = Admin.GetClientFactory();
     113
     114            if (adminClient != null) {
     115                adminClient.UpdateProblemData(id, data);
     116            }
     117        }//UpdateProblemData
    110118    }
    111119}
Note: See TracChangeset for help on using the changeset viewer.