lu
2025-01-09 ef894da54fa37cd359cfbc89cb7e2e6618a5555c
DevApp/Gs.DevApp/DevFrm/Rk/Frm_MesItemQtrk.cs
@@ -1,4 +1,5 @@
using DevExpress.XtraEditors;
using DevExpress.XtraGrid.Views.Base.ViewInfo;
using Gs.DevApp.Entity;
using Gs.DevApp.ToolBox;
using Gs.DevApp.UserControl;
@@ -77,7 +78,7 @@
            {
                MsgHelper.Warning("提示:" + ex.Message);
            }
            gcMx1.MouseClick += GcMx1_MouseClick;
            gvMx1.FocusedRowChanged += GvMx1_FocusedRowChanged;
            this.ucBtnPrint1.btnDesignClick += (s, e) =>
            {
                ucBtnPrint1.rptParameter = "rpt_Qtrk{}";
@@ -115,9 +116,7 @@
                       + "}";
            };
        }
        private void GridView1_ColumnFilterChanged(object sender, EventArgs e)
        {
            _filterList = Gs.DevApp.ToolBox.UtilityHelper.GetDilter(gridView1.Columns);
@@ -576,23 +575,21 @@
            }
        }
        private void GcMx1_MouseClick(object sender, MouseEventArgs e)
        private void GvMx1_FocusedRowChanged(object sender, DevExpress.XtraGrid.Views.Base.FocusedRowChangedEventArgs e)
        {
            string rowGuid = Gs.DevApp.ToolBox.UtilityHelper.GetCurrentDoubleRow(gvMx1, e, "guid");
            if (string.IsNullOrEmpty(rowGuid))
                return;
            lbMxGuid.Text = rowGuid;
            ucBtnPrint1.guidKey = rowGuid;
            var info = gvMx1.CalcHitInfo(e.Location);
            var view = info.View;
            var row = view.GetDataRow(info.RowHandle);
            txtWlid.Text = row["itemId"].ToString();
            txtWlgg.Text = row["qd004"].ToString();
            txtWlmc.Text = row["qd003"].ToString();
            txtQuantity.Text = row["qd007"].ToString();//申请总量
            txtYdy.Text = row["YDYNUM"].ToString();//已打印总量
            kyPrtQty.Text = row["KDYNUM"].ToString();//可打印总量
            if (e.FocusedRowHandle >= 0)
            {
                DataRow row = gvMx1.GetDataRow(e.FocusedRowHandle);
                lbMxGuid.Text = row["guid"].ToString();
                ucBtnPrint1.guidKey = row["guid"].ToString();
                txtWlid.Text = row["itemId"].ToString();
                txtWlgg.Text = row["qd004"].ToString();
                txtWlmc.Text = row["qd003"].ToString();
                txtQuantity.Text = row["qd007"].ToString();//申请总量
                txtYdy.Text = row["YDYNUM"].ToString();//已打印总量
                kyPrtQty.Text = row["KDYNUM"].ToString();//可打印总量
            }
        }
    }
}