Esempio n. 1
0
 public string SaveOutputStreamDevicePhasor(OutputStreamDevicePhasor outputStreamDevicePhasor, bool isNew)
 {
     try
     {
         return(CommonFunctions.SaveOutputStreamDevicePhasor(null, outputStreamDevicePhasor, isNew));
     }
     catch (Exception ex)
     {
         CommonFunctions.LogException(null, "Service.SaveOutputStreamDevicePhasor", ex);
         CustomServiceFault fault = new CustomServiceFault()
         {
             UserMessage = "Failed to Save Output Stream Device Phasor Information", SystemMessage = ex.Message
         };
         throw new FaultException <CustomServiceFault>(fault);
     }
 }
Esempio n. 2
0
 public List <MapData> GetMapData(MapType mapType, string nodeID)
 {
     try
     {
         return(CommonFunctions.GetMapData(null, mapType, nodeID));
     }
     catch (Exception ex)
     {
         CommonFunctions.LogException(null, "Service.GetMapData", ex);
         CustomServiceFault fault = new CustomServiceFault()
         {
             UserMessage = "Failed to Retrieve Map Data", SystemMessage = ex.Message
         };
         throw new FaultException <CustomServiceFault>(fault);
     }
 }
Esempio n. 3
0
 public string DeleteOutputStreamDevice(int outputStreamID, List <string> devicesToBeDeleted)
 {
     try
     {
         return(CommonFunctions.DeleteOutputStreamDevice(null, outputStreamID, devicesToBeDeleted));
     }
     catch (Exception ex)
     {
         CommonFunctions.LogException(null, "Service.DeleteOutputStreamDevice", ex);
         CustomServiceFault fault = new CustomServiceFault()
         {
             UserMessage = "Failed to Delete Output Stream Device", SystemMessage = ex.Message
         };
         throw new FaultException <CustomServiceFault>(fault);
     }
 }
Esempio n. 4
0
 public List <Historian> GetHistorianList(string nodeID)
 {
     try
     {
         return(CommonFunctions.GetHistorianList(null, nodeID));
     }
     catch (Exception ex)
     {
         CommonFunctions.LogException(null, "Service.GetHistorianList", ex);
         CustomServiceFault fault = new CustomServiceFault()
         {
             UserMessage = "Failed to Retrieve Historian List", SystemMessage = ex.Message
         };
         throw new FaultException <CustomServiceFault>(fault);
     }
 }
Esempio n. 5
0
 public string SaveCalculatedMeasurement(CalculatedMeasurement calculatedMeasurement, bool isNew)
 {
     try
     {
         return(CommonFunctions.SaveCalculatedMeasurement(null, calculatedMeasurement, isNew));
     }
     catch (Exception ex)
     {
         CommonFunctions.LogException(null, "Service.SaveCalculatedMeasurement", ex);
         CustomServiceFault fault = new CustomServiceFault()
         {
             UserMessage = "Failed to Save Calculated Measurement Information", SystemMessage = ex.Message
         };
         throw new FaultException <CustomServiceFault>(fault);
     }
 }
Esempio n. 6
0
 public List <OutputStream> GetOutputStreamList(bool enabledOnly, string nodeID)
 {
     try
     {
         return(CommonFunctions.GetOutputStreamList(null, enabledOnly, nodeID));
     }
     catch (Exception ex)
     {
         CommonFunctions.LogException(null, "Service.GetOutputStreamList", ex);
         CustomServiceFault fault = new CustomServiceFault()
         {
             UserMessage = "Failed to Retrieve Output Stream List", SystemMessage = ex.Message
         };
         throw new FaultException <CustomServiceFault>(fault);
     }
 }
Esempio n. 7
0
 public string SaveIniFile(Stream input)
 {
     try
     {
         return(CommonFunctions.SaveIniFile(input));
     }
     catch (Exception ex)
     {
         CommonFunctions.LogException(null, "Service.SaveIniFile", ex);
         CustomServiceFault fault = new CustomServiceFault()
         {
             UserMessage = "Failed to Upload INI File", SystemMessage = ex.Message
         };
         throw new FaultException <CustomServiceFault>(fault);
     }
 }
