/// <summary>
        /// 查询该信息是否已被打印过
        /// </summary>
        /// <returns></returns>
        private bool checkPrintCount(string bussID)
        {
            TPrintRecordFacade      trFacade = new TPrintRecordFacade();
            List <TPrintRecordData> entity   = trFacade.Get("PRINTBUSINESSID='" + bussID + "' AND BUSINESSTYPE='检验报告'");

            if (entity.Count > 0)
            {
                return(false);
            }
            return(true);
        }
Beispiel #2
0
        /// <summary>
        /// 查询该信息是否已被打印过
        /// </summary>
        /// <param name="inhosID"></param>
        /// <param name="inhostimes"></param>
        /// <returns></returns>
        private bool checkPrintCount()
        {
            TPrintRecordFacade      trFacade = new TPrintRecordFacade();
            List <TPrintRecordData> entity   = trFacade.Get("PRINTBUSINESSID='" + _inhosID + "(" + _inhosTime + ")' AND BUSINESSTYPE='住院'");

            if (entity.Count > 0)
            {
                return(false);
            }
            return(true);
        }
Beispiel #3
0
 /// <summary>
 /// 插入打印次数记录表
 /// </summary>
 /// <param name="inhosID"></param>
 /// <param name="inhostimes"></param>
 private void insertPrintCount()
 {
     try
     {
         TPrintRecordFacade trFacade = new TPrintRecordFacade();
         TPrintRecordData   entity   = new TPrintRecordData();
         entity.Printbusinessid = _inhosID + "(" + _inhosTime + ")";
         entity.Businesstype    = "住院";
         entity.Printcount      = 1;
         trFacade.Insert(entity);
     }
     catch { };
 }
 /// <summary>
 /// 插入打印次数记录表
 /// </summary>
 private void insertPrintCount()
 {
     try
     {
         TPrintRecordFacade trFacade = new TPrintRecordFacade();
         DataTable          dtInsert = (DataTable)this.gdcMain.DataSource;
         foreach (DataRow drInsert in dtInsert.Rows)
         {
             TPrintRecordData entity = new TPrintRecordData();
             entity.Printbusinessid = drInsert["REQUISITION_ID"].ToString();
             entity.Businesstype    = "检验报告";
             entity.Printcount      = 1;
             trFacade.Insert(entity);
         }
     }
     catch { };
 }