private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            if (!DataGridViewUtil.CheckPerrmisson(this, sender, e))
            {
                return;
            }
            if (e.RowIndex < 0 || e.ColumnIndex < 0)
            {
                return;
            }
            try
            {
                if (GlobalUtil.EngineUnconnectioned(this))
                {
                    return;
                }

                List <SupplierAccountRecord> list = (List <SupplierAccountRecord>) this.dataGridView1.DataSource;
                SupplierAccountRecord        item = (SupplierAccountRecord)list[e.RowIndex];
                if (e.ColumnIndex == sourceOrderIDDataGridViewTextBoxColumn.Index)
                {
                    if ((AccountType)item.AccountType == AccountType.PurchaseCollection || (AccountType)item.AccountType == AccountType.Other)
                    {
                        SupplierAccountSearchForm form = new SupplierAccountSearchForm();
                        if (form.ShowDialog(item, true) == DialogResult.OK)
                        {
                            RefreshPage();
                        }
                    }
                    else
                    {
                        SupplierAccountRecordOrderDetailForm form = new SupplierAccountRecordOrderDetailForm();
                        form.ShowDialog(item);
                    }
                    //402 在“供应商往来账明细”窗口内,增加点击单据 弹出单据明细窗口 功能。
                    //   this.skinSplitContainer1.Panel2Collapsed = false;
                    //  this.SourceOrderDetailClick?.Invoke(item.SourceOrderID, this, this.skinSplitContainer1.Panel2);
                }
                else if (e.ColumnIndex == ColumnDelete.Index)
                {
                    Delete(item);
                }
                else if (e.ColumnIndex == ColumnEdit.Index)
                {
                    Edit(item);
                }
                else if (e.ColumnIndex == Column2.Index)
                {
                    PayPrint(item);
                }
            }
            catch (Exception ee)
            {
                GlobalUtil.ShowError(ee);
            }
            finally
            {
                GlobalUtil.UnLockPage(this);
            }
        }
        private void baseButton2_Click(object sender, EventArgs e)
        {
            SupplierAccountSearchForm form = new SupplierAccountSearchForm();

            if (form.ShowDialog(this.FindForm()) == DialogResult.OK)
            {
                this.RefreshPage();
            }
        }
        private void Edit(SupplierAccountRecord item)
        {
            SupplierAccountSearchForm form = new SupplierAccountSearchForm();

            if (form.ShowDialog(item, false) == DialogResult.OK)
            {
                RefreshPage();
            }
        }