Ejemplo n.º 1
0
        protected virtual int ExecuteAction(VSM.Data.Objects.M_System_Config theM_System_Config, VSM.Data.Objects.M_System_Config original_M_System_Config, string lastCommandName, string commandName, string dataView)
        {
            ActionArgs args = new ActionArgs();

            args.Controller      = "M_System_Config";
            args.View            = dataView;
            args.Values          = CreateFieldValues(theM_System_Config, original_M_System_Config);
            args.LastCommandName = lastCommandName;
            args.CommandName     = commandName;
            ActionResult result = ControllerFactory.CreateDataController().Execute("M_System_Config", dataView, args);

            result.RaiseExceptionIfErrors();
            result.AssignTo(theM_System_Config);
            return(result.RowsAffected);
        }
Ejemplo n.º 2
0
        protected virtual FieldValue[] CreateFieldValues(VSM.Data.Objects.M_System_Config theM_System_Config, VSM.Data.Objects.M_System_Config original_M_System_Config)
        {
            List <FieldValue> values = new List <FieldValue>();

            values.Add(new FieldValue("Config_ID", original_M_System_Config.Config_ID, theM_System_Config.Config_ID));
            values.Add(new FieldValue("ConfigType_Code", original_M_System_Config.ConfigType_Code, theM_System_Config.ConfigType_Code, true));
            values.Add(new FieldValue("ConfigType_ConfigType_Name", original_M_System_Config.ConfigType_ConfigType_Name, theM_System_Config.ConfigType_ConfigType_Name, true));
            values.Add(new FieldValue("Config_Name", original_M_System_Config.Config_Name, theM_System_Config.Config_Name));
            values.Add(new FieldValue("Config_Desc", original_M_System_Config.Config_Desc, theM_System_Config.Config_Desc));
            values.Add(new FieldValue("Config_Value", original_M_System_Config.Config_Value, theM_System_Config.Config_Value));
            values.Add(new FieldValue("Item_Flag", original_M_System_Config.Item_Flag, theM_System_Config.Item_Flag));
            values.Add(new FieldValue("CreatedBy", original_M_System_Config.CreatedBy, theM_System_Config.CreatedBy));
            values.Add(new FieldValue("CreatedOn", original_M_System_Config.CreatedOn, theM_System_Config.CreatedOn, true));
            values.Add(new FieldValue("ModifiedBy", original_M_System_Config.ModifiedBy, theM_System_Config.ModifiedBy));
            values.Add(new FieldValue("ModifiedOn", original_M_System_Config.ModifiedOn, theM_System_Config.ModifiedOn, true));
            return(values.ToArray());
        }
Ejemplo n.º 3
0
 public virtual int Delete(VSM.Data.Objects.M_System_Config theM_System_Config)
 {
     return(ExecuteAction(theM_System_Config, theM_System_Config, "Select", "Delete", DeleteView));
 }
Ejemplo n.º 4
0
 public virtual int Insert(VSM.Data.Objects.M_System_Config theM_System_Config)
 {
     return(ExecuteAction(theM_System_Config, new M_System_Config(), "New", "Insert", InsertView));
 }
Ejemplo n.º 5
0
 public virtual int Update(VSM.Data.Objects.M_System_Config theM_System_Config)
 {
     return(Update(theM_System_Config, SelectSingle(theM_System_Config.Config_ID)));
 }
Ejemplo n.º 6
0
 public virtual int Update(VSM.Data.Objects.M_System_Config theM_System_Config, VSM.Data.Objects.M_System_Config original_M_System_Config)
 {
     return(ExecuteAction(theM_System_Config, original_M_System_Config, "Edit", "Update", UpdateView));
 }
Ejemplo n.º 7
0
 public List <VSM.Data.Objects.M_System_Config> Select(VSM.Data.Objects.M_System_Config qbe)
 {
     return(Select(qbe.Config_ID, qbe.ConfigType_Code, qbe.ConfigType_ConfigType_Name, qbe.Config_Name, qbe.Config_Desc, qbe.Config_Value, qbe.Item_Flag, qbe.CreatedBy, qbe.CreatedOn, qbe.ModifiedBy, qbe.ModifiedOn));
 }
Ejemplo n.º 8
0
 public static List <VSM.Data.Objects.M_System_Config> Select(VSM.Data.Objects.M_System_Config qbe)
 {
     return(new M_System_ConfigFactory().Select(qbe));
 }