• 大小: 6.07MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-10-14
  • 语言: C#
  • 标签:

资源简介

旅游信息管理系统,C#结合sqlserver数据库开发。

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Data.SqlClient;

namespace Travel_Manage
{
    public partial class Apply_Accommodation_Choose : Form
    {
        //保存选择的宾馆编号
        public static string hotel_Num;
        public Apply_Accommodation_Choose()
        {
            InitializeComponent();
        }

        private void btt_Hotel_Show_Click(object sender EventArgs e)
        {
            string sqlcom = “select * from Accommodation“;
            SqlConnection con = new SqlConnection(Login_Tourist.sqlcon);
            con.Open();
            SqlDataAdapter adapter = new SqlDataAdapter(sqlcom con);
            DataSet ds = new DataSet();
            adapter.Fill(ds “cs“);
            dataGridView_Accomodation.DataSource = ds.Tables[“cs“];

            con.Close();
        }

        private void dataGridView_Accomodation_CellMouseClick(object sender DataGridViewCellMouseEventArgs e)
        {
            if (e.RowIndex >= 0)
            {
            tB_Hotel_Num.Text=this.dataGridView_Accomodation.Rows[e.RowIndex].Cells[0].Value.ToString();
            }

        }

        private void btt_Hotel_Choose_Click(object sender EventArgs e)
        {
            hotel_Num = tB_Hotel_Num.Text;
        }
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2016-08-01 09:41  Travel_Manage\
     目录           0  2016-08-01 09:40  Travel_Manage\.vs\
     目录           0  2016-08-01 09:40  Travel_Manage\.vs\Travel_Manage\
     目录           0  2016-08-01 09:40  Travel_Manage\.vs\Travel_Manage\v14\
     文件       96768  2016-06-15 15:28  Travel_Manage\.vs\Travel_Manage\v14\.suo
     目录           0  2016-08-01 09:40  Travel_Manage\Excel\
     文件       24576  2016-05-16 18:52  Travel_Manage\Excel\交通工具.xls
     文件       24064  2016-05-16 17:23  Travel_Manage\Excel\保险.xls
     文件       27136  2016-05-16 17:37  Travel_Manage\Excel\宾馆.xls
     文件       24576  2016-05-16 18:40  Travel_Manage\Excel\导游.xls
     文件       27648  2016-05-16 18:08  Travel_Manage\Excel\旅游团.xls
     文件       26624  2016-05-16 18:00  Travel_Manage\Excel\旅游班次.xls
     文件       24576  2016-05-15 22:52  Travel_Manage\Excel\旅游线路.xls
     文件       23552  2016-05-16 18:20  Travel_Manage\Excel\陪同.xls
     文件       23552  2016-05-16 18:21  Travel_Manage\Excel\食宿.xls
     目录           0  2016-08-01 09:40  Travel_Manage\Travel_Manage\
     文件         189  2016-05-07 23:53  Travel_Manage\Travel_Manage\App.config
     文件        5507  2016-05-18 20:47  Travel_Manage\Travel_Manage\Apply_Accommodation_Choose.Designer.cs
     文件        1495  2016-05-18 20:47  Travel_Manage\Travel_Manage\Apply_Accommodation_Choose.cs
     文件        5817  2016-05-18 20:47  Travel_Manage\Travel_Manage\Apply_Accommodation_Choose.resx
     文件        5560  2016-05-18 20:47  Travel_Manage\Travel_Manage\Apply_Accompany_Choose.Designer.cs
     文件        1612  2016-05-18 20:47  Travel_Manage\Travel_Manage\Apply_Accompany_Choose.cs
     文件        5817  2016-05-18 20:47  Travel_Manage\Travel_Manage\Apply_Accompany_Choose.resx
     文件       10138  2016-05-18 20:47  Travel_Manage\Travel_Manage\Apply_Dispose.Designer.cs
     文件        9044  2016-06-15 13:43  Travel_Manage\Travel_Manage\Apply_Dispose.cs
     文件        5817  2016-05-18 20:47  Travel_Manage\Travel_Manage\Apply_Dispose.resx
     文件        5284  2016-05-18 20:45  Travel_Manage\Travel_Manage\Apply_Group_Choose.Designer.cs
     文件        1561  2016-05-18 20:45  Travel_Manage\Travel_Manage\Apply_Group_Choose.cs
     文件        5817  2016-05-18 20:45  Travel_Manage\Travel_Manage\Apply_Group_Choose.resx
     文件       14632  2016-05-15 12:20  Travel_Manage\Travel_Manage\Custom_Query.Designer.cs
     文件        5347  2016-05-16 19:16  Travel_Manage\Travel_Manage\Custom_Query.cs
............此处省略72个文件信息

评论

共有 条评论

相关资源