Esempio n. 8
0
 public List <OtherDevice> GetOtherDeviceList()
 {
     try
     {
         return(CommonFunctions.GetOtherDeviceList(null));
     }
     catch (Exception ex)
     {
         CommonFunctions.LogException(null, "Service.GetOtherDeviceList", ex);
         CustomServiceFault fault = new CustomServiceFault()
         {
             UserMessage = "Failed to Retrieve Other Device List", SystemMessage = ex.Message
         };
         throw new FaultException <CustomServiceFault>(fault);
     }
 }
Esempio n. 9
0
 public string SaveWizardConfigurationInfo(string nodeID, List <WizardDeviceInfo> wizardDeviceInfoList, string connectionString, int?protocolID, int?companyID, int?historianID, int?interconnectionID, int?parentID, bool skipDisableRealTimeData)
 {
     try
     {
         return(CommonFunctions.SaveWizardConfigurationInfo(null, nodeID, wizardDeviceInfoList, connectionString, protocolID, companyID, historianID, interconnectionID, parentID, skipDisableRealTimeData));
     }
     catch (Exception ex)
     {
         CommonFunctions.LogException(null, "Service.SaveWizardConfigurationInfo", ex);
         CustomServiceFault fault = new CustomServiceFault()
         {
             UserMessage = "Failed to Save Configuration Information", SystemMessage = ex.Message
         };
         throw new FaultException <CustomServiceFault>(fault);
     }
 }
Esempio n. 10
0
 public string GetExecutingAssemblyPath()
 {
     try
     {
         return(CommonFunctions.GetExecutingAssemblyPath());
     }
     catch (Exception ex)
     {
         CommonFunctions.LogException(null, "Service.GetExecutingAssemblyPath", ex);
         CustomServiceFault fault = new CustomServiceFault()
         {
             UserMessage = "Failed to Retrieve Current Execution Path", SystemMessage = ex.Message
         };
         throw new FaultException <CustomServiceFault>(fault);
     }
 }
Esempio n. 11
0
 public List <WizardDeviceInfo> RetrieveConfigurationFrame(string nodeConnectionString, string deviceConnectionString, int protocolID)
 {
     try
     {
         return(CommonFunctions.RetrieveConfigurationFrame(nodeConnectionString, deviceConnectionString, protocolID));
     }
     catch (Exception ex)
     {
         CommonFunctions.LogException(null, "Service.RetrieveConfigurationFrame", ex);
         CustomServiceFault fault = new CustomServiceFault()
         {
             UserMessage = "Failed to Retrieve Configuration", SystemMessage = ex.Message + " Error details: " + Environment.NewLine + CommonFunctions.s_responseMessage
         };
         throw new FaultException <CustomServiceFault>(fault);
     }
 }
Esempio n. 12
0
 public List <WizardDeviceInfo> GetWizardConfigurationInfo(Stream inputStream)
 {
     try
     {
         return(CommonFunctions.GetWizardConfigurationInfo(inputStream));
     }
     catch (Exception ex)
     {
         CommonFunctions.LogException(null, "Service.GetWizardConfigurationInfo", ex);
         CustomServiceFault fault = new CustomServiceFault()
         {
             UserMessage = "Failed to Parse Configuration File", SystemMessage = ex.Message
         };
         throw new FaultException <CustomServiceFault>(fault);
     }
 }
Esempio n. 13
0
 public ConnectionSettings GetConnectionSettings(Stream inputStream)
 {
     try
     {
         return(CommonFunctions.GetConnectionSettings(inputStream));
     }
     catch (Exception ex)
     {
         CommonFunctions.LogException(null, "Service.GetConnectionSettings", ex);
         CustomServiceFault fault = new CustomServiceFault()
         {
             UserMessage = "Failed to Parse Connection File", SystemMessage = ex.Message
         };
         throw new FaultException <CustomServiceFault>(fault);
     }
 }
Esempio n. 14
0
 public List <Measurement> GetMeasurementsByDevice(int deviceID)
 {
     try
     {
         return(CommonFunctions.GetMeasurementsByDevice(null, deviceID));
     }
     catch (Exception ex)
     {
         CommonFunctions.LogException(null, "Service.GetMeasurementsByDevice", ex);
         CustomServiceFault fault = new CustomServiceFault()
         {
             UserMessage = "Failed to Retrieve Measurements By Device", SystemMessage = ex.Message
         };
         throw new FaultException <CustomServiceFault>(fault);
     }
 }
