예제 #1
0
        /// <summary>
        ///
        /// </summary>
        private void UpdateLog()
        {
            if (string.IsNullOrEmpty(hdfKeyRecordLog.Text))
            {
                return;
            }
            var schedulerLog = SchedulerLogServices.GetById(Convert.ToInt32(hdfKeyRecordLog.Text));

            try
            {
                schedulerLog.Description = txtDesciptionLog.Text.Trim();
                BaseServices <SchedulerLog> .Update(schedulerLog);
            }
            catch (Exception e)
            {
                Dialog.Alert("Có lỗi xảy ra trong quá trình sửa: {0}".FormatWith(e.Message));
            }
        }
예제 #2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void EditSchedulerLog_Click(object sender, DirectEventArgs e)
        {
            btnAddAndCloseLog.Hide();
            btnUpdateLog.Show();
            if (!int.TryParse(hdfKeyRecordLog.Text, out var id) || id <= 0)
            {
                return;
            }
            var schedulerLog = SchedulerLogServices.GetById(Convert.ToInt32(hdfKeyRecordLog.Text));

            if (!string.IsNullOrEmpty(schedulerLog.SchedulerHistoryDescription))
            {
                txtSchedulerHistory.Text = schedulerLog.SchedulerHistoryDescription;
            }
            txtDesciptionLog.Text = schedulerLog.Description;
            // show window
            wdSchedulerLogManagement.Title = @"Cập nhật quản lý log tiến trình";
            wdSchedulerLogManagement.Show();
        }