Example #1
0
 /// <summary>
 /// Initialize components. Called by framework after form created.
 /// </summary>
 public override void OnInitializeComponent()
 {
     this.StaticText0              = ((SAPbouiCOM.StaticText)(this.GetItem("Item_0").Specific));
     this.StaticText1              = ((SAPbouiCOM.StaticText)(this.GetItem("Item_1").Specific));
     this.StaticText2              = ((SAPbouiCOM.StaticText)(this.GetItem("Item_2").Specific));
     this.CheckBoxImpresion        = ((SAPbouiCOM.CheckBox)(this.GetItem("chkImp").Specific));
     this.StaticText3              = ((SAPbouiCOM.StaticText)(this.GetItem("Item_4").Specific));
     this.EditTextDocDesde         = ((SAPbouiCOM.EditText)(this.GetItem("docDesde").Specific));
     this.StaticText4              = ((SAPbouiCOM.StaticText)(this.GetItem("Item_6").Specific));
     this.EditTextDocHasta         = ((SAPbouiCOM.EditText)(this.GetItem("docHasta").Specific));
     this.CBoxTpoEstado            = ((SAPbouiCOM.ComboBox)(this.GetItem("tpoEstado").Specific));
     this.CBoxtpoRuta              = ((SAPbouiCOM.ComboBox)(this.GetItem("tpoRuta").Specific));
     this.CBoxtpoRuta.ClickBefore += new SAPbouiCOM._IComboBoxEvents_ClickBeforeEventHandler(this.CBoxtpoRuta_ClickBefore);
     this.StaticText5              = ((SAPbouiCOM.StaticText)(this.GetItem("Item_10").Specific));
     this.StaticText6              = ((SAPbouiCOM.StaticText)(this.GetItem("Item_11").Specific));
     this.EditTextFechaDesde       = ((SAPbouiCOM.EditText)(this.GetItem("FechaD").Specific));
     this.StaticText7              = ((SAPbouiCOM.StaticText)(this.GetItem("Item_13").Specific));
     this.EditTextFechaHasta       = ((SAPbouiCOM.EditText)(this.GetItem("FechaH").Specific));
     this.oGrid = ((SAPbouiCOM.Grid)(this.GetItem("Grid").Specific));
     this.oGrid.LinkPressedBefore    += new SAPbouiCOM._IGridEvents_LinkPressedBeforeEventHandler(this.oGrid_LinkPressedBefore);
     this.oGrid.LinkPressedAfter     += new SAPbouiCOM._IGridEvents_LinkPressedAfterEventHandler(this.oGrid_LinkPressedAfter);
     this.oGrid.DoubleClickBefore    += new SAPbouiCOM._IGridEvents_DoubleClickBeforeEventHandler(this.oGrid_DoubleClickBefore);
     this.oGrid.DoubleClickAfter     += new SAPbouiCOM._IGridEvents_DoubleClickAfterEventHandler(this.oGrid_DoubleClickAfter);
     this.ButtonBuscar                = ((SAPbouiCOM.Button)(this.GetItem("bBuscar").Specific));
     this.ButtonBuscar.ClickBefore   += new SAPbouiCOM._IButtonEvents_ClickBeforeEventHandler(this.ButtonBuscar_ClickBefore);
     this.ButtonImprimir              = ((SAPbouiCOM.Button)(this.GetItem("bImprimir").Specific));
     this.ButtonImprimir.ClickAfter  += new SAPbouiCOM._IButtonEvents_ClickAfterEventHandler(this.ButtonImprimir_ClickAfter);
     this.ButtonImprimir.ClickBefore += new SAPbouiCOM._IButtonEvents_ClickBeforeEventHandler(this.ButtonImprimir_ClickBefore);
     this.ButtonCancelar              = ((SAPbouiCOM.Button)(this.GetItem("bCancelar").Specific));
     this.ButtonCancelar.ClickAfter  += new SAPbouiCOM._IButtonEvents_ClickAfterEventHandler(this.ButtonCancelar_ClickAfter);
     this.ButtonCancelar.ClickBefore += new SAPbouiCOM._IButtonEvents_ClickBeforeEventHandler(this.ButtonCancelar_ClickBefore);
     this.CheckBox1 = ((SAPbouiCOM.CheckBox)(this.GetItem("chk_sel").Specific));
     this.OnCustomInitialize();
 }
