Example #1
0
        /// <summary>
        /// 获取单个业务服务名称
        /// </summary>
        /// <param name="serviceIden"></param>
        /// <returns></returns>
        private string _GetSingleBizSvc(string serviceIden)
        {
            string serviceName = string.Empty;

            List <SSY_SERVICESITE_SERVICES> svcList   = new List <SSY_SERVICESITE_SERVICES>();
            SSY_SERVICESITE_SERVICES        modeltemp = new SSY_SERVICESITE_SERVICES();
            SSY_ResponseResult <IEnumerable <SSY_SERVICESITE_SERVICES> > resSvc = this.GetNodeServiceSiteService(modeltemp);

            svcList = resSvc.Result.ToList <SSY_SERVICESITE_SERVICES>();

            if (UtilitysForT <SSY_SERVICESITE_SERVICES> .ListHasData(svcList))
            {
                SSY_SERVICESITE_SERVICES svcTar = svcList.Find(delegate(SSY_SERVICESITE_SERVICES t) { return(t.Servicecode == serviceIden); });
                serviceName = svcTar.Service_relaUrl;
            }

            return(serviceName);
        }
Example #2
0
        /// <summary>
        /// 获取节点中心服务站点服务
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public SSY_ResponseResult <IEnumerable <SSY_SERVICESITE_SERVICES> > GetNodeServiceSiteService(SSY_SERVICESITE_SERVICES model)
        {
            string cols     = "id|sitecode|servicecode|servicename|service_relaUrl|remarks|timestampss";
            string colTypes = "String|String|String|String|String|String|String";
            string serviceSiteServicePath = APPConfig.GetAPPConfig().GetConfigValue("xmldataPath", "") + "\\SSY_SERVICESITE_SERVICES.xml";

            System.Data.DataTable dtserviceSiteService = Common.Utility.GetTableFromXml(cols, colTypes, serviceSiteServicePath);

            List <SSY_SERVICESITE_SERVICES> serviceSiteServiceList = new List <SSY_SERVICESITE_SERVICES>();

            if (Utility.DtHasData(dtserviceSiteService))
            {
                serviceSiteServiceList = UtilitysForT <SSY_SERVICESITE_SERVICES> .GetListsObj(dtserviceSiteService);
            }

            return(new SSY_ResponseResult <IEnumerable <SSY_SERVICESITE_SERVICES> >(serviceSiteServiceList));
        }