public void SetPrintBeginExport(UC_Print ucPrint, B_MergeReceiveBase cEntity)
        {
            switch (ucPrint.FileName)
            {
            case "党纪工团收文表单":
                ucPrint.ExportData.Add(cEntity.DocumentTitle);                                                  //<col>文件名称:|right</col>
                ucPrint.ExportData.Add(cEntity.DocumentNo);                                                     //<col>收文编号:|right</col>
                ucPrint.ExportData.Add(ucPrint.CheckDateTime(cEntity.DocumentReceiveDate.ToShortDateString())); //<col>收文日期:|right</col>
                ucPrint.ExportData.Add(cEntity.SendNo);                                                         //<col>原文号:|right</col>
                //ucPrint.ExportData.Add(cEntity.VolumeNo);                               //<col>卷号:|right</col>
                //ucPrint.ExportData.Add(OAUser.GetUserName(cEntity.Officer));            //<col>党群工作处处长|right</col>
                ucPrint.ExportData.Add(cEntity.Officer_Comment);                                       //<col>党群工作处处长意见意见:|right</col>
                ucPrint.ExportData.Add(OAUser.GetUserName(cEntity.LeaderShip));                        //<col>公司领导:|right</col>
                ucPrint.ExportData.Add(cEntity.LS_Comment);                                            //<col>领导批示:|right</col>
                ucPrint.ExportData.Add(GetValueByColName("DeptName", cEntity.UnderTakeList));          //ucPrint.ExportData.Add(sDept);//<col>承办部门:|right</col>
                ucPrint.ExportData.Add(GetValueByColName("Content", cEntity.UnderTakeList));           //<col>承办意见:|right</col>
                ucPrint.ExportData.Add(GetValueByColNameEx("ReceiveUserName", cEntity.CirculateList)); //<col>传阅人员:|right</col>
                ucPrint.ExportData.Add(GetValueByColNameEx("Comment", cEntity.CirculateList));         //<col>传阅意见:|right</col>
                ucPrint.ExportData.Add(ucPrint.AttachFilesList(cEntity.FileList));                     //<col>附件:|down</col>

                //ucPrint.AttachFileList = cEntity.FileList;
                //ucPrint.Position = "提示信息:";//(string)ucPrint.ExportData[2];
                //ucPrint.Mode = WriteMode.Down;
                break;
            }
        }
