Ejemplo n.º 1
0
        public TransferItems()
        {
            mtxItems.AutoResizeColumns();
            mtxCost.AutoResizeColumns();
            fldrItems.Select();
            //BatchesManaged = true;
            IsMandatoryBatches = false;
            Action action = new Action(delegate()
            {
                this.UIAPIRawForm.EnableMenu("1283", false);
                this.UIAPIRawForm.EnableMenu("1284", false);
                this.UIAPIRawForm.EnableMenu("1286", false);
                this.UIAPIRawForm.EnableMenu("1288", true);
                this.UIAPIRawForm.EnableMenu("1289", true);
                this.UIAPIRawForm.EnableMenu("1290", true);
                this.UIAPIRawForm.EnableMenu("1291", true);
            });

            Task.Run(action);
            txtDocNo.Item.SetAutoManagedAttribute(SAPbouiCOM.BoAutoManagedAttr.ama_Editable, Convert.ToInt32(SAPbouiCOM.BoAutoFormMode.afm_Find), SAPbouiCOM.BoModeVisualBehavior.mvb_True);
            mtxItems.Item.SetAutoManagedAttribute(SAPbouiCOM.BoAutoManagedAttr.ama_Editable, Convert.ToInt32(SAPbouiCOM.BoAutoFormMode.afm_Ok), SAPbouiCOM.BoModeVisualBehavior.mvb_False);
            mtxCost.Item.SetAutoManagedAttribute(SAPbouiCOM.BoAutoManagedAttr.ama_Editable, Convert.ToInt32(SAPbouiCOM.BoAutoFormMode.afm_Ok), SAPbouiCOM.BoModeVisualBehavior.mvb_False);
            //btnCalculate.Item.SetAutoManagedAttribute(SAPbouiCOM.BoAutoManagedAttr.ama_Visible, Convert.ToInt32(SAPbouiCOM.BoAutoFormMode.afm_Ok), SAPbouiCOM.BoModeVisualBehavior.mvb_False);
            //btnCalculate.Item.SetAutoManagedAttribute(SAPbouiCOM.BoAutoManagedAttr.ama_Visible, Convert.ToInt32(SAPbouiCOM.BoAutoFormMode.afm_Find), SAPbouiCOM.BoModeVisualBehavior.mvb_False);
            btnAddRow.Item.SetAutoManagedAttribute(SAPbouiCOM.BoAutoManagedAttr.ama_Visible, Convert.ToInt32(SAPbouiCOM.BoAutoFormMode.afm_Ok), SAPbouiCOM.BoModeVisualBehavior.mvb_False);
            btnAddRow.Item.SetAutoManagedAttribute(SAPbouiCOM.BoAutoManagedAttr.ama_Visible, Convert.ToInt32(SAPbouiCOM.BoAutoFormMode.afm_Find), SAPbouiCOM.BoModeVisualBehavior.mvb_False);
        }
Ejemplo n.º 2
0
 public BatchNumberSelection()
 {
     fldrIssueItems.Select();
 }
Ejemplo n.º 3
0
        private void desenharConteudo()
        {
            for (int i = 1; i <= 9; i++)
            {
                oNewItem          = oForm.Items.Add("Folder" + i, SAPbouiCOM.BoFormItemTypes.it_FOLDER);
                oNewItem.Top      = oForm.Items.Item("55").Top + 10;
                oNewItem.Height   = 20;
                oNewItem.Width    = 100;
                oNewItem.Left     = 15 + ((i - 1) * 100);
                oNewItem.FromPane = 9;
                oNewItem.ToPane   = 17;
                oNewItem.Visible  = true;
                oFolderItem       = ((SAPbouiCOM.Folder)(oNewItem.Specific));
                if (i == 1)
                {
                    oFolderItem.Caption = "Entrevista";
                }
                if (i == 2)
                {
                    oFolderItem.Caption = "Medição";
                }
                if (i == 3)
                {
                    oFolderItem.Caption = "Elaboração/Verificação";
                }
                if (i == 4)
                {
                    oFolderItem.Caption = "Apresentação/Aprovação";
                }
                if (i == 5)
                {
                    oFolderItem.Caption = "Pedido";
                }
                if (i == 6)
                {
                    oFolderItem.Caption = "Detalhamento";
                }
                if (i == 7)
                {
                    oFolderItem.Caption = "Fábrica";
                }
                if (i == 8)
                {
                    oFolderItem.Caption = "Montagem";
                }
                if (i == 9)
                {
                    oFolderItem.Caption = "Entrega";
                }
                oFolderItem.DataBind.SetBound(true, "", "FolderDS");
                if (i == 1)
                {
                    oFolderItem.Select();
                    oFolderInicial = oFolderItem;
                }
                else
                {
                    oFolderItem.GroupWith("Folder" + (i - 1));
                }
            }

            Entrevista   entrevista   = new Entrevista(oForm);
            Medicao      medicao      = new Medicao(oForm);
            Elaboracao   elaboracao   = new Elaboracao(oForm);
            Verificacao  verificacao  = new Verificacao(oForm);
            Apresentacao apresentacao = new Apresentacao(oForm);
            Pedido       pedido       = new Pedido(oForm);
            Detalhamento detalhamento = new Detalhamento(oForm);
            Fabrica      fabrica      = new Fabrica(oForm);
            Montagem     montagem     = new Montagem(oForm);
            Entrega      entrega      = new Entrega(oForm);
        }
