| | |
| | | { |
| | | public class SavePrjRequest |
| | | { |
| | | public string day { get; set; } |
| | | public IStation.CalcModel.AnaPrj prj { get; set; } |
| | | public IStation.CalcModel.AnaSetting settting { get; set; } |
| | | public IStation.CalcModel.AnaRequestBase requestBase { get; set; } |
| | | public bool isSubmit { get; set; } |
| | | } |
| | | |
| | | public static void SavePrj(DateTime day, CalcModel.AnaRequest ana_request , CalcModel.AnaSetting ana_settting,CalcModel.AnaPrj prj,bool isSubmit) |
| | | public static void SavePrj( CalcModel.AnaRequest ana_request , CalcModel.AnaSetting ana_settting,CalcModel.AnaPrj prj,bool isSubmit) |
| | | { |
| | | if (!ServiceParas.IsRemote) |
| | | { |
| | | IStation.Common.HistoryAnaPrjFileHelper.SavePrj(day, ana_settting, ana_request == null ? null : new CalcModel.AnaRequestBase(ana_request), prj); return; |
| | | IStation.Common.HistoryAnaPrjFileHelper.SavePrj( ana_settting, ana_request == null ? null : new CalcModel.AnaRequestBase(ana_request), prj); return; |
| | | } |
| | | |
| | | if (string.IsNullOrEmpty(ServiceParas.ApiServiceUrl)) |
| | |
| | | string url = string.Format(@"{0}/AnaPrj/SavePrj", ServiceParas.ApiServiceUrl); |
| | | |
| | | SavePrjRequest request = new SavePrjRequest(); |
| | | request.day = day.ToString("yyyy-MM-dd"); |
| | | request.prj = prj; |
| | | request.requestBase = new CalcModel.AnaRequestBase(ana_request); |
| | | request.settting = ana_settting; |