Пример #2
0
        public void SetPrintBeginExport(UC_Print ucPrint, EntitySend cEntity)
        {
            bool IsContent = false;

            switch (ucPrint.FileName)
            {
                #region 工程会议纪要
            case "工程会议纪要":
                //ucPrint.ExportData.Add("");    //<col>第一期|shift</col>
                //ucPrint.ExportData.Add("海南核电有限公司                         " + DateTime.Now.ToString("yyyy年MM月dd日"));//<col>2009年某月某日|shift</col>

                ucPrint.ExportData.Add(cEntity.DocumentTitle);         //<col>[标题]|shift</col>
                ucPrint.ExportData.Add(cEntity.MainSenders);           //<col>[主送单位]|shift</col>
                //正文
                ucPrint.ExportData.Add("");                            //<col>[正文仿宋三号,不加粗]|shift</col>

                ucPrint.ExportData.Add("主题词:" + cEntity.SubjectWord);  //<col>主题词:(三号黑体,中间空2字符)|shift</col>
                ucPrint.ExportData.Add("  分送:" + cEntity.CopySenders); //<col>分送:(仿宋三号,不加粗)|shift</col>
                ucPrint.ExportData.Add(cEntity.VerifyDate.Year.ToString() + "年"
                                       + cEntity.VerifyDate.Month.ToString() + "月"
                                       + cEntity.VerifyDate.Day.ToString() + "日印发"
                                       /*cEntity.VerifyDate.ToShortDateString()*/); //<col>2009年  月  日印发|shift</col>
                ucPrint.ExportData.Add(cEntity.Typist);                             //<col>打字:|right</col>
                ucPrint.ExportData.Add(cEntity.Checker);                            //<col>校对:|inner</col>

                ucPrint.AttachFileList = cEntity.FileList;
                //ucPrint.Position = "正文";//(string)ucPrint.ExportData[2];
                //ucPrint.Mode = WriteMode.Shift;
                break;

                #endregion
                #region 公文报告模版
            case "公文报告模版":
                //ucPrint.ExportData.Add(cEntity.DocumentNo);    //<col>海核  发﹝2009﹞  号|shift</col>
                ucPrint.ExportData.Add(cEntity.DocumentTitle);     //<col>[标题]|shift</col>
                ucPrint.ExportData.Add(cEntity.MainSenders);       //<col>[主送单位]|shift</col>
                //正文
                ucPrint.ExportData.Add("");                        //<col>[正文仿宋三号,不加粗]|shift</col>
                for (int i = 0; i < cEntity.FileList.Count; i++)
                {
                    if (cEntity.FileList[i].IsZhengWen == "1")
                    {
                        IsContent = true;
                        break;
                    }
                }
                if (IsContent)
                {
                    ucPrint.ExportData.Add(ucPrint.CheckDateTime(cEntity.DraftDate.Year.ToString() + "年"
                                                                 + cEntity.DraftDate.Month.ToString() + "月"
                                                                 + cEntity.DraftDate.Day.ToString() + "日")
                                           );      //<col>[二〇〇九某月某日]|shift</col>
                }
                else
                {
                    ucPrint.ExportData.Add("");
                }
                ucPrint.ExportData.Add("主题词:" + cEntity.SubjectWord);      //<col>主题词:(三号黑体,中间空2字符)|shift</col>
                ucPrint.ExportData.Add("  抄送:" + cEntity.CopySenders);     //<col>抄送:(仿宋三号,不加粗)|shift</col>
                ucPrint.ExportData.Add(cEntity.VerifyDate.Year.ToString() + "年"
                                       + cEntity.VerifyDate.Month.ToString() + "月"
                                       + cEntity.VerifyDate.Day.ToString() + "日印发"
                                       /*cEntity.VerifyDate.ToShortDateString()*/); //<col>2009年  月  日印发|shift</col>
                ucPrint.ExportData.Add(cEntity.Typist);                             //<col>打字:|right</col>
                ucPrint.ExportData.Add(cEntity.Checker);                            //<col>校对:|inner</col>

                ucPrint.AttachFileList = cEntity.FileList;
                //ucPrint.Position = "主题词:" + cEntity.SubjectWord;//(string)ucPrint.ExportData[2];
                //ucPrint.Mode = WriteMode.Up;
                break;

                #endregion
                #region 公文函模版
            case "公文函模版":
                //ucPrint.ExportData.Add(cEntity.DocumentNo);   //<col>海核  发﹝2009﹞  号|shift</col>
                ucPrint.ExportData.Add(cEntity.DocumentTitle);    //<col>[标题]|shift</col>
                ucPrint.ExportData.Add(cEntity.MainSenders);      //<col>[主送单位]|shift</col>
                //正文
                ucPrint.ExportData.Add("");                       //<col>[正文仿宋三号,不加粗]|shift</col>

                for (int i = 0; i < cEntity.FileList.Count; i++)
                {
                    if (cEntity.FileList[i].IsZhengWen == "1")
                    {
                        IsContent = true;
                        break;
                    }
                }
                if (IsContent)
                {
                    ucPrint.ExportData.Add(ucPrint.CheckDateTime(cEntity.DraftDate.Year.ToString() + "年"
                                                                 + cEntity.DraftDate.Month.ToString() + "月"
                                                                 + cEntity.DraftDate.Day.ToString() + "日")
                                           );           //<col>[二〇〇九年某月某日]|shift</col>
                }
                else
                {
                    ucPrint.ExportData.Add("");
                }
                ucPrint.ExportData.Add("主题词:" + cEntity.SubjectWord);           //<col>主题词:(三号黑体,中间空2字符)|shift</col>
                ucPrint.ExportData.Add("  抄送:" + cEntity.CopySenders);          //<col>  抄送:(仿宋三号,不加粗)|shift</col>
                ucPrint.ExportData.Add(cEntity.VerifyDate.Year.ToString() + "年"
                                       + cEntity.VerifyDate.Month.ToString() + "月"
                                       + cEntity.VerifyDate.Day.ToString() + "日印发"
                                       );                      //<col>2009年  月  日印发|shift</col>
                ucPrint.ExportData.Add(cEntity.Typist);        //<col>打字:|right</col>
                ucPrint.ExportData.Add(cEntity.Checker);       //<col>校对:|inner</col>

                ucPrint.AttachFileList = cEntity.FileList;
                //ucPrint.Position = "主题词:" + cEntity.SubjectWord;
                //ucPrint.Mode = WriteMode.Up;
                break;

                #endregion
                #region 公文请示模版
            case "公文请示模版":
                //ucPrint.ExportData.Add(cEntity.DocumentNo + "                        " + cEntity.SignerName);   //<col>海核办发[2009]1号|shift</col>
                //ucPrint.ExportData.Add(cEntity.SignerName);    //<col>签发人:|inner</col>
                ucPrint.ExportData.Add(cEntity.DocumentTitle);     //<col>[标题]|shift</col>
                ucPrint.ExportData.Add(cEntity.MainSenders);       //<col>[主送单位]|shift</col>
                //正文
                ucPrint.ExportData.Add("");                        //<col>[正文仿宋三号,不加粗]|shift</col>
                //bool IsContent = false;
                for (int i = 0; i < cEntity.FileList.Count; i++)
                {
                    if (cEntity.FileList[i].IsZhengWen == "1")
                    {
                        IsContent = true;
                        break;
                    }
                }
                if (IsContent)
                {
                    ucPrint.ExportData.Add(ucPrint.CheckDateTime(cEntity.DraftDate.Year.ToString() + "年"
                                                                 + cEntity.DraftDate.Month.ToString() + "月"
                                                                 + cEntity.DraftDate.Day.ToString() + "日")
                                           );     //<col>[二〇〇九年某月某日]|shift</col>
                }
                else
                {
                    ucPrint.ExportData.Add("");
                }

                ucPrint.ExportData.Add("主题词:" + cEntity.SubjectWord);      //<col>主题词:(三号黑体,中间空2字符)|shift</col>
                ucPrint.ExportData.Add("  抄送:" + cEntity.CopySenders);     //  抄送:(仿宋三号,不加粗)|shift</col>
                ucPrint.ExportData.Add(cEntity.VerifyDate.Year.ToString() + "年"
                                       + cEntity.VerifyDate.Month.ToString() + "月"
                                       + cEntity.VerifyDate.Day.ToString() + "日印发"
                                       );                //<col>2009年  月  日印发|shift</col>
                ucPrint.ExportData.Add(cEntity.Typist);  //<col>打字:|right</col>
                ucPrint.ExportData.Add(cEntity.Checker); //<col>校对:|inner</col>

                ucPrint.AttachFileList = cEntity.FileList;
                //ucPrint.Position = "主题词:" + cEntity.SubjectWord;
                //ucPrint.Mode = WriteMode.Up;
                break;

                #endregion
                #region 公文首页纸
            case "公文首页纸":
                ucPrint.ExportData.Add("");                              //<col>密别:|inner</col>
                string[] result = cEntity.DocumentNo.Split(new char[] { '<', '>', '[', ']', '(', ')', '〔', '〕', '号' }, StringSplitOptions.RemoveEmptyEntries);
                if (result.Length != 3)
                {
                    if (result.Length > 3)
                    {
                        ucPrint.ExportData.Add(result[0]);              //<col>海核|shift</col>
                        ucPrint.ExportData.Add(result[1]);              //<col>编号|shift</col>
                        ucPrint.ExportData.Add(result[2]);              //<col>号|shift</col>
                    }
                    else
                    {
                        int ret = 3 - result.Length;
                        for (int i = 0; i < result.Length; i++)
                        {
                            ucPrint.ExportData.Add(result[i]);
                        }
                        for (int j = 0; j < ret; j++)
                        {
                            ucPrint.ExportData.Add("");
                        }
                    }
                }
                else
                {
                    ucPrint.ExportData.Add(result[0]);                                                                    //<col>海核|shift</col>
                    ucPrint.ExportData.Add(result[1]);                                                                    //<col>编号|shift</col>
                    ucPrint.ExportData.Add(result[2]);                                                                    //<col>号|shift</col>
                }
                ucPrint.ExportData.Add(cEntity.UrgentDegree);                                                             //<col>紧急程度:|inner</col>
                ucPrint.ExportData.Add(cEntity.SignerName + "\r\n"
                                       + ucPrint.CheckDateTime(cEntity.SignDate.ToShortDateString()));                    //<col>签发|shift</col>
                string   DetpSigners = FormsMethod.GetSingers4Print(m_ProcessID, m_WorkItemID, "部门会签", "公司发文");
                string[] results     = DetpSigners.Split(new char[] { '[', ']' }, StringSplitOptions.RemoveEmptyEntries); //renjinquan+ 去除空值
                if (results.Length == 0)
                {
                    ucPrint.ExportData.Add(DetpSigners /*cEntity.DeptSigners*/);            //<col>会签|down</col>
                }
                else
                {
                    //if (results.Length >= 2)
                    //    ucPrint.ExportData.Add(results[0] + "\n" + results[1]);
                    string strNames = "";
                    for (int i = 0; i < results.Length; i++)
                    {
                        if (i % 2 == 0)
                        {
                            strNames += (results[i].TrimStart(' ') != "\n" ? (results[i] + "\n") : "");
                        }
                        else
                        {
                            try
                            {
                                strNames += DateTime.Parse(results[i]).ToShortDateString();
                            }
                            catch
                            {
                            }
                        }
                    }
                    ucPrint.ExportData.Add(strNames);
                }
                string sVerify  = (string.IsNullOrEmpty(cEntity.ZhuRenSigner) ? "" : cEntity.ZhuRenSigner + "\r\n" + ucPrint.CheckDateTime(cEntity.ZhuRenSignDate.ToShortDateString()) + "\r\n");
                string sCVerify = (string.IsNullOrEmpty(cEntity.Verifier) ? "" : cEntity.Verifier + "\r\n" + ucPrint.CheckDateTime(cEntity.VerifyDate.ToShortDateString()));

                ucPrint.ExportData.Add(sVerify + sCVerify);                                                  //<col>核稿:|down</col>
                ucPrint.ExportData.Add(cEntity.CheckDrafterName + "\r\n"
                                       + ucPrint.CheckDateTime(cEntity.CheckDate.ToShortDateString()));      //<col>审稿|right</col>
                string sDrafterDate = ((cEntity.FirstDraftDate == DateTime.MinValue) ? cEntity.DraftDate.ToShortDateString() : cEntity.FirstDraftDate.ToShortDateString());
                ucPrint.ExportData.Add(cEntity.Drafter + "\r\n" + sDrafterDate + "\r\n" + cEntity.PhoneNum); //<col>拟拟及稿电人话|right</col>
                ucPrint.ExportData.Add(cEntity.MainSenders);                                                 //<col>主送:|right</col>
                ucPrint.ExportData.Add(cEntity.CopySenders);                                                 //<col>抄送:|right</col>
                ucPrint.ExportData.Add(cEntity.SubjectWord);                                                 //<col>主题词:|right</col>
                ucPrint.ExportData.Add(cEntity.DocumentTitle);                                               //<col>标题:|right</col>
                ucPrint.ExportData.Add(cEntity.Typist);                                                      //<col>打字:|right</col>
                ucPrint.ExportData.Add(cEntity.Checker);                                                     //<col>校对:|right</col>
                ucPrint.ExportData.Add(cEntity.ShareCount.ToString());                                       //<col>共印|right</col>
                //ucPrint.ExportData.Add("第份" + cEntity.SheetCount.ToString() + "张");   //<col>第份       张|shift</col>

                ucPrint.AttachFileList = cEntity.FileList;
                //ucPrint.Position = "标题:";
                //ucPrint.Mode = WriteMode.Down;
                break;

                #endregion
                #region 公文通知模版
            case "公文通知模版":
                //ucPrint.ExportData.Add(cEntity.DocumentNo);     //<col>海核  发﹝2009﹞  号|shift</col>
                ucPrint.ExportData.Add(cEntity.DocumentTitle);     //<col>[标题]|shift</col>
                ucPrint.ExportData.Add(cEntity.MainSenders);       //<col>[主送单位]|shift</col>
                //正文
                ucPrint.ExportData.Add("");                        //<col>[正文仿宋三号,不加粗]|shift</col>
                for (int i = 0; i < cEntity.FileList.Count; i++)
                {
                    if (cEntity.FileList[i].IsZhengWen == "1")
                    {
                        IsContent = true;
                        break;
                    }
                }
                if (IsContent)
                {
                    ucPrint.ExportData.Add(ucPrint.CheckDateTime(cEntity.DraftDate.Year.ToString() + "年"
                                                                 + cEntity.DraftDate.Month.ToString() + "月"
                                                                 + cEntity.DraftDate.Day.ToString() + "日")
                                           );      //<col>[二〇〇九年某月某日]|shift</col>
                }
                else
                {
                    ucPrint.ExportData.Add("");
                }
                ucPrint.ExportData.Add("主题词:" + cEntity.SubjectWord);      //<col>主题词:(三号黑体,中间空2字符)|shift</col>
                ucPrint.ExportData.Add("  抄送:" + cEntity.CopySenders);     //<col>  抄送:(仿宋三号,不加粗)|shift</col>
                ucPrint.ExportData.Add(cEntity.VerifyDate.Year.ToString() + "年"
                                       + cEntity.VerifyDate.Month.ToString() + "月"
                                       + cEntity.VerifyDate.Day.ToString() + "日印发"
                                       );                //<col>2009年  月  日印发|shift</col>
                ucPrint.ExportData.Add(cEntity.Typist);  //<col>打字:|right</col>
                ucPrint.ExportData.Add(cEntity.Checker); //<col>校对:|inner</col>

                ucPrint.AttachFileList = cEntity.FileList;
                //ucPrint.Position = "主题词:" + cEntity.SubjectWord;//(string)ucPrint.ExportData[2];
                //ucPrint.Mode = WriteMode.Up;
                break;

                #endregion
                #region 会议纪要模版
            case "会议纪要模版":
                ucPrint.ExportData.Add(cEntity.DocumentNo);        //<col>海核纪要[2009]号|shift</col>
                ucPrint.ExportData.Add(cEntity.DocumentTitle);     //<col>[标题]|shift</col>
                ucPrint.ExportData.Add(cEntity.MainSenders);       //<col>[主送单位]|shift</col>
                ucPrint.ExportData.Add("");                        //<col>[正文仿宋三号,不加粗]|shift</col>
                for (int i = 0; i < cEntity.FileList.Count; i++)
                {
                    if (cEntity.FileList[i].IsZhengWen == "1")
                    {
                        IsContent = true;
                        break;
                    }
                }
                if (IsContent)
                {
                    ucPrint.ExportData.Add(ucPrint.CheckDateTime(cEntity.DraftDate.Year.ToString() + "年"
                                                                 + cEntity.DraftDate.Month.ToString() + "月"
                                                                 + cEntity.DraftDate.Day.ToString() + "日")
                                           );      //<col>[二〇〇九年某月某日]|shift</col>
                }
                else
                {
                    ucPrint.ExportData.Add("");
                }
                ucPrint.ExportData.Add("主题词:" + cEntity.SubjectWord);        //<col>主题词:***  **  纪要(三号黑体,中间空2字符)|shift</col>
                ucPrint.ExportData.Add(" 抄送:" + cEntity.CopySenders);        //<col>抄送:(仿宋三号,不加粗)|shift</col>
                ucPrint.ExportData.Add(cEntity.VerifyDate.Year.ToString() + "年"
                                       + cEntity.VerifyDate.Month.ToString() + "月"
                                       + cEntity.VerifyDate.Day.ToString() + "日印发"); //<col>2009年  月  日印发|shift</col>
                ucPrint.ExportData.Add(cEntity.Typist);                              //<col>打字:|inner</col>
                ucPrint.ExportData.Add(cEntity.Checker);                             //<col>校对:|inner</col>

                ucPrint.AttachFileList = cEntity.FileList;
                //ucPrint.Position = "主题词:" + cEntity.SubjectWord;
                //ucPrint.Mode = WriteMode.Up;
                break;

                #endregion
                #region 简报模版
            case "简报模版":
                //ucPrint.ExportData.Add("");            //<col>中核集团海南核电有限公司深入学习实践科学发展观活动|shift</col>
                //ucPrint.ExportData.Add("");            //<col>第期|shift</col>
                //ucPrint.ExportData.Add("");            //<col>海南核电有限公司深入学习实践|shift</col>
                //ucPrint.ExportData.Add("");            //<col>科学发展观活动领导小组办公室|shift</col>

                /*"海南核电有限公司深入学习实践\r\n"
                 +"科学发展观活动领导小组办公室"*/
                //ucPrint.ExportData.Add(DateTime.Now.ToString("yyyy年MM月dd日"));//<col>二〇〇九年 月 日|shift</col>
                //ucPrint.ExportData.Add(cEntity.DocumentTitle);             //<col>[标题]|shift</col>
                ucPrint.ExportData.Add(cEntity.MainSenders);                   //<col>[主送单位]|shift</col>
                ucPrint.ExportData.Add("");                                    //<col>[正文仿宋三号,不加粗]|shift</col>

                for (int i = 0; i < cEntity.FileList.Count; i++)
                {
                    if (cEntity.FileList[i].IsZhengWen == "1")
                    {
                        IsContent = true;
                        break;
                    }
                }

                /*
                 * if (IsContent)
                 * {
                 *  ucPrint.ExportData.Add(ucPrint.CheckDateTime(cEntity.SendDate.Year.ToString() + "年"
                 + cEntity.SendDate.Month.ToString() + "月"
                 + cEntity.SendDate.Day.ToString() + "日")
                 +                          ); //<col>[二〇〇九年某月某日]|shift</col>
                 + }
                 + else
                 + {
                 +  ucPrint.ExportData.Add("");
                 + }
                 +
                 + ucPrint.ExportData.Add(cEntity.ReceiveUserName);      //<col>分送:|right</col>
                 + ucPrint.ExportData.Add(ucPrint.CheckDateTime(cEntity.ReceiveDateTime.Year.ToString() + "年"
                 + cEntity.ReceiveDateTime.Month.ToString() + "月"
                 + cEntity.ReceiveDateTime.Day.ToString() + "日印发")
                 +                      );  //<col>2009年  月  日印发|shift</col>
                 +
                 + ucPrint.ExportData.Add(cEntity.Typist);     //<col>打字:|right</col>
                 + ucPrint.ExportData.Add(cEntity.Checker);    //<col>校对:|inner</col>
                 */
                ucPrint.AttachFileList = cEntity.FileList;
                //ucPrint.Position = "分送:";
                //ucPrint.Mode = WriteMode.Up;
                break;

                #endregion
                #region 简讯模版
            case "简讯模版":
                //ucPrint.ExportData.Add("海南核电有限公司办公室编" + "               " + DateTime.Now.ToString("yyyy年MM月dd日"));      //<col>海南核电有限公司办公室编               二〇〇九年  月  日|shift</col>
                //ucPrint.ExportData.Add(DateTime.Now.ToString("yyyy年MM月dd日"));   //<col>二〇〇九年某月某日|shift</col>
                ucPrint.ExportData.Add(cEntity.DocumentTitle);                                            //<col>[标题]|shift</col>
                ucPrint.ExportData.Add(cEntity.MainSenders /*OAList.GetDeptNameByID(cEntity.HostDept)*/); //<col>[主送单位] |shift</col>
                //正文
                ucPrint.ExportData.Add("");                                                               //<col>[正文仿宋三号,不加粗] |shift</col>

                ucPrint.AttachFileList = cEntity.FileList;
                //ucPrint.Position = "附件";
                //ucPrint.Mode = WriteMode.Up;
                break;

                #endregion
            case "公司发文表单":
                SetBaseExportData(ucPrint, cEntity);

                string Signers  = "";
                string Contents = "";

                //ResolveSignerAndContent(FormsMethod.GetYiHuiQian(m_ProcessID, "部门会签", m_TemplateID), out Signers, out Contents);
                string[] str1 = ResolveSignerAndContent(FormsMethod.GetYiHuiQian(m_ProcessID, "部门会签", m_TemplateID));
                if (str1 != null /*&& str1.Length == 2*/)
                {
                    for (int i = 0; i < str1.Length; i += 2)
                    {
                        if (i >= str1.Length)
                        {
                            break;
                        }
                        Signers  += (str1[i] + "\n");
                        Contents += (str1[i + 1] + "\n");
                    }
                }
                ucPrint.ExportData.Add(Signers /*cEntity.DeptHaveSigners*/);          //<col>已会签人:|right</col>
                ucPrint.ExportData.Add(Contents /*cEntity.DeptSignComment*/);         //<col>意见:|right</col>

                Signers  = "";
                Contents = "";

                //ResolveSignerAndContent(FormsMethod.GetYiHuiQian(m_ProcessID, "领导会签", m_TemplateID), out Signers, out Contents);
                string[] str2 = ResolveSignerAndContent(FormsMethod.GetYiHuiQian(m_ProcessID, "领导会签", m_TemplateID));
                if (str2 != null /*&& str2.Length == 2*/)
                {
                    for (int i = 0; i < str2.Length; i += 2)
                    {
                        if (i >= str2.Length)
                        {
                            break;
                        }
                        Signers  += (str2[i] + "\n");
                        Contents += (str2[i + 1] + "\n");
                    }
                }
                ucPrint.ExportData.Add(Signers /*cEntity.LeadHaveSigners*/);  //<col>已会签人: |right</col>
                ucPrint.ExportData.Add(Contents /*cEntity.LeadSignComment*/); //<col>意见: |right</col>

                ucPrint.ExportData.Add(cEntity.CirculateAddNames);            //<col>分发范围:|right</col>

                ucPrint.ExportData.Add(ucPrint.AttachFilesList(cEntity.FileList));
                break;
            }
        }
