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

            values.Add(new FieldValue("EventID", original_Dim_EventAttribute.EventID, theDim_EventAttribute.EventID));
            values.Add(new FieldValue("AttributeID", original_Dim_EventAttribute.AttributeID, theDim_EventAttribute.AttributeID));
            values.Add(new FieldValue("Code", original_Dim_EventAttribute.Code, theDim_EventAttribute.Code));
            return(values.ToArray());
        }
Example #2
0
        protected virtual int ExecuteAction(XIOT.Data.Objects.Dim_EventAttribute theDim_EventAttribute, XIOT.Data.Objects.Dim_EventAttribute original_Dim_EventAttribute, string lastCommandName, string commandName, string dataView)
        {
            ActionArgs args = new ActionArgs();

            args.Controller      = "Dim_EventAttribute";
            args.View            = dataView;
            args.Values          = CreateFieldValues(theDim_EventAttribute, original_Dim_EventAttribute);
            args.LastCommandName = lastCommandName;
            args.CommandName     = commandName;
            ActionResult result = ControllerFactory.CreateDataController().Execute("Dim_EventAttribute", dataView, args);

            result.RaiseExceptionIfErrors();
            result.AssignTo(theDim_EventAttribute);
            return(result.RowsAffected);
        }
Example #3
0
 public static List <XIOT.Data.Objects.Dim_EventAttribute> Select(XIOT.Data.Objects.Dim_EventAttribute qbe)
 {
     return(new Dim_EventAttributeFactory().Select(qbe));
 }
Example #4
0
 public virtual int Delete(XIOT.Data.Objects.Dim_EventAttribute theDim_EventAttribute)
 {
     return(ExecuteAction(theDim_EventAttribute, theDim_EventAttribute, "Select", "Delete", DeleteView));
 }
Example #5
0
 public virtual int Insert(XIOT.Data.Objects.Dim_EventAttribute theDim_EventAttribute)
 {
     return(ExecuteAction(theDim_EventAttribute, new Dim_EventAttribute(), "New", "Insert", InsertView));
 }
Example #6
0
 public virtual int Update(XIOT.Data.Objects.Dim_EventAttribute theDim_EventAttribute)
 {
     return(Update(theDim_EventAttribute, SelectSingle(theDim_EventAttribute.EventID)));
 }
Example #7
0
 public virtual int Update(XIOT.Data.Objects.Dim_EventAttribute theDim_EventAttribute, XIOT.Data.Objects.Dim_EventAttribute original_Dim_EventAttribute)
 {
     return(ExecuteAction(theDim_EventAttribute, original_Dim_EventAttribute, "Edit", "Update", UpdateView));
 }
Example #8
0
 public List <XIOT.Data.Objects.Dim_EventAttribute> Select(XIOT.Data.Objects.Dim_EventAttribute qbe)
 {
     return(Select(qbe.EventID, qbe.AttributeID, qbe.Code));
 }