partial void DeleteDocdbDocInfo(DocdbDocInfo instance);
 partial void InsertDocdbDocInfo(DocdbDocInfo instance);
 partial void UpdateDocdbDocInfo(DocdbDocInfo instance);
Esempio n. 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;
 }