Beispiel #1
0
        /// <summary>
        /// 获得当前选中的数据
        /// </summary>
        private void GetCurrentSelectedTable()
        {
            try
            {
                string code    = dgvData.SelectedRows[0].Cells["CODE"].Value.ToString();
                string company = bUser.GetCompany(dgvData.SelectedRows[0].Cells[5].Value.ToString());
                if (code != "")
                {
                    _currentUserTable = bUser.GetModel(code, company);
                }
            }
            catch (Exception ex) { }

            if (_currentUserTable == null || _currentUserTable.CODE == null || "".Equals(_currentUserTable.CODE))
            {
                _currentUserTable = null;
            }
        }