private void fPlanCta_ItemSeleccionadoOk(object sender, OOB.Contable.PlanCta.Ficha e) { if (e.Tipo == OOB.Contable.PlanCta.Enumerados.Tipo.Auxiliar) { fPlanCta.Close(); switch (IdControl) { case 1: CtaPasivo = e; L_CTA_PASIVO.Text = e.Cuenta; break; case 2: CtaGasto = e; L_CTA_GASTO.Text = e.Cuenta; break; case 3: CtaBanco = e; L_CTA_BANCO.Text = e.Cuenta; break; } } else { Helpers.Msg.Error("Cuenta No Puede Ser Seleccionada" + Environment.NewLine + "Debe Ser Una Cuenta Tipo Auxiliar"); fPlanCta.Visible = true; } }
private void fPlanCta_ItemSeleccionadoOk(object sender, OOB.Contable.PlanCta.Ficha e) { if (e.Tipo == OOB.Contable.PlanCta.Enumerados.Tipo.Auxiliar) { fPlanCta.Close(); var item = (Detalle)bs.Current; item.Cta = e; item.Codigo = e.Codigo; item.Descripcion = e.Nombre; DGV.Rows[filaActual].ErrorText = ""; DGV.Rows[filaActual].Cells[columnaActual].ErrorText = ""; int c = 2; if (e.Naturaleza == OOB.Contable.PlanCta.Enumerados.Naturaleza.Acreedora) { c = 3; } DGV.CurrentCell = DGV[c, filaActual]; } else { Helpers.Msg.Error("Cuenta No Puede Ser Seleccionada. Debe Ser Una Cuenta Tipo Auxiliar"); } }
private void fPlanCta_ItemSeleccionadoOk(object sender, OOB.Contable.PlanCta.Ficha e) { if (e.Tipo == OOB.Contable.PlanCta.Enumerados.Tipo.Auxiliar) { fPlanCta.Close(); CtaCierrePeriodo = e; L_CTA_1.Text = e.Cuenta; } else { Helpers.Msg.Error("Cuenta No Puede Ser Seleccionada" + Environment.NewLine + "Debe Ser Una Cuenta Tipo Auxiliar"); fPlanCta.Visible = true; } }
private void fPlanCta_ItemSeleccionadoOk(object sender, OOB.Contable.PlanCta.Ficha e) { if (e.Tipo == OOB.Contable.PlanCta.Enumerados.Tipo.Auxiliar) { fPlanCta.Close(); switch (IdControl) { case 1: CtaInventario = e; L_CTA_INV.Text = e.Cuenta; break; case 2: CtaCosto = e; L_CTA_COSTO.Text = e.Cuenta; break; case 3: CtaVenta = e; L_CTA_VENTA.Text = e.Cuenta; break; case 4: CtaMerma = e; L_CTA_MERMA.Text = e.Cuenta; break; case 5: CtaConsumo = e; L_CTA_CONSUMO.Text = e.Cuenta; break; } } else { Helpers.Msg.Error("Cuenta No Puede Ser Seleccionada" + Environment.NewLine + "Debe Ser Una Cuenta Tipo Auxiliar"); fPlanCta.Visible = true; } }