private void afficheAgence(string numAgence) { #region declaration crlAgence agence = null; string strConfirm = ""; #endregion #region implementation if (numAgence != "") { agence = serviceAgence.selectAgence(numAgence); if (agence != null) { ddlTypeAgence.SelectedValue = agence.TypeAgence; ddlVille.SelectedValue = agence.NumVille; TextNomAgence.Text = agence.NomAgence; TextLocalisation.Text = agence.LocalisationAgence; TextSigle.Text = agence.SigleAgence; hfNumAgence.Value = agence.NumAgence; btnModifier.Enabled = true; btnVlider.Enabled = false; strConfirm = "Voulez vous vraiment modifier l'agence " + agence.NomAgence + "?"; ConfirmButtonExtender_btnModifier.ConfirmText = strConfirm; this.divIndicationText("", "Red"); } } #endregion }
private void afficheAgence(string numAgence) { #region declaration crlAgence agence = null; #endregion #region implementation if (numAgence != "") { agence = serviceAgence.selectAgence(numAgence); if (agence != null) { LabelLocalisation.Text = agence.LocalisationAgence; LabelNomGare.Text = agence.NomAgence; LabelSigle.Text = agence.SigleAgence; LabelType.Text = agence.TypeAgence; if (agence.ville != null) { LabelVille.Text = agence.ville.NomVille; } hfNumAgence.Value = agence.NumAgence; if (agence.sessionAgence != null) { LabelSessionStatu.Text = "Session ouverte"; imageStatut.ImageUrl = "~/CssStyle/images/vert.png"; btnOuvrirSession.Enabled = false; btnFermerSession.Enabled = true; this.afficheMontantTotal(agence.sessionAgence.NumSessionAgence); } else { LabelSessionStatu.Text = "Session fermée"; imageStatut.ImageUrl = "~/CssStyle/images/rouge.png"; btnOuvrirSession.Enabled = true; btnFermerSession.Enabled = false; Panel_BilletMontantTotal.Visible = false; Panel_CommissionMontantTotal.Visible = false; Panel_DureeAbonnementMontantTotal.Visible = false; Panel_MontantTotalSessionCaisse.Visible = false; Panel_RecuEncaisserMontantTotal.Visible = false; Panel_VoyageAbonnementMontantTotal.Visible = false; Panel_RecuADTotal.Visible = false; } } } #endregion }
private void afficheAgence(string numAgence) { #region declaration crlAgence agence = null; #endregion #region implementation agence = serviceAgence.selectAgence(numAgence); if (agence != null) { LabelAgence.Text = "Agence " + agence.NomAgence; if (agence.sessionAgence != null) { imageStatut.ImageUrl = "~/CssStyle/images/vert.png"; this.afficheMontantTotal(agent.agence.sessionAgence.NumSessionAgence); } else { imageStatut.ImageUrl = "~/CssStyle/images/rouge.png"; this.afficheMontantTotal(""); } } #endregion }