Ejemplo n.º 1
0
 public static AscmEmployeeCarService GetInstance()
 {
     //return ascmEmployeeCarServices ?? new AscmEmployeeCarService();
     if (ascmEmployeeCarServices == null)
         ascmEmployeeCarServices = new AscmEmployeeCarService();
     return ascmEmployeeCarServices;
 }
Ejemplo n.º 2
0
 private void SetBindDescription(List <AscmRfid> list)
 {
     if (list != null && list.Count > 0)
     {
         string ids_EmployeeCar = string.Empty;
         foreach (AscmRfid ascmRfid in list)
         {
             if (ascmRfid.bindType == AscmRfid.BindTypeDefine.employeeCar && !string.IsNullOrEmpty(ascmRfid.bindId))
             {
                 if (!string.IsNullOrEmpty(ids_EmployeeCar))
                 {
                     ids_EmployeeCar += ",";
                 }
                 ids_EmployeeCar += "" + ascmRfid.bindId + "";
             }
         }
         if (ids_EmployeeCar != "")
         {
             string sql = "from AscmEmployeeCar where id in (" + ids_EmployeeCar + ")";
             IList <AscmEmployeeCar> ilistAscmEmployeeCar = YnDaoHelper.GetInstance().nHibernateHelper.Find <AscmEmployeeCar>(sql);
             if (ilistAscmEmployeeCar != null && ilistAscmEmployeeCar.Count > 0)
             {
                 List <AscmEmployeeCar> listAscmEmployeeCar = YnBaseClass2.Helper.ConvertHelper.ConvertIListToList <AscmEmployeeCar>(ilistAscmEmployeeCar);
                 AscmEmployeeCarService.GetInstance().SetEmployee(listAscmEmployeeCar);
                 foreach (AscmRfid ascmRfid in list)
                 {
                     AscmEmployeeCar ascmEmployeeCar = listAscmEmployeeCar.Find(e => e.id.ToString() == ascmRfid.bindId);
                     //if(ascmEmployeeCar!=null)
                     //    ascmRfid._bindDescription = ascmEmployeeCar ._employeeName+"->"+ ascmEmployeeCar.plateNumber;
                 }
             }
         }
     }
 }
Ejemplo n.º 3
0
 public static AscmEmployeeCarService GetInstance()
 {
     //return ascmEmployeeCarServices ?? new AscmEmployeeCarService();
     if (ascmEmployeeCarServices == null)
     {
         ascmEmployeeCarServices = new AscmEmployeeCarService();
     }
     return(ascmEmployeeCarServices);
 }