Example #2
0
        public void instanciarObjetosUI()
        {
            udsEstadoConfiguracion = mForm.DataSources.UserDataSources.Item(UDS_ESTADO_CONFIGURACION);
            udsEstadoSociedad      = mForm.DataSources.UserDataSources.Item(UDS_ESTADO_SOCIEDAD);
            udsCondicionSociedad   = mForm.DataSources.UserDataSources.Item(UDS_CONDICION_SOCIEDAD);
            udsEstadoOrden         = mForm.DataSources.UserDataSources.Item(UDS_EST_ORDR);
            udsEstadoPago          = mForm.DataSources.UserDataSources.Item(UDS_EST_ORCT);
            udsCondicionSociedad   = mForm.DataSources.UserDataSources.Item(UDS_CONDICION_SOCIEDAD);
            udsMotivoTraslado      = mForm.DataSources.UserDataSources.Item(UDS_MOTIVO_TRASLADO);
            edtSociedad            = mForm.Items.Item(EDT_SOCIEDAD).Specific;
            edtDescripcion         = mForm.Items.Item(EDT_DESCRIPCION).Specific;
            edtUsuario             = mForm.Items.Item(EDT_USUARIO).Specific;
            edtPassword            = mForm.Items.Item(EDT_PASSWORD).Specific;
            edtIdInterno           = mForm.Items.Item(EDT_IDINTERNO).Specific;
            edtMaxLineasOrdn       = mForm.Items.Item(EDT_MAXLINEAS).Specific;
            edtMotivoTraslado      = mForm.Items.Item(EDT_MOT_TRASLADO).Specific;
            cboEstado      = mForm.Items.Item(CBO_ESTADO).Specific;
            cboCondicion   = mForm.Items.Item(CBO_CONDICION).Specific;
            cboEstOrden    = mForm.Items.Item(CBO_EST_ORDR).Specific;
            cboEstPago     = mForm.Items.Item(CBO_EST_ORCT).Specific;
            btnRegistrar   = mForm.Items.Item(BTN_REGISTRAR).Specific;
            btnP1Siguiente = mForm.Items.Item(BTN_P1NEXT).Specific;

            edtCodigoMenu = mForm.Items.Item(EDT_CODIGO_MENU).Specific;
            edtDescrpMenu = mForm.Items.Item(EDT_DESCRIPCION_MENU).Specific;
            gridListaMenu = mForm.Items.Item(GRID_LISTA_MENU).Specific;
        }
 /// <summary>
 /// Initialize components. Called by framework after form created.
 /// </summary>
 public override void OnInitializeComponent()
 {
     this.Button0 = ((SAPbouiCOM.Button)(this.GetItem("Item_0").Specific));
     this.Button0.ChooseFromListAfter += new SAPbouiCOM._IButtonEvents_ChooseFromListAfterEventHandler(this.Button0_ChooseFromListAfter);
     this.grMatrix = ((SAPbouiCOM.Matrix)(this.GetItem("13").Specific));
     this.OnCustomInitialize();
 }
        public ChooseFromList()
        {
            AppHelper.SetApplication(ref this.oApplication);

            this.oForm = UIHelper.CriarForm(this.oApplication, SAPbouiCOM.BoFormBorderStyle.fbs_Fixed, "CFL1", "CFL1", 150, 350, true, 0, "Exemplo de Choose From List");

            UserDataSourceHelper.AddUserDataSource(this.oForm, "EditDS", SAPbouiCOM.BoDataType.dt_SHORT_TEXT, 254);
            UserDataSourceHelper.AddUserDataSource(this.oForm, "EditDSN", SAPbouiCOM.BoDataType.dt_SHORT_TEXT, 254);

            AddChooseFromList();
            this.oEditTxt   = UIHelper.AddEditTextAoFormulario(this.oForm, "EditTxt", 120, 0, 90, 0, "StaticTxt", false, 0, 0);
            this.oEditTxtN  = UIHelper.AddEditTextAoFormulario(this.oForm, "EditTxtN", 120, 0, 105, 0, "EditTxt", false, 0, 0);
            this.oStaticTxt = UIHelper.AddStaticTextAoFormulario(this.oForm, "StaticTxt", 10, 0, 90, 0, "Cliente");


            this.oStaticExplain  = UIHelper.AddStaticTextAoFormulario(this.oForm, "Explain", 10, 200, 10, 0, "São dois choosen From List Aqui no Formulário");
            this.oStaticExplain1 = UIHelper.AddStaticTextAoFormulario(this.oForm, "Explain1", 10, 300, 25, 0, "Um deles é ativado pressionando TAB no Edit Text...");
            this.oStaticExplain2 = UIHelper.AddStaticTextAoFormulario(this.oForm, "Explain2", 10, 300, 40, 0, "Somente é mostrado quando o Parceiro de Negócios é Cleinte...");
            this.oStaticExplain3 = UIHelper.AddStaticTextAoFormulario(this.oForm, "Explain3", 10, 300, 55, 0, "O Outro Choose From List é ativado pelo Botão...");
            this.oStaticExplain4 = UIHelper.AddStaticTextAoFormulario(this.oForm, "Explain4", 10, 300, 70, 0, "Mostra todos os parceiros de negocios ....");

            string sImagem = System.Windows.Forms.Application.StartupPath + @"\CFL.BMP";;

            this.oButton = UIHelper.AddBotaoImagemAoFormulario(this.oForm, "Button", 199, 20, 88, 20, sImagem);

            this.oEditTxt.DataBind.SetBound(true, "", "EditDS");
            this.oEditTxtN.DataBind.SetBound(true, "", "EditDSN");

            this.oEditTxt.ChooseFromListUID = "CFL1";
            this.oButton.ChooseFromListUID  = "CFL2";

            this.oApplication.ItemEvent += OApplication_ItemEvent;

            this.oForm.Visible = true;
        }
Example #5
0
        private void button1_Click(object sender, EventArgs e)
        {
            //criar um formulário com dois matrix
            this.oForm         = UIHelper.CriarForm(this.oApplication, SAPbouiCOM.BoFormBorderStyle.fbs_Sizable, "TypeFrmMatrix", "UidFrmGrid", 200, 600, true, 0, "Matrix e Celulas", 250, 740, 44, 366);
            this.oButtonOK     = UIHelper.AddBotaoAoFormulario(this.oForm, "1", 5, 65, 170, 19, "Ok", false);
            this.oButtonCancel = UIHelper.AddBotaoAoFormulario(this.oForm, "2", 75, 65, 170, 19, "Cancel", false);
            AddDataSources();

            this.oMatrix1 = UIHelper.AddMatrixAoFormulario(this.oForm, "Matrix1", 360, 361, 5, 150, SAPbouiCOM.BoMatrixSelect.ms_Auto);
            this.AddColunasMatrix1(this.oMatrix1);
            this.setMatrix(ref this.oMatrix1);

            this.oMatrix2 = UIHelper.AddMatrixAoFormulario(this.oForm, "Matrix2", 5, 361, 5, 150, SAPbouiCOM.BoMatrixSelect.ms_Auto);
            this.AddColunasMatrix1(this.oMatrix2);
            this.setMatrix(ref this.oMatrix2);


            this.oForm.Settings.Enabled = true;

            this.oForm.Visible = true;



            this.btnMudarGrid.Enabled = true;
            this.btnMatrix.Enabled    = false;
        }
Example #6
0
 private void UnFold(bool unfold = false)
 {
     try
     {
         this.CurrentForm.Freeze(true);
         this.CurrentForm.DataSources.UserDataSources.Item(UDS_UNFOLD).Value = unfold ? "Y" : "N";
         SAPbouiCOM.Button btn_unfold = this.CurrentForm.Items.Item("btn_unfold").Specific;
         btn_unfold.Image = string.Format("{0}{1}.png", SAPBoAddon.B1Addon.B1Addon.FolderForm,
                                          unfold ? "BUTTON_UNFOLD" : "BUTTON_FOLD");
         this.CurrentForm.Height = unfold ? 545 : 545 - 94;
         this.CurrentForm.Items.Item(CMBX_CYCLE).Top    = unfold ? 128 : 128 - 94;
         this.CurrentForm.Items.Item(EDT_DATE_FROM).Top = unfold ? 143 : 143 - 94;
         this.CurrentForm.Items.Item(EDT_DATE_TO).Top   = unfold ? 143 : 143 - 94;
         this.CurrentForm.Items.Item(LAB_DATE).Top      = unfold ? 143 : 143 - 94;
         this.CurrentForm.Items.Item(BTN_SEARCH).Top    = unfold ? 128 : 128 - 94;
         this.CurrentForm.Items.Item(BTN_GENERATE).Top  = unfold ? 128 : 128 - 94;
         this.CurrentForm.Items.Item(GRID_LIST).Top     = unfold ? 160 : 160 - 94;
         this.CurrentForm.Items.Item(LAB_SAVE_SQL).Top  = unfold ? 481 : 481 - 94;
         this.CurrentForm.Items.Item(BTN_SAVE).Top      = unfold ? 481 : 481 - 94;
         this.CurrentForm.Items.Item(BTN_OK).Top        = unfold ? 486 : 486 - 94;
         this.CurrentForm.Items.Item(BTN_CANCEL).Top    = unfold ? 486 : 486 - 94;
         this.CurrentForm.Items.Item(BTN_SURE).Top      = unfold ? 486 : 486 - 94;
         this.CurrentForm.PaneLevel = unfold ? 2 : 1;
     }
     catch (Exception ex) { throw ex; }
     finally { this.CurrentForm.Freeze(false); }
 }
