Beispiel #1
0
        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());
        }
Beispiel #2
0
        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);
        }
Beispiel #3
0
 public virtual int Delete(VSM.Data.Objects.VW_RPT_OldCustomer theVW_RPT_OldCustomer)
 {
     return(ExecuteAction(theVW_RPT_OldCustomer, theVW_RPT_OldCustomer, "Select", "Delete", DeleteView));
 }
Beispiel #4
0
 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));
 }
Beispiel #5
0
 public virtual int Update(VSM.Data.Objects.VW_RPT_OldCustomer theVW_RPT_OldCustomer)
 {
     return(Update(theVW_RPT_OldCustomer, SelectSingle(theVW_RPT_OldCustomer.Identity_ID)));
 }
Beispiel #6
0
 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));
 }
Beispiel #7
0
 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));
 }
Beispiel #8
0
 public static List <VSM.Data.Objects.VW_RPT_OldCustomer> Select(VSM.Data.Objects.VW_RPT_OldCustomer qbe)
 {
     return(new VW_RPT_OldCustomerFactory().Select(qbe));
 }