Example #1
0
        protected virtual FieldValue[] CreateFieldValues(XIOT.Data.Objects.Groups_People theGroups_People, XIOT.Data.Objects.Groups_People original_Groups_People)
        {
            List <FieldValue> values = new List <FieldValue>();

            values.Add(new FieldValue("GroupID", original_Groups_People.GroupID, theGroups_People.GroupID));
            values.Add(new FieldValue("GroupGroupCode", original_Groups_People.GroupGroupCode, theGroups_People.GroupGroupCode));
            values.Add(new FieldValue("PeopleID", original_Groups_People.PeopleID, theGroups_People.PeopleID));
            values.Add(new FieldValue("PeopleName", original_Groups_People.PeopleName, theGroups_People.PeopleName));
            values.Add(new FieldValue("DateCreated", original_Groups_People.DateCreated, theGroups_People.DateCreated));
            values.Add(new FieldValue("DateModified", original_Groups_People.DateModified, theGroups_People.DateModified));
            return(values.ToArray());
        }
Example #2
0
        protected virtual int ExecuteAction(XIOT.Data.Objects.Groups_People theGroups_People, XIOT.Data.Objects.Groups_People original_Groups_People, string lastCommandName, string commandName, string dataView)
        {
            ActionArgs args = new ActionArgs();

            args.Controller      = "Groups_People";
            args.View            = dataView;
            args.Values          = CreateFieldValues(theGroups_People, original_Groups_People);
            args.LastCommandName = lastCommandName;
            args.CommandName     = commandName;
            ActionResult result = ControllerFactory.CreateDataController().Execute("Groups_People", dataView, args);

            result.RaiseExceptionIfErrors();
            result.AssignTo(theGroups_People);
            return(result.RowsAffected);
        }
Example #3
0
 public virtual int Delete(XIOT.Data.Objects.Groups_People theGroups_People)
 {
     return(ExecuteAction(theGroups_People, theGroups_People, "Select", "Delete", DeleteView));
 }
Example #4
0
 public virtual int Insert(XIOT.Data.Objects.Groups_People theGroups_People)
 {
     return(ExecuteAction(theGroups_People, new Groups_People(), "New", "Insert", InsertView));
 }
Example #5
0
 public virtual int Update(XIOT.Data.Objects.Groups_People theGroups_People)
 {
     return(Update(theGroups_People, SelectSingle(theGroups_People.GroupID, theGroups_People.PeopleID)));
 }
Example #6
0
 public virtual int Update(XIOT.Data.Objects.Groups_People theGroups_People, XIOT.Data.Objects.Groups_People original_Groups_People)
 {
     return(ExecuteAction(theGroups_People, original_Groups_People, "Edit", "Update", UpdateView));
 }
Example #7
0
 public List <XIOT.Data.Objects.Groups_People> Select(XIOT.Data.Objects.Groups_People qbe)
 {
     return(Select(qbe.GroupID, qbe.GroupGroupCode, qbe.PeopleID, qbe.PeopleName, qbe.DateCreated, qbe.DateModified));
 }
Example #8
0
 public static List <XIOT.Data.Objects.Groups_People> Select(XIOT.Data.Objects.Groups_People qbe)
 {
     return(new Groups_PeopleFactory().Select(qbe));
 }