Beispiel #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));
        }
Beispiel #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);
        }
		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;
		}
		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);
		}