/// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
         System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmCadUniMed));
         this.TbCntCadUniMed = new System.Windows.Forms.TabControl();
         this.TbPgCadUniMed = new System.Windows.Forms.TabPage();
         this.label1 = new System.Windows.Forms.Label();
         this.CkBoxInteiro = new System.Windows.Forms.CheckBox();
         this.TxtDesc = new System.Windows.Forms.TextBox();
         this.TxtNomRed = new System.Windows.Forms.TextBox();
         this.LblDescricao = new System.Windows.Forms.Label();
         this.LblNomRed = new System.Windows.Forms.Label();
         this.consultaunidadeToolStrip = new System.Windows.Forms.ToolStrip();
         this.cODUNIDADEMEDIDAToolStripLabel = new System.Windows.Forms.ToolStripLabel();
         this.cODUNIDADEMEDIDAToolStripTextBox = new System.Windows.Forms.ToolStripTextBox();
         this.dESCRICAOToolStripLabel = new System.Windows.Forms.ToolStripLabel();
         this.dESCRICAOToolStripTextBox = new System.Windows.Forms.ToolStripTextBox();
         this.consultaunidadeToolStripButton = new System.Windows.Forms.ToolStripButton();
         this.toolStripButton3 = new System.Windows.Forms.ToolStripButton();
         this.toolStripButton2 = new System.Windows.Forms.ToolStripButton();
         this.cOMERCIALDataSet = new Comercial.COMERCIALDataSet();
         this.uNIDADEMEDIDABindingSource = new System.Windows.Forms.BindingSource(this.components);
         this.uNIDADEMEDIDATableAdapter = new Comercial.COMERCIALDataSetTableAdapters.UNIDADEMEDIDATableAdapter();
         this.tableAdapterManager = new Comercial.COMERCIALDataSetTableAdapters.TableAdapterManager();
         this.TbCntCadUniMed.SuspendLayout();
         this.TbPgCadUniMed.SuspendLayout();
         this.consultaunidadeToolStrip.SuspendLayout();
         ((System.ComponentModel.ISupportInitialize)(this.cOMERCIALDataSet)).BeginInit();
         ((System.ComponentModel.ISupportInitialize)(this.uNIDADEMEDIDABindingSource)).BeginInit();
         this.SuspendLayout();
         //
         // TbCntCadUniMed
         //
         this.TbCntCadUniMed.Controls.Add(this.TbPgCadUniMed);
         this.TbCntCadUniMed.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
         this.TbCntCadUniMed.Location = new System.Drawing.Point(12, 35);
         this.TbCntCadUniMed.Name = "TbCntCadUniMed";
         this.TbCntCadUniMed.SelectedIndex = 0;
         this.TbCntCadUniMed.Size = new System.Drawing.Size(560, 98);
         this.TbCntCadUniMed.TabIndex = 0;
         //
         // TbPgCadUniMed
         //
         this.TbPgCadUniMed.AutoScroll = true;
         this.TbPgCadUniMed.Controls.Add(this.label1);
         this.TbPgCadUniMed.Controls.Add(this.CkBoxInteiro);
         this.TbPgCadUniMed.Controls.Add(this.TxtDesc);
         this.TbPgCadUniMed.Controls.Add(this.TxtNomRed);
         this.TbPgCadUniMed.Controls.Add(this.LblDescricao);
         this.TbPgCadUniMed.Controls.Add(this.LblNomRed);
         this.TbPgCadUniMed.Location = new System.Drawing.Point(4, 22);
         this.TbPgCadUniMed.Name = "TbPgCadUniMed";
         this.TbPgCadUniMed.Padding = new System.Windows.Forms.Padding(3);
         this.TbPgCadUniMed.Size = new System.Drawing.Size(552, 72);
         this.TbPgCadUniMed.TabIndex = 1;
         this.TbPgCadUniMed.Text = "Cadastro Unidade de Medida";
         this.TbPgCadUniMed.UseVisualStyleBackColor = true;
         //
         // label1
         //
         this.label1.AutoSize = true;
         this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
         this.label1.ForeColor = System.Drawing.Color.CadetBlue;
         this.label1.Location = new System.Drawing.Point(380, 1);
         this.label1.Name = "label1";
         this.label1.Size = new System.Drawing.Size(132, 13);
         this.label1.TabIndex = 52;
         this.label1.Text = "Tipo Unidade Medida:";
         //
         // CkBoxInteiro
         //
         this.CkBoxInteiro.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.2F, System.Drawing.FontStyle.Bold);
         this.CkBoxInteiro.ForeColor = System.Drawing.Color.CadetBlue;
         this.CkBoxInteiro.Location = new System.Drawing.Point(396, 15);
         this.CkBoxInteiro.Name = "CkBoxInteiro";
         this.CkBoxInteiro.Size = new System.Drawing.Size(126, 24);
         this.CkBoxInteiro.TabIndex = 51;
         this.CkBoxInteiro.Text = "Inteiro";
         this.CkBoxInteiro.UseVisualStyleBackColor = true;
         //
         // TxtDesc
         //
         this.TxtDesc.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.uNIDADEMEDIDABindingSource, "CODUNIDADEMEDIDA", true));
         this.TxtDesc.Location = new System.Drawing.Point(15, 19);
         this.TxtDesc.MaxLength = 3;
         this.TxtDesc.Name = "TxtDesc";
         this.TxtDesc.Size = new System.Drawing.Size(92, 20);
         this.TxtDesc.TabIndex = 50;
         //
         // TxtNomRed
         //
         this.TxtNomRed.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.uNIDADEMEDIDABindingSource, "DESCRICAO", true));
         this.TxtNomRed.Location = new System.Drawing.Point(128, 19);
         this.TxtNomRed.Name = "TxtNomRed";
         this.TxtNomRed.Size = new System.Drawing.Size(246, 20);
         this.TxtNomRed.TabIndex = 49;
         //
         // LblDescricao
         //
         this.LblDescricao.AutoSize = true;
         this.LblDescricao.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
         this.LblDescricao.ForeColor = System.Drawing.Color.CadetBlue;
         this.LblDescricao.Location = new System.Drawing.Point(12, 3);
         this.LblDescricao.Name = "LblDescricao";
         this.LblDescricao.Size = new System.Drawing.Size(95, 13);
         this.LblDescricao.TabIndex = 48;
         this.LblDescricao.Text = "Nome reduzido:";
         this.LblDescricao.Click += new System.EventHandler(this.LblDescricao_Click);
         //
         // LblNomRed
         //
         this.LblNomRed.AutoSize = true;
         this.LblNomRed.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
         this.LblNomRed.ForeColor = System.Drawing.Color.CadetBlue;
         this.LblNomRed.Location = new System.Drawing.Point(125, 3);
         this.LblNomRed.Name = "LblNomRed";
         this.LblNomRed.Size = new System.Drawing.Size(68, 13);
         this.LblNomRed.TabIndex = 47;
         this.LblNomRed.Text = "Descrição:";
         //
         // consultaunidadeToolStrip
         //
         this.consultaunidadeToolStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.cODUNIDADEMEDIDAToolStripLabel,
     this.cODUNIDADEMEDIDAToolStripTextBox,
     this.dESCRICAOToolStripLabel,
     this.dESCRICAOToolStripTextBox,
     this.consultaunidadeToolStripButton,
     this.toolStripButton3,
     this.toolStripButton2});
         this.consultaunidadeToolStrip.Location = new System.Drawing.Point(0, 0);
         this.consultaunidadeToolStrip.Name = "consultaunidadeToolStrip";
         this.consultaunidadeToolStrip.Size = new System.Drawing.Size(580, 25);
         this.consultaunidadeToolStrip.TabIndex = 1;
         this.consultaunidadeToolStrip.Text = "consultaunidadeToolStrip";
         this.consultaunidadeToolStrip.Visible = false;
         //
         // cODUNIDADEMEDIDAToolStripLabel
         //
         this.cODUNIDADEMEDIDAToolStripLabel.Name = "cODUNIDADEMEDIDAToolStripLabel";
         this.cODUNIDADEMEDIDAToolStripLabel.Size = new System.Drawing.Size(44, 22);
         this.cODUNIDADEMEDIDAToolStripLabel.Text = "Codigo:";
         //
         // cODUNIDADEMEDIDAToolStripTextBox
         //
         this.cODUNIDADEMEDIDAToolStripTextBox.Name = "cODUNIDADEMEDIDAToolStripTextBox";
         this.cODUNIDADEMEDIDAToolStripTextBox.Size = new System.Drawing.Size(100, 25);
         //
         // dESCRICAOToolStripLabel
         //
         this.dESCRICAOToolStripLabel.Name = "dESCRICAOToolStripLabel";
         this.dESCRICAOToolStripLabel.Size = new System.Drawing.Size(57, 22);
         this.dESCRICAOToolStripLabel.Text = "Descrição:";
         //
         // dESCRICAOToolStripTextBox
         //
         this.dESCRICAOToolStripTextBox.Name = "dESCRICAOToolStripTextBox";
         this.dESCRICAOToolStripTextBox.Size = new System.Drawing.Size(100, 25);
         //
         // consultaunidadeToolStripButton
         //
         this.consultaunidadeToolStripButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
         this.consultaunidadeToolStripButton.Image = global::Comercial.Properties.Resources.search1;
         this.consultaunidadeToolStripButton.Name = "consultaunidadeToolStripButton";
         this.consultaunidadeToolStripButton.Size = new System.Drawing.Size(23, 22);
         this.consultaunidadeToolStripButton.Text = "consultaunidade";
         //
         // toolStripButton3
         //
         this.toolStripButton3.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
         this.toolStripButton3.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton3.Image")));
         this.toolStripButton3.ImageTransparentColor = System.Drawing.Color.Magenta;
         this.toolStripButton3.Name = "toolStripButton3";
         this.toolStripButton3.Size = new System.Drawing.Size(23, 22);
         this.toolStripButton3.Text = "Limpar";
         //
         // toolStripButton2
         //
         this.toolStripButton2.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
         this.toolStripButton2.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton2.Image")));
         this.toolStripButton2.ImageTransparentColor = System.Drawing.Color.Magenta;
         this.toolStripButton2.Name = "toolStripButton2";
         this.toolStripButton2.Size = new System.Drawing.Size(23, 22);
         this.toolStripButton2.Text = "Cancelar";
         this.toolStripButton2.ToolTipText = "Cancelar";
         //
         // cOMERCIALDataSet
         //
         this.cOMERCIALDataSet.DataSetName = "COMERCIALDataSet";
         this.cOMERCIALDataSet.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
         //
         // uNIDADEMEDIDABindingSource
         //
         this.uNIDADEMEDIDABindingSource.DataMember = "UNIDADEMEDIDA";
         this.uNIDADEMEDIDABindingSource.DataSource = this.cOMERCIALDataSet;
         this.uNIDADEMEDIDABindingSource.PositionChanged += new System.EventHandler(this.uNIDADEMEDIDABindingSource_PositionChanged);
         //
         // uNIDADEMEDIDATableAdapter
         //
         this.uNIDADEMEDIDATableAdapter.ClearBeforeFill = true;
         //
         // tableAdapterManager
         //
         this.tableAdapterManager.ACESSOTableAdapter = null;
         this.tableAdapterManager.ATUCUBOTableAdapter = null;
         this.tableAdapterManager.BackupDataSetBeforeUpdate = false;
         this.tableAdapterManager.CLIENTETableAdapter = null;
         this.tableAdapterManager.CONDICAOPAGAMENTOTableAdapter = null;
         this.tableAdapterManager.GRUPOPRODUTOTableAdapter = null;
         this.tableAdapterManager.ICMSTableAdapter = null;
         this.tableAdapterManager.ItemNotaFiscalTableAdapter = null;
         this.tableAdapterManager.ITEMPEDIDOTableAdapter = null;
         this.tableAdapterManager.modeloCampoTableAdapter = null;
         this.tableAdapterManager.modeloTableAdapter = null;
         this.tableAdapterManager.MODULOTableAdapter = null;
         this.tableAdapterManager.NOTAFISCALTableAdapter = null;
         this.tableAdapterManager.PEDIDOTableAdapter = null;
         this.tableAdapterManager.PRODUTOTableAdapter = null;
         this.tableAdapterManager.REGIAOTableAdapter = null;
         this.tableAdapterManager.TRANSPORTADORATableAdapter = null;
         this.tableAdapterManager.TRANSPORTADORAVIATableAdapter = null;
         this.tableAdapterManager.UNIDADEMEDIDATableAdapter = this.uNIDADEMEDIDATableAdapter;
         this.tableAdapterManager.UpdateOrder = Comercial.COMERCIALDataSetTableAdapters.TableAdapterManager.UpdateOrderOption.InsertUpdateDelete;
         this.tableAdapterManager.USUARIOTableAdapter = null;
         this.tableAdapterManager.VENDEDORTableAdapter = null;
         this.tableAdapterManager.VIATRANSPORTETableAdapter = null;
         //
         // FrmCadUniMed
         //
         this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
         this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
         this.BackColor = System.Drawing.Color.WhiteSmoke;
         this.ClientSize = new System.Drawing.Size(580, 145);
         this.Controls.Add(this.consultaunidadeToolStrip);
         this.Controls.Add(this.TbCntCadUniMed);
         this.MaximizeBox = false;
         this.MinimizeBox = false;
         this.Name = "FrmCadUniMed";
         this.ShowIcon = false;
         this.Text = "Cadastro de Unidade de Medida";
         this.Load += new System.EventHandler(this.FrmCadUniMed_Load_1);
         this.TbCntCadUniMed.ResumeLayout(false);
         this.TbPgCadUniMed.ResumeLayout(false);
         this.TbPgCadUniMed.PerformLayout();
         this.consultaunidadeToolStrip.ResumeLayout(false);
         this.consultaunidadeToolStrip.PerformLayout();
         ((System.ComponentModel.ISupportInitialize)(this.cOMERCIALDataSet)).EndInit();
         ((System.ComponentModel.ISupportInitialize)(this.uNIDADEMEDIDABindingSource)).EndInit();
         this.ResumeLayout(false);
         this.PerformLayout();
 }
