四维尔条码PLC自动生成,有时候会多打印一个不相干的物料的条码。问题处理
2个文件已修改
8 ■■■■ 已修改文件
WarM/条码打印/Gy_BarCodeBill_automaticallyByPLC_New.cs 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WarM/条码打印/Gy_BarCodeBill_automaticallyByPLC_New_Change.cs 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WarM/ÌõÂë´òÓ¡/Gy_BarCodeBill_automaticallyByPLC_New.cs
@@ -1282,10 +1282,10 @@
        //获取需要打印的数据并存放在子表grdList
        private void Display()
        {
            LogService.Write("打印列表搜索语句:【select * from h_v_IF_BarCodeBillList Where HinterID=" + HInterID.ToString() + " order by HItemID】");
            LogService.Write("打印列表搜索语句:【select * from h_v_IF_BarCodeBillList Where HinterID=" + HInterID.ToString() + " and HMaterID = " + grdMain.Rows[0].Cells[HMaterIDCol].Value + " 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);
            DataSet DSet = oCn.RunProcReturn("select * from h_v_IF_BarCodeBillList Where HinterID=" + HInterID.ToString() + " and HMaterID = " + grdMain.Rows[0].Cells[HMaterIDCol].Value + " order by HItemID", "h_v_IF_BarCodeBillList", ref DBUtility.ClsPub.sExeReturnInfo);
            //生成首行标题
            if (DSet == null)
            {
WarM/ÌõÂë´òÓ¡/Gy_BarCodeBill_automaticallyByPLC_New_Change.cs
@@ -1207,10 +1207,10 @@
        //获取需要打印的数据并存放在子表grdList
        private void Display()
        {
            LogService.Write("打印列表搜索语句:【select * from h_v_IF_BarCodeBillList Where HinterID=" + HInterID.ToString() + " order by HItemID】");
            LogService.Write("打印列表搜索语句:【select * from h_v_IF_BarCodeBillList Where HinterID=" + HInterID.ToString() + " and HMaterID = " + grdMain.Rows[0].Cells[HMaterIDCol].Value + " 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);
            DataSet DSet = oCn.RunProcReturn("select * from h_v_IF_BarCodeBillList Where HinterID=" + HInterID.ToString() + " and HMaterID = " + grdMain.Rows[0].Cells[HMaterIDCol].Value + " order by HItemID", "h_v_IF_BarCodeBillList", ref DBUtility.ClsPub.sExeReturnInfo);
            //生成首行标题
            if (DSet == null)
            {