コード例 #1
0
    private void LoadLatestStewardship()
    {
        try
        {
            pageSize = Convert.ToInt32(ddlPageSize.SelectedValue);
            gvLatestSteward.PageSize = pageSize;
            string StakeholderName = txtStakeholderName.Text.Trim();
            string DBAName         = txtDBAName.Text.Trim();
            string ContactName     = txtPrimaryCotnact.Text.Trim();

            DateTime CreatedFromDate = txtCreatedFromDate.Text.Trim() == "" ? DateTime.MinValue : Convert.ToDateTime(txtCreatedFromDate.Text, System.Globalization.CultureInfo.InvariantCulture);
            DateTime CreatedToDate   = txtCreatedToDate.Text.Trim() == "" ? DateTime.MinValue : Convert.ToDateTime(txtCreatedToDate.Text, System.Globalization.CultureInfo.InvariantCulture);
            DataSet  ds;
            ds = OrganizationInfo.getPendingApplicationByOrgIdAndLangId(CurPageNum, pageSize, out totalRows, 20, LanguageId, StakeholderName, DBAName, ContactName, CreatedFromDate, CreatedToDate);
            gvLatestSteward.DataSource = ds;
            gvLatestSteward.DataBind();
        }
        catch (Exception ex)
        {
            new SqlLog().InsertSqlLog(0, "adminDashboard.LoadLatestStewardship", ex);
        }
    }