示例#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());
        }
示例#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);
        }
示例#3
0
 public static List <XIOT.Data.Objects.Dim_EventAttribute> Select(XIOT.Data.Objects.Dim_EventAttribute qbe)
 {
     return(new Dim_EventAttributeFactory().Select(qbe));
 }
示例#4
0
 public virtual int Delete(XIOT.Data.Objects.Dim_EventAttribute theDim_EventAttribute)
 {
     return(ExecuteAction(theDim_EventAttribute, theDim_EventAttribute, "Select", "Delete", DeleteView));
 }
示例#5
0
 public virtual int Insert(XIOT.Data.Objects.Dim_EventAttribute theDim_EventAttribute)
 {
     return(ExecuteAction(theDim_EventAttribute, new Dim_EventAttribute(), "New", "Insert", InsertView));
 }
示例#6
0
 public virtual int Update(XIOT.Data.Objects.Dim_EventAttribute theDim_EventAttribute)
 {
     return(Update(theDim_EventAttribute, SelectSingle(theDim_EventAttribute.EventID)));
 }
示例#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));
 }
示例#8
0
 public List <XIOT.Data.Objects.Dim_EventAttribute> Select(XIOT.Data.Objects.Dim_EventAttribute qbe)
 {
     return(Select(qbe.EventID, qbe.AttributeID, qbe.Code));
 }