⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 frmresult.cs

📁 考试管理系统CS架构 不需更多说明
💻 CS
📖 第 1 页 / 共 2 页
字号:
			this.panel4.Controls.Add(this.label5);
			this.panel4.Controls.Add(this.label4);
			this.panel4.Controls.Add(this.label3);
			this.panel4.Controls.Add(this.label2);
			this.panel4.Controls.Add(this.label1);
			this.panel4.Dock = System.Windows.Forms.DockStyle.Bottom;
			this.panel4.Location = new System.Drawing.Point(0, 141);
			this.panel4.Name = "panel4";
			this.panel4.Size = new System.Drawing.Size(316, 240);
			this.panel4.TabIndex = 7;
			// 
			// labScor5
			// 
			this.labScor5.Location = new System.Drawing.Point(262, 6);
			this.labScor5.Name = "labScor5";
			this.labScor5.Size = new System.Drawing.Size(36, 16);
			this.labScor5.TabIndex = 20;
			this.labScor5.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
			// 
			// labScor4
			// 
			this.labScor4.Location = new System.Drawing.Point(200, 6);
			this.labScor4.Name = "labScor4";
			this.labScor4.Size = new System.Drawing.Size(36, 16);
			this.labScor4.TabIndex = 19;
			this.labScor4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
			// 
			// labScor3
			// 
			this.labScor3.Location = new System.Drawing.Point(138, 6);
			this.labScor3.Name = "labScor3";
			this.labScor3.Size = new System.Drawing.Size(36, 16);
			this.labScor3.TabIndex = 18;
			this.labScor3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
			// 
			// labScor2
			// 
			this.labScor2.Location = new System.Drawing.Point(76, 6);
			this.labScor2.Name = "labScor2";
			this.labScor2.Size = new System.Drawing.Size(36, 16);
			this.labScor2.TabIndex = 17;
			this.labScor2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
			// 
			// labScor1
			// 
			this.labScor1.Location = new System.Drawing.Point(14, 6);
			this.labScor1.Name = "labScor1";
			this.labScor1.Size = new System.Drawing.Size(36, 16);
			this.labScor1.TabIndex = 16;
			this.labScor1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
			// 
			// pan5
			// 
			this.pan5.BackColor = System.Drawing.Color.Fuchsia;
			this.pan5.Location = new System.Drawing.Point(272, 30);
			this.pan5.Name = "pan5";
			this.pan5.Size = new System.Drawing.Size(18, 190);
			this.pan5.TabIndex = 15;
			// 
			// pan4
			// 
			this.pan4.BackColor = System.Drawing.Color.Lime;
			this.pan4.Location = new System.Drawing.Point(212, 140);
			this.pan4.Name = "pan4";
			this.pan4.Size = new System.Drawing.Size(18, 82);
			this.pan4.TabIndex = 14;
			// 
			// pan3
			// 
			this.pan3.BackColor = System.Drawing.Color.Blue;
			this.pan3.Location = new System.Drawing.Point(148, 152);
			this.pan3.Name = "pan3";
			this.pan3.Size = new System.Drawing.Size(18, 70);
			this.pan3.TabIndex = 13;
			// 
			// pan2
			// 
			this.pan2.BackColor = System.Drawing.Color.Yellow;
			this.pan2.Location = new System.Drawing.Point(88, 160);
			this.pan2.Name = "pan2";
			this.pan2.Size = new System.Drawing.Size(18, 62);
			this.pan2.TabIndex = 12;
			// 
			// pan1
			// 
			this.pan1.BackColor = System.Drawing.Color.Red;
			this.pan1.Location = new System.Drawing.Point(24, 110);
			this.pan1.Name = "pan1";
			this.pan1.Size = new System.Drawing.Size(18, 110);
			this.pan1.TabIndex = 11;
			// 
			// label5
			// 
			this.label5.Location = new System.Drawing.Point(262, 222);
			this.label5.Name = "label5";
			this.label5.Size = new System.Drawing.Size(44, 16);
			this.label5.TabIndex = 10;
			this.label5.Text = "90以上";
			this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
			// 
			// label4
			// 
			this.label4.Location = new System.Drawing.Point(200, 222);
			this.label4.Name = "label4";
			this.label4.Size = new System.Drawing.Size(44, 16);
			this.label4.TabIndex = 9;
			this.label4.Text = "80-90";
			this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
			// 
			// label3
			// 
			this.label3.Location = new System.Drawing.Point(138, 222);
			this.label3.Name = "label3";
			this.label3.Size = new System.Drawing.Size(44, 16);
			this.label3.TabIndex = 8;
			this.label3.Text = "70-80";
			this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
			// 
			// label2
			// 
			this.label2.Location = new System.Drawing.Point(76, 222);
			this.label2.Name = "label2";
			this.label2.Size = new System.Drawing.Size(44, 16);
			this.label2.TabIndex = 7;
			this.label2.Text = "60-70";
			this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
			// 
			// label1
			// 
			this.label1.Location = new System.Drawing.Point(14, 222);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(44, 16);
			this.label1.TabIndex = 6;
			this.label1.Text = "60以下";
			this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
			// 
			// btnDetile
			// 
			this.btnDetile.Dock = System.Windows.Forms.DockStyle.Right;
			this.btnDetile.Location = new System.Drawing.Point(416, 0);
			this.btnDetile.Name = "btnDetile";
			this.btnDetile.Size = new System.Drawing.Size(12, 381);
			this.btnDetile.TabIndex = 2;
			this.btnDetile.Text = "<";
			this.btnDetile.Click += new System.EventHandler(this.btnDetile_Click);
			// 
			// panel1
			// 
			this.panel1.Controls.Add(this.dlvResult);
			this.panel1.Controls.Add(this.panel3);
			this.panel1.Dock = System.Windows.Forms.DockStyle.Fill;
			this.panel1.Location = new System.Drawing.Point(102, 0);
			this.panel1.Name = "panel1";
			this.panel1.Size = new System.Drawing.Size(314, 381);
			this.panel1.TabIndex = 3;
			// 
			// dlvResult
			// 
			this.dlvResult.AutoColumnsWidth = true;
			this.dlvResult.BindTable = null;
			this.dlvResult.ColumnsWidth = 100;
			this.dlvResult.Dock = System.Windows.Forms.DockStyle.Fill;
			this.dlvResult.FullRowSelect = true;
			this.dlvResult.LineNumWidth = 50;
			this.dlvResult.Location = new System.Drawing.Point(0, 46);
			this.dlvResult.MultiSelect = false;
			this.dlvResult.Name = "dlvResult";
			this.dlvResult.SelectedColor = System.Drawing.SystemColors.Desktop;
			this.dlvResult.Size = new System.Drawing.Size(314, 335);
			this.dlvResult.TabIndex = 1;
			this.dlvResult.View = System.Windows.Forms.View.Details;
			this.dlvResult.DoubleClick += new System.EventHandler(this.dlvResult_DoubleClick);
			// 
			// panel3
			// 
			this.panel3.Controls.Add(this.button2);
			this.panel3.Controls.Add(this.cmbExam);
			this.panel3.Controls.Add(this.label10);
			this.panel3.Dock = System.Windows.Forms.DockStyle.Top;
			this.panel3.Location = new System.Drawing.Point(0, 0);
			this.panel3.Name = "panel3";
			this.panel3.Size = new System.Drawing.Size(314, 46);
			this.panel3.TabIndex = 0;
			// 
			// button2
			// 
			this.button2.Location = new System.Drawing.Point(222, 12);
			this.button2.Name = "button2";
			this.button2.Size = new System.Drawing.Size(64, 22);
			this.button2.TabIndex = 2;
			this.button2.Text = "查询";
			this.button2.Click += new System.EventHandler(this.button2_Click);
			// 
			// cmbExam
			// 
			this.cmbExam.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
			this.cmbExam.Location = new System.Drawing.Point(48, 12);
			this.cmbExam.Name = "cmbExam";
			this.cmbExam.Size = new System.Drawing.Size(154, 20);
			this.cmbExam.TabIndex = 1;
			this.cmbExam.SelectedIndexChanged += new System.EventHandler(this.cmbExam_SelectedIndexChanged);
			// 
			// label10
			// 
			this.label10.Location = new System.Drawing.Point(16, 16);
			this.label10.Name = "label10";
			this.label10.Size = new System.Drawing.Size(42, 16);
			this.label10.TabIndex = 0;
			this.label10.Text = "考试:";
			// 
			// panel10
			// 
			this.panel10.Controls.Add(this.tvClass);
			this.panel10.Controls.Add(this.label13);
			this.panel10.Dock = System.Windows.Forms.DockStyle.Left;
			this.panel10.Location = new System.Drawing.Point(0, 0);
			this.panel10.Name = "panel10";
			this.panel10.Size = new System.Drawing.Size(102, 381);
			this.panel10.TabIndex = 5;
			// 
			// tvClass
			// 
			this.tvClass.Dock = System.Windows.Forms.DockStyle.Fill;
			this.tvClass.ImageIndex = -1;
			this.tvClass.Location = new System.Drawing.Point(0, 20);
			this.tvClass.Name = "tvClass";
			this.tvClass.SelectedImageIndex = -1;
			this.tvClass.Size = new System.Drawing.Size(102, 361);
			this.tvClass.TabIndex = 2;
			this.tvClass.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.tvClass_AfterSelect);
			// 
			// label13
			// 
			this.label13.BackColor = System.Drawing.SystemColors.Desktop;
			this.label13.Dock = System.Windows.Forms.DockStyle.Top;
			this.label13.Location = new System.Drawing.Point(0, 0);
			this.label13.Name = "label13";
			this.label13.Size = new System.Drawing.Size(102, 20);
			this.label13.TabIndex = 1;
			this.label13.Text = "班级列表";
			this.label13.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// FrmResult
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
			this.ClientSize = new System.Drawing.Size(744, 381);
			this.Controls.Add(this.panel1);
			this.Controls.Add(this.panel10);
			this.Controls.Add(this.btnDetile);
			this.Controls.Add(this.panDetile);
			this.Name = "FrmResult";
			this.Text = "查询成绩";
			this.Load += new System.EventHandler(this.FrmResult_Load);
			this.panDetile.ResumeLayout(false);
			this.panel5.ResumeLayout(false);
			this.panel11.ResumeLayout(false);
			this.panel4.ResumeLayout(false);
			this.panel1.ResumeLayout(false);
			this.panel3.ResumeLayout(false);
			this.panel10.ResumeLayout(false);
			this.ResumeLayout(false);

		}
		#endregion

		private void FrmResult_Load(object sender, System.EventArgs e)
		{
			initPansArray();
			fillClass();
			clearScoreDetile();
		}

		private void tvClass_AfterSelect(object sender, System.Windows.Forms.TreeViewEventArgs e)
		{
			TreeNode tmpNode=e.Node;
			if(tmpNode.Parent!=null)
			{
				fillResult(tmpNode.Text);
			}
		}

		private void cmbExam_SelectedIndexChanged(object sender, System.EventArgs e)
		{
			

		}

		private void button2_Click(object sender, System.EventArgs e)
		{
			if(cmbExam.SelectedIndex>=0)
			{
				int examID=(int)cmbExam.SelectedValue;
				ResultFac resFac=new ResultFac();
				DataSet ds=resFac.getResult(-1,-1,examID,-1,"");
				dtResult=ds.Tables[0];
				filldlv(dtResult);
				fillScoreDetile();
			}
		}

		private void dlvResult_DoubleClick(object sender, System.EventArgs e)
		{
			if(dlvResult.SelectedIndices.Count<=0)
			{
				return;
			}
			int index=dlvResult.SelectedIndices[0];
			if(index<0)
			{
				return;
			}
			ResultFac resFac=new ResultFac();
			int resID=Convert.ToInt32(dtResult.Rows[index][0]);
			DataSet ds=resFac.getResultDetile(resID,-1,-1,-1,"");
			if(ds.Tables[0].Rows.Count<=0)
			{
				MessageBox.Show("找不到成绩","错误",MessageBoxButtons.OK,MessageBoxIcon.Information);
				return;
			}
			string res=ds.Tables[0].Rows[0][0].ToString();
			if(res.Length<=0)
			{
				MessageBox.Show("找不到成绩","错误",MessageBoxButtons.OK,MessageBoxIcon.Information);
				return;
			}
			string root=Application.StartupPath+@"\bak\bak.htm";
			ResultCreater.saveResult(res,root);
			FrmView frmView=new FrmView();
			frmView.MdiParent=this.MdiParent;
			frmView.Show();
			frmView.linkFile(root);
		}

		private void btnDetile_Click(object sender, System.EventArgs e)
		{
			if(btnDetile.Text=="<")
			{
				panDetile.Visible=false;
				this.Width-=panDetile.Width-5;
				
				btnDetile.Text=">";
			}
			else
			{
				panDetile.Visible=true;
				this.Width+=panDetile.Width-5;
				btnDetile.Text="<";
			}
		}
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -