//protected void Load_CrewVoyages(int CrewID)
    //{
    //    DataTable dt = objBLLCrew.Get_CrewVoyages(CrewID);
    //    ddlVoyages.DataSource = dt;
    //    ddlVoyages.DataBind();
    //}
    protected void Load_CrewMaintenanceFeedbacks(int CrewID)
    {
        DataTable dt = objBLLCrew.Get_CrewMaintenanceFeedback(CrewID, int.Parse(Session["USERID"].ToString()));

        GridView_CrewRemarks.DataSource = dt;
        GridView_CrewRemarks.DataBind();
    }
    protected void Load_CrewPhotoToolTip(int CrewID)
    {
        DataSet ds = objCrew.Get_CrewInfo_ToolTip(CrewID, GetSessionUserID());

        if (ds.Tables[0].Rows.Count > 0)
        {
            // last voyage
            lblLastVessel.Text    = ds.Tables[0].Rows[0]["Vessel_Short_Name"].ToString();
            lblLastSignedOn.Text  = UDFLib.ConvertUserDateFormat(ds.Tables[0].Rows[0]["Sign_On_Date"].ToString(), DFormat);
            lblLastSignedOff.Text = UDFLib.ConvertUserDateFormat(ds.Tables[0].Rows[0]["Sign_Off_Date"].ToString(), DFormat);
        }

        // last two remarks
        GridView_CrewRemarks.DataSource = ds.Tables[1];
        GridView_CrewRemarks.DataBind();

        //Card Status
        if (ds.Tables[2].Rows.Count > 0)
        {
            lblCardStatus.Text     = ds.Tables[2].Rows[0]["cardtype"].ToString() + " " + ds.Tables[2].Rows[0]["cardstatus"].ToString();
            imgCardStatus.ImageUrl = "../images/" + ds.Tables[2].Rows[0]["cardtype"].ToString().Replace(" ", "") + "_" + ds.Tables[2].Rows[0]["cardstatus"].ToString() + ".png";
            imgCardStatus.Visible  = true;
        }

        Load_CrewComplaints(CrewID);
    }
Exemple #3
0
    protected void Load_CrewFeedbacks(int CrewID)
    {
        try
        {
            int       SelectRecordCount = 0;
            DataTable dt = objBLLCrew.Get_CrewRemarks(CrewID, int.Parse(Session["USERID"].ToString()), 100, 1, ref SelectRecordCount);
            if (dt != null)
            {
                if (dt.Rows.Count > 0)
                {
                    GridView_CrewRemarks.DataSource = dt;
                }
                else
                {
                    GridView_CrewRemarks.DataSource = null;
                }
            }
            else
            {
                GridView_CrewRemarks.DataSource = null;
            }

            GridView_CrewRemarks.DataBind();
        }
        catch (Exception ex)
        {
            UDFLib.WriteExceptionLog(ex);
        }
    }