Пример #1
0
        public static string QuerySchedulesJson(string[] ids)
        {
            SimpleSchedule[] result = EmptyResult;
            if (ids.Length > 0)
            {
                var item = JobScheduleAdapter.Instance.LoadByInBuilder(m => { m.DataField = "SCHEDULE_ID"; m.AppendItem(ids); });
                if (item != null && item.Count > 0)
                {
                    result = new SimpleSchedule[item.Count];
                    for (int i = item.Count - 1; i >= 0; i--)
                    {
                        result[i] = new SimpleSchedule(item[i]);
                    }
                }
            }

            return(MCS.Web.Library.Script.JSONSerializerExecute.Serialize(result));
        }
Пример #2
0
        public static SimpleSchedule[] QuerySchedules(string[] ids)
        {
            SimpleSchedule[] result = EmptyResult;
            if (ids.Length > 0)
            {
                var item = JobScheduleAdapter.Instance.LoadByInBuilder(m => { m.DataField = "SCHEDULE_ID"; m.AppendItem(ids); });
                if (item != null && item.Count > 0)
                {
                    result = new SimpleSchedule[item.Count];
                    for (int i = item.Count - 1; i >= 0; i--)
                    {
                        result[i] = new SimpleSchedule(item[i]);
                    }
                }
            }

            return(result);
        }
Пример #3
0
		public static SimpleSchedule[] QuerySchedules(string[] ids)
		{
			SimpleSchedule[] result = EmptyResult;
			if (ids.Length > 0)
			{
				var item = JobScheduleAdapter.Instance.LoadByInBuilder(m => { m.DataField = "SCHEDULE_ID"; m.AppendItem(ids); });
				if (item != null && item.Count > 0)
				{
					result = new SimpleSchedule[item.Count];
					for (int i = item.Count - 1; i >= 0; i--)
					{
						result[i] = new SimpleSchedule(item[i]);
					}
				}
			}

			return result;
		}
Пример #4
0
		public static string QuerySchedulesJson(string[] ids)
		{
			SimpleSchedule[] result = EmptyResult;
			if (ids.Length > 0)
			{
				var item = JobScheduleAdapter.Instance.LoadByInBuilder(m => { m.DataField = "SCHEDULE_ID"; m.AppendItem(ids); });
				if (item != null && item.Count > 0)
				{
					result = new SimpleSchedule[item.Count];
					for (int i = item.Count - 1; i >= 0; i--)
					{
						result[i] = new SimpleSchedule(item[i]);
					}
				}
			}

			return MCS.Web.Library.Script.JSONSerializerExecute.Serialize(result);
		}