Пример #1
0
 public Employee(string firstName, string lastName, DateTime dateOfBirth, JobTitleEnum jobTitle)
 {
     SetFirstName(firstName);
     SetLastName(lastName);
     DateOfBirth = dateOfBirth;
     JobTitle    = jobTitle;
 }
Пример #2
0
        public List <UserJobTitleModel> GetPartJobTitleUsers(int partId, JobTitleEnum jobTitle)
        {
            var db = new StoreProcdureManagement();

            db.AddParameter("@JobTitleId", (int)jobTitle);
            db.AddParameter("@PartId", partId);
            return(db.RunSp <UserJobTitleModel>(ConnectionString, "sp_PartJobTitleUser"));
        }
Пример #3
0
        public static string GetJobTitleDescription(JobTitleEnum jobTitle)
        {
            switch (jobTitle)
            {
            case JobTitleEnum.Painter:
                return("Pintor");

            case JobTitleEnum.CleaningStuff:
                return("Operario de Limpieza");

            case JobTitleEnum.GenenralStaff:
                return("Operario General");

            default:
                return(string.Empty);
            }
        }
Пример #4
0
 public static string MapJobTitle(JobTitleEnum v)
 {
     switch (v)
     {
         case JobTitleEnum.DirectSales:
             return "直客销售";
         case JobTitleEnum.ChannelSales:
             return "渠道销售";
         case JobTitleEnum.TeamLeader:
             return "团队负责人";
         case JobTitleEnum.DeptManager:
             return "部门经理";
         case JobTitleEnum.CEO:
             return "CEO";
     }
     return "";
 }