Exemplo n.º 1
0
        //联系人管理部分

        #region 联系人管理部分(添加、修改、删除、导入、导出等)

        //新增联系人
        private void btnAddLinkMain_Click(object sender, EventArgs e)
        {
            FrmLinkManEdit frmLinkMainEdit = new FrmLinkManEdit(currentCustomerId)
            {
                DbLinks = this.DbLinks
            };

            if (frmLinkMainEdit.ShowDialog(this) == System.Windows.Forms.DialogResult.OK)
            {
                GetLinkManList();
            }
        }
Exemplo n.º 2
0
        //编辑联系人
        private void btnEditLinkMain_Click(object sender, EventArgs e)
        {
            if (dgvLinkMain.Rows.Count <= 0 || dgvLinkMain.CurrentCell == null)
            {
                return;
            }

            string         linkManName     = dgvLinkMain["colName", dgvLinkMain.CurrentCell.RowIndex].Value.ToString();
            string         linkManId       = dgvLinkMain["colLinkManId", dgvLinkMain.CurrentCell.RowIndex].Value.ToString();
            FrmLinkManEdit frmLinkMainEdit = new FrmLinkManEdit(currentCustomerId, linkManId, linkManName)
            {
                DbLinks = this.DbLinks
            };

            if (frmLinkMainEdit.ShowDialog(this) == System.Windows.Forms.DialogResult.OK)
            {
                GetLinkManList();
            }
        }