91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 115KB
    文件類型: .zip
    金幣: 2
    下載: 1 次
    發布日期: 2021-08-01
  • 語言: C#
  • 標簽: 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?WindowsFormsApplication1
{
????public?partial?class?Form1?:?Form
????{
????????public?Form1()
????????{
????????????InitializeComponent();
????????}
????????private?void?radioButton1_CheckedChanged(object?sender?EventArgs?e)
????????{

????????}

????????private?void?button1_Click(object?sender?EventArgs?e)
????????{
????????????string?s?=?““;
????????????int?ok?=1;
????????????SqlConnection?conn?=?new?SqlConnection();
????????????conn.ConnectionString?=“?Data?Source=DESKTOP-OA96K2A;Initial?Catalog=課程設計;Integrated?Security=True“;
????????????conn.Open();//連接數據庫
????????????//管理員
????????????if?(radioButton1.Checked)
????????????{
????????????????s?=?“select?*?from?Admin“;
????????????????SqlCommand?cmd?=?new?SqlCommand(s?conn);
????????????????SqlDataReader?dr?=?cmd.ExecuteReader();
????????????????while(dr.Read())
????????????????{
????????????????????if?(dr[0].ToString().Trim().Equals(textBox1.Text.Trim())?&&?dr[1].ToString().Trim().Equals(textBox2.Text.Trim()))//用戶名和密碼都正確
??????????????????{
????????????????????MessageBox.Show(“登錄成功!“?“提示“);
????????????????????ok?=?0;
???????????????????
????????????????????Form2?f2?=?new?Form2();
????????????????????f2.Show();

??????????????????}
????????????????}
????????????????if(ok==1)
????????????????{
????????????????????MessageBox.Show(“密碼或用戶名錯誤!“?“提示“);
????????????????????textBox1.Text?=?““;
????????????????????textBox2.Text?=?““;
????????????????????radioButton1.Checked?=?false;
????????????????}
????????????????dr.Close();
????????????}
????????????//普通用戶
????????????if?(radioButton2.Checked)
????????????{
????????????????
????????????????s?=?“select?*?from?Yonghu“;
????????????????SqlCommand?cmd?=?new?SqlCommand(s?conn);
????????????????SqlDataReader?dr?=?cmd.ExecuteReader();
????????????????
????????????????while(dr.Read())
????????????????{

????????????????????if?(dr[0].ToString().Trim().Equals(textBox1.Text.Trim())?&&?dr[1].ToString().Trim().Equals(textBox2.Text.Trim()))//用戶名和密碼都正確
????????????????????{
????????????????????????MessageBox.Show(“登錄成功!“?“提示“);
????????????????????????ok?=?0;
????????????????????????Form3?f3?=?new?Form3();
????????????????????????f3.Show();
????????????????????????}
????????????????}
????????????????
???????????????if(ok?==1)
????????????????{
????????????????????MessageBox.Show(“密碼或用戶名錯誤!“?“提示“);
????????????????????textBox1.Text?=?““;
????????????????????textBox2.Text?=?““;
????????????????????radioButton2.Checked?=?false;
????????????????}
????????????}

????????}

????????private?void?radioButton2_CheckedChanged(object?sender?EventArgs?e)
????????{

????????}

????????private?void?button2_Click(object?sender

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2016-12-16?15:21??WindowsFormsApplication1\
?????目錄???????????0??2016-12-16?15:51??WindowsFormsApplication1\TestResults\
?????目錄???????????0??2016-12-16?11:53??WindowsFormsApplication1\WindowsFormsApplication1\
?????文件?????????187??2016-12-08?22:56??WindowsFormsApplication1\WindowsFormsApplication1\App.config
?????文件??????????60??2016-12-09?19:15??WindowsFormsApplication1\WindowsFormsApplication1\ClassDiagram1.cd
?????文件????????7365??2016-12-13?22:26??WindowsFormsApplication1\WindowsFormsApplication1\Form1.Designer.cs
?????文件????????3526??2016-12-14?21:49??WindowsFormsApplication1\WindowsFormsApplication1\Form1.cs
?????文件????????5817??2016-12-12?16:32??WindowsFormsApplication1\WindowsFormsApplication1\Form1.resx
?????文件????????5308??2016-12-13?20:27??WindowsFormsApplication1\WindowsFormsApplication1\Form2.Designer.cs
?????文件????????1386??2016-12-14?21:49??WindowsFormsApplication1\WindowsFormsApplication1\Form2.cs
?????文件????????5817??2016-12-13?20:27??WindowsFormsApplication1\WindowsFormsApplication1\Form2.resx
?????文件????????7837??2016-12-13?20:26??WindowsFormsApplication1\WindowsFormsApplication1\Form3.Designer.cs
?????文件????????2683??2016-12-14?22:23??WindowsFormsApplication1\WindowsFormsApplication1\Form3.cs
?????文件????????5817??2016-12-14?21:18??WindowsFormsApplication1\WindowsFormsApplication1\Form3.resx
?????文件???????10073??2016-12-13?20:50??WindowsFormsApplication1\WindowsFormsApplication1\Form4.Designer.cs
?????文件????????4729??2016-12-15?22:05??WindowsFormsApplication1\WindowsFormsApplication1\Form4.cs
?????文件????????5817??2016-12-13?22:26??WindowsFormsApplication1\WindowsFormsApplication1\Form4.resx
?????文件????????7112??2016-12-13?20:25??WindowsFormsApplication1\WindowsFormsApplication1\Form5.Designer.cs
?????文件????????2576??2016-12-14?21:49??WindowsFormsApplication1\WindowsFormsApplication1\Form5.cs
?????文件????????5817??2016-12-13?20:25??WindowsFormsApplication1\WindowsFormsApplication1\Form5.resx
?????文件????????6835??2016-12-15?20:37??WindowsFormsApplication1\WindowsFormsApplication1\Form6.Designer.cs
?????文件????????2627??2016-12-15?20:37??WindowsFormsApplication1\WindowsFormsApplication1\Form6.cs
?????文件????????5817??2016-12-15?20:37??WindowsFormsApplication1\WindowsFormsApplication1\Form6.resx
?????文件?????????536??2016-12-08?22:56??WindowsFormsApplication1\WindowsFormsApplication1\Program.cs
?????目錄???????????0??2016-12-16?11:53??WindowsFormsApplication1\WindowsFormsApplication1\Properties\
?????文件????????1368??2016-12-08?22:56??WindowsFormsApplication1\WindowsFormsApplication1\Properties\AssemblyInfo.cs
?????文件????????2900??2016-12-08?22:56??WindowsFormsApplication1\WindowsFormsApplication1\Properties\Resources.Designer.cs
?????文件????????5612??2016-12-08?22:56??WindowsFormsApplication1\WindowsFormsApplication1\Properties\Resources.resx
?????文件????????1111??2016-12-08?22:56??WindowsFormsApplication1\WindowsFormsApplication1\Properties\Settings.Designer.cs
?????文件?????????249??2016-12-08?22:56??WindowsFormsApplication1\WindowsFormsApplication1\Properties\Settings.settings
?????文件????????5388??2016-12-13?20:37??WindowsFormsApplication1\WindowsFormsApplication1\WindowsFormsApplication1.csproj
............此處省略31個文件信息

評論

共有 條評論