Exemple #1
0
        protected virtual int ExecuteAction(XIOT.Data.Objects.CB_TestPopulation theCB_TestPopulation, XIOT.Data.Objects.CB_TestPopulation original_CB_TestPopulation, string lastCommandName, string commandName, string dataView)
        {
            ActionArgs args = new ActionArgs();

            args.Controller      = "CB_TestPopulation";
            args.View            = dataView;
            args.Values          = CreateFieldValues(theCB_TestPopulation, original_CB_TestPopulation);
            args.LastCommandName = lastCommandName;
            args.CommandName     = commandName;
            ActionResult result = ControllerFactory.CreateDataController().Execute("CB_TestPopulation", dataView, args);

            result.RaiseExceptionIfErrors();
            result.AssignTo(theCB_TestPopulation);
            return(result.RowsAffected);
        }
Exemple #2
0
        protected virtual FieldValue[] CreateFieldValues(XIOT.Data.Objects.CB_TestPopulation theCB_TestPopulation, XIOT.Data.Objects.CB_TestPopulation original_CB_TestPopulation)
        {
            List <FieldValue> values = new List <FieldValue>();

            values.Add(new FieldValue("TestPopulationID", original_CB_TestPopulation.TestPopulationID, theCB_TestPopulation.TestPopulationID));
            values.Add(new FieldValue("TestID", original_CB_TestPopulation.TestID, theCB_TestPopulation.TestID));
            values.Add(new FieldValue("TestTestName", original_CB_TestPopulation.TestTestName, theCB_TestPopulation.TestTestName));
            values.Add(new FieldValue("PersonOrGroup", original_CB_TestPopulation.PersonOrGroup, theCB_TestPopulation.PersonOrGroup));
            values.Add(new FieldValue("PeopleID", original_CB_TestPopulation.PeopleID, theCB_TestPopulation.PeopleID));
            values.Add(new FieldValue("PeopleName", original_CB_TestPopulation.PeopleName, theCB_TestPopulation.PeopleName));
            values.Add(new FieldValue("GroupID", original_CB_TestPopulation.GroupID, theCB_TestPopulation.GroupID));
            values.Add(new FieldValue("GroupGroupCode", original_CB_TestPopulation.GroupGroupCode, theCB_TestPopulation.GroupGroupCode));
            values.Add(new FieldValue("IsPass", original_CB_TestPopulation.IsPass, theCB_TestPopulation.IsPass));
            values.Add(new FieldValue("DateCreated", original_CB_TestPopulation.DateCreated, theCB_TestPopulation.DateCreated));
            values.Add(new FieldValue("DateModified", original_CB_TestPopulation.DateModified, theCB_TestPopulation.DateModified));
            return(values.ToArray());
        }
Exemple #3
0
 public virtual int Delete(XIOT.Data.Objects.CB_TestPopulation theCB_TestPopulation)
 {
     return(ExecuteAction(theCB_TestPopulation, theCB_TestPopulation, "Select", "Delete", DeleteView));
 }
Exemple #4
0
 public virtual int Insert(XIOT.Data.Objects.CB_TestPopulation theCB_TestPopulation)
 {
     return(ExecuteAction(theCB_TestPopulation, new CB_TestPopulation(), "New", "Insert", InsertView));
 }
Exemple #5
0
 public virtual int Update(XIOT.Data.Objects.CB_TestPopulation theCB_TestPopulation)
 {
     return(Update(theCB_TestPopulation, SelectSingle(theCB_TestPopulation.TestPopulationID)));
 }
Exemple #6
0
 public virtual int Update(XIOT.Data.Objects.CB_TestPopulation theCB_TestPopulation, XIOT.Data.Objects.CB_TestPopulation original_CB_TestPopulation)
 {
     return(ExecuteAction(theCB_TestPopulation, original_CB_TestPopulation, "Edit", "Update", UpdateView));
 }
Exemple #7
0
 public List <XIOT.Data.Objects.CB_TestPopulation> Select(XIOT.Data.Objects.CB_TestPopulation qbe)
 {
     return(Select(qbe.TestPopulationID, qbe.TestID, qbe.TestTestName, qbe.PersonOrGroup, qbe.PeopleID, qbe.PeopleName, qbe.GroupID, qbe.GroupGroupCode, qbe.IsPass, qbe.DateCreated, qbe.DateModified));
 }
Exemple #8
0
 public static List <XIOT.Data.Objects.CB_TestPopulation> Select(XIOT.Data.Objects.CB_TestPopulation qbe)
 {
     return(new CB_TestPopulationFactory().Select(qbe));
 }