84 lines
2.3 KiB
C#
84 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 System.Web.Mvc;
|
|||
|
using Weee.Models;
|
|||
|
using Weee.Service;
|
|||
|
|
|||
|
namespace Weee.WCFService
|
|||
|
{
|
|||
|
// NOTE: You can use the "Rename" command on the "Refactor" menu to change the class name "WCFLCAservice" in code, svc and config file together.
|
|||
|
// NOTE: In order to launch WCF Test Client for testing this service, please select WCFLCAservice.svc or WCFLCAservice.svc.cs at the Solution Explorer and start debugging.
|
|||
|
public class WCFLCAService : IWCFLCAService
|
|||
|
{
|
|||
|
private readonly WeeeLCADataService service;
|
|||
|
|
|||
|
public WCFLCAService()
|
|||
|
{
|
|||
|
service = DependencyResolver.Current.GetService<WeeeLCADataService>();
|
|||
|
service.DisableProxyAndLazyLoad();
|
|||
|
}
|
|||
|
|
|||
|
public IEnumerable<LCA> GetLCAs()
|
|||
|
{
|
|||
|
return service.GetLCAs();
|
|||
|
}
|
|||
|
|
|||
|
public Models.ProductLCA getProductLCA(int id)
|
|||
|
{
|
|||
|
return service.GetProductLCA(id);
|
|||
|
}
|
|||
|
|
|||
|
public IEnumerable<ProductLCAReplyRequest> GetReceivedRequests()
|
|||
|
{
|
|||
|
return service.GetReceivedRequests();
|
|||
|
}
|
|||
|
|
|||
|
public void ProductLCAConfirmedToCompleted(int lcaId, InventoryStageData inventoryStageData)
|
|||
|
{
|
|||
|
service.ProductLCAConfirmedToCompleted(lcaId, inventoryStageData);
|
|||
|
}
|
|||
|
|
|||
|
public void ProductLCANewToProcessing(int lcaId)
|
|||
|
{
|
|||
|
service.ProductLCANewToProcessing(lcaId);
|
|||
|
}
|
|||
|
|
|||
|
public void ProductLCANewToCompleted(int lcaId)
|
|||
|
{
|
|||
|
service.ProductLCANewToCompleted(lcaId);
|
|||
|
}
|
|||
|
|
|||
|
public void ProductLCAProcessingToWait(int lcaId)
|
|||
|
{
|
|||
|
service.ProductLCAProcessingToWait(lcaId);
|
|||
|
}
|
|||
|
|
|||
|
public void ProductLCARejectedToProcessing(int lcaId)
|
|||
|
{
|
|||
|
service.ProductLCARejectedToProcessing(lcaId);
|
|||
|
}
|
|||
|
|
|||
|
public void ProductLCAWaitToConfirmed(int lcaId)
|
|||
|
{
|
|||
|
service.ProductLCAWaitToConfirmed(lcaId);
|
|||
|
}
|
|||
|
|
|||
|
public void ProductLCAWaitToRejected(int lcaId)
|
|||
|
{
|
|||
|
service.ProductLCAWaitToRejected(lcaId);
|
|||
|
}
|
|||
|
|
|||
|
public Models.ProductLCA SaveProductLCA(Models.ProductLCA toBeSave)
|
|||
|
{
|
|||
|
return service.SaveProductLCA(toBeSave);
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
|
|||
|
|
|||
|
}
|