///////////////////////////////////////////////////////////////////////////////////////////////// protected override void Export() { var dc = this.DContextMain as V_Sale_Bill_Mnumber_SD; List <string> billcodes = new List <string>(); billcodes.Add(this.CurrentIDCode); ComExportToFactory.Export(billcodes, dc.Flag_CX == true); }
////////////////////////////////////////////////////////////////////////////////// protected override void Export() { if (this.GridListSelectedCodes.Count == 0) { return; } bool _cx = false; foreach (V_Sale_Bill_Mnumber it in this.DContextMain) { if (it.IsSelected) { _cx = it.Flag_CX; break; } } ComExportToFactory.Export(this.GridListSelectedCodes, _cx); }