protected virtual int ExecuteAction(VSM.Data.Objects.M_Kiosk_Material theM_Kiosk_Material, VSM.Data.Objects.M_Kiosk_Material original_M_Kiosk_Material, string lastCommandName, string commandName, string dataView) { ActionArgs args = new ActionArgs(); args.Controller = "M_Kiosk_Material"; args.View = dataView; args.Values = CreateFieldValues(theM_Kiosk_Material, original_M_Kiosk_Material); args.LastCommandName = lastCommandName; args.CommandName = commandName; ActionResult result = ControllerFactory.CreateDataController().Execute("M_Kiosk_Material", dataView, args); result.RaiseExceptionIfErrors(); result.AssignTo(theM_Kiosk_Material); return(result.RowsAffected); }
protected virtual FieldValue[] CreateFieldValues(VSM.Data.Objects.M_Kiosk_Material theM_Kiosk_Material, VSM.Data.Objects.M_Kiosk_Material original_M_Kiosk_Material) { List <FieldValue> values = new List <FieldValue>(); values.Add(new FieldValue("Kiosk_ID", original_M_Kiosk_Material.Kiosk_ID, theM_Kiosk_Material.Kiosk_ID)); values.Add(new FieldValue("Kiosk_Kiosk_Code", original_M_Kiosk_Material.Kiosk_Kiosk_Code, theM_Kiosk_Material.Kiosk_Kiosk_Code, true)); values.Add(new FieldValue("Kiosk_KioskType_KioskType_Name", original_M_Kiosk_Material.Kiosk_KioskType_KioskType_Name, theM_Kiosk_Material.Kiosk_KioskType_KioskType_Name, true)); values.Add(new FieldValue("Kiosk_Location_Location_Address", original_M_Kiosk_Material.Kiosk_Location_Location_Address, theM_Kiosk_Material.Kiosk_Location_Location_Address, true)); values.Add(new FieldValue("Kiosk_Location_KioskOwner_KioskOwner_Code", original_M_Kiosk_Material.Kiosk_Location_KioskOwner_KioskOwner_Code, theM_Kiosk_Material.Kiosk_Location_KioskOwner_KioskOwner_Code, true)); values.Add(new FieldValue("Mater_ID", original_M_Kiosk_Material.Mater_ID, theM_Kiosk_Material.Mater_ID)); values.Add(new FieldValue("Mater_MaterType_Code", original_M_Kiosk_Material.Mater_MaterType_Code, theM_Kiosk_Material.Mater_MaterType_Code, true)); values.Add(new FieldValue("Mater_MaterType_MaterType_Name", original_M_Kiosk_Material.Mater_MaterType_MaterType_Name, theM_Kiosk_Material.Mater_MaterType_MaterType_Name, true)); values.Add(new FieldValue("CreatedBy", original_M_Kiosk_Material.CreatedBy, theM_Kiosk_Material.CreatedBy)); values.Add(new FieldValue("CreatedOn", original_M_Kiosk_Material.CreatedOn, theM_Kiosk_Material.CreatedOn)); values.Add(new FieldValue("ModifiedBy", original_M_Kiosk_Material.ModifiedBy, theM_Kiosk_Material.ModifiedBy)); values.Add(new FieldValue("ModifiedOn", original_M_Kiosk_Material.ModifiedOn, theM_Kiosk_Material.ModifiedOn)); return(values.ToArray()); }
public virtual int Delete(VSM.Data.Objects.M_Kiosk_Material theM_Kiosk_Material) { return(ExecuteAction(theM_Kiosk_Material, theM_Kiosk_Material, "Select", "Delete", DeleteView)); }
public virtual int Insert(VSM.Data.Objects.M_Kiosk_Material theM_Kiosk_Material) { return(ExecuteAction(theM_Kiosk_Material, new M_Kiosk_Material(), "New", "Insert", InsertView)); }
public virtual int Update(VSM.Data.Objects.M_Kiosk_Material theM_Kiosk_Material) { return(Update(theM_Kiosk_Material, SelectSingle(theM_Kiosk_Material.Kiosk_ID, theM_Kiosk_Material.Mater_ID))); }
public virtual int Update(VSM.Data.Objects.M_Kiosk_Material theM_Kiosk_Material, VSM.Data.Objects.M_Kiosk_Material original_M_Kiosk_Material) { return(ExecuteAction(theM_Kiosk_Material, original_M_Kiosk_Material, "Edit", "Update", UpdateView)); }
public List <VSM.Data.Objects.M_Kiosk_Material> Select(VSM.Data.Objects.M_Kiosk_Material qbe) { return(Select(qbe.Kiosk_ID, qbe.Kiosk_Kiosk_Code, qbe.Kiosk_KioskType_KioskType_Name, qbe.Kiosk_Location_Location_Address, qbe.Kiosk_Location_KioskOwner_KioskOwner_Code, qbe.Mater_ID, qbe.Mater_MaterType_Code, qbe.Mater_MaterType_MaterType_Name, qbe.CreatedBy, qbe.CreatedOn, qbe.ModifiedBy, qbe.ModifiedOn)); }
public static List <VSM.Data.Objects.M_Kiosk_Material> Select(VSM.Data.Objects.M_Kiosk_Material qbe) { return(new M_Kiosk_MaterialFactory().Select(qbe)); }