public partial class CheckScanService : WCFServiceBase<JL_MFGEntities>, ICheckScanService { private I_Craft_CardService CarSrv = null; public CheckScanService() { CarSrv = new I_Craft_CardService(); CarSrv.SetCtx(this.Ctx); } protected override JL_MFGEntities GetCtx() { return com.geelyhd.MFG.EFModel.DBCtx.GetCtx(); } public com.geelyhd.MFG.EFModel.TerDishInfo GetTerDishInfo(string lblNo) { var sapSvr = new SAPDataService(); var response= sapSvr.GetTerDishInfo(lblNo); if (response.Code != 0) throw new Exception(response.Msg); var ent=new com.geelyhd.MFG.EFModel.TerDishInfo(); Map<com.geelyhd.MFG.Service.SAPServer.TerDishInfo, com.geelyhd.MFG.EFModel.TerDishInfo>(response.Model, ent); return ent; } }