Ext.Net 1.x_Ext.Net.Combox选择触发事件

事件: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);
        }
    }


 

你可能感兴趣的:(object,前端设计,Ext.Net)