예제 #1
0
        public ActionResult GetWindows(string ptno)
        {
            SigninStrip item = null;

            try
            {
                item = new PharmacyReporterService().PrintReportStrip(ptno);
            }
            catch (global::System.Exception ex)
            {
                item = new SigninStrip
                {
                    WINDOW_NAME = ex.Message
                };
            }
            return(Content(item.ToJson()));
        }
예제 #2
0
 /// <summary>
 /// 传输打印模板
 /// </summary>
 private PrintLine[] CreatePrintTemplate(SigninStrip signin)
 {
     return(new PrintLine[]
     {
         new PrintLine {
             FontHeight = 1, LeftOffset = 0, PrintValue = $"  首都医科大学附属北京朝阳医院   签到条"
         },
         new PrintLine {
             FontHeight = 1, LeftOffset = 0, PrintValue = $"    患者姓名:{signin.PTNAME}"
         },
         new PrintLine {
             FontHeight = 1, LeftOffset = 0, PrintValue = $"  患者编号:{signin.PTNO}"
         },
         new PrintLine {
             FontHeight = 3, LeftOffset = 0, PrintValue = $" 请到 {signin.WINDOW_NAME} 取药"
         },
         new PrintLine {
             FontHeight = 1, LeftOffset = 0, PrintValue = $"   签到时间:{signin.CHECK_DATE}"
         },
     });
 }