public static bool showDbFields(ref string field, ref int fieldType, ref int index, cEditor editor) { fColumns fc = null; try { fc = new fColumns(); fc.clearColumns(); cReport report = editor.getReport(); cReportConnect connect = report.getConnect(); fc.fillColumns(connect.getDataSource(), connect.getColumns(), false); for (int _i = 0; _i < report.getConnectsAux().count(); _i++) { connect = report.getConnectsAux().item(_i); fc.fillColumns(connect.getDataSource(), connect.getColumns(), true); } fc.setField(field); fc.ShowDialog(); if (fc.getOk()) { field = fc.getField(); fieldType = fc.getFieldType(); index = fc.getIndex(); return true; } else { return false; } } catch (Exception ex) { cError.mngError(ex, "showDbFields", C_MODULE, ""); return false; } finally { if (fc != null) { fc.Close(); } } }
public void showFields(cEditor editor) { lv_fields.Items.Clear(); if (editor != null) { var connect = editor.getReport().getConnect(); cGlobals.fillColumns( connect.getDataSource(), connect.getColumns(), lv_fields, C_INDEX, C_FIELDTYPE, false); } }
public void showControlsTree(cEditor editor) { m_wasDoubleClick = false; tv_controls.Nodes.Clear(); if (editor != null) { cGlobals.addCtrls(editor.getReport(), tv_controls, C_IMG_FOLDER, C_IMG_FORMULA, C_IMG_CONTROL, C_IMG_DATBASE_FIELD); } }
private object getControlOrSection(cEditor editor, string key) { if (key.Length > 1) { if (key.Substring(0, 1) == "S") { return editor.getSectionOrSectionLineFromKey(key.Substring(1)); } else { return editor.getReport().getControls().item(key); } } else { return null; } }
public void showControls(cEditor editor) { lv_controls.Items.Clear(); if (editor != null) { cGlobals.addCtrls(editor.getReport(), lv_controls, C_CTRL_IMAGE, C_DB_IMAGE); } }