curriculum_design/Methods.cs

(开头部分) 9KB

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

/****************************************
 *  此文件主要放置相应类中的非自动方法		*
 *										*
 *				2014-05-07				*
 * **************************************/

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

namespace curriculum_design
{
	partial class MM { }
	partial class AdminManip
	{
		private void update_dabase(Hashtable values)
		{
			if (Program.sqlManage.ExecuteNonQuery(SqlString.ToUpdateStr("Admins", OldValue, values)))
				MsgBox.ShowInfor("已" + button1.Text + "成功");
			else
				MsgBox.ShowError(button1.Text + "失败");
		}
		private void insert_database(Hashtable values)
		{
			if (Program.sqlManage.ExecuteNonQuery(SqlString.ToInsertStr("Admins", values)))
				MsgBox.ShowInfor("已" + button1.Text + "成功");
			else
				MsgBox.ShowError(button1.Text + "失败");
		}
	}

	partial class BookMain
	{

		private string GetSelectStr()
		{
			string selectStr = "select cISBN AS 'ISBN',vcBookName As '书名',vcClassName AS '分类'" +
				",vcPublishName AS '出版社',iTotal as '库存' from BookInfo where";
			if (Global.CheckStr(cISBN.Text.Trim()) != Global.CheckState.Empty)
				selectStr += " cISBN = '" + cISBN.Text.ToString().Trim() + "'   and";
			if (Global.CheckStr(vcBookName.Text.Trim()) == Global.CheckState.Correct)
				selectStr += " vcBookName like '%" + vcBookName.Text.ToString().Trim() + "%'   and";
			if (Global.CheckStr(CBB_BookClass.Text.Trim()) == Global.CheckState.Correct)
				selectStr += " vcClassName = '" + CBB_BookClass.Text.ToString().Trim() + "'   and";
			if (Global.CheckStr(CBB_Publish.Text.Trim()) == Global.CheckState.Correct)
				selectStr += " vcPublishName = '" + CBB_Publish.Text.ToString().Trim() + "'   and";
			selectStr = selectStr.Substring(0, selectStr.Length - 5);

			return selectStr;
		}
		private void updateDataGridView()
		{
			if (ds.Tables[0].Rows.Count > 0)
			{
				ProgressForm pf = new ProgressForm();
				int n = 100 / ds.Tables[0].Rows.Count;
				pf.Step = n;
				pf.Show();
				for (int i = 0; i < ds.Tables[0].Rows.Count; ++i)
后面还有 223 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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