Exemplo n.º 1
0
 public static CBB.ExceptionHelper.OperationResult AddCheckPhoto(PhotoCheckModel pcm)
 {
     try
     {
         new PhotoCheckOperation().AddCheckPhoto(pcm);
         return new CBB.ExceptionHelper.OperationResult(true);
     }
     catch (Exception ex)
     {
         throw new CBB.ExceptionHelper.OperationException(
            CBB.ExceptionHelper.ErrType.SystemErr,
            CBB.ExceptionHelper.ErrNo.DBOperationError,
            ex);
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// 添加待审照片
 /// </summary>
 /// <param name="pcm">待审照片模型</param>
 public void AddCheckPhoto(PhotoCheckModel pcm)
 {
     try
     {
         MongoDatabase md = MongoDBHelper.MongoDB;
         MongoCollection<PhotoCheckModel> mc = md.GetCollection<PhotoCheckModel>("PhotoCheck");
         mc.Insert(pcm);
     }
     catch (Exception es)
     {
         throw new CBB.ExceptionHelper.OperationException(
            CBB.ExceptionHelper.ErrType.SystemErr,
            CBB.ExceptionHelper.ErrNo.DBOperationError,
            es);
     }
 }
Exemplo n.º 3
0
 private void AddCheckPhoto(string userid, string imgname, string userheadname)
 {
     PhotoCheckModel pcm = new PhotoCheckModel();
     pcm.CheckImgPath = imgname;
     pcm.CheckStatus = Convert.ToInt32(CheckPhotoStatus.waitaudit);
     pcm.JionTime = DateTime.Now;
     pcm.UserHeadName = userheadname;
     pcm.UserId = userid;
     new PhotoCheckOperation().AddCheckPhoto(pcm);
 }