IndustryInfoRepository.cs 385 B

12345678910111213141516171819
  1. 
  2. using System.Text;
  3. namespace YZXYH.Repository
  4. {
  5. public partial class IndustryInfoRepository
  6. {
  7. public string GetIndustrys()
  8. {
  9. StringBuilder sb = new StringBuilder();
  10. var lists = Get(c => c.IsLocked == "N");
  11. foreach (var list in lists)
  12. {
  13. sb.Append("<option value=\"" + list.Id + "\">" + list.IndustryName + "</option>");
  14. }
  15. return sb.ToString();
  16. }
  17. }
  18. }