private void mnuFile_SaveFileAs_Click(object sender, RoutedEventArgs e)
        {
            //textControl1.Save(TXTextControl.StreamType.MSWord | TXTextControl.StreamType.WordprocessingML);
            string str = "";

            //textControl1.Save(out str,)
            textControl1.Save(out str, TXTextControl.StringStreamType.RichTextFormat);

            //MessageBox.Show(str);

            CommClient.MedicalRecord    medicalRecordClient = new CommClient.MedicalRecord();
            CommContracts.MedicalRecord medicalRecord       = new CommContracts.MedicalRecord();
            medicalRecord.ContentXml     = str;
            medicalRecord.RegistrationID = 7;
            medicalRecord.WriteUserID    = 1;
            medicalRecord.WriteTime      = DateTime.Now;

            medicalRecordClient.SaveMedicalRecord(medicalRecord);
        }
Esempio n. 2
0
 public bool SaveClinicMedicalRecord(CommContracts.MedicalRecord medicalRecord)
 {
     CommClient.MedicalRecord myd = new CommClient.MedicalRecord();
     return(myd.SaveMedicalRecord(medicalRecord));
 }