|
|
|
@ -17,6 +17,7 @@ using System.Linq;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using Spire.Doc.Documents;
|
|
|
|
|
using NPOI.SS.Formula.Functions;
|
|
|
|
|
using System.Diagnostics;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace BP.Pub
|
|
|
|
@ -1331,6 +1332,16 @@ trgaph108\trleft5\trbrdrl\brdrs\brdrw10 \trbrdrt\brdrs\brdrw10 \trbrdrr\brdrs\br
|
|
|
|
|
docs.Paragraphs[1].Range.Delete();
|
|
|
|
|
docs.SaveAs2(path);
|
|
|
|
|
docs.Close();
|
|
|
|
|
Process[] current = Process.GetProcesses();
|
|
|
|
|
//遍历与当前进程名称相同的进程列表
|
|
|
|
|
foreach (Process process in current)
|
|
|
|
|
{
|
|
|
|
|
//如果实例已经存在则kill当前进程
|
|
|
|
|
if (process.ProcessName.ToUpper().Equals("WINWORD"))
|
|
|
|
|
{
|
|
|
|
|
process.Kill(); break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
catch (Exception ex)
|
|
|
|
|
{
|
|
|
|
@ -1454,7 +1465,14 @@ trgaph108\trleft5\trbrdrl\brdrs\brdrw10 \trbrdrt\brdrs\brdrw10 \trbrdrr\brdrs\br
|
|
|
|
|
string name = D3.Split(',')[i].ToString();
|
|
|
|
|
if (name.Length > 1)
|
|
|
|
|
{
|
|
|
|
|
name=name.Substring(0, 1).ToUpper() + name.Substring(1).ToLower();
|
|
|
|
|
if (name == "ASYS")
|
|
|
|
|
{
|
|
|
|
|
name = "As";
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
name = name.Substring(0, 1).ToUpper() + name.Substring(1).ToLower();//将元素改成首位大写次位小写
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//如果都没有值择把这个元素移除
|
|
|
|
@ -1670,6 +1688,11 @@ trgaph108\trleft5\trbrdrl\brdrs\brdrw10 \trbrdrt\brdrs\brdrw10 \trbrdrr\brdrs\br
|
|
|
|
|
sql += "and " + D1 + "='" + D1date.Split(',')[j] + "'";
|
|
|
|
|
}
|
|
|
|
|
string named3 = D3date.Split(',')[d3Knum].ToString();
|
|
|
|
|
//取数据时再将As转回未ASYS否则取不到数据
|
|
|
|
|
if (named3=="As")
|
|
|
|
|
{
|
|
|
|
|
named3 = "ASYS";
|
|
|
|
|
}
|
|
|
|
|
int ss = data.Select(sql).Count();
|
|
|
|
|
string ds = data.Select(sql)[0][named3].ToString();
|
|
|
|
|
//if (string.IsNullOrEmpty(ds))
|
|
|
|
@ -1697,7 +1720,13 @@ trgaph108\trleft5\trbrdrl\brdrs\brdrw10 \trbrdrt\brdrs\brdrw10 \trbrdrr\brdrs\br
|
|
|
|
|
{
|
|
|
|
|
sql += "and " + D1 + "='" + D1date.Split(',')[j] + "'";
|
|
|
|
|
}
|
|
|
|
|
string ds = data.Select(sql)[0][D3date.Split(',')[d3Knum].ToString()].ToString();
|
|
|
|
|
string named3 = D3date.Split(',')[d3Knum].ToString();
|
|
|
|
|
//取数据时再将As转回未ASYS否则取不到数据
|
|
|
|
|
if (named3 == "As")
|
|
|
|
|
{
|
|
|
|
|
named3 = "ASYS";
|
|
|
|
|
}
|
|
|
|
|
string ds = data.Select(sql)[0][named3].ToString();
|
|
|
|
|
//if (string.IsNullOrEmpty(ds))
|
|
|
|
|
//{
|
|
|
|
|
// ds = "W";
|
|
|
|
@ -1735,6 +1764,16 @@ trgaph108\trleft5\trbrdrl\brdrs\brdrw10 \trbrdrt\brdrs\brdrw10 \trbrdrr\brdrs\br
|
|
|
|
|
docs.Paragraphs[1].Range.Delete();
|
|
|
|
|
docs.SaveAs2(path);
|
|
|
|
|
docs.Close();
|
|
|
|
|
Process[] current = Process.GetProcesses();
|
|
|
|
|
//遍历与当前进程名称相同的进程列表
|
|
|
|
|
foreach (Process process in current)
|
|
|
|
|
{
|
|
|
|
|
//如果实例已经存在则kill当前进程
|
|
|
|
|
if (process.ProcessName.ToUpper().Equals("WINWORD"))
|
|
|
|
|
{
|
|
|
|
|
process.Kill(); break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
catch (Exception ex)
|
|
|
|
|
{
|
|
|
|
|