Exemplo n.º 1
0
        /// <summary>
        /// Gets the neighborhood CFG details.
        /// </summary>
        /// <param name="nbhdId">The NBHD ID.</param>
        /// <returns>Typed DataSet</returns>
        public static F35102NeighborhoodCfgData GetNeighborhoodCfgDetails(int nbhdId)
        {
            F35102NeighborhoodCfgData neighborhoodCfgData = new F35102NeighborhoodCfgData();
            Hashtable ht = new Hashtable();

            ht.Add("@NBHDID", nbhdId);
            string[] optionalParameter = new string[] { neighborhoodCfgData.ListNeighborhoodConfigurationTable.TableName };
            Utility.LoadDataSet(neighborhoodCfgData, "f35102_pclst_NeighborhoodConfiguration", ht, optionalParameter);
            return(neighborhoodCfgData);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Gets the neighborhood CFG Choice.
        /// </summary>
        /// <param name="nbhdId">nbhdID</param>
        /// <param name="nbhdCfgId">nbhdCfgID</param>
        /// <returns>1</returns>
        public static F35102NeighborhoodCfgData GetNeighborhoodCfgChoice(int nbhdId, int nbhdCfgId)
        {
            F35102NeighborhoodCfgData neighborhoodCfgChoice = new F35102NeighborhoodCfgData();
            Hashtable ht = new Hashtable();

            ht.Add("@NBHDID", nbhdId);
            ht.Add("@NBHDCfgID", nbhdCfgId);
            string[] optionalParameter = new string[] { neighborhoodCfgChoice.ListNeighborhoodChoiceDatatable.TableName, neighborhoodCfgChoice.ListNeighborhoodQueryDatatable.TableName };
            Utility.LoadDataSet(neighborhoodCfgChoice, "f35102_pclst_NeighborhoodChoice", ht, optionalParameter);
            return(neighborhoodCfgChoice);
        }