예제 #1
0
    protected void Load_Trainings()
    {
        int       CrewID = UDFLib.ConvertToInteger(Request.QueryString["CrewID"]);
        DataTable dt     = BLL_Crew_Training.Get_Crew_Trainings(CrewID, GetSessionUserID());

        GridView_Trainings.DataSource = dt;
        GridView_Trainings.DataBind();
    }
예제 #2
0
    protected void Load_TrainingToEdit(int TrainingID)
    {
        int       CrewID = UDFLib.ConvertToInteger(Request.QueryString["CrewID"]);
        DataTable dt     = BLL_Crew_Training.Get_Crew_Trainings(CrewID, TrainingID, GetSessionUserID());

        if (dt.Rows.Count > 0)
        {
            txtDateofTraining.Text        = UDFLib.ConvertUserDateFormat(Convert.ToString(dt.Rows[0]["StartDate"]));
            ddlTrainer.SelectedValue      = dt.Rows[0]["Trainer"].ToString();
            ddlTrainingType.SelectedValue = dt.Rows[0]["TrainingType"].ToString();
            txtResult.Text  = dt.Rows[0]["Result"].ToString();
            txtRemarks.Text = dt.Rows[0]["Remarks"].ToString();
        }
        Load_Attachments(TrainingID);
    }