Example #7
0
        /// <summary>
        /// Checkea y descheckea todas las columnas de la matrix variedades
        /// </summary>
        public static void EjecutarChecking(SAPbouiCOM.Form oForm)
        {
            SAPbouiCOM.Button oButton    = oForm.Items.Item("bt_chk").Specific;
            SAPbouiCOM.Matrix oMatrix    = oForm.Items.Item("matrixVar").Specific;
            SAPbouiCOM.Matrix oMatrixCrt = oForm.Items.Item("matrixCrt").Specific;

            oForm.Freeze(true);

            // Check
            if (oButton.Caption.Equals("check"))
            {
                for (int i = 1; i <= oMatrix.RowCount; i++)
                {
                    SAPbouiCOM.CheckBox chk = (SAPbouiCOM.CheckBox)oMatrix.Columns.Item("co_Chk").Cells.Item(i).Specific;
                    chk.Checked = true;
                }
                DataBindCuarteles(oForm);
                oButton.Caption = "uncheck";
            }
            // Uncheck
            else
            {
                for (int i = 1; i <= oMatrix.RowCount; i++)
                {
                    SAPbouiCOM.CheckBox chk = (SAPbouiCOM.CheckBox)oMatrix.Columns.Item("co_Chk").Cells.Item(i).Specific;
                    chk.Checked = false;
                }
                oMatrixCrt.Clear();
                oButton.Caption = "check";
            }

            oForm.Freeze(false);
        }
Example #8
0
        /// <summary>
        /// Revisa el estado de la matrix cuarteles para dar valor correcto al boton check cuarteles
        /// </summary>
        public static void SetButtonCheckCuarteles(SAPbouiCOM.Form oForm)
        {
            SAPbouiCOM.Matrix oMatrix = oForm.Items.Item("matrixCrt").Specific;
            SAPbouiCOM.Button oButton = oForm.Items.Item("bt_chkC").Specific;
            bool Chekeados            = false;

            // Recorremos la matrix de cuarteles para saber si hay chekeados
            for (int i = 1; i <= oMatrix.RowCount; i++)
            {
                SAPbouiCOM.CheckBox chk = (SAPbouiCOM.CheckBox)oMatrix.Columns.Item("co_Chk").Cells.Item(i).Specific;
                if (chk.Checked)
                {
                    Chekeados = true;
                    break;
                }
            }

            // si hay valores chekeados cambiar button
            if (Chekeados)
            {
                oButton.Caption = "uncheck";
            }
            else
            {
                oButton.Caption = "check";
            }
        }
Example #9
0
        public void GetItemReferences()
        {
            try
            {
                _oForm.Freeze(false);
                _cbARINV       = _oForm.Items.Item("cbARINV").Specific as SAPbouiCOM.CheckBox;
                _cbARCN        = _oForm.Items.Item("cbARCN").Specific as SAPbouiCOM.CheckBox;
                _cbAPINV       = _oForm.Items.Item("cbAPINV").Specific as SAPbouiCOM.CheckBox;
                _cbAPCN        = _oForm.Items.Item("cbAPCN").Specific as SAPbouiCOM.CheckBox;
                _txtDTFRM      = _oForm.Items.Item("txtDTFRM").Specific as SAPbouiCOM.EditText;
                _txtDTTO       = _oForm.Items.Item("txtDTTO").Specific as SAPbouiCOM.EditText;
                _btnView       = _oForm.Items.Item("btnView").Specific as SAPbouiCOM.Button;
                _btnCP         = _oForm.Items.Item("btnCP").Specific as SAPbouiCOM.Button;
                _txtPath       = _oForm.Items.Item("txtPath").Specific as SAPbouiCOM.EditText;
                _btnExport     = _oForm.Items.Item("btnExport").Specific as SAPbouiCOM.Button;
                _grid_Trans    = _oForm.Items.Item("grid_Trans").Specific as SAPbouiCOM.Grid;
                _dt_grid_Trans = _oForm.DataSources.DataTables.Item("grid_Trans");

                _btnView.PressedAfter   += _btnView_PressedAfter;
                _btnExport.PressedAfter += _btnExport_PressedAfter;
                // Double click events
                _grid_Trans.DoubleClickAfter += _grid_Trans_DoubleClickAfter;
                _btnCP.PressedAfter          += _btnCP_PressedAfter;
            }
            catch (Exception Ex) { eCommon.SBO_Application.MessageBox(Ex.Message); }
        }
 /// <summary>
 /// Initialize components. Called by framework after form created.
 /// </summary>
 public override void OnInitializeComponent()
 {
     this.mtxItems                       = ((SAPbouiCOM.Matrix)(this.GetItem("mtxItems").Specific));
     this.txtDocNo                       = ((SAPbouiCOM.EditText)(this.GetItem("txtDocNo").Specific));
     this.dtTransferItemLines            = this.UIAPIRawForm.DataSources.DBDataSources.Item(string.Format("@{0}", TableNames.TransferItemsLines));
     this.dpDocDate                      = ((SAPbouiCOM.EditText)(this.GetItem("dpDocDate").Specific));
     this.mtxItems.ChooseFromListBefore += new SAPbouiCOM._IMatrixEvents_ChooseFromListBeforeEventHandler(this.mtxItems_ChooseFromListBefore);
     this.mtxItems.ChooseFromListAfter  += new SAPbouiCOM._IMatrixEvents_ChooseFromListAfterEventHandler(this.mtxItems_ChooseFromListAfter);
     this.mtxItems.ClickBefore          += new SAPbouiCOM._IMatrixEvents_ClickBeforeEventHandler(this.mtxItems_ClickBefore);
     this.btnSave                      = ((SAPbouiCOM.Button)(this.GetItem("1").Specific));
     this.btnSave.ClickBefore         += new SAPbouiCOM._IButtonEvents_ClickBeforeEventHandler(this.btnSave_ClickBefore);
     this.btnSave.PressedBefore       += new SAPbouiCOM._IButtonEvents_PressedBeforeEventHandler(this.btnSave_PressedBefore);
     this.btnCancel                    = ((SAPbouiCOM.Button)(this.GetItem("2").Specific));
     this.fldrItems                    = ((SAPbouiCOM.Folder)(this.GetItem("Item_5").Specific));
     this.fldrCosts                    = ((SAPbouiCOM.Folder)(this.GetItem("Item_6").Specific));
     this.mtxCost                      = ((SAPbouiCOM.Matrix)(this.GetItem("Item_7").Specific));
     this.mtxCost.ChooseFromListAfter += new SAPbouiCOM._IMatrixEvents_ChooseFromListAfterEventHandler(this.mtxCost_ChooseFromListAfter);
     this.mtxCost.ClickBefore         += new SAPbouiCOM._IMatrixEvents_ClickBeforeEventHandler(this.mtxCost_ClickBefore);
     //this.btnCalculate = ((SAPbouiCOM.Button)(this.GetItem("btnClc").Specific));
     //this.btnCalculate.ClickAfter += new SAPbouiCOM._IButtonEvents_ClickAfterEventHandler(this.btnCalculate_ClickAfter);
     //this.btnCalculate.ClickBefore += new SAPbouiCOM._IButtonEvents_ClickBeforeEventHandler(this.btnCalculate_ClickBefore);
     this.btnAddRow                = ((SAPbouiCOM.Button)(this.GetItem("btnAddRow").Specific));
     this.btnAddRow.ClickBefore   += btnAddRow_ClickBefore;
     this.btnAddRow.ClickAfter    += btnAddRow_ClickAfter;
     this.mtxItems.ValidateBefore += mtxItems_ValidateBefore;
     this.OnCustomInitialize();
 }
