Example #1
0
 private void Child_Fetch(SafeDataReader dr)
 {
     LoadProperty(_Id, dr.GetInt32("billitemmooring"));
     LoadProperty(_Bill, dr.GetInt32("bill"));
     LoadProperty(_Quantity, dr.GetInt32("Quantity"));
     LoadProperty(_Uom, dr.GetInt32("uom"));
     LoadProperty(_Cargo, BaseItemInfo.Get(dr, _Cargo.Name));
     LoadProperty(_Rate, dr.GetDecimal("rate"));
     LoadProperty(_IsTaxable, dr.GetBoolean("istaxable"));
     LoadProperty(_Total, this.Quantity * this.Rate);
 }
Example #2
0
 private void Child_Fetch(SafeDataReader dr)
 {
     LoadProperty(_Id, dr.GetInt32("billitem"));
     LoadProperty(_Bill, dr.GetInt32("bill"));
     LoadProperty(_Cargo, BaseItemInfo.Get(dr, _Cargo.Name));
     LoadProperty(_UnitCount, dr.GetInt32("unitcount"));
     LoadProperty(_Uom, dr.GetInt32("uom"));
     LoadProperty(_QtyConversion, dr.GetDecimal("qtyconversion"));
     LoadProperty(_WeightUsed, dr.GetInt32("weightused"));
     LoadProperty(_StevedoringRate, dr.GetDecimal("stevedoringrate"));
     LoadProperty(_StevedoringConst, dr.GetDecimal("stevedoringconst"));
     LoadProperty(_ArrastreRate, dr.GetDecimal("arrastrerate"));
     LoadProperty(_ArrastreConst, dr.GetDecimal("arrastreconst"));
     LoadProperty(_PremiumRate, dr.GetDecimal("premiumrate"));
     LoadProperty(_IsTaxable, dr.GetBoolean("istaxable"));
 }