コード例 #1
0
        private void Mod_Click(object sender, RoutedEventArgs e)
        {
            if (null == lvRecord.SelectedItem)
            {
                BLPublic.Dialogs.Alert("请选评价记录.");
                lvRecord.Focus();
                return;
            }

            WinEditAnalysis edt = new WinEditAnalysis();

            edt.init(this.patient.PatientCode, ((AnalysisModel)lvRecord.SelectedItem).RecordID);
            if (true == edt.ShowDialog())
            {
                showRecord((AnalysisModel)lvRecord.SelectedItem);
            }

            edt = null;
        }
コード例 #2
0
        private void New_Click(object sender, RoutedEventArgs e)
        {
            if (null == this.patient)
            {
                BLPublic.Dialogs.Alert("请选择患者.");
                return;
            }

            WinEditAnalysis edt = new WinEditAnalysis();

            edt.init(this.patient.PatientCode, 0);
            if (true == edt.ShowDialog())
            {
                if (null != this.patient)
                {
                    listRecord(this.patient.PatientCode);
                }
            }

            edt = null;
        }