How to remove the weight according to a certain field and get the internal code of the document
Solve the problem: retrieve the internal code of the document from the open list (it is possible to have multiple lines in a single list)
/ / /
/ / menu click event, form plug-in is also applicable
/ / /
/ / /
Public override void BarItemClick (BarItemClickEventArgs e)
{
Switch (e.BarItemKey)
{
/ / case "TBDELETE": list toolbar button event, which button event is distinguished by button Key [uppercase]
Case "tbDelete": / / Delete button to delete the corresponding membership voucher information (member file)
If (this.ListView.SelectedRowsInfo.Count > 0)
{
List dstr = new List ()
ListSelectedRowCollection dstr4 = this.ListView.SelectedRowsInfo
IEnumerable dstr5 = dstr4.GetPrimaryKeyValues (). ToArray (). Distinct ()
Foreach (string dstr2 in dstr5.Distinct ())
{BillCommon.Delmemq (this.Context, dstr2);}
}
Else
{this.View.ShowMessage ("No row data selected!") ;}
Break
Default:
Break
}
}