页面:
js代码:
function setSelectIndex(index) {
document.getElementById("hid_index").value = index;
}
var index = document.getElementById("hid_index").value;
var id = StoreInvoice.getAt(index).get('InvoiceId');
s里已经取到gridpanel的store中某个单元格的值,放进隐藏域
//关联终端
string[] item_terminalid = this.hid_item_terminalid.Text.Trim().Split(',');
if (item_terminalid.Length > 0)
{
for (int i = 0; i < item_terminalid.Length; i++)
{
if (item_terminalid[i] != "" && item_terminalid[i] != null)
{
MsecTerminalManagementInfo terminal = base.ManagerFactory.terminalManagementSrv.Get(int.Parse(item_terminalid[i]));
obj.MsecTerminalManagementInfos.Add(terminal);
}
}
}