示例#1
0
 public void SubmitForm(Sys_FilterIP filterIPEntity, string keyValue)
 {
     if (!string.IsNullOrEmpty(keyValue))
     {
         filterIPEntity.F_Id = keyValue;
         var LoginInfo = OperatorProvider.Provider.GetCurrent();
         if (LoginInfo != null)
         {
             filterIPEntity.F_LastModifyUserId = LoginInfo.UserId;
         }
         filterIPEntity.F_LastModifyTime = DateTime.Now;
         service.Update(filterIPEntity);
     }
     else
     {
         filterIPEntity.F_Id = Common.GuId();
         var LoginInfo = OperatorProvider.Provider.GetCurrent();
         if (LoginInfo != null)
         {
             filterIPEntity.F_CreatorUserId = LoginInfo.UserId;
         }
         filterIPEntity.F_CreatorTime = DateTime.Now;
         service.Insert(filterIPEntity);
     }
 }
示例#2
0
 public ActionResult SubmitForm(Sys_FilterIP filterIPEntity, string keyValue)
 {
     filterIPApp.SubmitForm(filterIPEntity, keyValue);
     return(Success("操作成功。"));
 }