예제 #1
0
 public static bool GetListCom_Dimension(Com_MEMain cCom_MEMain, out IList <Com_Dimension> listCom_Dimension)
 {
     listCom_Dimension = new List <Com_Dimension>();
     try
     {
         listCom_Dimension = session.QueryOver <Com_Dimension>().Where(x => x.comMEMain == cCom_MEMain).List <Com_Dimension>();
     }
     catch (System.Exception ex)
     {
         MessageBox.Show(ex.ToString());
         return(false);
     }
     return(true);
 }
예제 #2
0
 public static bool GetCom_MEMain(Com_PartOperation cCom_PartOperation, out Com_MEMain com_MEMain)
 {
     com_MEMain = new Com_MEMain();
     try
     {
         com_MEMain = session.QueryOver <Com_MEMain>().Where(x => x.comPartOperation == cCom_PartOperation).SingleOrDefault <Com_MEMain>();
     }
     catch (System.Exception ex)
     {
         MessageBox.Show("取得Com_MEMain失敗");
         return(false);
     }
     return(true);
 }