/// <summary>
        /// Loads the form and initialize the SDK context and the SDK controls
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void frmDemo_Load(object sender, EventArgs e)
        {
            //Initializes context
            PriSDKContext.Initialize(BSO, PSO);

            //Initializes controls
            if (!controlsInitialized)
            {
                //Initializes the components with the ERP context
                treeContasEstado1.Inicializa(PriSDKContext.SdkContext);
                tiposEntidade1.Inicializa(PriSDKContext.SdkContext);
                f41.Inicializa(PriSDKContext.SdkContext);

                f4TabelaSQL1.Inicializa(PriSDKContext.SdkContext);
                f4TabelaSQL1.Caption         = "Cliente";
                f4TabelaSQL1.AliasCampoChave = "Cliente";
                f4TabelaSQL1.CampoChave      = "Cliente";
                f4TabelaSQL1.CampoDescricao  = "Nome";
                f4TabelaSQL1.Modulo          = "BAS";

                f4TabelaSQL1.SelectionFormula = "SELECT C.Cliente, C.Nome,C.Fac_Tel, C.Fac_Mor, C.Distrito ,C.NumContrib  FROM Clientes C";

                controlsInitialized = true;
            }
        }
        /// <summary>
        /// Form load
        /// </summary>
        private void frmDemoGrid_Load(object sender, EventArgs e)
        {
            // Initialize the SDK context
            PriSDKContext.Initialize(BSO, PSO);

            // Initialize SDK controls
            InitializeSDKControls();

            // Initialize the grid
            InitializeGrid();
        }
Example #3
0
        /// <summary>
        /// Loads the form and initialize the SDK context and the SDK controls
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void frmDemo_Load(object sender, EventArgs e)
        {
            //Initializes context
            PriSDKContext.Initialize(BSO, PSO);

            //Initializes controls
            if (!controlsInitialized)
            {
                //Initializes the components with the ERP context
                treeContasEstado1.Inicializa(PriSDKContext.SdkContext);
                tiposEntidade1.Inicializa(PriSDKContext.SdkContext);
                f41.Inicializa(PriSDKContext.SdkContext);

                controlsInitialized = true;
            }
        }
Example #4
0
        /// <summary>
        /// Form load
        /// </summary>
        private void frmDemoGridEdit_Load(object sender, EventArgs e)
        {
            try
            {
                // Initialize the SDK context
                PriSDKContext.Initialize(BSO, PSO);

                // Initialize SDK controls
                InitializeSDKControls();

                // Initialize the grid
                InitializeGrid();

                // Sets the form to a new record
                NewRecord();
            }
            catch (Exception ex)
            {
                PSO.Dialogos.MostraErroSimples("Erro ao carregar o formulário!", StdPlatBS100.StdBSTipos.IconId.PRI_Critico, ex.Message);
            }
        }