Exemple #1
0
    /// <summary>
    /// Loads data from the database for drop down lists
    /// </summary>
    private void PopulateControls0()
    {
        //
            // Populate the fndsion_noe_id Drop Down List
            //
            noeDataSet noeDS1 = new noeDataSet();
            noeService noeLogic1 = new noeService();

            if (noeLogic1.GetAll(noeDS1) > 0)
            {
                ListItem noeListItemNew;
                foreach (noeDataSet.noeRow noeCurrent in noeDS1.noe.Rows)
                {
                    //
                    // Populate the sklt_noe_id Drop Down List
                    //
                    if (noeCurrent.noe_cls==NoeCls.szh_sklt.ToString())
                    {
                        noeListItemNew = new ListItem();
                        noeListItemNew.Value = noeCurrent.noe_id.ToString();
                        noeListItemNew.Text = noeCurrent.noe_nam.ToString();

                        ctlsklt_noe_id.Items.Add(noeListItemNew);
                    }
                    //
                    // Populate the szh_fndsion Drop Down List
                    //

                    if (noeCurrent.noe_cls == NoeCls.szh_fndsion.ToString())
                    {
                        noeListItemNew = new ListItem();
                        noeListItemNew.Value = noeCurrent.noe_id.ToString();
                        noeListItemNew.Text = noeCurrent.noe_nam.ToString();

                        ctlfndsion_noe_id.Items.Add(noeListItemNew);
                    }
                    //
                    // Populate the sgf_noe_id Drop Down List
                    //
                    if (noeCurrent.noe_cls == NoeCls.szh_fndsion.ToString())
                    {
                        noeListItemNew = new ListItem();
                        noeListItemNew.Value = noeCurrent.noe_id.ToString();
                        noeListItemNew.Text = noeCurrent.noe_nam.ToString();

                        ctlfndsion_noe_id.Items.Add(noeListItemNew);
                    }

                }
            }
    }
Exemple #2
0
 /// <summary>
 /// Initializes the static instance
 /// </summary>
 static noeService()
 {
     m_Instance = new noeService();
 }