Ejemplo n.º 2
0
        private void BtnSalvar_Click(object sender, EventArgs e)
        {
            int retorno = 0;
            Form frm = this.ActiveMdiChild;
            if (frm == null)
                return;

            try
            {
                // METODOS QUE NECESSITAM DE LOGICA ANTES DE SALVAR
                if (frm is FrmCadVen)
                {
                    FrmCadVen frmVen = (FrmCadVen)frm;
                    retorno = frmVen.salvar(edit);
                }

                #region Form's Claudio
                if (frm is FrmCadCli)
                {
                    FrmCadCli frmCli = (FrmCadCli)frm;
                    retorno = frmCli.salvar(edit);
                }

                #endregion

                #region Transportadora
                if (frm is FrmCadTra)
                {
                    FrmCadTra frmTra = (FrmCadTra)frm;
                    retorno = frmTra.salvarcep();
                }

                #endregion

                #region CondicaoPagamento
                if (frm is FrmCadConPag)
                {
                    FrmCadConPag frmCon = (FrmCadConPag)frm;
                    retorno = frmCon.Salvar();
                }

                if (frm is FrmCadUniMed)
                {
                    FrmCadUniMed frmCon = (FrmCadUniMed)frm;
                    retorno = frmCon.Salvar();
                }
                #endregion

                if (frm is FrmCadProd && edit == false)
                {
                    FrmCadProd frmCadProd = (FrmCadProd)frm;
                    retorno = frmCadProd.salvar();
                }

                if (frm is FrmPermissoesUsu && edit == false)
                {
                    FrmPermissoesUsu frmCadven = (FrmPermissoesUsu)frm;
                    retorno = frmCadven.salvar();
                }

                if (frm is FrmCadPed && edit == false)
                {
                    FrmCadPed frmPed = (FrmCadPed)frm;

                    string DataEmissão = frmPed.dtpEmissao.Value.ToShortDateString();
                    string DataSistema = DateTime.Now.ToShortDateString();
                    string DataEntrega = frmPed.dtpEntrega.Value.ToShortDateString();

                    if (Convert.ToDateTime(DataEntrega) < Convert.ToDateTime(DataEmissão))
                    {
                        throw new Exception("DataInvalida");
                    }


                    if (Convert.ToDateTime(DataEmissão) < Convert.ToDateTime(DataSistema))
                    {
                        throw new Exception("DataSistema");
                    }
                    retorno = frmPed.SalvarPedidoCab();

                }

                if (frm is FrmCadPed && edit == true)
                {
                    FrmCadPed frmPed = (FrmCadPed)frm;


                    retorno = frmPed.AtualizarPedido();

                }

                if (retorno == 0)
                {
                    bindingNavigator1.BindingSource.EndEdit();

                    // 
                    // CADA UM COLOCA O BLOCO DO SEU FORM...
                    if (frm is FrmCadConPag)
                    {
                        COMERCIALDataSetTableAdapters.CONDICAOPAGAMENTOTableAdapter table = new Comercial.COMERCIALDataSetTableAdapters.CONDICAOPAGAMENTOTableAdapter();
                        table.Update(_dataset);
                        FrmCadConPag frmCond = (FrmCadConPag)frm;
                        retorno = frmCond.Salvar();
                    }


                    if (frm is FrmCadGrpProd)
                    {
                        COMERCIALDataSetTableAdapters.GRUPOPRODUTOTableAdapter table = new Comercial.COMERCIALDataSetTableAdapters.GRUPOPRODUTOTableAdapter();
                        table.Update(_dataset);
                    }

                    #region Form's Claudio
                    if (frm is FrmCadCli)
                    {
                        COMERCIALDataSetTableAdapters.CLIENTETableAdapter table = new Comercial.COMERCIALDataSetTableAdapters.CLIENTETableAdapter();
                        table.Update(_dataset);
                        FrmCadCli cli = (FrmCadCli)frm;
                        cli.pictureBox1.Visible = false;
                        cli.pictureBox2.Visible = false;
                    }
                    if (frm is FrmCadRegiao)
                    {
                        COMERCIALDataSetTableAdapters.REGIAOTableAdapter table = new Comercial.COMERCIALDataSetTableAdapters.REGIAOTableAdapter();
                        table.Update(_dataset);

                    }
                    #endregion

                    if (frm is FrmCadUniMed)
                    {
                        COMERCIALDataSetTableAdapters.UNIDADEMEDIDATableAdapter table = new Comercial.COMERCIALDataSetTableAdapters.UNIDADEMEDIDATableAdapter();
                        table.Update(_dataset);
                    }

                    if (frm is FrmCadVen)
                    {

                        COMERCIALDataSetTableAdapters.VENDEDORTableAdapter table = new Comercial.COMERCIALDataSetTableAdapters.VENDEDORTableAdapter();
                        table.Update(_dataset);

                        FrmCadVen ven = (FrmCadVen)frm;
                        ven.pictureBox1.Visible = false;
                        ven.pictureBox2.Visible = false;

                    }

                    if (frm is FrmCadProd)
                    {

                        COMERCIALDataSetTableAdapters.PRODUTOTableAdapter table = new Comercial.COMERCIALDataSetTableAdapters.PRODUTOTableAdapter();
                        table.Update(_dataset);
                    }



                    Util.Interface.ChangeControlStatus(frm, false);
                    bindingNavigator1.Refresh();

                    edit = false;
                    cancelEdicao();


                    if (frm is FrmPermissoesUsu)
                    {

                        COMERCIALDataSetTableAdapters.USUARIOTableAdapter table = new Comercial.COMERCIALDataSetTableAdapters.USUARIOTableAdapter();
                        table.Update(_dataset);
                    }


                    if (frm is FrmCadTra)
                    {
                        FrmCadTra frmTrans = (FrmCadTra)frm;
                        retorno = frmTrans.ValidaCNPJ();
                        if (retorno == 1)
                        {
                            MessageBox.Show("CNPJ Inválido.", "Erro", MessageBoxButtons.OK, MessageBoxIcon.Error);
                            Util.Interface.ChangeControlStatus(frm, true);
                            bindingNavigator1.Refresh();

                            btnPesquisar.Enabled = false;
                            BtnDeletar.Enabled = false;
                            btnNovo.Enabled = false;
                            BtnPrincipal.Enabled = false;
                            btnEditar.Enabled = false;
                            btnSalvar.Enabled = true;
                            btnCancelEdicao.Enabled = true;
                        }
                        else
                        {
                            COMERCIALDataSetTableAdapters.TRANSPORTADORATableAdapter table = new Comercial.COMERCIALDataSetTableAdapters.TRANSPORTADORATableAdapter();
                            table.Update(_dataset);
                            retorno = frmTrans.salvar();

                        }

                    }

                }
            }
            catch (SqlException sqlex)
            {
                Validacoes valida = new Validacoes();
                valida.tratarSqlExceções(sqlex);
            }
            catch (Exception ex)
            {
                Validacoes valida = new Validacoes();
                valida.tratarSystemExceções(ex);
            }

        }
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmCadProd));
     this.tbCntrlCadProd = new System.Windows.Forms.TabControl();
     this.tbPgCadProd = new System.Windows.Forms.TabPage();
     this.dESCRICAOTextBox = new System.Windows.Forms.TextBox();
     this.pRODUTOBindingSource = new System.Windows.Forms.BindingSource(this.components);
     this.cOMERCIALDataSet = new Comercial.COMERCIALDataSet();
     this.groupBox4 = new System.Windows.Forms.GroupBox();
     this.txtGrupo = new System.Windows.Forms.TextBox();
     this.lblGrupo = new System.Windows.Forms.Label();
     this.label28 = new System.Windows.Forms.Label();
     this.txtBtnCodGrp = new Comercial.TextButton();
     this.groupBox3 = new System.Windows.Forms.GroupBox();
     this.label30 = new System.Windows.Forms.Label();
     this.label31 = new System.Windows.Forms.Label();
     this.comboBox3 = new System.Windows.Forms.ComboBox();
     this.uNIDADEMEDIDABindingSource = new System.Windows.Forms.BindingSource(this.components);
     this.txtPesoLiquido = new System.Windows.Forms.TextBox();
     this.groupBox1 = new System.Windows.Forms.GroupBox();
     this.label26 = new System.Windows.Forms.Label();
     this.mskedTxtBxEstMinimo = new System.Windows.Forms.MaskedTextBox();
     this.mskedTxtBxEstAtual = new System.Windows.Forms.MaskedTextBox();
     this.label27 = new System.Windows.Forms.Label();
     this.groupBox2 = new System.Windows.Forms.GroupBox();
     this.lblPrecoCusto = new System.Windows.Forms.Label();
     this.lblPrecoVenda = new System.Windows.Forms.Label();
     this.mskedTxtBxPrecoCusto = new System.Windows.Forms.MaskedTextBox();
     this.mskedTxtBxIpi = new System.Windows.Forms.MaskedTextBox();
     this.mskedTxtBxPrecoUnitario = new System.Windows.Forms.MaskedTextBox();
     this.label1 = new System.Windows.Forms.Label();
     this.dtmPckrCadastro = new System.Windows.Forms.DateTimePicker();
     this.lblDtCadastro = new System.Windows.Forms.Label();
     this.lblDescricao = new System.Windows.Forms.Label();
     this.maskedTextBox2 = new System.Windows.Forms.MaskedTextBox();
     this.label2 = new System.Windows.Forms.Label();
     this.maskedTextBox3 = new System.Windows.Forms.MaskedTextBox();
     this.maskedTextBox4 = new System.Windows.Forms.MaskedTextBox();
     this.comboBox1 = new System.Windows.Forms.ComboBox();
     this.dateTimePicker1 = new System.Windows.Forms.DateTimePicker();
     this.dateTimePicker2 = new System.Windows.Forms.DateTimePicker();
     this.label3 = new System.Windows.Forms.Label();
     this.label4 = new System.Windows.Forms.Label();
     this.textBox1 = new System.Windows.Forms.TextBox();
     this.label5 = new System.Windows.Forms.Label();
     this.label6 = new System.Windows.Forms.Label();
     this.label7 = new System.Windows.Forms.Label();
     this.textBox2 = new System.Windows.Forms.TextBox();
     this.label8 = new System.Windows.Forms.Label();
     this.label9 = new System.Windows.Forms.Label();
     this.label10 = new System.Windows.Forms.Label();
     this.label11 = new System.Windows.Forms.Label();
     this.label12 = new System.Windows.Forms.Label();
     this.textBox3 = new System.Windows.Forms.TextBox();
     this.label13 = new System.Windows.Forms.Label();
     this.textBox4 = new System.Windows.Forms.TextBox();
     this.maskedTextBox5 = new System.Windows.Forms.MaskedTextBox();
     this.label14 = new System.Windows.Forms.Label();
     this.maskedTextBox6 = new System.Windows.Forms.MaskedTextBox();
     this.maskedTextBox7 = new System.Windows.Forms.MaskedTextBox();
     this.comboBox2 = new System.Windows.Forms.ComboBox();
     this.dateTimePicker3 = new System.Windows.Forms.DateTimePicker();
     this.dateTimePicker4 = new System.Windows.Forms.DateTimePicker();
     this.label15 = new System.Windows.Forms.Label();
     this.label16 = new System.Windows.Forms.Label();
     this.textBox5 = new System.Windows.Forms.TextBox();
     this.label17 = new System.Windows.Forms.Label();
     this.label18 = new System.Windows.Forms.Label();
     this.label19 = new System.Windows.Forms.Label();
     this.textBox6 = new System.Windows.Forms.TextBox();
     this.label20 = new System.Windows.Forms.Label();
     this.label21 = new System.Windows.Forms.Label();
     this.label22 = new System.Windows.Forms.Label();
     this.label23 = new System.Windows.Forms.Label();
     this.label24 = new System.Windows.Forms.Label();
     this.textBox7 = new System.Windows.Forms.TextBox();
     this.label25 = new System.Windows.Forms.Label();
     this.textBox8 = new System.Windows.Forms.TextBox();
     this.pRODUTOTableAdapter = new Comercial.COMERCIALDataSetTableAdapters.PRODUTOTableAdapter();
     this.tableAdapterManager = new Comercial.COMERCIALDataSetTableAdapters.TableAdapterManager();
     this.uNIDADEMEDIDATableAdapter = new Comercial.COMERCIALDataSetTableAdapters.UNIDADEMEDIDATableAdapter();
     this.textButton1 = new Comercial.TextButton();
     this.textButton2 = new Comercial.TextButton();
     this.textButton3 = new Comercial.TextButton();
     this.textButton4 = new Comercial.TextButton();
     this.tbCntrlCadProd.SuspendLayout();
     this.tbPgCadProd.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.pRODUTOBindingSource)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.cOMERCIALDataSet)).BeginInit();
     this.groupBox4.SuspendLayout();
     this.groupBox3.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.uNIDADEMEDIDABindingSource)).BeginInit();
     this.groupBox1.SuspendLayout();
     this.groupBox2.SuspendLayout();
     this.SuspendLayout();
     //
     // tbCntrlCadProd
     //
     this.tbCntrlCadProd.Controls.Add(this.tbPgCadProd);
     this.tbCntrlCadProd.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.tbCntrlCadProd.Location = new System.Drawing.Point(12, 12);
     this.tbCntrlCadProd.Name = "tbCntrlCadProd";
     this.tbCntrlCadProd.SelectedIndex = 0;
     this.tbCntrlCadProd.Size = new System.Drawing.Size(658, 330);
     this.tbCntrlCadProd.TabIndex = 0;
     //
     // tbPgCadProd
     //
     this.tbPgCadProd.AutoScroll = true;
     this.tbPgCadProd.Controls.Add(this.dESCRICAOTextBox);
     this.tbPgCadProd.Controls.Add(this.groupBox4);
     this.tbPgCadProd.Controls.Add(this.groupBox3);
     this.tbPgCadProd.Controls.Add(this.groupBox1);
     this.tbPgCadProd.Controls.Add(this.groupBox2);
     this.tbPgCadProd.Controls.Add(this.dtmPckrCadastro);
     this.tbPgCadProd.Controls.Add(this.lblDtCadastro);
     this.tbPgCadProd.Controls.Add(this.lblDescricao);
     this.tbPgCadProd.Location = new System.Drawing.Point(4, 22);
     this.tbPgCadProd.Name = "tbPgCadProd";
     this.tbPgCadProd.Padding = new System.Windows.Forms.Padding(3);
     this.tbPgCadProd.Size = new System.Drawing.Size(650, 304);
     this.tbPgCadProd.TabIndex = 0;
     this.tbPgCadProd.Text = "Cadastro de Produtos";
     this.tbPgCadProd.UseVisualStyleBackColor = true;
     //
     // dESCRICAOTextBox
     //
     this.dESCRICAOTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.pRODUTOBindingSource, "DESCRICAO", true));
     this.dESCRICAOTextBox.Location = new System.Drawing.Point(16, 33);
     this.dESCRICAOTextBox.Name = "dESCRICAOTextBox";
     this.dESCRICAOTextBox.Size = new System.Drawing.Size(487, 20);
     this.dESCRICAOTextBox.TabIndex = 1;
     //
     // pRODUTOBindingSource
     //
     this.pRODUTOBindingSource.DataMember = "PRODUTO";
     this.pRODUTOBindingSource.DataSource = this.cOMERCIALDataSet;
     this.pRODUTOBindingSource.PositionChanged += new System.EventHandler(this.pRODUTOBindingSource_PositionChanged);
     //
     // cOMERCIALDataSet
     //
     this.cOMERCIALDataSet.DataSetName = "COMERCIALDataSet";
     this.cOMERCIALDataSet.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
     //
     // groupBox4
     //
     this.groupBox4.Controls.Add(this.txtGrupo);
     this.groupBox4.Controls.Add(this.lblGrupo);
     this.groupBox4.Controls.Add(this.label28);
     this.groupBox4.Controls.Add(this.txtBtnCodGrp);
     this.groupBox4.ForeColor = System.Drawing.Color.CornflowerBlue;
     this.groupBox4.Location = new System.Drawing.Point(7, 65);
     this.groupBox4.Name = "groupBox4";
     this.groupBox4.Size = new System.Drawing.Size(618, 68);
     this.groupBox4.TabIndex = 2;
     this.groupBox4.TabStop = false;
     this.groupBox4.Text = "Grupo Produto";
     //
     // txtGrupo
     //
     this.txtGrupo.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.txtGrupo.Location = new System.Drawing.Point(146, 32);
     this.txtGrupo.Name = "txtGrupo";
     this.txtGrupo.Size = new System.Drawing.Size(466, 20);
     this.txtGrupo.TabIndex = 112;
     //
     // lblGrupo
     //
     this.lblGrupo.AutoSize = true;
     this.lblGrupo.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.lblGrupo.ForeColor = System.Drawing.Color.CadetBlue;
     this.lblGrupo.Location = new System.Drawing.Point(6, 16);
     this.lblGrupo.Name = "lblGrupo";
     this.lblGrupo.Size = new System.Drawing.Size(50, 13);
     this.lblGrupo.TabIndex = 7;
     this.lblGrupo.Text = "Codigo:";
     //
     // label28
     //
     this.label28.AutoSize = true;
     this.label28.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label28.ForeColor = System.Drawing.Color.CadetBlue;
     this.label28.Location = new System.Drawing.Point(143, 16);
     this.label28.Name = "label28";
     this.label28.Size = new System.Drawing.Size(64, 13);
     this.label28.TabIndex = 111;
     this.label28.Text = "Descricao";
     //
     // txtBtnCodGrp
     //
     this.txtBtnCodGrp.getText = "";
     this.txtBtnCodGrp.Image = ((System.Drawing.Image)(resources.GetObject("txtBtnCodGrp.Image")));
     this.txtBtnCodGrp.Location = new System.Drawing.Point(9, 32);
     this.txtBtnCodGrp.Name = "txtBtnCodGrp";
     this.txtBtnCodGrp.ShowButton = false;
     this.txtBtnCodGrp.Size = new System.Drawing.Size(111, 25);
     this.txtBtnCodGrp.TabIndex = 2;
     this.txtBtnCodGrp.ButtonClick += new System.EventHandler(this.txtCodProd_ButtonClick);
     //
     // groupBox3
     //
     this.groupBox3.Controls.Add(this.label30);
     this.groupBox3.Controls.Add(this.label31);
     this.groupBox3.Controls.Add(this.comboBox3);
     this.groupBox3.Controls.Add(this.txtPesoLiquido);
     this.groupBox3.ForeColor = System.Drawing.Color.CornflowerBlue;
     this.groupBox3.Location = new System.Drawing.Point(339, 217);
     this.groupBox3.Name = "groupBox3";
     this.groupBox3.Size = new System.Drawing.Size(286, 69);
     this.groupBox3.TabIndex = 5;
     this.groupBox3.TabStop = false;
     this.groupBox3.Text = "Medidas";
     //
     // label30
     //
     this.label30.AutoSize = true;
     this.label30.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label30.ForeColor = System.Drawing.Color.CadetBlue;
     this.label30.Location = new System.Drawing.Point(158, 22);
     this.label30.Name = "label30";
     this.label30.Size = new System.Drawing.Size(73, 13);
     this.label30.TabIndex = 17;
     this.label30.Text = "Peso Líquido:";
     //
     // label31
     //
     this.label31.AutoSize = true;
     this.label31.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label31.ForeColor = System.Drawing.Color.CadetBlue;
     this.label31.Location = new System.Drawing.Point(19, 22);
     this.label31.Name = "label31";
     this.label31.Size = new System.Drawing.Size(103, 13);
     this.label31.TabIndex = 11;
     this.label31.Text = "Unidade Medida:";
     //
     // comboBox3
     //
     this.comboBox3.DataBindings.Add(new System.Windows.Forms.Binding("SelectedValue", this.pRODUTOBindingSource, "CODUNIDADEMEDIDA", true));
     this.comboBox3.DataSource = this.uNIDADEMEDIDABindingSource;
     this.comboBox3.DisplayMember = "DESCRICAO";
     this.comboBox3.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.comboBox3.FormattingEnabled = true;
     this.comboBox3.Location = new System.Drawing.Point(22, 38);
     this.comboBox3.Name = "comboBox3";
     this.comboBox3.Size = new System.Drawing.Size(100, 21);
     this.comboBox3.TabIndex = 8;
     this.comboBox3.ValueMember = "CODUNIDADEMEDIDA";
     //
     // uNIDADEMEDIDABindingSource
     //
     this.uNIDADEMEDIDABindingSource.DataMember = "UNIDADEMEDIDA";
     this.uNIDADEMEDIDABindingSource.DataSource = this.cOMERCIALDataSet;
     //
     // txtPesoLiquido
     //
     this.txtPesoLiquido.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.pRODUTOBindingSource, "PESOLIQUIDO", true));
     this.txtPesoLiquido.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.txtPesoLiquido.Location = new System.Drawing.Point(161, 39);
     this.txtPesoLiquido.Name = "txtPesoLiquido";
     this.txtPesoLiquido.Size = new System.Drawing.Size(70, 20);
     this.txtPesoLiquido.TabIndex = 9;
     //
     // groupBox1
     //
     this.groupBox1.Controls.Add(this.label26);
     this.groupBox1.Controls.Add(this.mskedTxtBxEstMinimo);
     this.groupBox1.Controls.Add(this.mskedTxtBxEstAtual);
     this.groupBox1.Controls.Add(this.label27);
     this.groupBox1.ForeColor = System.Drawing.Color.CornflowerBlue;
     this.groupBox1.Location = new System.Drawing.Point(9, 217);
     this.groupBox1.Name = "groupBox1";
     this.groupBox1.Size = new System.Drawing.Size(287, 69);
     this.groupBox1.TabIndex = 4;
     this.groupBox1.TabStop = false;
     this.groupBox1.Text = "Estoque";
     //
     // label26
     //
     this.label26.AutoSize = true;
     this.label26.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label26.ForeColor = System.Drawing.Color.CadetBlue;
     this.label26.Location = new System.Drawing.Point(141, 23);
     this.label26.Name = "label26";
     this.label26.Size = new System.Drawing.Size(97, 13);
     this.label26.TabIndex = 40;
     this.label26.Text = "Estoque mínimo";
     //
     // mskedTxtBxEstMinimo
     //
     this.mskedTxtBxEstMinimo.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.pRODUTOBindingSource, "ESTOQUEMIN", true));
     this.mskedTxtBxEstMinimo.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.mskedTxtBxEstMinimo.Location = new System.Drawing.Point(144, 39);
     this.mskedTxtBxEstMinimo.Name = "mskedTxtBxEstMinimo";
     this.mskedTxtBxEstMinimo.Size = new System.Drawing.Size(99, 20);
     this.mskedTxtBxEstMinimo.TabIndex = 7;
     //
     // mskedTxtBxEstAtual
     //
     this.mskedTxtBxEstAtual.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.pRODUTOBindingSource, "ESTOQUEATUAL", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged, null, "N0"));
     this.mskedTxtBxEstAtual.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.mskedTxtBxEstAtual.Location = new System.Drawing.Point(7, 38);
     this.mskedTxtBxEstAtual.Name = "mskedTxtBxEstAtual";
     this.mskedTxtBxEstAtual.Size = new System.Drawing.Size(96, 20);
     this.mskedTxtBxEstAtual.TabIndex = 6;
     //
     // label27
     //
     this.label27.AutoSize = true;
     this.label27.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label27.ForeColor = System.Drawing.Color.CadetBlue;
     this.label27.Location = new System.Drawing.Point(4, 22);
     this.label27.Name = "label27";
     this.label27.Size = new System.Drawing.Size(86, 13);
     this.label27.TabIndex = 42;
     this.label27.Text = "Estoque Atual";
     //
     // groupBox2
     //
     this.groupBox2.Controls.Add(this.lblPrecoCusto);
     this.groupBox2.Controls.Add(this.lblPrecoVenda);
     this.groupBox2.Controls.Add(this.mskedTxtBxPrecoCusto);
     this.groupBox2.Controls.Add(this.mskedTxtBxIpi);
     this.groupBox2.Controls.Add(this.mskedTxtBxPrecoUnitario);
     this.groupBox2.Controls.Add(this.label1);
     this.groupBox2.ForeColor = System.Drawing.Color.CornflowerBlue;
     this.groupBox2.Location = new System.Drawing.Point(7, 139);
     this.groupBox2.Name = "groupBox2";
     this.groupBox2.Size = new System.Drawing.Size(618, 68);
     this.groupBox2.TabIndex = 3;
     this.groupBox2.TabStop = false;
     this.groupBox2.Text = "Preços";
     //
     // lblPrecoCusto
     //
     this.lblPrecoCusto.AutoSize = true;
     this.lblPrecoCusto.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.lblPrecoCusto.ForeColor = System.Drawing.Color.CadetBlue;
     this.lblPrecoCusto.Location = new System.Drawing.Point(143, 16);
     this.lblPrecoCusto.Name = "lblPrecoCusto";
     this.lblPrecoCusto.Size = new System.Drawing.Size(80, 13);
     this.lblPrecoCusto.TabIndex = 21;
     this.lblPrecoCusto.Text = "Preço Custo:";
     //
     // lblPrecoVenda
     //
     this.lblPrecoVenda.AutoSize = true;
     this.lblPrecoVenda.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.lblPrecoVenda.ForeColor = System.Drawing.Color.CadetBlue;
     this.lblPrecoVenda.Location = new System.Drawing.Point(6, 16);
     this.lblPrecoVenda.Name = "lblPrecoVenda";
     this.lblPrecoVenda.Size = new System.Drawing.Size(102, 13);
     this.lblPrecoVenda.TabIndex = 9;
     this.lblPrecoVenda.Text = "Preço de Venda:";
     //
     // mskedTxtBxPrecoCusto
     //
     this.mskedTxtBxPrecoCusto.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.pRODUTOBindingSource, "PRECOCUSTO", true, System.Windows.Forms.DataSourceUpdateMode.OnValidation, null, "C2"));
     this.mskedTxtBxPrecoCusto.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.mskedTxtBxPrecoCusto.Location = new System.Drawing.Point(146, 32);
     this.mskedTxtBxPrecoCusto.Name = "mskedTxtBxPrecoCusto";
     this.mskedTxtBxPrecoCusto.Size = new System.Drawing.Size(100, 20);
     this.mskedTxtBxPrecoCusto.TabIndex = 4;
     //
     // mskedTxtBxIpi
     //
     this.mskedTxtBxIpi.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.pRODUTOBindingSource, "IPI", true));
     this.mskedTxtBxIpi.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.mskedTxtBxIpi.Location = new System.Drawing.Point(268, 32);
     this.mskedTxtBxIpi.Name = "mskedTxtBxIpi";
     this.mskedTxtBxIpi.Size = new System.Drawing.Size(55, 20);
     this.mskedTxtBxIpi.TabIndex = 5;
     //
     // mskedTxtBxPrecoUnitario
     //
     this.mskedTxtBxPrecoUnitario.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.pRODUTOBindingSource, "PRECOVENDA", true, System.Windows.Forms.DataSourceUpdateMode.OnValidation, null, "C2"));
     this.mskedTxtBxPrecoUnitario.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.mskedTxtBxPrecoUnitario.Location = new System.Drawing.Point(9, 32);
     this.mskedTxtBxPrecoUnitario.Name = "mskedTxtBxPrecoUnitario";
     this.mskedTxtBxPrecoUnitario.Size = new System.Drawing.Size(100, 20);
     this.mskedTxtBxPrecoUnitario.TabIndex = 3;
     //
     // label1
     //
     this.label1.AutoSize = true;
     this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label1.ForeColor = System.Drawing.Color.CadetBlue;
     this.label1.Location = new System.Drawing.Point(265, 16);
     this.label1.Name = "label1";
     this.label1.Size = new System.Drawing.Size(40, 13);
     this.label1.TabIndex = 38;
     this.label1.Text = "% IPI:";
     //
     // dtmPckrCadastro
     //
     this.dtmPckrCadastro.DataBindings.Add(new System.Windows.Forms.Binding("Value", this.pRODUTOBindingSource, "DATACADASTRO", true));
     this.dtmPckrCadastro.Enabled = false;
     this.dtmPckrCadastro.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.dtmPckrCadastro.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
     this.dtmPckrCadastro.Location = new System.Drawing.Point(518, 33);
     this.dtmPckrCadastro.Name = "dtmPckrCadastro";
     this.dtmPckrCadastro.Size = new System.Drawing.Size(107, 20);
     this.dtmPckrCadastro.TabIndex = 2;
     //
     // lblDtCadastro
     //
     this.lblDtCadastro.AutoSize = true;
     this.lblDtCadastro.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.lblDtCadastro.ForeColor = System.Drawing.Color.CadetBlue;
     this.lblDtCadastro.Location = new System.Drawing.Point(515, 17);
     this.lblDtCadastro.Name = "lblDtCadastro";
     this.lblDtCadastro.Size = new System.Drawing.Size(110, 13);
     this.lblDtCadastro.TabIndex = 5;
     this.lblDtCadastro.Text = "Data de Cadastro:";
     //
     // lblDescricao
     //
     this.lblDescricao.AutoSize = true;
     this.lblDescricao.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.lblDescricao.ForeColor = System.Drawing.Color.CadetBlue;
     this.lblDescricao.Location = new System.Drawing.Point(13, 17);
     this.lblDescricao.Name = "lblDescricao";
     this.lblDescricao.Size = new System.Drawing.Size(68, 13);
     this.lblDescricao.TabIndex = 3;
     this.lblDescricao.Text = "Descrição:";
     //
     // maskedTextBox2
     //
     this.maskedTextBox2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.maskedTextBox2.Location = new System.Drawing.Point(32, 194);
     this.maskedTextBox2.Name = "maskedTextBox2";
     this.maskedTextBox2.Size = new System.Drawing.Size(55, 20);
     this.maskedTextBox2.TabIndex = 39;
     //
     // label2
     //
     this.label2.AutoSize = true;
     this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label2.ForeColor = System.Drawing.Color.CadetBlue;
     this.label2.Location = new System.Drawing.Point(29, 178);
     this.label2.Name = "label2";
     this.label2.Size = new System.Drawing.Size(40, 13);
     this.label2.TabIndex = 38;
     this.label2.Text = "% IPI:";
     //
     // maskedTextBox3
     //
     this.maskedTextBox3.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.maskedTextBox3.Location = new System.Drawing.Point(227, 137);
     this.maskedTextBox3.Name = "maskedTextBox3";
     this.maskedTextBox3.Size = new System.Drawing.Size(100, 20);
     this.maskedTextBox3.TabIndex = 35;
     //
     // maskedTextBox4
     //
     this.maskedTextBox4.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.maskedTextBox4.Location = new System.Drawing.Point(362, 137);
     this.maskedTextBox4.Name = "maskedTextBox4";
     this.maskedTextBox4.Size = new System.Drawing.Size(116, 20);
     this.maskedTextBox4.TabIndex = 34;
     //
     // comboBox1
     //
     this.comboBox1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.comboBox1.FormattingEnabled = true;
     this.comboBox1.Location = new System.Drawing.Point(227, 85);
     this.comboBox1.Name = "comboBox1";
     this.comboBox1.Size = new System.Drawing.Size(100, 21);
     this.comboBox1.TabIndex = 32;
     //
     // dateTimePicker1
     //
     this.dateTimePicker1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.dateTimePicker1.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
     this.dateTimePicker1.Location = new System.Drawing.Point(493, 86);
     this.dateTimePicker1.Name = "dateTimePicker1";
     this.dateTimePicker1.Size = new System.Drawing.Size(107, 20);
     this.dateTimePicker1.TabIndex = 29;
     //
     // dateTimePicker2
     //
     this.dateTimePicker2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.dateTimePicker2.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
     this.dateTimePicker2.Location = new System.Drawing.Point(493, 33);
     this.dateTimePicker2.Name = "dateTimePicker2";
     this.dateTimePicker2.Size = new System.Drawing.Size(107, 20);
     this.dateTimePicker2.TabIndex = 28;
     //
     // label3
     //
     this.label3.AutoSize = true;
     this.label3.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label3.ForeColor = System.Drawing.Color.CadetBlue;
     this.label3.Location = new System.Drawing.Point(27, 69);
     this.label3.Name = "label3";
     this.label3.Size = new System.Drawing.Size(71, 13);
     this.label3.TabIndex = 27;
     this.label3.Text = "Fabricante:";
     //
     // label4
     //
     this.label4.AutoSize = true;
     this.label4.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label4.ForeColor = System.Drawing.Color.CadetBlue;
     this.label4.Location = new System.Drawing.Point(488, 121);
     this.label4.Name = "label4";
     this.label4.Size = new System.Drawing.Size(67, 13);
     this.label4.TabIndex = 25;
     this.label4.Text = "% Desconto:";
     //
     // textBox1
     //
     this.textBox1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.textBox1.Location = new System.Drawing.Point(491, 137);
     this.textBox1.Name = "textBox1";
     this.textBox1.Size = new System.Drawing.Size(64, 20);
     this.textBox1.TabIndex = 24;
     //
     // label5
     //
     this.label5.AutoSize = true;
     this.label5.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label5.ForeColor = System.Drawing.Color.CadetBlue;
     this.label5.Location = new System.Drawing.Point(490, 70);
     this.label5.Name = "label5";
     this.label5.Size = new System.Drawing.Size(65, 13);
     this.label5.TabIndex = 23;
     this.label5.Text = "Ult. Compra:";
     //
     // label6
     //
     this.label6.AutoSize = true;
     this.label6.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label6.ForeColor = System.Drawing.Color.CadetBlue;
     this.label6.Location = new System.Drawing.Point(359, 121);
     this.label6.Name = "label6";
     this.label6.Size = new System.Drawing.Size(80, 13);
     this.label6.TabIndex = 21;
     this.label6.Text = "Preço Custo:";
     //
     // label7
     //
     this.label7.AutoSize = true;
     this.label7.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label7.ForeColor = System.Drawing.Color.CadetBlue;
     this.label7.Location = new System.Drawing.Point(362, 69);
     this.label7.Name = "label7";
     this.label7.Size = new System.Drawing.Size(73, 13);
     this.label7.TabIndex = 17;
     this.label7.Text = "Peso Líquido:";
     //
     // textBox2
     //
     this.textBox2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.textBox2.Location = new System.Drawing.Point(365, 86);
     this.textBox2.Name = "textBox2";
     this.textBox2.Size = new System.Drawing.Size(113, 20);
     this.textBox2.TabIndex = 16;
     //
     // label8
     //
     this.label8.AutoSize = true;
     this.label8.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label8.ForeColor = System.Drawing.Color.CadetBlue;
     this.label8.Location = new System.Drawing.Point(224, 69);
     this.label8.Name = "label8";
     this.label8.Size = new System.Drawing.Size(103, 13);
     this.label8.TabIndex = 11;
     this.label8.Text = "Unidade Medida:";
     //
     // label9
     //
     this.label9.AutoSize = true;
     this.label9.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label9.ForeColor = System.Drawing.Color.CadetBlue;
     this.label9.Location = new System.Drawing.Point(224, 121);
     this.label9.Name = "label9";
     this.label9.Size = new System.Drawing.Size(92, 13);
     this.label9.TabIndex = 9;
     this.label9.Text = "Preço Unitário:";
     //
     // label10
     //
     this.label10.AutoSize = true;
     this.label10.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label10.ForeColor = System.Drawing.Color.CadetBlue;
     this.label10.Location = new System.Drawing.Point(29, 121);
     this.label10.Name = "label10";
     this.label10.Size = new System.Drawing.Size(41, 13);
     this.label10.TabIndex = 7;
     this.label10.Text = "Grupo";
     //
     // label11
     //
     this.label11.AutoSize = true;
     this.label11.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label11.ForeColor = System.Drawing.Color.CadetBlue;
     this.label11.Location = new System.Drawing.Point(490, 17);
     this.label11.Name = "label11";
     this.label11.Size = new System.Drawing.Size(110, 13);
     this.label11.TabIndex = 5;
     this.label11.Text = "Data de Cadastro:";
     //
     // label12
     //
     this.label12.AutoSize = true;
     this.label12.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label12.ForeColor = System.Drawing.Color.CadetBlue;
     this.label12.Location = new System.Drawing.Point(100, 17);
     this.label12.Name = "label12";
     this.label12.Size = new System.Drawing.Size(68, 13);
     this.label12.TabIndex = 3;
     this.label12.Text = "Descrição:";
     //
     // textBox3
     //
     this.textBox3.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.textBox3.Location = new System.Drawing.Point(103, 33);
     this.textBox3.Name = "textBox3";
     this.textBox3.Size = new System.Drawing.Size(375, 20);
     this.textBox3.TabIndex = 2;
     //
     // label13
     //
     this.label13.AutoSize = true;
     this.label13.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label13.ForeColor = System.Drawing.Color.CadetBlue;
     this.label13.Location = new System.Drawing.Point(27, 17);
     this.label13.Name = "label13";
     this.label13.Size = new System.Drawing.Size(50, 13);
     this.label13.TabIndex = 1;
     this.label13.Text = "Código:";
     //
     // textBox4
     //
     this.textBox4.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.textBox4.Location = new System.Drawing.Point(30, 33);
     this.textBox4.Name = "textBox4";
     this.textBox4.Size = new System.Drawing.Size(57, 20);
     this.textBox4.TabIndex = 0;
     //
     // maskedTextBox5
     //
     this.maskedTextBox5.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.maskedTextBox5.Location = new System.Drawing.Point(32, 194);
     this.maskedTextBox5.Name = "maskedTextBox5";
     this.maskedTextBox5.Size = new System.Drawing.Size(55, 20);
     this.maskedTextBox5.TabIndex = 39;
     //
     // label14
     //
     this.label14.AutoSize = true;
     this.label14.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label14.ForeColor = System.Drawing.Color.CadetBlue;
     this.label14.Location = new System.Drawing.Point(29, 178);
     this.label14.Name = "label14";
     this.label14.Size = new System.Drawing.Size(40, 13);
     this.label14.TabIndex = 38;
     this.label14.Text = "% IPI:";
     //
     // maskedTextBox6
     //
     this.maskedTextBox6.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.maskedTextBox6.Location = new System.Drawing.Point(227, 137);
     this.maskedTextBox6.Name = "maskedTextBox6";
     this.maskedTextBox6.Size = new System.Drawing.Size(100, 20);
     this.maskedTextBox6.TabIndex = 35;
     //
     // maskedTextBox7
     //
     this.maskedTextBox7.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.maskedTextBox7.Location = new System.Drawing.Point(362, 137);
     this.maskedTextBox7.Name = "maskedTextBox7";
     this.maskedTextBox7.Size = new System.Drawing.Size(116, 20);
     this.maskedTextBox7.TabIndex = 34;
     //
     // comboBox2
     //
     this.comboBox2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.comboBox2.FormattingEnabled = true;
     this.comboBox2.Location = new System.Drawing.Point(227, 85);
     this.comboBox2.Name = "comboBox2";
     this.comboBox2.Size = new System.Drawing.Size(100, 21);
     this.comboBox2.TabIndex = 32;
     //
     // dateTimePicker3
     //
     this.dateTimePicker3.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.dateTimePicker3.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
     this.dateTimePicker3.Location = new System.Drawing.Point(493, 86);
     this.dateTimePicker3.Name = "dateTimePicker3";
     this.dateTimePicker3.Size = new System.Drawing.Size(107, 20);
     this.dateTimePicker3.TabIndex = 29;
     //
     // dateTimePicker4
     //
     this.dateTimePicker4.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.dateTimePicker4.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
     this.dateTimePicker4.Location = new System.Drawing.Point(493, 33);
     this.dateTimePicker4.Name = "dateTimePicker4";
     this.dateTimePicker4.Size = new System.Drawing.Size(107, 20);
     this.dateTimePicker4.TabIndex = 28;
     //
     // label15
     //
     this.label15.AutoSize = true;
     this.label15.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label15.ForeColor = System.Drawing.Color.CadetBlue;
     this.label15.Location = new System.Drawing.Point(27, 69);
     this.label15.Name = "label15";
     this.label15.Size = new System.Drawing.Size(71, 13);
     this.label15.TabIndex = 27;
     this.label15.Text = "Fabricante:";
     //
     // label16
     //
     this.label16.AutoSize = true;
     this.label16.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label16.ForeColor = System.Drawing.Color.CadetBlue;
     this.label16.Location = new System.Drawing.Point(488, 121);
     this.label16.Name = "label16";
     this.label16.Size = new System.Drawing.Size(67, 13);
     this.label16.TabIndex = 25;
     this.label16.Text = "% Desconto:";
     //
     // textBox5
     //
     this.textBox5.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.textBox5.Location = new System.Drawing.Point(491, 137);
     this.textBox5.Name = "textBox5";
     this.textBox5.Size = new System.Drawing.Size(64, 20);
     this.textBox5.TabIndex = 24;
     //
     // label17
     //
     this.label17.AutoSize = true;
     this.label17.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label17.ForeColor = System.Drawing.Color.CadetBlue;
     this.label17.Location = new System.Drawing.Point(490, 70);
     this.label17.Name = "label17";
     this.label17.Size = new System.Drawing.Size(65, 13);
     this.label17.TabIndex = 23;
     this.label17.Text = "Ult. Compra:";
     //
     // label18
     //
     this.label18.AutoSize = true;
     this.label18.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label18.ForeColor = System.Drawing.Color.CadetBlue;
     this.label18.Location = new System.Drawing.Point(359, 121);
     this.label18.Name = "label18";
     this.label18.Size = new System.Drawing.Size(80, 13);
     this.label18.TabIndex = 21;
     this.label18.Text = "Preço Custo:";
     //
     // label19
     //
     this.label19.AutoSize = true;
     this.label19.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label19.ForeColor = System.Drawing.Color.CadetBlue;
     this.label19.Location = new System.Drawing.Point(362, 69);
     this.label19.Name = "label19";
     this.label19.Size = new System.Drawing.Size(73, 13);
     this.label19.TabIndex = 17;
     this.label19.Text = "Peso Líquido:";
     //
     // textBox6
     //
     this.textBox6.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.textBox6.Location = new System.Drawing.Point(365, 86);
     this.textBox6.Name = "textBox6";
     this.textBox6.Size = new System.Drawing.Size(113, 20);
     this.textBox6.TabIndex = 16;
     //
     // label20
     //
     this.label20.AutoSize = true;
     this.label20.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label20.ForeColor = System.Drawing.Color.CadetBlue;
     this.label20.Location = new System.Drawing.Point(224, 69);
     this.label20.Name = "label20";
     this.label20.Size = new System.Drawing.Size(103, 13);
     this.label20.TabIndex = 11;
     this.label20.Text = "Unidade Medida:";
     //
     // label21
     //
     this.label21.AutoSize = true;
     this.label21.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label21.ForeColor = System.Drawing.Color.CadetBlue;
     this.label21.Location = new System.Drawing.Point(224, 121);
     this.label21.Name = "label21";
     this.label21.Size = new System.Drawing.Size(92, 13);
     this.label21.TabIndex = 9;
     this.label21.Text = "Preço Unitário:";
     //
     // label22
     //
     this.label22.AutoSize = true;
     this.label22.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label22.ForeColor = System.Drawing.Color.CadetBlue;
     this.label22.Location = new System.Drawing.Point(29, 121);
     this.label22.Name = "label22";
     this.label22.Size = new System.Drawing.Size(41, 13);
     this.label22.TabIndex = 7;
     this.label22.Text = "Grupo";
     //
     // label23
     //
     this.label23.AutoSize = true;
     this.label23.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label23.ForeColor = System.Drawing.Color.CadetBlue;
     this.label23.Location = new System.Drawing.Point(490, 17);
     this.label23.Name = "label23";
     this.label23.Size = new System.Drawing.Size(110, 13);
     this.label23.TabIndex = 5;
     this.label23.Text = "Data de Cadastro:";
     //
     // label24
     //
     this.label24.AutoSize = true;
     this.label24.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label24.ForeColor = System.Drawing.Color.CadetBlue;
     this.label24.Location = new System.Drawing.Point(100, 17);
     this.label24.Name = "label24";
     this.label24.Size = new System.Drawing.Size(68, 13);
     this.label24.TabIndex = 3;
     this.label24.Text = "Descrição:";
     //
     // textBox7
     //
     this.textBox7.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.textBox7.Location = new System.Drawing.Point(103, 33);
     this.textBox7.Name = "textBox7";
     this.textBox7.Size = new System.Drawing.Size(375, 20);
     this.textBox7.TabIndex = 2;
     //
     // label25
     //
     this.label25.AutoSize = true;
     this.label25.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label25.ForeColor = System.Drawing.Color.CadetBlue;
     this.label25.Location = new System.Drawing.Point(27, 17);
     this.label25.Name = "label25";
     this.label25.Size = new System.Drawing.Size(50, 13);
     this.label25.TabIndex = 1;
     this.label25.Text = "Código:";
     //
     // textBox8
     //
     this.textBox8.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.textBox8.Location = new System.Drawing.Point(30, 33);
     this.textBox8.Name = "textBox8";
     this.textBox8.Size = new System.Drawing.Size(57, 20);
     this.textBox8.TabIndex = 0;
     //
     // pRODUTOTableAdapter
     //
     this.pRODUTOTableAdapter.ClearBeforeFill = true;
     //
     // tableAdapterManager
     //
     this.tableAdapterManager.ACESSOTableAdapter = null;
     this.tableAdapterManager.ATUCUBOTableAdapter = null;
     this.tableAdapterManager.BackupDataSetBeforeUpdate = false;
     this.tableAdapterManager.CLIENTETableAdapter = null;
     this.tableAdapterManager.CONDICAOPAGAMENTOTableAdapter = null;
     this.tableAdapterManager.GRUPOPRODUTOTableAdapter = null;
     this.tableAdapterManager.ICMSTableAdapter = null;
     this.tableAdapterManager.ItemNotaFiscalTableAdapter = null;
     this.tableAdapterManager.ITEMPEDIDOTableAdapter = null;
     this.tableAdapterManager.MODULOTableAdapter = null;
     this.tableAdapterManager.NOTAFISCALTableAdapter = null;
     this.tableAdapterManager.PEDIDOTableAdapter = null;
     this.tableAdapterManager.PRODUTOTableAdapter = this.pRODUTOTableAdapter;
     this.tableAdapterManager.REGIAOTableAdapter = null;
     this.tableAdapterManager.TRANSPORTADORATableAdapter = null;
     this.tableAdapterManager.TRANSPORTADORAVIATableAdapter = null;
     this.tableAdapterManager.UNIDADEMEDIDATableAdapter = this.uNIDADEMEDIDATableAdapter;
     this.tableAdapterManager.UpdateOrder = Comercial.COMERCIALDataSetTableAdapters.TableAdapterManager.UpdateOrderOption.InsertUpdateDelete;
     this.tableAdapterManager.USUARIOTableAdapter = null;
     this.tableAdapterManager.VENDEDORTableAdapter = null;
     this.tableAdapterManager.VIATRANSPORTETableAdapter = null;
     //
     // uNIDADEMEDIDATableAdapter
     //
     this.uNIDADEMEDIDATableAdapter.ClearBeforeFill = true;
     //
     // textButton1
     //
     this.textButton1.getText = "";
     this.textButton1.Image = global::Comercial.Properties.Resources.search1;
     this.textButton1.Location = new System.Drawing.Point(30, 137);
     this.textButton1.Name = "textButton1";
     this.textButton1.ShowButton = false;
     this.textButton1.Size = new System.Drawing.Size(144, 25);
     this.textButton1.TabIndex = 37;
     //
     // textButton2
     //
     this.textButton2.getText = "";
     this.textButton2.Image = global::Comercial.Properties.Resources.search1;
     this.textButton2.Location = new System.Drawing.Point(30, 86);
     this.textButton2.Name = "textButton2";
     this.textButton2.ShowButton = false;
     this.textButton2.Size = new System.Drawing.Size(146, 25);
     this.textButton2.TabIndex = 36;
     //
     // textButton3
     //
     this.textButton3.getText = "";
     this.textButton3.Image = global::Comercial.Properties.Resources.search1;
     this.textButton3.Location = new System.Drawing.Point(30, 137);
     this.textButton3.Name = "textButton3";
     this.textButton3.ShowButton = false;
     this.textButton3.Size = new System.Drawing.Size(144, 25);
     this.textButton3.TabIndex = 37;
     //
     // textButton4
     //
     this.textButton4.getText = "";
     this.textButton4.Image = global::Comercial.Properties.Resources.search1;
     this.textButton4.Location = new System.Drawing.Point(30, 86);
     this.textButton4.Name = "textButton4";
     this.textButton4.ShowButton = false;
     this.textButton4.Size = new System.Drawing.Size(146, 25);
     this.textButton4.TabIndex = 36;
     //
     // FrmCadProd
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.BackColor = System.Drawing.Color.WhiteSmoke;
     this.ClientSize = new System.Drawing.Size(680, 350);
     this.ControlBox = false;
     this.Controls.Add(this.tbCntrlCadProd);
     this.ForeColor = System.Drawing.Color.Black;
     this.MaximizeBox = false;
     this.MinimizeBox = false;
     this.Name = "FrmCadProd";
     this.ShowIcon = false;
     this.Text = "Cadastro de Produtos";
     this.Load += new System.EventHandler(this.FrmCadProd_Load);
     this.Shown += new System.EventHandler(this.FrmCadProd_Shown);
     this.tbCntrlCadProd.ResumeLayout(false);
     this.tbPgCadProd.ResumeLayout(false);
     this.tbPgCadProd.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.pRODUTOBindingSource)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.cOMERCIALDataSet)).EndInit();
     this.groupBox4.ResumeLayout(false);
     this.groupBox4.PerformLayout();
     this.groupBox3.ResumeLayout(false);
     this.groupBox3.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.uNIDADEMEDIDABindingSource)).EndInit();
     this.groupBox1.ResumeLayout(false);
     this.groupBox1.PerformLayout();
     this.groupBox2.ResumeLayout(false);
     this.groupBox2.PerformLayout();
     this.ResumeLayout(false);
 }
