예제 #1
0
        /// <summary>
        /// 麻醉操作类型对应保存在数据库中的字符
        /// </summary>
        /// <param name="anesClassType">麻醉操作类型</param>
        /// <returns>麻醉操作类型对应保存在数据库中的字符</returns>
        public static string GetAnesClassTypeString(AnesClassType anesClassType)
        {
            string anesClassTypeStrings = "0123456789ABCXYOZ~D";
            int    anesClassTypeIndex   = (int)anesClassType;

            if (anesClassTypeIndex < anesClassTypeStrings.Length)
            {
                return(anesClassTypeStrings.Substring(anesClassTypeIndex, 1));
            }
            else
            {
                return("");
            }
        }
예제 #2
0
 /// <summary>
 /// 将对应的类型数据添加到明细栏中
 /// </summary>
 /// <param name="anesDetail">明细栏控件</param>
 /// <param name="anesEventTable">事件表数据</param>
 /// <param name="anesClassType">事件类型</param>
 /// <param name="collectionText">明细类型的信息:用药OR麻药OR事件</param>
 /// <param name="collectionType">对应个明细类型:事件OR用药OR汇总</param>
 /// <param name="collectionColor">明细栏控件的颜色</param>
 /// <param name="startDate">起始时间</param>
 /// <param name="isYouDao">当前系统是否为诱导系统,默认是麻醉系统</param>
 /// <param name="operationMaster">主表信息</param>
 private MedAnesSheetDetailCollection AddAnesSheetDetailCollection(MedAnesSheetDetails anesDetail,
                                                                   List <MED_ANESTHESIA_EVENT> anesEventTable,
                                                                   AnesClassType anesClassType,
                                                                   string collectionText,
                                                                   CollectionType collectionType,
                                                                   Color collectionColor,
                                                                   DateTime startDate,
                                                                   bool isYouDao,
                                                                   MED_OPERATION_MASTER operationMaster)
 {
     return(this.AddAnesSheetDetailCollection(anesDetail, anesEventTable, anesClassType, collectionText,
                                              collectionType, collectionColor, startDate, AnesDrugShowType.Total,
                                              isYouDao, operationMaster));
 }