1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Drawing;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows.Forms;
- namespace WCS_Client.From
- {
- public partial class Form_PRIORITY : Form
- {
- string TASK_NO = string.Empty;
- public Form_PRIORITY(string task_no,decimal priority)
- {
- InitializeComponent();
- TASK_NO = task_no;
- lblTask_no.Text = task_no;
- nudPRIORITY.Value = priority;
- }
- private void btnCancel_Click(object sender, EventArgs e)
- {
- Close();
- }
- private void btnUpdateSave_Click(object sender, EventArgs e)
- {
- string result = TryCachHelper.TryExecute((db) =>
- {
- BaseWorkflow.TaskUpdatePriority(db, Convert.ToInt32(TASK_NO),Convert.ToInt32(nudPRIORITY.Value));
- });
- if (string.IsNullOrWhiteSpace(result))
- {
- MessageBox.Show(string.Format("任务[{0}]修改优先级为[{1}]成功!", TASK_NO, nudPRIORITY.Value));
- }
- else
- {
- MessageBox.Show(string.Format("任务[{0}]修改优先级为[{1}]失败!", TASK_NO, nudPRIORITY.Value));
- }
- Close();
- }
- }
- }
|