ATUL_v1.Atul_v1Data.UpdateProcessSchedule C# (CSharp) Method

UpdateProcessSchedule() public method

public UpdateProcessSchedule ( long scheduleProcessID, string scheduleVersion, System.DateTime lastInstantiated, System.DateTime nextScheduled, string repeatSchedule, string instantiatedUsers ) : bool
scheduleProcessID long
scheduleVersion string
lastInstantiated System.DateTime
nextScheduled System.DateTime
repeatSchedule string
instantiatedUsers string
return bool
        public bool UpdateProcessSchedule(long scheduleProcessID, string scheduleVersion, DateTime? lastInstantiated, DateTime nextScheduled, string repeatSchedule, string instantiatedUsers)
        {
            SqlCommand cmd = new SqlCommand("exec dbo.Atul_ProcessScheduleUpdate_sp @AtulProcessScheduleID, @ScheduleVersion, @LastInstantiated, @NextScheduledDate, @RepeatSchedule, @InstantiatedUserList", this._connection);
            cmd.Parameters.Add(new SqlParameter("@AtulProcessScheduleID", scheduleProcessID));
            cmd.Parameters.Add(new SqlParameter("@ScheduleVersion", scheduleVersion));
            cmd.Parameters.Add(new SqlParameter("@LastInstantiated", lastInstantiated));
            cmd.Parameters.Add(new SqlParameter("@NextScheduledDate", nextScheduled));
            cmd.Parameters.Add(new SqlParameter("@RepeatSchedule", repeatSchedule));
            cmd.Parameters.Add(new SqlParameter("@InstantiatedUserList", instantiatedUsers));
            bool success = Convert.ToBoolean(cmd.ExecuteNonQuery());
            return success;
        }

Usage Example

コード例 #1
0
ファイル: AtulBusinessLogic.cs プロジェクト: godaddy/ATUL
 public bool UpdateProcessSchedule(long scheduleProcessID, string scheduleVersion, DateTime? lastInstantiated, DateTime nextScheduled, string repeatSchedule, string instantiatedUsers)
 {
     bool success = false;
     Atul_v1Data adb = new Atul_v1Data();
     success = adb.UpdateProcessSchedule(scheduleProcessID, scheduleVersion, lastInstantiated, nextScheduled, repeatSchedule, instantiatedUsers);
     return success;
 }
Atul_v1Data