• 大小: 1.23MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-08-30
  • 语言: C#
  • 标签: C#项目  含源码  

资源简介

C#项目之KTV点歌系统(含源码)

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using KTV.KTVclass;
using System.Data.OleDb;
namespace KTV
{
    public partial class Auton : Form
    {
        public Auton()
        {
            InitializeComponent();
        }
        public Auton(int intcuntstring strId)
        {
            InitializeComponent();
            intFalg = intcunt;
            strgetId = strId;
        }
        public int intFalg = 0;
        public string strgetId = null;
        frmdictionaryMenthod frmDictiyon = new frmdictionaryMenthod();
        tb_authorinfo tbAu = new tb_authorinfo();
        tb_authorinfoMenthod tbAuMenthod = new tb_authorinfoMenthod();
        private void frmAuton_Load(object sender EventArgs e)
        {
            frmDictiyon.dictionaryFind(“1“cmbauthorcompany);
         
            if (intFalg == 1)
            {
                txtauthorId.Text = tbAuMenthod.gettb_authorinfoID();
            }
            if (intFalg == 2)
            {
                getFill();
            }

         }

        public void getFill()
        {
            OleDbDataReader dr = tbAuMenthod.AuthFind(strgetId);
            dr.Read();
            if (dr.HasRows)
            {
                txtauthorId.Text = dr[0].ToString();
                txtauthorName.Text=dr[1].ToString();
                cmbauthorSex.Text=dr[2].ToString();
                daAuthorbirthday.Value=Convert.ToDateTime(dr[3].ToString());
                comboBox2.Text=dr[4].ToString();
               cmbauthorcompany.Text=dr[5].ToString();
                txtauthorRecma.Text=dr[6].ToString();
                  txtauthorzjm.Text=dr[7].ToString();
           
            }
            dr.Close();
        }
        private void bntSure_Click(object sender EventArgs e)
        {
            if (txtauthorName.Text == ““)
            {
                MessageBox.Show(“姓名不能为空“);
                return;
            }
            tbAu.intauthorId = txtauthorId.Text;
            tbAu.strauthorName = txtauthorName.Text;
            tbAu.strauthorSex = cmbauthorSex.Text;
            tbAu.daauthorbirthday = daAuthorbirthday.Value;
            tbAu.strauthorGenre = comboBox2.Text;
            tbAu.strauthorcompany = cmbauthorcompany.Text;
            tbAu.strauthorRecma = txtauthorRecma.Text;
            tbAu.strauthorzjm = txtauthorzjm.Text;
            tbAu.daRdateTime = DateTime.Now;
            if (intFalg == 1)
            {
                if (tbAuMenthod.AuthAdd(tbAu) == 1)
                {
                    MessageBox.Show(“添加成功!“);
                    Main frm = (Main)this.Owner;
                    tbAuMenthod.tb_authorinfoFill(“2“frm.lvAuton);
                    intFalg = 0;
                    this.Close();

                }
                else
                {
    

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2019-08-22 16:38  07 KTV点歌系统\
     目录           0  2019-08-22 16:38  07 KTV点歌系统\KTV\
     目录           0  2019-08-22 16:38  07 KTV点歌系统\KTV\KTV\
     文件         899  2010-09-13 21:48  07 KTV点歌系统\KTV\KTV.sln
     文件       68096  2010-09-15 19:12  07 KTV点歌系统\KTV\KTV.suo
     文件         852  2010-09-13 21:48  07 KTV点歌系统\KTV\KTV\app.config
     文件        9409  2010-09-13 21:51  07 KTV点歌系统\KTV\KTV\Auton.cs
     文件       11797  2010-09-13 21:51  07 KTV点歌系统\KTV\KTV\Auton.Designer.cs
     文件        5814  2010-09-13 21:51  07 KTV点歌系统\KTV\KTV\Auton.resx
     目录           0  2019-08-22 16:38  07 KTV点歌系统\KTV\KTV\bin\
     目录           0  2019-08-22 16:38  07 KTV点歌系统\KTV\KTV\bin\Debug\
     文件       53248  2007-12-10 14:02  07 KTV点歌系统\KTV\KTV\bin\Debug\AxInterop.WMPLib.dll
     目录           0  2019-08-22 16:38  07 KTV点歌系统\KTV\KTV\bin\Debug\Database\
     文件      929792  2010-09-15 18:51  07 KTV点歌系统\KTV\KTV\bin\Debug\Database\db_KTV.mdb
     文件      281600  2010-09-13 21:48  07 KTV点歌系统\KTV\KTV\bin\Debug\Interop.WMPLib.dll
     文件      955904  2010-09-15 15:10  07 KTV点歌系统\KTV\KTV\bin\Debug\KTV.exe
     文件         852  2010-09-13 21:48  07 KTV点歌系统\KTV\KTV\bin\Debug\KTV.exe.config
     文件      206336  2010-09-15 15:10  07 KTV点歌系统\KTV\KTV\bin\Debug\KTV.pdb
     文件       11592  2010-09-15 19:08  07 KTV点歌系统\KTV\KTV\bin\Debug\KTV.vshost.exe
     文件         852  2010-09-13 21:48  07 KTV点歌系统\KTV\KTV\bin\Debug\KTV.vshost.exe.config
     文件         490  2010-03-17 22:39  07 KTV点歌系统\KTV\KTV\bin\Debug\KTV.vshost.exe.manifest
     文件        3100  2010-09-13 21:50  07 KTV点歌系统\KTV\KTV\DaiGe.cs
     文件        8580  2010-09-13 21:49  07 KTV点歌系统\KTV\KTV\DaiGe.Designer.cs
     文件        5814  2007-12-10 14:09  07 KTV点歌系统\KTV\KTV\DaiGe.resx
     目录           0  2019-08-22 16:38  07 KTV点歌系统\KTV\KTV\Database\
     文件          64  2010-09-15 19:08  07 KTV点歌系统\KTV\KTV\Database\db_KTV.ldb
     文件      929792  2010-09-15 18:51  07 KTV点歌系统\KTV\KTV\Database\db_KTV.mdb
     文件        2865  2010-09-13 21:49  07 KTV点歌系统\KTV\KTV\dictionary.cs
     文件        5833  2010-09-13 21:49  07 KTV点歌系统\KTV\KTV\dictionary.Designer.cs
     文件        5814  2007-12-04 14:28  07 KTV点歌系统\KTV\KTV\dictionary.resx
     文件        9167  2010-09-13 21:50  07 KTV点歌系统\KTV\KTV\KTV.csproj
............此处省略79个文件信息

评论

共有 条评论