// // POST: /ProfitLossBillDetail/ProfitLossBillDetailDelete/ public ActionResult ProfitLossBillDetailDelete(string ID) { string strResult = string.Empty; bool bResult = ProfitLossBillDetailService.Delete(ID, out strResult); string msg = bResult ? "删除成功" : "删除失败"; return(Json(JsonMessageHelper.getJsonMessage(bResult, msg, strResult), "text", JsonRequestBehavior.AllowGet)); }
public ActionResult ProfitLossBillDetailEdit(ProfitLossBillDetail profitLossBillDetail) { string strResult = string.Empty; bool bResult = ProfitLossBillDetailService.Save(profitLossBillDetail, out strResult); string msg = bResult ? "修改成功" : "修改失败"; return(Json(JsonMessageHelper.getJsonMessage(bResult, msg, strResult), "text", JsonRequestBehavior.AllowGet)); }
public FileStreamResult CreateExcelToClient() { int page = 0, rows = 0; string billNo = Request.QueryString["billNo"]; THOK.Common.NPOI.Models.ExportParam ep = new THOK.Common.NPOI.Models.ExportParam(); ep.DT1 = ProfitLossBillDetailService.GetProfitLoassBillDetail(page, rows, billNo); ep.HeadTitle1 = "损益单明细"; System.IO.MemoryStream ms = THOK.Common.NPOI.Service.ExportExcel.ExportDT(ep); return(new FileStreamResult(ms, "application/ms-excel")); }
// // GET: /ProfitLossBillDetail/ProfitLossBillDetails/ public ActionResult ProfitLossBillDetails(int page, int rows, string BillNo) { var moveBillDetail = ProfitLossBillDetailService.GetDetails(page, rows, BillNo); return(Json(moveBillDetail, "text", JsonRequestBehavior.AllowGet)); }