收到付款

古塔米

会员
已加入
2011年6月13日
留言内容
8
编程经验
Beginner
我已经使用了电汇控件来接收付款。

如果我选择了rad组合框,则会自动显示网格视图。

我的视图模型codins是public void CustomerDetails(){
如果(SelectedCustomer!= null)
{
_currentReceivePayment.DueDate = _SelectedReceivePaymentView2.DueDate;
_currentReceivePayment.InvoiceAmount = _SelectedReceivePaymentView2.TotalAmount;
_currentReceivePayment.Invoice = _SelectedReceivePaymentView2.InvoiceID;



}
}


视图编码是<TelerikGrid:GridViewDataColumn Header ="Due Date" UniqueName="DueDate" Width="1*" DataMemberBinding="{绑定currentReceivePayment.DueDate,Mode = TwoWay}"/> <TelerikGrid:GridViewDataColumn Header ="Invoice" Width="1*" UniqueName="Invoice" DataMemberBinding ="{绑定currentReceivePayment.Invoice,Mode = TwoWay}"/>
<TelerikGrid:GridViewDataColumn Header ="Invoice Amount" Width="1*" UniqueName="Invoice Amount" DataMemberBinding="{绑定currentReceivePayment.InvoiceAmount,Mode = TwoWay}"/>




codebhind为私有void dtgReceivePayment_SelectionChanged(object sender,SelectionChangeEventArgs e){






如果(GridFocus)
{
// if(dtgReceivePayment .CurrentColumn.UniqueName =="ReceivedFrom"|| dtgReceivePayment.CurrentColumn.UniqueName =="ItemTax")


RadComboBox comboBox =(RadComboBox)e.OriginalSource;
如果(comboBox.SelectedValue == null || comboBox.SelectedValuePath!="CustomerID"|| comboBox.SelectedItem == null)
返回;
var row = comboBox.ParentOfType<GridViewRow>();
ProxyReceivePayment客户=新的ProxyReceivePayment();
BizFramework.Web.Model.ReceivePaymentView2 cstmr =(BizFramework.Web.Model.ReceivePaymentView2)comboBox.SelectedItem;




//customer.InvoiceID = (int)cstmr.InvoiceID;
customer.InvoiceID =(int)cstmr.InvoiceID;
customer.InvoiceAmount = cstmr.TotalAmount;
customer.DueDate = cstmr.DueDate;
ReceivePaymentViewModel receive =新的ReceivePaymentViewModel();
receive.CustomerDetails();


}



我无法自动显示网格视图。如何解决此问题?
 
最佳 底部