demo20230512/WCFService/ProductLCA/IWCFMonthlyDataServce.cs
2023-05-12 10:20:28 +08:00

60 lines
2.3 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using Weee.Models;
namespace Weee.WCFService.ProductLCA
{
// NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IWCFMonthlyDataServce" in both code and config file together.
[ServiceContract]
public interface IWCFMonthlyDataServce
{
#region PowerUsage
[OperationContract]
IEnumerable<PowerUsage> SavePowerUsageSheet(IEnumerable<PowerUsage> toBeSave, string authId);
[OperationContract]
PowerUsage SavePowerUsageSheetItem(PowerUsage toBeSave, string authId);
[OperationContract]
void DeletePowerUsageSheet(int lcaId, string authId);
[OperationContract]
IEnumerable<PowerUsage> GetPowerUsageSheet(int lcaId, string authId);
#endregion
#region SteamUsage
[OperationContract]
IEnumerable<SteamUsage> SaveSteamUsageSheet(IEnumerable<SteamUsage> toBeSave, string authId);
[OperationContract]
SteamUsage SaveSteamUsageSheetItem(SteamUsage toBeSave, string authId);
[OperationContract]
void DeleteSteamUsageSheet(int lcaId, string authId);
[OperationContract]
IEnumerable<SteamUsage> GetSteamUsageSheet(int lcaId, string authId);
#endregion
#region WaterUsage
[OperationContract]
IEnumerable<WaterUsage> SaveWaterUsageSheet(IEnumerable<WaterUsage> toBeSave, string authId);
[OperationContract]
WaterUsage SaveWaterUsageSheetItem(WaterUsage toBeSave, string authId);
[OperationContract]
void DeleteWaterUsageSheet(int lcaId, string authId);
[OperationContract]
IEnumerable<WaterUsage> GetWaterUsageSheet(int lcaId, string authId);
#endregion
#region WorkHour
[OperationContract]
IEnumerable<WorkHour> SaveWorkHourSheet(IEnumerable<WorkHour> toBeSave, string authId);
[OperationContract]
WorkHour SaveWorkHourSheetItem(WorkHour toBeSave, string authId);
[OperationContract]
void DeleteWorkHourSheet(int lcaId, string authId);
[OperationContract]
IEnumerable<WorkHour> GetWorkHourSheet(int lcaId, string authId);
#endregion
}
}