Esempio n. 1
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 { };
 }