private void QZBTableDeleteMenu_Click(object sender, RoutedEventArgs e) { QZB old = QZBTable.CurrentItem as QZB; if (old != null) { ectypalJSYD.QZBs.Remove(old); } }
/// <summary> /// 添加一个全新的签章表 /// </summary> /// <param name="index"></param> public void AddQZB(int index) { QZB newQZB = ectypalJSYD.QZBs[0].Clone(); newQZB.QDH = ""; newQZB.ZDH = ""; newQZB.LZDZJR = ""; if (index == ectypalJSYD.QZBs.Count) { ectypalJSYD.QZBs.Add(newQZB); } else { ectypalJSYD.QZBs.Insert(index, newQZB); } }
/// <summary> /// 写入签章表 /// </summary> /// <param name="tbl"></param> /// <param name="list"></param> /// <param name="start"></param> /// <param name="end"></param> private void WriteQZBPage(XWPFTable tbl, IList <QZB> qzbs, int start, int end) { if (end >= qzbs.Count) { end = qzbs.Count; } int rowIndex = 3; XWPFTableRow row; while (start < end) { QZB qzb = qzbs[start]; row = tbl.GetRow(rowIndex++); WordWrite.SetCellText(row.GetCell(0), "J" + qzb.StartDH); WordWrite.SetCellText(row.GetCell(1), "J" + qzb.EndDH); WordWrite.SetCellText(row.GetCell(2), qzb.MS); start++; } }