Ejemplo n.º 1
0
 public static bool GetListCom_FixDimension(Com_FixInspection cCom_FixInspection, out IList <Com_FixDimension> listCom_FixDimension)
 {
     listCom_FixDimension = new List <Com_FixDimension>();
     try
     {
         listCom_FixDimension = session.QueryOver <Com_FixDimension>().Where(x => x.comFixInspection == cCom_FixInspection).List();
     }
     catch (System.Exception ex)
     {
         return(false);
     }
     return(true);
 }
Ejemplo n.º 2
0
 public static bool GetCom_FixInspection(Com_PartOperation cCom_PartOperation, string partName, out Com_FixInspection cCom_FixInspection)
 {
     cCom_FixInspection = new Com_FixInspection();
     try
     {
         cCom_FixInspection = session.QueryOver <Com_FixInspection>()
                              .Where(x => x.comPartOperation == cCom_PartOperation)
                              .And(x => x.fixPartName == partName).SingleOrDefault();
     }
     catch (System.Exception ex)
     {
         return(false);
     }
     return(true);
 }