Beispiel #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="type"></param>
        /// <returns></returns>
        public static string ClassficationToString(ItemClassficationEmnu type)
        {
            switch (type)
            {
            case ItemClassficationEmnu.Ability:
                return("能力");

            case ItemClassficationEmnu.Acqierement:
                return("学识");

            case ItemClassficationEmnu.All:
                return("");

            case ItemClassficationEmnu.MoralCharacter:
                return("品德");

            case ItemClassficationEmnu.Performance:
                return("绩效");

            case ItemClassficationEmnu.Attitude:
                return("态度");

            case ItemClassficationEmnu.Other:
                return("其它");

            case ItemClassficationEmnu._360:
                return("360度");

            default:
                return("");
            }
        }
        ///<summary>
        ///</summary>
        ///<param name="itemClassficationEmnu"></param>
        ///<returns></returns>
        public static string GetItemClassficationNameByItemClassfication(ItemClassficationEmnu itemClassficationEmnu)
        {
            switch (itemClassficationEmnu)
            {
            case ItemClassficationEmnu.Ability:
                return("能力");

            case ItemClassficationEmnu.Performance:
                return("绩效");

            case ItemClassficationEmnu.MoralCharacter:
                return("品德");

            case ItemClassficationEmnu.Acqierement:
                return("学识");

            case ItemClassficationEmnu.Attitude:
                return("态度");

            case ItemClassficationEmnu._360:
                return("360度");

            default:
                return("其它");
            }
        }
        public List <AssessTemplateItem> GetTemplateItemsByConditon(string question, OperateType type,
                                                                    ItemClassficationEmnu classfication,
                                                                    AssessTemplateItemType itemtype)
        {
            GetAssessManagement getAssessManagement = new GetAssessManagement();

            return(getAssessManagement.GetTemplateItemsByConditon(question, type, classfication, itemtype));
        }
        /// <summary>
        /// 考评流程中项的业务模型
        /// </summary>
        /// <param name="question"></param>
        /// <param name="option"></param>
        /// <param name="classfication"></param>
        /// <param name="description"></param>
        public AssessActivityItem(string question, string option, ItemClassficationEmnu classfication, string description)
        {
            _Question      = question;
            _Option        = option;
            _Classfication = classfication;
            _Description   = description;

            SetDefaultValue();
        }
Beispiel #5
0
 public void ExecuteEvent(object sender, EventArgs e)
 {
     try
     {
         ItemClassficationEmnu itemClassfication = AssessUtility.GetChoosedItemClassfication(_View.ItemClassfication);
         _View.TemplateItems = _IAssessManagementFacade.GetTemplateItemsByConditon(_View.Question, _View.OperateType, itemClassfication, _View.SelectedAssessTemplateItemType);
         _View.Message       =
             "<span class='font14b'>共查到 </span>"
             + "<span class='fontred'>" + _View.TemplateItems.Count + "</span>"
             + "<span class='font14b'> 个绩效考核项</span>";
     }
     catch (Exception ex)
     {
         _View.Message = "<span class='fontred'>" + ex.Message + "</span>";
     }
 }
Beispiel #6
0
        public List <AssessTemplateItem> GetTemplateItemsByConditon(string question, OperateType type, ItemClassficationEmnu classfication, AssessTemplateItemType itemtype)
        {
            List <AssessTemplateItem> assesstemplateItems = new List <AssessTemplateItem>();
            SqlCommand cmd = new SqlCommand();

            cmd.Parameters.Add(_ParmQuestion, SqlDbType.NVarChar, 100).Value     = question;
            cmd.Parameters.Add(_ParmItsOperateType, SqlDbType.Int, 4).Value      = (int)type;
            cmd.Parameters.Add(_ParmItemClassfication, SqlDbType.Int, 4).Value   = classfication;
            cmd.Parameters.Add(_ParmAssessTemplateItemType, SqlDbType.Int).Value = itemtype;
            using (SqlDataReader sdr = SqlHelper.ExecuteReader("GetTemplateItemsByConditon", cmd))
            {
                while (sdr.Read())
                {
                    AssessTemplateItem assesstemplateItem =
                        new AssessTemplateItem(Convert.ToInt32(sdr[_DbPKID]), sdr[_DbQuestion].ToString(),
                                               (OperateType)sdr[_DbOperateType]);
                    assesstemplateItem.AssessTemplateItemType = (AssessTemplateItemType)sdr[_DbAssessTemplateItemType];
                    assesstemplateItem.Classfication          = (ItemClassficationEmnu)sdr[_DbItemClassfication];
                    assesstemplateItem.Option      = sdr[_DbItemOption].ToString();
                    assesstemplateItem.Description = sdr[_DbItemDescription].ToString();
                    assesstemplateItems.Add(assesstemplateItem);
                }
                return(assesstemplateItems);
            }
        }
 public List <AssessTemplateItem> GetTemplateItemsByConditon(string question, OperateType type, ItemClassficationEmnu classfication, AssessTemplateItemType itemtype)
 {
     return(_IAssessTemplateItem.GetTemplateItemsByConditon(question, type, classfication, itemtype));
 }
Beispiel #8
0
 /// <summary>
 /// 员工填写项
 /// </summary>
 /// <param name="question"></param>
 /// <param name="option"></param>
 /// <param name="classfication"></param>
 /// <param name="description"></param>
 public PersonalItem(string question, string option, ItemClassficationEmnu classfication, string description)
     : base(question, option, classfication, description)
 {
 }
Beispiel #9
0
 /// <summary>
 /// 主管填写项
 /// </summary>
 /// <param name="question"></param>
 /// <param name="option"></param>
 /// <param name="classfication"></param>
 /// <param name="description"></param>
 public ManagerItem(string question, string option, ItemClassficationEmnu classfication, string description)
     : base(question, option, classfication, description)
 {
 }