jingh
2021-04-06 27774c7a3e47cdc6a0aa0bfd7d2dda61c31ef21e
SCM/ÌõÂë´òÓ¡/Gy_BarCodeBill.cs
@@ -268,6 +268,7 @@
        private void bc_Click(object sender, EventArgs e)
        {
            this.Sub_SaveBill();
            Display();
        }
        //重置按纽
@@ -2209,8 +2210,48 @@
            DBUtility.Xt_BaseBillFun.GetGrid(grdMain, this.Name);
            DBUtility.Xt_BaseBillFun.GetGrid(grdSub, this.Name + "grdSub");
            grdSub.SelectionMode = DataGridViewSelectionMode.FullRowSelect;                     //选行模式
            ////
            ClsPub1.initGridList(grdList, this.Name + "grdList");
            ////
        }
        private void Display()
        {
            //ClsCN SubCn = new ClsCN();
            DataSet DSet;
            string sSql = "";
            string sWhere = "";
            //过滤条件
            if(HInterID<=0)
            {
                return;
            }
            //
            DSet = oWeb.getDataSetBySQL("select * from h_v_IF_BarCodeBillList Where HinterID=" + HInterID.ToString(), "h_v_IF_BarCodeBillList", ref DBUtility.ClsPub.sExeReturnInfo);
            //DSet = SubCn.RunProcReturn(sSql, ViewName, ref DBUtility.ClsPub.sExeReturnInfo);
            //生成首行标题
            if (DSet == null)
            {
                MessageBox.Show("没有返回任何结果,条码不存在!" + DBUtility.ClsPub.sExeReturnInfo);
                return;
            }
            //
            grdList.DataSource = DSet.Tables[0].DefaultView;
            //冻结
            int FrCol = 0;
            string s = "是";
            ClsPub1.DisplayGrid(grdList, this.Name+ "grdList", s, FrCol);
            //画线
            //GraphLine();
            //
        }
        //公式重算
        private void RowCount(int sRow, int sTag)
        {
@@ -3066,6 +3107,9 @@
                Report.PrintPreview(false); 
                Thread.Sleep(1000);
            }
            //
            Display();
        }
        //打印前判断条码是否已打印过
@@ -3187,6 +3231,9 @@
                Report.Print(true);
                Thread.Sleep(1000);
            }
            //
            Display();
        }
        #endregion