private void buttonItemReportCheck_Click(object sender, EventArgs e) { try { CloudDiagnosis.Entity.Reports report = new CloudDiagnosis.Entity.Reports(); decimal reportid = SystemConfiguration.report.Report_ID; string patientid = textBoxPatientCheckNumber.Text; report.Content = textBoxNoteInformation.Text; report.Comment = textBoxEvaluateInformation.Text; report.StudyDescription = textBoxCheckInformation.Text; report.AuditUserID = SystemConfiguration.LoginUser.User_ID; report.AuditUserName = SystemConfiguration.LoginUser.UserName; // 序列化 JavaScriptSerializer js = new JavaScriptSerializer(); string jsonReport = js.Serialize(report); // 上传 ClientCloudEyesServer.CloudEyesSoapClient serviceClient = new ClientCloudEyesServer.CloudEyesSoapClient("CloudEyesSoap"); bool ret = serviceClient.UploadInfo(reportid, jsonReport); if (ret) { MessageBox.Show("上传成功!"); } else { MessageBox.Show("上传失败!"); } } catch (Exception ex) { //MessageBox.Show("上传失败!"); } }
//private void buttonOpenDirectory_Click(object sender, EventArgs e) //{ //} public override void FormOnLoad() { base.FormOnLoad(); FormMain fromMain = SystemConfiguration.FormMain; CloudDiagnosis.Entity.Reports report = fromMain.GetSelectedReport(); if (report != null) { textBoxUploadTime.Text = report.RequestTime; textBoxLocation.Text = report.StudyLocalDirectory; textBoxLocationSeg.Text = report.StudyLocalDirectorySeg; textBoxPatientName.Text = report.PatientName; textBoxAge.Text = report.PatientAge.ToString(); textBoxPatientSex.Text = report.PatientSex; textBoxPatientCheckNumber.Text = report.PatientID; textBoxCheckDoctorName.Text = report.AuditUserName; textBoxCheckInformation.Text = report.StudyDescription; textBoxEvaluateInformation.Text = report.Comment; textBoxNoteInformation.Text = report.Content; } }
/// <summary> /// 增加监测节点 /// </summary> /// <param name="parentNode">所属组节点</param> /// <param name="point">监测点</param> /// <returns></returns> private Node AddReportNode(CloudDiagnosis.Entity.Reports report) { Node node = null; node = new Node(); node.Text = report.PatientName; node.Tag = report; node.Cells.Add(new Cell(report.RequestTime)); //node.Cells.Add(new Cell(report.IsAudited.ToString())); if (report.IsAudited == false) { node.Cells.Add(new Cell("未审核")); } if (report.IsAudited == true) { node.Cells.Add(new Cell("已审核")); } //node.Cells.Add(new Cell(report.IsAudited.ToString())); node.CheckBoxVisible = true; advTreePoints.Nodes.Add(node); node.CheckBoxVisible = false; return(node); }
public CloudDiagnosis.Entity.Reports GetSelectedReport() { int iSelectedNodesCount = advTreePoints.CheckedNodes.Count; CloudDiagnosis.Entity.Reports selectedReport = new CloudDiagnosis.Entity.Reports(); //int i = 0; //foreach (Node node in advTreePoints.CheckedNodes) //{ // if (node.Checked) // { // selectedReport = (CloudDiagnosis.Entity.Reports)node.Tag; // SystemConfiguration.report = selectedReport; // } //} foreach (Node node in advTreePoints.Nodes) { if (node.IsSelected) { selectedReport = (CloudDiagnosis.Entity.Reports)node.Tag; SystemConfiguration.report = selectedReport; } } return(selectedReport); }