pstmt = conn.prepareStatement("select ordernumber,datetime,price,dayofmoney from zujie where ordernumber= "+ cdName + " ") rs=pstmt.executeQuery() if(rs!=null && rs.next()){ String datetime = rs.getString(2) java.text.SimpleDateFormat formatter = new java.text.SimpleDateFormat ("yyyy-MM-dd") Date date = new Date() String date1=formatter.format(date) ParsePosition pos = new ParsePosition(0) ParsePosition pos1 = new ParsePosition(0) Date dt1=formatter.parse(datetime,pos) Date dt2=formatter.parse(date1,pos1) Long l = (dt2.getTime()-dt1.getTime())/(3600*24*1000)+1 double price = rs.getDouble(3) double dayofmoney=rs.getDouble(4) double dayofmoneybuy=dayofmoney*l double otherMoney = price-dayofmoneybuy request.setAttribute("price", price) request.setAttribute("l", l) request.setAttribute("dayofmoney", dayofmoneybuy) request.setAttribute("otherMoney", otherMoney)
標簽: prepareStatement ordernumber dayofmoney datetime
上傳時間: 2013-12-14
上傳用戶:zsjinju
A Function Optimizer using Simple Genetic Algorithm developed from the Pascal SGA code
標簽: Algorithm Optimizer developed Function
上傳時間: 2014-12-20
上傳用戶:ANRAN
You can send a fax from ANY application that can print to a standard unix printer using the spooling system like lpr just by printing to a fax printer
標簽: application can standard printer
上傳時間: 2016-11-25
上傳用戶:xlcky
PRINCIPLE: Removal of the row mean from each row, followed by division of the row by the respective row standard deviation.
標簽: the row respective PRINCIPLE
上傳時間: 2016-11-27
上傳用戶:z1191176801
PRINCIPLE: The UVE algorithm detects and eliminates from a PLS model (including from 1 to A components) those variables that do not carry any relevant information to model Y. The criterion used to trace the un-informative variables is the reliability of the regression coefficients: c_j=mean(b_j)/std(b_j), obtained by jackknifing. The cutoff level, below which c_j is considered to be too small, indicating that the variable j should be removed, is estimated using a matrix of random variables.The predictive power of PLS models built on the retained variables only is evaluated over all 1-a dimensions =(yielding RMSECVnew).
標簽: from eliminates PRINCIPLE algorithm
上傳時間: 2016-11-27
上傳用戶:凌云御清風
ucosIIV283,from The company
上傳時間: 2016-11-27
上傳用戶:jjj0202
/* author: qiaoger from: Computer Science Department of SiChuan University date: 2008-3-27 求算術表達式(整數)的值(中序法) */
標簽: Department University Computer Science
上傳時間: 2013-12-27
上傳用戶:playboys0
feature extraction from shapes
標簽: extraction feature shapes from
上傳時間: 2014-01-23
上傳用戶:qq21508895
GPS read and write,retrieve time,loction from gps
標簽: retrieve loction write read
上傳時間: 2016-12-05
上傳用戶:csgcd001
Downloaded from matlabcentral about CurveIntersect.
標簽: CurveIntersect matlabcentral Downloaded about
上傳時間: 2016-12-09
上傳用戶:wendy15