Example #11
0
        /// <summary>
        /// Saves references to items in the modal
        /// </summary>
        private void BindElements()
        {
            mCmbType   = ((SAPbouiCOM.ComboBox)mFrmDialog.Items.Item("cmbType").Specific);
            mEdtAmount = ((SAPbouiCOM.EditText)mFrmDialog.Items.Item("edtAmnt").Specific);
            mBtnGen    = ((SAPbouiCOM.Button)mFrmDialog.Items.Item("btnGen").Specific);

            mEdtDocNum = mFrmInvoice.Items.Item("8").Specific as SAPbouiCOM.EditText;
        }
Example #12
0
 private void setItems()
 {
     lObjMatrix = ((SAPbouiCOM.Matrix)lObjModalForm.Items.Item("MtxCert").Specific);
     lObjBtnOk  = ((SAPbouiCOM.Button)lObjModalForm.Items.Item("btnOk").Specific);
     lObjBtnCan = ((SAPbouiCOM.Button)lObjModalForm.Items.Item("btnCan").Specific);
     lObjMatrix.AutoResizeColumns();
     initMatrix();
 }
Example #13
0
 /// <summary>
 /// Binds elements in the form-
 /// </summary>
 private void BindElements()
 {
     mCmbType                   = ((SAPbouiCOM.ComboBox)mObjModal.Items.Item("cmbType").Specific);
     mBtnAdd                    = ((SAPbouiCOM.Button)mObjModal.Items.Item("btnAdd").Specific);
     mEdtAmnt                   = ((SAPbouiCOM.EditText)mObjModal.Items.Item("edtAmnt").Specific);
     mBtnAdd.ClickBefore       += new SAPbouiCOM._IButtonEvents_ClickBeforeEventHandler(this.mBtnAdd_ClickBefore);
     mCmbType.ComboSelectAfter += new SAPbouiCOM._IComboBoxEvents_ComboSelectAfterEventHandler(this.mCmbType_ComboSelectAfter);
 }
Example #14
0
 /// <summary>
 /// Initialize components. Called by framework after form created.
 /// </summary>
 public override void OnInitializeComponent()
 {
     this.lObjCmbPrefixes = ((SAPbouiCOM.ComboBox)(this.GetItem("cbPrefix").Specific));
     this.lObjBtnAccept   = ((SAPbouiCOM.Button)(this.GetItem("BtnOk").Specific));
     this.StaticText0     = ((SAPbouiCOM.StaticText)(this.GetItem("Item_3").Specific));
     this.lObjETActiveP   = ((SAPbouiCOM.EditText)(this.GetItem("txtActive").Specific));
     this.OnCustomInitialize();
 }
Example #15
0
 public override void OnInitializeComponent()
 {
     this.CountButton              = ((SAPbouiCOM.Button)(this.GetItem("Item_0").Specific));
     this.CountButton.ClickBefore += new SAPbouiCOM._IButtonEvents_ClickBeforeEventHandler(this.CountButton_ClickBefore);
     this.EditText0 = ((SAPbouiCOM.EditText)(this.GetItem("Item_1").Specific));
     this.Matrix0   = ((SAPbouiCOM.Matrix)(this.GetItem("38").Specific));
     this.OnCustomInitialize();
 }
