private void ButtonNewSupplyOrder_Click(object sender, RoutedEventArgs e) { string objectId = MongoDB.Bson.ObjectId.GenerateNewId().ToString(); YellowstonePathology.Business.Client.Model.ClientSupplyOrder clientSupplyOrder = new Business.Client.Model.ClientSupplyOrder(objectId, this.m_Client); YellowstonePathology.Business.Persistence.DocumentGateway.Instance.InsertDocument(clientSupplyOrder, this); this.m_ClientSupplyOrderCollection = YellowstonePathology.Business.Gateway.PhysicianClientGateway.GetClientSupplyOrderCollectionByClientId(this.m_Client.ClientId); ClientSupplyOrderDialog clientSupplyOrderDialog = new ClientSupplyOrderDialog(clientSupplyOrder); clientSupplyOrderDialog.ShowDialog(); this.NotifyPropertyChanged("ClientSupplyOrderCollection"); }
public ClientSupplyOrderReportV2(Client.Model.ClientSupplyOrder clientSupplyOrder) { this.m_ClientSupplyOrder = clientSupplyOrder; YellowstonePathology.Document.Xps.PlainHeader header = new YellowstonePathology.Document.Xps.PlainHeader(string.Empty); YellowstonePathology.Document.Xps.PlainFooter footer = new YellowstonePathology.Document.Xps.PlainFooter(string.Empty); this.m_ReportDocument = new YellowstonePathology.Document.Xps.ReportDocument(header, footer); this.WriteClientName(); this.WriteClientAddress(); this.WriteClientCityStateZip(); this.WriteComment(); this.WriteDetailInfo(); }
private void ButtonNewSupplyOrder_Click(object sender, RoutedEventArgs e) { string objectId = MongoDB.Bson.ObjectId.GenerateNewId().ToString(); YellowstonePathology.Business.Client.Model.ClientSupplyOrder clientSupplyOrder = new Business.Client.Model.ClientSupplyOrder(objectId, this.m_Client); YellowstonePathology.Business.Persistence.DocumentGateway.Instance.InsertDocument(clientSupplyOrder, this); ClientSupplyOrderDialog clientSupplyOrderDialog = new ClientSupplyOrderDialog(clientSupplyOrder.ClientSupplyOrderId); clientSupplyOrderDialog.ShowDialog(); this.m_ClientSupplyOrderCollection = YellowstonePathology.Business.Gateway.PhysicianClientGateway.GetClientSupplyOrderCollectionByClientId(this.m_Client.ClientId); this.NotifyPropertyChanged("ClientSupplyOrderCollection"); }