Пример #3
0
        public void SetPrintBeginExport(UC_Print ucPrint, B_DJGTSend cEntity)
        {
            bool IsContent = false;

            switch (ucPrint.FileName)
            {
                #region 党委部门文件模版 党委请示模版 海南党委文件模版 海南工会请示模版 海南共青团文件模版 海南纪委文件模版
            case "党委部门文件模版":
            case "党委请示模版":
            case "海南党委文件模版":
            case "海南工会请示模版":
            case "海南共青团文件模版":
            case "海南纪委文件模版":

            case "海南工会文件模版":
            case "海南共青团请示文件模版":
            case "海南纪委请示文件模版":
                ucPrint.ExportData.Add(cEntity.DocumentTitle);           //<col>[标题]|shift</col>
                ucPrint.ExportData.Add(cEntity.MainSenders);             //<col>[主送单位]|shift</col>
                ucPrint.ExportData.Add("");                              //<col>[正文仿宋三号,不加粗]|shift</col>
                for (int i = 0; i < cEntity.FileList.Count; i++)
                {
                    if (cEntity.FileList[i].IsZhengWen == "1")
                    {
                        IsContent = true;
                        break;
                    }
                }
                if (IsContent)
                {
                    ucPrint.ExportData.Add(ucPrint.CheckDateTime(cEntity.DraftDate.Year.ToString() + "年"
                                                                 + cEntity.DraftDate.Month.ToString() + "月"
                                                                 + cEntity.DraftDate.Day.ToString() + "日")
                                           );      //<col>[二〇〇九某月某日]|shift</col>
                }
                else
                {
                    ucPrint.ExportData.Add("");
                }
                ucPrint.ExportData.Add("主题词:" + cEntity.SubjectWord);       //<col>主题词:(三号黑体,中间空2字符)|shift</col>
                ucPrint.ExportData.Add("抄送:" + cEntity.CopySenders);        //<col>抄送:(仿宋三号,不加粗)|shift</col>
                ucPrint.ExportData.Add(cEntity.VerifyDate.Year.ToString() + "年"
                                       + cEntity.VerifyDate.Month.ToString() + "月"
                                       + cEntity.VerifyDate.Day.ToString() + "日印发"
                                       /*cEntity.VerifyDate.ToShortDateString()*/); //<col>2009年  月  日印发|shift</col>
                ucPrint.ExportData.Add(cEntity.Typist);                             //<col>打字:|inner</col>
                ucPrint.ExportData.Add(cEntity.Checker);                            //<col>校对:|right</col>

                ucPrint.AttachFileList = cEntity.FileList;
                //ucPrint.Position = "正文";//(string)ucPrint.ExportData[2];
                //ucPrint.Mode = WriteMode.Shift;
                break;
                #endregion

                #region 会议纪要模板
            case "党群工作全例会会议纪要模版":
            case "党委会议纪要模版":
            case "党政联席会纪要模版":
                ucPrint.ExportData.Add("主题词:" + cEntity.SubjectWord);       //<col>主题词:(三号黑体,中间空2字符)|shift</col>
                ucPrint.ExportData.Add("分送:" + cEntity.CopySenders);        //<col>抄送:(仿宋三号,不加粗)|shift</col>
                ucPrint.ExportData.Add(cEntity.VerifyDate.Year.ToString() + "年"
                                       + cEntity.VerifyDate.Month.ToString() + "月"
                                       + cEntity.VerifyDate.Day.ToString() + "日印发"
                                       /*cEntity.VerifyDate.ToShortDateString()*/); //<col>2009年  月  日印发|shift</col>
                ucPrint.ExportData.Add(cEntity.Typist);                             //<col>打字:|inner</col>
                ucPrint.ExportData.Add(cEntity.Checker);                            //<col>校对:|right</col>

                ucPrint.AttachFileList = cEntity.FileList;
                break;

            case "党群简报模版":
                ucPrint.ExportData.Add("分送:" + cEntity.CopySenders);         //<col>抄送:(仿宋三号,不加粗)|shift</col>
                ucPrint.ExportData.Add(cEntity.VerifyDate.Year.ToString() + "年"
                                       + cEntity.VerifyDate.Month.ToString() + "月"
                                       + cEntity.VerifyDate.Day.ToString() + "日印发"
                                       /*cEntity.VerifyDate.ToShortDateString()*/); //<col>2009年  月  日印发|shift</col>
                ucPrint.ExportData.Add(cEntity.Typist);                             //<col>打字:|inner</col>
                ucPrint.ExportData.Add(cEntity.Checker);                            //<col>校对:|right</col>

                ucPrint.AttachFileList = cEntity.FileList;
                break;
                #endregion

                #region 党纪工团发文 首页纸模板
            case "党委公文首页纸模板":
            case "工会首页纸":
            case "共青团首页纸":
            case "纪律检查委员会首页纸":
                ucPrint.ExportData.Add("");                              //<col>密别:|inner</col>
                string[] result = cEntity.DocumentNo.Split(new char[] { '<', '>', '[', ']', '(', ')', '〔', '〕', '号' }, StringSplitOptions.RemoveEmptyEntries);
                if (result.Length != 3)
                {
                    if (result.Length > 3)
                    {
                        ucPrint.ExportData.Add(result[0]);              //<col>海核|shift</col>
                        ucPrint.ExportData.Add(result[1]);              //<col>编号|shift</col>
                        ucPrint.ExportData.Add(result[2]);              //<col>号|shift</col>
                    }
                    else
                    {
                        int ret = 3 - result.Length;
                        for (int i = 0; i < result.Length; i++)
                        {
                            ucPrint.ExportData.Add(result[i]);
                        }
                        for (int j = 0; j < ret; j++)
                        {
                            ucPrint.ExportData.Add("");
                        }
                    }
                }
                else
                {
                    ucPrint.ExportData.Add(result[0]);                                                 //<col>海核|shift</col>
                    ucPrint.ExportData.Add(result[1]);                                                 //<col>编号|shift</col>
                    ucPrint.ExportData.Add(result[2]);                                                 //<col>号|shift</col>
                }
                ucPrint.ExportData.Add(cEntity.UrgentDegree);                                          //<col>紧急程度:|inner</col>
                ucPrint.ExportData.Add(cEntity.Signer + "\r\n"
                                       + ucPrint.CheckDateTime(cEntity.SignDate.ToShortDateString())); //<col>签发|shift</col>
                string DetpSigners = FormsMethod.GetSingers4Print(m_ProcessID, m_WorkItemID, "部门会签", "党纪工团发文");
                DetpSigners = DetpSigners.Replace("[", "\n[");
                DetpSigners = DetpSigners.Replace("[", "");
                DetpSigners = DetpSigners.Replace("]", "");
                DetpSigners = DetpSigners.Replace(" \n", "\n");
                //DetpSigners = DetpSigners.Replace(" ", "\r\a");
                ucPrint.ExportData.Add(DetpSigners /*cEntity.DeptSigners*/);            //<col>会签|down</col>

                //string sVerify = (string.IsNullOrEmpty(cEntity.Verifiers) ? "" : cEntity.Verifiers + "\r\n" + ucPrint.CheckDateTime(cEntity.VerifyDate.ToShortDateString()) + "\r\n");
                string sCVerify = (string.IsNullOrEmpty(cEntity.Verifier) ? "" : cEntity.Verifier + "\r\n" + ucPrint.CheckDateTime(cEntity.VerifyDate.ToShortDateString()));

                ucPrint.ExportData.Add(sCVerify);                                                            //<col>核稿:|down</col>
                ucPrint.ExportData.Add(cEntity.CheckDrafter + "\r\n"
                                       + ucPrint.CheckDateTime(cEntity.CheckDraftDate.ToShortDateString())); //<col>审稿|right</col>
                string sDrafterDate = ((cEntity.FirstDraftDate == DateTime.MinValue) ? cEntity.DraftDate.ToShortDateString() : cEntity.FirstDraftDate.ToShortDateString());
                ucPrint.ExportData.Add(cEntity.Drafter + "\r\n" + sDrafterDate + "\r\n" + cEntity.PhoneNum); //<col>拟拟及稿电人话|right</col>
                ucPrint.ExportData.Add(cEntity.MainSenders);                                                 //<col>主送:|right</col>
                ucPrint.ExportData.Add(cEntity.CopySenders);                                                 //<col>抄送:|right</col>
                ucPrint.ExportData.Add(cEntity.SubjectWord);                                                 //<col>主题词:|right</col>
                ucPrint.ExportData.Add(cEntity.DocumentTitle);                                               //<col>标题:|right</col>
                ucPrint.ExportData.Add(cEntity.Typist);                                                      //<col>打字:|right</col>
                ucPrint.ExportData.Add(cEntity.Checker);                                                     //<col>校对:|right</col>
                ucPrint.ExportData.Add(cEntity.ShareCount.ToString());                                       //<col>共印|right</col>
                //ucPrint.ExportData.Add("第份" + cEntity.SheetCount.ToString() + "张");   //<col>第份       张|shift</col>

                ucPrint.AttachFileList = cEntity.FileList;
                //ucPrint.Position = "标题:";
                //ucPrint.Mode = WriteMode.Down;
                break;
                #endregion

                #region 党纪工团发文 表单模板
            case "党纪工团发文表单":
                SetBaseExportData(ucPrint, cEntity);

                string Signers  = "";
                string Contents = "";

                //ResolveSignerAndContent(FormsMethod.GetYiHuiQian(m_ProcessID, "部门会签", m_TemplateID), out Signers, out Contents);
                string[] str1 = ResolveSignerAndContent(FormsMethod.GetYiHuiQian(m_ProcessID, "部门会签", m_TemplateID));
                if (str1 != null && str1.Length == 2)
                {
                    Signers  = str1[0];
                    Contents = str1[1];
                }
                ucPrint.ExportData.Add(Signers /*cEntity.DeptHaveSigners*/);          //<col>已会签人:|right</col>
                ucPrint.ExportData.Add(Contents /*cEntity.DeptSignComment*/);         //<col>意见:|right</col>

                Signers  = "";
                Contents = "";

                //ResolveSignerAndContent(FormsMethod.GetYiHuiQian(m_ProcessID, "领导会签", m_TemplateID), out Signers, out Contents);
                string[] str2 = ResolveSignerAndContent(FormsMethod.GetYiHuiQian(m_ProcessID, "领导会签", m_TemplateID));
                if (str2 != null && str2.Length == 2)
                {
                    Signers  = str2[0];
                    Contents = str2[1];
                }
                ucPrint.ExportData.Add(Signers /*cEntity.LeadHaveSigners*/);  //<col>已会签人: |right</col>
                ucPrint.ExportData.Add(Contents /*cEntity.LeadSignComment*/); //<col>意见: |right</col>

                ucPrint.ExportData.Add(cEntity.Assigners);                    //<col>分发范围:|right</col>

                ucPrint.ExportData.Add(ucPrint.AttachFilesList(cEntity.FileList));
                break;
                #endregion
            }
        }
        public void SetPrintBeginExport(UC_Print ucPrint, B_GS_WorkItems cEntity)
        {
            switch (ucPrint.FileName)
            {
            case "公文处理单":
                ucPrint.ExportData.Add(cEntity.DocumentTitle);                                              //<col>收文标题:|right</col>chen
                ucPrint.ExportData.Add(cEntity.DocumentNo);                                                 //<col>收文编号|right</col>
                ucPrint.ExportData.Add(ucPrint.CheckDateTime(cEntity.ReceiveDateTime.ToShortDateString())); //<col>收文日期|right</col>
                ucPrint.ExportData.Add(cEntity.SendNo);                                                     //<col>原文号|right</col>
                string sName   = OAUser.GetUserName(cEntity.OfficerName);
                string sResult = (string.IsNullOrEmpty(sName) ? cEntity.OfficerName : sName);
                ucPrint.ExportData.Add((string.IsNullOrEmpty(sResult) ? "" : "[" + sResult + "]") + cEntity.Officer_Date.ToString() + cEntity.Officer_Comment);        //<col>公司办拟办意见:|right</col>
                sName   = OAUser.GetUserName(cEntity.LeaderShipName);
                sResult = (string.IsNullOrEmpty(sName) ? cEntity.LeaderShipName : sName);
                ucPrint.ExportData.Add(OAUser.GetUserName(cEntity.LeaderShip));                                                                       //<col>公司领导:|right</col>
                ucPrint.ExportData.Add((string.IsNullOrEmpty(sResult) ? "" : "[" + sResult + "]") + cEntity.LS_Date.ToString() + cEntity.LS_Comment); //<col>领导批示|right</col>

                //string[] sUnderTakeList = GetValueByColName("Content", cEntity.UnderTakeList).Split(new char[] { ';' });
                ucPrint.ExportData.Add(GetValueByColName("DeptName", cEntity.UnderTakeList));          //<col>承办部门:|right</col>
                ucPrint.ExportData.Add(GetValueByColName("Content", cEntity.UnderTakeList));           //<col>承办情况:|right</col>
                ucPrint.ExportData.Add(GetValueByColNameEx("ReceiveUserName", cEntity.CirculateList)); //<col>传阅人员:|right</col>
                ucPrint.ExportData.Add(GetValueByColNameEx("Comment", cEntity.CirculateList));         //<col>传阅意见:|right</col>
                //if (sUnderTakeList.Length > 0)
                //{
                //    ucPrint.ExportData.Add(sUnderTakeList[0]);          //<col>承办情况|right</col>
                //}
                //else
                //{
                //    ucPrint.ExportData.Add(GetValueByColName("Content", cEntity.UnderTakeList));
                //}

                //<col>传阅签名|right</col>
                //<col>日期|right</col>
                //<col>传阅签名 |right</col>
                //<col>日期 |right</col>
                //ucPrint.ExportData.Add(cEntity.);
                //ucPrint.ExportData.Add(cEntity.Content);
                //ucPrint.ExportData.Add(cEntity.UndertakeCircs);
                //ucPrint.ExportData.Add(cEntity.DeptPrincipal);
                //ucPrint.ExportData.Add(cEntity.DeptPrincipal);
                //ucPrint.ExportData.Add(cEntity.Department);
                //ucPrint.ExportData.Add("共" + "()" + "页");
                //ucPrint.ExportData.Add("第" + "()" + "页");

                //ucPrint.AttachFileList = cEntity.FileList;//chen
                ucPrint.ExportData.Add(ucPrint.AttachFilesList(cEntity.FileList));    //<col>附件:|down</col>
                //ucPrint.Position = "日期 ";//(string)ucPrint.ExportData[2];
                //ucPrint.Mode = WriteMode.Down;
                break;

            case "公司收文表单":
                ucPrint.ExportData.Add(cEntity.DocumentNo);                                                     //<col>收文编号:|right</col>
                ucPrint.ExportData.Add(ucPrint.CheckDateTime(cEntity.DocumentReceiveDate.ToShortDateString())); //<col>收文日期:|right</col>
                ucPrint.ExportData.Add(cEntity.SendNo);                                                         //<col>原文号:|right</col>
                ucPrint.ExportData.Add(cEntity.VolumeNo);                                                       //<col>卷号:|right</col>
                ucPrint.ExportData.Add(cEntity.DocumentTitle);                                                  //<col>文件名称:|right</col>
                ucPrint.ExportData.Add(OAUser.GetUserName(cEntity.Officer));                                    //<col>公司办主任|right</col>
                ucPrint.ExportData.Add(cEntity.Officer_Comment);                                                //<col>意见:|right</col>
                ucPrint.ExportData.Add(OAUser.GetUserName(cEntity.LeaderShip));                                 //<col>公司领导:|right</col>
                ucPrint.ExportData.Add(cEntity.LS_Comment);                                                     //<col>意见:|right</col>



                ucPrint.ExportData.Add(GetValueByColName("DeptName", cEntity.UnderTakeList));          //ucPrint.ExportData.Add(sDept);//<col>承办部门:|right</col>
                ucPrint.ExportData.Add(GetValueByColName("Content", cEntity.UnderTakeList));           //<col>承办意见:|right</col>

                ucPrint.ExportData.Add(GetValueByColNameEx("ReceiveUserName", cEntity.CirculateList)); //<col>传阅人员:|right</col>
                ucPrint.ExportData.Add(GetValueByColNameEx("Comment", cEntity.CirculateList));         //<col>传阅意见:|right</col>
                ucPrint.ExportData.Add(ucPrint.AttachFilesList(cEntity.FileList));

                //ucPrint.AttachFileList = cEntity.FileList;
                //ucPrint.Position = "提示信息:";//(string)ucPrint.ExportData[2];
                //ucPrint.Mode = WriteMode.Down;
                break;
            }
        }
