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

📄 reportforms.cs

📁 为湖北省教委、湖北省就业指导中心订做的学历查询系统
💻 CS
📖 第 1 页 / 共 2 页
字号:
			this.button4.Click += new System.EventHandler(this.button4_Click);
			// 
			// button3
			// 
			this.button3.Location = new System.Drawing.Point(16, 184);
			this.button3.Name = "button3";
			this.button3.Size = new System.Drawing.Size(64, 23);
			this.button3.TabIndex = 10;
			this.button3.Text = "全部选择";
			this.button3.Click += new System.EventHandler(this.button3_Click);
			// 
			// ReportForms
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
			this.ClientSize = new System.Drawing.Size(306, 247);
			this.Controls.Add(this.button4);
			this.Controls.Add(this.button3);
			this.Controls.Add(this.button2);
			this.Controls.Add(this.button1);
			this.Controls.Add(this.label1);
			this.Controls.Add(this.groupBox1);
			this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
			this.MaximizeBox = false;
			this.MinimizeBox = false;
			this.Name = "ReportForms";
			this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
			this.Text = "打印报表设置";
			this.Load += new System.EventHandler(this.ReportForms_Load);
			this.groupBox1.ResumeLayout(false);
			this.ResumeLayout(false);

		}
		#endregion

		private void ReportForms_Load(object sender, System.EventArgs e)
		{
			XM = false;
			XB = false;
			CSRQ = false;
			CC = false;
			XLLX = false;
			XZ = false;
			YXMC = false;
			ZYMC = false;
			BYJL = false;
			RXRQ = false;
			BYSJ = false;
			ZSBH = false;
			LLRY = false;
			LLSJ = false;
			SHJG = false;
		}

		///
		/// <summary>
		/// 判断所要打印的
		/// </summary>
		private void SetValue( )
		{
			if (  cbXm.Checked == true )
			{
				XM = true;
			}
			if ( cbXb.Checked == true )
			{
				XB = true;
			}
			if ( cbCsrq.Checked == true )
			{
				CSRQ = true;
			}
			if ( cbCC.Checked == true )
			{
				CC = true;
			}
			if ( cbXllx.Checked == true )
			{
				XLLX = true;
			}
			if ( cbXz.Checked == true )
			{
				XZ = true;
			}
			if ( cbYxmc.Checked == true )
			{
				YXMC = true;
			}
			if ( cbZymc.Checked == true )
			{
				ZYMC = true;
			}
			if ( cbByjl.Checked == true )
			{
				BYJL = true;
			}
			if ( cbRxrq.Checked == true )
			{
				RXRQ = true;
			}
			if ( cbByrq.Checked == true )
			{
				BYSJ = true;
			}
			if ( cbZsbh.Checked == true )
			{
				ZSBH = true;
			}
			if ( cbLlry.Checked == true )
			{
				LLRY = true;
			}
			if ( cbLlsj.Checked == true )
			{
				LLSJ = true;
			}
			if ( cbShjg.Checked == true )
			{
				SHJG = true;
			}
		}

		/// <summary>
		/// 得到选择的项目
		/// </summary>
		/// <returns>数据集</returns>
		public static ArrayList GetSelect( )
		{
			ArrayList al = new ArrayList( );
			if (  XM == true )
			{
				al.Add("姓名");
			}
			if ( XB == true )
			{
				al.Add("性别");
			}
			if ( CSRQ == true )
			{
				al.Add("出生年月");
			}
			if ( CC == true )
			{
				al.Add("层次");
			}
			if ( XLLX == true )
			{
				al.Add("学历类型");
			}
			if ( XZ == true )
			{
				al.Add("学制");
			}
			if ( BYJL == true )
			{
				al.Add("毕业结论");
			}
			if ( RXRQ == true )
			{
				al.Add("入学日期");
			}
			if ( BYSJ == true )
			{
				al.Add("毕业时间");
			}
			if ( LLRY == true )
			{
				al.Add("录入人员");
			}
			if ( LLSJ == true )
			{
				al.Add("录入时间");
			}
			if ( SHJG == true )
			{
				al.Add("审核结果");
			}
			if ( ZYMC == true )
			{
				al.Add("专业名称");
			}
			if ( YXMC == true )
			{
				al.Add("院校名称");
			}
			if ( ZSBH == true )
			{
				al.Add("证书编号");
			}
			return al;
		}

		/// <summary>
		/// 返回选择个数
		/// </summary>
		/// <returns>选择个数</returns>
		private int GetMount( )
		{
			int counter = 0;
			if (  cbXm.Checked == true )
			{
				counter = counter + 1;
			}
			if ( cbXb.Checked == true )
			{
				counter = counter + 1;
			}
			if ( cbCsrq.Checked == true )
			{
				counter = counter + 1;
			}
			if ( cbCC.Checked == true )
			{
				counter = counter + 1;
			}
			if ( cbXllx.Checked == true )
			{
				counter = counter + 1;
			}
			if ( cbXz.Checked == true )
			{
				counter = counter + 1;
			}
			if ( cbYxmc.Checked == true )
			{
				counter = counter + 1;
			}
			if ( cbZymc.Checked == true )
			{
				counter = counter + 1;
			}
			if ( cbByjl.Checked == true )
			{
				counter = counter + 1;
			}
			if ( cbRxrq.Checked == true )
			{
				counter = counter + 1;
			}
			if ( cbByrq.Checked == true )
			{
				counter = counter + 1;
			}
			if ( cbZsbh.Checked == true )
			{
				counter = counter + 1;
			}
			if ( cbLlry.Checked == true )
			{
				counter = counter + 1;
			}
			if ( cbLlsj.Checked == true )
			{
				counter = counter + 1;
			}
			if ( cbShjg.Checked == true )
			{
				counter = counter + 1;
			}
			return counter;
			
		}
		private void button1_Click(object sender, System.EventArgs e)
		{
			if ( GetMount( ) > 7 )
			{
				XM = true;
				XB = true;
				CSRQ = true;
				CC = true;
				XLLX = true;
				XZ = true;
				YXMC = true;
				ZYMC = true;
				BYJL = true;
				RXRQ = true;
				BYSJ = true;
				ZSBH = true;
				LLRY = true;
				LLSJ = true;
				SHJG = true;
				hexiang = true;
			}
			else
			{
				SetValue( );
				hexiang = false;
			}
			
			this.DialogResult = DialogResult.OK;
		}

		private void button2_Click(object sender, System.EventArgs e)
		{
			this.DialogResult = DialogResult.Cancel;
		}

		private void button3_Click(object sender, System.EventArgs e)
		{
			cbByjl.Checked = true;
			cbByrq.Checked = true;
			cbCC.Checked = true;
			cbCsrq.Checked = true;
			cbLlry.Checked = true;
			cbLlsj.Checked = true;
			cbRxrq.Checked = true;
			cbShjg.Checked = true;
			cbXb.Checked = true;
			cbXllx.Checked = true;
			cbXm.Checked = true;
			cbXz.Checked = true;
			cbYxmc.Checked = true;
			cbZsbh.Checked = true;
			cbZymc.Checked = true;
		}

		private void button4_Click(object sender, System.EventArgs e)
		{
			cbByjl.Checked = false;
			cbByrq.Checked = false;
			cbCC.Checked = false;
			cbCsrq.Checked = false;
			cbLlry.Checked = false;
			cbLlsj.Checked = false;
			cbRxrq.Checked = false;
			cbShjg.Checked = false;
			cbXb.Checked = false;
			cbXllx.Checked = false;
			cbXm.Checked = false;
			cbXz.Checked = false;
			cbYxmc.Checked = false;
			cbZsbh.Checked = false;
			cbZymc.Checked = false;
		}
	}
}

⌨️ 快捷键说明

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