Esempio n. 1
0
        public ModuleEndPointInfor GetServiceEndPoint()
        {
            ModuleEndPointInfor mInfor = new ModuleEndPointInfor();

            mInfor.Name      = "Erp.GpPlatform";
            mInfor.EndPoint  = ServerInfo.ServiceEndPoint;
            mInfor.LoginName = ServerInfo.ServiceLoginName;
            mInfor.Psw       = ServerInfo.ServicePsw;
            return(mInfor);
        }
Esempio n. 2
0
 private static void InitEndPoint()
 {
     if (String.IsNullOrEmpty(sEndPoint))
     {
         if (String.IsNullOrEmpty(ServerInfo.ServiceEndPoint))
         {
             ServerInfo.ServiceEndPoint  = System.Configuration.ConfigurationManager.AppSettings["DbServiceEndPoint"].ToString();
             ServerInfo.ServiceLoginName = Encrypt.DecryptDES(System.Configuration.ConfigurationManager.AppSettings["ServiceLoginName"], "shj20140");
             ServerInfo.ServicePsw       = Encrypt.DecryptDES(System.Configuration.ConfigurationManager.AppSettings["ServicePsw"], "shj20140");
         }
         ModuleEndPointInfor pointInfor = GpClient.CreateInstance().GetModuleEndPoint("HD.MeteringPayment.Service");
         sEndPoint  = pointInfor.EndPoint;
         sLoginName = pointInfor.LoginName;
         sPsw       = pointInfor.Psw;
     }
 }