void grid_FocusedRowChanged(object sender, DevExpress.AgDataGrid.Data.FocusedRowChangedEventArgs e)
 {
     index      = e.NewRowHandle;
     pnt        = new Point();
     this.pnt.X = searchRlt[index].X;
     this.pnt.Y = searchRlt[index].Y;
     //OnFocusedRowChanged(e.NewDataRow);
 }
 /// <summary>
 /// 选择某行,统计对应列的货物或财务信息
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void grid_FocusedRowChanged(object sender, DevExpress.AgDataGrid.Data.FocusedRowChangedEventArgs e)
 {
     SelectIndex = e.NewRowHandle;
     if (this.SelectIndex < 0)
     {
         return;
     }
     if (!IsFinancial)
     {
         proName = (e.NewDataRow as prodectsInfo).ProdectName;
     }
 }
        /// <summary>
        /// 编辑完获取数据
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void grid_FocusedRowChanged(object sender, DevExpress.AgDataGrid.Data.FocusedRowChangedEventArgs e)
        {
            int index = e.NewRowHandle;

            if (index < 0)
            {
                return;
            }
            bool s = false;

            if (IsFinancial)
            {
                for (int i = 0; i < FInx.Count; i++)
                {
                    if (FInx[i] == index)
                    {
                        s = true;
                        break;
                    }
                }

                if (!s)
                {
                    FInx.Add(index);
                }
            }
            else
            {
                for (int i = 0; i < PInx.Count; i++)
                {
                    if (PInx[i] == index)
                    {
                        s = true;
                        break;
                    }
                }

                if (!s)
                {
                    PInx.Add(index);
                }
            }

            //if (Isedit && IsFinancial)
            //{
            //    FinancialInfo f = new FinancialInfo();
            //    f = e.OldDataRow as FinancialInfo;
            //    if (_fincials[index] != f)
            //    {
            //        uppFData.Add(f);
            //    }
            //}
            //if (Isedit && !IsFinancial)
            //{
            //    prodectsInfo p = new prodectsInfo();
            //    p = e.OldDataRow as prodectsInfo;
            //    if (_prodects[index] != p)
            //    {
            //        uppPData.Add(p);
            //    }
            //}
        }