예제 #1
0
 public CompleteFristTask()
 {
     using (var client = new Framework.WCF.ServiceClient <MIS.Service.Contract.IService>("Group.MIS"))
     {
         _filialeList = client.Instance.GetAllFiliale();
     }
 }
예제 #2
0
 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);
     }
 }
예제 #3
0
        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();
        }