Exemplo n.º 1
0
        private void QZBTableDeleteMenu_Click(object sender, RoutedEventArgs e)
        {
            QZB old = QZBTable.CurrentItem as QZB;

            if (old != null)
            {
                ectypalJSYD.QZBs.Remove(old);
            }
        }
Exemplo n.º 2
0
        /// <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);
            }
        }
Exemplo n.º 3
0
        /// <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++;
            }
        }