Exemplo n.º 1
0
 /// <summary>
 /// 根据有效申报取值标识获取有效申报取值
 /// </summary>
 /// <param name="validDeclareValueID">有效申报取值标识</param>
 /// <returns></returns>
 public Entity.XH_ValidDeclareValue GetValidDeclareValueByValidDeclareValueID(int validDeclareValueID)
 {
     try
     {
         LogHelper.WriteDebug("Debug-8421根据有效申报取值标识获取有效申报取值方法名称:GetValidDeclareValueByValidDeclareValueID(int validDeclareValueID)参数是:" + validDeclareValueID + "时间是:" + DateTime.Now);
         XH_ValidDeclareValueBLL            xH_ValidDeclareValueBLL  = new XH_ValidDeclareValueBLL();
         List <Entity.XH_ValidDeclareValue> xH_ValidDeclareValueList =
             xH_ValidDeclareValueBLL.GetListArray(string.Format("ValidDeclareValueID={0}", validDeclareValueID));
         if (xH_ValidDeclareValueList.Count > 0)
         {
             Entity.XH_ValidDeclareValue xH_ValidDeclareValue = xH_ValidDeclareValueList[0];
             if (xH_ValidDeclareValue != null)
             {
                 return(xH_ValidDeclareValue);
             }
         }
         return(null);
     }
     catch (Exception ex)
     {
         string      errCode = "GL-8421";
         string      errMsg  = "根据有效申报取值标识获取有效申报取值失败";
         VTException vte     = new VTException(errCode, errMsg, ex);
         LogHelper.WriteError(vte.ToString(), vte.InnerException);
         return(null);
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// 根据品种有效申报标识获取有效申报取值
 /// </summary>
 /// <param name="breedClassValidID">品种有效申报标识</param>
 /// <returns></returns>
 public List <Entity.XH_ValidDeclareValue> GetValidDeclareValueByBreedClassValidID(int breedClassValidID)
 {
     try
     {
         LogHelper.WriteDebug("Debug-8422根据有效申报取值标识获取有效申报取值方法名称:GetValidDeclareValueByBreedClassValidID(int breedClassValidID)参数是:" + breedClassValidID + "时间是:" + DateTime.Now);
         XH_ValidDeclareValueBLL xH_ValidDeclareValueBLL = new XH_ValidDeclareValueBLL();
         return(xH_ValidDeclareValueBLL.GetListArray(string.Format("BreedClassValidID={0}", breedClassValidID)));
     }
     catch (Exception ex)
     {
         string      errCode = "GL-8422";
         string      errMsg  = "根据品种有效申报标识获取有效申报取值失败";
         VTException vte     = new VTException(errCode, errMsg, ex);
         LogHelper.WriteError(vte.ToString(), vte.InnerException);
         return(null);
     }
 }
Exemplo n.º 3
0
 /// <summary>
 /// 获取所有的有效申报取值
 /// </summary>
 /// <returns></returns>
 public List <Entity.XH_ValidDeclareValue> GetAllValidDeclareValue()
 {
     try
     {
         LogHelper.WriteDebug("Debug-8420获取所有的有效申报取值方法名称:GetAllValidDeclareValue()" + DateTime.Now);
         XH_ValidDeclareValueBLL xH_ValidDeclareValueBLL = new XH_ValidDeclareValueBLL();
         return(xH_ValidDeclareValueBLL.GetListArray(string.Empty));
     }
     catch (Exception ex)
     {
         string      errCode = "GL-8420";
         string      errMsg  = "获取所有的有效申报取值失败";
         VTException vte     = new VTException(errCode, errMsg, ex);
         LogHelper.WriteError(vte.ToString(), vte.InnerException);
         return(null);
     }
 }