bug
lu
11 小时以前 1cd9e23e206544289877e3d9140a31b8fcbad2ff
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
using DevExpress.XtraEditors;
using Gs.DevApp.ToolBox;
using Newtonsoft.Json;
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 Gs.DevApp.DevFrm.BasicData
{
    public partial class Frm_MesItemsShow : DevExpress.XtraEditors.XtraForm
    {
        string guidList = "";
        public Frm_MesItemsShow(string _guidList)
        {
            InitializeComponent();
            this.guidList = _guidList;
            this.Text = "设置提前送货日期:" + guidList;
            this.btnCancel.Click += BtnCancel_Click;
            this.btnSave.Click += BtnSave_Click;
        }
 
        private void BtnSave_Click(object sender, EventArgs e)
        {
            var _obj = new
            {
                guidList = this.guidList,
                bz10 = txt_day.Value,
            };
            try
            {
                var strJson = UtilityHelper.HttpPost("", "MesItemsManager/SetDays",
                    JsonConvert.SerializeObject(_obj));
                var _rtn = UtilityHelper.ReturnToDynamic(strJson);
                if (_rtn.rtnCode > 0)
                {
                    MsgHelper.ShowInformation("提示:" + _rtn.rtnMsg);
                    DialogResult = DialogResult.OK;
                    Close();
                }
                else
                {
                    MsgHelper.ShowError("提示:" + _rtn.rtnMsg);
                    DialogResult = DialogResult.None;
                }
            }
            catch (Exception ex)
            {
                DialogResult = DialogResult.Cancel;
                MsgHelper.ShowError("提示:" + ex.Message);
            }
        }
 
        private void BtnCancel_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}