Ejemplo n.º 1
0
        protected override void OnPreRender(EventArgs e)
        {
            base.OnPreRender(e);
            if (!IsPostBack)
            {
                settings = Salaries.Configuration.ModuleConfig.GetSettings();
                UtilitiesDb utilDb = new UtilitiesDb(settings.ConnectionString);
                //Modificat:Muntean Raluca Cristina  - am adaugat ca parametru si id-ul angajatorului
                utilDb.CreateAngajatiSelectBox(this.lstAngajati, this.GetAngajator());
                this.lstAngajati.Items.Insert(0, new ListItem("[listare completa]", "[listare completa]"));
            }

            this.rapFluturas.ServerUrl = Salaries.Configuration.CryptographyClass.getSettingsWithoutDecode(STRING_URL);

            if (this.lstAngajati.SelectedIndex > 0)
            {
                this.rapFluturas.ReportPath = this.SingleFluturasPath;
                this.rapFluturas.SetQueryParameter("AngajatorID", this.GetAngajator().ToString());
                this.rapFluturas.SetQueryParameter("AngajatID", this.lstAngajati.SelectedValue);
                this.rapFluturas.SetQueryParameter("LunaID", this.GetCurrentMonth().ToString());
            }
            else
            {
                this.rapFluturas.ReportPath = this.AllFluturasPath;
                this.rapFluturas.SetQueryParameter("AngajatorID", this.GetAngajator().ToString());
                this.rapFluturas.SetQueryParameter("LunaID", this.GetCurrentMonth().ToString());
            }
        }