コード例 #1
0
        protected virtual FieldValue[] CreateFieldValues(XIOT.Data.Objects.LU_ObjectType theLU_ObjectType, XIOT.Data.Objects.LU_ObjectType original_LU_ObjectType)
        {
            List <FieldValue> values = new List <FieldValue>();

            values.Add(new FieldValue("ObjectTypeID", original_LU_ObjectType.ObjectTypeID, theLU_ObjectType.ObjectTypeID));
            values.Add(new FieldValue("Code", original_LU_ObjectType.Code, theLU_ObjectType.Code));
            values.Add(new FieldValue("DateCreated", original_LU_ObjectType.DateCreated, theLU_ObjectType.DateCreated));
            values.Add(new FieldValue("DateModified", original_LU_ObjectType.DateModified, theLU_ObjectType.DateModified));
            return(values.ToArray());
        }
コード例 #2
0
        protected virtual int ExecuteAction(XIOT.Data.Objects.LU_ObjectType theLU_ObjectType, XIOT.Data.Objects.LU_ObjectType original_LU_ObjectType, string lastCommandName, string commandName, string dataView)
        {
            ActionArgs args = new ActionArgs();

            args.Controller      = "LU_ObjectType";
            args.View            = dataView;
            args.Values          = CreateFieldValues(theLU_ObjectType, original_LU_ObjectType);
            args.LastCommandName = lastCommandName;
            args.CommandName     = commandName;
            ActionResult result = ControllerFactory.CreateDataController().Execute("LU_ObjectType", dataView, args);

            result.RaiseExceptionIfErrors();
            result.AssignTo(theLU_ObjectType);
            return(result.RowsAffected);
        }
コード例 #3
0
 public static List <XIOT.Data.Objects.LU_ObjectType> Select(XIOT.Data.Objects.LU_ObjectType qbe)
 {
     return(new LU_ObjectTypeFactory().Select(qbe));
 }
コード例 #4
0
 public virtual int Delete(XIOT.Data.Objects.LU_ObjectType theLU_ObjectType)
 {
     return(ExecuteAction(theLU_ObjectType, theLU_ObjectType, "Select", "Delete", DeleteView));
 }
コード例 #5
0
 public virtual int Insert(XIOT.Data.Objects.LU_ObjectType theLU_ObjectType)
 {
     return(ExecuteAction(theLU_ObjectType, new LU_ObjectType(), "New", "Insert", InsertView));
 }
コード例 #6
0
 public virtual int Update(XIOT.Data.Objects.LU_ObjectType theLU_ObjectType)
 {
     return(Update(theLU_ObjectType, SelectSingle(theLU_ObjectType.ObjectTypeID)));
 }
コード例 #7
0
 public virtual int Update(XIOT.Data.Objects.LU_ObjectType theLU_ObjectType, XIOT.Data.Objects.LU_ObjectType original_LU_ObjectType)
 {
     return(ExecuteAction(theLU_ObjectType, original_LU_ObjectType, "Edit", "Update", UpdateView));
 }
コード例 #8
0
 public List <XIOT.Data.Objects.LU_ObjectType> Select(XIOT.Data.Objects.LU_ObjectType qbe)
 {
     return(Select(qbe.ObjectTypeID, qbe.Code, qbe.DateCreated, qbe.DateModified));
 }