From 3eb9b1145511e39eb6f4e8256f36573bb719035b Mon Sep 17 00:00:00 2001
From: wrx <88384874@qq.com>
Date: Mon, 24 Jun 2024 17:09:34 +0800
Subject: [PATCH] =?UTF-8?q?web=E6=8A=A5=E8=A1=A8=E6=8D=A2=E6=88=90?=
=?UTF-8?q?=E4=BA=86=E6=B0=B8=E7=BA=A2=E6=8A=A5=E8=A1=A8.=20=E6=B3=A8?=
=?UTF-8?q?=E5=A1=91=E6=89=93=E5=8D=B0,=E8=A7=A3=E5=86=B3=E4=BA=86?=
=?UTF-8?q?=E8=B7=A8=E5=A4=A9=E4=B8=8D=E5=85=B3=E7=B3=BB=E7=BB=9F,?=
=?UTF-8?q?=E7=AC=AC=E4=B8=80=E4=B8=AA=E6=B3=A8=E5=A1=91=E7=A0=81=E9=87=8D?=
=?UTF-8?q?=E5=A4=8D=E9=97=AE=E9=A2=98.=20=20=E9=97=A8=E6=A7=9B=E5=88=86?=
=?UTF-8?q?=E5=B7=A6=E5=8F=B3=E7=9A=84=E6=89=93=E5=8D=B0=E7=A8=8B=E5=BA=8F?=
=?UTF-8?q?=E6=8D=A2=E6=88=90=E4=BA=86=E6=96=B0=E7=9A=84.?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
SjMes/BBMPT.sln | 12 +-
SjMes/InjectionPC/App.config | 7 +-
SjMes/InjectionPC/FrmBarCode.cs | 70 +++--
SjMes/InjectionPC/FrmLogin.cs | 58 ++--
SjMes/InjectionPC/InjectionPC.csproj | 9 +-
SjMes/InjectionPC/Program.cs | 3 +
SjMes/InjectionPC/Report/111 - 副本2.grf | Bin 0 -> 3270 bytes
SjMes/InjectionPC/Report/MyReport.cs | 118 +++++++++
SjMes/InjectionPC/Report/称重.xlsx | Bin 0 -> 9192 bytes
.../MESWebSite/Manage/PaintBarCodeSearch.aspx | 7 +-
.../PaintBarCodeSearch.aspx.designer.cs | 16 +-
.../Manage/PlatingInspectionNew.aspx | 142 +++++++++-
.../Manage/PlatingInspectionNew.aspx.cs | 13 +
.../PlatingInspectionNew.aspx.designer.cs | 16 +-
SjMes/MESWebSite/Manage/ReportA.aspx | 8 +-
.../Manage/ReportA.aspx.designer.cs | 16 +-
SjMes/MESWebSite/Manage/ReportA_H.aspx | 10 +-
.../Manage/ReportA_H.aspx.designer.cs | 16 +-
SjMes/MESWebSite/Manage/ReportB.aspx | 7 +-
.../Manage/ReportB.aspx.designer.cs | 16 +-
SjMes/MESWebSite/Manage/ReportB_H.aspx | 7 +-
.../Manage/ReportB_H.aspx.designer.cs | 16 +-
SjMes/MESWebSite/Manage/ReportBaofei.aspx | 6 +-
.../Manage/ReportBaofei.aspx.designer.cs | 16 +-
SjMes/MESWebSite/Manage/ReportC.aspx | 6 +-
.../Manage/ReportC.aspx.designer.cs | 16 +-
SjMes/MESWebSite/Manage/ReportC_H.aspx | 7 +-
.../Manage/ReportC_H.aspx.designer.cs | 16 +-
SjMes/MESWebSite/Manage/ReportJ.aspx | 7 +-
.../Manage/ReportJ.aspx.designer.cs | 16 +-
SjMes/MESWebSite/Manage/ReportJ_H.aspx | 7 +-
.../Manage/ReportJ_H.aspx.designer.cs | 16 +-
SjMes/MESWebSite/Manage/ReportK.aspx | 8 +-
.../Manage/ReportK.aspx.designer.cs | 16 +-
SjMes/MESWebSite/Manage/ReportK_H.aspx | 7 +-
.../Manage/ReportK_H.aspx.designer.cs | 16 +-
SjMes/MESWebSite/Manage/ReportL.aspx | 6 +-
.../Manage/ReportL.aspx.designer.cs | 16 +-
SjMes/MESWebSite/Manage/ReportL_H.aspx | 7 +-
.../Manage/ReportL_H.aspx.designer.cs | 16 +-
SjMes/MESWebSite/Web.config | 6 +-
SjMes/PaintingPC/App.config | 10 +-
SjMes/PaintingPC/FrmFirstCheck.Designer.cs | 68 ++---
SjMes/PaintingPC/FrmSecondCheck.Designer.cs | 142 ++++++----
.../PaintingPC/FrmSecondCheckSpec.Designer.cs | 132 +++++----
.../FrmDoorSill_214_3.Designer.cs | 250 ++++++++----------
.../PunchAndWeld/FrmDoorSill_214_3.cs | 38 ++-
.../FrmDoorSill_214_3_Condition.cs | 1 +
.../PunchAndWeld/Properties/AssemblyInfo.cs | 4 +-
SjMes/PurchingMistakeNew/App.config | 6 +-
SjMes/WebService/Web.config | 3 +-
51 files changed, 962 insertions(+), 470 deletions(-)
create mode 100644 SjMes/InjectionPC/Report/111 - 副本2.grf
create mode 100644 SjMes/InjectionPC/Report/MyReport.cs
create mode 100644 SjMes/InjectionPC/Report/称重.xlsx
diff --git a/SjMes/BBMPT.sln b/SjMes/BBMPT.sln
index 9665f73..42545b0 100644
--- a/SjMes/BBMPT.sln
+++ b/SjMes/BBMPT.sln
@@ -1,7 +1,7 @@
Microsoft Visual Studio Solution File, Format Version 12.00
-# Visual Studio Version 17
-VisualStudioVersion = 17.8.34330.188
+# Visual Studio Version 16
+VisualStudioVersion = 16.0.29728.190
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MESWebSite", "MESWebSite\MESWebSite.csproj", "{B1DEC82C-3F33-4FC9-A37B-9527315E2C5E}"
EndProject
@@ -53,8 +53,6 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Updater", "Updater\Updater.
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PurchingMistakeNew", "PurchingMistakeNew\PurchingMistakeNew.csproj", "{D41C0724-818F-495C-84AF-945D6C9AE693}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AndonAssembly", "AndonAssembly\AndonAssembly.csproj", "{1BD4E2B2-0FE4-4022-8DE0-C55A467BE201}"
-EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@@ -143,12 +141,6 @@ Global
{D41C0724-818F-495C-84AF-945D6C9AE693}.Release|Any CPU.ActiveCfg = Release|Any CPU
{D41C0724-818F-495C-84AF-945D6C9AE693}.Release|Any CPU.Build.0 = Release|Any CPU
{D41C0724-818F-495C-84AF-945D6C9AE693}.Release|x86.ActiveCfg = Release|Any CPU
- {1BD4E2B2-0FE4-4022-8DE0-C55A467BE201}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {1BD4E2B2-0FE4-4022-8DE0-C55A467BE201}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {1BD4E2B2-0FE4-4022-8DE0-C55A467BE201}.Debug|x86.ActiveCfg = Debug|Any CPU
- {1BD4E2B2-0FE4-4022-8DE0-C55A467BE201}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {1BD4E2B2-0FE4-4022-8DE0-C55A467BE201}.Release|Any CPU.Build.0 = Release|Any CPU
- {1BD4E2B2-0FE4-4022-8DE0-C55A467BE201}.Release|x86.ActiveCfg = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
diff --git a/SjMes/InjectionPC/App.config b/SjMes/InjectionPC/App.config
index 3e15fc5..58c29ec 100644
--- a/SjMes/InjectionPC/App.config
+++ b/SjMes/InjectionPC/App.config
@@ -3,13 +3,14 @@
+
-
+
@@ -22,7 +23,9 @@
-->
-
+
+
+
diff --git a/SjMes/InjectionPC/FrmBarCode.cs b/SjMes/InjectionPC/FrmBarCode.cs
index 65592db..8006f58 100644
--- a/SjMes/InjectionPC/FrmBarCode.cs
+++ b/SjMes/InjectionPC/FrmBarCode.cs
@@ -33,7 +33,7 @@ namespace InjectionPC
{
InitializeComponent();
}
-
+ private bool _weightOutLine = false;
public string oldTime = "", newTime = "",tempTime="";
public static bool IsStart = true;
public string planID = "";
@@ -177,6 +177,7 @@ namespace InjectionPC
Ping p1 = new Ping();
bool status = false;
string code = "",OneCode="";
+ //NewOneCode 左门槛 NewOneCode1右门槛
string newcode = "", newcode1 = "", NewOneCode = "", NewOneCode1 = "", printerName = "", rfilename = "", reportName="";
string[] part=new string[3];
GridppReport report = new GridppReport();
@@ -238,10 +239,17 @@ namespace InjectionPC
{
PingReply reply = p1.Send(Program.IP); //发送主机名或Ip地址
StringBuilder sbuilder;
- if (reply.Status == IPStatus.Success)
+ if (reply.Status == IPStatus.Success || Program.WeightOutLine==true)
{
//读取称重文件
- status = Upload.DoConnComputer(Program.IP, Program.WeightFolder, Program.WeightUser, Program.WeightPsw);
+ if(Program.WeightOutLine == true)
+ {
+ status = true;
+ }
+ else
+ {
+ status = Upload.DoConnComputer(Program.IP, Program.WeightFolder, Program.WeightUser, Program.WeightPsw);
+ }
if (status)
{
//DirectoryInfo theFolder = new DirectoryInfo(@"\\192.168.1.16\aa");
@@ -249,7 +257,11 @@ namespace InjectionPC
DirectoryInfo theFolder = new DirectoryInfo(@"\\" + Program.IP + "\\" + Program.WeightFolder);
//string filename = theFolder.ToString() + "\\ProdHisFile.csv";
string filename = theFolder.ToString() + "\\" + Program.WeightFile;
-
+ if (Program.WeightOutLine == true)
+ {
+ filename = Application.StartupPath + "\\Report\\称重.xlsx";
+ oldTime = "2024-06-24 13:22:08";
+ }
FileInfo fl = new FileInfo(filename);
@@ -295,6 +307,7 @@ namespace InjectionPC
}
else
{
+ ReloadProduceDate();
//按照二维码的生成规则
newcode = dt.Rows[0]["PartNo"].ToString().Trim() + "." + Program.ProductDate.Substring(2, 2) + Program.ProductDate.Substring(5, 2) + Program.ProductDate.Substring(8, 2) + "." + "0001";
NewOneCode = dt.Rows[0]["StockNo"].ToString().Trim() + Program.ProductDate.Substring(2, 2) + Program.ProductDate.Substring(5, 2) + Program.ProductDate.Substring(8, 2) + "0001";
@@ -392,9 +405,14 @@ namespace InjectionPC
reportName = ConfigurationManager.AppSettings["Printer1"];
headTable.Rows.Add(row);
- ReportHelper rp = new ReportHelper(filename, headTable, null,
- (int)GRPaperOrientation.grpoDefault, 1, reportName);
- rp.Report.Print(false);
+ //ReportHelper rp = new ReportHelper(filename, headTable, null,
+ // (int)GRPaperOrientation.grpoDefault, 1, reportName);
+ //rp.Report.Print(false);
+
+ //string filename_label = Application.StartupPath + "\\Report\\111 - 副本.grf";
+ MyReport report2 = new MyReport(filename, headTable, null, reportName);
+ report2.Report.Printer.PrinterName = reportName;
+ report2.Report.Print(false);
#endregion
@@ -458,9 +476,13 @@ namespace InjectionPC
reportName = ConfigurationManager.AppSettings["Printer2"];
headTable1.Rows.Add(row1);
- ReportHelper rp1 = new ReportHelper(filename, headTable1, null,
- (int)GRPaperOrientation.grpoDefault, 1, reportName);
- rp1.Report.Print(false);
+ //ReportHelper rp1 = new ReportHelper(filename, headTable1, null,
+ // (int)GRPaperOrientation.grpoDefault, 1, reportName);
+ //rp1.Report.Print(false);
+
+ MyReport report2 = new MyReport(filename, headTable1, null, reportName);
+ report2.Report.Printer.PrinterName = reportName;
+ report2.Report.Print(false);
#endregion
@@ -502,6 +524,7 @@ namespace InjectionPC
}
else
{
+ ReloadProduceDate();
//按照二维码的生成规则
newcode1 = prdt.Rows[0]["PartNo"].ToString().Trim() + "." + Program.ProductDate.Substring(2, 2) + Program.ProductDate.Substring(5, 2) + Program.ProductDate.Substring(8, 2) + "." + "0001";
NewOneCode1 = prdt.Rows[0]["StockNo"].ToString().Trim() + Program.ProductDate.Substring(2, 2) + Program.ProductDate.Substring(5, 2) + Program.ProductDate.Substring(8, 2) + "0001";
@@ -570,10 +593,13 @@ namespace InjectionPC
reportName = ConfigurationManager.AppSettings["Printer2"];
headTable.Rows.Add(row);
- ReportHelper rp = new ReportHelper(filename, headTable, null,
- (int)GRPaperOrientation.grpoDefault, 1, reportName);
- rp.Report.Print(false);
+ //ReportHelper rp = new ReportHelper(filename, headTable, null,
+ // (int)GRPaperOrientation.grpoDefault, 1, reportName);
+ //rp.Report.Print(false);
+ MyReport report2 = new MyReport(filename, headTable, null, reportName);
+ report2.Report.Printer.PrinterName = reportName;
+ report2.Report.Print(false);
#endregion
LogHelper.WriteLog("打印时间:" + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + ";" + NewOneCode);
@@ -636,10 +662,13 @@ namespace InjectionPC
reportName = ConfigurationManager.AppSettings["Printer1"];
headTable1.Rows.Add(row1);
- ReportHelper rp1 = new ReportHelper(filename, headTable1, null,
- (int)GRPaperOrientation.grpoDefault, 1, reportName);
- rp1.Report.Print(false);
+ //ReportHelper rp1 = new ReportHelper(filename, headTable1, null,
+ // (int)GRPaperOrientation.grpoDefault, 1, reportName);
+ //rp1.Report.Print(false);
+ MyReport report2 = new MyReport(filename, headTable1, null, reportName);
+ report2.Report.Printer.PrinterName = reportName;
+ report2.Report.Print(false);
#endregion
LogHelper.WriteLog("打印时间:" + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + ";" + NewOneCode1);
@@ -676,6 +705,7 @@ namespace InjectionPC
}
else
{
+ ReloadProduceDate();
//按照二维码的生成规则
newcode = dt.Rows[0]["PartNo"].ToString().Trim() + "." + Program.ProductDate.Substring(2, 2) + Program.ProductDate.Substring(5, 2) + Program.ProductDate.Substring(8, 2) + "." + "0001";
NewOneCode = dt.Rows[0]["StockNo"].ToString().Trim() + Program.ProductDate.Substring(2, 2) + Program.ProductDate.Substring(5, 2) + Program.ProductDate.Substring(8, 2) + "0001";
@@ -784,7 +814,13 @@ namespace InjectionPC
timer1.Interval = Program.interVal;
timer1.Start();
}
-
+ void ReloadProduceDate()
+ {
+ if (DateTime.Parse(Program.ProductDate).ToString("yyyy-MM-dd") != DateTime.Now.ToString("yyyy-MM-dd"))
+ {
+ FrmLogin.SetProductDate();
+ }
+ }
private void label12_Click(object sender, EventArgs e)
{
diff --git a/SjMes/InjectionPC/FrmLogin.cs b/SjMes/InjectionPC/FrmLogin.cs
index ecc6f39..8622a77 100644
--- a/SjMes/InjectionPC/FrmLogin.cs
+++ b/SjMes/InjectionPC/FrmLogin.cs
@@ -34,23 +34,30 @@ namespace InjectionPC
Program.WeightFile = ConfigurationManager.AppSettings["WeightFile"].ToString();
Program.WeightUser = ConfigurationManager.AppSettings["WeightUser"].ToString();
Program.WeightPsw = ConfigurationManager.AppSettings["WeightPsw"].ToString();
-
- Program.interVal = Convert.ToInt32(ConfigurationManager.AppSettings["InterVal"].ToString());
- if (DateTime.Now.Hour >= 8 && DateTime.Now.Hour < 20)
+
+ string wol = ConfigurationManager.AppSettings["WeightOutLine"]?.ToString();
+ if( wol== "true")
{
- Program.Shift = "A班";
- Program.ProductDate = DateTime.Now.ToString("yyyy-MM-dd");
- }
- else
- {
- Program.Shift = "B班";
- if (DateTime.Now.Hour >= 0 && DateTime.Now.Hour < 8)
- {
- Program.ProductDate = DateTime.Now.AddDays(-1).ToString("yyyy-MM-dd");
- }
- Program.ProductDate = DateTime.Now.ToString("yyyy-MM-dd");
+ Program.WeightOutLine = true;
}
+ SetProductDate();
+ //Program.interVal = Convert.ToInt32(ConfigurationManager.AppSettings["InterVal"].ToString());
+ //if (DateTime.Now.Hour >= 8 && DateTime.Now.Hour < 20)
+ //{
+ // Program.Shift = "A班";
+ // Program.ProductDate = DateTime.Now.ToString("yyyy-MM-dd");
+ //}
+ //else
+ //{
+ // Program.Shift = "B班";
+ // if (DateTime.Now.Hour >= 0 && DateTime.Now.Hour < 8)
+ // {
+ // Program.ProductDate = DateTime.Now.AddDays(-1).ToString("yyyy-MM-dd");
+ // }
+ // Program.ProductDate = DateTime.Now.ToString("yyyy-MM-dd");
+ //}
+
OpenDb();
string stationID="";
#region 判断输入合法性
@@ -85,8 +92,8 @@ namespace InjectionPC
if (dt!=null && dt.Rows.Count >0)
{
this.Visible = false;
- //Form fr=new FrmBarCode();
- Form fr = new FrmQuality();
+ Form fr=new FrmBarCode();
+ //Form fr = new FrmQuality();
fr.Show();
}
@@ -96,7 +103,24 @@ namespace InjectionPC
}
dt.Dispose();
}
-
+ public static void SetProductDate()
+ {
+ Program.interVal = Convert.ToInt32(ConfigurationManager.AppSettings["InterVal"].ToString());
+ if (DateTime.Now.Hour >= 8 && DateTime.Now.Hour < 20)
+ {
+ Program.Shift = "A班";
+ Program.ProductDate = DateTime.Now.ToString("yyyy-MM-dd");
+ }
+ else
+ {
+ Program.Shift = "B班";
+ if (DateTime.Now.Hour >= 0 && DateTime.Now.Hour < 8)
+ {
+ Program.ProductDate = DateTime.Now.AddDays(-1).ToString("yyyy-MM-dd");
+ }
+ Program.ProductDate = DateTime.Now.ToString("yyyy-MM-dd");
+ }
+ }
private bool OpenDb()
{
bool OpenDb = false;
diff --git a/SjMes/InjectionPC/InjectionPC.csproj b/SjMes/InjectionPC/InjectionPC.csproj
index e0e64c5..34d2467 100644
--- a/SjMes/InjectionPC/InjectionPC.csproj
+++ b/SjMes/InjectionPC/InjectionPC.csproj
@@ -114,6 +114,7 @@
+
Form1.cs
@@ -152,6 +153,12 @@
Settings.settings
True
+
+ PreserveNewest
+
+
+ Always
+
@@ -201,7 +208,7 @@
0
tlbimp
False
- True
+ False
{00020430-0000-0000-C000-000000000046}
diff --git a/SjMes/InjectionPC/Program.cs b/SjMes/InjectionPC/Program.cs
index 2e0f43a..aadaaa7 100644
--- a/SjMes/InjectionPC/Program.cs
+++ b/SjMes/InjectionPC/Program.cs
@@ -27,6 +27,9 @@ namespace InjectionPC
public static string WeightUser;
public static string WeightPsw;
+ //true 注塑机离线. 用于测试
+ public static bool WeightOutLine=false;
+
public static int interVal;
[STAThread]
diff --git a/SjMes/InjectionPC/Report/111 - 副本2.grf b/SjMes/InjectionPC/Report/111 - 副本2.grf
new file mode 100644
index 0000000000000000000000000000000000000000..b33490ae80d240fc904af71623254efb18de4f37
GIT binary patch
literal 3270
zcmdT`yKWOf6s0v1{}3sK8?>6;_1fNI3gQqFDa0nWNP$u;_K+;HcdYS5N~kE1kN}B-
z2BiuhBt$_=0TDlw1XAS}m^-hXjU6YBXmGLi-nnxhXU;w2vmd{jkDrn*pIawG%J{9D
zrH6!#Qkvm%SRkagH)xpWFW#Ge|vp&_zpsq+UYZbeH0;tZX+;k
zkaTOC;|h{*4UuX@IQGMeSiGC{#8Zcq1rTO~1W{G)PkVeDNAPo5hl1a$KYa(=XBs$3b_{vPtyK9mO?$IpmoxvtS71kn{qcx4cgxsWDNm=zy_90
zZL*e0zVZMr@KpXQoD4>Dt%M0kxxxWVa*u+!t&U-hN~Cp`b3VT(ix0U$@&F;U4gJ#)H9%MI<6up4z!D4Cq^Dn
z9zGkA(!N*M@0!=SLC2E09<0M*YR^U@XR}2|DIkm2Xl9l=WS8UeqxqZw^P8$i!(HbT
zbRUvX-37Xkp}>)I
zBy2F|0y$KR!{Pg^=1)VP;XV{n{bK
z<>Jga
z4IzXZEE(E^ydt8uYX{Nu(lQ0pDRUMWJT*h?QU8~dRx#boG-*%DfDx)PRC
N6Y9k3OFre}#$Rj~3<>}M
literal 0
HcmV?d00001
diff --git a/SjMes/InjectionPC/Report/MyReport.cs b/SjMes/InjectionPC/Report/MyReport.cs
new file mode 100644
index 0000000..de8f760
--- /dev/null
+++ b/SjMes/InjectionPC/Report/MyReport.cs
@@ -0,0 +1,118 @@
+using System;
+using System.Data;
+using grproLib;
+
+namespace InjectionPC
+{
+ public class MyReport
+ {
+ // Token: 0x0600010A RID: 266 RVA: 0x000097A8 File Offset: 0x000079A8
+ public MyReport(string filename, DataTable _dtDataHead, DataTable _dtDataDetail,string printerName)
+ {
+ this.dtDataHead = _dtDataHead;
+ this.dtDataDetail = _dtDataDetail;
+ this.Report = new GridppReportClass();
+ this.Report.LoadFromFile(filename);
+ //this.Report.FetchRecord += new _IGridppReportEvents_FetchRecordEventHandler(this, (UIntPtr)ldftn(Report_FetchRecord));
+ this.Report.FetchRecord += Report_FetchRecord;
+ this.Report.Printer.PrinterName = printerName;
+ this.FillParameters();
+ }
+
+
+
+ // Token: 0x0600010B RID: 267 RVA: 0x00009833 File Offset: 0x00007A33
+ public void Print()
+ {
+ this.Report.Print(true);
+ }
+
+ // Token: 0x0600010C RID: 268 RVA: 0x00009843 File Offset: 0x00007A43
+ public void PrintPreview()
+ {
+ this.Report.PrintPreview(true);
+ }
+
+ // Token: 0x0600010D RID: 269 RVA: 0x00009854 File Offset: 0x00007A54
+ public void Report_FetchRecord()
+ {
+ if (this.dtDataDetail != null)
+ {
+ this.FillRecordToReport(this.Report, this.dtDataDetail);
+ }
+ }
+
+ // Token: 0x0600010E RID: 270 RVA: 0x00009884 File Offset: 0x00007A84
+ public void FillRecordToReport(IGridppReport _Report, DataTable dt)
+ {
+ MyReport.MatchFieldPairType[] array = new MyReport.MatchFieldPairType[Math.Min(_Report.DetailGrid.Recordset.Fields.Count, dt.Columns.Count)];
+ int num = 0;
+ for (int i = 0; i < dt.Columns.Count; i++)
+ {
+ foreach (object obj in _Report.DetailGrid.Recordset.Fields)
+ {
+ IGRField igrfield = (IGRField)obj;
+ if (string.Compare(igrfield.Name, dt.Columns[i].ColumnName, true) == 0)
+ {
+ array[num].grField = igrfield;
+ array[num].MatchColumnIndex = i;
+ num++;
+ break;
+ }
+ }
+ }
+ foreach (object obj2 in dt.Rows)
+ {
+ DataRow dataRow = (DataRow)obj2;
+ _Report.DetailGrid.Recordset.Append();
+ for (int i = 0; i < num; i++)
+ {
+ if (!dataRow.IsNull(array[i].MatchColumnIndex))
+ {
+ array[i].grField.Value = dataRow[array[i].MatchColumnIndex];
+ }
+ }
+ _Report.DetailGrid.Recordset.Post();
+ }
+ }
+
+ // Token: 0x0600010F RID: 271 RVA: 0x00009A68 File Offset: 0x00007C68
+ public void FillParameters()
+ {
+ if (this.dtDataHead.Rows.Count != 0)
+ {
+ for (int i = 0; i < this.dtDataHead.Columns.Count; i++)
+ {
+ foreach (object obj in this.Report.Parameters)
+ {
+ IGRParameter igrparameter = (IGRParameter)obj;
+ if (string.Compare(igrparameter.Name, this.dtDataHead.Columns[i].ColumnName, true) == 0)
+ {
+ igrparameter.Value = this.dtDataHead.Rows[0][this.dtDataHead.Columns[i].ColumnName];
+ break;
+ }
+ }
+ }
+ }
+ }
+
+ // Token: 0x04000078 RID: 120
+ public GridppReport Report = null;
+
+ // Token: 0x04000079 RID: 121
+ public DataTable dtDataHead = null;
+
+ // Token: 0x0400007A RID: 122
+ public DataTable dtDataDetail = null;
+
+ // Token: 0x02000033 RID: 51
+ private struct MatchFieldPairType
+ {
+ // Token: 0x0400007B RID: 123
+ public IGRField grField;
+
+ // Token: 0x0400007C RID: 124
+ public int MatchColumnIndex;
+ }
+ }
+}
diff --git a/SjMes/InjectionPC/Report/称重.xlsx b/SjMes/InjectionPC/Report/称重.xlsx
new file mode 100644
index 0000000000000000000000000000000000000000..3b188880cb42a67c1f2e50124215747535312ae1
GIT binary patch
literal 9192
zcmeHNXHXQ|x*c-P86@W*3@|8JB)?M3jhFE0bTMkxXx$*
zKok}LKmou-H&t+Pb_YAVTio?>1;fk*J)Im`@-WePascS4`~Tkli+i9ysn59`NUC(4
zd`c2uZ(yCHZ(x8)?I&Pb@PWh?iC5|B*e9y{?M%DfCMb}PPrpemNgOuR>|qy*G;m7f
zR0Pc}=Vc!%qQBgkZZHv)eJ=E+Sv4+cwAUNwwJ}D-?%L@CadVtjcq!vb9veQ1zO~-%
za^ODNwO2{9;}PG42W@q`%m(C$y_=;>JXIEW3Y8V2LUnXY5QR%#U9WCx%SKc5AXl2O
zlL@GT#Sm;a_)@i*<@7C5o&z=`l?Fc0h2pB)V9C`E$b&Saw&gn8bl>Oq<5D->t}hmO
z=@@MVMxS#%pn%&gyO%i4GBB%v=o7*t4oV&j3K|*upNL-`_&>{{`O+x1Ne!+Qab7(m
zY&oX|`>b0`swTdo+FG;O(eeFs5l^!C3}fnkKmbR1KM77?Ot{#JO5Lecom(;3vF`2c6HEUmC35C!h9DL!!9o|0J?vWX{`Z}
z{SeiniBcf}N~RWWU`Lpc;E&_q^87E>w14!7tt@=h`>FlesDsFCJlcs7D
z>s_W+jxFZe=zI>j<0Cjmu)596$kFQ1Ez`NJ73f{&Yt};A9gRG$QT6B+|VA
ze@a@G32kB0y)Hf0_5c^h2d6~#RQjZ<9;D^sDYW8eovIxr_l!cS&tqA^j-YsG=EYO_
zKD7|4{mfCao-;NZjAvZaW;zF#b>a`%G{T2f7xty+BVcmt>p_Cqkm7I6gVKvd@XuPd
z->llYNbXwvrAnHD6sLDkEh-oQ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