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();
|
}
|
}
|
}
|