SVN r934
SVN-Revision: r934
This commit is contained in:
@@ -20,6 +20,7 @@ using Spire.Doc.Documents;
|
||||
using Spire.Doc.Fields;
|
||||
using Lskj.Control.Model;
|
||||
using Lskj.Business.Impl;
|
||||
using Lskj.Business;
|
||||
|
||||
namespace Lskj.Workflow
|
||||
{
|
||||
@@ -33,6 +34,7 @@ namespace Lskj.Workflow
|
||||
public FrmMain()
|
||||
{
|
||||
InitializeComponent();
|
||||
if (SystemInfo.Instance.HidePDFGeneration) this.btn_pdf.Visible = false;
|
||||
}
|
||||
DataTable masterdt = new DataTable();
|
||||
|
||||
@@ -510,42 +512,4 @@ namespace Lskj.Workflow
|
||||
fristparagraph.ApplyStyle(BuiltinStyle.Subtitle);
|
||||
document.SaveToFile(filePath, FileFormat.Docx);
|
||||
//Launching the MS Word file.
|
||||
WordDocViewer(filePath);
|
||||
}
|
||||
public static void WordDocViewer(string fileName)
|
||||
{
|
||||
try
|
||||
{
|
||||
System.Diagnostics.Process.Start(fileName);
|
||||
}
|
||||
catch
|
||||
{
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 点击开始生成
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
private void btn_start_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.Initialization(); // 初始化同步平台
|
||||
// 创建后台线程
|
||||
try
|
||||
{
|
||||
Thread backThread = new Thread(Mulu);
|
||||
backThread.IsBackground = true;
|
||||
backThread.Start();
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
throw;
|
||||
}
|
||||
}
|
||||
|
||||
private void btn_getout_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.Close();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user