/// <summary>
        /// ��Ӷ���
        /// </summary>
        public void AddObject()
        {
            //�����������Ƿ��Ѿ�����
            //if (ObjectList == null)
            //{
            //    return;
            //}
            //�½�����
            Ps_Table_Enterprise obj = new Ps_Table_Enterprise();

            //ִ����Ӳ���
            using (FrmPs_Table_EnterpriseDialog dlg = new FrmPs_Table_EnterpriseDialog())
            {
                dlg.IsCreate = true;    //�����½���־
                dlg.Object = obj;
                if (dlg.ShowDialog() != DialogResult.OK)
                {
                    return;
                }
            }

            //���¶�����뵽������
            ObjectList.Add(obj);

            //ˢ�±�񣬲��������ж�λ���¶����ϡ�
            gridControl.RefreshDataSource();
            GridHelper.FocuseRow(this.gridView, obj);
        }
        /// <summary>
        /// �޸Ľ������
        /// </summary>
        public void UpdateObject()
        {
            //��ȡ�������
            Ps_Table_Enterprise obj = FocusedObject;
            if (obj == null)
            {
                return;
            }

            //���������һ������
            Ps_Table_Enterprise objCopy = new Ps_Table_Enterprise();
            DataConverter.CopyTo<Ps_Table_Enterprise>(obj, objCopy);

            //ִ���޸IJ���
            using (FrmPs_Table_EnterpriseDialog dlg = new FrmPs_Table_EnterpriseDialog())
            {
                dlg.Object = objCopy;   //�󶨸���
                if (dlg.ShowDialog() != DialogResult.OK)
                {
                    return;
                }
            }

            //�ø������½������
            DataConverter.CopyTo<Ps_Table_Enterprise>(objCopy, obj);
            //ˢ�±��
            gridControl.RefreshDataSource();
        }