|
|
@@ -2,6 +2,7 @@
|
|
|
using System.Data;
|
|
|
using System.IO;
|
|
|
using System.Windows.Forms;
|
|
|
+using UAS_LabelMachine.Entity;
|
|
|
|
|
|
namespace UAS_LabelMachine.CustomControl
|
|
|
{
|
|
|
@@ -26,7 +27,7 @@ namespace UAS_LabelMachine.CustomControl
|
|
|
{
|
|
|
InitializeComponent();
|
|
|
//鼠标经过控件的时候显示文字
|
|
|
- dh = new DataHelper();
|
|
|
+ dh = SystemInf.dh;
|
|
|
toolTip1.SetToolTip(DownLoadTemplet, "下载模板");
|
|
|
toolTip1.SetToolTip(UpLoadData, "上传数据");
|
|
|
toolTip1.SetToolTip(ExportExcel, "导出数据");
|
|
|
@@ -170,7 +171,7 @@ namespace UAS_LabelMachine.CustomControl
|
|
|
//刷新总页数
|
|
|
private void RefreshTotalCount()
|
|
|
{
|
|
|
- DataHelper dh = new DataHelper();
|
|
|
+ DataHelper dh = SystemInf.dh;
|
|
|
//获取记录的总行数
|
|
|
if (Condition.Trim() != "")
|
|
|
{
|
|
|
@@ -216,7 +217,7 @@ namespace UAS_LabelMachine.CustomControl
|
|
|
{
|
|
|
DeleteID[i] = Dgv.SelectedRows[i].Cells[Table_ID].Value.ToString();
|
|
|
}
|
|
|
- DataHelper dh = new DataHelper();
|
|
|
+ DataHelper dh = SystemInf.dh;
|
|
|
//取的配置的数据是从DataTable里面判断的,取的是固定字段的Dgv用第二种
|
|
|
string tablename = TableName;
|
|
|
if (TableName.Contains("join"))
|
|
|
@@ -245,7 +246,7 @@ namespace UAS_LabelMachine.CustomControl
|
|
|
{
|
|
|
//Data表示导出数据
|
|
|
//Templet表示导出模板
|
|
|
- DataHelper dh = new DataHelper();
|
|
|
+ DataHelper dh = SystemInf.dh;
|
|
|
folderBrowserDialog1.Description = "选择导出的路径";
|
|
|
DialogResult result = folderBrowserDialog1.ShowDialog();
|
|
|
if (result == DialogResult.OK)
|