예제 #1
0
 public void modify(HttpServletRequest request) {
   this.Id = ParamUtils.getIntParameter(request, "id");
   this.Pname = ParamUtils.getEscapeHTMLParameter(request, "pname");
   this.Pmodel = ParamUtils.getEscapeHTMLParameter(request, "pmodel");
   this.Pcost = ParamUtils.getEscapeHTMLParameter(request, "pcost");
   this.Pheft = ParamUtils.getEscapeHTMLParameter(request, "pheft");
   this.Pfacturer = ParamUtils.getEscapeHTMLParameter(request, "pfacturer");
   this.Pnote = ParamUtils.getEscapeHTMLParameter(request, "pnote");
   this.Status = FinalConstants.STATUS_NORMAL;
   saveToDb();
 }
예제 #2
0
 public Dbware(HttpServletRequest request) {
   this.Id = DbSequenceManager.nextID(FinalConstants.T_WARE);
   this.Pname = ParamUtils.getEscapeHTMLParameter(request, "pname");
   this.Pmodel = ParamUtils.getEscapeHTMLParameter(request, "pmodel");
   this.Pcost = ParamUtils.getEscapeHTMLParameter(request, "pcost");
   this.Pheft = ParamUtils.getEscapeHTMLParameter(request, "pheft");
   this.Pfacturer = ParamUtils.getEscapeHTMLParameter(request, "pfacturer");
   this.Pnote = ParamUtils.getEscapeHTMLParameter(request, "pnote");
   SimpleDateFormat simpleDate = new SimpleDateFormat("yyyyMMdd");
   String shiftDateToDate = simpleDate.format(new java.util.Date());
   this.Createdate = shiftDateToDate;
   this.Status = FinalConstants.STATUS_NORMAL;
   insertIntoDb();
 }