protected virtual int ExecuteAction(VSM.Data.Objects.M_Kiosk_Owner theM_Kiosk_Owner, VSM.Data.Objects.M_Kiosk_Owner original_M_Kiosk_Owner, string lastCommandName, string commandName, string dataView) { ActionArgs args = new ActionArgs(); args.Controller = "M_Kiosk_Owner"; args.View = dataView; args.Values = CreateFieldValues(theM_Kiosk_Owner, original_M_Kiosk_Owner); args.LastCommandName = lastCommandName; args.CommandName = commandName; ActionResult result = ControllerFactory.CreateDataController().Execute("M_Kiosk_Owner", dataView, args); result.RaiseExceptionIfErrors(); result.AssignTo(theM_Kiosk_Owner); return(result.RowsAffected); }
protected virtual FieldValue[] CreateFieldValues(VSM.Data.Objects.M_Kiosk_Owner theM_Kiosk_Owner, VSM.Data.Objects.M_Kiosk_Owner original_M_Kiosk_Owner) { List <FieldValue> values = new List <FieldValue>(); values.Add(new FieldValue("KioskOwner_ID", original_M_Kiosk_Owner.KioskOwner_ID, theM_Kiosk_Owner.KioskOwner_ID)); values.Add(new FieldValue("KioskOwner_Code", original_M_Kiosk_Owner.KioskOwner_Code, theM_Kiosk_Owner.KioskOwner_Code)); values.Add(new FieldValue("KioskOwner_Name", original_M_Kiosk_Owner.KioskOwner_Name, theM_Kiosk_Owner.KioskOwner_Name)); values.Add(new FieldValue("KioskOwner_Address", original_M_Kiosk_Owner.KioskOwner_Address, theM_Kiosk_Owner.KioskOwner_Address)); values.Add(new FieldValue("KioskOwner_LAT", original_M_Kiosk_Owner.KioskOwner_LAT, theM_Kiosk_Owner.KioskOwner_LAT)); values.Add(new FieldValue("KioskOwner_LONG", original_M_Kiosk_Owner.KioskOwner_LONG, theM_Kiosk_Owner.KioskOwner_LONG)); values.Add(new FieldValue("Item_Flag", original_M_Kiosk_Owner.Item_Flag, theM_Kiosk_Owner.Item_Flag)); values.Add(new FieldValue("CreatedBy", original_M_Kiosk_Owner.CreatedBy, theM_Kiosk_Owner.CreatedBy)); values.Add(new FieldValue("CreatedOn", original_M_Kiosk_Owner.CreatedOn, theM_Kiosk_Owner.CreatedOn)); values.Add(new FieldValue("ModifiedBy", original_M_Kiosk_Owner.ModifiedBy, theM_Kiosk_Owner.ModifiedBy)); values.Add(new FieldValue("ModifiedOn", original_M_Kiosk_Owner.ModifiedOn, theM_Kiosk_Owner.ModifiedOn)); values.Add(new FieldValue("Configs", original_M_Kiosk_Owner.Configs, theM_Kiosk_Owner.Configs)); return(values.ToArray()); }
public virtual int Delete(VSM.Data.Objects.M_Kiosk_Owner theM_Kiosk_Owner) { return(ExecuteAction(theM_Kiosk_Owner, theM_Kiosk_Owner, "Select", "Delete", DeleteView)); }
public virtual int Insert(VSM.Data.Objects.M_Kiosk_Owner theM_Kiosk_Owner) { return(ExecuteAction(theM_Kiosk_Owner, new M_Kiosk_Owner(), "New", "Insert", InsertView)); }
public virtual int Update(VSM.Data.Objects.M_Kiosk_Owner theM_Kiosk_Owner) { return(Update(theM_Kiosk_Owner, SelectSingle(theM_Kiosk_Owner.KioskOwner_ID))); }
public virtual int Update(VSM.Data.Objects.M_Kiosk_Owner theM_Kiosk_Owner, VSM.Data.Objects.M_Kiosk_Owner original_M_Kiosk_Owner) { return(ExecuteAction(theM_Kiosk_Owner, original_M_Kiosk_Owner, "Edit", "Update", UpdateView)); }
public List <VSM.Data.Objects.M_Kiosk_Owner> Select(VSM.Data.Objects.M_Kiosk_Owner qbe) { return(Select(qbe.KioskOwner_ID, qbe.KioskOwner_Code, qbe.KioskOwner_Name, qbe.KioskOwner_Address, qbe.KioskOwner_LAT, qbe.KioskOwner_LONG, qbe.Item_Flag, qbe.CreatedBy, qbe.CreatedOn, qbe.ModifiedBy, qbe.ModifiedOn)); }
public static List <VSM.Data.Objects.M_Kiosk_Owner> Select(VSM.Data.Objects.M_Kiosk_Owner qbe) { return(new M_Kiosk_OwnerFactory().Select(qbe)); }