Beispiel #1
0
    /// <summary>
    /// Description: Method to bind the grid based on search criteria
    /// </summary>
    protected void BindKPI()
    {
        string sStartDate = UDFLib.ConvertToDefaultDt(txtStartDate.Text);
        string sEndDate   = UDFLib.ConvertToDefaultDt(txtEndDate.Text);

        // string sStartDate = txtStartDate.Text;
        // string sEndDate = txtEndDate.Text;
        if (sStartDate != "" && sEndDate != "")
        {
            DateTime  Startdate = Convert.ToDateTime(sStartDate);
            DateTime  EndDate   = Convert.ToDateTime(sEndDate);
            DataTable dt        = objKPI.Get_CO2_Average((DataTable)Session["Vessel_Id"], Startdate, EndDate);
            ViewState["RecCount"] = dt.Rows.Count;
            hdnVessel_IDs.Value   = null;
        }
    }