




已阅读5页,还剩34页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
移动应用程序源代码:using System;using System.Collections;using System.ComponentModel;using System.Data;using System.Drawing;using System.Drawing.Imaging;using System.Web;using System.Web.Mobile;using System.Web.SessionState;using System.Web.UI;using System.Web.UI.MobileControls;using System.Web.UI.WebControls;using System.Web.UI.HtmlControls;using System.Xml;using System.Drawing.Drawing2D;namespace MobileWebApplication1/ / Summary description for MobileWebForm1./ / public class Personpublic Person(string username,string age,string name,string email,string qq,string city,string country,string state,string zip,string gender,string occupation,string income)this.username=username;this.age=age;=name;this.email=email;this.qq=qq;this.city=city;this.country=country;this.state=state;this.zip=zip;this.gender=gender;this.occupation=occupation;this.income=income;private string username;private string age;private string name;private string email;private string qq;private string city;private string country;private string state;private string zip;private string gender;private string occupation;private string income;public string Usernamegetreturn username;public string Agegetreturn age;public string Emailgetreturn email;public string QQgetreturn qq;public string Citygetreturn city;public string Countrygetreturn country;public string Stategetreturn state;public string Zipgetreturn zip;public string Gendergetreturn gender;public string Occupationgetreturn occupation;public string Incomegetreturn income; public class Newpublic New()/CODEGEN:该调用是 ASP.NET Web 服务设计器所必需的public New(string title,string body,string author,string office,string ptime) this.title=title;this.body=body;this.author=author;this.ptime=ptime;this.office=office;private string title;private string body;private string author;private string ptime;private string office; public string Titlegetreturn title; public string Bodygetreturn body;public string Authorgetreturn author;public string Ptimegetreturn ptime; public string Officegetreturn office;public class SSchart public SSchart()public SSchart(Bitmap bm,Point pt,string storename,string storenum)Graphics g=Graphics.FromImage(bm);DrawFrame(g);DrawLines(g,pt,storename,storenum);protected void DrawFrame(Graphics g)SolidBrush b=new SolidBrush(Color.White);g.FillRectangle(b,0,0,175,182);Pen pen=new Pen(Color.Black);g.DrawLine(pen,12,165,175,165);g.DrawLine(pen,15,0,15,170);b=new SolidBrush(Color.Black);Font f=new Font(Arrial,5);Font f1=new Font(Arrial,3);Font f2=new Font(Arrial,10);Font f3=new Font(Arrial,7);g.DrawString(¥,f2,b,3,18);g.DrawString(,f1,b,12,165);g.DrawString(,f1,b,27,165);g.DrawString(,f1,b,42,165);g.DrawString(,f1,b,57,165);g.DrawString(,f1,b,72,165);g.DrawString(,f1,b,102,165);g.DrawString(,f1,b,117,165);g.DrawString(,f1,b,132,165);g.DrawString(,f1,b,147,165);g.DrawString(,f1,b,162,165);g.DrawString(,f2,b,170,157);g.DrawString(,f3,b,9,-2);g.DrawString(9:00,f3,b,8,168);g.DrawString(10:00,f3,b,38,168);g.DrawString(11:00,f3,b,68,168);g.DrawString(13:00,f3,b,98,168);g.DrawString(14:00,f3,b,128,168);g.DrawString(15:00,f3,b,158,168); public void DrawLines(Graphics g,Point pt,string storename,string storenum)SolidBrush c=new SolidBrush(Color.White);Pen pen=new Pen(Color.Black);c=new SolidBrush(Color.Black);Font f=new Font(Arial,8);Font f1=new Font(Arial,8);pen.DashStyle=DashStyle.Dot;localhostStore.Service1 service=new localhostStore.Service1();string valueget=service.returnselectstore(storename,storenum);Point pta=new Point10;for(int i=0;i5;i+)ptai=pti;if(i%2=0)ptai.Y=6;ptai.X=pti.X-13;elseptai.Y=18;ptai.X=pti.X-13;for(int i=5;i10;i+)ptai=pti;if(i%2=0)ptai.Y=5;ptai.X=pti.X-10;elseptai.Y=18;ptai.X=pti.X-12;g.DrawString(valueget2,f,c,pta0);g.DrawString(valueget3,f,c,pta1);g.DrawString(valueget4,f,c,pta2);g.DrawString(valueget5,f,c,pta3);g.DrawString(valueget6,f,c,pta4);g.DrawString(valueget7,f1,c,pta5);g.DrawString(valueget8,f1,c,pta6);g.DrawString(valueget9,f1,c,pta7);g.DrawString(valueget10,f1,c,pta8);g.DrawString(valueget11,f1,c,pta9); g.DrawLines(pen,pt);Pen pen1=new Pen(Color.Gray);pen1.DashStyle=DashStyle.Dash;g.DrawLine(pen1,new Point(30,165),pt1);g.DrawLine(pen1,new Point(45,165),pt2);g.DrawLine(pen1,new Point(60,165),pt3);g.DrawLine(pen1,new Point(75,165),pt4);g.DrawLine(pen1,new Point(105,165),pt5);g.DrawLine(pen1,new Point(120,165),pt6);g.DrawLine(pen1,new Point(135,165),pt7);g.DrawLine(pen1,new Point(150,165),pt8);g.DrawLine(pen1,new Point(165,165),pt9);public class MobileWebForm1 : System.Web.UI.MobileControls.MobilePageprotected System.Web.UI.MobileControls.Label lbUserName;protected System.Web.UI.MobileControls.TextBox tbUserName;protected System.Web.UI.MobileControls.Label lbUserPass;protected System.Web.UI.MobileControls.TextBox tbUserPass;protected System.Web.UI.MobileControls.Label lbHead;protected System.Web.UI.MobileControls.Label lbSuggest;protected System.Web.UI.MobileControls.Command Command1;protected System.Web.UI.MobileControls.List List1;protected System.Web.UI.MobileControls.TextView TextView1;protected System.Web.UI.MobileControls.Command cmdsubmit;protected System.Web.UI.MobileControls.Form fmGetin;protected System.Web.UI.MobileControls.Form fmCustom;protected System.Web.UI.MobileControls.Form fmRegist;protected System.Web.UI.MobileControls.Label lbUserR;protected System.Web.UI.MobileControls.TextBox tbUserR;protected System.Web.UI.MobileControls.Label lbUserPE;protected System.Web.UI.MobileControls.Label lbUserPAE;protected System.Web.UI.MobileControls.Label lbGender;protected System.Web.UI.MobileControls.SelectionList slGender;protected System.Web.UI.MobileControls.Label lbAge;protected System.Web.UI.MobileControls.Label lbCountry;protected System.Web.UI.MobileControls.SelectionList slCountry;protected System.Web.UI.MobileControls.Label lbState;protected System.Web.UI.MobileControls.Label lbCity;protected System.Web.UI.MobileControls.Label lbZip;protected System.Web.UI.MobileControls.TextBox tbZip;protected System.Web.UI.MobileControls.Label lbOccupation;protected System.Web.UI.MobileControls.Label lbIncome;protected System.Web.UI.MobileControls.SelectionList slIncome;protected System.Web.UI.MobileControls.Command cmdRegist;protected System.Web.UI.MobileControls.TextBox tbUserPR;protected System.Web.UI.MobileControls.TextBox tbUserPAR;protected System.Web.UI.MobileControls.Form fmCustomview;protected System.Web.UI.MobileControls.Link Link2;protected System.Web.UI.MobileControls.Link Link3;protected System.Web.UI.MobileControls.Link Link4;protected System.Web.UI.MobileControls.Link Link5;protected System.Web.UI.MobileControls.Link Link6;protected System.Web.UI.MobileControls.Link Link7;protected System.Web.UI.MobileControls.Link Link8;protected System.Web.UI.MobileControls.Label lbResult;protected System.Web.UI.MobileControls.Label lbSendTime;protected System.Web.UI.MobileControls.Label Label1;protected System.Web.UI.MobileControls.Command Command2;protected System.Web.UI.MobileControls.Label Label2;protected System.Web.UI.MobileControls.Label Label4;protected System.Web.UI.MobileControls.Form fmRegistR;protected System.Web.UI.MobileControls.Label Label5;protected System.Web.UI.MobileControls.Label Label7;protected System.Web.UI.MobileControls.Command Command3;protected System.Web.UI.MobileControls.Form fmServiceChoice;protected System.Web.UI.MobileControls.Label Label8;protected System.Web.UI.MobileControls.Label Label10;protected System.Web.UI.MobileControls.Link Link9;protected System.Web.UI.MobileControls.Link Link10;protected System.Web.UI.MobileControls.Form fmCustomRsult;protected System.Web.UI.MobileControls.Form fmNews;protected System.Web.UI.MobileControls.Label Label11;protected System.Web.UI.MobileControls.Link Link11;protected System.Web.UI.MobileControls.Link Link12;protected System.Web.UI.MobileControls.Form fmViewShehui;protected System.Web.UI.MobileControls.Form fmViewtiyu;protected System.Web.UI.MobileControls.Form fmViewkeji;protected System.Web.UI.MobileControls.Form fmViewyule;protected System.Web.UI.MobileControls.Form fmViewjunshi;protected System.Web.UI.MobileControls.Form fmViewwenjiao;protected System.Web.UI.MobileControls.Form fmViewjingji;protected System.Web.UI.MobileControls.ObjectList ObjectListshehui;protected System.Web.UI.MobileControls.ObjectList ObjectListtiyu;protected System.Web.UI.MobileControls.ObjectList ObjectListkeji;protected System.Web.UI.MobileControls.ObjectList ObjectListyule;protected System.Web.UI.MobileControls.ObjectList ObjectListjunshi;protected System.Web.UI.MobileControls.ObjectList ObjectListwenjiao;protected System.Web.UI.MobileControls.ObjectList ObjectListjingji;protected System.Web.UI.MobileControls.Link Link14;protected System.Web.UI.MobileControls.Link Link15;protected System.Web.UI.MobileControls.Link Link16;protected System.Web.UI.MobileControls.Link Link17;protected System.Web.UI.MobileControls.Link Link18;protected System.Web.UI.MobileControls.Link Link19;protected System.Web.UI.MobileControls.Link Link20;protected System.Web.UI.MobileControls.Label lbName;protected System.Web.UI.MobileControls.Label lbName1;protected System.Web.UI.MobileControls.Label lbName3;protected System.Web.UI.MobileControls.Form FmInWrong;protected System.Web.UI.MobileControls.Label Label6;protected System.Web.UI.MobileControls.Link Link21;protected System.Web.UI.MobileControls.Label Label9;protected System.Web.UI.MobileControls.Link Link22;protected System.Web.UI.MobileControls.Command Command4;protected System.Web.UI.MobileControls.Label Label12;protected System.Web.UI.MobileControls.TextBox tbCity;protected System.Web.UI.MobileControls.TextBox tbOccupation;protected System.Web.UI.MobileControls.Label lbEmail;protected System.Web.UI.MobileControls.TextBox tbEmail;protected System.Web.UI.MobileControls.Label lbQQ;protected System.Web.UI.MobileControls.TextBox tbQQ;protected System.Web.UI.MobileControls.TextBox tbState;protected System.Web.UI.MobileControls.Form fmRegistErro;protected System.Web.UI.MobileControls.Label lbRegistErro;protected System.Web.UI.MobileControls.Link Link23;protected System.Web.UI.MobileControls.SelectionList slTime;protected System.Web.UI.MobileControls.SelectionList slTime1;protected System.Web.UI.MobileControls.Label lbTime;protected System.Web.UI.MobileControls.ObjectList ObjectList1;protected System.Web.UI.MobileControls.TextBox tbAge;protected System.Web.UI.MobileControls.Link Link24;protected System.Web.UI.MobileControls.Label Label3;protected System.Web.UI.MobileControls.Label lbWelcome;protected System.Web.UI.MobileControls.Label lbName2;protected System.Web.UI.MobileControls.Label Label13;protected System.Web.UI.MobileControls.RegularExpressionValidator RegularExpressionValidator1;protected System.Web.UI.MobileControls.Label lbstorewel;protected System.Web.UI.MobileControls.Label Label15;protected System.Web.UI.MobileControls.Label Label14;protected System.Web.UI.MobileControls.Label Label16;protected System.Web.UI.MobileControls.Command Command5;protected System.Web.UI.MobileControls.Form fmStoreselect;protected System.Web.UI.MobileControls.Form fmStoreView;protected System.Web.UI.MobileControls.TextBox tbStoreName;protected System.Web.UI.MobileControls.TextBox tbStoreNum;/protected System.Web.UI.MobileControls.RegularExpressionValidator RegularExpressionValidator1;protected System.Web.UI.MobileControls.Link Link1;protected System.Web.UI.MobileControls.Label lbStorename;protected System.Web.UI.MobileControls.Image ImageStore;protected System.Web.UI.MobileControls.Image Image1;protected System.Web.UI.MobileControls.Image Image2;protected System.Web.UI.MobileControls.Image Image3;private string storename1;public string storegetreturn tbStoreName.Text; protected bool IfHaveRegist(string username)XmlDocument xml=new XmlDocument();xml.Load(Server.MapPath(./webservicenewsadd/member/member.xml);XmlNode nodeuser=xml.SelectSingleNode(members/*/username.=+username+); if(nodeuser=null) return false;else return true; protected void memberGetbanding() XmlDocument xml=new XmlDocument();xml.Load(Server.MapPath(./webservicenewsadd/member/member.xml);XmlNode nodeUser=xml.SelectSingleNode(members/*/username.=+tbUserR.Text+); XmlNode nodePerson=nodeUser.ParentNode;string nodetext=new string12;for(int i=0;i12;i+) nodetexti=nodePerson.ChildNodesi.InnerText;ArrayList arraymember=new ArrayList();arraymember.Add(new Person(nodetext0,nodetext1,nodetext2,nodetext3,nodetext4,nodetext5,nodetext6,nodetext7,nodetext8,nodetext9,nodetext10,nodetext11); ObjectList1.DataSource=arraymember; ObjectList1.DataBind(); protected void ObjectListbanding(ObjectList objectListcountry ,string newsname,string TYPE)/ string Country=Home;/string TYPE=社会;XmlDocument xml=new XmlDocument();xml.Load(Server.MapPath(./webservicenewsadd/news/+newsname+.xml);/选择Country下的特定TYPE 节点XmlNode nodeClass=xml.SelectSingleNode(news/*/classtype=+TYPE+);/选择全部class节点/XmlNodeList nodeClassList=xml.SelectNodes(/news/*/class);ArrayList ls=new ArrayList();/foreach (XmlNode nodeClass in nodeClassList)/int nodenewcount=nodeClass.ChildNodes.Count; /得到该TYPE的 新闻集合for(int i=0;inodenewcount;i+)XmlNode nodenew=nodeClass.ChildNodesi; /把一条新闻的各个字段加到 arraylist中string author =nodenew.ChildNodes0.Attributes0.Value;string office =nodenew.ChildNodes0.Attributes1.Value;string ptime=nodenew.ChildNodes0.Attributes2.Value;string title=nodenew.ChildNodes0.InnerText;string body=nodenew.ChildNodes1.InnerText; ls.Add(new New(title,body,author,office,ptime); /objectListcountry.DataSource=ls;objectListcountry.DataBind();private string newsname;private void Page_Load(object sender, System.EventArgs e)/ Put user code to initialize the page herestring year=DateTime.Now.Year.ToString();string month=DateTime.Now.Month.ToString ();string day=DateTime.Now.Day.ToString();newsname=year+_+month+_+day;newsname=2003_5_26;#region Web Form Designer generated codeoverride protected void OnInit(EventArgs e)/ CODEGEN: This call is required by the ASP.NET Web Form Designer./InitializeComponent();base.OnInit(e);/ / Required method for Designer support - do not modify/ the contents of this method with the code editor./ private void InitializeComponent() this.Command1.Click += new System.EventHandler(this.Command1_Click);this.fmGetin.Activate += new System.EventHandler(this.Form1_Activate);this.fmServiceChoice.Activate += new System.EventHandler(this.fmServiceChoice_Activate);this.Command4.Click += new System.EventHandler(this.Command4_Click);this.cmdRegist.Click += new System.EventHandler(this.cmdRegist_Click);this.fmRegist.Activate += new System.EventHandler(this.fmRegist_Activate);this.Command3.Click += new System.EventHandler(this.Command3_Click);this.fmRegistR.Activate += new System.EventHandler(this.fmRegistR_Activate);this.List1.ItemCommand += new System.Web.UI.MobileControls.ListCommandEventHandler(this.List1_ItemCommand);this.cmdsubmit.Click += new System.EventHandler(this.cmdsubmit_Click);this.fmCustom.Activate += new System.EventHandler(this.Form2_Activate);this.Command2.Click += new System.EventHandler(this.Command2_Click);this.fmCustomRsult.Activate += new System.EventHandler(this.fmCustomRsult_Activate);this.ObjectListshehui.ItemCommand += new System.Web.UI.MobileControls.ObjectListCommandEventHandler(this.ObjectListshehui_ItemCommand);this.fmViewShehui.Activate += new System.EventHan
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025年高性能中级维修电工及技能培训考核试题(附答案)
- 2025年高考时事政治题库及参考答案详解【预热题】
- 2025年高级会计师资格考试高级会计实务试题及答案
- 宁化护理笔试题及答案
- 老年俱乐部管理办法
- 舆论引导员管理办法
- 计时工退出管理办法
- 贷款利息优惠管理办法
- 人防在建工程管理办法
- 中央加强教师管理办法
- 教科版四年级上册科学全册教案
- 水稻螟虫绿色防控
- 家电合伙合同(标准版)
- 图形动画毕业设计
- 工会劳动竞赛课件
- 2025-2026学年苏教版小学数学五年级上册教学计划及进度表
- 2025年建筑工程-安全员C证-安全员(C证·上海)历年参考题库典型考点含答案解析
- 光伏项目施工组织设计方案
- 2025政府采购评审专家入库题库与答案
- 仪表安全知识培训课件
- 2025年三级老年人能力评估师考试题库(附答案)
评论
0/150
提交评论