protected virtual int ExecuteAction(VSM.Data.Objects.Base_Customer_Authentication theBase_Customer_Authentication, VSM.Data.Objects.Base_Customer_Authentication original_Base_Customer_Authentication, string lastCommandName, string commandName, string dataView) { ActionArgs args = new ActionArgs(); args.Controller = "Base_Customer_Authentication"; args.View = dataView; args.Values = CreateFieldValues(theBase_Customer_Authentication, original_Base_Customer_Authentication); args.LastCommandName = lastCommandName; args.CommandName = commandName; ActionResult result = ControllerFactory.CreateDataController().Execute("Base_Customer_Authentication", dataView, args); result.RaiseExceptionIfErrors(); result.AssignTo(theBase_Customer_Authentication); return(result.RowsAffected); }
protected virtual FieldValue[] CreateFieldValues(VSM.Data.Objects.Base_Customer_Authentication theBase_Customer_Authentication, VSM.Data.Objects.Base_Customer_Authentication original_Base_Customer_Authentication) { List <FieldValue> values = new List <FieldValue>(); values.Add(new FieldValue("Customer_ID", original_Base_Customer_Authentication.Customer_ID, theBase_Customer_Authentication.Customer_ID)); values.Add(new FieldValue("Customer_IdenDoc_Code", original_Base_Customer_Authentication.Customer_IdenDoc_Code, theBase_Customer_Authentication.Customer_IdenDoc_Code, true)); values.Add(new FieldValue("Customer_Country_Country_Name_Locale", original_Base_Customer_Authentication.Customer_Country_Country_Name_Locale, theBase_Customer_Authentication.Customer_Country_Country_Name_Locale, true)); values.Add(new FieldValue("Customer_GenBy_GenBy_Name", original_Base_Customer_Authentication.Customer_GenBy_GenBy_Name, theBase_Customer_Authentication.Customer_GenBy_GenBy_Name, true)); values.Add(new FieldValue("Customer_IdenDoc_IdenDoc_Name", original_Base_Customer_Authentication.Customer_IdenDoc_IdenDoc_Name, theBase_Customer_Authentication.Customer_IdenDoc_IdenDoc_Name, true)); values.Add(new FieldValue("Authen_User", original_Base_Customer_Authentication.Authen_User, theBase_Customer_Authentication.Authen_User)); values.Add(new FieldValue("Authen_Password", original_Base_Customer_Authentication.Authen_Password, theBase_Customer_Authentication.Authen_Password)); values.Add(new FieldValue("Item_Flag", original_Base_Customer_Authentication.Item_Flag, theBase_Customer_Authentication.Item_Flag)); values.Add(new FieldValue("CreatedBy", original_Base_Customer_Authentication.CreatedBy, theBase_Customer_Authentication.CreatedBy)); values.Add(new FieldValue("CreatedOn", original_Base_Customer_Authentication.CreatedOn, theBase_Customer_Authentication.CreatedOn)); values.Add(new FieldValue("ModifiedBy", original_Base_Customer_Authentication.ModifiedBy, theBase_Customer_Authentication.ModifiedBy)); values.Add(new FieldValue("ModifiedOn", original_Base_Customer_Authentication.ModifiedOn, theBase_Customer_Authentication.ModifiedOn)); return(values.ToArray()); }
public virtual int Delete(VSM.Data.Objects.Base_Customer_Authentication theBase_Customer_Authentication) { return(ExecuteAction(theBase_Customer_Authentication, theBase_Customer_Authentication, "Select", "Delete", DeleteView)); }
public virtual int Insert(VSM.Data.Objects.Base_Customer_Authentication theBase_Customer_Authentication) { return(ExecuteAction(theBase_Customer_Authentication, new Base_Customer_Authentication(), "New", "Insert", InsertView)); }
public virtual int Update(VSM.Data.Objects.Base_Customer_Authentication theBase_Customer_Authentication) { return(Update(theBase_Customer_Authentication, SelectSingle(theBase_Customer_Authentication.Customer_ID, theBase_Customer_Authentication.Authen_User))); }
public virtual int Update(VSM.Data.Objects.Base_Customer_Authentication theBase_Customer_Authentication, VSM.Data.Objects.Base_Customer_Authentication original_Base_Customer_Authentication) { return(ExecuteAction(theBase_Customer_Authentication, original_Base_Customer_Authentication, "Edit", "Update", UpdateView)); }
public List <VSM.Data.Objects.Base_Customer_Authentication> Select(VSM.Data.Objects.Base_Customer_Authentication qbe) { return(Select(qbe.Customer_ID, qbe.Customer_IdenDoc_Code, qbe.Customer_Country_Country_Name_Locale, qbe.Customer_GenBy_GenBy_Name, qbe.Customer_IdenDoc_IdenDoc_Name, qbe.Authen_User, qbe.Authen_Password, qbe.Item_Flag, qbe.CreatedBy, qbe.CreatedOn, qbe.ModifiedBy, qbe.ModifiedOn)); }
public static List <VSM.Data.Objects.Base_Customer_Authentication> Select(VSM.Data.Objects.Base_Customer_Authentication qbe) { return(new Base_Customer_AuthenticationFactory().Select(qbe)); }