public static string GetAnnotation(this ProfileTaskStateEnum type)
        {
            string result = string.Empty;

            switch (type)
            {
            case ProfileTaskStateEnum.NotToSend:
                result = "未派遣";
                break;

            case ProfileTaskStateEnum.ToAudit:
                result = "待审核";
                break;

            case ProfileTaskStateEnum.HavePutAnEndTo:
                result = "已终结";
                break;

            case ProfileTaskStateEnum.TheCancellation:
                result = "已作废";
                break;

            default:
                break;
            }

            return(result);
        }
 public static int GetIntValue(this ProfileTaskStateEnum type)
 {
     return((int)type);
 }