llj
2025-10-13 ce58bfdb73054fa181e0731d60f4c2e74798cabb
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]) + "】");
        }
        //获取工单当天物料生成的条码记录