Esempio n. 1
0
        private void Print_OnExtraExport(object sender, EventArgs e)
        {
            if (m_print == null || m_Entity == null)
            {
                return;
            }
            ComSnd_Print print = new ComSnd_Print();

            switch (m_print.FileName)
            {
            case "工程会议纪要":
                m_print.WriteEx("第期", m_Entity.DocumentNo, WordMgr.WriteMode.Shift);
                m_print.WriteEx("参数",
                                "海南核电有限公司                         " + DateTime.Now.ToString("yyyy年MM月dd日") + "  ",
                                WordMgr.WriteMode.Inner);
                m_print.BatchAddPicture("公司发文", "工程会议纪要", m_Entity);
                break;

            case "公文报告模版":
                m_print.WriteEx("参数", "  " + m_Entity.DocumentNo + "  ", WordMgr.WriteMode.Shift);
                m_print.BatchAddPicture("公司发文", "公文报告模版", m_Entity);
                break;

            case "公文函模版":
                m_print.WriteEx("参数", "  " + m_Entity.DocumentNo + "  ", WordMgr.WriteMode.Shift);
                m_print.BatchAddPicture("公司发文", "公文函模版", m_Entity);
                break;

            case "公文请示模版":
                m_print.WriteEx("参数",
                                m_Entity.DocumentNo + "                      " + "签发人:" + m_Entity.SignerName + "  ",
                                WordMgr.WriteMode.Shift);
                m_print.BatchAddPicture("公司发文", "公文请示模版", m_Entity);
                break;

            case "公文首页纸":
                // TODO:签名功能使用前需要配置 \Template\SingerCfg.xml文件
                m_print.BatchAddPicture("公司发文", "公文首页纸", m_Entity);
                break;

            case "公文通知模版":
                m_print.WriteEx("参数", "  " + m_Entity.DocumentNo + "  ", WordMgr.WriteMode.Shift);
                m_print.BatchAddPicture("公司发文", "公文通知模版", m_Entity);
                break;

            case "会议纪要模版":

                break;

            case "简报模版":
                m_print.WriteEx("第期", m_Entity.DocumentNo + "  ", WordMgr.WriteMode.Shift);
                m_print.WriteEx("参数",
                                "海南核电有限公司党群工作处编制         " + DateTime.Now.ToString("yyyy年MM月dd日") + "  ",
                                WordMgr.WriteMode.Shift);
                m_print.BatchAddPicture("公司发文", "简报模版", m_Entity);
                break;

            case "简讯模版":
                m_print.WriteEx("第期", m_Entity.DocumentNo + "  ", WordMgr.WriteMode.Shift);
                m_print.WriteEx("参数",
                                "海南核电有限公司办公室编               " + DateTime.Now.ToString("yyyy年MM月dd日") + "  ",
                                WordMgr.WriteMode.Shift);
                m_print.BatchAddPicture("公司发文", "简讯模版", m_Entity);
                break;
            }
        }