Example #16
0
        /// <summary>
        /// Initialize components. Called by framework after form created.
        /// </summary>
        ///

        public override void OnInitializeComponent()
        {
            this.Grid0 = ((SAPbouiCOM.Grid)(this.GetItem("Item_0").Specific));
            this.Grid0.DoubleClickAfter += new SAPbouiCOM._IGridEvents_DoubleClickAfterEventHandler(this.Grid0_DoubleClickAfter);
            this.Grid0.PressedAfter     += new SAPbouiCOM._IGridEvents_PressedAfterEventHandler(this.OnClickListener);
            this.Edit1 = ((SAPbouiCOM.EditText)(this.GetItem("Item_1").Specific));
            this.Edit1.DoubleClickBefore += new SAPbouiCOM._IEditTextEvents_DoubleClickBeforeEventHandler(this.Edit1_DoubleClickBefore);
            this.StaticText0              = ((SAPbouiCOM.StaticText)(this.GetItem("Item_2").Specific));
            this.Edit2 = ((SAPbouiCOM.EditText)(this.GetItem("Item_3").Specific));
            this.Edit2.DoubleClickBefore += new SAPbouiCOM._IEditTextEvents_DoubleClickBeforeEventHandler(this.Edit2_DoubleClickBefore);
            this.StaticText1              = ((SAPbouiCOM.StaticText)(this.GetItem("Item_4").Specific));
            this.StaticText2              = ((SAPbouiCOM.StaticText)(this.GetItem("Item_5").Specific));
            this.Edit3 = ((SAPbouiCOM.EditText)(this.GetItem("Item_6").Specific));
            this.Edit3.DoubleClickBefore += new SAPbouiCOM._IEditTextEvents_DoubleClickBeforeEventHandler(this.Edit3_DoubleClickBefore);
            this.StaticText3              = ((SAPbouiCOM.StaticText)(this.GetItem("Item_7").Specific));
            this.Edit4 = ((SAPbouiCOM.EditText)(this.GetItem("Item_8").Specific));
            this.Edit4.DoubleClickBefore += new SAPbouiCOM._IEditTextEvents_DoubleClickBeforeEventHandler(this.Edit4_DoubleClickBefore);
            this.StaticText4              = ((SAPbouiCOM.StaticText)(this.GetItem("Item_9").Specific));
            this.Edit5 = ((SAPbouiCOM.EditText)(this.GetItem("Item_10").Specific));
            this.Edit5.DoubleClickBefore += new SAPbouiCOM._IEditTextEvents_DoubleClickBeforeEventHandler(this.Edit5_DoubleClickBefore);
            this.StaticText5              = ((SAPbouiCOM.StaticText)(this.GetItem("Item_11").Specific));
            this.Edit6 = ((SAPbouiCOM.EditText)(this.GetItem("Item_12").Specific));
            this.Edit6.DoubleClickBefore += new SAPbouiCOM._IEditTextEvents_DoubleClickBeforeEventHandler(this.Edit6_DoubleClickBefore);
            this.StaticText6              = ((SAPbouiCOM.StaticText)(this.GetItem("Item_13").Specific));
            this.Edit7 = ((SAPbouiCOM.EditText)(this.GetItem("Item_14").Specific));
            this.Edit7.DoubleClickBefore += new SAPbouiCOM._IEditTextEvents_DoubleClickBeforeEventHandler(this.Edit7_DoubleClickBefore);
            this.StaticText7              = ((SAPbouiCOM.StaticText)(this.GetItem("Item_15").Specific));
            this.Edit8 = ((SAPbouiCOM.EditText)(this.GetItem("Item_16").Specific));
            this.Edit8.DoubleClickBefore     += new SAPbouiCOM._IEditTextEvents_DoubleClickBeforeEventHandler(this.Edit8_DoubleClickBefore);
            this.FillTableButton              = ((SAPbouiCOM.Button)(this.GetItem("Item_17").Specific));
            this.FillTableButton.ClickBefore += new SAPbouiCOM._IButtonEvents_ClickBeforeEventHandler(this.FillTableButton_ClickBefore);
            this.RefreshButton              = ((SAPbouiCOM.Button)(this.GetItem("Item_18").Specific));
            this.RefreshButton.ClickBefore += new SAPbouiCOM._IButtonEvents_ClickBeforeEventHandler(this.ResetButton);
            this.ComboBox0 = ((SAPbouiCOM.ComboBox)(this.GetItem("Item_19").Specific));
            this.ComboBox0.ComboSelectAfter += new SAPbouiCOM._IComboBoxEvents_ComboSelectAfterEventHandler(this.ComboBox0_ComboSelectAfter);
            this.StaticText8              = ((SAPbouiCOM.StaticText)(this.GetItem("Item_20").Specific));
            this.StaticText9              = ((SAPbouiCOM.StaticText)(this.GetItem("Item_21").Specific));
            this.Grid1                    = ((SAPbouiCOM.Grid)(this.GetItem("Item_22").Specific));
            this.StaticText10             = ((SAPbouiCOM.StaticText)(this.GetItem("Item_23").Specific));
            this.Edit0                    = ((SAPbouiCOM.EditText)(this.GetItem("Item_24").Specific));
            this.Edit0.DoubleClickBefore += new SAPbouiCOM._IEditTextEvents_DoubleClickBeforeEventHandler(this.EditText8_DoubleClickBefore);
            this.LinkedButton0            = ((SAPbouiCOM.LinkedButton)(this.GetItem("Item_25").Specific));
            this.StaticText11             = ((SAPbouiCOM.StaticText)(this.GetItem("Item_26").Specific));
            this.Button2                  = ((SAPbouiCOM.Button)(this.GetItem("Item_27").Specific));
            this.Button2.ClickBefore     += new SAPbouiCOM._IButtonEvents_ClickBeforeEventHandler(this.Button2_ClickBefore);

            //
            this.listOfEditText = this.CM_Obj.addItemsToList(this.Edit0, this.Edit1, this.Edit2, this.Edit3, this.Edit4, this.Edit5, this.Edit6, this.Edit7, this.Edit8);
            //
            this.CountButton                = ((SAPbouiCOM.Button)(this.GetItem("Item_31").Specific));
            this.CountButton.ClickBefore   += new SAPbouiCOM._IButtonEvents_ClickBeforeEventHandler(this.CountTotal);
            this.GetItem("Item_31").Visible = false;
            this.GetItem("Item_19").Enabled = false;
            this.Grid2 = ((SAPbouiCOM.Grid)(this.GetItem("Item_32").Specific));
            this.AuthenticationButton              = ((SAPbouiCOM.Button)(this.GetItem("Item_29").Specific));
            this.AuthenticationButton.ClickBefore += new SAPbouiCOM._IButtonEvents_ClickBeforeEventHandler(this.Button0_ClickBefore);
            this.OnCustomInitialize();
        }
Example #17
0
 /// <summary>
 /// Initialize components. Called by framework after form created.
 /// </summary>
 public override void OnInitializeComponent()
 {
     this.StaticText0           = ((SAPbouiCOM.StaticText)(this.GetItem("Item_0").Specific));
     this.StaticText1           = ((SAPbouiCOM.StaticText)(this.GetItem("Item_1").Specific));
     this.EditText0             = ((SAPbouiCOM.EditText)(this.GetItem("txt_frd").Specific));
     this.EditText1             = ((SAPbouiCOM.EditText)(this.GetItem("txt_tod").Specific));
     this.Button0               = ((SAPbouiCOM.Button)(this.GetItem("Item_4").Specific));
     this.Button0.PressedAfter += new SAPbouiCOM._IButtonEvents_PressedAfterEventHandler(this.Button0_PressedAfter);
     this.OnCustomInitialize();
 }
Example #18
0
        private void SetItems()
        {
            pObjBtnSelect = ((SAPbouiCOM.Button)lObjCFLModalForm.Items.Item("btnSelect").Specific);
            lObjBtnCancel = ((SAPbouiCOM.Button)lObjCFLModalForm.Items.Item("btnCancel").Specific);
            pObjMtxCFL    = ((SAPbouiCOM.Matrix)lObjCFLModalForm.Items.Item("mtxItems").Specific);
            lObjBtnSearch = ((SAPbouiCOM.Button)lObjCFLModalForm.Items.Item("btnSrch").Specific);
            lObjTxtSearch = ((SAPbouiCOM.EditText)lObjCFLModalForm.Items.Item("txtSrch").Specific);

            lObjCFLModalForm.DataSources.DataTables.Add("DsItems");
        }
Example #19
0
 /// <summary>
 /// Initialize components. Called by framework after form created.
 /// </summary>
 public override void OnInitializeComponent()
 {
     this.Button0 = ((SAPbouiCOM.Button)(this.GetItem("Item_0").Specific));
     this.Button0.PressedAfter += new SAPbouiCOM._IButtonEvents_PressedAfterEventHandler(this.Button0_PressedAfter);
     this.Button1 = ((SAPbouiCOM.Button)(this.GetItem("Item_1").Specific));
     this.Button1.PressedAfter += new SAPbouiCOM._IButtonEvents_PressedAfterEventHandler(this.Button1_PressedAfter);
     this.Grid0 = ((SAPbouiCOM.Grid)(this.GetItem("Item_Grid0").Specific));
     this.Grid0.PressedAfter += new SAPbouiCOM._IGridEvents_PressedAfterEventHandler(this.Grid0_PressedAfter);
     this.OnCustomInitialize();
 }
 public static void BtnCoRuc(SAPbouiCOM.Form oForm)
 {
     oItem           = oForm.Items.Add("btnCRu", SAPbouiCOM.BoFormItemTypes.it_BUTTON);
     oItem.Top       = 55;
     oItem.Height    = 20;
     oItem.Width     = 80;
     oItem.Left      = 300;
     oButton         = ((SAPbouiCOM.Button)(oItem.Specific));
     oButton.Caption = "Consulta RUC";
 }
 public static void BtnAddSN(SAPbouiCOM.Form oForm)
 {
     oItem           = oForm.Items.Add("btnAddSN", SAPbouiCOM.BoFormItemTypes.it_BUTTON);
     oItem.Top       = 78;
     oItem.Height    = 20;
     oItem.Width     = 100;
     oItem.Left      = 300;
     oButton         = ((SAPbouiCOM.Button)(oItem.Specific));
     oButton.Caption = "Crear Modo Rapido";
 }
