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

📄 cdlgpay.cs

📁 本书主要介绍了从基础开始建立Portal的快速应用开发过程(RAD)的方法。通过本书你可以了解到关于Oracle 9iAS Portal产品的主要特性、入口的开发和组织、网络开发和管理、实际的关系型数
💻 CS
📖 第 1 页 / 共 2 页
字号:
using System;
using System.Data;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data.OracleClient;
using GlobleUtility;
namespace Charge
{
	/// <summary>
	/// CdlgPay 的摘要说明。
	/// </summary>
	public class CdlgPay : System.Windows.Forms.Form
	{
		private System.Windows.Forms.GroupBox groupBox1;
		private System.Windows.Forms.Label label1;
		private System.Windows.Forms.ComboBox cbbItem;//收费项目下拉框
		private System.Windows.Forms.GroupBox groupBox2;
		private System.Windows.Forms.RadioButton rbtStu;//"学生"单选钮
		private System.Windows.Forms.RadioButton rbtTec;//"教工"单选钮
		private System.Windows.Forms.Label label2;
		private System.Windows.Forms.TextBox txtSnum;//"学号"文本框
		private System.Windows.Forms.Label label3;
		private System.Windows.Forms.Label lbSname;//学生姓名标签
		private System.Windows.Forms.Label label5;
		private System.Windows.Forms.Label laSdept;//系标签
		private System.Windows.Forms.Label label7;
		private System.Windows.Forms.Label lbSclass;//班级标签
		private System.Windows.Forms.Label label9;
		private System.Windows.Forms.Label lbTname;//教工姓名标签
		private System.Windows.Forms.Label label11;
		private System.Windows.Forms.TextBox txtTnum;//"教工号"文本框
		private System.Windows.Forms.Label label4;
		private System.Windows.Forms.Label lbTdept;//教工部门标签
		private System.Windows.Forms.GroupBox groupBox3;
		private System.Windows.Forms.Label label6;
		private System.Windows.Forms.Label label8;
		private System.Windows.Forms.Label lbMoney;//应交金额标签
		private System.Windows.Forms.Button btnOK;//"得出应交金额"按钮
		private System.Windows.Forms.Button btnPay;//"交费"按钮

		private System.Collections.ArrayList ArrItemID = null;//用来装载项目ID号
		string  userid="";//用户ID
		//string  Tuserid="";//教工用户ID
		int     itemid;   //项目ID
		int     money;    //交费金额
		int     usertype;   //用户类型
		string  username;   //用户姓名
		/// <summary>
		/// 必需的设计器变量。
		/// </summary>
		private System.ComponentModel.Container components = null;

		public CdlgPay()
		{
			//
			// Windows 窗体设计器支持所必需的
			//
			InitializeComponent();

			//
			// TODO: 在 InitializeComponent 调用后添加任何构造函数代码
			//
			ArrItemID=new ArrayList();
			ArrItemID.Clear();
		}

