private void butPageUpdate_Click(object sender, EventArgs e) { //if (txtPages.Text.Trim().Length <= 0) // return; if (Archstat.Trim().Length > 0) { int p = Convert.ToInt32(Archstat); if (p >= (int)T_ConFigure.ArchStat.排序完) { MessageBox.Show("已经排序完成无法进行更改页码!"); LvData.Focus(); return; } } try { int pages; bool bl = int.TryParse(txtPages.Text.Trim(), out pages); if (bl) { Common.UpdatePages(txtPages.Text.Trim(), Archid); ArchRegPages = pages; } LineFocus?.Invoke(sender, new EventArgs()); } catch { MessageBox.Show("更新页码失败!"); } }
private void butAdd_Click(object sender, EventArgs e) { if (ArchStat >= (int)T_ConFigure.ArchStat.质检完 && ArchCheckZt == 0) { MessageBox.Show("案卷已经质检完成无法修改目录"); return; } AddTitle(); if (this.LvContents.Items.Count > 0 && CrragePage >= 0) { if (CrragePage < LvContents.Items.Count - 1) { LvContents.Items[CrragePage].Selected = true; LvContents.Items[CrragePage].EnsureVisible(); } } LineFocus?.Invoke(sender, new EventArgs()); //info.Setinfofocus(panel1); txtCode.Text = ""; txtCode.Focus(); }