亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? classscorequery.cs

?? C#編寫的學籍管理系統(tǒng)
?? CS
字號:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data.OleDb;
using System.Data;

namespace WindowsApplication1
{
	/// <summary>
	/// ClassScoreQuery 的摘要說明。
	/// </summary>
	public class ClassScoreQuery : System.Windows.Forms.Form
	{
		private System.Windows.Forms.GroupBox groupBox1;
		private System.Windows.Forms.TextBox textBox3;
		private System.Windows.Forms.NumericUpDown numericUpDown2;
		private System.Windows.Forms.Label label3;
		private System.Windows.Forms.Label label1;
		private System.Windows.Forms.TextBox textBox1;
		private System.Windows.Forms.Label label2;
		private System.Windows.Forms.NumericUpDown numericUpDown1;
		private System.Windows.Forms.TextBox textBox2;
		private System.Windows.Forms.Button button1;
		private System.Data.OleDb.OleDbConnection oleDbConnection1;
		private System.Windows.Forms.DataGrid dataGrid1;
		private System.Windows.Forms.Button button2;
		/// <summary>
		/// 必需的設計器變量。
		/// </summary>
		private System.ComponentModel.Container components = null;

		public ClassScoreQuery()
		{
			//
			// Windows 窗體設計器支持所必需的
			//
			InitializeComponent();

			//
			// TODO: 在 InitializeComponent 調用后添加任何構造函數(shù)代碼
			//
		}