Esempio n. 15
0
 public ObservableCollection <StatisticMeasurementData> GetStatisticMeasurementData(string nodeID)
 {
     try
     {
         return(CommonFunctions.GetStatisticMeasurementData(null, nodeID));
     }
     catch (Exception ex)
     {
         CommonFunctions.LogException(null, "Service.GetStatisticMeasurementData", ex);
         CustomServiceFault fault = new CustomServiceFault()
         {
             UserMessage = "Failed to Retrieve Statistic Measurements Data", SystemMessage = ex.Message
         };
         throw new FaultException <CustomServiceFault>(fault);
     }
 }
Esempio n. 16
0
 public List <Measurement> GetMeasurementsForOutputStream(string nodeID, int outputStreamID)
 {
     try
     {
         return(CommonFunctions.GetMeasurementsForOutputStream(null, nodeID, outputStreamID));
     }
     catch (Exception ex)
     {
         CommonFunctions.LogException(null, "Service.GetMeasurementsForOutputStream", ex);
         CustomServiceFault fault = new CustomServiceFault()
         {
             UserMessage = "Failed to Retrieve Measurements For Output Stream", SystemMessage = ex.Message
         };
         throw new FaultException <CustomServiceFault>(fault);
     }
 }
Esempio n. 17
0
 public Dictionary <int, string> GetHistorians(bool enabledOnly, bool isOptional, bool includeSTAT)
 {
     try
     {
         return(CommonFunctions.GetHistorians(null, enabledOnly, isOptional, includeSTAT));
     }
     catch (Exception ex)
     {
         CommonFunctions.LogException(null, "Service.GetHistorians", ex);
         CustomServiceFault fault = new CustomServiceFault()
         {
             UserMessage = "Failed to Retrieve Historians", SystemMessage = ex.Message
         };
         throw new FaultException <CustomServiceFault>(fault);
     }
 }
Esempio n. 18
0
 public Dictionary <int, string> GetSignalTypes(bool isOptional)
 {
     try
     {
         return(CommonFunctions.GetSignalTypes(null, isOptional));
     }
     catch (Exception ex)
     {
         CommonFunctions.LogException(null, "Service.GetSignalTypes", ex);
         CustomServiceFault fault = new CustomServiceFault()
         {
             UserMessage = "Failed to Retrieve Signal Types", SystemMessage = ex.Message
         };
         throw new FaultException <CustomServiceFault>(fault);
     }
 }
Esempio n. 19
0
 public string SaveVendorDevice(VendorDevice vendorDevice, bool isNew)
 {
     try
     {
         return(CommonFunctions.SaveVendorDevice(null, vendorDevice, isNew));
     }
     catch (Exception ex)
     {
         CommonFunctions.LogException(null, "Service.SaveVendorDevice", ex);
         CustomServiceFault fault = new CustomServiceFault()
         {
             UserMessage = "Failed to Save Vendor Device Information", SystemMessage = ex.Message
         };
         throw new FaultException <CustomServiceFault>(fault);
     }
 }
Esempio n. 20
0
 public string SaveAdapter(Adapter adapter, bool isNew)
 {
     try
     {
         return(CommonFunctions.SaveAdapter(null, adapter, isNew));
     }
     catch (Exception ex)
     {
         CommonFunctions.LogException(null, "Service.SaveAdapter", ex);
         CustomServiceFault fault = new CustomServiceFault()
         {
             UserMessage = "Failed to Save Adapter Information", SystemMessage = ex.Message
         };
         throw new FaultException <CustomServiceFault>(fault);
     }
 }
Esempio n. 21
0
 public List <Node> GetNodeList(bool enabledOnly)
 {
     try
     {
         return(CommonFunctions.GetNodeList(null, enabledOnly));
     }
     catch (Exception ex)
     {
         CommonFunctions.LogException(null, "Service.GetNodeList", ex);
         CustomServiceFault fault = new CustomServiceFault()
         {
             UserMessage = "Failed to Retrieve Node List", SystemMessage = ex.Message
         };
         throw new FaultException <CustomServiceFault>(fault);
     }
 }
Esempio n. 22
0
 public string SaveOutputStreamDevice(OutputStreamDevice outputStreamDevice, bool isNew, string originalAcronym)
 {
     try
     {
         return(CommonFunctions.SaveOutputStreamDevice(null, outputStreamDevice, isNew, originalAcronym));
     }
     catch (Exception ex)
     {
         CommonFunctions.LogException(null, "Service.SaveOutputStreamDevice", ex);
         CustomServiceFault fault = new CustomServiceFault()
         {
             UserMessage = "Failed to Save Output Stream Device Information", SystemMessage = ex.Message
         };
         throw new FaultException <CustomServiceFault>(fault);
     }
 }
