예제 #1
0
    protected void Load_eFormList()
    {
        DataTable dt = BLL_eForms_Admin.Get_Form_Library();

        lsteFormList.DataSource = dt;
        lsteFormList.DataBind();
    }
예제 #2
0
    /// <summary>
    /// Added pagination on 27 th may 2016
    /// </summary>
    protected void Load_Report_Index()
    {
        DataTable dtFleetCodes = ddlFleet.SelectedValues;
        DataTable dtVessel_ID  = ddlVessel.SelectedValues;

        DateTime?From_Date  = UDFLib.ConvertDateToNull(txtFromDate.Text);
        DateTime?To_Date    = UDFLib.ConvertDateToNull(txtToDate.Text);
        string   SearchText = txtSearch.Text;
        int      rowcount   = ucCustomPagerItems.isCountRecord;
        //int? isfavorite = null; if (ddlFavorite.SelectedValue != "2") isfavorite = Convert.ToInt32(ddlFavorite.SelectedValue.ToString());
        //int? countrycode = null; if (ddlSearchCountry.SelectedValue != "0") countrycode = Convert.ToInt32(ddlSearchCountry.SelectedValue.ToString());

        string sortbycoloumn = (ViewState["SORTBYCOLOUMN"] == null) ? null : (ViewState["SORTBYCOLOUMN"].ToString());
        int?   sortdirection = null; if (ViewState["SORTDIRECTION"] != null)
        {
            sortdirection = Int32.Parse(ViewState["SORTDIRECTION"].ToString());
        }

        DataTable dt = BLL_eForms_Admin.Get_ReportIndex(dtFleetCodes, dtVessel_ID, From_Date, To_Date, SearchText, GetSessionUserID(), sortbycoloumn, sortdirection
                                                        , ucCustomPagerItems.CurrentPageIndex, ucCustomPagerItems.PageSize, ref rowcount);


        if (ucCustomPagerItems.isCountRecord == 1)
        {
            ucCustomPagerItems.CountTotalRec = rowcount.ToString();
            ucCustomPagerItems.BuildPager();
        }



        GridView_Reports.DataSource = dt;
        GridView_Reports.DataBind();
    }
예제 #3
0
    protected void eFormVesselAssignmentList()
    {
        int eFormID = UDFLib.ConvertToInteger(lsteFormList.SelectedValue);

        if (eFormID == 0)
        {
            eFormID = 1;
        }

        DataTable dt = BLL_eForms_Admin.Get_eFormAssign_Vessel_List(eFormID);

        GridView1.DataSource = dt;
        GridView1.DataBind();
    }