		/// <summary>
		/// 清理所有正在使用的資源。
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if(components != null)
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		#region Windows 窗體設計器生成的代碼
		/// <summary>
		/// 設計器支持所需的方法 - 不要使用代碼編輯器修改
		/// 此方法的內容。
		/// </summary>
		private void InitializeComponent()
		{
			this.groupBox1 = new System.Windows.Forms.GroupBox();
			this.textBox3 = new System.Windows.Forms.TextBox();
			this.numericUpDown2 = new System.Windows.Forms.NumericUpDown();
			this.label3 = new System.Windows.Forms.Label();
			this.label1 = new System.Windows.Forms.Label();
			this.textBox1 = new System.Windows.Forms.TextBox();
			this.label2 = new System.Windows.Forms.Label();
			this.numericUpDown1 = new System.Windows.Forms.NumericUpDown();
			this.textBox2 = new System.Windows.Forms.TextBox();
			this.button1 = new System.Windows.Forms.Button();
			this.oleDbConnection1 = new System.Data.OleDb.OleDbConnection();
			this.dataGrid1 = new System.Windows.Forms.DataGrid();
			this.button2 = new System.Windows.Forms.Button();
			this.groupBox1.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)(this.numericUpDown2)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.dataGrid1)).BeginInit();
			this.SuspendLayout();
			// 
			// groupBox1
			// 
			this.groupBox1.Controls.Add(this.textBox3);
			this.groupBox1.Controls.Add(this.numericUpDown2);
			this.groupBox1.Controls.Add(this.label3);
			this.groupBox1.Controls.Add(this.label1);
			this.groupBox1.Controls.Add(this.textBox1);
			this.groupBox1.Controls.Add(this.label2);
			this.groupBox1.Controls.Add(this.numericUpDown1);
			this.groupBox1.Controls.Add(this.textBox2);
			this.groupBox1.Location = new System.Drawing.Point(11, 10);
			this.groupBox1.Name = "groupBox1";
			this.groupBox1.Size = new System.Drawing.Size(576, 62);
			this.groupBox1.TabIndex = 7;
			this.groupBox1.TabStop = false;
			this.groupBox1.Text = "查詢條件";
			// 
			// textBox3
			// 
			this.textBox3.Location = new System.Drawing.Point(459, 21);
			this.textBox3.Name = "textBox3";
			this.textBox3.Size = new System.Drawing.Size(53, 25);
			this.textBox3.TabIndex = 9;
			this.textBox3.Text = "2006";
			// 
			// numericUpDown2
			// 
			this.numericUpDown2.Location = new System.Drawing.Point(512, 21);
			this.numericUpDown2.Maximum = new System.Decimal(new int[] {
																		   2,
																		   0,
																		   0,
																		   0});
			this.numericUpDown2.Minimum = new System.Decimal(new int[] {
																		   1,
																		   0,
																		   0,
																		   0});
			this.numericUpDown2.Name = "numericUpDown2";
			this.numericUpDown2.Size = new System.Drawing.Size(43, 25);
			this.numericUpDown2.TabIndex = 7;
			this.numericUpDown2.Value = new System.Decimal(new int[] {
																		 1,
																		 0,
																		 0,
																		 0});
			// 
			// label3
			// 
			this.label3.AutoSize = true;
			this.label3.Location = new System.Drawing.Point(427, 24);
			this.label3.Name = "label3";
			this.label3.Size = new System.Drawing.Size(21, 21);
			this.label3.TabIndex = 4;
			this.label3.Text = "至";
			// 
			// label1
			// 
			this.label1.AutoSize = true;
			this.label1.Location = new System.Drawing.Point(21, 24);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(67, 21);
			this.label1.TabIndex = 0;
			this.label1.Text = "班級名稱";
			// 
			// textBox1
			// 
			this.textBox1.Location = new System.Drawing.Point(96, 21);
			this.textBox1.Name = "textBox1";
			this.textBox1.Size = new System.Drawing.Size(117, 25);
			this.textBox1.TabIndex = 2;
			this.textBox1.Text = "2004中文1班";
			// 
			// label2
			// 
			this.label2.AutoSize = true;
			this.label2.Location = new System.Drawing.Point(240, 24);
			this.label2.Name = "label2";
			this.label2.Size = new System.Drawing.Size(67, 21);
			this.label2.TabIndex = 1;
			this.label2.Text = "學期范圍";
			// 
			// numericUpDown1
			// 
			this.numericUpDown1.Location = new System.Drawing.Point(373, 21);
			this.numericUpDown1.Maximum = new System.Decimal(new int[] {
																		   2,
																		   0,
																		   0,
																		   0});
			this.numericUpDown1.Minimum = new System.Decimal(new int[] {
																		   1,
																		   0,
																		   0,
																		   0});
			this.numericUpDown1.Name = "numericUpDown1";
			this.numericUpDown1.Size = new System.Drawing.Size(43, 25);
			this.numericUpDown1.TabIndex = 6;
			this.numericUpDown1.Value = new System.Decimal(new int[] {
																		 1,
																		 0,
																		 0,
																		 0});
			// 
			// textBox2
			// 
			this.textBox2.Location = new System.Drawing.Point(320, 21);
			this.textBox2.Name = "textBox2";
			this.textBox2.Size = new System.Drawing.Size(53, 25);
			this.textBox2.TabIndex = 8;
			this.textBox2.Text = "2002";
			// 
			// button1
			// 
			this.button1.Location = new System.Drawing.Point(608, 31);
			this.button1.Name = "button1";
			this.button1.Size = new System.Drawing.Size(64, 31);
			this.button1.TabIndex = 6;
			this.button1.Text = "查詢";
			this.button1.Click += new System.EventHandler(this.button1_Click);
			// 
			// oleDbConnection1
			// 
			this.oleDbConnection1.ConnectionString = "Data Source=xsxxdb.mdb;Jet OLEDB:Engine Type=5;Provider=Microsoft.Jet." +
				"OLEDB.4.0;";
			// 
			// dataGrid1
			// 
			this.dataGrid1.AllowSorting = false;
			this.dataGrid1.CaptionBackColor = System.Drawing.SystemColors.ActiveCaptionText;
			this.dataGrid1.CaptionFont = new System.Drawing.Font("宋體", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.dataGrid1.CaptionForeColor = System.Drawing.SystemColors.Highlight;
			this.dataGrid1.DataMember = "";
			this.dataGrid1.HeaderForeColor = System.Drawing.SystemColors.ControlText;
			this.dataGrid1.Location = new System.Drawing.Point(11, 82);
			this.dataGrid1.Name = "dataGrid1";
			this.dataGrid1.PreferredColumnWidth = 100;
			this.dataGrid1.ReadOnly = true;
			this.dataGrid1.Size = new System.Drawing.Size(765, 334);
			this.dataGrid1.TabIndex = 8;
			// 
			// button2
			// 
			this.button2.Location = new System.Drawing.Point(704, 31);
			this.button2.Name = "button2";
			this.button2.Size = new System.Drawing.Size(64, 29);
			this.button2.TabIndex = 9;
			this.button2.Text = "退出";
			// 
			// ClassScoreQuery
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(8, 18);
			this.ClientSize = new System.Drawing.Size(786, 422);
			this.Controls.Add(this.button2);
			this.Controls.Add(this.dataGrid1);
			this.Controls.Add(this.groupBox1);
			this.Controls.Add(this.button1);
			this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
			this.Name = "ClassScoreQuery";
			this.Text = "班級成績查詢";
			this.groupBox1.ResumeLayout(false);
			((System.ComponentModel.ISupportInitialize)(this.numericUpDown2)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.dataGrid1)).EndInit();
			this.ResumeLayout(false);

		}
		#endregion

		public bool strisyear(string s)
		{
			if (s.Trim().Length!=4)
				return (false);
			else
			{
				int n=1;
				for (int i=0;i<=s.Length-1;i++)
				{
					if (!System.Char.IsNumber(s[i]))
					{
						n=-1;
						break;
					}
				}
				if (n==1)
					return (true);
				else
					return (false);
			}
		}

		private void button1_Click(object sender, System.EventArgs e)
		{
			if (!strisyear(textBox2.Text.Trim()) || !strisyear(textBox3.Text.Trim()))
				MessageBox.Show("年份輸入非法");
			else if (textBox1.Text.Trim()=="")
			{
				MessageBox.Show("班級名稱不能為空");
			}
			else if ( int.Parse(textBox2.Text.Trim())<= int.Parse(textBox3.Text.Trim()) && numericUpDown1.Value<=numericUpDown2.Value   )
			{
				string sql,xq1,xq2;
				xq1=textBox2.Text.Trim()+numericUpDown1.Value.ToString();
				xq2=textBox3.Text.Trim()+numericUpDown2.Value.ToString();
				//sql="select cstr(cint(xq/10))+'-'+cstr(cint(xq/10)+1)+'年度第'+cstr(xq mod 10)+'學期' as 學期 from cjxx inner join xsxx on cjxx.xuehao=xsxx.xuehao inner join bjxx on xsxx.bjbh=bjxx.bjbh where bjbh.bjmc='"+textBox1.Text.Trim()+"' and xq between '"+xq1+"'and '"+xq2+"' order by xq desc";
				sql="select 學期課程,count(學期課程) as 參加人數(shù),sum(score) as 總成績,avg(score) as 平均成績,max(score) as 最高分,min(score) as 最低分 from (select semester,'('+cstr(cint(semester/10))+'-'+cstr(cint(semester/10)+1)+'年度第'+cstr(semester mod 10)+'學期)'+scoreinfo.course as 學期課程,score from (scoreinfo inner join studentinfo on scoreinfo.studentnumber=studentinfo.studentnumber) inner join classinfo on studentinfo.classid=classinfo.classid where classinfo.classname='"+textBox1.Text.Trim()+"' and semester between '"+xq1+"'and '"+xq2+"' order by semester desc) as xqkc group by xqkc.學期課程";
				OleDbDataAdapter adp=new OleDbDataAdapter(sql,oleDbConnection1);
				DataSet ds=new DataSet();
				adp.Fill(ds,"class_score");
				if (ds.Tables["class_score"].Rows.Count!=0)
				{
					dataGrid1.DataSource=ds.Tables["class_score"].DefaultView;
					dataGrid1.CaptionText="共檢索出"+ds.Tables["class_score"].Rows.Count+"門課程";
					for (int i=0;i<=ds.Tables["class_score"].Rows.Count-1;i++)
						dataGrid1[i,0]=Convert.ToString((i+1)).Trim()+":"+dataGrid1[i,0].ToString();
				}
			}
		}



	}
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产欧美日韩三级| 午夜久久久久久电影| 1024精品合集| 国产自产高清不卡| 91丨九色丨国产丨porny| 国产日韩欧美不卡在线| 国模少妇一区二区三区| 欧美电影精品一区二区| 日韩国产欧美在线观看| 欧美另类高清zo欧美| 午夜精品久久久久久久久久久 | 韩日精品视频一区| 欧美岛国在线观看| 国产在线乱码一区二区三区| 精品三级av在线| 久久99深爱久久99精品| 日韩欧美在线网站| 久久精品国产第一区二区三区| 这里只有精品免费| 另类小说综合欧美亚洲| 精品国产自在久精品国产| 精品综合久久久久久8888| 欧美精品欧美精品系列| 免费在线成人网| 2021国产精品久久精品| 国产精品中文有码| ㊣最新国产の精品bt伙计久久| 国产伦精品一区二区三区免费| 久久久久久久久97黄色工厂| 波多野结衣亚洲一区| 亚洲久草在线视频| 欧美性videosxxxxx| 日韩国产在线观看一区| 制服丝袜一区二区三区| 狠狠v欧美v日韩v亚洲ⅴ| 国产精品色一区二区三区| 波多野结衣中文字幕一区| 亚洲综合精品自拍| 欧美一级黄色录像| 成人aa视频在线观看| 国产精品久久久久影院色老大| 色综合色综合色综合色综合色综合 | 国产精品青草久久| 色美美综合视频| 美女网站色91| 精品捆绑美女sm三区| 国产精品性做久久久久久| 亚洲天堂成人网| 日韩视频一区二区在线观看| 麻豆一区二区三| 亚洲日本护士毛茸茸| 日韩视频在线你懂得| 99久久婷婷国产| 首页亚洲欧美制服丝腿| 国产精品午夜免费| 欧美一区二区在线免费观看| 岛国一区二区在线观看| 日韩精品成人一区二区在线| 欧美一级在线视频| 一本色道久久综合亚洲精品按摩 | 91精品国产全国免费观看| 国产精一区二区三区| 午夜欧美在线一二页| 精品处破学生在线二十三| 91在线高清观看| 国产精品18久久久久久vr| 亚洲成人免费影院| 中文字幕一区二区日韩精品绯色| 欧美精品aⅴ在线视频| 99re热视频精品| 国产成人自拍高清视频在线免费播放| 亚洲小少妇裸体bbw| 国产人成亚洲第一网站在线播放| 91精品在线观看入口| 高清av一区二区| 精品一区二区在线看| 亚洲国产日韩a在线播放性色| 中文欧美字幕免费| 337p日本欧洲亚洲大胆色噜噜| 欧美日韩精品一区二区三区四区 | 亚洲欧美视频一区| 欧美激情一区二区| 欧美美女喷水视频| 在线观看亚洲成人| 99综合电影在线视频| 99r精品视频| 欧美在线小视频| 欧美精品第1页| 欧美va天堂va视频va在线| 精品99999| 国产精品看片你懂得| 中文字幕一区二区5566日韩| 国产精品久久久久永久免费观看 | 色猫猫国产区一区二在线视频| 色狠狠色狠狠综合| 欧美久久婷婷综合色| 宅男噜噜噜66一区二区66| 精品国产乱码久久久久久闺蜜| 欧美成人a在线| 国产精品久线观看视频| 一个色在线综合| 免费看欧美女人艹b| 国产精品亚洲а∨天堂免在线| 丁香网亚洲国际| 色欧美乱欧美15图片| 91精品国产一区二区三区香蕉 | 成人一区二区三区在线观看 | 午夜精品久久久久影视| 久久99热99| 99视频一区二区| 91精品欧美福利在线观看 | 国产精品美女一区二区| 亚洲影视在线播放| 久久se精品一区精品二区| 成人黄色av电影| 5858s免费视频成人| 久久综合色婷婷| 亚洲欧美另类在线| 免费视频最近日韩| 成人av在线观| 精品少妇一区二区三区在线播放 | 国产精品一二三区在线| 欧美一a一片一级一片| 精品奇米国产一区二区三区| 亚洲丝袜自拍清纯另类| 男人操女人的视频在线观看欧美| 岛国av在线一区| 欧美一二三四在线| 自拍偷自拍亚洲精品播放| 久久精品国产秦先生| 色诱亚洲精品久久久久久| 久久综合色鬼综合色| 亚洲国产精品尤物yw在线观看| 国内精品自线一区二区三区视频| 日本丶国产丶欧美色综合| 久久久国产一区二区三区四区小说 | 国产91高潮流白浆在线麻豆| 欧美午夜片在线看| 国产精品视频麻豆| 精品亚洲成a人| 337p亚洲精品色噜噜狠狠| 亚洲日本va午夜在线影院| 国模套图日韩精品一区二区| 欧美日韩视频在线一区二区| 国产欧美日韩久久| 久久99热这里只有精品| 欧美高清dvd| 亚洲日穴在线视频| eeuss影院一区二区三区| 久久青草欧美一区二区三区| 奇米影视在线99精品| 在线观看91精品国产入口| 国产精品视频在线看| 国产激情一区二区三区| 精品国产一区二区三区av性色| 日韩激情视频在线观看| 欧美三区在线观看| 亚洲女人小视频在线观看| 成人激情动漫在线观看| 国产视频911| 国产夫妻精品视频| 国产肉丝袜一区二区| 国产乱码精品一区二区三区五月婷| 欧美人与z0zoxxxx视频| 亚洲电影在线播放| 欧美偷拍一区二区| 亚洲国产成人av网| 欧美高清性hdvideosex| 午夜精品在线看| 日韩一级片在线播放| 免费人成在线不卡| 精品美女一区二区| 国产一区二区三区在线观看免费视频 | 色先锋aa成人| 亚洲国产视频在线| 欧美亚洲免费在线一区| 亚洲狼人国产精品| 在线视频亚洲一区| 日韩国产高清影视| 精品欧美乱码久久久久久| 精品一区二区在线免费观看| 久久精品网站免费观看| 成人午夜私人影院| 亚洲色图在线播放| 欧美丝袜自拍制服另类| 日韩极品在线观看| 久久久久亚洲综合| 成人精品高清在线| 亚洲一区二区三区视频在线 | 日韩免费性生活视频播放| 国产真实乱对白精彩久久| 国产精品色一区二区三区| 日本高清成人免费播放| 三级久久三级久久| 久久伊人蜜桃av一区二区| 91在线看国产| 日本女人一区二区三区| 国产午夜精品理论片a级大结局| 91丝袜呻吟高潮美腿白嫩在线观看| 亚洲成av人片在线观看|