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());
        }
コード例 #2
0
 partial void DeleteFee(Fee instance);
コード例 #3
0
 partial void UpdateFee(Fee instance);
コード例 #4
0
 partial void InsertFee(Fee instance);
コード例 #5
0
		private void detach_Fees(Fee entity)
		{
			this.SendPropertyChanging();
			entity.Event = null;
		}
コード例 #6
0
		private void attach_Fees(Fee entity)
		{
			this.SendPropertyChanging();
			entity.Event = this;
		}