Example #1
0
 protected void DataPortal_Create(SingleCriteria <Customer, int> criteria)
 {
     LoadProperty(IdProperty, criteria.Value);
     LoadProperty(NameProperty, "New Customer for Id: " + criteria.Value.ToString());
     LoadProperty(DateCreatedProperty, new SmartDate(DateTime.Today));
     LoadProperty(ContactsProperty, CustomerContactList.GetCustomerContactList(0));
 }
Example #2
0
 protected void DataPortal_Fetch(SingleCriteria <Customer, int> criteria)
 {
     LoadProperty(IdProperty, criteria.Value);
     LoadProperty(NameProperty, "Customer Name for Id: " + criteria.Value.ToString());
     LoadProperty(DateCreatedProperty, new SmartDate(new DateTime(2000 + criteria.Value, 1, 1)));
     LoadProperty(ContactsProperty, CustomerContactList.GetCustomerContactList(criteria.Value));
 }