/// <summary>
 /// 插入
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void tbnInsert_Click(object sender, EventArgs e)
 {
     Bouwa.ITSP2V31.WIN.CardType.CardTypeEdit frmCardTypeEdit = new Bouwa.ITSP2V31.WIN.CardType.CardTypeEdit();
     frmCardTypeEdit.Parameter.Add("ActionType", ActionType.Insert.ToString("D"));
     frmCardTypeEdit.StartPosition = FormStartPosition.CenterScreen;
     frmCardTypeEdit.ShowDialog(this);
 }
        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void tbnUpdate_Click(object sender, EventArgs e)
        {
            if (dgvMain.SelectedRows.Count == 0)
            {
                MessageBoxForm.Show(new SystemMessage().GetInfoByCode("PleaseSelectData"), MessageBoxButtons.OK);
                return;
            }

            Bouwa.ITSP2V31.WIN.CardType.CardTypeEdit frmCardTypeEdit = new Bouwa.ITSP2V31.WIN.CardType.CardTypeEdit();

            string strId = dgvMain.SelectedRows[0].Cells["Id"].Value.ToString();

            frmCardTypeEdit.Parameter.Add("ActionType", ActionType.Update.ToString("D"));
            frmCardTypeEdit.Parameter.Add("Id", strId);
            frmCardTypeEdit.StartPosition = FormStartPosition.CenterScreen;
            frmCardTypeEdit.ShowDialog(this);
        }