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

146 lines
6.1 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 "IWCFSheetDataService" in both code and config file together.
[ServiceContract]
public interface IWCFSheetDataService
{
#region Material
[OperationContract]
IEnumerable<Material> SaveMaterialSheet(IEnumerable<Material> toBeSave, string authId);
[OperationContract]
Material SaveMaterialSheetItem(Material toBeSave, string authId);
[OperationContract]
void DeleteMaterialSheet(int lcaId, string authId, MaterialType materialType);
[OperationContract]
void DeleteMaterialSheetItem(int id, string authId);
[OperationContract]
IEnumerable<Material> GetMaterialSheet(int lcaId, string authId);
#endregion
#region Vehicle
[OperationContract]
IEnumerable<Vehicle> SaveVehicleSheet(IEnumerable<Vehicle> toBeSave, string authId);
[OperationContract]
Vehicle SaveVehicleSheetItem(Vehicle toBeSave, string authId);
[OperationContract]
void DeleteVehicleSheet(int lcaId, string authId);
[OperationContract]
void DeleteVehicleSheetItem(int id, string authId);
[OperationContract]
IEnumerable<Vehicle> GetVehicleSheet(int lcaId, string authId);
#endregion
#region Refrigerant
[OperationContract]
IEnumerable<Refrigerant> SaveRefrigerantSheet(IEnumerable<Refrigerant> toBeSave, string authId);
[OperationContract]
Refrigerant SaveRefrigerantSheetItem(Refrigerant toBeSave, string authId);
[OperationContract]
void DeleteRefrigerantSheet(int lcaId, string authId);
[OperationContract]
void DeleteRefrigerantSheetItem(int id, string authId);
[OperationContract]
IEnumerable<Refrigerant> GetRefrigerantSheet(int lcaId, string authId);
#endregion
#region Transport
[OperationContract]
IEnumerable<Transport> SaveTransportSheet(IEnumerable<Transport> toBeSave, string authId);
[OperationContract]
Transport SaveTransportSheetItem(Transport toBeSave, string authId);
[OperationContract]
void DeleteTransportSheet(int lcaId, string authId);
[OperationContract]
void DeleteTransportSheetItem(int id, string authId);
[OperationContract]
IEnumerable<Transport> GetTransportSheet(int lcaId, string authId);
#endregion
#region Waste
[OperationContract]
IEnumerable<Waste> SaveWasteSheet(IEnumerable<Waste> toBeSave, string authId);
[OperationContract]
Waste SaveWasteSheetItem(Waste toBeSave, string authId);
[OperationContract]
void DeleteWasteSheet(int lcaId, string authId);
[OperationContract]
void DeleteWasteSheetItem(int id, string authId);
[OperationContract]
IEnumerable<Waste> GetWasteSheet(int lcaId, string authId);
#endregion
#region WasteTransport
[OperationContract]
IEnumerable<WasteTransport> SaveWasteTransportSheet(IEnumerable<WasteTransport> toBeSave, string authId);
[OperationContract]
WasteTransport SaveWasteTransportSheetItem(WasteTransport toBeSave, string authId);
[OperationContract]
void DeleteWasteTransportSheet(int lcaId, string authId);
[OperationContract]
void DeleteWasteTransportSheetItem(int id, string authId);
[OperationContract]
IEnumerable<WasteTransport> GetWasteTransportSheet(int lcaId, string authId);
#endregion
#region GasolineEquipment
[OperationContract]
IEnumerable<GasolineEquipment> SaveGasolineEquipmentSheet(IEnumerable<GasolineEquipment> toBeSave, string authId);
[OperationContract]
GasolineEquipment SaveGasolineEquipmentSheetItem(GasolineEquipment toBeSave, string authId);
[OperationContract]
void DeleteGasolineEquipmentSheet(int lcaId, string authId);
[OperationContract]
void DeleteGasolineEquipmentSheetItem(int id, string authId);
[OperationContract]
IEnumerable<GasolineEquipment> GetGasolineEquipmentSheet(int lcaId, string authId);
#endregion
#region Kitchen
[OperationContract]
IEnumerable<Kitchen> SaveKitchenSheet(IEnumerable<Kitchen> toBeSave, string authId);
[OperationContract]
Kitchen SaveKitchenSheetItem(Kitchen toBeSave, string authId);
[OperationContract]
void DeleteKitchenSheet(int lcaId, string authId);
[OperationContract]
void DeleteKitchenSheetItem(int id, string authId);
[OperationContract]
IEnumerable<Kitchen> GetKitchenSheet(int lcaId, string authId);
#endregion
#region FireEquipment
[OperationContract]
IEnumerable<FireEquipment> SaveFireEquipmentSheet(IEnumerable<FireEquipment> toBeSave, string authId);
[OperationContract]
FireEquipment SaveFireEquipmentSheetItem(FireEquipment toBeSave, string authId);
[OperationContract]
void DeleteFireEquipmentSheet(int lcaId, string authId);
[OperationContract]
void DeleteFireEquipmentSheetItem(int id, string authId);
[OperationContract]
IEnumerable<FireEquipment> GetFireEquipmentSheet(int lcaId, string authId);
#endregion
#region OtherCompound
[OperationContract]
IEnumerable<OtherCompound> SaveOtherCompoundSheet(IEnumerable<OtherCompound> toBeSave, string authId);
[OperationContract]
OtherCompound SaveOtherCompoundSheetItem(OtherCompound toBeSave, string authId);
[OperationContract]
void DeleteOtherCompoundSheet(int lcaId, string authId);
[OperationContract]
void DeleteOtherCompoundSheetItem(int id, string authId);
[OperationContract]
IEnumerable<OtherCompound> GetOtherCompoundSheet(int lcaId, string authId);
#endregion
}
}