Exemple #1
0
        /// <summary>
        /// 重设当前可显示的内容,为各项内容间加上空格
        /// </summary>
        protected override void ResetDisplayTexts()
        {
            InitBaseDisplayTexts();

            // 顺序为:手术时间 手术项目
            if (Item == null) // 如果没有项目,则默认为显示内容为空
            {
                return;
            }

            Texts.Insert(0, new OutputInfoStruct("行 " + Item.Name.Trim(), OrderOutputTextType.ItemName));

            if (AnesthesiaOperation.KeyInitialized)
            {
                if (String.IsNullOrEmpty(AnesthesiaOperation.Name.Trim()))
                {
                    AnesthesiaOperation.ReInitializeProperties();
                }
                Texts.Insert(0, new OutputInfoStruct("在 " + AnesthesiaOperation.Name.Trim() + " 下 ", OrderOutputTextType.NormalText));
            }
            if (OperationTime > DateTime.MinValue)
            {
                Texts.Insert(0, new OutputInfoStruct(OperationTime.ToString("M月d日 HH:mm", CultureInfo.CurrentCulture) + " "
                                                     , OrderOutputTextType.EntrustContent));
            }
        }
Exemple #2
0
        /// <summary>
        /// 将手术时间和麻醉代码组合到嘱托中
        /// </summary>
        private string ComposeEntrustContent()
        {
            if (OperationTime == DateTime.MinValue)
            {
                return("");
            }

            string anesthesia;
            string entrust;

            if ((_anesthesiaOperation != null) && _anesthesiaOperation.KeyInitialized)
            {
                anesthesia = AnesthesiaOperation.Code;
            }
            else
            {
                anesthesia = "";
            }
            if (String.IsNullOrEmpty(EntrustContent))
            {
                entrust = "";
            }
            else
            {
                entrust = EntrustContent;
            }

            return(String.Format(CultureInfo.CurrentCulture, "{1}{0}{2}{0}{3}"
                                 , OrderContent.CombFlag
                                 , OperationTime.ToString("yyyy-MM-dd HH:mm:ss", CultureInfo.CurrentCulture)
                                 , anesthesia
                                 , entrust));
        }