using System.ServiceModel; using SSWMS.Common; namespace SSWMS.Server { [ServiceBehavior(IncludeExceptionDetailInFaults = true, InstanceContextMode = InstanceContextMode.Single, ConcurrencyMode = ConcurrencyMode.Multiple, MaxItemsInObjectGraph = int.MaxValue, UseSynchronizationContext = false)] public class S_DeviceService : I_DeviceService { public string Login(string sUserCode, string sPassword) { try { SYS_USER su = S_BaseService._S_SystemService.Login(sUserCode, sPassword); if (su != null) { return su.USER_NAME; } } catch { } return string.Empty; } } }