Exemplo n.º 1
0
        /// <summary>
        /// 得到病人发药处方
        /// </summary>
        /// <param name="patlistid">病人ID</param>
        /// <returns></returns>
        public DataTable GetSendGrugPres(int patlistid, string deptcode)
        {
            try
            {
                IpresDao ipD = DaoFactory.GetObject <IpresDao>(typeof(PresDao));
                ipD.oleDb = oleDb;

                if (deptcode == null || deptcode.Trim() == "")
                {
                    return(ipD.GetSendGrugPres(patlistid));
                }
                else
                {
                    return(ipD.GetSendGrugPres(patlistid, deptcode));
                }
            }
            catch (System.Exception e)
            {
                throw new Exception(e.Message);
            }
        }
Exemplo n.º 2
0
 /// <summary>
 /// 得到病人发药处方
 /// </summary>
 /// <param name="CureNo">住院号</param>
 /// <returns></returns>
 public DataTable GetSendGrugPres(string CureNo, string deptcode)
 {
     try
     {
         IpresDao ipD = DaoFactory.GetObject <IpresDao>(typeof(PresDao));
         ipD.oleDb = oleDb;
         return(ipD.GetSendGrugPres(CureNo, deptcode));
     }
     catch (System.Exception e)
     {
         throw new Exception(e.Message);
     }
 }