public override Abletech.Arxivar.Entities.Arx_KeyValue[] Execute(Abletech.Arxivar.Entities.Arx_KeyValue[] keys) { Dm_Fascicoli fascicolo = WcfConnectorManager.ARX_DATI.Dm_Fascicoli_GetData_ById(Ids[0]); Dm_FileInFolder[] collezione = WcfConnectorManager.ARX_DATI.Dm_FileInFolder_GetData_ByFolder(Ids[0]); if (collezione == null || !collezione.Any()) { MessageBox.Show("Il fascicolo è vuoto"); return(null); } var select = new Dm_Profile_Select(); select.DOCNUMBER.Selected = true; select.DOCNAME.Selected = true; select.ORIGINALE.Selected = true; select.DATADOC.Selected = true; select.CREATION_DATE.Selected = true; var search = new Dm_Profile_Search(); var docnumberList = string.Join(";", collezione.Select(x => x.DOCNUMBER.ToString()).ToArray()); search.DocNumber.SetFilterMultiple(Dm_Base_Search_Operatore_Numerico.Uguale, docnumberList); Arx_DataSource searchResult = WcfConnectorManager.ARX_SEARCH.Dm_Profile_GetData(search, select, 0); FormDocumentiFascicolo formDocumentiFascicolo = new FormDocumentiFascicolo(fascicolo, searchResult, WcfConnectorManager); var dialogResult = formDocumentiFascicolo.ShowDialog(); return(null); }
public FormDocumentiFascicolo(Dm_Fascicoli fascicolo, Arx_DataSource searchResult, WCFConnectorManager connectorManager) { _fascicolo = fascicolo; _searchResult = searchResult; _connectorManager = connectorManager; InitializeComponent(); Binding(); }