Beispiel #1
0
 private void OnNew(object obj)
 {
     var newApprovalDoc = new ApprovalDocDTO
     {
         Id = Guid.NewGuid(),
         Status = (int) OperationStatus.草稿,
     };
     ViewApprovalDocs.Add(newApprovalDoc);
     RaisePropertyChanged(() => ViewApprovalDocs);
     ApprovalDocs.AddNew(newApprovalDoc);
     SelApprovalDoc = newApprovalDoc;
     RefreshCommandState();
 }
Beispiel #2
0
        private void OnNew(object obj)
        {
            SelApprovalDoc = new ApprovalDocDTO
            {
                Id = Guid.NewGuid(),
                Note = "指标飞机批文",
                Status = (int) OperationStatus.草稿,
            };
            ApprovalDocs.AddNew(SelApprovalDoc);

            var newRequest = new RequestDTO
            {
                Id = Guid.NewGuid(),
                CreateDate = DateTime.Now,
                SubmitDate = DateTime.Now,
                Title = "指标飞机申请(系统添加)",
                Note = "指标飞机申请(系统添加)",
                AirlinesId = Guid.Parse("1978ADFC-A2FD-40CC-9A26-6DEDB55C335F"),
                Status = (int) RequestStatus.草稿,
                IsFinished = true,
                ApprovalDocId = SelApprovalDoc.Id,
            };
            Requests.AddNew(newRequest);
            CurRequest = newRequest;
            RefreshCommandState();
        }