Exemplo n.º 1
0
 public static ERP.Model.FrameProcessCertificateInfo GetCertificateInfo(string processNo)
 {
     using (var client = new Framework.WCF.WcfClient <ERP.Service.Contract.IService>("Group.ERP"))
     {
         return(client.Call(e => e.GetFrameProcessCertificateInfo(processNo)));
     }
 }
Exemplo n.º 2
0
 public static void AddCheckGlassOperation(Guid personnelId, string realName, string identifyKey)
 {
     HRS.Model.OperationLogInfo logInfo = new HRS.Model.OperationLogInfo
     {
         Description = "配镜检查 " + realName + " " + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"),
         IdentifyKey = identifyKey,
         IsManual    = true,
         LogId       = Guid.NewGuid(),
         OperateTime = DateTime.Now,
         PersonnelId = personnelId,
         PointId     = GlassManageOperateState.CheckGlass.GetBusinessKeyCastGuid(),
         RealName    = realName,
         TypeId      = OperationLogTypeEnum.GlassManage.GetBusinessKeyCastGuid()
     };
     HRS.Model.OperationStatisticsDayInfo operationInfo = new HRS.Model.OperationStatisticsDayInfo
     {
         PersonnelId    = personnelId,
         PointId        = GlassManageOperateState.CheckGlass.GetBusinessKeyCastGuid(),
         TypeId         = OperationLogTypeEnum.GlassManage.GetBusinessKeyCastGuid(),
         Workload       = 1,
         StatisticsTime = DateTime.Today
     };
     using (var client = new Framework.WCF.WcfClient <ERP.Service.Contract.IService>("Group.ERP"))
     {
         client.Call(e => e.AddOperationLog(logInfo, operationInfo));
     }
 }
Exemplo n.º 3
0
 public static string GetRealNameByAccountNo(string accountNo, out Guid personnelId)
 {
     using (var client = new Framework.WCF.WcfClient <MIS.Service.Contract.IService>("Group.MIS"))
     {
         var accountInfo = client.Call(e => e.GetAccountInfo(accountNo));
         if (accountInfo == null)
         {
             personnelId = Guid.Empty;
             return(string.Empty);
         }
         personnelId = accountInfo.PersonnelId;
         return(accountInfo.RealName);
     }
 }