protected virtual int ExecuteAction(VSM.Data.Objects.M_SSID theM_SSID, VSM.Data.Objects.M_SSID original_M_SSID, string lastCommandName, string commandName, string dataView) { ActionArgs args = new ActionArgs(); args.Controller = "M_SSID"; args.View = dataView; args.Values = CreateFieldValues(theM_SSID, original_M_SSID); args.LastCommandName = lastCommandName; args.CommandName = commandName; ActionResult result = ControllerFactory.CreateDataController().Execute("M_SSID", dataView, args); result.RaiseExceptionIfErrors(); result.AssignTo(theM_SSID); return(result.RowsAffected); }
protected virtual FieldValue[] CreateFieldValues(VSM.Data.Objects.M_SSID theM_SSID, VSM.Data.Objects.M_SSID original_M_SSID) { List <FieldValue> values = new List <FieldValue>(); values.Add(new FieldValue("SSID", original_M_SSID.SSID, theM_SSID.SSID)); values.Add(new FieldValue("SSID_CODE", original_M_SSID.SSID_CODE, theM_SSID.SSID_CODE)); values.Add(new FieldValue("SSID_Name", original_M_SSID.SSID_Name, theM_SSID.SSID_Name)); values.Add(new FieldValue("RadiusServer_Code", original_M_SSID.RadiusServer_Code, theM_SSID.RadiusServer_Code)); values.Add(new FieldValue("RadiusServer_RadiusServer_Name", original_M_SSID.RadiusServer_RadiusServer_Name, theM_SSID.RadiusServer_RadiusServer_Name, true)); values.Add(new FieldValue("KioskOwner_ID", original_M_SSID.KioskOwner_ID, theM_SSID.KioskOwner_ID)); values.Add(new FieldValue("KioskOwner_KioskOwner_Code", original_M_SSID.KioskOwner_KioskOwner_Code, theM_SSID.KioskOwner_KioskOwner_Code, true)); values.Add(new FieldValue("Item_Flag", original_M_SSID.Item_Flag, theM_SSID.Item_Flag)); values.Add(new FieldValue("CreatedBy", original_M_SSID.CreatedBy, theM_SSID.CreatedBy)); values.Add(new FieldValue("CreatedOn", original_M_SSID.CreatedOn, theM_SSID.CreatedOn)); values.Add(new FieldValue("ModifiedBy", original_M_SSID.ModifiedBy, theM_SSID.ModifiedBy)); values.Add(new FieldValue("ModifiedOn", original_M_SSID.ModifiedOn, theM_SSID.ModifiedOn)); return(values.ToArray()); }
public virtual int Delete(VSM.Data.Objects.M_SSID theM_SSID) { return(ExecuteAction(theM_SSID, theM_SSID, "Select", "Delete", DeleteView)); }
public virtual int Insert(VSM.Data.Objects.M_SSID theM_SSID) { return(ExecuteAction(theM_SSID, new M_SSID(), "New", "Insert", InsertView)); }
public virtual int Update(VSM.Data.Objects.M_SSID theM_SSID) { return(Update(theM_SSID, SelectSingle(theM_SSID.SSID))); }
public virtual int Update(VSM.Data.Objects.M_SSID theM_SSID, VSM.Data.Objects.M_SSID original_M_SSID) { return(ExecuteAction(theM_SSID, original_M_SSID, "Edit", "Update", UpdateView)); }
public List <VSM.Data.Objects.M_SSID> Select(VSM.Data.Objects.M_SSID qbe) { return(Select(qbe.SSID, qbe.SSID_CODE, qbe.SSID_Name, qbe.RadiusServer_Code, qbe.RadiusServer_RadiusServer_Name, qbe.KioskOwner_ID, qbe.KioskOwner_KioskOwner_Code, qbe.Item_Flag, qbe.CreatedBy, qbe.CreatedOn, qbe.ModifiedBy, qbe.ModifiedOn)); }
public static List <VSM.Data.Objects.M_SSID> Select(VSM.Data.Objects.M_SSID qbe) { return(new M_SSIDFactory().Select(qbe)); }