| | |
| | | { |
| | | public partial class IBoxFormEnergyAnalysis : DocumentPage |
| | | { |
| | | private string startCode = "[&start&]"; |
| | | private string endCode = "[&end&]"; |
| | | private string paramCode = "[¶m&]"; |
| | | private string getenergyanalyCode = "getenergyanaly";//获取能耗分析数据 |
| | | private string analydayCode = "analyday";//校验能耗分析 |
| | | |
| | | |
| | | public IBoxFormEnergyAnalysis() |
| | | { |
| | |
| | | EndDate = DateTime.Parse(this.dateEditEndDate.EditValue.ToString()), |
| | | }; |
| | | |
| | | SendText(startCode + getenergyanalyCode + paramCode + JsonHelper.Object2Json(m) + endCode); |
| | | SendText(IBoxHelper.startCode + IBoxHelper.getenergyanalyCode + IBoxHelper.paramCode + JsonHelper.Object2Json(m) + IBoxHelper.endCode); |
| | | } |
| | | |
| | | public event EventHandler<string> SendData; |
| | |
| | | if (dlg.ShowDialog() == DialogResult.OK) |
| | | { |
| | | var dt = dlg.CurrDateTime; |
| | | SendText(startCode + analydayCode + paramCode + dt + endCode); |
| | | SendText(IBoxHelper.startCode + IBoxHelper.analydayCode + IBoxHelper.paramCode + dt + IBoxHelper.endCode); |
| | | MessageBoxHelper.ShowInfo("操作成功"); |
| | | } |
| | | } |