Exemplo n.º 1
0
        /// <summary>
        /// 行单击事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void gridViewCode_RowClick(object sender, RowClickEventArgs e)
        {
            CtrlState = ControlState.Edit;

            _supplierEntity            = new SupplierEntity(this.gridViewCode.GetRowCellValue(e.RowHandle, "CODE").ToString());
            this.txtEditName.Text      = this.gridViewCode.GetRowCellValue(e.RowHandle, "NAME").ToString();
            this.txtEditCode.Text      = this.gridViewCode.GetRowCellValue(e.RowHandle, "CODE").ToString();
            this.txtEditShortName.Text = this.gridViewCode.GetRowCellValue(e.RowHandle, "NICKNAME").ToString();
            this.lblCode.Text          = this.gridViewCode.GetRowCellValue(e.RowHandle, "CODE").ToString();

            _supplierEntity.SupplierName     = this.txtEditName.Text;
            _supplierEntity.SupplierCode     = this.txtEditCode.Text;
            _supplierEntity.SupplierNickName = this.txtEditShortName.Text;
            _supplierEntity.ResetDirtyList();
        }