Esempio n. 1
0
        protected virtual int ExecuteAction(VSM.Data.Objects.T_Contents_Kiosk theT_Contents_Kiosk, VSM.Data.Objects.T_Contents_Kiosk original_T_Contents_Kiosk, string lastCommandName, string commandName, string dataView)
        {
            ActionArgs args = new ActionArgs();

            args.Controller      = "T_Contents_Kiosk";
            args.View            = dataView;
            args.Values          = CreateFieldValues(theT_Contents_Kiosk, original_T_Contents_Kiosk);
            args.LastCommandName = lastCommandName;
            args.CommandName     = commandName;
            ActionResult result = ControllerFactory.CreateDataController().Execute("T_Contents_Kiosk", dataView, args);

            result.RaiseExceptionIfErrors();
            result.AssignTo(theT_Contents_Kiosk);
            return(result.RowsAffected);
        }
Esempio n. 2
0
        protected virtual FieldValue[] CreateFieldValues(VSM.Data.Objects.T_Contents_Kiosk theT_Contents_Kiosk, VSM.Data.Objects.T_Contents_Kiosk original_T_Contents_Kiosk)
        {
            List <FieldValue> values = new List <FieldValue>();

            values.Add(new FieldValue("Content_ID", original_T_Contents_Kiosk.Content_ID, theT_Contents_Kiosk.Content_ID));
            values.Add(new FieldValue("Content_Content_Desc", original_T_Contents_Kiosk.Content_Content_Desc, theT_Contents_Kiosk.Content_Content_Desc, true));
            values.Add(new FieldValue("Content_KioskOwner_KioskOwner_Code", original_T_Contents_Kiosk.Content_KioskOwner_KioskOwner_Code, theT_Contents_Kiosk.Content_KioskOwner_KioskOwner_Code, true));
            values.Add(new FieldValue("Kiosk_ID", original_T_Contents_Kiosk.Kiosk_ID, theT_Contents_Kiosk.Kiosk_ID));
            values.Add(new FieldValue("Kiosk_Kiosk_Code", original_T_Contents_Kiosk.Kiosk_Kiosk_Code, theT_Contents_Kiosk.Kiosk_Kiosk_Code, true));
            values.Add(new FieldValue("Kiosk_KioskType_KioskType_Name", original_T_Contents_Kiosk.Kiosk_KioskType_KioskType_Name, theT_Contents_Kiosk.Kiosk_KioskType_KioskType_Name, true));
            values.Add(new FieldValue("Kiosk_Location_Location_Address", original_T_Contents_Kiosk.Kiosk_Location_Location_Address, theT_Contents_Kiosk.Kiosk_Location_Location_Address, true));
            values.Add(new FieldValue("Kiosk_Location_KioskOwner_KioskOwner_Code", original_T_Contents_Kiosk.Kiosk_Location_KioskOwner_KioskOwner_Code, theT_Contents_Kiosk.Kiosk_Location_KioskOwner_KioskOwner_Code, true));
            values.Add(new FieldValue("CreatedBy", original_T_Contents_Kiosk.CreatedBy, theT_Contents_Kiosk.CreatedBy));
            values.Add(new FieldValue("CreatedOn", original_T_Contents_Kiosk.CreatedOn, theT_Contents_Kiosk.CreatedOn));
            values.Add(new FieldValue("ModifiedBy", original_T_Contents_Kiosk.ModifiedBy, theT_Contents_Kiosk.ModifiedBy));
            values.Add(new FieldValue("ModifiedOn", original_T_Contents_Kiosk.ModifiedOn, theT_Contents_Kiosk.ModifiedOn));
            return(values.ToArray());
        }
Esempio n. 3
0
 public virtual int Delete(VSM.Data.Objects.T_Contents_Kiosk theT_Contents_Kiosk)
 {
     return(ExecuteAction(theT_Contents_Kiosk, theT_Contents_Kiosk, "Select", "Delete", DeleteView));
 }
Esempio n. 4
0
 public virtual int Insert(VSM.Data.Objects.T_Contents_Kiosk theT_Contents_Kiosk)
 {
     return(ExecuteAction(theT_Contents_Kiosk, new T_Contents_Kiosk(), "New", "Insert", InsertView));
 }
Esempio n. 5
0
 public virtual int Update(VSM.Data.Objects.T_Contents_Kiosk theT_Contents_Kiosk)
 {
     return(Update(theT_Contents_Kiosk, SelectSingle(theT_Contents_Kiosk.Content_ID, theT_Contents_Kiosk.Kiosk_ID)));
 }
Esempio n. 6
0
 public virtual int Update(VSM.Data.Objects.T_Contents_Kiosk theT_Contents_Kiosk, VSM.Data.Objects.T_Contents_Kiosk original_T_Contents_Kiosk)
 {
     return(ExecuteAction(theT_Contents_Kiosk, original_T_Contents_Kiosk, "Edit", "Update", UpdateView));
 }
Esempio n. 7
0
 public List <VSM.Data.Objects.T_Contents_Kiosk> Select(VSM.Data.Objects.T_Contents_Kiosk qbe)
 {
     return(Select(qbe.Content_ID, qbe.Content_Content_Desc, qbe.Content_KioskOwner_KioskOwner_Code, qbe.Kiosk_ID, qbe.Kiosk_Kiosk_Code, qbe.Kiosk_KioskType_KioskType_Name, qbe.Kiosk_Location_Location_Address, qbe.Kiosk_Location_KioskOwner_KioskOwner_Code, qbe.CreatedBy, qbe.CreatedOn, qbe.ModifiedBy, qbe.ModifiedOn));
 }
Esempio n. 8
0
 public static List <VSM.Data.Objects.T_Contents_Kiosk> Select(VSM.Data.Objects.T_Contents_Kiosk qbe)
 {
     return(new T_Contents_KioskFactory().Select(qbe));
 }