Ejemplo n.º 4
0
        //private void tESToolStripMenuItem_Click(object sender, EventArgs e)
        //{
        //    int x = 0, y = 0;

        //    // Localiza o formulario
        //    foreach (Form form in this.MdiChildren)
        //    {
        //        if (form is FrmCadTes)
        //        {
        //            form.WindowState = FormWindowState.Maximized;
        //            form.Activate();
        //            x++;
        //        }
        //        y++;

        //    }

        // Para criar o formulario 
        //    if (x == 0 && y == 0)
        //    {
        //        FrmCadTes filho = new FrmCadTes(this);
        //        filho.Show();

        //        Util.Interface.ResetControls(filho);
        //        Util.Interface.ChangeControlStatus(filho, false);

        //        filho.WindowState = FormWindowState.Maximized;
        //    }
        //}

        #endregion

        #region Botão Deletar
        private void BtnDeletar_Click(object sender, EventArgs e)
        {
            Form frm = this.ActiveMdiChild;
            if (frm == null)
                return;
            //COLOCAR MENSAGEM DE CONFIRMAÇAO...
            if (MessageBox.Show("Deseja excluir o registro selecionado?", "Atenção", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
            {
                try
                {
                    // =====
                    // CADA UM INFORME O CODIGO ABAIXO...
                    // =====
                    #region Form's Claudio
                    if (frm is FrmCadCli)
                    {
                        bindingNavigator1.BindingSource.RemoveCurrent();
                        COMERCIALDataSetTableAdapters.CLIENTETableAdapter teste = new Comercial.COMERCIALDataSetTableAdapters.CLIENTETableAdapter();
                        teste.Update(_dataset);

                    }
                    #endregion
                    if (frm is FrmCadVen)
                    {
                        bindingNavigator1.BindingSource.RemoveCurrent();
                        COMERCIALDataSetTableAdapters.VENDEDORTableAdapter teste = new Comercial.COMERCIALDataSetTableAdapters.VENDEDORTableAdapter();
                        teste.Update(_dataset);
                    }

                    if (frm is FrmCadConPag)
                    {
                        bindingNavigator1.BindingSource.RemoveCurrent();
                        COMERCIALDataSetTableAdapters.CONDICAOPAGAMENTOTableAdapter teste = new Comercial.COMERCIALDataSetTableAdapters.CONDICAOPAGAMENTOTableAdapter();
                        teste.Update(_dataset);
                    }

                    if (frm is FrmCadTra)
                    {
                        bindingNavigator1.BindingSource.RemoveCurrent();
                        COMERCIALDataSetTableAdapters.TRANSPORTADORATableAdapter teste = new Comercial.COMERCIALDataSetTableAdapters.TRANSPORTADORATableAdapter();
                        teste.Update(_dataset);
                    }


                    if (frm is FrmCadUniMed)
                    {
                        bindingNavigator1.BindingSource.RemoveCurrent();
                        COMERCIALDataSetTableAdapters.UNIDADEMEDIDATableAdapter teste = new Comercial.COMERCIALDataSetTableAdapters.UNIDADEMEDIDATableAdapter();
                        teste.Update(_dataset);
                    }

                    if (frm is FrmCadGrpProd)
                    {
                        bindingNavigator1.BindingSource.RemoveCurrent();
                        COMERCIALDataSetTableAdapters.GRUPOPRODUTOTableAdapter teste = new Comercial.COMERCIALDataSetTableAdapters.GRUPOPRODUTOTableAdapter();
                        teste.Update(_dataset);
                    }

                    if (frm is FrmCadProd)
                    {
                        bindingNavigator1.BindingSource.RemoveCurrent();
                        COMERCIALDataSetTableAdapters.PRODUTOTableAdapter teste = new Comercial.COMERCIALDataSetTableAdapters.PRODUTOTableAdapter();
                        teste.Update(_dataset);
                    }

                    if (frm is FrmCadPed)
                    {
                        bindingNavigator1.BindingSource.RemoveCurrent();
                        COMERCIALDataSetTableAdapters.PEDIDOTableAdapter objPedido = new Comercial.COMERCIALDataSetTableAdapters.PEDIDOTableAdapter();
                        objPedido.Update(_dataset);
                    }



                }
                catch
                {
                    MessageBox.Show("Registro(s) filho(s) encontrado(s).", "Erro", MessageBoxButtons.OK, MessageBoxIcon.Error);
                    bindingNavigator1.Refresh();
                }
            }
            else
            {

            }
        }