Exemple #1
0
        protected void ButtonSearch_Click(object sender, EventArgs e)
        {
            EntityDataSourceGridBase.DefaultContainerName = EntityDataSourceGridBase.DefaultContainerName;
            EntityDataSourceGridBase.CommandParameters["Description"].DefaultValue         = "%" + TextBoxFilterName.Text + "%";
            EntityDataSourceGridBase.CommandParameters["LocationDescription"].DefaultValue = ComboBoxLocationDescription.Text == "" ? "%" : "%" + ComboBoxLocationDescription.Text + "%";

            if (CheckBoxFilterIsActive.Checked)
            {
                EntityDataSourceGridBase.CommandParameters["IsActive"].DefaultValue = "true";
            }
            else
            {
                EntityDataSourceGridBase.CommandParameters["IsActive"].DefaultValue = "false";
            }

            if (CheckBoxDebug.Checked)
            {
                EntityDataSourceGridBase.CommandParameters["IsDebug"].DefaultValue = "true";
            }
            else
            {
                EntityDataSourceGridBase.CommandParameters["IsDebug"].DefaultValue = "false";
            }

            EntityDataSourceGridBase.DataBind();
        }
Exemple #2
0
        protected void ButtonSearch_Click(object sender, EventArgs e)
        {
            EntityDataSourceGridBase.DefaultContainerName = EntityDataSourceGridBase.DefaultContainerName;

            if (Request.Params["Id"] != null)
            {
                EntityDataSourceGridBase.CommandParameters["Id"].DefaultValue = Request.Params["Id"];
            }
            else
            {
                EntityDataSourceGridBase.CommandParameters["Id"].DefaultValue = Request.Params["LedgerBookingCodeId"];
            }
            EntityDataSourceGridBase.CommandParameters["EmptyGUID"].DefaultValue           = Guid.Empty.ToString();
            EntityDataSourceGridBase.CommandParameters["Description"].DefaultValue         = TextBoxFilterName.Text == "" ? "%" : "%" + TextBoxFilterName.Text + "%";
            EntityDataSourceGridBase.CommandParameters["LocationDescription"].DefaultValue = ComboBoxLocationDescription.Text == "" ? "%" : "%" + ComboBoxLocationDescription.Text + "%";
            EntityDataSourceGridBase.CommandParameters["UserName"].DefaultValue            = TextBoxUserName.Text == "" ? "%" : "%" + TextBoxUserName.Text + "%";
            EntityDataSourceGridBase.CommandParameters["BookingType"].DefaultValue         = DropDownListBookingType.SelectedValue == "" ? "%" : "%" + DropDownListBookingType.SelectedValue + "%";
            EntityDataSourceGridBase.CommandParameters["StartDate"].DefaultValue           = CalendarControlStartDate.SelectedDate.ToString();
            EntityDataSourceGridBase.CommandParameters["EndDate"].DefaultValue             = CalendarControlEndDate.SelectedDate.AddDays(1).ToString();
            EntityDataSourceGridBase.CommandParameters["CorrectedStatus"].DefaultValue     = "True";
            EntityDataSourceGridBase.CommandParameters["CorrectedStatus2"].DefaultValue    = "False";
            if (DropDownListCorrected.SelectedValue == "1")
            {
                EntityDataSourceGridBase.CommandParameters["CorrectedStatus2"].DefaultValue = "True";
            }
            if (DropDownListCorrected.SelectedValue == "2")
            {
                EntityDataSourceGridBase.CommandParameters["CorrectedStatus"].DefaultValue = "False";
            }

            EntityDataSourceGridBase.DataBind();
        }
Exemple #3
0
 protected void ButtonSearch_Click(object sender, EventArgs e)
 {
     EntityDataSourceGridBase.DefaultContainerName = EntityDataSourceGridBase.DefaultContainerName;
     EntityDataSourceGridBase.WhereParameters["Description"].DefaultValue = "%" + TextBoxFilterName.Text + "%";
     if (CheckBoxFilterIsActive.Checked)
     {
         EntityDataSourceGridBase.WhereParameters["IsActive"].DefaultValue = "true";
     }
     else
     {
         EntityDataSourceGridBase.WhereParameters["IsActive"].DefaultValue = "false";
     }
     EntityDataSourceGridBase.DataBind();
 }