コード例 #1
0
        public vmCmnOrganogram GetOrganogramByID(int?id)
        {
            vmCmnOrganogram obj = null;

            try
            {
                obj = objOrgnagramService.GetOrganogramByID(id);
            }
            catch (Exception e)
            {
                e.ToString();
            }
            return(obj);
        }
コード例 #2
0
        /// <summary>
        /// Get Data From Database
        /// <para>Use it when to retive single data through a stored procedure</para>
        /// </summary>
        public vmCmnOrganogram GetOrganogramByID(int?id)
        {
            GenericFactoryFor_Organogram = new vmCmnOrganogram_GF();
            vmCmnOrganogram objOrganogram = null;
            string          spQuery       = string.Empty;

            try
            {
                Hashtable ht = new Hashtable();
                ht.Add("OrganogramID", id);

                spQuery       = "[Get_CmnOrganogramSingle]";
                objOrganogram = GenericFactoryFor_Organogram.ExecuteQuerySingle(spQuery, ht);
            }
            catch (Exception e)
            {
                e.ToString();
            }
            return(objOrganogram);
        }