Example #22
0
 private void setButtonCaption(SAPbouiCOM.Form form, string id, string cap)
 {
     try
     {
         SAPbouiCOM.Button oButton = form.Items.Item(id).Specific;
         oButton.Caption = cap;
     }
     catch (Exception)
     {
     }
 }
Example #23
0
    private void CreateFormBottem()
    {
        SAPbouiCOM.Item   oItem   = default(SAPbouiCOM.Item);
        SAPbouiCOM.Button oButton = default(SAPbouiCOM.Button);


        oItem = oForm.Items.Add("2", SAPbouiCOM.BoFormItemTypes.it_BUTTON);
        oSAP.setLocation_Left(oForm, ref oItem, 0);
        oButton         = (SAPbouiCOM.Button)oItem.Specific;
        oButton.Caption = "關閉";
    }
 /// <summary>
 /// Initialize components. Called by framework after form created.
 /// </summary>
 public override void OnInitializeComponent()
 {
     this.Button0 = ((SAPbouiCOM.Button)(this.GetItem("1").Specific));
     //                      this.Button0.ClickAfter += new SAPbouiCOM._IButtonEvents_ClickAfterEventHandler(this.Button0_ClickAfter);
     this.Button0.ClickBefore += new SAPbouiCOM._IButtonEvents_ClickBeforeEventHandler(this.Button0_ClickBefore);
     this.Button1              = ((SAPbouiCOM.Button)(this.GetItem("2").Specific));
     this.Grid2 = ((SAPbouiCOM.Grid)(this.GetItem("grilaedi").Specific));
     this.Grid2.ComboSelectAfter += new SAPbouiCOM._IGridEvents_ComboSelectAfterEventHandler(this.Grid2_ComboSelectAfter);
     this.Grid2.ClickAfter       += new SAPbouiCOM._IGridEvents_ClickAfterEventHandler(this.Grid2_ClickAfter);
     this.OnCustomInitialize();
 }
        public frmPeriodoContabilAtual()
        {
            AppHelper.SetApplication(ref this.oApplication);

            this.oForm                  = UIHelper.CriarForm(this.oApplication, SAPbouiCOM.BoFormBorderStyle.fbs_Sizable, "InfoPer", "Infoper", 0, 0, true, 0, "Periodo Contabil Atual", 70, 150, 0, 0);
            this.oEditInformacoes       = UIHelper.AddEditTextAoFormulario(this.oForm, "EditInfo", 10, 100, 10, 0, "", false, 0, 0);
            this.oButtonOK              = UIHelper.AddBotaoAoFormulario(this.oForm, "1", 10, 65, 25, 19, "Ok", false);
            this.oEditInformacoes.Value = oApplication.Company.CurrentPeriod.ToString();

            this.oForm.Visible = true;
        }
        public void CreateModalForm()
        {
            this.oForm = UIHelper.CriarForm(this.oApplication, SAPbouiCOM.BoFormBorderStyle.fbs_Fixed, "Modal1", "Modal1", 170, 150, true, 0, "Formulário Modal");



            this.oButtonOK            = UIHelper.AddBotaoAoFormulario(this.oForm, "1", 10, 0, 100, 0, "Ok", false);
            this.oStaticTextMeuStatic = UIHelper.AddStaticTextAoFormulario(this.oForm, "st01", 0, 160, 0, 0, "Eu sou um Fomrulário Modal!!");

            this.oForm.Visible = true;
            this.bModal        = true;
        }
Example #27
0
 /// <summary>
 /// Initialize components. Called by framework after form created.
 /// </summary>
 public override void OnInitializeComponent()
 {
     this.mObjTxtDate   = ((SAPbouiCOM.EditText)(this.GetItem("txtDate").Specific));
     this.mObjLblDate   = ((SAPbouiCOM.StaticText)(this.GetItem("lblDate").Specific));
     this.mObjLblAuct   = ((SAPbouiCOM.StaticText)(this.GetItem("lblAuct").Specific));
     this.mObjBtnSearch = ((SAPbouiCOM.Button)(this.GetItem("btnSearch").Specific));
     this.mObjSMatrix   = ((SAPbouiCOM.Matrix)(this.GetItem("mtxSeller").Specific));
     this.mObjBtnSave   = ((SAPbouiCOM.Button)(this.GetItem("btnSave").Specific));
     this.mObjBtnPayR   = ((SAPbouiCOM.Button)(this.GetItem("btnPaymR").Specific));
     this.mObjCbAuct    = ((SAPbouiCOM.ComboBox)(this.GetItem("cbAuctN").Specific));
     this.OnCustomInitialize();
 }
Example #28
0
        private void desenharBotao()
        {
            oNewItem         = oForm.Items.Add("Ata_Ativ", SAPbouiCOM.BoFormItemTypes.it_BUTTON);
            oNewItem.Top     = oForm.Height - 30;
            oNewItem.Width   = 100;
            oNewItem.Left    = oForm.Width - 125;
            oNewItem.Height  = 20;
            oNewItem.Visible = true;
            oButton          = ((SAPbouiCOM.Button)(oNewItem.Specific));
            oButton.Caption  = "Ata de reunião";

            desabilitaBotaoAta();
        }
Example #29
0
 /// <summary>
 /// Initialize components. Called by framework after form created.
 /// </summary>
 public override void OnInitializeComponent()
 {
     this.btnOk                        = ((SAPbouiCOM.Button)(this.GetItem("1").Specific));
     this.btnAddRow                    = ((SAPbouiCOM.Button)(this.GetItem("AddRow").Specific));
     this.btnAddRow.ClickAfter        += btnAddRow_ClickAfter;
     this.btnOk.ClickBefore           += new SAPbouiCOM._IButtonEvents_ClickBeforeEventHandler(this.btnOk_ClickBefore);
     this.btnCancel                    = ((SAPbouiCOM.Button)(this.GetItem("2").Specific));
     this.mtxCost                      = ((SAPbouiCOM.Matrix)(this.GetItem("mtxCosts").Specific));
     this.mtxCost.ChooseFromListAfter += new SAPbouiCOM._IMatrixEvents_ChooseFromListAfterEventHandler(this.mtxCost_ChooseFromListAfter);
     this.mtxCost.ClickAfter          += new SAPbouiCOM._IMatrixEvents_ClickAfterEventHandler(this.mtxCost_ClickAfter);
     this.mtxCost.ClickBefore         += new SAPbouiCOM._IMatrixEvents_ClickBeforeEventHandler(this.mtxCost_ClickBefore);
     this.OnCustomInitialize();
 }
