<%@ page language="java" import="java.util.*,com.letousky.lottery.action.MemberCenter,com.letousky.exception.LotteryException,com.letousky.lottery.util.InsiderCenterFormat" pageEncoding="UTF-8"%>
<%
	String[] params=new String[]{request.getParameter("trnNumber")};
	String[] list=new MemberCenter().buyLotteryDetails(params);
	out.print("{\"result\":\"0000\",\"items\":[");
	out.print("{\"serialno\":\""+list[0]+"\",\"userid\":\""+list[1]+"\",\"manner\":\""+list[2]+"\",\"lotName\":\""+list[3]+"\",\"issue\":\""+list[4]+"\",\"openusers\":\""+list[5]+"\","+
	"\"payofftc\":\""+list[6]+"\",\"money\":\""+list[7]+"\",\"multiple\":"+list[8]+",\"copies\":\""+list[9]+"\",\"price\":\""+list[10]+"\",\"ensure\":\""+list[11]+"\",\"subscribe\":\""+list[12]+"\","+
	"\"starTime\":\""+list[13]+"\",\"awardbets\":\""+list[15]+"\",\"status\":\""+InsiderCenterFormat.getHmType(list[16])+"\",\"experience\":\""+list[17]+"\",\"description\":\""+list[18]+"\","+
	"\"tempInfo\":\""+list[19].replaceAll("\\s","")+"\",\"endTime\":\""+list[20]+"\",\"userCount\":\""+list[21]+"\"}");
	out.print("]}");
%>