Available categories: [/] [working on downwap.] [trouble shooting] [working on Yup Mailman]
yesterday once more|怀旧经典 [Permalink] Fri Jan 21 08:13:41 CST 2005 今天拿了一个2001年底做的老系统出来维护,感触颇多啊。。一方面那时候java经验不丰富,很多地方的实现都很别扭;另一方面,也正因为这种生涩再加上工期的压力,造就了很多“当量换精度”的超繁琐代码,现在看来都佩服那个时候的毅力。 <miles:validinput name="SulfRate" type="singleline" maxlength="50" size="22" class_="embed"> <miles:checker checktype="req" errorwords="硫份不能为空"/> <miles:checker checktype="num" errorwords="硫份必须为数字"/> <miles:value><%=(hashCoal.getDouble("SulfRate")*100)%></miles:value> </miles:validinput>其实这是一个不错的实现。通过customized tag做出了一个很有创意的文本输入控件。带有自检功能,可进行多项输入检查。 再来看看这个大巫: <miles:curveset width="700" height="400" xoff="10" yoff="0" xdecimal="<%=xdecimal%>" ydecimal="0" xspace="0" yspace="0" xmax="<%=xmax/1000%>" ymax="<%=ymax/10000%>" bgcolor='255|240|192' gridcolor='144|144|192|100' grid="1" xcount="20" ycount="10" xlabel="Qj" ylabel="Cost" border="1" legend="2" legendwidth="150" legendheight="20" > <miles:curve funcclass="<%=AC%>" start="0" curvecolor="192|192|192" end="0" desc="许可权成本" xmax="<%=xmax%>" ymax="<%=ymax%>"/> <miles:curve funcclass="<%=DR%>" start="0" curvecolor="cyan" end="0" desc="脱硫-换煤最小成本" xmax="<%=xmax%>" ymax="<%=ymax%>"/> <miles:curve funcclass="<%=FC%>" start="0" curvecolor="blue" end="0" desc="固定成本(脱硫-换煤最小成本 + 排污费)" xmax="<%=xmax%>" ymax="<%=ymax%>"/> <miles:curve funcclass="<%=EC%>" start="0" curvecolor="magenta" end="0" desc="排污费" xmax="<%=xmax%>" ymax="<%=ymax%>"/> <%--<miles:curve funcclass="<%=BI%>" start="0" curvecolor="gray" end="0" desc="基准投入" xmax="<%=xmax%>" ymax="<%=ymax%>"/>--%> <miles:curve funcclass="<%=SUM%>" start="0" curvecolor="red" end="0" desc="电厂减排成本曲线(固定成本 + 许可权成本)" xmax="<%=xmax%>" ymax="<%=ymax%>"/> <miles:vertical vertcolor="255|0|0|50" xmax="<%=xmax%>" ymax="<%=ymax%>" xpos="<%=MinReduction%>" area="1"/> </miles:curveset>猜得到这个做什么的么?做这个的! 这个taglib之复杂,已经完全超越了我现阶段分析代码的耐心。。。
Posted by: miles |
? |
Available categories: [/] [working on downwap.] [trouble shooting] [working on Yup Mailman]
html hits:?51118