Пример #5
0
        public void SetPrintBeginExport(UC_Print ucPrint, FS.ADIM.OA.BLL.Busi.Process.B_Finance cEntity)
        {
            switch (ucPrint.FileName)
            {
            case "公司报告":
            case "公司请示":
                ucPrint.ExportData.Add(cEntity.MainSend);                                               //<col>主送:|inner</col>
                ucPrint.ExportData.Add(cEntity.Number);                                                 //<col>编码:|inner</col>
                ucPrint.ExportData.Add(cEntity.CopySend);                                               //<col>抄送:|inner</col>
                ucPrint.ExportData.Add(cEntity.Department);                                             //<col>编制处室:|inner</col>
                ucPrint.ExportData.Add(cEntity.Drafter);                                                //<col>编写:|inner</col>
                ucPrint.ExportData.Add(cEntity.DeptPrincipal);                                          //<col>审定:|inner</col>
                ucPrint.ExportData.Add(ucPrint.CheckDateTime(cEntity.ConfirmDate.ToShortDateString())); //<col>日期:|inner</col>
                ucPrint.ExportData.Add(cEntity.DocumentTitle);                                          //<col>主题:|inner</col>
                //string tmp = SysString.HtmlToTextCode(cEntity.Content);
                string tmp = cEntity.Content;                                                           //renjinquan+

                if (!string.IsNullOrEmpty(tmp))
                {
                    ucPrint.ExportData.Add(tmp);
                }
                else
                {
                    ucPrint.ExportData.Add("");
                }
                //ucPrint.ExportData.Add(cEntity.Content); //<col>正文|shift</col>
                //string sLeaderOpinion = cEntity.LeaderOpinion.Replace("(领导批示)", "");
                string sLeaderOpinion = "";
                sLeaderOpinion = sLeaderOpinion.Replace("\n", "");
                string[] result = sLeaderOpinion.Split(new char[] { '[', ']' });
                if (result.Length == 0)
                {
                    ucPrint.ExportData.Add(sLeaderOpinion);     //<col>领导批示:|inner</col>
                }
                else
                {
                    if (result.Length >= 3)
                    {
                        ucPrint.ExportData.Add(result[0] + "\n" + result[1] + "\n" + result[2]);
                    }
                    else
                    {
                        ucPrint.ExportData.Add("");
                    }
                }

                ucPrint.AttachFileList = cEntity.FileList;
                //ucPrint.Position = "领导批示:";//(string)ucPrint.ExportData[2];
                //ucPrint.Mode = WriteMode.Up;
                break;

            case "请示报告表单":
                SetBaseExportData(ucPrint, cEntity);
                //ucPrint.ExportData.Add(cEntity.Message);       //<col>伴随信息:|right</col>
                //ucPrint.ExportData.Add(cEntity.UndertakeCircs);//<col>批示意见:|right</col>
                ucPrint.ExportData.Add(cEntity.FenFaFanWei);       //<col>部门:|inner</col>
                ucPrint.ExportData.Add(cEntity.GongSiLingDao);     //<col>公司领导:|inner</col>
                //ucPrint.ExportData.Add(cEntity.FenFaFanWei);   //<col>分发范围:|right</col>

                ucPrint.ExportData.Add(ucPrint.AttachFilesList(cEntity.FileList));     //<col>附件:|down</col>
                break;
            }
        }
