示例#1
0
 /// <summary>
 /// 企业审核
 /// </summary>
 /// <param name="user"></param>
 /// <returns></returns>
 internal bool UpdateAuditEnterprise(SMS.Model.AuditEnterprise user)
 {
     try
     {
         bool ok = DAL.AuditEnterprise.Update(user);
         if (ok)
         {
             if (user.EnterpriseResult)
             {
                 dic.Remove(user.EnterpriseCode);
                 return(true);
             }
             else
             {
                 if (dic.ContainsKey(user.EnterpriseCode))
                 {
                     SMS.Model.AuditEnterprise user1 = dic[user.EnterpriseCode];
                     user.CreateTime          = user1.CreateTime;
                     user.EnterpriseName      = user1.EnterpriseName;
                     dic[user.EnterpriseCode] = user;
                     return(true);
                 }
             }
         }
     }
     catch
     {
     }
     return(false);
 }
示例#2
0
 /// <summary>
 /// 添加审核企业
 /// </summary>
 /// <param name="user"></param>
 /// <returns></returns>
 internal bool AddAuditEnterprise(SMS.Model.AuditEnterprise user)
 {
     try
     {
         bool ok = DAL.AuditEnterprise.Add(user);
         if (ok)
         {
             dic.Add(user.EnterpriseCode, user);
             return(true);
         }
     }
     catch
     {
     }
     return(false);
 }