示例#1
0
        public int Add(AddTriggerFormViewModel_Add model)
        {
            T_ServiceList   serviceList = new T_ServiceList();
            var             id          = serviceList.GetID(model.ServiceName);
            T_SimpleTrigger trigger     = new T_SimpleTrigger()
            {
                ID             = model.ID,
                StartTime      = model.StartTime,
                EndTime        = model.EndTime,
                RepeatTime     = model.RepeatTime,
                RepeatInterval = model.RepeatInterval,
                SID            = id
            };

            return(trigger.Add(trigger));
        }
示例#2
0
        public DataSet GetList()
        {
            T_ServiceList list = new T_ServiceList();

            return(list.GetList(""));
        }
示例#3
0
        public DataSet GetList()
        {
            T_ServiceList service = new T_ServiceList();

            return(service.GetList(""));
        }