| | |
| | | using System.IO.Compression; |
| | | using System.Runtime.Serialization.Formatters.Binary; |
| | | using System.Collections.Concurrent; |
| | | using Hydro.CommonBase; |
| | | using CommonBase; |
| | | using Hydro.ConfigModel; |
| | | using Newtonsoft.Json; |
| | | using Dapper; |
| | | using System.Windows.Forms; |
| | | using Hydro.HydraulicModel; |
| | | using HydraulicModel; |
| | | using Hydro.Core.Model; |
| | | using ParrelController_NS; |
| | | //using AForge; |
| | |
| | | FinishEvent onFinished = null, |
| | | FinishEvent onError = null, |
| | | FinishEvent onReportProgress = null, |
| | | WdnmoParam param = null, |
| | | WdnmoParam wParam = null, |
| | | bool isGUI = false, |
| | | bool isGUILoading = false |
| | | ) |
| | |
| | | |
| | | |
| | | //Log.Add("参数读取完成"); |
| | | if ((result = controllerInit(isGUI, param)) != null) return result; |
| | | if ((result = controllerInit(isGUI, wParam)) != null) return result; |
| | | |
| | | if ((result = load试算参数_gParam()) != null) return result; |
| | | //StartChild |
| | |
| | | return null; |
| | | } |
| | | |
| | | public float GetValue(string ID, int code, bool isNode) |
| | | { |
| | | return EPAController.ViewResult(ID,code,isNode); |
| | | } |
| | | public string SetValue(string ID, int code, double value,bool isNode) |
| | | { |
| | | return EPAController.SetResult(ID, code, value, isNode); |
| | | } |
| | | public string SetValue(string ID, EPAModelInput.eType type, float value) |
| | | { |
| | | return EPAController.SetResult(ID, type, value); |
| | | } |
| | | //public float GetValue(string ID, int code, bool isNode) |
| | | //{ |
| | | // return EPAController.ViewResult(ID,code,isNode); |
| | | //} |
| | | //public string SetValue(string ID, int code, double value,bool isNode) |
| | | //{ |
| | | // return EPAController.SetResult(ID, code, value, isNode); |
| | | //} |
| | | //public string SetValue(string ID, EPAModelInput.eType type, float value) |
| | | //{ |
| | | // return EPAController.SetResult(ID, type, value); |
| | | //} |
| | | public EPAParrelController epaParrelController { get { return EPAController; } } |
| | | |
| | | public string manuCalc() |