Esempio n. 23
0
 public string SaveDevice(Device device, bool isNew, int digitalCount, int analogCount)
 {
     try
     {
         return(CommonFunctions.SaveDevice(null, device, isNew, digitalCount, analogCount));
     }
     catch (Exception ex)
     {
         CommonFunctions.LogException(null, "Service.SaveDevice", ex);
         CustomServiceFault fault = new CustomServiceFault()
         {
             UserMessage = "Failed to Save Device Information", SystemMessage = ex.Message
         };
         throw new FaultException <CustomServiceFault>(fault);
     }
 }
Esempio n. 24
0
 public string AddDevices(int outputStreamID, Dictionary <int, string> devicesToBeAdded, bool addDigitals, bool addAnalogs)
 {
     try
     {
         return(CommonFunctions.AddDevices(null, outputStreamID, devicesToBeAdded, addDigitals, addAnalogs));
     }
     catch (Exception ex)
     {
         CommonFunctions.LogException(null, "Service.AddDevices", ex);
         CustomServiceFault fault = new CustomServiceFault()
         {
             UserMessage = "Failed to Save Output Stream Device(s)", SystemMessage = ex.Message
         };
         throw new FaultException <CustomServiceFault>(fault);
     }
 }
Esempio n. 25
0
 public Dictionary <int, string> GetDevicesForOutputStream(int outputStreamID, string nodeID)
 {
     try
     {
         return(CommonFunctions.GetDevicesForOutputStream(null, outputStreamID, nodeID));
     }
     catch (Exception ex)
     {
         CommonFunctions.LogException(null, "Service.GetDevicesForOutputStream", ex);
         CustomServiceFault fault = new CustomServiceFault()
         {
             UserMessage = "Failed to Retrieve Devices For Output Stream", SystemMessage = ex.Message
         };
         throw new FaultException <CustomServiceFault>(fault);
     }
 }
Esempio n. 26
0
 public string DeleteOutputStreamMeasurement(int outputStreamMeasurementID)
 {
     try
     {
         return(CommonFunctions.DeleteOutputStreamMeasurement(null, outputStreamMeasurementID));
     }
     catch (Exception ex)
     {
         CommonFunctions.LogException(null, "Service.DeleteOutputStreamMeasurement", ex);
         CustomServiceFault fault = new CustomServiceFault()
         {
             UserMessage = "Failed to Delete Output Stream Measurement", SystemMessage = ex.Message
         };
         throw new FaultException <CustomServiceFault>(fault);
     }
 }
Esempio n. 27
0
 public string DeleteDevice(int deviceID)
 {
     try
     {
         return(CommonFunctions.DeleteDevice(null, deviceID));
     }
     catch (Exception ex)
     {
         CommonFunctions.LogException(null, "Service.DeleteDevice", ex);
         CustomServiceFault fault = new CustomServiceFault()
         {
             UserMessage = "Failed to Delete Device", SystemMessage = ex.Message
         };
         throw new FaultException <CustomServiceFault>(fault);
     }
 }
Esempio n. 28
0
 public List <OutputStreamDeviceAnalog> GetOutputStreamDeviceAnalogList(int outputStreamDeviceID)
 {
     try
     {
         return(CommonFunctions.GetOutputStreamDeviceAnalogList(null, outputStreamDeviceID));
     }
     catch (Exception ex)
     {
         CommonFunctions.LogException(null, "Service.GetOutputStreamDeviceAnalogList", ex);
         CustomServiceFault fault = new CustomServiceFault()
         {
             UserMessage = "Failed to Retrieve Output Stream Device Analog List", SystemMessage = ex.Message
         };
         throw new FaultException <CustomServiceFault>(fault);
     }
 }
Esempio n. 29
0
 public Dictionary <string, string> GetTimeZones(bool isOptional)
 {
     try
     {
         return(CommonFunctions.GetTimeZones(isOptional));
     }
     catch (Exception ex)
     {
         CommonFunctions.LogException(null, "Service.GetTimeZones", ex);
         CustomServiceFault fault = new CustomServiceFault()
         {
             UserMessage = "Failed to Get Timezones List", SystemMessage = ex.Message
         };
         throw new FaultException <CustomServiceFault>(fault);
     }
 }