예제 #1
0
        /// <summary>
        /// 体温单编辑器
        /// </summary>
        public void frmTempertureEditorShow()
        {
            ucTempertureEditor uc = new ucTempertureEditor();

            App.UsControlStyle(uc);
            App.AddNewBusUcControl(uc, "体温单编辑器");
        }
예제 #2
0
        public frmTempertureEditor()
        {
            InitializeComponent();

            tempertureEditor      = new ucTempertureEditor();
            tempertureEditor.Dock = DockStyle.Fill;
            this.Controls.Add(tempertureEditor);
        }
예제 #3
0
        public frmTempertureDataEdit(ucTempertureEditor fcedit)
        {
            InitializeComponent();

            fcEdit = fcedit;
            cm     = fcedit.cm;

            dt = new DataTable();
            DataColumn dc0 = new DataColumn("主键", Type.GetType("System.String"));
            DataColumn dc1 = new DataColumn("数据类型", Type.GetType("System.String"));
            DataColumn dc2 = new DataColumn("时间", Type.GetType("System.String"));
            DataColumn dc3 = new DataColumn("值", Type.GetType("System.String"));

            dt.Columns.Add(dc0);
            dt.Columns.Add(dc1);
            dt.Columns.Add(dc2);
            dt.Columns.Add(dc3);

            xmldoc = new XmlDocument();

            string testDataFullName = cm.GetTestDataFullName();

            if (!File.Exists(testDataFullName))
            {
                xmldoc.LoadXml(cm.GetTestDataDefaultContent());
                xmldoc.Save(testDataFullName);
            }
            else
            {
                xmldoc.Load(testDataFullName);
            }
            dataTpicTime.Enabled = false;

            XmlNodeList nodes = xmldoc.GetElementsByTagName("page");

            dtpStart.Value = Convert.ToDateTime(nodes[0].Attributes["Starttime"].Value);

            refdatagrid();

            /*
             * 初始化类型
             */
            foreach (ClsLinedata ldata in cm.listlinedatas)
            {
                cboDataType.Items.Add(ldata.Name);
            }

            foreach (ClsTextdata ldata in cm.listtextdatas)
            {
                cboDataType.Items.Add(ldata.Name);
            }

            if (cboDataType.Items.Count > 0)
            {
                cboDataType.SelectedIndex = 0;
            }
        }