Exemple #1
0
        /// <summary>
        /// init juese
        /// </summary>
        void InitJueSe()
        {
            if (T != YongHuLeiXing.平台 && string.IsNullOrEmpty(GongSiId))
            {
                return;
            }

            if (T == YongHuLeiXing.平台)
            {
                GongSiId = YongHuInfo.GongSiId;
            }

            var chaXun = new EyouSoft.Model.MYongHuJueSeChaXunInfo();

            chaXun.GongSiId = GongSiId;

            if (T == YongHuLeiXing.平台)
            {
                chaXun.GongSiId = YongHuInfo.GongSiId;
            }

            StringBuilder s     = new StringBuilder();
            var           items = new EyouSoft.BLL.BYongHuJueSe().GetJueSes(chaXun);

            if (items != null && items.Count > 0)
            {
                foreach (var item in items)
                {
                    s.AppendFormat("<option value=\"{0}\">{1}</option>", item.JueSeId, item.Name);
                }
            }

            ltrJueSe.Text = s.ToString();
        }
Exemple #2
0
        /// <summary>
        /// init juese
        /// </summary>
        void InitJueSe()
        {
            var chaXun = new EyouSoft.Model.MYongHuJueSeChaXunInfo();

            chaXun.GongSiId = YongHuInfo.GongSiId;

            StringBuilder s     = new StringBuilder();
            var           items = new EyouSoft.BLL.BYongHuJueSe().GetJueSes(chaXun);

            if (items != null && items.Count > 0)
            {
                foreach (var item in items)
                {
                    s.AppendFormat("<option value=\"{0}\">{1}</option>", item.JueSeId, item.Name);
                }
            }

            ltrJueSe.Text = s.ToString();
        }