Exemple #1
0
 /// <summary>
 /// 获取COA表相关信息
 /// </summary>
 public IList<S_RowData_COAStatus> GetCOAList(string begNO, string endNO)
 {
     logger.Debug("(_COAStatusChange)GetCOAList start, begin NO:" + begNO + " end NO:" + endNO);
     try
     {
         IList<S_RowData_COAStatus> ret = new List<S_RowData_COAStatus>();
         IList<COAStatus> coaList = currentRepository.GetCOAStatusRange(begNO, endNO);
         foreach (COAStatus tmp in coaList)
         {
             S_RowData_COAStatus ele = new S_RowData_COAStatus();
             ele.Status = tmp.Status;
             ele.Pno = tmp.IECPN;
             ele.pdLine = tmp.LineID;
             ret.Add(ele);
         }
         return ret;
     }
     catch (FisException e)
     {
         logger.Error(e.mErrmsg, e);
         throw new Exception(e.mErrmsg);
     }
     catch (Exception e)
     {
         logger.Error(e.Message, e);
         throw new SystemException(e.Message);
     }
     finally
     {
         logger.Debug("(_COAStatusChange)GetCOAList end, begin NO:" + begNO + " end NO:" + endNO);
     }
 }
Exemple #2
0
 /// <summary>
 /// Get Coa List
 /// </summary>
 /// <param name="coaList">coaList</param>  
 public IList<S_RowData_COAStatus> GetListOneByOne(List<string> coaList)
 {
     logger.Debug("(_COAStatusChange)GetListOneByOne start.");
     try
     {
         IList<S_RowData_COAStatus> ret = new List<S_RowData_COAStatus>();
         foreach (string tmp in coaList)
         {
             S_RowData_COAStatus ele = new S_RowData_COAStatus();
             ele.Status = "";
             ele.Pno = "";
             ele.pdLine = "";
             ele.CoaNO = tmp;
             IList<COAStatus> getList = currentRepository.GetCOAStatusRange(tmp, tmp);
             if (null == getList || getList.Count == 0)
             {
                 ele.Status = "notfindcoa";
             }
             else
             {
                 foreach (COAStatus tmpCOA in getList)
                 {
                     ele.Status = tmpCOA.Status;
                     ele.Pno = tmpCOA.IECPN;
                     ele.pdLine = tmpCOA.LineID;
                     break;
                 }
             }
             ret.Add(ele);
         }
         return ret;
     }
     catch (FisException e)
     {
         logger.Error(e.mErrmsg, e);
         throw new Exception(e.mErrmsg);
     }
     catch (Exception e)
     {
         logger.Error(e.Message, e);
         throw new SystemException(e.Message);
     }
     finally
     {
         logger.Debug("(_COAStatusChange)GetListOneByOne end.");
     }
 }