示例#1
0
 private void ConfigureView()
 {
     GridHelper.ConfigureGridNotEditable(gridView);
     GridHelper.ConfigureGridNotEditable(tabelasGridView);
     richEditControl.ReplaceService <ISyntaxHighlightService>(new CustomSyntaxHighlightService(richEditControl.Document));
     richEditControl.LoadDocument("Sql.sql");
     richEditControl.Document.Sections[0].Page.Width = Units.InchesToDocumentsF(80f);
     richEditControl.Document.DefaultCharacterProperties.FontName = "Courier New";
     typeImageComboBoxEdit.AddEnum <ConnectionType>(false);
     typeImageComboBoxEdit.SelectedIndex = 0;
 }
示例#2
0
        private void ConfigureView()
        {
            GridHelper.ConfigureGridNotEditable(fromGridView);
            GridHelper.ConfigureGridNotEditable(withGridView);
            GridHelper.ConfigureGridNotEditable(resultGridView);
            exportExcelSimpleButton.Enabled = false;

            fromMemoEdit.Properties.NullValuePrompt = @"Ex: --SQL
	            SELECT Top 2 Id as KeyProdutoId,
		                CpCodigoExterno,
                        Descricao 
                FROM	TBESTPRODUTO
                WHERE	EmpresaId = 1
                ORDER BY Id
	
            All columns that have Key at the beginning will be used as key.
            All columns that have Cp at the beginning will be used as a comparator.";

            withMemoEdit.Properties.NullValuePrompt = @"Ex: --ODBC 
	            SELECT  TOP 2 B.ID_HOSPDNET AS KeyProdutoId,
                        A.CODIGO_INT AS CpCodigoExterno,
		                A.DESCRICAO AS Descricao 
                FROM TBESTPRODUTO A
	                INNER JOIN TBESTPRODUTO_LIG_HOSPDNET B ON
		                A.EMPRESA = B.EMPRESA AND
		                A.CODIGO_INT = B.CODIGO
                WHERE A.EMPRESA = '001'
                ORDER BY B.ID_HOSPDNET
	
            All columns that have Key at the beginning will be used as key.
            All columns that have Cp at the beginning will be used as a comparator.";

            filterResultMemoEdit.Properties.NullValuePrompt = @"Ex: [CpProdutoId] = 1";

            typeFromImageComboBoxEdit.AddEnum <ConnectionType>();
            typeWithImageComboBoxEdit.AddEnum <ConnectionType>();
            comparatorTypeImageComboBoxEdit.AddEnum <ComparatorType>();
        }