コード例 #1
0
 private void SetRelatedDocument(RelatedDocumentViewModel.RefType typ, DocumentTypeType docTyp)
 {
     InvVm.RelatedDoc.RefTypeSelected    = typ;
     InvVm.RelatedDoc.RefInvNumber       = "STORNO123123";
     InvVm.RelatedDoc.RefInvDate         = new DateTime(2014, 1, 20);
     InvVm.RelatedDoc.RefSelectedDocType = docTyp.ToString();
     InvVm.RelatedDoc.RefComment         = "Diese Schlussrechnung war leider falsch";
 }
コード例 #2
0
 private void SaveRelatedDoc(string invNr, DateTime date, string comment, DocumentTypeType dType)
 {
     InvVm.RelatedDoc.RefTypeSelected    = RelatedDocumentViewModel.RefType.Verweis;
     InvVm.RelatedDoc.RefInvNumber       = invNr;
     InvVm.RelatedDoc.RefInvDate         = date;
     InvVm.RelatedDoc.RefSelectedDocType = dType.ToString();
     InvVm.RelatedDoc.RefComment         = comment;
     InvVm.SaveTemplateCommand.Execute(SaveTempRelated);
 }