Exemplo n.º 1
0
        private void GetSeafarer()
        {
            /// <summary>
            /// Date Created: 19/07/2011
            /// Created By: Ryan Bautista
            /// (description) Populate Seafarer details in dropdown list
            /// </summary>

            DataTable dt = SeafarerBLL.GetSeafarer();

            if (dt.Rows.Count > 0)
            {
                this.uoDropDownListSeafarer.DataSource     = dt;
                this.uoDropDownListSeafarer.DataTextField  = "NAME";
                this.uoDropDownListSeafarer.DataValueField = "colSeafarerIdInt";
                this.uoDropDownListSeafarer.DataBind();
                this.uoDropDownListSeafarer.Items.Insert(0, new ListItem("- Select a Seafarer -", "0"));
            }
        }
Exemplo n.º 2
0
        private void seafarerGetName()
        {
            /// <summary>
            /// Date Created: 27/07/2011
            /// Created By: Gabriel Oquialda
            /// (description) Load seafarer name to dropdownlist
            /// </summary>

            DataTable dt = new DataTable();

            dt = SeafarerBLL.GetSeafarer();

            if (dt.Rows.Count > 0)
            {
                uoDropDownListSeafarerName.DataSource     = dt;
                uoDropDownListSeafarerName.DataTextField  = "NAME";
                uoDropDownListSeafarerName.DataValueField = "colSeafarerIdInt";
                uoDropDownListSeafarerName.DataBind();
                uoDropDownListSeafarerName.Items.Insert(0, new ListItem("- Select a Seafarer -", "0"));
            }
        }