/// <summary>
 /// 根据商品所属类型获取所有商品代码
 /// </summary>
 /// <param name="breedClassID">商品所属类型ID</param>
 /// <returns></returns>
 protected List <CM_Commodity> GetAllCommodityByBreedClass(int breedClassID)
 {
     try
     {
         using (CommonParaClient client = ManagementCenterDataAgent.Instanse.GetComonParaInstanse())
         {
             return(client.GetCommodityByBreedClassID(breedClassID));
         }
     }
     catch (Exception ex)
     {
         LogHelper.WriteError(GenerateInfo.CH_E006, ex);
         return(null);
     }
 }
        /// <summary>
        /// 获取所有的现货代码
        /// </summary>
        public static void GetAllCM_Commodity()
        {
            list.Clear();
            spotList.Clear();
            int[] breeid = { 7, 8, 21, 22 };
            using (CommonParaClient client = GetCommonParaClient())
            {
                foreach (var k in breeid)
                {
                    List <CM_Commodity> item = new List <CM_Commodity>();
                    item = client.GetCommodityByBreedClassID(k);

                    list.AddRange(item);
                }
            }
            using (SpotTradeRulesClient client = GetSpotTradeRulesClient())
            {
                spotList = client.GetAllSpotCosts();
            }
        }