Example #1
0
 /// <summary>
 /// 记录单快速录入
 /// </summary>
 private void SetNurseJLDPL()
 {
     try
     {
         CommonNoteBiz           commonNoteBiz        = new CommonNoteBiz(m_app);
         List <CommonNoteEntity> commonNoteEntityList = commonNoteBiz.GetCommonNoteByDeptWard(m_app.User.CurrentWardId, "02");
         if (commonNoteEntityList == null)
         {
             return;
         }
         //只显示批量的
         commonNoteEntityListPL = commonNoteEntityList.FindAll(a => a.UsingFlag == "1") as List <CommonNoteEntity>;
         if (commonNoteEntityListPL == null || commonNoteEntityListPL.Count == 0)
         {
             btnHLDPL.Visibility = BarItemVisibility.Never;
         }
         else
         {
             btnHLDPL.Visibility = BarItemVisibility.Always;
         }
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Example #2
0
 /// <summary>
 /// 初始化模板列表信息
 /// </summary>
 private void InitDate()
 {
     try
     {
         CommonNoteBiz commonNoteBiz = new CommonNoteBiz(m_app);
         commonNoteEntityList = commonNoteBiz.GetCommonNoteByDeptWard(m_app.User.CurrentWardId, "02");
         foreach (var item in commonNoteEntityList)
         {
             item.CreateDateTime = DrectSoft.Common.DateUtil.getDateTime(item.CreateDateTime, DrectSoft.Common.DateUtil.NORMAL_LONG);
         }
         gridControl1.DataSource = commonNoteEntityList;
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Example #3
0
        /// <summary>
        /// edit by xlb 2013-01-28
        /// 改用新的记录单整体录入
        /// 隐藏该功能
        /// xll 2013-06-04 修改该 如果没有单据 就不启用该功能
        /// </summary>
        private void SetNurseJLD()
        {
            try
            {
                CommonNoteBiz           commonNoteBiz        = new CommonNoteBiz(m_app);
                List <CommonNoteEntity> commonNoteEntityList = commonNoteBiz.GetCommonNoteByDeptWard(m_app.User.CurrentWardId, "02");

                if (commonNoteEntityList == null || commonNoteEntityList.Count == 0)
                {
                    btnHLDSing.Visibility = BarItemVisibility.Never;
                }
                else
                {
                    btnHLDSing.Visibility = BarItemVisibility.Always;
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }