事件:ChangeCurrency
cs代码:
protected void ChangeCurrency(object sender, DirectEventArgs e) { if (this.cbxCurrency.SelectedItem.Value.Trim() == "RMB") { this.txtRate.Text = "1.000000"; } else { ZMQuotation zmq = new ZMQuotation(); zmq.Currency=this.cbxCurrency.SelectedItem.Value.Trim(); ZMQuotationManager zmqm=new ZMQuotationManager (); this.txtRate.Text =zmqm .GetRate(zmq); } }