protected virtual FieldValue[] CreateFieldValues(VSM.Data.Objects.VW_RPT_OldCustomer theVW_RPT_OldCustomer, VSM.Data.Objects.VW_RPT_OldCustomer original_VW_RPT_OldCustomer) { List <FieldValue> values = new List <FieldValue>(); values.Add(new FieldValue("IdenDoc_Code", original_VW_RPT_OldCustomer.IdenDoc_Code, theVW_RPT_OldCustomer.IdenDoc_Code, true)); values.Add(new FieldValue("Identity_ID", original_VW_RPT_OldCustomer.Identity_ID, theVW_RPT_OldCustomer.Identity_ID, true)); values.Add(new FieldValue("Name_th", original_VW_RPT_OldCustomer.Name_th, theVW_RPT_OldCustomer.Name_th, true)); values.Add(new FieldValue("Sex", original_VW_RPT_OldCustomer.Sex, theVW_RPT_OldCustomer.Sex)); values.Add(new FieldValue("Authen_User", original_VW_RPT_OldCustomer.Authen_User, theVW_RPT_OldCustomer.Authen_User)); values.Add(new FieldValue("KioskOwner_ID", original_VW_RPT_OldCustomer.KioskOwner_ID, theVW_RPT_OldCustomer.KioskOwner_ID)); values.Add(new FieldValue("KioskOwner_Branch_ID", original_VW_RPT_OldCustomer.KioskOwner_Branch_ID, theVW_RPT_OldCustomer.KioskOwner_Branch_ID)); values.Add(new FieldValue("Amount", original_VW_RPT_OldCustomer.Amount, theVW_RPT_OldCustomer.Amount)); return(values.ToArray()); }
protected virtual int ExecuteAction(VSM.Data.Objects.VW_RPT_OldCustomer theVW_RPT_OldCustomer, VSM.Data.Objects.VW_RPT_OldCustomer original_VW_RPT_OldCustomer, string lastCommandName, string commandName, string dataView) { ActionArgs args = new ActionArgs(); args.Controller = "VW_RPT_OldCustomer"; args.View = dataView; args.Values = CreateFieldValues(theVW_RPT_OldCustomer, original_VW_RPT_OldCustomer); args.LastCommandName = lastCommandName; args.CommandName = commandName; ActionResult result = ControllerFactory.CreateDataController().Execute("VW_RPT_OldCustomer", dataView, args); result.RaiseExceptionIfErrors(); result.AssignTo(theVW_RPT_OldCustomer); return(result.RowsAffected); }
public virtual int Delete(VSM.Data.Objects.VW_RPT_OldCustomer theVW_RPT_OldCustomer) { return(ExecuteAction(theVW_RPT_OldCustomer, theVW_RPT_OldCustomer, "Select", "Delete", DeleteView)); }
public virtual int Insert(VSM.Data.Objects.VW_RPT_OldCustomer theVW_RPT_OldCustomer) { return(ExecuteAction(theVW_RPT_OldCustomer, new VW_RPT_OldCustomer(), "New", "Insert", InsertView)); }
public virtual int Update(VSM.Data.Objects.VW_RPT_OldCustomer theVW_RPT_OldCustomer) { return(Update(theVW_RPT_OldCustomer, SelectSingle(theVW_RPT_OldCustomer.Identity_ID))); }
public virtual int Update(VSM.Data.Objects.VW_RPT_OldCustomer theVW_RPT_OldCustomer, VSM.Data.Objects.VW_RPT_OldCustomer original_VW_RPT_OldCustomer) { return(ExecuteAction(theVW_RPT_OldCustomer, original_VW_RPT_OldCustomer, "Edit", "Update", UpdateView)); }
public List <VSM.Data.Objects.VW_RPT_OldCustomer> Select(VSM.Data.Objects.VW_RPT_OldCustomer qbe) { return(Select(qbe.IdenDoc_Code, qbe.Identity_ID, qbe.Name_th, qbe.Sex, qbe.Authen_User, qbe.KioskOwner_ID, qbe.KioskOwner_Branch_ID, qbe.Amount)); }
public static List <VSM.Data.Objects.VW_RPT_OldCustomer> Select(VSM.Data.Objects.VW_RPT_OldCustomer qbe) { return(new VW_RPT_OldCustomerFactory().Select(qbe)); }