Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

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

2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

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

}

}

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report