コード例 #1
0
 public override DataTable LoadDrugInfo(int doseId, int typeId, int deptId)
 {
     try
     {
         string strWhere = "";
         if (typeId != 0)
         {
             strWhere += "TypeDicID=" + typeId.ToString();
         }
         if (doseId != -1)
         {
             if (typeId == 0)
             {
                 strWhere += "DoseDicID=" + doseId.ToString();
             }
             else
             {
                 strWhere += " AND DoseDicID=" + doseId.ToString();
             }
         }
         HIS.DAL.YP_Dal ypDal = new YP_Dal();
         ypDal._oleDb = oleDb;
         return(ypDal.YF_GetDrugInfo(strWhere, deptId));
     }
     catch (Exception error)
     {
         throw error;
     }
 }
コード例 #2
0
 public override DataTable LoadDrugInfo(int deptId)
 {
     try
     {
         HIS.DAL.YP_Dal drugDao = new YP_Dal();
         drugDao._oleDb = oleDb;
         return(drugDao.YF_GetDrugInfo("", deptId));
     }
     catch (Exception error)
     {
         throw error;
     }
 }