public ActionResult SubmitForm(SalverEntity userEntity, int?keyValue)
        {
            if (!keyValue.HasValue)
            {
                userEntity.F_Status           = SalverStatus.待租赁.ToString();
                userEntity.F_CreatorTime      = DateTime.Now;
                userEntity.F_CreatorUserId    = CurrentUser.UserId;
                userEntity.F_LastModifyTime   = DateTime.Now;
                userEntity.F_LastModifyUserId = CurrentUser.UserId;
            }
            else
            {
                userEntity.F_LastModifyTime   = DateTime.Now;
                userEntity.F_LastModifyUserId = CurrentUser.UserId;
            }

            salverApp.SubmitForm(userEntity, keyValue);
            return(Success("操作成功。"));
        }
示例#2
0
 public void UpdateForm(SalverEntity userEntity)
 {
     service.Update(userEntity);
 }
示例#3
0
 public void SubmitForm(SalverEntity salverEntity, int?keyValue)
 {
     service.SubmitForm(salverEntity, keyValue);
 }