private void DoSeleniumActionForMerchandise(Fee fee, int quantity) { int merchandiseId = Convert.ToInt32(fee.Id); int merchandiseTypeId = Convert.ToInt32(fee.TypeId); double amount = Convert.ToDouble(fee.Amount); string descReport = Convert.ToString(fee.ReportDescription); string descForm = Convert.ToString(fee.Description); descReport = (String.IsNullOrEmpty(descReport) ? Convert.ToString(fee.Description) : descReport); string response = String.Empty; switch (merchandiseTypeId) { //normal case 1: response = quantity.ToString(); SelectMerchandiseQuantityByName(descForm, quantity); break; default://multiple choice throw new Exception("Not yet implemetned"); } this.FillMerchandiseResponseList( this.CurrentRegistrationId, merchandiseResponses, merchandiseId, descReport, response, amount.ToString()); }
partial void DeleteFee(Fee instance);
partial void UpdateFee(Fee instance);
partial void InsertFee(Fee instance);
private void detach_Fees(Fee entity) { this.SendPropertyChanging(); entity.Event = null; }
private void attach_Fees(Fee entity) { this.SendPropertyChanging(); entity.Event = this; }