|
@@ -844,8 +844,6 @@ namespace OTSIncAReportApp
|
|
|
private void OTSReport_Export_Load(object sender, EventArgs e)
|
|
|
{
|
|
|
|
|
|
-
|
|
|
-
|
|
|
//先获取D盘,如果没有,则再获取C盘
|
|
|
string str_drivename = GetSecondDriveName();
|
|
|
if (str_drivename == "")
|
|
@@ -1207,10 +1205,7 @@ namespace OTSIncAReportApp
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- private void button4_Click(object sender, EventArgs e)
|
|
|
- {
|
|
|
-
|
|
|
- }
|
|
|
+
|
|
|
|
|
|
private void btn_preview_Click(object sender, EventArgs e)
|
|
|
{
|
|
@@ -1293,15 +1288,6 @@ namespace OTSIncAReportApp
|
|
|
|
|
|
}
|
|
|
|
|
|
- private void button1_Click(object sender, EventArgs e)
|
|
|
- {
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- private void button6_Click(object sender, EventArgs e)
|
|
|
- {
|
|
|
-
|
|
|
- }
|
|
|
|
|
|
|
|
|
private void btn_selectPath_Click(object sender, EventArgs e)
|
|
@@ -1921,7 +1907,6 @@ namespace OTSIncAReportApp
|
|
|
if (ls_str.IndexOf("颗粒列表") > -1)
|
|
|
{
|
|
|
m_export_reporttemplate.InsertReportTemplateTable_ParticlesGridDevidePage();
|
|
|
-
|
|
|
lock (m_thread_flag)
|
|
|
m_thread_flag = "无";
|
|
|
}
|
|
@@ -2143,27 +2128,6 @@ namespace OTSIncAReportApp
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- if (File.Exists(m_strDBpathGB))
|
|
|
- {
|
|
|
- DialogResult dr = MessageBox.Show("[Yes]直接打开报表,[No]重新生成报表,[Cancal]取消操作", "报表已有生成数据,请选择操作", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question);
|
|
|
-
|
|
|
- if (dr == DialogResult.Yes)
|
|
|
- {
|
|
|
-
|
|
|
- OpenOTSINcAreportGBTemplateAPP();
|
|
|
- return;
|
|
|
- }
|
|
|
- if (dr == DialogResult.No)
|
|
|
- {
|
|
|
- //GoTo Here;
|
|
|
- //不干预,跳转到下面执行导出操作
|
|
|
- }
|
|
|
- if (dr == DialogResult.Cancel)
|
|
|
- {
|
|
|
- //取消,返回
|
|
|
- return;
|
|
|
- }
|
|
|
- }
|
|
|
//通过底层CLR运算,获取国标参数信息
|
|
|
string resultfile = m_ReportApp.resultFilesList[m_ReportApp.WorkingResult].FilePath + "\\"
|
|
|
+ m_ReportApp.resultFilesList[m_ReportApp.WorkingResult].FileName;
|
|
@@ -2175,6 +2139,9 @@ namespace OTSIncAReportApp
|
|
|
SaveReportGBTemplateDBFile(GB1, GB2, ResultGrid);//将国标信息存储到数据库中
|
|
|
OpenOTSINcAreportGBTemplateAPP();//打开报告模板程序
|
|
|
|
|
|
+ m_ReportApp.m_DataMgrFun.ShowsTheDefaultPic();
|
|
|
+ this.Close();
|
|
|
+
|
|
|
}
|
|
|
/// <summary>
|
|
|
/// 将国标数据保存至DB数据中
|
|
@@ -2250,7 +2217,6 @@ namespace OTSIncAReportApp
|
|
|
string[] strcoltypes_GB2_DS = { "TEXT", "TEXT", "TEXT", "TEXT", "TEXT", "TEXT" };
|
|
|
sh.CreateTable("GB2_DS", strcolumns_GB2_DS, strcoltypes_GB2_DS);
|
|
|
|
|
|
-
|
|
|
for (int i = 0; i < ResultGrid.Rows.Count; i++)
|
|
|
{
|
|
|
string ls_sqlstr = "insert into ResultGrid (CLJGMC, YXSJ, SCZS, FLFA, YJCTZ, SCMJ, CKBZ) values('"
|
|
@@ -2264,7 +2230,6 @@ namespace OTSIncAReportApp
|
|
|
int iresult = sh.ExecuteQueryResult(ls_sqlstr, tr);
|
|
|
}
|
|
|
|
|
|
-
|
|
|
//插入 GB1_A
|
|
|
for (int i = 0; i < GB1[0].Rows.Count; i++)
|
|
|
{
|
|
@@ -2354,9 +2319,6 @@ namespace OTSIncAReportApp
|
|
|
int iresult = sh.ExecuteQueryResult(ls_sqlstr, tr);
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
//插入 GB2_A
|
|
|
for (int i = 0; i < GB2[0].Rows.Count; i++)
|
|
|
{
|
|
@@ -2497,9 +2459,14 @@ namespace OTSIncAReportApp
|
|
|
process.Arguments = string.Format("{0} {1} {2} {3} {4}", arg1, arg2, arg3, arg4, arg5); //多个参数用空格隔开
|
|
|
process.WindowStyle = ProcessWindowStyle.Normal;
|
|
|
Process.Start(process);
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
|
|
|
-
|
|
|
+ private void OTSReport_Export_FormClosed(object sender, FormClosedEventArgs e)
|
|
|
+ {
|
|
|
+
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
}
|