示例#1
0
        private void FrmOneHospetal_Load(object sender, EventArgs e)
        {
            //this.panel1.Controls.Add(new TemperInfo(Pid, Bed, Pidname, Gender, Age,Sick_name,Sick_name, In_time));
            //TemperInfo aa = new TemperInfo(TemperatureInfo,Pid, Bed, Pidname, Gender, Age, Sick_name, Sick_name, In_time, Time, Pids);

            //ucTempraute aa = new ucTempraute(currentPatient);//Pid, Medicare_no, Pids, Bed, Pidname, Gender, Age, Sick_name, Sick_name, In_time);
            TempertureEditor.ucTempraute temper = new TempertureEditor.ucTempraute(currentPatient, TempertureEditor.Tempreture_Management.tempetureDataComm.TEMPLATE_NORMAL, true);
            temper.Dock = DockStyle.Fill;
            this.Controls.Add(temper);
            App.UsControlStyle(this);
        }
示例#2
0
        private void radioButton_Edit_CheckedChanged(object sender, EventArgs e)
        {
            groupPanel2.Controls.Clear();
            bool isEdit = false;

            if (radioButton_Edit.Checked)
            {
                isEdit = true;
            }
            if (IsChild)
            {
                TempertureEditor.ucTempraute uc = new TempertureEditor.ucTempraute(currentPatient, tempetureDataComm.TEMPLATE_CHILD, isEdit);
                uc.Dock = DockStyle.Fill;
                App.UsControlStyle(uc);
                groupPanel2.Controls.Add(uc);
            }
            else
            {
                TempertureEditor.ucTempraute uc = new TempertureEditor.ucTempraute(currentPatient, tempetureDataComm.TEMPLATE_NORMAL, isEdit);
                uc.Dock = DockStyle.Fill;
                App.UsControlStyle(uc);
                groupPanel2.Controls.Add(uc);
            }


            //if (radioButton_Edit.Checked)
            //{

            //    if (IsChild)
            //    {
            //        //ucTempratureEdit_Child uc = new ucTempratureEdit_Child(Pid,Medicare_no, Id, BedNo, Name, Sex, Age, Section, Ward, In_time);
            //        StrType="tempetureDataComm.TEMPLATE_CHILD";
            //        isEdit =true;
            //    }
            //    else
            //    {
            //        //ucTempratureEdit uc = new ucTempratureEdit(Pid,Medicare_no, Id, BedNo, Name, Sex, Age, Section, Ward, In_time);
            //        TempertureEditor.ucTempraute uc = new TempertureEditor.ucTempraute(currentPatient, "tempetureDataComm.TEMPLATE_NORMAL",true);
            //        uc.Dock = DockStyle.Fill;
            //        App.UsControlStyle(uc);
            //        groupPanel2.Controls.Add(uc);
            //    }
            //}
            //else
            //{
            //    //ucTemperPrint uc = new ucTemperPrint(Pid, Medicare_no,Id, BedNo, Name, Sex, Age, Section, Ward, In_time);

            //    ucTemperPrintDataLoad uc = new ucTemperPrintDataLoad(currentPatient);
            //    uc.Dock = DockStyle.Fill;
            //    App.UsControlStyle(uc);
            //    groupPanel2.Controls.Add(uc);
            //}
        }
示例#3
0
        private void cboPatientName_SelectedIndexChanged(object sender, EventArgs e)
        {
            pnlTemprature.Controls.Clear();
            currentPatient = DataInit.GetInpatientInfoByPid(cboPatientName.SelectedValue.ToString());

            if (App.UserAccount.CurrentSelectRole.Role_type == "N")
            {//护士
                //ucTempraute temper = new ucTempraute(currentPatient);//.PId, currentPatient.Medicare_no, currentPatient.Id.ToString(), currentPatient.Sick_Bed_Name, currentPatient.Patient_Name, currentPatient.Gender_Code, currentPatient.Age + currentPatient.Age_unit, currentPatient.Section_Name, currentPatient.Sick_Area_Name, currentPatient.In_Time.ToString());
                TempertureEditor.ucTempraute temper = new TempertureEditor.ucTempraute(currentPatient, TempertureEditor.Tempreture_Management.tempetureDataComm.TEMPLATE_NORMAL, true);
                temper.Dock = DockStyle.Fill;
                pnlTemprature.Controls.Add(temper);
            }
            else
            {//医生
                TempertureEditor.ucTempraute tprint = new TempertureEditor.ucTempraute(currentPatient, TempertureEditor.Tempreture_Management.tempetureDataComm.TEMPLATE_NORMAL, false);
                tprint.Dock = DockStyle.Fill;
                pnlTemprature.Controls.Add(tprint);
            }
        }