Ejemplo n.º 1
0
        /// <summary>
        /// 添加日志
        /// </summary>
        /// <param name="modelName">模块名称</param>
        /// <param name="funName">方法名称</param>
        /// <param name="content">日志名称</param>
        /// <param name="logsType">日志类型(0错误,1正常)</param>
        /// <param name="flg">标志</param>
        /// <param name="flg2">标志2</param>
        public static void AddLog(string modelName, string funName, string content, int logsType, string flg, string flg2)
        {
            WeiXinPF.DAL.wx_logs dal = new WeiXinPF.DAL.wx_logs();

            Model.wx_logs log = new Model.wx_logs();
            log.modelName   = modelName;
            log.funName     = funName;
            log.logsContent = content;
            log.logsType    = logsType;
            log.flg         = flg;
            log.flg2        = flg2;
            log.createDate  = DateTime.Now;
            dal.Add(log);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// 是否存在标志flg
 /// </summary>
 /// <param name="flg"></param>
 /// <returns></returns>
 public static bool ExistsFlg(string flg)
 {
     WeiXinPF.DAL.wx_logs dal = new WeiXinPF.DAL.wx_logs();
     return(dal.ExistsFlg(flg));
 }