Ejemplo n.º 4
0
        private void Form_VisibleAfter(SAPbouiCOM.SBOItemEventArg pVal)
        {
            if (this.UIAPIRawForm.Visible)
            {
                this.UIAPIRawForm.Freeze(true);
                Folder0.Select();

                if ((dataForMatrixes[0].Length == 0) && (dataForMatrixes[1].Length == 0))
                {
                    Button0.Caption = "Добавить";
                }
                else
                {
                    Button0.Caption = "Ок";
                    for (var i = 0; i < dataForMatrixes[0].Length; i++)
                    {
                        Matrix0.AddRow();
                        (Matrix0.Columns.Item("code").Cells.Item(i + 1).Specific as SAPbouiCOM.EditText).Value  = dataForMatrixes[0][i].code1;
                        (Matrix0.Columns.Item("title").Cells.Item(i + 1).Specific as SAPbouiCOM.EditText).Value = dataForMatrixes[0][i].title;

                        (Matrix0.Columns.Item("photo").Cells.Item(i + 1).Specific as SAPbouiCOM.EditText).Value   = dataForMatrixes[0][i].photo;
                        (Matrix0.Columns.Item("serialN").Cells.Item(i + 1).Specific as SAPbouiCOM.EditText).Value = dataForMatrixes[0][i].serialNumber;
                        (Matrix0.Columns.Item("articul").Cells.Item(i + 1).Specific as SAPbouiCOM.EditText).Value = dataForMatrixes[0][i].articul;
                        (Matrix0.Columns.Item("EAN").Cells.Item(i + 1).Specific as SAPbouiCOM.EditText).Value     = dataForMatrixes[0][i].EAN;

                        (Matrix0.Columns.Item("instDate").Cells.Item(i + 1).Specific as SAPbouiCOM.EditText).Value = dataForMatrixes[0][i].instDate;
                        (Matrix0.Columns.Item("srokExpl").Cells.Item(i + 1).Specific as SAPbouiCOM.EditText).Value = dataForMatrixes[0][i].srokExpl;
                        (Matrix0.Columns.Item("snDate").Cells.Item(i + 1).Specific as SAPbouiCOM.EditText).Value   = dataForMatrixes[0][i].snDate;
                        (Matrix0.Columns.Item("comment").Cells.Item(i + 1).Specific as SAPbouiCOM.EditText).Value  = dataForMatrixes[0][i].comment;

                        (Matrix0.Columns.Item("warning").Cells.Item(i + 1).Specific as SAPbouiCOM.EditText).Value = dataForMatrixes[0][i].warning;
                        (Matrix0.Columns.Item("charact").Cells.Item(i + 1).Specific as SAPbouiCOM.EditText).Value = dataForMatrixes[0][i].charact;
                        (Matrix0.Columns.Item("modif").Cells.Item(i + 1).Specific as SAPbouiCOM.EditText).Value   = dataForMatrixes[0][i].modif;
                    }

                    for (var i = 0; i < dataForMatrixes[1].Length; i++)
                    {
                        Matrix1.AddRow();
                        (Matrix1.Columns.Item("code").Cells.Item(i + 1).Specific as SAPbouiCOM.EditText).Value  = dataForMatrixes[0][i].code1;
                        (Matrix1.Columns.Item("title").Cells.Item(i + 1).Specific as SAPbouiCOM.EditText).Value = dataForMatrixes[0][i].title;

                        (Matrix1.Columns.Item("batch").Cells.Item(i + 1).Specific as SAPbouiCOM.EditText).Value   = dataForMatrixes[0][i].batchNumber;
                        (Matrix1.Columns.Item("articul").Cells.Item(i + 1).Specific as SAPbouiCOM.EditText).Value = dataForMatrixes[0][i].articul;
                        (Matrix1.Columns.Item("EAN").Cells.Item(i + 1).Specific as SAPbouiCOM.EditText).Value     = dataForMatrixes[0][i].EAN;

                        (Matrix1.Columns.Item("create").Cells.Item(i + 1).Specific as SAPbouiCOM.EditText).Value   = dataForMatrixes[0][i].createDate;
                        (Matrix1.Columns.Item("srokExpl").Cells.Item(i + 1).Specific as SAPbouiCOM.EditText).Value = dataForMatrixes[0][i].srokExpl;
                        (Matrix1.Columns.Item("ship").Cells.Item(i + 1).Specific as SAPbouiCOM.EditText).Value     = dataForMatrixes[0][i].shipingDate;

                        (Matrix1.Columns.Item("comment").Cells.Item(i + 1).Specific as SAPbouiCOM.EditText).Value = dataForMatrixes[0][i].comment;
                        (Matrix1.Columns.Item("warning").Cells.Item(i + 1).Specific as SAPbouiCOM.EditText).Value = dataForMatrixes[0][i].warning;
                    }
                }

                Matrix0.AddRow();
                Matrix1.AddRow();

                if ((Matrix0.Columns.Item("photo").Cells.Item(1).Specific as SAPbouiCOM.EditText).Value == "" || (Matrix0.Columns.Item("photo").Cells.Item(1).Specific as SAPbouiCOM.EditText).Value == null)
                {
                    Button4.Item.Visible = false;
                }
                else
                {
                    Button4.Item.Visible = true;
                }
                this.UIAPIRawForm.Freeze(false);
            }
            //Form1.allFields data = new allFields();
            //AdoNetQueries.updateData(data, 1);
        }