public ActionResult Create(CellPosition cellPosition) { string strResult = string.Empty; bool bResult = CellPositionService.Add(cellPosition); string msg = bResult ? "新增成功" : "新增失败"; return Json(JsonMessageHelper.getJsonMessage(bResult, msg, null), "text", JsonRequestBehavior.AllowGet); }
public FileStreamResult CreateExcelToClient() { int page = 0, rows = 0; int CellPositionID = Convert.ToInt32(Request.QueryString["ID"]); string CellCode = Request.QueryString["CellCode"]; string CellName = Request.QueryString["CellName"]; CellPosition cp = new CellPosition(); cp.ID = CellPositionID; cp.CellCode = CellCode; ExportParam ep = new ExportParam(); ep.DT1 = CellPositionService.GetCellPosition(page, rows, cp); ep.HeadTitle1 = "货位位置信息"; return PrintService.Print(ep); }
// // POST: /CellPosition/Edit/5 public ActionResult Edit(CellPosition cellPosition) { string strResult = string.Empty; bool bResult = CellPositionService.Save(cellPosition); string msg = bResult ? "修改成功" : "修改失败"; return Json(JsonMessageHelper.getJsonMessage(bResult, msg, strResult), "text", JsonRequestBehavior.AllowGet); }