Ejemplo n.º 1
0
        /// <summary>
        /// 体征项目排序
        /// </summary>
        private List <string> SortSignTitle(List <string> monitorValueList)
        {
            List <MED_MONITOR_FUNCTION_CODE> tmpList             = new List <MED_MONITOR_FUNCTION_CODE>();
            List <MED_MONITOR_FUNCTION_CODE> listMonitorFunction = ApplicationModel.Instance.AllDictList.MonitorFuctionCodeList;

            for (int i = 0; i < monitorValueList.Count; i++)
            {
                MED_MONITOR_FUNCTION_CODE item = listMonitorFunction.Find(x => x.ITEM_CODE == monitorValueList[i]);
                tmpList.Add(item);
            }
            //return tmpList.OrderBy(x => x.PRINT_ITEM_NO).Select(x => x.ITEM_CODE).ToList();

            return(tmpList.Select(x => x.ITEM_CODE).ToList());
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 添加项目
        /// </summary>
        /// <param name="item"></param>
        public void AddVitalSign(dynamic item)
        {
            MED_MONITOR_FUNCTION_CODE      itema      = item as MED_MONITOR_FUNCTION_CODE;
            ObservableCollection <dynamic> dataSource = new ObservableCollection <dynamic>();
            Dictionary <string, object>    dict       = new Dictionary <string, object>();

            rowDict.Add(rowDict.Count, itema.ITEM_CODE);
            for (int j = 0; j < columnDict.Count + 2; j++)
            {
                if (j == 0)
                {
                    MED_VITAL_SIGN row = new MED_VITAL_SIGN();
                    row.ITEM_CODE        = itema.ITEM_CODE;
                    row.ITEM_NAME        = itema.ITEM_NAME;
                    row.Flag             = "2";
                    row.ITEM_VALUE       = itema.ITEM_CODE;
                    row.IsReadOnlyColumn = true;
                    row.IsShowColumn     = false;
                    dict.Add("CODE", row);
                }
                else if (j == 1)
                {
                    MED_VITAL_SIGN row = new MED_VITAL_SIGN();
                    row.ITEM_CODE        = itema.ITEM_CODE;
                    row.ITEM_NAME        = itema.ITEM_NAME;
                    row.Flag             = "2";
                    row.ITEM_VALUE       = itema.ITEM_NAME;
                    row.IsReadOnlyColumn = true;
                    row.IsShowColumn     = true;
                    dict.Add("项目", row);
                }
                else
                {
                    MED_VITAL_SIGN row = new MED_VITAL_SIGN();
                    row.ITEM_CODE        = itema.ITEM_CODE;
                    row.ITEM_NAME        = itema.ITEM_NAME;
                    row.Flag             = "2";
                    row.TIME_POINT       = columnDict[j - 2];
                    row.IsReadOnlyColumn = false;
                    row.IsShowColumn     = true;
                    dict.Add(columnDict[j - 2].ToString("yyyy-MM-dd HH:mm"), row);
                }
            }
            var dyn = GetDynamicObject(dict);

            VitalSignSource.Add(dyn);
        }
Ejemplo n.º 3
0
 public RequestResult <int> EditMonitorFunctionCodeList(int type, MED_MONITOR_FUNCTION_CODE MonitorFunctionCodeList)
 {
     return(Success(sysConfig.EditMonitorFunctionCodeList(type, MonitorFunctionCodeList)));
 }