예제 #1
0
        /// <summary>
        /// 设置当天是否已发送
        /// </summary>
        /// <param name="companyId">公司编号</param>
        /// <param name="type">配置类型</param>
        /// <param name="isSend">当天是否已发送</param>
        /// <returns></returns>
        public int SetIsSend(string companyId, Model.EnumType.SmsStructure.SettingType type, bool isSend)
        {
            if (string.IsNullOrEmpty(companyId))
            {
                return(0);
            }

            return(_dal.SetIsEnabled(companyId, type, isSend));
        }
예제 #2
0
        /// <summary>
        /// 获取公司短信配置
        /// </summary>
        /// <param name="companyId">公司编号</param>
        /// <param name="type">配置类型</param>
        /// <returns></returns>
        public Model.SmsStructure.MSmsSetting GetSmsSetting(string companyId, Model.EnumType.SmsStructure.SettingType type)
        {
            if (string.IsNullOrEmpty(companyId))
            {
                return(null);
            }

            IList <Model.SmsStructure.MSmsSetting> list = _dal.GetSmsSetting(companyId, type);

            if (list == null || list.Count < 1)
            {
                return(null);
            }

            return(list[0]);
        }