Beispiel #1
0
        protected virtual FieldValue[] CreateFieldValues(XIOT.Data.Objects.CB_TestCriteria theCB_TestCriteria, XIOT.Data.Objects.CB_TestCriteria original_CB_TestCriteria)
        {
            List <FieldValue> values = new List <FieldValue>();

            values.Add(new FieldValue("TestCriteriaID", original_CB_TestCriteria.TestCriteriaID, theCB_TestCriteria.TestCriteriaID));
            values.Add(new FieldValue("Code", original_CB_TestCriteria.Code, theCB_TestCriteria.Code));
            values.Add(new FieldValue("Description", original_CB_TestCriteria.Description, theCB_TestCriteria.Description));
            values.Add(new FieldValue("IsActive", original_CB_TestCriteria.IsActive, theCB_TestCriteria.IsActive));
            values.Add(new FieldValue("DateCreated", original_CB_TestCriteria.DateCreated, theCB_TestCriteria.DateCreated));
            values.Add(new FieldValue("DateModified", original_CB_TestCriteria.DateModified, theCB_TestCriteria.DateModified));
            return(values.ToArray());
        }
Beispiel #2
0
        protected virtual int ExecuteAction(XIOT.Data.Objects.CB_TestCriteria theCB_TestCriteria, XIOT.Data.Objects.CB_TestCriteria original_CB_TestCriteria, string lastCommandName, string commandName, string dataView)
        {
            ActionArgs args = new ActionArgs();

            args.Controller      = "CB_TestCriteria";
            args.View            = dataView;
            args.Values          = CreateFieldValues(theCB_TestCriteria, original_CB_TestCriteria);
            args.LastCommandName = lastCommandName;
            args.CommandName     = commandName;
            ActionResult result = ControllerFactory.CreateDataController().Execute("CB_TestCriteria", dataView, args);

            result.RaiseExceptionIfErrors();
            result.AssignTo(theCB_TestCriteria);
            return(result.RowsAffected);
        }
Beispiel #3
0
 public virtual int Delete(XIOT.Data.Objects.CB_TestCriteria theCB_TestCriteria)
 {
     return(ExecuteAction(theCB_TestCriteria, theCB_TestCriteria, "Select", "Delete", DeleteView));
 }
Beispiel #4
0
 public virtual int Insert(XIOT.Data.Objects.CB_TestCriteria theCB_TestCriteria)
 {
     return(ExecuteAction(theCB_TestCriteria, new CB_TestCriteria(), "New", "Insert", InsertView));
 }
Beispiel #5
0
 public virtual int Update(XIOT.Data.Objects.CB_TestCriteria theCB_TestCriteria)
 {
     return(Update(theCB_TestCriteria, SelectSingle(theCB_TestCriteria.TestCriteriaID)));
 }
Beispiel #6
0
 public virtual int Update(XIOT.Data.Objects.CB_TestCriteria theCB_TestCriteria, XIOT.Data.Objects.CB_TestCriteria original_CB_TestCriteria)
 {
     return(ExecuteAction(theCB_TestCriteria, original_CB_TestCriteria, "Edit", "Update", UpdateView));
 }
Beispiel #7
0
 public List <XIOT.Data.Objects.CB_TestCriteria> Select(XIOT.Data.Objects.CB_TestCriteria qbe)
 {
     return(Select(qbe.TestCriteriaID, qbe.Code, qbe.Description, qbe.IsActive, qbe.DateCreated, qbe.DateModified));
 }
Beispiel #8
0
 public static List <XIOT.Data.Objects.CB_TestCriteria> Select(XIOT.Data.Objects.CB_TestCriteria qbe)
 {
     return(new CB_TestCriteriaFactory().Select(qbe));
 }