private void MainForm_Load(object sender, EventArgs e) { toolStrip1.Visible = true; groupBox1.Visible = true; groupBox1.Text = "今日借用信息"; Dgv.Visible = true; Dgv.DataSource = BLL.BLL.Dgv_Source(DAL.DAL.SelectString("*", "TodayBorrow", string.Empty)); Dgv.Columns[0].Visible = false; Dgv.Columns[1].HeaderCell.Value = "器械名称"; Dgv.Columns[2].HeaderCell.Value = "借用时间"; Dgv.Columns[3].HeaderCell.Value = "借用数量"; Dgv.Columns[4].HeaderCell.Value = "归还时间"; Dgv.Columns[5].HeaderCell.Value = "借用人"; Dgv.Columns[6].HeaderCell.Value = "联系电话"; if (BLL.BLL.Set_Login_Pwd_Test(Pwd) == true) { MessageBox.Show("初次使用设置密码!", "安全提示"); NewSetPwdForm newSetPwdForm = new NewSetPwdForm(Pwd); newSetPwdForm.ShowDialog(); } if (BLL.BLL.Set_Login_Test(Pwd) == false) { MessageBox.Show("初次使用,请设置软件设置!"); SetForm setForm = new SetForm(Pwd); setForm.ShowDialog(); } }
private void 设置器械类型ToolStripMenuItem_Click(object sender, EventArgs e) { SetForm setForm = new SetForm(Pwd); setForm.ShowDialog(); }