Exemplo n.º 1
0
 private int UpdateAccidentRecord(T_OA_ACCIDENTRECORD cvInfo)
 {
     AccidentRecordManageBll accidentRecordBll = new AccidentRecordManageBll();
     if (accidentRecordBll.UpdateInfo(cvInfo) == -1)
     {
         return -1;
     }
     return 1;
 }
Exemplo n.º 2
0
 private int AddAccidentRecord(T_OA_ACCIDENTRECORD cvInfo)
 {
     AccidentRecordManageBll accidentRecordBll = new AccidentRecordManageBll();
     if (accidentRecordBll.AddInfo(cvInfo) == true)
     {
         return 1;
     }
     return -1;
 }
Exemplo n.º 3
0
        private int UpdateAccidentRecord(T_OA_ACCIDENTRECORD cvInfo)
        {
            AccidentRecordManageBll accidentRecordBll = new AccidentRecordManageBll();

            if (accidentRecordBll.UpdateInfo(cvInfo) == -1)
            {
                return(-1);
            }
            return(1);
        }
Exemplo n.º 4
0
        private int AddAccidentRecord(T_OA_ACCIDENTRECORD cvInfo)
        {
            AccidentRecordManageBll accidentRecordBll = new AccidentRecordManageBll();

            if (accidentRecordBll.AddInfo(cvInfo) == true)
            {
                return(1);
            }
            return(-1);
        }
Exemplo n.º 5
0
 private int UpdateAccidentRecordList(List<T_OA_ACCIDENTRECORD> cvInfoList)
 {
     AccidentRecordManageBll accidentRecordBll = new AccidentRecordManageBll();
     foreach (T_OA_ACCIDENTRECORD cvInfo in cvInfoList)
     {
         if (accidentRecordBll.UpdateInfo(cvInfo) == -1)
         {
             return -1;
         }
     }
     return 1;
 }
Exemplo n.º 6
0
 private int AddAccidentRecordList(List<T_OA_ACCIDENTRECORD> cvInfoList)
 {
     AccidentRecordManageBll accidentRecordBll = new AccidentRecordManageBll();
     foreach (T_OA_ACCIDENTRECORD cvInfo in cvInfoList)
     {
         if (accidentRecordBll.AddInfo(cvInfo) != true)
         {
             return -1;
         }
     }
     return 1;
 }
Exemplo n.º 7
0
 private List<T_OA_ACCIDENTRECORD> GetAccidentRecordList(int pageIndex, int pageSize, string sort, string filterString, object[] paras, ref int pageCount, string userID)
 {
     AccidentRecordManageBll accidentRecordBll = new AccidentRecordManageBll();
     IEnumerable<T_OA_ACCIDENTRECORD> infoList = accidentRecordBll.GetInfoList(pageIndex, pageSize, sort, filterString, paras, ref  pageCount, userID);
     if (infoList == null)
     {
         return null;
     }
     else
     {
         return infoList.ToList();
     }
 }
Exemplo n.º 8
0
        private int UpdateAccidentRecordList(List <T_OA_ACCIDENTRECORD> cvInfoList)
        {
            AccidentRecordManageBll accidentRecordBll = new AccidentRecordManageBll();

            foreach (T_OA_ACCIDENTRECORD cvInfo in cvInfoList)
            {
                if (accidentRecordBll.UpdateInfo(cvInfo) == -1)
                {
                    return(-1);
                }
            }
            return(1);
        }
Exemplo n.º 9
0
        private int AddAccidentRecordList(List <T_OA_ACCIDENTRECORD> cvInfoList)
        {
            AccidentRecordManageBll accidentRecordBll = new AccidentRecordManageBll();

            foreach (T_OA_ACCIDENTRECORD cvInfo in cvInfoList)
            {
                if (accidentRecordBll.AddInfo(cvInfo) != true)
                {
                    return(-1);
                }
            }
            return(1);
        }
Exemplo n.º 10
0
        private List <T_OA_ACCIDENTRECORD> GetAccidentRecordList(int pageIndex, int pageSize, string sort, string filterString, object[] paras, ref int pageCount, string userID)
        {
            AccidentRecordManageBll           accidentRecordBll = new AccidentRecordManageBll();
            IEnumerable <T_OA_ACCIDENTRECORD> infoList          = accidentRecordBll.GetInfoList(pageIndex, pageSize, sort, filterString, paras, ref pageCount, userID);

            if (infoList == null)
            {
                return(null);
            }
            else
            {
                return(infoList.ToList());
            }
        }
Exemplo n.º 11
0
 private bool DeleteAccidentRecordList(string[] ApprovalInfoId)
 {
    AccidentRecordManageBll accidentRecordBll = new AccidentRecordManageBll();
     
     return accidentRecordBll.DeleteInfo(ApprovalInfoId);
 }
Exemplo n.º 12
0
        private bool DeleteAccidentRecordList(string[] ApprovalInfoId)
        {
            AccidentRecordManageBll accidentRecordBll = new AccidentRecordManageBll();

            return(accidentRecordBll.DeleteInfo(ApprovalInfoId));
        }