		/// <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.cbbItem = new System.Windows.Forms.ComboBox();
			this.label1 = new System.Windows.Forms.Label();
			this.groupBox2 = new System.Windows.Forms.GroupBox();
			this.groupBox3 = new System.Windows.Forms.GroupBox();
			this.btnOK = new System.Windows.Forms.Button();
			this.lbMoney = new System.Windows.Forms.Label();
			this.label8 = new System.Windows.Forms.Label();
			this.label6 = new System.Windows.Forms.Label();
			this.lbTdept = new System.Windows.Forms.Label();
			this.label4 = new System.Windows.Forms.Label();
			this.txtTnum = new System.Windows.Forms.TextBox();
			this.label11 = new System.Windows.Forms.Label();
			this.lbTname = new System.Windows.Forms.Label();
			this.label9 = new System.Windows.Forms.Label();
			this.lbSclass = new System.Windows.Forms.Label();
			this.label7 = new System.Windows.Forms.Label();
			this.laSdept = new System.Windows.Forms.Label();
			this.label5 = new System.Windows.Forms.Label();
			this.lbSname = new System.Windows.Forms.Label();
			this.label3 = new System.Windows.Forms.Label();
			this.txtSnum = new System.Windows.Forms.TextBox();
			this.label2 = new System.Windows.Forms.Label();
			this.rbtTec = new System.Windows.Forms.RadioButton();
			this.rbtStu = new System.Windows.Forms.RadioButton();
			this.btnPay = new System.Windows.Forms.Button();
			this.groupBox1.SuspendLayout();
			this.groupBox2.SuspendLayout();
			this.groupBox3.SuspendLayout();
			this.SuspendLayout();
			// 
			// groupBox1
			// 
			this.groupBox1.Controls.Add(this.cbbItem);
			this.groupBox1.Controls.Add(this.label1);
			this.groupBox1.Location = new System.Drawing.Point(0, 8);
			this.groupBox1.Name = "groupBox1";
			this.groupBox1.Size = new System.Drawing.Size(576, 72);
			this.groupBox1.TabIndex = 0;
			this.groupBox1.TabStop = false;
			this.groupBox1.Text = "收费项目选择";
			// 
			// cbbItem
			// 
			this.cbbItem.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
			this.cbbItem.Location = new System.Drawing.Point(208, 32);
			this.cbbItem.Name = "cbbItem";
			this.cbbItem.Size = new System.Drawing.Size(152, 20);
			this.cbbItem.TabIndex = 1;
			// 
			// label1
			// 
			this.label1.Location = new System.Drawing.Point(128, 32);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(64, 23);
			this.label1.TabIndex = 0;
			this.label1.Text = "收费项目:";
			this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
			// 
			// groupBox2
			// 
			this.groupBox2.Controls.Add(this.groupBox3);
			this.groupBox2.Controls.Add(this.lbTdept);
			this.groupBox2.Controls.Add(this.label4);
			this.groupBox2.Controls.Add(this.txtTnum);
			this.groupBox2.Controls.Add(this.label11);
			this.groupBox2.Controls.Add(this.lbTname);
			this.groupBox2.Controls.Add(this.label9);
			this.groupBox2.Controls.Add(this.lbSclass);
			this.groupBox2.Controls.Add(this.label7);
			this.groupBox2.Controls.Add(this.laSdept);
			this.groupBox2.Controls.Add(this.label5);
			this.groupBox2.Controls.Add(this.lbSname);
			this.groupBox2.Controls.Add(this.label3);
			this.groupBox2.Controls.Add(this.txtSnum);
			this.groupBox2.Controls.Add(this.label2);
			this.groupBox2.Controls.Add(this.rbtTec);
			this.groupBox2.Controls.Add(this.rbtStu);
			this.groupBox2.Location = new System.Drawing.Point(0, 88);
			this.groupBox2.Name = "groupBox2";
			this.groupBox2.Size = new System.Drawing.Size(576, 312);
			this.groupBox2.TabIndex = 1;
			this.groupBox2.TabStop = false;
			this.groupBox2.Text = "收费对象选择";
			// 
			// groupBox3
			// 
			this.groupBox3.Controls.Add(this.btnOK);
			this.groupBox3.Controls.Add(this.lbMoney);
			this.groupBox3.Controls.Add(this.label8);
			this.groupBox3.Controls.Add(this.label6);
			this.groupBox3.Location = new System.Drawing.Point(0, 240);
			this.groupBox3.Name = "groupBox3";
			this.groupBox3.Size = new System.Drawing.Size(576, 72);
			this.groupBox3.TabIndex = 16;
			this.groupBox3.TabStop = false;
			this.groupBox3.Text = "应交金额";
			// 
			// btnOK
			// 
			this.btnOK.Location = new System.Drawing.Point(440, 32);
			this.btnOK.Name = "btnOK";
			this.btnOK.Size = new System.Drawing.Size(104, 23);
			this.btnOK.TabIndex = 3;
			this.btnOK.Text = "得出应交金额";
			this.btnOK.Click += new System.EventHandler(this.btnOK_Click);
			// 
			// lbMoney
			// 
			this.lbMoney.Location = new System.Drawing.Point(264, 32);
			this.lbMoney.Name = "lbMoney";
			this.lbMoney.Size = new System.Drawing.Size(88, 23);
			this.lbMoney.TabIndex = 2;
			this.lbMoney.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// label8
			// 
			this.label8.Location = new System.Drawing.Point(368, 32);
			this.label8.Name = "label8";
			this.label8.Size = new System.Drawing.Size(24, 23);
			this.label8.TabIndex = 1;
			this.label8.Text = "元";
			this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// label6
			// 
			this.label6.Location = new System.Drawing.Point(160, 32);
			this.label6.Name = "label6";
			this.label6.Size = new System.Drawing.Size(80, 23);
			this.label6.TabIndex = 0;
			this.label6.Text = "此用户应交:";
			this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// lbTdept
			// 
			this.lbTdept.Location = new System.Drawing.Point(400, 149);
			this.lbTdept.Name = "lbTdept";
			this.lbTdept.TabIndex = 15;
			this.lbTdept.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
			// 
			// label4
			// 
			this.label4.Location = new System.Drawing.Point(328, 149);
			this.label4.Name = "label4";
			this.label4.Size = new System.Drawing.Size(64, 23);
			this.label4.TabIndex = 14;
			this.label4.Text = "部门:";
			this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// txtTnum
			// 
			this.txtTnum.Enabled = false;
			this.txtTnum.Location = new System.Drawing.Point(400, 64);
			this.txtTnum.Name = "txtTnum";
			this.txtTnum.Size = new System.Drawing.Size(136, 21);
			this.txtTnum.TabIndex = 13;
			this.txtTnum.Text = "";
			// 
			// label11
			// 
			this.label11.Location = new System.Drawing.Point(328, 107);
			this.label11.Name = "label11";
			this.label11.Size = new System.Drawing.Size(56, 23);
			this.label11.TabIndex = 12;
			this.label11.Text = "姓名:";
			this.label11.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// lbTname
			// 
			this.lbTname.Location = new System.Drawing.Point(400, 107);
			this.lbTname.Name = "lbTname";
			this.lbTname.TabIndex = 11;
			this.lbTname.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
			// 
			// label9
			// 
			this.label9.Location = new System.Drawing.Point(328, 64);
			this.label9.Name = "label9";
			this.label9.Size = new System.Drawing.Size(64, 23);
			this.label9.TabIndex = 10;
			this.label9.Text = "教工号:";
			this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// lbSclass
			// 
			this.lbSclass.Location = new System.Drawing.Point(144, 191);
			this.lbSclass.Name = "lbSclass";
			this.lbSclass.Size = new System.Drawing.Size(128, 23);
			this.lbSclass.TabIndex = 9;
			this.lbSclass.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
			// 
			// label7
			// 
			this.label7.Location = new System.Drawing.Point(72, 191);
			this.label7.Name = "label7";
			this.label7.Size = new System.Drawing.Size(64, 23);
			this.label7.TabIndex = 8;
			this.label7.Text = "班级:";
			this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// laSdept
			// 
			this.laSdept.Location = new System.Drawing.Point(144, 149);
			this.laSdept.Name = "laSdept";
			this.laSdept.Size = new System.Drawing.Size(128, 23);
			this.laSdept.TabIndex = 7;
			this.laSdept.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
			// 
			// label5
			// 
			this.label5.Location = new System.Drawing.Point(72, 149);
			this.label5.Name = "label5";
			this.label5.Size = new System.Drawing.Size(56, 23);
			this.label5.TabIndex = 6;
			this.label5.Text = "系:";
			this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// lbSname
			// 
			this.lbSname.Location = new System.Drawing.Point(144, 107);
			this.lbSname.Name = "lbSname";
			this.lbSname.Size = new System.Drawing.Size(128, 23);
			this.lbSname.TabIndex = 5;
			this.lbSname.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
			// 
			// label3
			// 
			this.label3.Location = new System.Drawing.Point(72, 106);
			this.label3.Name = "label3";
			this.label3.Size = new System.Drawing.Size(48, 24);
			this.label3.TabIndex = 4;
			this.label3.Text = "姓名:";
			this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// txtSnum
			// 
			this.txtSnum.Enabled = false;
			this.txtSnum.Location = new System.Drawing.Point(136, 65);
			this.txtSnum.Name = "txtSnum";
			this.txtSnum.Size = new System.Drawing.Size(136, 21);
			this.txtSnum.TabIndex = 3;
			this.txtSnum.Text = "";
			// 
			// label2
			// 
			this.label2.Location = new System.Drawing.Point(72, 64);
			this.label2.Name = "label2";
			this.label2.Size = new System.Drawing.Size(40, 23);
			this.label2.TabIndex = 2;
			this.label2.Text = "学号:";
			this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// rbtTec
			// 

⌨️ 快捷键说明

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