Пример #1
0
 partial void DeleteDocdbDocInfo(DocdbDocInfo instance);
Пример #2
0
 partial void InsertDocdbDocInfo(DocdbDocInfo instance);
Пример #3
0
 partial void UpdateDocdbDocInfo(DocdbDocInfo instance);
Пример #4
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="Item"></param>
 /// <param name="_strTopFiledId"></param>
 /// <param name="_TopFiledType"></param>
 /// <returns></returns>
 private int OrderbyTopPubId(DocdbDocInfo _DocItem, List<string> _LststrTopFiledId, string _TopFiledType)
 {
     int nRId = 1;
     try
     {
         //0:公开号,1:申请号,3:申请号||公开号
         switch (_TopFiledType)
         {
             case "0":  //公开号
                 foreach (string strItem in _LststrTopFiledId)
                 {
                     nRId = _DocItem.PubID.ToUpper().StartsWith(strItem) ? 0 : 1;
                     if (nRId == 0) break;
                 }
                 break;
             case "1":  //申请号
                 foreach (string strItem in _LststrTopFiledId)
                 {
                     nRId = _DocItem.AppNo.ToUpper().StartsWith(strItem) ? 0 : 1;
                     if (nRId == 0) break;
                 }
                 break;
             case "01":
                 foreach (string strItem in _LststrTopFiledId)
                 {
                     nRId = (_DocItem.AppNo.ToUpper().StartsWith(strItem) || _DocItem.PubID.ToUpper().StartsWith(strItem)) ? 0 : 1;
                     if (nRId == 0) break;
                 }
                 break;
         }
     }
     catch (Exception ex)
     {
     }
     return nRId;
 }