• 大小: 924KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-05-10
  • 语言: C#
  • 标签: c#  

资源简介

简单的小景点售票系统 hfjhdfjfadfdfdsfdfd

资源截图

代码片段和文件信息

using System;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.xml.Linq;

public partial class _Default : System.Web.UI.Page 
{
    localhost.Service bs = new localhost.Service();
    
    float zongjia = 0;
    
    
    protected void Page_Load(object sender EventArgs e)
    {
       DataSet ds = bs.ticketprice();
       float Common = float.Parse(ds.Tables[1].Rows[0][“Common“].ToString());

       Label6.Text = Common.ToString();
        
    }
    protected void Button1_Click(object sender EventArgs e)
    {
       int shuliang = int.Parse(TextBox4.Text);
       DateTime dt1 = DateTime.Parse(TextBox7.Text.ToString());
        int num= int.Parse(TextBox4.Text);
        int total=int.Parse(TextBox5.Text);
       string type = DropDownList1.SelectedValue;
       localhost.Service client = new localhost.Service();
       client.ticket2(type num total dt1);
       
       Label7.Text= bs.ticket2(type num total dt1);
    }
    protected void TextBox2_TextChanged(object sender EventArgs e)
    {
        
    }
    protected void Calendar1_Selectionchanged(object sender EventArgs e)
    {
      
    }
    protected void Button3_Click(object sender EventArgs e)
    {
       
    }

    protected void Button2_Click(object sender EventArgs e)
    {
      
    }

    protected void TextBox4_TextChanged(object sender EventArgs e)
    {
        
       
        
    }
    protected void Button4_Click(object sender EventArgs e)
    {
        DataSet ds = bs.ticketprice();
        float Common = float.Parse(ds.Tables[1].Rows[0][“Common“].ToString());
        float sl = float.Parse(TextBox4.Text.Trim().ToString());
        zongjia = Common * sl;
        TextBox5.Text = zongjia.ToString();
       
    }
    protected void DropDownList1_SelectedIndexChanged1(object sender EventArgs e)
    {
        if (DropDownList1.SelectedValue.Equals(“普通价“))
        { 
       localhost.Service client =new localhost.Service();
        Label6.Text=client.getprice();
       
        }
        else if (DropDownList1.SelectedValue.Equals(“学生和老人价“))
        {
            localhost.Service client = new localhost.Service();
            Label6.Text = client.getprice();
        }
        else if (DropDownList1.SelectedValue.Equals(“团购价“))
        {
            localhost.Service client = new localhost.Service();
            Label6.Text = client.getprice();
        }
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       1443  2011-05-29 12:16  web2_D组\web2_D组\asp的网上售票\网上订票\App_WebReferences\localhost\DSB.xsd

     文件        711  2011-05-29 12:16  web2_D组\web2_D组\asp的网上售票\网上订票\App_WebReferences\localhost\Service.disco

     文件        751  2011-05-29 12:16  web2_D组\web2_D组\asp的网上售票\网上订票\App_WebReferences\localhost\Service.discomap

     文件      12789  2011-05-29 12:16  web2_D组\web2_D组\asp的网上售票\网上订票\App_WebReferences\localhost\Service.wsdl

     文件       3949  2011-05-29 11:54  web2_D组\web2_D组\asp的网上售票\网上订票\Default.aspx

     文件       2716  2011-05-29 13:12  web2_D组\web2_D组\asp的网上售票\网上订票\Default.aspx.cs

     文件      24815  2010-11-27 15:09  web2_D组\web2_D组\asp的网上售票\网上订票\Images\14.jpg

     文件      53998  2011-05-28 12:39  web2_D组\web2_D组\asp的网上售票\网上订票\Images\14_副本.jpg

     文件      26420  2011-05-28 20:50  web2_D组\web2_D组\asp的网上售票\网上订票\Images\2010062715075090241.jpg

    ..A.SH.    201216  2011-05-28 12:39  web2_D组\web2_D组\asp的网上售票\网上订票\Images\Thumbs.db

     文件       8507  2011-05-29 22:02  web2_D组\web2_D组\asp的网上售票\网上订票\web.config

     文件       5539  2011-05-28 21:34  web2_D组\web2_D组\asp的网上售票\网上订票\Welcome.aspx

     文件        585  2011-05-28 21:34  web2_D组\web2_D组\asp的网上售票\网上订票\Welcome.aspx.cs

     文件        940  2011-05-29 19:58  web2_D组\web2_D组\dajinhuSystem\dajinhuSystem.sln

    ..A..H.     69120  2011-05-29 22:25  web2_D组\web2_D组\dajinhuSystem\dajinhuSystem.suo

     文件        915  2011-05-29 22:23  web2_D组\web2_D组\dajinhuSystem\WindowsFormsApplication2\app.config

     文件     161280  2011-05-29 22:24  web2_D组\web2_D组\dajinhuSystem\WindowsFormsApplication2\bin\Debug\WindowsFormsApplication2.exe

     文件        915  2011-05-29 22:23  web2_D组\web2_D组\dajinhuSystem\WindowsFormsApplication2\bin\Debug\WindowsFormsApplication2.exe.config

     文件     161280  2011-05-29 22:24  web2_D组\web2_D组\dajinhuSystem\WindowsFormsApplication2\bin\Debug\WindowsFormsApplication2.pdb

     文件      14328  2011-05-29 22:24  web2_D组\web2_D组\dajinhuSystem\WindowsFormsApplication2\bin\Debug\WindowsFormsApplication2.vshost.exe

     文件        915  2011-05-29 22:23  web2_D组\web2_D组\dajinhuSystem\WindowsFormsApplication2\bin\Debug\WindowsFormsApplication2.vshost.exe.config

     文件       8532  2011-05-29 22:23  web2_D组\web2_D组\dajinhuSystem\WindowsFormsApplication2\dajinhuSystem.csproj

     文件       6566  2011-05-29 08:37  web2_D组\web2_D组\dajinhuSystem\WindowsFormsApplication2\Help.cs

     文件       5814  2011-05-29 08:37  web2_D组\web2_D组\dajinhuSystem\WindowsFormsApplication2\Help.resx

     文件      21021  2010-11-27 15:08  web2_D组\web2_D组\dajinhuSystem\WindowsFormsApplication2\images\0.jpg

     文件      29510  2010-11-27 15:08  web2_D组\web2_D组\dajinhuSystem\WindowsFormsApplication2\images\224.jpg

     文件      55265  2010-11-27 15:09  web2_D组\web2_D组\dajinhuSystem\WindowsFormsApplication2\images\http_imgload33.jpg

     文件       1780  2011-05-29 22:18  web2_D组\web2_D组\dajinhuSystem\WindowsFormsApplication2\Login.cs

     文件       7190  2011-05-29 22:23  web2_D组\web2_D组\dajinhuSystem\WindowsFormsApplication2\Login.Designer.cs

     文件       5814  2011-05-29 08:37  web2_D组\web2_D组\dajinhuSystem\WindowsFormsApplication2\Login.resx

............此处省略92个文件信息

评论

共有 条评论