curriculum_design/SaleRecords.cs

(开头部分) 3KB

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

/********************************************
 *			 Made by MeiZhaoRui				*
 *			 2014年04月25日 更新				*
 *******************************************/

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

namespace curriculum_design
{
	public partial class SaleRecords : Form
	{
		DataSet ds;
		public SaleRecords()
		{
			InitializeComponent();
		}

		private void bt_find_Click(object sender, EventArgs e)
		{
			string select = string.Format("proc_select_SaleRecord_to_SaleRecords '{0}','{1}','{2}'", dtp_time.Text, tb_username.Text.Trim(), tb_SaleId.Text.Trim());
			new Thread(() =>
			{
				ds = Program.sqlManage.GetDataSet(select);
				if (ds.Tables[1].Rows.Count > 0)
				{
					Invoke(new Action(() =>
					{
						tb_username.Items.Clear();
						for (int i = 0; i < ds.Tables[1].Rows.Count; ++i)
						{
							tb_username.Items.Add(ds.Tables[1].Rows[i][0].ToString());
						}
						dataGridView1.Rows.Clear();

						ProgressForm pf = new ProgressForm();
						pf.Show();
						int n = 100 / ds.Tables[0].Rows.Count;
						pf.Step = n;
						for (int i = 0; i < ds.Tables[0].Rows.Count; ++i)
						{
							pf.PerformStep();
							int index = this.dataGridView1.Rows.Add();
							for (int j = 0; j < ds.Tables[0].Columns.Count; ++j)
							{
								dataGridView1.Rows[index].Cells[j].Value = ds.Tables[0].Rows[i][j].ToString().Trim();
							}
						}
						pf.PauseClose();
					}));
				}
				else
					Invoke(new Action(() =>
					{
						MsgBox.ShowExclamation("当日没有记录!");
					}));
			}).Start();
		}
后面还有 61 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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