Пример #6
0
        public void SetPrintBeginExport(UC_Print ucPrint, B_PF cEntity)
        {
            switch (ucPrint.FileName)
            {
            case "程序文件表单":
                SetBaseExportData(ucPrint, cEntity);
                ucPrint.ExportData.Add(cEntity.CirculateSignDept);                 //<col>部门:|inner</col>
                ucPrint.ExportData.Add(cEntity.CirculateSignUserName);             //<col>人员:|inner</col>
                ucPrint.ExportData.Add(cEntity.CirculateDeptName);                 //<col>部门: |inner</col>
                ucPrint.ExportData.Add(cEntity.CirculateName);                     //<col>人员: |inner</col>
                ucPrint.ExportData.Add(cEntity.CirculateComment);                  //<col>意见:|right</col>

                ucPrint.ExportData.Add(ucPrint.AttachFilesList(cEntity.FileList)); //<col>附件:|down</col>
                break;

            case "管理程序变更申请表":
                if (cEntity.ProgramSort == "管理程序")
                {
                    ucPrint.ExportData.Add("管理程序变更申请表");   //<col>管理程序变更申请表|shift</col>
                    ucPrint.ExportData.Add("HN-LL431");    //<col>HN-LL431|shift</col>
                }
                if (cEntity.ProgramSort == "工作程序")
                {
                    ucPrint.ExportData.Add("工作程序变更申请表");   //<col>管理程序变更申请表|shift</col>
                    ucPrint.ExportData.Add("HN-LL432");    //<col>HN-LL431|shift</col>
                }
                if (cEntity.ProgramSort == "部门级管理程序")
                {
                    ucPrint.ExportData.Add("管理程序变更申请表");                                                                  //<col>管理程序变更申请表|shift</col>
                    ucPrint.ExportData.Add("HN-LL433");                                                                   //<col>HN-LL431|shift</col>
                }
                ucPrint.ExportData.Add(string.IsNullOrEmpty(cEntity.Year) ? DateTime.Now.Year.ToString() : cEntity.Year); //<col>年份|shift</col>
                /*待定*/
                ucPrint.ExportData.Add(cEntity.SerialID);                                                                 //<col>序号|shift</col>
                ucPrint.ExportData.Add(cEntity.DocumentTitle);                                                            //<col>文件名称|right</col>
                ucPrint.ExportData.Add(cEntity.ProgramCode + " , " + cEntity.Edition);                                    //<col>编码版本|right</col>
                ucPrint.ExportData.Add(OADept.GetDeptName(cEntity.SendDeptID));                                           //<col>申请部门|right</col>
                ucPrint.ExportData.Add(ucPrint.CheckDateTime(cEntity.DraftDate.ToShortDateString()));                     //<col>申请日期|right</col>
                ucPrint.ExportData.Add(cEntity.ApplyStyle);                                                               //<col>申请类型|right</col>
                //ucPrint.ExportData.Add(cEntity.ApplyReason);                       //<col>原因:|inner</col>
                //ucPrint.ExportData.Add(cEntity.RelationProgram/*RelationDemand*/);                    //<col>可能受到影响的程序:|inner</col>
                ucPrint.ExportData.Add(cEntity.Drafter);                                                   //<col>申请人姓名|right</col>
                ucPrint.ExportData.Add(ucPrint.CheckDateTime(cEntity.DraftDate.ToShortDateString()));      //<col>日期|right</col>
                ucPrint.ExportData.Add(OAUser.GetDeptManager(cEntity.SendDeptID, ConstString.Grade.ZERO)); //<col>编制部门负责人姓名|right</col>
                //M_20100414 huangqi des:编写时间改为FirstDraftDate
                //begin
                if (cEntity.FirstDraftDate != DateTime.MinValue)
                {
                    ucPrint.ExportData.Add(ucPrint.CheckDateTime(cEntity.FirstDraftDate.ToShortDateString()));         //<col>日期 |right</col>
                }
                else
                {
                    ucPrint.ExportData.Add(ucPrint.CheckDateTime(cEntity.DraftDate.ToShortDateString()));
                }
                //end

                //ucPrint.ExportData.Add(cEntity.QualityApproveComment
                //PF.GetNotionComment(cEntity.ProcessID, ConstString.ProcessStepName.PROGRAM_QUALITY)*/);                      //<col>意见:|inner</col>
                ucPrint.ExportData.Add(cEntity.AuditName);                                              //<col>审核人姓名|right</col>
                ucPrint.ExportData.Add(ucPrint.CheckDateTime(cEntity.AuditDate.ToShortDateString()));   //<col>日期  |right</col>
                ucPrint.ExportData.Add(cEntity.QualityNames);                                           //<col>质保处负责人姓名|right</col>
                ucPrint.ExportData.Add(ucPrint.CheckDateTime(cEntity.QualityDate.ToShortDateString())); //<col>日期   |right</col>
                ucPrint.ExportData.Add("该程序已经更新发布");                                                    //<col>网页更新结果:|inner</col>
                /*待定*/
                ucPrint.ExportData.Add("" /*OAList.GetUserNameByWorkItemID(cEntity.WorkItemID)*/);      //<col>信息文档处操作人姓名|right</col>
                //ucPrint.ExportData.Add(string.IsNullOrEmpty(cEntity.SendDate.ToShortDateString()) ?
                //    DateTime.Now.ToShortDateString() : ucPrint.CheckDateTime(cEntity.SendDate.ToShortDateString())
                //    );                                        //<col>日期    |right</col>

                ucPrint.ExportData.Add(string.IsNullOrEmpty(ucPrint.CheckDateTime(cEntity.SendDate.ToShortDateString())) ?
                                       DateTime.Now.ToShortDateString() : ucPrint.CheckDateTime(cEntity.SendDate.ToShortDateString())); //<col>日期    |right</col>

                ucPrint.AttachFileList = cEntity.FileList;
                ucPrint.Position       = "可能受到影响的程序:";//(string)ucPrint.ExportData[2];
                ucPrint.Mode           = WriteMode.Up;
                break;

            case "管理程序封面模板":
                if (cEntity.ProgramSort == "管理程序")
                {
                    ucPrint.ExportData.Add("管理程序");        //<col>管理程序|shift</col>
                    //ucPrint.ExportData.Add("HN-LL431-" + (string.IsNullOrEmpty(cEntity.Year) ? DateTime.Now.Year.ToString() : cEntity.Year) + "-" + cEntity.SerialID);    //<col>HN编码:|right</col>
                }
                if (cEntity.ProgramSort == "工作程序")
                {
                    ucPrint.ExportData.Add("工作程序");        //<col>管理程序|shift</col>
                    //ucPrint.ExportData.Add("HN-LL432-" + (string.IsNullOrEmpty(cEntity.Year) ? DateTime.Now.Year.ToString() : cEntity.Year) + "-" + cEntity.SerialID);    //<col>HN编码:|right</col>
                    cEntity.QualityNames = "";
                }
                if (cEntity.ProgramSort == "部门级管理程序")
                {
                    ucPrint.ExportData.Add("管理程序");        //<col>管理程序|shift</col>
                    //ucPrint.ExportData.Add("HN-LL433-" + (string.IsNullOrEmpty(cEntity.Year) ? DateTime.Now.Year.ToString() : cEntity.Year) + "-" + cEntity.SerialID);    //<col>HN编码:|right</col>
                }
                ucPrint.ExportData.Add(cEntity.ProgramCode);
                ucPrint.ExportData.Add(cEntity.Edition);        //<col>版次:|right</col>
                ucPrint.ExportData.Add(cEntity.DocumentTitle);  //<col>程序名称|shift</col>
                if (cEntity.ApproveDate.ToShortDateString() == DateTime.MinValue.ToShortDateString())
                {
                    ucPrint.ExportData.Add("");
                    ucPrint.ExportData.Add("");
                }
                else
                {
                    ucPrint.ExportData.Add(cEntity.ApproveName);                                            //<col>批准实施:|right</col>
                    ucPrint.ExportData.Add(ucPrint.CheckDateTime(cEntity.ApproveDate.ToShortDateString())); //<col>生效日期:|right</col>
                }
                ucPrint.ExportData.Add(cEntity.WriteName);                                                  //<col>编制姓名|shift</col>
                //M_20100414 huangqi des:编写时间改为FirstDraftDate
                //begin
                if (cEntity.FirstDraftDate != DateTime.MinValue)
                {
                    ucPrint.ExportData.Add(ucPrint.CheckDateTime(cEntity.FirstDraftDate.ToShortDateString()));         //<col>日期 |shift</col>
                }
                else
                {
                    ucPrint.ExportData.Add(ucPrint.CheckDateTime(cEntity.DraftDate.ToShortDateString()));
                }
                //end
                ucPrint.ExportData.Add(cEntity.CheckName);                                              //<col>校核姓名|shift</col>
                ucPrint.ExportData.Add(ucPrint.CheckDateTime(cEntity.CheckDate.ToShortDateString()));   //<col>校核日期|shift</col>
                ucPrint.ExportData.Add(cEntity.AuditName);                                              //<col>审核姓名|shift</col>
                ucPrint.ExportData.Add(ucPrint.CheckDateTime(cEntity.AuditDate.ToShortDateString()));   //<col>审核日期|shift</col>
                ucPrint.ExportData.Add(cEntity.QualityNames);                                           //<col>质保姓名|shift</col>
                ucPrint.ExportData.Add(ucPrint.CheckDateTime(cEntity.QualityDate.ToShortDateString())); //<col>质保日期|shift</col>
                ucPrint.ExportData.Add(OADept.GetDeptName(cEntity.SendDeptID));                         //<col>程序编制部门:|shift</col>

                ucPrint.AttachFileList = cEntity.FileList;
                //ucPrint.Position = "";//(string)ucPrint.ExportData[2];
                //ucPrint.Mode = WriteMode.Up;
                break;

            case "程序审查意见落实表":
                //string num = "";
                //if (cEntity.ProgramSort == "管理程序")
                //{
                //    num = "HN-LL431-";
                //}
                //if (cEntity.ProgramSort == "工作程序")
                //{
                //    num = "HN-LL432-";
                //}
                //if (cEntity.ProgramSort == "部门级管理程序")
                //{
                //    num = "HN-LL433-";
                //}
                //ucPrint.ExportData.Add(num + (string.IsNullOrEmpty(cEntity.Year) ? DateTime.Now.Year.ToString() : cEntity.Year) + "-" + cEntity.SerialID);    //<col>年份|shift</col>
                ucPrint.ExportData.Add(cEntity.ProgramCode);
                ///*待定*/
                ucPrint.ExportData.Add("");                                             //<col>第|right</col>
                ucPrint.ExportData.Add(cEntity.DocumentTitle);                          //<col>程序名称:|inner</col>
                ucPrint.ExportData.Add(cEntity.ProgramCode + "    " + cEntity.Edition); //<col>程序编码和版本:|inner</col>

                //renjinquan+
                //if (cEntity.ProgramSort == "管理程序")
                //{
                //    //ucPrint.ExportData.Add("管理程序");    //<col>管理程序|shift</col>
                //    ucPrint.ExportData.Add("HN-LL431"+"    " + cEntity.Edition);    //<col>HN编码:|right</col>
                //}
                //if (cEntity.ProgramSort == "工作程序")
                //{
                //    //ucPrint.ExportData.Add("工作程序");    //<col>管理程序|shift</col>
                //    ucPrint.ExportData.Add("HN-LL432"+"    " + cEntity.Edition);    //<col>HN编码:|right</col>
                //}
                //if (cEntity.ProgramSort == "部门级管理程序")
                //{
                //    //ucPrint.ExportData.Add("管理程序");    //<col>管理程序|shift</col>
                //    ucPrint.ExportData.Add("HN-LL433"+"    " + cEntity.Edition);    //<col>HN编码:|right</col>
                //}

                //ucPrint.ExportData.Add(cEntity.RelationDemand);    //<col>对相关程序修订要求或建议:|inner</col>
                //ucPrint.ExportData.Add(cEntity.RelationProgram/*cEntity.DocumentTitle + "" + cEntity.ProgramCode*/);    //<col>相关程序名称和编码:|inner</col>
                //ucPrint.ExportData.Add(cEntity.ApproveName);    //<col>批准|right</col>
                //ucPrint.ExportData.Add(cEntity.ApproveDate.ToShortDateString());    //<col>日期|right</col>
                ucPrint.ExportData.Add(cEntity.AuditName);                                            //<col>审核|right</col>
                ucPrint.ExportData.Add(ucPrint.CheckDateTime(cEntity.AuditDate.ToShortDateString())); //<col>日期 |right</col>
                ucPrint.ExportData.Add(cEntity.CheckName);                                            //<col>校核|right</col>
                ucPrint.ExportData.Add(ucPrint.CheckDateTime(cEntity.CheckDate.ToShortDateString())); //<col>日期  |right</col>
                ucPrint.ExportData.Add(cEntity.WriteName);                                            //<col>编制|right</col>
                //M_20100414 huangqi des:编写时间改为FirstDraftDate
                //begin
                if (cEntity.FirstDraftDate != DateTime.MinValue)
                {
                    ucPrint.ExportData.Add(ucPrint.CheckDateTime(cEntity.FirstDraftDate.ToShortDateString()));         //<col>日期 |right</col>
                }
                else
                {
                    ucPrint.ExportData.Add(ucPrint.CheckDateTime(cEntity.DraftDate.ToShortDateString()));
                }
                //end
                ucPrint.AttachFileList = cEntity.FileList;
                //ucPrint.Position = "";//(string)ucPrint.ExportData[2];
                //ucPrint.Mode = WriteMode.Up;
                break;
            }
        }