curriculum_design/Receptionist.cs

(开头部分) 6KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

/********************************************
 *			 Made by MeiZhaoRui				*
 *			 2014年05月05日 更新				*
 *******************************************/

using System;
using System.Data;
using System.Threading;
using System.Collections;
using System.Windows.Forms;

namespace curriculum_design
{
	public partial class Receptionist : Form
	{
		static ArrayList hotkeys = new ArrayList 
		{
			0/*help	 */, 0/*isbn  */, 0/*sum */, 0/*pay   */, 0/*memId*/,
			0/*record*/, 0/*cancel*/, 0/*undo*/, 0/*sum++ */, 0/*sum--*/
		};
		decimal dTotal = 0, dPay = 0, Discount = 1;
		Hashtable stock = new Hashtable();
		public bool TSBIsVisiable
		{
			set { toolStripButton1.Visible = value; }
		}
		public Receptionist()
		{
			InitializeComponent();
			label5.Text = Global.zeroFormatStr;
		}
		
		private void Receptionist_Load(object sender, EventArgs e)
		{
			Global.ShowCloseOption = true;
			RegisterHotkeys();
		}

		private void Receptionist_FormClosed(object sender, FormClosedEventArgs e)
		{
			hotkey.UnRegisterHotkeys();
		}
		private void ISBN_KeyPress(object sender, KeyPressEventArgs e)
		{
			Global.cISBN_Check(ref tb_isbn, ref e);
			Total_KeyPress(null, e);
		}
		const string SelectWhereISBN = " proc_select_BookInfo_to_Receptionist '{0}'";
		private int kucun
		{
			set { tb_kucun.Text = Convert.ToString(value); }
			get { return int.Parse(tb_kucun.Text); }
		}
		private void Total_KeyPress(object sender, KeyPressEventArgs e)
		{
			if (e.KeyChar == 13)
			{
				string selectStr = string.Format(SelectWhereISBN, tb_isbn.Text.ToString().Trim());
				DataSet ds = Program.sqlManage.GetDataSet(selectStr);
				kucun = int.Parse(ds.Tables[0].Rows[0][3].ToString().Trim()/*书数*/);
后面还有 128 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。