protected virtual FieldValue[] CreateFieldValues(VSM.Data.Objects.M_KioskGroup theM_KioskGroup, VSM.Data.Objects.M_KioskGroup original_M_KioskGroup) { List <FieldValue> values = new List <FieldValue>(); values.Add(new FieldValue("KioskGroup_ID", original_M_KioskGroup.KioskGroup_ID, theM_KioskGroup.KioskGroup_ID)); values.Add(new FieldValue("KioskGroup_Name", original_M_KioskGroup.KioskGroup_Name, theM_KioskGroup.KioskGroup_Name)); values.Add(new FieldValue("Item_Flag", original_M_KioskGroup.Item_Flag, theM_KioskGroup.Item_Flag)); values.Add(new FieldValue("CreatedBy", original_M_KioskGroup.CreatedBy, theM_KioskGroup.CreatedBy)); values.Add(new FieldValue("CreatedOn", original_M_KioskGroup.CreatedOn, theM_KioskGroup.CreatedOn)); values.Add(new FieldValue("ModifiedBy", original_M_KioskGroup.ModifiedBy, theM_KioskGroup.ModifiedBy)); values.Add(new FieldValue("ModifiedOn", original_M_KioskGroup.ModifiedOn, theM_KioskGroup.ModifiedOn)); return(values.ToArray()); }
protected virtual int ExecuteAction(VSM.Data.Objects.M_KioskGroup theM_KioskGroup, VSM.Data.Objects.M_KioskGroup original_M_KioskGroup, string lastCommandName, string commandName, string dataView) { ActionArgs args = new ActionArgs(); args.Controller = "M_KioskGroup"; args.View = dataView; args.Values = CreateFieldValues(theM_KioskGroup, original_M_KioskGroup); args.LastCommandName = lastCommandName; args.CommandName = commandName; ActionResult result = ControllerFactory.CreateDataController().Execute("M_KioskGroup", dataView, args); result.RaiseExceptionIfErrors(); result.AssignTo(theM_KioskGroup); return(result.RowsAffected); }
public virtual int Delete(VSM.Data.Objects.M_KioskGroup theM_KioskGroup) { return(ExecuteAction(theM_KioskGroup, theM_KioskGroup, "Select", "Delete", DeleteView)); }
public virtual int Insert(VSM.Data.Objects.M_KioskGroup theM_KioskGroup) { return(ExecuteAction(theM_KioskGroup, new M_KioskGroup(), "New", "Insert", InsertView)); }
public virtual int Update(VSM.Data.Objects.M_KioskGroup theM_KioskGroup) { return(Update(theM_KioskGroup, SelectSingle(theM_KioskGroup.KioskGroup_ID))); }
public virtual int Update(VSM.Data.Objects.M_KioskGroup theM_KioskGroup, VSM.Data.Objects.M_KioskGroup original_M_KioskGroup) { return(ExecuteAction(theM_KioskGroup, original_M_KioskGroup, "Edit", "Update", UpdateView)); }
public List <VSM.Data.Objects.M_KioskGroup> Select(VSM.Data.Objects.M_KioskGroup qbe) { return(Select(qbe.KioskGroup_ID, qbe.KioskGroup_Name, qbe.Item_Flag, qbe.CreatedBy, qbe.CreatedOn, qbe.ModifiedBy, qbe.ModifiedOn)); }
public static List <VSM.Data.Objects.M_KioskGroup> Select(VSM.Data.Objects.M_KioskGroup qbe) { return(new M_KioskGroupFactory().Select(qbe)); }