Пример #1
0
 public virtual int Delete(VSM.Data.Objects.M_Kiosk_Type theM_Kiosk_Type)
 {
     return(ExecuteAction(theM_Kiosk_Type, theM_Kiosk_Type, "Select", "Delete", DeleteView));
 }
Пример #2
0
 public virtual int Update(VSM.Data.Objects.M_Kiosk_Type theM_Kiosk_Type)
 {
     return(Update(theM_Kiosk_Type, SelectSingle(theM_Kiosk_Type.KioskType_Code)));
 }
Пример #3
0
 public virtual int Insert(VSM.Data.Objects.M_Kiosk_Type theM_Kiosk_Type)
 {
     return(ExecuteAction(theM_Kiosk_Type, new M_Kiosk_Type(), "New", "Insert", InsertView));
 }
Пример #4
0
 public virtual int Update(VSM.Data.Objects.M_Kiosk_Type theM_Kiosk_Type, VSM.Data.Objects.M_Kiosk_Type original_M_Kiosk_Type)
 {
     return(ExecuteAction(theM_Kiosk_Type, original_M_Kiosk_Type, "Edit", "Update", UpdateView));
 }
Пример #5
0
        protected virtual int ExecuteAction(VSM.Data.Objects.M_Kiosk_Type theM_Kiosk_Type, VSM.Data.Objects.M_Kiosk_Type original_M_Kiosk_Type, string lastCommandName, string commandName, string dataView)
        {
            ActionArgs args = new ActionArgs();

            args.Controller      = "M_Kiosk_Type";
            args.View            = dataView;
            args.Values          = CreateFieldValues(theM_Kiosk_Type, original_M_Kiosk_Type);
            args.LastCommandName = lastCommandName;
            args.CommandName     = commandName;
            ActionResult result = ControllerFactory.CreateDataController().Execute("M_Kiosk_Type", dataView, args);

            result.RaiseExceptionIfErrors();
            result.AssignTo(theM_Kiosk_Type);
            return(result.RowsAffected);
        }
Пример #6
0
        protected virtual FieldValue[] CreateFieldValues(VSM.Data.Objects.M_Kiosk_Type theM_Kiosk_Type, VSM.Data.Objects.M_Kiosk_Type original_M_Kiosk_Type)
        {
            List <FieldValue> values = new List <FieldValue>();

            values.Add(new FieldValue("KioskType_Code", original_M_Kiosk_Type.KioskType_Code, theM_Kiosk_Type.KioskType_Code));
            values.Add(new FieldValue("KioskType_Name", original_M_Kiosk_Type.KioskType_Name, theM_Kiosk_Type.KioskType_Name));
            values.Add(new FieldValue("Item_Flag", original_M_Kiosk_Type.Item_Flag, theM_Kiosk_Type.Item_Flag));
            values.Add(new FieldValue("CreatedBy", original_M_Kiosk_Type.CreatedBy, theM_Kiosk_Type.CreatedBy));
            values.Add(new FieldValue("CreatedOn", original_M_Kiosk_Type.CreatedOn, theM_Kiosk_Type.CreatedOn));
            values.Add(new FieldValue("ModifiedBy", original_M_Kiosk_Type.ModifiedBy, theM_Kiosk_Type.ModifiedBy));
            values.Add(new FieldValue("ModifiedOn", original_M_Kiosk_Type.ModifiedOn, theM_Kiosk_Type.ModifiedOn));
            return(values.ToArray());
        }
Пример #7
0
 public List <VSM.Data.Objects.M_Kiosk_Type> Select(VSM.Data.Objects.M_Kiosk_Type qbe)
 {
     return(Select(qbe.KioskType_Code, qbe.KioskType_Name, qbe.Item_Flag, qbe.CreatedBy, qbe.CreatedOn, qbe.ModifiedBy, qbe.ModifiedOn));
 }
Пример #8
0
 public static List <VSM.Data.Objects.M_Kiosk_Type> Select(VSM.Data.Objects.M_Kiosk_Type qbe)
 {
     return(new M_Kiosk_TypeFactory().Select(qbe));
 }