public JsonResult Create(RefundAmountType obj)
 {
     try
     {
         NSession.SaveOrUpdate(obj);
         NSession.Flush();
     }
     catch (Exception ee)
     {
         return Json(new { errorMsg = "出错了" });
     }
     return Json(new { IsSuccess = "true" });
 }
 public void SaveAmount(DisputeType obj)
 {
     RefundAmountType amount = new RefundAmountType
     {
         DId = obj.Id,
         OrderNo = obj.OrderNo,
         OrderExNo = obj.OrderExNo,
         Platform = obj.Platform,
         Account = obj.Account,
         Amount = obj.Amount,
         CreateBy = CurrentUser.Realname,
         CreateOn = DateTime.Now,
         EmailAccount=obj.EmailAccount,
         TransactionNo=obj.TransactionNo,
         Status="未审核",
         AmountType=obj.AmountType,
         AuditOn=Convert.ToDateTime("2000-01-01")
     };
     NSession.Save(amount);
     NSession.Flush();
 }