public ActionResult Edit(logisticsSetupType obj)
 {
    
     try
     {
         NSession.Update(obj);
         NSession.Flush();
     }
     catch (Exception ee)
     {
         return Json(new { errorMsg = "出错了" });
     }
     return Json(new { IsSuccess = "true" });
    
 }
 public JsonResult Create(logisticsSetupType obj)
 {
     try
     {
      
         obj.SetupName = obj.SetupId;
         obj.CreateOn = DateTime.Now;
         obj.CreateBy = GetCurrentAccount().Realname;
         obj.LogisticsName = NSession.Get<LogisticsType>(obj.LId).LogisticsName;
         NSession.SaveOrUpdate(obj);
         NSession.Flush();
     }
     catch (Exception ee)
     {
         return Json(new { errorMsg = "出错了" });
     }
     return Json(new { IsSuccess = "true" });
 }