Example #30
0
 /// <summary>
 /// Initialize components. Called by framework after form created.
 /// </summary>
 public override void OnInitializeComponent()
 {
     this.EditText0 = ((SAPbouiCOM.EditText)(this.GetItem("14").Specific));
     this.EditText0.ValidateAfter += new SAPbouiCOM._IEditTextEvents_ValidateAfterEventHandler(this.EditText0_ValidateAfter);
     this.EditText1 = ((SAPbouiCOM.EditText)(this.GetItem("46").Specific));
     this.EditText1.ValidateAfter += new SAPbouiCOM._IEditTextEvents_ValidateAfterEventHandler(this.EditText1_ValidateAfter);
     this.Button0 = ((SAPbouiCOM.Button)(this.GetItem("Item_1").Specific));
     this.Button0.PressedAfter += new SAPbouiCOM._IButtonEvents_PressedAfterEventHandler(this.Button0_PressedAfter);
     this.EditText2 = ((SAPbouiCOM.EditText)(this.GetItem("Item_0").Specific));
     this.EditText2.PressedAfter += new SAPbouiCOM._IEditTextEvents_PressedAfterEventHandler(this.EditText2_PressedAfter);
     this.EditText2.ValidateBefore += new SAPbouiCOM._IEditTextEvents_ValidateBeforeEventHandler(this.EditText2_ValidateBefore);
     this.OnCustomInitialize();
 }
Example #31
0
 private void SetItems()
 {
     lObjTxtOrign    = ((SAPbouiCOM.EditText)lObjModalForm.Items.Item("txtOrign").Specific);
     lObjTxtMOrign   = ((SAPbouiCOM.EditText)lObjModalForm.Items.Item("txtMOrign").Specific);
     lObjTxtDestiny  = ((SAPbouiCOM.EditText)lObjModalForm.Items.Item("txtDest").Specific);
     lObjTxtMDestiny = ((SAPbouiCOM.EditText)lObjModalForm.Items.Item("txtMDest").Specific);
     pObjMtxRoutes   = ((SAPbouiCOM.Matrix)lObjModalForm.Items.Item("mtxRoutes").Specific);
     lObjBtnSearch   = ((SAPbouiCOM.Button)lObjModalForm.Items.Item("btnSearch").Specific);
     pObjBtnSelect   = ((SAPbouiCOM.Button)lObjModalForm.Items.Item("btnSelect").Specific);
     lObjBtnCancel   = ((SAPbouiCOM.Button)lObjModalForm.Items.Item("btnCancel").Specific);
     lObjBtnNew      = ((SAPbouiCOM.Button)lObjModalForm.Items.Item("btnNew").Specific);
     lObjModalForm.DataSources.DataTables.Add("DsRoutes");
 }
Example #32
0
        /// <summary>
        /// Initialize components. Called by framework after form created.
        /// </summary>
        public override void OnInitializeComponent()
        {
            this.btnOk = ((SAPbouiCOM.Button)(this.GetItem("1").Specific));
            this.btnAddRow = ((SAPbouiCOM.Button)(this.GetItem("AddRow").Specific));
            this.btnAddRow.ClickAfter += btnAddRow_ClickAfter;
            this.btnOk.ClickBefore += new SAPbouiCOM._IButtonEvents_ClickBeforeEventHandler(this.btnOk_ClickBefore);
            this.btnCancel = ((SAPbouiCOM.Button)(this.GetItem("2").Specific));
            this.mtxCost = ((SAPbouiCOM.Matrix)(this.GetItem("mtxCosts").Specific));
            this.mtxCost.ChooseFromListAfter += new SAPbouiCOM._IMatrixEvents_ChooseFromListAfterEventHandler(this.mtxCost_ChooseFromListAfter);
            this.mtxCost.ClickAfter += new SAPbouiCOM._IMatrixEvents_ClickAfterEventHandler(this.mtxCost_ClickAfter);
            this.mtxCost.ClickBefore += new SAPbouiCOM._IMatrixEvents_ClickBeforeEventHandler(this.mtxCost_ClickBefore);
            this.OnCustomInitialize();

        }
        /// <summary>
        /// Initialize components. Called by framework after form created.
        /// </summary>
        public override void OnInitializeComponent()
        {
            this.btnSave = ((SAPbouiCOM.Button)(this.GetItem("1").Specific));
            this.btnSave.ClickBefore += new SAPbouiCOM._IButtonEvents_ClickBeforeEventHandler(this.btnSave_ClickBefore);
            this.btnCancel = ((SAPbouiCOM.Button)(this.GetItem("2").Specific));
            this.lblCode = ((SAPbouiCOM.StaticText)(this.GetItem("lblCode").Specific));
            this.lblName = ((SAPbouiCOM.StaticText)(this.GetItem("lblName").Specific));
            this.txtCode = ((SAPbouiCOM.EditText)(this.GetItem("txtCode").Specific));
            this.txtName = ((SAPbouiCOM.EditText)(this.GetItem("txtName").Specific));
            this.lblType = ((SAPbouiCOM.StaticText)(this.GetItem("lblType").Specific));
            this.cbTypes = ((SAPbouiCOM.ComboBox)(this.GetItem("cbTypes").Specific));
            this.lblDoc = ((SAPbouiCOM.StaticText)(this.GetItem("lblDoc").Specific));
            this.txtDocEntry = ((SAPbouiCOM.EditText)(this.GetItem("txtDoc").Specific));
            this.OnCustomInitialize();

        }
        /// <summary>
        /// Initialize components. Called by framework after form created.
        /// </summary>
        public override void OnInitializeComponent()
        {
            this.mtxItems = ((SAPbouiCOM.Matrix)(this.GetItem("mtxItems").Specific));
            this.txtDocNo = ((SAPbouiCOM.EditText)(this.GetItem("txtDocNo").Specific));
            this.dtTransferItemLines = this.UIAPIRawForm.DataSources.DBDataSources.Item(string.Format("@{0}", TableNames.TransferItemsLines));
            this.dpDocDate = ((SAPbouiCOM.EditText)(this.GetItem("dpDocDate").Specific));
            this.mtxItems.ChooseFromListBefore += new SAPbouiCOM._IMatrixEvents_ChooseFromListBeforeEventHandler(this.mtxItems_ChooseFromListBefore);
            this.mtxItems.ChooseFromListAfter += new SAPbouiCOM._IMatrixEvents_ChooseFromListAfterEventHandler(this.mtxItems_ChooseFromListAfter);
            this.mtxItems.ClickBefore += new SAPbouiCOM._IMatrixEvents_ClickBeforeEventHandler(this.mtxItems_ClickBefore);
            this.btnSave = ((SAPbouiCOM.Button)(this.GetItem("1").Specific));
            this.btnSave.ClickBefore += new SAPbouiCOM._IButtonEvents_ClickBeforeEventHandler(this.btnSave_ClickBefore);
            this.btnSave.PressedBefore += new SAPbouiCOM._IButtonEvents_PressedBeforeEventHandler(this.btnSave_PressedBefore);
            this.btnCancel = ((SAPbouiCOM.Button)(this.GetItem("2").Specific));
            this.fldrItems = ((SAPbouiCOM.Folder)(this.GetItem("Item_5").Specific));
            this.fldrCosts = ((SAPbouiCOM.Folder)(this.GetItem("Item_6").Specific));
            this.mtxCost = ((SAPbouiCOM.Matrix)(this.GetItem("Item_7").Specific));
            this.mtxCost.ChooseFromListAfter += new SAPbouiCOM._IMatrixEvents_ChooseFromListAfterEventHandler(this.mtxCost_ChooseFromListAfter);
            this.mtxCost.ClickBefore += new SAPbouiCOM._IMatrixEvents_ClickBeforeEventHandler(this.mtxCost_ClickBefore);
            //this.btnCalculate = ((SAPbouiCOM.Button)(this.GetItem("btnClc").Specific));
            //this.btnCalculate.ClickAfter += new SAPbouiCOM._IButtonEvents_ClickAfterEventHandler(this.btnCalculate_ClickAfter);
            //this.btnCalculate.ClickBefore += new SAPbouiCOM._IButtonEvents_ClickBeforeEventHandler(this.btnCalculate_ClickBefore);
            this.btnAddRow = ((SAPbouiCOM.Button)(this.GetItem("btnAddRow").Specific));
            this.btnAddRow.ClickBefore += btnAddRow_ClickBefore;
            this.btnAddRow.ClickAfter += btnAddRow_ClickAfter;
            this.mtxItems.ValidateBefore += mtxItems_ValidateBefore;
            this.OnCustomInitialize();

        }
