private void btnLiquidaciones_Click(object sender, EventArgs e) { string numeroLegajo = Convert.ToString(dgvLegajos.CurrentRow.Cells[0].Value); Legajo l = _listaLegajo.AsEnumerable().Where(x => x.NumeroLegajo == numeroLegajo).First(); foreach (Form frm in Application.OpenForms) { if (frm.Name == "PrincipalLiquidaciones") { int codigoPersona = (frm as PrincipalLiquidaciones)._legajo.codigoPersona; if (codigoPersona == l.codigoPersona) { return; } } } PrincipalLiquidaciones ScreenEmpl = new PrincipalLiquidaciones(this, _empresa, l); ScreenEmpl.MdiParent = this.MdiParent; ScreenEmpl.Show(); (this.MdiParent as Principal).comboEmpresas.Enabled = false; (this.MdiParent as Principal).btnSearch.Enabled = false; (this.MdiParent as Principal).btnEliminarEmpresa.Enabled = false; }
public ReciboBuilderMini(PrincipalLiquidaciones screenReciboBuilder, Empresa empresa, Legajo legajo) { InitializeComponent(); this.screenReciboBuilder = screenReciboBuilder; this._empresa = empresa; this._legajo = legajo; this.INIT_PATH = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile) + "\\documents\\Alis\\" + _empresa.NombreEmpresa + "\\" + _legajo.EmpleadoCUIL.Replace("-", ""); }
// SEGUIR DESDE ACA, BORRAR EL NODO DEL MES DEL XML CUANDO SE APRETA EN EL BOTON CANCELAR (en el caso de que sea liquidar y no editar) #region INICIO public GestionLiquidacionConceptos(PrincipalLiquidaciones screenReciboBuilder, Empresa empresa, Legajo legajo, bool isEditMode) { InitializeComponent(); this.screenReciboBuilder = screenReciboBuilder; this.docXML = screenReciboBuilder.XMLDocumento; this.isSalarioMensual = screenReciboBuilder.isSalarioMensual; this._empresa = empresa; this._legajo = legajo; this.añoSelected = Convert.ToString(screenReciboBuilder.cboAño.SelectedItem); this.mesSelected = Convert.ToString(screenReciboBuilder.cboMes.SelectedItem); this.quincenaSelected = Convert.ToString(screenReciboBuilder.cboQuincena.SelectedItem); this.isEditMode = isEditMode; this.dtDgvDetalles = new DataTable(); }
public ImprimirRecibo(PrincipalLiquidaciones screenReciboBuilder, string titulo = "") { InitializeComponent(); this.screenReciboBuilder = screenReciboBuilder; this._titulo = titulo; }