Пример #1
0
        private void gridView2_MouseMove(object sender, MouseEventArgs e)
        {
            GridHitInfo hInfo = gridView2.CalcHitInfo(new Point(e.X, e.Y));

            if (hInfo.InRow && hInfo.Column != null)
            {
                panel_info.Visible = true;
                string s_bi003    = gridView2.GetRowCellValue(hInfo.RowHandle, hInfo.Column).ToString();
                int    rowerOrder = hInfo.RowHandle + 1;
                string s_bi001    = MiscAction.GetBi001ByBitdescRowOrder(curRegionId, s_bi003, rowerOrder);
                bi01 = session1.GetObjectByKey <BI01>(s_bi001);
                if (bi01 != null)
                {
                    lc_position.Text = MiscAction.GetTombPosition(bi01.BI001);
                    lc_price.Text    = string.Format("{0:C2}", bi01.PRICE);
                    lc_bi005.Text    = MiscAction.Mapper_mx(bi01.BI005);

                    if (bi01.STATUS != '2')
                    {
                        lc_ac003_cap.Visible = false;
                        lc_ac003.Visible     = false;
                        lc_ac049_cap.Visible = false;
                        lc_ac049.Visible     = false;
                    }
                    else
                    {
                        lc_ac003_cap.Visible = true;
                        lc_ac003.Visible     = true;
                        lc_ac049_cap.Visible = true;
                        lc_ac049.Visible     = true;

                        AC01 ac01 = session1.GetObjectByKey <AC01>(bi01.AC001);
                        if (ac01 != null)
                        {
                            lc_ac003.Text = ac01.AC003;
                            lc_ac049.Text = ac01.AC049.ToString();
                        }
                    }
                }
            }
            else
            {
                panel_info.Visible = false;
            }
        }