public void VerDtsCliente(string Cdgo) // from TimerReaderCard_Tick() { /* Se obtiene datos del cliente desde base datos, * Si CdgoTarjeta no esta registrado en tbl usuario: * se abrirá form para llenar datos del trabajador. * Sino se abrirá form para recarga de crédito. * */ objCliente = new clsEjecutor(Cdgo); objCliente.SetDtsBaseDatos(); bool blExisteCte = objCliente.getExisteCte(); if (!blExisteCte) { // Tarj NO esta registrado en base datos. Preguntar al admin si quiere darle de alta. if (MsjeBoxNoExisteTarj(Cdgo) == System.Windows.Forms.DialogResult.No) { return; } // blExisteCte(false) tds los Campos quedan habilitados para modificar! frmCliente ofrmCliente = new frmCliente(objCliente, false); ofrmCliente.Show(); // return; } objfrmAddCredito = new frmAddCredito(objCliente); objfrmAddCredito.Show(); }
private void VerDtsCliente(String CdgoTarjeta) { //clsEjecutor objCliente = new clsEjecutor(this.CdgoTarjeta); bool blExisteCte = objCliente.getExisteCte(); if (!blExisteCte) { /* Cliente NO esta registrado en base datos. */ if (MsjeBoxNoExisteTarj(CdgoTarjeta) == DialogResult.No) { return; } /* blExisteCte(false) tds los Campos quedan habilitados para modificar! */ } frmCliente ofrmCliente = new frmCliente(objCliente, blExisteCte); ofrmCliente.Show(); /* MUESTRA FORMULARIO CON DATOS DEL EJECUTOR ELEGIDO POR el admin. */ //this.Hide(); }