Beispiel #1
0
 private void colRight_SelectedIndexChanged(object sender, EventArgs e)
 {
     Heren.Common.Controls.TableView.FindComboBoxEditingControl control = sender as Heren.Common.Controls.TableView.FindComboBoxEditingControl;
     if (control.SelectedItem != null)
     {
         GyGydm gyGydm = control.SelectedItem as GyGydm;
         this.dataTableView1.CurrentRow.Cells[this.col_DM.Index].Value = gyGydm.DM;
     }
 }
Beispiel #2
0
 private void colRight_SelectedIndexChanged(object sender, EventArgs e)
 {
     Heren.Common.Controls.TableView.FindComboBoxEditingControl control = sender as Heren.Common.Controls.TableView.FindComboBoxEditingControl;
     if (control.SelectedItem != null)
     {
         RightPoint rightPoint = control.SelectedItem as RightPoint;
         this.dataGridView1.CurrentRow.Cells[this.colRightDesc.Index].Value = rightPoint.RightDesc;
         this.dataGridView1.CurrentRow.Cells[this.colUICommand.Index].Value = rightPoint.RightCommand;
     }
 }
Beispiel #3
0
 private void colRight_SelectedIndexChanged(object sender, EventArgs e)
 {
     Heren.Common.Controls.TableView.FindComboBoxEditingControl control = sender as Heren.Common.Controls.TableView.FindComboBoxEditingControl;
     if (control.SelectedItem != null)
     {
         UserInfo      userInfo      = control.SelectedItem as UserInfo;
         QcCheckResult qcCheckResult = this.dataTableView1.CurrentRow.Tag as QcCheckResult;
         if (qcCheckResult == null)
         {
             return;
         }
         qcCheckResult.INCHARGE_DOCTOR    = userInfo.USER_NAME;
         qcCheckResult.INCHARGE_DOCTOR_ID = userInfo.USER_ID;
         qcCheckResult.DEPT_CODE          = userInfo.DEPT_CODE;
         qcCheckResult.DEPT_IN_CHARGE     = userInfo.DEPT_NAME;
         this.dataTableView1.CurrentRow.Cells[this.col_DEPT_IN_CHARGE.Index].Value  = userInfo.DEPT_NAME;
         this.dataTableView1.CurrentRow.Cells[this.col_INCHARGE_DOCTOR.Index].Value = userInfo.USER_ID;
         this.dataTableView1.CurrentRow.Cells[this.col_INCHARGE_DOCTOR.Index].Tag   = userInfo;
     }
 }
Beispiel #4
0
        private void dataGridView1_EditingControlShowing(object sender, DataGridViewEditingControlShowingEventArgs e)
        {
            DataGridViewCell currCell = this.dataGridView1.CurrentCell;

            if (this.dataGridView1.CurrentCell.ColumnIndex == this.colRoleRightKey.Index)
            {
                Heren.Common.Controls.TableView.FindComboBoxEditingControl control = (e.Control as Heren.Common.Controls.TableView.FindComboBoxEditingControl);
                control.SelectedIndexChanged -= new EventHandler(colResource_SelectedIndexChanged);
                control.SelectedIndexChanged += new EventHandler(colResource_SelectedIndexChanged);
            }
            TextBox textBoxExitingControl = e.Control as TextBox;

            if (textBoxExitingControl == null || textBoxExitingControl.IsDisposed)
            {
                return;
            }
            textBoxExitingControl.ImeMode   = ImeMode.Alpha;
            textBoxExitingControl.KeyPress -= new KeyPressEventHandler(this.TextBoxExitingControl_KeyPress);
            textBoxExitingControl.KeyPress += new KeyPressEventHandler(this.TextBoxExitingControl_KeyPress);
        }