Example #1
0
        private void AddInfo()
        {
            Forms.frmBedManager f = new Manager.Forms.frmBedManager(false);
            if (CurrentNode.Parent != null) // 判断节点类别获取  房间或护理站
            {
                if (CurrentNode.Parent.Parent == null)
                {
                    f.NurseStation = CurrentNode.Tag.ToString();
                    f.BedRoomNO    = null;
                }
                else if (CurrentNode.Parent.Parent != null)
                {
                    f.NurseStation = CurrentNode.Parent.Tag.ToString();
                    f.BedRoomNO    = CurrentNode.Text.ToString();
                }
            }

            if (f.ShowDialog() == DialogResult.OK)
            {
                try
                {
                    ((tvNurseList)tv).InitTree();
                }
                catch { }
            }
        }
Example #2
0
        private void ModifiedInfo()
        {
            Forms.frmBedManager f = new Manager.Forms.frmBedManager(true);
            f.SetBedInfo(this.GetBedInfo());

            if (f.ShowDialog() == DialogResult.OK)
            {
                //应该写刷新代码
                this.Refresh();
            }
        }