コード例 #1
0
        //药店那要药剂师首页
        public async Task <IActionResult> DrugStoreIndex_Nurse()
        {
            var u        = GetUserSelf();
            var rxDoctor = _docSvr.GetMyDefRxDoctor(u.StationId);

            ViewBag.QrCodeUrl = rxDoctor == null?"":(await _weChatSvr.CreateQRCodeUrl(u.StationId, u.DoctorId, rxDoctor.DoctorId));
            return(await DoctorIndex("DrugStoreIndex_Nurse"));
        }
コード例 #2
0
ファイル: ReservateController.cs プロジェクト: iJzFan/backup
 public async Task <IActionResult> GetReservate2DCode(int?stationId, int?doctorId)
 {
     try
     {
         if (UserSelf == null && (stationId == null || doctorId == null))
         {
             throw new ComException(ExceptionTypes.Error_Unauthorized, "未登录调用必须填入StationId,DoctorId参数");
         }
         if (stationId == null)
         {
             stationId = UserSelf.StationId;
         }
         if (doctorId == null)
         {
             doctorId = UserSelf.DoctorId;
         }
         var rxDoctor = _docrSvr.GetMyDefRxDoctor(stationId.Value);
         var rlt      = (rxDoctor == null) ? "" : (await _weChatSvr.CreateQRCodeUrl(stationId.Value, doctorId.Value, rxDoctor.DoctorId));
         var jm       = MyDynamicResult(rlt);
         return(Ok(jm));
     }
     catch (Exception ex) { return(Ok(MyDynamicResult(ex))); }
 }