private void frmPublishing_Load(object sender, EventArgs e) { this.MaximizeBox = false; this.MinimizeBox = false; //显示所有出版社的信息 dbl.InfoShow("select PulNumber 编号,PulName 出版社名称,PulAdress 地址,PulExplain 说明 from Publishing order by PulNumber", dgvPulb); }
private void frmReserBroInfo_Load(object sender, EventArgs e) { //获得屏幕的大小,并设置窗体初始化时的大小 Rectangle rect = System.Windows.Forms.SystemInformation.VirtualScreen; this.Width = rect.Width - 123; this.Height = rect.Height - 157; cmbCheckList.SelectedIndex = 0; dbl.InfoShow(Sql, dgvReserBroInfo); }
private void frmBookSelect_Load(object sender, EventArgs e) { //显示所有操作日志 cmbCheckList.SelectedIndex = 1; db.InfoShow("" + Sql + "", dgvNote); //获得屏幕的大小,并设置窗体初始化时的大小 Rectangle rect = System.Windows.Forms.SystemInformation.VirtualScreen; this.Width = rect.Width - 135; this.Height = rect.Height - 157; }
public void Reflseh(string Sql) //实现刷新 { try { dbl.InfoShow(Sql, dgvBorselect); } catch (Exception) { ; } }
private void frmBookAbout_Load(object sender, EventArgs e) { cmbCheckList.SelectedIndex = 0; dupBookNumber.SelectedIndex = 0; dupBroTime.SelectedIndex = 2; //txtReader.ReadOnly = true; //txtBookName.ReadOnly = true; //获得屏幕的大小,并设置窗体初始化时的大小 Rectangle rect = System.Windows.Forms.SystemInformation.VirtualScreen; this.Width = rect.Width - 120; this.Height = rect.Height - 157; string timeload = dbl.GetTime(9); dbl.InfoShow("" + Sql + " where HandleDate like '%" + timeload + "%'", dgvHandleInfo); }
public void InfoShow(string Sql) //实现刷新 { //调用ClassLibrary 中的 ds 方法来显示数据 dbl.InfoShow(Sql, dgvJournal); }
public void Reflseh() { dbl.InfoShow("select Number 备忘编号,Statue 当前状态,RemindTime 提醒时间,Content 备忘内容,IsRemind 是否提示,Type 提示方式,IsToReader 是否涉及读者,Addtime 备忘添加时间 from Remind order by Number", dgvMemorandum); }