123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117 |
- using Bowin.Common.Exceptions;
- using EMIS.Entities;
- using EMIS.ViewModel.CacheManage;
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.ComponentModel.DataAnnotations;
- using System.Linq;
- using System.Text;
- namespace EMIS.ViewModel.EvaluationManage
- {
- public class EvaluationIntTypeView
- {
- /// <summary>
- /// 评价类型
- /// </summary>
- [DisplayName("评价类型ID")]
- public Guid? EvaluationIntTypeID { get; set; }
- /// <summary>
- /// 编号
- /// </summary>
- [Required]
- [DisplayName("编号")]
- public string Code { get; set; }
- /// <summary>
- /// 名称
- /// </summary>
- [DisplayName("名称")]
- [Required]
- public string Name { get; set; }
-
- /// <summary>
- /// 授课方式ID
- /// </summary>
- [DisplayName("授课方式")]
- public List<int> TeachingModeTypeID { get; set; }
- /// <summary>
- /// 备注
- /// </summary>
- [DisplayName("备注")]
- public string Remark { get; set; }
- [DisplayName("授课方式集合")]
- public IEnumerable<TeachingModeTypeView> TeachingModeTypeViewList { get; set; }
- [DisplayName("授课方式集合名称")]
- public string TeachingModeTypeName
- {
- get
- {
- string name = string.Empty;
- if (TeachingModeTypeViewList != null && TeachingModeTypeViewList.Count() > 0)
- {
- name = string.Join(",", TeachingModeTypeViewList.Select(x =>
- x.TeachingModeTypeName));
- }
- if (string.IsNullOrEmpty(name))
- {
- return "";
- }
- else
- {
- return name;
- }
- }
- }
- //[DisplayName("授课方式集合名称")]
- //public string TeachingModeTypeName
- //{
- // get
- // {
- // string name = string.Empty;
- // if (TeachingModeTypeViewList != null && TeachingModeTypeViewList.Count() > 0)
- // {
- // name = string.Join(",", TeachingModeTypeViewList.Select(x =>
- // IdNameExt.GetDictionaryItem(DictionaryItem.CF_TeachingMode.ToString())
- // .Where(w => w.Value == x.TeachingModeType)
- // .Select(w => w.Name).FirstOrDefault()
- // ));
- // }
- // if (string.IsNullOrEmpty(name))
- // {
- // return "";
- // }
- // else
- // {
- // return name;
- // }
- // }
- //}
- }
- public class TeachingModeTypeView
- {
- /// <summary>
- /// 评价类型
- /// </summary>
- [DisplayName("评价类型ID")]
- public Guid? EvaluationIntTypeID { get; set; }
- [DisplayName("授课方式")]
- public int? TeachingModeType { get; set; }
- [DisplayName("授课方式")]
- public string TeachingModeTypeName { get; set; }
- }
- }
|