duhe
2025-09-28 0c8fcf1e070b79dbaf90349ed416523ceea1187e
四维尔防错:根据plc信号打印条码,打印时增加日志
5个文件已修改
34 ■■■■■ 已修改文件
WarM/WarM.csproj 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WarM/条码打印/Gy_BarCodeBill_automaticallyByPLC_New.cs 14 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WarM/条码打印/Gy_BarCodeBill_automaticallyByPLC_New.designer.cs 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WarM/条码打印/Gy_BarCodeBill_automaticallyByPLC_New_Change.cs 14 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WarM/条码打印/Gy_BarCodeBill_automaticallyByPLC_New_Change.designer.cs 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WarM/WarM.csproj
@@ -1330,6 +1330,10 @@
      <Project>{0a4ef483-d8d3-49a5-8378-974ef7993365}</Project>
      <Name>SQLHelper</Name>
    </ProjectReference>
    <ProjectReference Include="..\WebAPI\WebAPI.csproj">
      <Project>{5b60ce0c-963c-4dc2-91b3-0b471aac5438}</Project>
      <Name>WebAPI</Name>
    </ProjectReference>
  </ItemGroup>
  <ItemGroup>
    <Folder Include="金蝶仓库管理\" />
WarM/ÌõÂë´òÓ¡/Gy_BarCodeBill_automaticallyByPLC_New.cs
@@ -15,6 +15,8 @@
using System.Management;
using System.Net.NetworkInformation;
using System.Printing;
using WebAPI;
using Newtonsoft.Json;
namespace WarM
{
@@ -424,7 +426,11 @@
            }
            this.Sub_SaveBill();
            LogService.Write("==============================================================================================");
            LogService.Write("获取打印列表【" + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + "】");
            Display();
            LogService.Write("获取打印列表结束【" + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + "】");
            LogService.Write("==============================================================================================");
            if (radioButton_IsPrint_Yes.Checked == true)
            {
@@ -1241,7 +1247,11 @@
                this.Sub_SaveBill();
                //获取需要打印的数据
                LogService.Write("==============================================================================================");
                LogService.Write("获取打印列表【" + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + "】");
                Display();
                LogService.Write("获取打印列表结束【" + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + "】");
                LogService.Write("==============================================================================================");
                if (radioButton_IsPrint_Yes.Checked == true)
                {
@@ -1272,6 +1282,8 @@
        //获取需要打印的数据并存放在子表grdList
        private void Display()
        {
            LogService.Write("打印列表搜索语句:【select * from h_v_IF_BarCodeBillList Where HinterID=" + HInterID.ToString() + " order by HItemID】");
            //设置档案列表选项卡表格数据
            DataSet DSet = oCn.RunProcReturn("select * from h_v_IF_BarCodeBillList Where HinterID=" + HInterID.ToString() + " order by HItemID", "h_v_IF_BarCodeBillList", ref DBUtility.ClsPub.sExeReturnInfo);
            //生成首行标题
@@ -1288,6 +1300,8 @@
            DBUtility.Xt_BaseBillFun.DisplayGrid(grdList, this.Name + "grdList", s, FrCol);
            //画线
            //GraphLine();
            LogService.Write("打印列表数据:【" + JsonConvert.SerializeObject(DSet.Tables[0]) + "】");
        }
        //获取工单当天物料生成的条码记录
WarM/ÌõÂë´òÓ¡/Gy_BarCodeBill_automaticallyByPLC_New.designer.cs
@@ -306,7 +306,6 @@
            this.bc.Text = "生成";
            this.bc.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
            this.bc.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
            this.bc.Visible = false;
            this.bc.Click += new System.EventHandler(this.bc_Click);
            // 
            // DelRow
WarM/ÌõÂë´òÓ¡/Gy_BarCodeBill_automaticallyByPLC_New_Change.cs
@@ -17,6 +17,8 @@
using System.Printing;
using uPLibrary.Networking.M2Mqtt;
using uPLibrary.Networking.M2Mqtt.Messages;
using WebAPI;
using Newtonsoft.Json;
namespace WarM
{
@@ -429,7 +431,11 @@
            }
            this.Sub_SaveBill();
            LogService.Write("==============================================================================================");
            LogService.Write("获取打印列表【" + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + "】");
            Display();
            LogService.Write("获取打印列表结束【" + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + "】");
            LogService.Write("==============================================================================================");
            if (radioButton_IsPrint_Yes.Checked == true)
            {
@@ -1166,7 +1172,11 @@
                this.Sub_SaveBill();
                //获取需要打印的数据
                LogService.Write("==============================================================================================");
                LogService.Write("获取打印列表【" + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + "】");
                Display();
                LogService.Write("获取打印列表结束【" + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + "】");
                LogService.Write("==============================================================================================");
                if (radioButton_IsPrint_Yes.Checked == true)
                {
@@ -1197,6 +1207,8 @@
        //获取需要打印的数据并存放在子表grdList
        private void Display()
        {
            LogService.Write("打印列表搜索语句:【select * from h_v_IF_BarCodeBillList Where HinterID=" + HInterID.ToString() + " order by HItemID】");
            //设置档案列表选项卡表格数据
            DataSet DSet = oCn.RunProcReturn("select * from h_v_IF_BarCodeBillList Where HinterID=" + HInterID.ToString() + " order by HItemID", "h_v_IF_BarCodeBillList", ref DBUtility.ClsPub.sExeReturnInfo);
            //生成首行标题
@@ -1213,6 +1225,8 @@
            DBUtility.Xt_BaseBillFun.DisplayGrid(grdList, this.Name + "grdList", s, FrCol);
            //画线
            //GraphLine();
            LogService.Write("打印列表数据:【" + JsonConvert.SerializeObject(DSet.Tables[0]) + "】");
        }
        //获取工单当天物料生成的条码记录
WarM/ÌõÂë´òÓ¡/Gy_BarCodeBill_automaticallyByPLC_New_Change.designer.cs
@@ -315,7 +315,6 @@
            this.bc.Text = "生成";
            this.bc.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
            this.bc.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
            this.bc.Visible = false;
            this.bc.Click += new System.EventHandler(this.bc_Click);
            // 
            // DelRow