Пример #1
0
        //供应商付款
        private void ProviderPayTool_Click(object sender, EventArgs e)
        {
            if (dgvCustomerList.CurrentCell == null)
            {
                BathClass.printErrorMsg("为选择供应商!");
                return;
            }
            var p    = db.Provider.FirstOrDefault(x => x.name == dgvCustomerList.CurrentRow.Cells[0].Value.ToString());
            var form = new ProviderPaysForm(db, p);

            if (form.ShowDialog() != DialogResult.OK)
            {
                return;
            }

            int r = dgvCustomerList.CurrentCell.RowIndex;
            int c = dgvCustomerList.CurrentCell.ColumnIndex;

            dgvProviderList_show();
            dgvCustomerList.CurrentCell = dgvCustomerList[c, r];
            dgvProviderPays_show(p);
        }
Пример #2
0
        //供应商付款
        private void ProviderPayTool_Click(object sender, EventArgs e)
        {
            if (dgvCustomerList.CurrentCell==null)
            {
                BathClass.printErrorMsg("为选择供应商!");
                return;
            }
            var p = db.Provider.FirstOrDefault(x => x.name == dgvCustomerList.CurrentRow.Cells[0].Value.ToString());
            var form = new ProviderPaysForm(db, p);
            if (form.ShowDialog() != DialogResult.OK)
                return;

            int r = dgvCustomerList.CurrentCell.RowIndex;
            int c = dgvCustomerList.CurrentCell.ColumnIndex;
            dgvProviderList_show();
            dgvCustomerList.CurrentCell = dgvCustomerList[c, r];
            dgvProviderPays_show(p);
        }