Esempio n. 1
0
 LabMS.Model.DictionaryClass checkQueryString(string strDclass)
 {
     LabMS.BLL.DictionaryClass dicclass = new LabMS.BLL.DictionaryClass();
     string strWhere = " Code = '" + strDclass + "' ";
     List<LabMS.Model.DictionaryClass> listDClass = dicclass.GetModelList(strWhere);
     if (listDClass.Count <= 0)
     {
         return null;
     }
     return listDClass[0];
 }
Esempio n. 2
0
 /// <summary>
 /// 根据DClass从字典大类中查出Name的值
 /// </summary>
 /// <param name="DClass"></param>
 /// <returns></returns>
 public string GetNameFromDictionaryClass(string DClass)
 {
     LabMS.BLL.DictionaryClass bDictionaryClass = new LabMS.BLL.DictionaryClass();
     string str = "Code='"+DClass+"'";
     return bDictionaryClass.GetModelList(str)[0].Name;
 }