コード例 #1
0
ファイル: Doctor.cs プロジェクト: zzc-tongji/simulated-clinic
        //获取静态信息
        public string ReceiveStaticInformation()
        {
            String result;

            result  = "编号:" + _id + "\r\n";
            result += "姓名:" + _name + "\r\n";
            result += "所属科室:" + _department.GetId().ToString() + " " + _department.GetName() + "\r\n";
            result += "其他信息:" + _other + "\r\n";
            return(result);
        }
コード例 #2
0
        //获取信息
        public string ReceiveInformation()
        {
            String result;

            result  = "编号:" + _id + "\r\n";
            result += "姓名:" + _name + "\r\n";
            result += "性别:";
            if (_sex == Sex.Male)
            {
                result += "男";
            }
            else if (_sex == Sex.Female)
            {
                result += "女";
            }
            else if (_sex == Sex.Other)
            {
                result += "其他";
            }
            else
            {
                result += "";
            }
            result += "\r\n";
            result += "年龄:" + _age.ToString() + "\r\n";
            result += "其他信息:" + _other + "\r\n";
            result += "\r\n";
            if (_doctorDepartment != null)
            {
                result += "就诊科室:" + _doctorDepartment.GetId().ToString() + " " + _doctorDepartment.GetName() + "\r\n";
            }
            if (_doctor != null)
            {
                result += "问诊医生:" + _doctor.GetId().ToString() + " " + _doctor.GetName() + "\r\n";
            }
            if (_doctorTime != 0)
            {
                result += "医生问诊时间:" + _doctorTime.ToString() + "\r\n";
            }
            if (_deviceDepartment != null)
            {
                result += "检查科室:" + _deviceDepartment.GetId().ToString() + " " + _deviceDepartment.GetName() + "\r\n";
                result += "检查设备:" + _device.GetId().ToString() + " " + _device.GetName() + "\r\n";
                result += "设备检查时间:" + _deviceTime.ToString() + "\r\n";
            }
            return(result);
        }