public CompleteFristTask() { using (var client = new Framework.WCF.ServiceClient <MIS.Service.Contract.IService>("Group.MIS")) { _filialeList = client.Instance.GetAllFiliale(); } }
public static string GetRealNameByAccountNo(string accountNo, out Guid personnelId) { using (var client = new Framework.WCF.ServiceClient <MIS.Service.Contract.IService>("Group.MIS")) { var accountInfo = client.Instance.GetAccountInfo(accountNo); if (accountInfo == null) { personnelId = Guid.Empty; return(string.Empty); } personnelId = accountInfo.PersonnelId; return(accountInfo.RealName); } }
static void UpdateOrderState() { var client = new Framework.WCF.ServiceClient <Keede.WcfAdmin.Contract.IKeedeAdmin>("EyeseeEndPoint"); var orderids = new[] { new Guid("A8351DCD-C100-47BC-AB50-5A8207F86CE1") }; foreach (var id in orderids) { var result = client.Instance.UpdateOrderState(Guid.NewGuid(), id, Keede.Ecsoft.Enum.OrderState.PrintCompleted); if (result.IsSuccess) { Console.WriteLine(id); } } Console.Read(); }