Ejemplo n.º 1
0
 protected void GridView_PageIndexChanging(object sender, GridViewPageEventArgs e)
 {
     //In-built paging implementation
     TestAndAuditGrid.DataSource = GetData();
     TestAndAuditGrid.PageIndex  = e.NewPageIndex;
     TestAndAuditGrid.DataBind();
 }
Ejemplo n.º 2
0
        protected void ddlApplication_SelectedIndexChanged(object sender, EventArgs e)
        {
            drpSystemEntity.Items.Clear();
            TestAndAuditGrid.DataSource = null;
            TestAndAuditGrid.DataBind();
            string strApplication = string.Empty;

            strApplication = ddlApplication.SelectedValue;

            //if (ddlApplication.SelectedIndex != 0)
            //{
            var data = new SystemEntityTypeDataModel();

            if (Convert.ToInt32(ddlApplication.SelectedValue.ToString()) != -1)
            {
                data.ApplicationId = Convert.ToInt32(ddlApplication.SelectedValue.ToString());
            }
            else
            {
                data.ApplicationId = SessionVariables.RequestProfile.ApplicationId;
            }

            var dt = Framework.Components.Core.SystemEntityTypeDataManager.Search(data, SessionVariables.RequestProfile);

            UIHelper.LoadDropDown(dt,
                                  drpSystemEntity, SystemEntityTypeDataModel.DataColumns.EntityName,
                                  SystemEntityTypeDataModel.DataColumns.SystemEntityTypeId);
            drpSystemEntity.Items.Insert(0, new ListItem("All", "-1"));
            //}
        }
Ejemplo n.º 3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         TestAndAuditGrid.DataSource = GetData().DefaultView;
         TestAndAuditGrid.DataBind();
     }
     oSearchFilter.OnSearch += oSearchFilter_OnSearch;
 }
Ejemplo n.º 4
0
        private void GetData(int systemEntityTypeId)
        {
            var dt = Framework.Components.Audit.AuditHistoryDataManager.SearchRecordsWithMissingHistory(systemEntityTypeId, SessionVariables.RequestProfile);

            TestAndAuditGrid.DataSource = dt;
            TestAndAuditGrid.DataBind();
            //return dt;

            //return null;
        }
Ejemplo n.º 5
0
        private void DataBind(int appId, string appName, string entityName)
        {
            var dt = new DataTable();

            dt = Framework.Components.Core.SystemEntityTypeDataManager.EntityTestData(SessionVariables.RequestProfile, appId, appName.Replace(" ", string.Empty), entityName);

            TestAndAuditGrid.DataSource = dt;

            TestAndAuditGrid.DataBind();
        }
Ejemplo n.º 6
0
 void oSearchFilter_OnSearch(object sender, EventArgs e)
 {
     TestAndAuditGrid.DataSource = GetData().DefaultView;
     TestAndAuditGrid.DataBind();
 }