Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How to remove the weight according to a certain field and get the internal code of the document

Shulou Source: shulou.com Published: 2022-06-03 05:41:19 11月24日 Update

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

}

}

Tags: Buttons events members internal codes documents member files information lists uppercase tools toolbars plug-ins data files menus forms questions multiple lines selections fields Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB vpn Linux Huawei Shulou Technology