コード例 #1
0
 private void checkButton1_CheckedChanged_1(object sender, EventArgs e)
 {
     this.textEditNotaCredito.ErrorText = "";
     DevExpress.XtraEditors.CheckButton checkButton = (DevExpress.XtraEditors.CheckButton)sender;
     this.textEditNotaCredito.Enabled        = checkButton.Checked;
     this.lookUpEditDiasNotaCredito.Enabled  = checkButton.Checked;
     this.textEditCreditoNotaCredito.Enabled = checkButton.Checked;
     if (!checkButton.Checked)
     {
         this.textEditNotaCredito.EditValue        = 0;
         this.textEditCreditoNotaCredito.EditValue = "";
     }
 }
コード例 #2
0
 private void checkButtonCheque_CheckedChanged(object sender, EventArgs e)
 {
     textEditCheque.ErrorText = "";
     DevExpress.XtraEditors.CheckButton checkButton = (DevExpress.XtraEditors.CheckButton)sender;
     this.textEditCheque.Enabled        = checkButton.Checked;
     this.textEditobservacion.Enabled   = checkButton.Checked;
     this.textEditCreditoCheque.Enabled = checkButton.Checked;
     this.lookUpEditDiasCheque.Enabled  = checkButton.Checked;
     if (!checkButton.Checked)
     {
         this.textEditCheque.EditValue        = 0;
         this.textEditobservacion.EditValue   = "";
         this.textEditCreditoCheque.EditValue = "";
     }
 }
コード例 #3
0
 private void checkButtonRetencion_CheckedChanged(object sender, EventArgs e)
 {
     this.textEditRetencion.ErrorText = "";
     DevExpress.XtraEditors.CheckButton checkButton = (DevExpress.XtraEditors.CheckButton)sender;
     this.textEditRetencion.Enabled        = checkButton.Checked;
     this.textEditNumeroRetencion.Enabled  = checkButton.Checked;
     this.textEditCreditoRetencion.Enabled = checkButton.Checked;
     this.lookUpEditDiasRetencion.Enabled  = checkButton.Checked;
     if (!checkButton.Checked)
     {
         this.textEditRetencion.EditValue        = 0;
         this.textEditNumeroRetencion.EditValue  = "";
         this.textEditCreditoRetencion.EditValue = "";
     }
 }
コード例 #4
0
 private void checkButton1_CheckedChanged(object sender, EventArgs e)
 {
     this.textEditEfectivo.ErrorText = "";
     DevExpress.XtraEditors.CheckButton checkButton = (DevExpress.XtraEditors.CheckButton)sender;
     this.textEditEfectivo.Enabled        = checkButton.Checked;
     this.textEditRecibido.Enabled        = checkButton.Checked;
     this.textEditCambio.Enabled          = checkButton.Checked;
     this.textEditCreditoEfectivo.Enabled = checkButton.Checked;
     this.lookUpEditDiasEfectivo.Enabled  = checkButton.Checked;
     if (!checkButton.Checked)
     {
         this.textEditEfectivo.EditValue = 0;
         this.textEditRecibido.EditValue = "";
         this.textEditCambio.EditValue   = "";
     }
 }
コード例 #5
0
 private void checkButtonDebito_CheckedChanged(object sender, EventArgs e)
 {
     this.textEditDebito.ErrorText   = "";
     this.lookUpEditDebito.ErrorText = "";
     DevExpress.XtraEditors.CheckButton checkButton = (DevExpress.XtraEditors.CheckButton)sender;
     this.textEditDebito.Enabled        = checkButton.Checked;
     this.lookUpEditDebito.Enabled      = checkButton.Checked;
     this.textEditAutoDebito.Enabled    = checkButton.Checked;
     this.textEditCreditoDebito.Enabled = checkButton.Checked;
     this.lookUpEditDiasDebito.Enabled  = checkButton.Checked;
     if (!checkButton.Checked)
     {
         this.textEditDebito.EditValue        = 0;
         this.lookUpEditDebito.EditValue      = null;
         this.textEditAutoDebito.EditValue    = "";
         this.textEditCreditoDebito.EditValue = "";
     }
 }