コード例 #1
0
 /// <summary>
 /// Creates or loads a <see cref="InvoiceCreatorGetter"/> unit of objects, based on given criteria.
 /// </summary>
 /// <param name="crit">The create/fetch criteria.</param>
 protected void DataPortal_Fetch(Criteria1 crit)
 {
     if (crit.CreateInvoiceEdit)
     {
         LoadProperty(InvoiceProperty, InvoiceEdit.NewInvoiceEdit());
     }
     else
     {
         LoadProperty(InvoiceProperty, InvoiceEdit.GetInvoiceEdit(crit.InvoiceId));
     }
     LoadProperty(ProductTypesProperty, ProductTypeNVL.GetProductTypeNVL());
 }
コード例 #2
0
 /// <summary>
 /// Creates a new <see cref="InvoiceCreator"/> unit of objects.
 /// </summary>
 /// <remarks>
 /// ReadOnlyBase&lt;T&gt; doesn't allow the use of DataPortal_Create and thus DataPortal_Fetch is used.
 /// </remarks>
 protected void DataPortal_Fetch()
 {
     LoadProperty(InvoiceProperty, InvoiceEdit.NewInvoiceEdit());
     LoadProperty(ProductTypesProperty, ProductTypeNVL.GetProductTypeNVL());
 }
コード例 #3
0
 /// <summary>
 /// Loads a <see cref="InvoiceGetter"/> unit of objects, based on given criteria.
 /// </summary>
 /// <param name="invoiceId">The fetch criteria.</param>
 protected void DataPortal_Fetch(Guid invoiceId)
 {
     LoadProperty(InvoiceProperty, InvoiceEdit.GetInvoiceEdit(invoiceId));
     LoadProperty(ProductTypesProperty, ProductTypeNVL.GetProductTypeNVL());
 }
コード例 #4
0
 /// <summary>
 /// Loads a <see cref="InvoiceListGetter"/> unit of objects.
 /// </summary>
 protected void DataPortal_Fetch()
 {
     LoadProperty(InvoicesProperty, InvoiceList.GetInvoiceList());
     LoadProperty(ProductTypesProperty, ProductTypeNVL.GetProductTypeNVL());
 }