protected virtual int ExecuteAction(VSM.Data.Objects.M_KioskOwner_Location theM_KioskOwner_Location, VSM.Data.Objects.M_KioskOwner_Location original_M_KioskOwner_Location, string lastCommandName, string commandName, string dataView)
        {
            ActionArgs args = new ActionArgs();

            args.Controller      = "M_KioskOwner_Location";
            args.View            = dataView;
            args.Values          = CreateFieldValues(theM_KioskOwner_Location, original_M_KioskOwner_Location);
            args.LastCommandName = lastCommandName;
            args.CommandName     = commandName;
            ActionResult result = ControllerFactory.CreateDataController().Execute("M_KioskOwner_Location", dataView, args);

            result.RaiseExceptionIfErrors();
            result.AssignTo(theM_KioskOwner_Location);
            return(result.RowsAffected);
        }
        protected virtual FieldValue[] CreateFieldValues(VSM.Data.Objects.M_KioskOwner_Location theM_KioskOwner_Location, VSM.Data.Objects.M_KioskOwner_Location original_M_KioskOwner_Location)
        {
            List <FieldValue> values = new List <FieldValue>();

            values.Add(new FieldValue("Location_ID", original_M_KioskOwner_Location.Location_ID, theM_KioskOwner_Location.Location_ID));
            values.Add(new FieldValue("Location_Address", original_M_KioskOwner_Location.Location_Address, theM_KioskOwner_Location.Location_Address));
            values.Add(new FieldValue("Location_LAT", original_M_KioskOwner_Location.Location_LAT, theM_KioskOwner_Location.Location_LAT));
            values.Add(new FieldValue("Location_LONG", original_M_KioskOwner_Location.Location_LONG, theM_KioskOwner_Location.Location_LONG));
            values.Add(new FieldValue("KioskOwner_ID", original_M_KioskOwner_Location.KioskOwner_ID, theM_KioskOwner_Location.KioskOwner_ID));
            values.Add(new FieldValue("KioskOwner_KioskOwner_Code", original_M_KioskOwner_Location.KioskOwner_KioskOwner_Code, theM_KioskOwner_Location.KioskOwner_KioskOwner_Code, true));
            values.Add(new FieldValue("KioskOwner_Branch_ID", original_M_KioskOwner_Location.KioskOwner_Branch_ID, theM_KioskOwner_Location.KioskOwner_Branch_ID));
            values.Add(new FieldValue("KioskOwner_Branch_KioskOwner_Branch_Code", original_M_KioskOwner_Location.KioskOwner_Branch_KioskOwner_Branch_Code, theM_KioskOwner_Location.KioskOwner_Branch_KioskOwner_Branch_Code, true));
            values.Add(new FieldValue("Item_Flag", original_M_KioskOwner_Location.Item_Flag, theM_KioskOwner_Location.Item_Flag));
            values.Add(new FieldValue("CreatedBy", original_M_KioskOwner_Location.CreatedBy, theM_KioskOwner_Location.CreatedBy));
            values.Add(new FieldValue("CreatedOn", original_M_KioskOwner_Location.CreatedOn, theM_KioskOwner_Location.CreatedOn));
            values.Add(new FieldValue("ModifiedBy", original_M_KioskOwner_Location.ModifiedBy, theM_KioskOwner_Location.ModifiedBy));
            values.Add(new FieldValue("ModifiedOn", original_M_KioskOwner_Location.ModifiedOn, theM_KioskOwner_Location.ModifiedOn));
            return(values.ToArray());
        }
 public virtual int Delete(VSM.Data.Objects.M_KioskOwner_Location theM_KioskOwner_Location)
 {
     return(ExecuteAction(theM_KioskOwner_Location, theM_KioskOwner_Location, "Select", "Delete", DeleteView));
 }
 public virtual int Insert(VSM.Data.Objects.M_KioskOwner_Location theM_KioskOwner_Location)
 {
     return(ExecuteAction(theM_KioskOwner_Location, new M_KioskOwner_Location(), "New", "Insert", InsertView));
 }
 public virtual int Update(VSM.Data.Objects.M_KioskOwner_Location theM_KioskOwner_Location)
 {
     return(Update(theM_KioskOwner_Location, SelectSingle(theM_KioskOwner_Location.Location_ID)));
 }
 public virtual int Update(VSM.Data.Objects.M_KioskOwner_Location theM_KioskOwner_Location, VSM.Data.Objects.M_KioskOwner_Location original_M_KioskOwner_Location)
 {
     return(ExecuteAction(theM_KioskOwner_Location, original_M_KioskOwner_Location, "Edit", "Update", UpdateView));
 }
 public List <VSM.Data.Objects.M_KioskOwner_Location> Select(VSM.Data.Objects.M_KioskOwner_Location qbe)
 {
     return(Select(qbe.Location_ID, qbe.Location_Address, qbe.Location_LAT, qbe.Location_LONG, qbe.KioskOwner_ID, qbe.KioskOwner_KioskOwner_Code, qbe.KioskOwner_Branch_ID, qbe.KioskOwner_Branch_KioskOwner_Branch_Code, qbe.Item_Flag, qbe.CreatedBy, qbe.CreatedOn, qbe.ModifiedBy, qbe.ModifiedOn));
 }
 public static List <VSM.Data.Objects.M_KioskOwner_Location> Select(VSM.Data.Objects.M_KioskOwner_Location qbe)
 {
     return(new M_KioskOwner_LocationFactory().Select(qbe));
 }