快速业务通道

实战Flash mx 2004+XML+ASP

作者 佚名技术 来源 服务器技术 浏览 发布时间 2012-07-12
5.sgxg.borderColor = "0xffffff";
_root.bill25.sgxg.background = false;
_root.bill25.sgxg.backgroundColor = "0x666666";
_root.bill25.sgxg._visible = true;
_root.bill25._x = 625;
_root.bill25._y = 425.6-render*25;
//100T坡底秤
render = FileRepley.childNodes[0].attributes["100T坡底秤"];
_root.lineTo(650, 447.6-render*25);
_root.createEmptyMovieClip("showNum26", 26);
theItem = _root["showNum26"];
theItem._x = 650;
theItem._y = 447.6-render*25;
theItem.index = 26;
theItem.attachMovie("circle", "circle", 1);
_root.createEmptyMovieClip("bill26", 76);
_root.bill26.createTextField("sgxg", 100, 0, 0, 40, 20);
_root.bill26.sgxg.text = render;
_root.bill26.sgxg.border = false;
_root.bill26.sgxg.textColor = "0xffffff";
_root.bill26.sgxg.borderColor = "0xffffff";
_root.bill26.sgxg.background = false;
_root.bill26.sgxg.backgroundColor = "0x666666";
_root.bill26.sgxg._visible = true;
_root.bill26._x = 650;
_root.bill26._y = 425.6-render*25;
//150T铁块秤
render = FileRepley.childNodes[0].attributes["150T铁块秤"];
_root.lineTo(675, 447.6-render*25);
_root.createEmptyMovieClip("showNum27", 27);
theItem = _root["showNum27"];
theItem._x = 675;
theItem._y = 447.6-render*25;
theItem.index = 27;
theItem.attachMovie("circle", "circle", 1);
//=====================================================
_root.createEmptyMovieClip("bill27", 77);
_root.bill27.createTextField("sgxg", 100, 0, 0, 40, 20);
_root.bill27.sgxg.text = render;
_root.bill27.sgxg.border = false;
_root.bill27.sgxg.textColor = "0xffffff";
_root.bill27.sgxg.borderColor = "0xffffff";
_root.bill27.sgxg.background = false;
_root.bill27.sgxg.backgroundColor = "0x666666";
_root.bill27.sgxg._visible = true;
_root.bill27._x = 675;
_root.bill27._y = 425.6-render*25;
}
}
}上面是前台,也就是Flash mx 2004所作!
下面的代码是与数据库连接的后台代码,我采用的数据库是mssql
数据库方面的代码就不说了! <%
set xmlReceive=server.CreateObject("Microsoft.XMLDOM")
xmlReceive.LoadXML(Request.Form)
set yearElement=xmlReceive.documentElement.SelectSingleNode("//FILE/YEAR")
years=yearElement.text
set monthElement=xmlReceive.documentElement.SelectSingleNode("//FILE/MONTH")
months=monthElement.text
dim conn
dim strconn
strconn = "Driver={SQL Server};Description=sqldemo;SERVER=192.168.6.13;UID=sa;Password=;DATABASE=measure"
set conn = server.createobject("adodb.connection")
conn.open strconn
sql="select a.vweightpointname as VrepairPoint,(select count(*) from repair_t b where a.vweightpointname=b.vrepairpoint and b. isvalid=’1’ and year(b.DRepairTime)=’"&years&"’ and month(b.DRepairTime)=’"&months&"’)as amount from weightpoint_t a group by a.vweightpointname "
’response.Write(sql)
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,1
’=====================================
’=====================================
amount=0
do while not rs.eof
total=total&" "&rs.

凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢!

分享到: 更多

Copyright ©1999-2011 厦门凌众科技有限公司 厦门优通互联科技开发有限公司 All rights reserved

地址(ADD):厦门软件园二期望海路63号701E(东南融通旁) 邮编(ZIP):361008

电话:0592-5908028 传真:0592-5908039 咨询信箱:web@lingzhong.cn 咨询OICQ:173723134

《中华人民共和国增值电信业务经营许可证》闽B2-20100024  ICP备案:闽ICP备05037997号