Exemplo n.º 1
0
        /// <summary>
        /// 服务不可开立判断
        /// </summary>
        /// <param name="idsrvs"></param>
        /// <returns></returns>
        public static Dictionary <string, string> OrdEnabelValivate(String[] idsrvs, String code_entp)
        {
            Dictionary <string, string> dic = new Dictionary <string, string>();

            if (idsrvs != null && idsrvs.Length > 0)
            {
                List <OrdSrvChangedInfoDTO> lstDOs = new List <OrdSrvChangedInfoDTO>();
                foreach (var idsrv in idsrvs)
                {
                    lstDOs.Add(new OrdSrvChangedInfoDTO()
                    {
                        Id_srv = idsrv
                    });
                }

                ICiOrdQryService ciOrdQryService = XapServiceMgr.find <ICiOrdQryService>();
                FMap2            map             = ciOrdQryService.JudgeOrdChangedSrv(lstDOs.ToArray(), code_entp);
                if (map != null)
                {
                    foreach (var key in map.Keys)
                    {
                        dic.Add(key, map[key].ToString());
                    }
                }
            }

            return(dic);
        }