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