コード例 #1
0
ファイル: UcInhospital.cs プロジェクト: zh7262703/Emr_MySql
        private void 病人信息ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            DataInit.isInAreaSucceed = false;
            frmPatientInfo1 frmpatient = new frmPatientInfo1(inpat);

            App.FormStytleSet(frmpatient);
            frmpatient.MdiParent = App.ParentForm;
            frmpatient.Show();
            if (DataInit.isInAreaSucceed)
            {
                string name        = inpat.Patient_Name;
                string sex         = DataInit.StringFormat(inpat.Gender_Code);
                string bed_no      = inpat.Sick_Bed_Name;
                string doctor_Name = inpat.Sick_Doctor_Name;
                string content     = name + "," + sex + "," + bed_no + "," + doctor_Name + "。";
                //App.Msg(content);
                App.SendMessage(content, App.GetHostIp());
                DataInit.UpdatPatientsNodes(nodeInpatient, 4);
                ucHospitalIofn ucHospitalIofn1 = (ucHospitalIofn)this.Parent.Parent.Parent;
                ucHospitalIofn1.HospitalIni(DataInit.PatientsNode.Nodes, nodes, inpat.Patient_Name, DataInit.ViewSwitch, patientTree);
                DataInit.isInAreaSucceed = false;
            }
        }
コード例 #2
0
ファイル: UcInhospital.cs プロジェクト: zh7262703/Emr_MySql
 private void 换床ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     DataInit.isInAreaSucceed = false;
     if (inpat != null)
     {
         frmUpdateBed outAction = new frmUpdateBed(inpat);
         outAction.ShowDialog();
         if (DataInit.isInAreaSucceed == true)
         {
             Node node = DataInit.RefCardTree(nodes, inpat);
             if (node != null)
             {
                 //foreach (Node tempNode in nodes[0].Nodes["tnSection_patient"].Nodes)
                 //{
                 //    if (tempNode.Name==inpat.Section_Id.ToString())
                 //    {
                 //        node.Text = inpat.Sick_Bed_Name + "  " + inpat.Patient_Name;
                 //        //把当前选中的节点移到科室病人节点下
                 //        DataInit.RefLocationTreeNode(node, inpat.Sick_Bed_Name, nodes);
                 //    }
                 //}
             }
             string name        = inpat.Patient_Name;
             string sex         = DataInit.StringFormat(inpat.Gender_Code);
             string bed_no      = inpat.Sick_Bed_Name;
             string doctor_Name = inpat.Sick_Doctor_Name;
             string content     = name + "," + sex + "," + bed_no + "," + doctor_Name + "。";
             //App.Msg(content);
             //App.SendMessage(content, App.GetHostIp());
             DataInit.UpdatPatientsNodes(nodeInpatient, 4);
             ucHospitalIofn ucHospitalIofn1 = (ucHospitalIofn)this.Parent.Parent.Parent;
             ucHospitalIofn1.HospitalIni(DataInit.PatientsNode.Nodes, nodes, inpat.Patient_Name, DataInit.ViewSwitch, patientTree);
             DataInit.isInAreaSucceed = false;
         }
     }
 }