コード例 #1
0
 protected void GridView_PageIndexChanging(object sender, GridViewPageEventArgs e)
 {
     //In-built paging implementation
     TestAndAuditGrid.DataSource = GetData();
     TestAndAuditGrid.PageIndex  = e.NewPageIndex;
     TestAndAuditGrid.DataBind();
 }
コード例 #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"));
            //}
        }
コード例 #3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         TestAndAuditGrid.DataSource = GetData().DefaultView;
         TestAndAuditGrid.DataBind();
     }
     oSearchFilter.OnSearch += oSearchFilter_OnSearch;
 }
コード例 #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;
        }
コード例 #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();
        }
コード例 #6
0
 void oSearchFilter_OnSearch(object sender, EventArgs e)
 {
     TestAndAuditGrid.DataSource = GetData().DefaultView;
     TestAndAuditGrid.DataBind();
 }