Example #35
0
 /// <summary>
 /// Initialize components. Called by framework after form created.
 /// </summary>
 public override void OnInitializeComponent()
 {
     this.Button0 = ((SAPbouiCOM.Button)(this.GetItem("Item_0").Specific));
     this.OnCustomInitialize();
 }
        /// <summary>
        /// Initialize components. Called by framework after form created.
        /// </summary>
        public override void OnInitializeComponent()
        {
            this.dtBatches = this.UIAPIRawForm.DataSources.DataTables.Item("dtBatches");
            this.dtSelected = this.UIAPIRawForm.DataSources.DataTables.Item("dtSelected");
            this.dtDocuments = this.UIAPIRawForm.DataSources.DataTables.Item("dtDocumnts");
            this.dtRecDocuments = this.UIAPIRawForm.DataSources.DataTables.Item("dtRecDocs");
            this.dtRecBatches = this.UIAPIRawForm.DataSources.DataTables.Item("dtRBatches");
            this.gvBatches = ((SAPbouiCOM.Grid)(this.GetItem("Batches").Specific));
            this.btnRemove = ((SAPbouiCOM.Button)(this.GetItem("Remove").Specific));
            this.btnSelect = ((SAPbouiCOM.Button)(this.GetItem("Select").Specific));
            this.btnSave = ((SAPbouiCOM.Button)(this.GetItem("btnSave").Specific));
            this.btnSave.PressedBefore += new SAPbouiCOM._IButtonEvents_PressedBeforeEventHandler(this.btnSave_PressedBefore);
            this.btnSave.ClickBefore += new SAPbouiCOM._IButtonEvents_ClickBeforeEventHandler(this.btnSave_ClickBefore);
            this.gvSelectedBatches = ((SAPbouiCOM.Grid)(this.GetItem("SlctdBtchs").Specific));
            this.gvDocuments = ((SAPbouiCOM.Grid)(this.GetItem("Documents").Specific));
            this.fldrIssueItems = ((SAPbouiCOM.Folder)(this.GetItem("IssBatches").Specific));
            this.fldrRecItems = ((SAPbouiCOM.Folder)(this.GetItem("recBatches").Specific));
            this.gvRecDocuments = ((SAPbouiCOM.Grid)(this.GetItem("RecDocs").Specific));
            this.gvRecDocuments.ClickAfter += new SAPbouiCOM._IGridEvents_ClickAfterEventHandler(this.gvRecDocuments_ClickAfter);
            this.gvRecBatches = ((SAPbouiCOM.Grid)(this.GetItem("RecBatches").Specific));
            this.gvRecBatches.ValidateAfter += new SAPbouiCOM._IGridEvents_ValidateAfterEventHandler(this.gvRecBatches_ValidateAfter);
            this.gvRecBatches.ValidateBefore += new SAPbouiCOM._IGridEvents_ValidateBeforeEventHandler(this.gvRecBatches_ValidateBefore);
            this.gvRecBatches.KeyDownAfter += new SAPbouiCOM._IGridEvents_KeyDownAfterEventHandler(this.gvRecBatches_KeyDownAfter);
            this.gvDocuments.ClickBefore += new SAPbouiCOM._IGridEvents_ClickBeforeEventHandler(this.gvDocuments_ClickBefore);
            this.gvDocuments.ValidateBefore += new SAPbouiCOM._IGridEvents_ValidateBeforeEventHandler(this.gvDocuments_ValidateBefore);
            this.gvDocuments.ClickAfter += new SAPbouiCOM._IGridEvents_ClickAfterEventHandler(this.gvDocuments_ClickAfter);
            this.btnSave.ClickAfter += new SAPbouiCOM._IButtonEvents_ClickAfterEventHandler(this.btnSave_ClickAfter);
            this.btnSelect.ClickAfter += new SAPbouiCOM._IButtonEvents_ClickAfterEventHandler(this.btnSelect_ClickAfter);
            this.btnSelect.ClickBefore += new SAPbouiCOM._IButtonEvents_ClickBeforeEventHandler(this.btnSelect_ClickBefore);
            this.gvBatches.ClickAfter += new SAPbouiCOM._IGridEvents_ClickAfterEventHandler(this.gvBatches_ClickAfter);
            this.btnRemove.ClickAfter += new SAPbouiCOM._IButtonEvents_ClickAfterEventHandler(this.btnRemove_ClickAfter);
            this.btnRemove.ClickBefore += new SAPbouiCOM._IButtonEvents_ClickBeforeEventHandler(this.btnRemove_ClickBefore);
            this.StaticText0 = ((SAPbouiCOM.StaticText)(this.GetItem("Item_8").Specific));
            this.StaticText1 = ((SAPbouiCOM.StaticText)(this.GetItem("Item_9").Specific));
            this.StaticText2 = ((SAPbouiCOM.StaticText)(this.GetItem("Item_10").Specific));
            this.OnCustomInitialize();

        }