在继承方法中加入自己的代码

 protected override void txtLotID_KeyPress(object sender, KeyPressEventArgs e)
        {
            base.txtLotID_KeyPress(sender, e);//继承的代码
            if (e.KeyChar == (char)13)
            {
                DataTable dtPkg = WIPLIST.ViewPackageList(sPoId: CommonFunction.Trim(txtLotID.Text));
                if (dtPkg != null)
                {
                    DataRow dr = dtPkg.NewRow();
                    dr["包装批次"] = "";
                    dtPkg.Rows.InsertAt(dr, 0);
                    DevGridLookupHelper.InitPopup(gluPkgNo, new string[] { "", "", "包装批次" }, dtPkg, 2);
                }

            }
        }

 

栏目
每日精选