/// <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(FrmCadPed));
     System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
     System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
     System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
     this.BtmTlStrpnlPedVenda = new System.Windows.Forms.ToolStripPanel();
     this.TopToolStripPanel = new System.Windows.Forms.ToolStripPanel();
     this.dataGridViewImageColumn1 = new System.Windows.Forms.DataGridViewImageColumn();
     this.tbCntrlPedVend = new System.Windows.Forms.TabControl();
     this.tabPage1 = new System.Windows.Forms.TabPage();
     this.grpBxPedVenda = new System.Windows.Forms.GroupBox();
     this.txtFrete = new System.Windows.Forms.MaskedTextBox();
     this.pEDIDOBindingSource = new System.Windows.Forms.BindingSource(this.components);
     this.cOMERCIALDataSet = new Comercial.COMERCIALDataSet();
     this.lblFrete = new System.Windows.Forms.Label();
     this.grpTipoPedido = new System.Windows.Forms.GroupBox();
     this.chkComplemento = new System.Windows.Forms.CheckBox();
     this.chkNormal = new System.Windows.Forms.CheckBox();
     this.grpBxSitPed = new System.Windows.Forms.GroupBox();
     this.chkCancelado = new System.Windows.Forms.CheckBox();
     this.chkPendente = new System.Windows.Forms.CheckBox();
     this.chkEfetivado = new System.Windows.Forms.CheckBox();
     this.dtpEntrega = new System.Windows.Forms.DateTimePicker();
     this.label1 = new System.Windows.Forms.Label();
     this.dtpEmissao = new System.Windows.Forms.DateTimePicker();
     this.txtNomeTransportadora = new System.Windows.Forms.TextBox();
     this.vENDEDORBindingSource = new System.Windows.Forms.BindingSource(this.components);
     this.lbldtemi = new System.Windows.Forms.Label();
     this.lblNomeTransportadora = new System.Windows.Forms.Label();
     this.txtNomeVendedor = new System.Windows.Forms.TextBox();
     this.txtNomeCliente = new System.Windows.Forms.TextBox();
     this.cLIENTEBindingSource = new System.Windows.Forms.BindingSource(this.components);
     this.txtPedido = new System.Windows.Forms.TextBox();
     this.lbltpfre = new System.Windows.Forms.Label();
     this.lblcondp = new System.Windows.Forms.Label();
     this.lblnomven = new System.Windows.Forms.Label();
     this.lclcodven = new System.Windows.Forms.Label();
     this.lblnomecli = new System.Windows.Forms.Label();
     this.lblcodcli = new System.Windows.Forms.Label();
     this.lblnumPed = new System.Windows.Forms.Label();
     this.grpBxItPedVen = new System.Windows.Forms.GroupBox();
     this.lblValortotal = new System.Windows.Forms.Label();
     this.lblValortotalPed = new System.Windows.Forms.Label();
     this.txtValorTotal = new System.Windows.Forms.TextBox();
     this.lblTotal = new System.Windows.Forms.Label();
     this.txtQtdItem = new System.Windows.Forms.TextBox();
     this.LblqtdItem = new System.Windows.Forms.Label();
     this.btnAdditen = new System.Windows.Forms.Button();
     this.lblDesconto = new System.Windows.Forms.Label();
     this.txtDesconto = new System.Windows.Forms.TextBox();
     this.pnlItenped = new System.Windows.Forms.Panel();
     this.dtgrdvItenspven = new System.Windows.Forms.DataGridView();
     this.txtipi = new System.Windows.Forms.TextBox();
     this.LblIPI = new System.Windows.Forms.Label();
     this.txtPrcUnit = new System.Windows.Forms.TextBox();
     this.LblPrcVen = new System.Windows.Forms.Label();
     this.txtEstAtual = new System.Windows.Forms.TextBox();
     this.LblEstAtu = new System.Windows.Forms.Label();
     this.txtUM = new System.Windows.Forms.TextBox();
     this.LblUm = new System.Windows.Forms.Label();
     this.txtDescprod = new System.Windows.Forms.TextBox();
     this.LbDescProd = new System.Windows.Forms.Label();
     this.lblCodProd = new System.Windows.Forms.Label();
     this.dataGridViewImageColumn2 = new System.Windows.Forms.DataGridViewImageColumn();
     this.pRODUTOBindingSource = new System.Windows.Forms.BindingSource(this.components);
     this.iTEMPEDIDOBindingSource = new System.Windows.Forms.BindingSource(this.components);
     this.tRANSPORTADORABindingSource = new System.Windows.Forms.BindingSource(this.components);
     this.cONDICAOPAGAMENTOBindingSource = new System.Windows.Forms.BindingSource(this.components);
     this.pEDIDOTableAdapter = new Comercial.COMERCIALDataSetTableAdapters.PEDIDOTableAdapter();
     this.tableAdapterManager = new Comercial.COMERCIALDataSetTableAdapters.TableAdapterManager();
     this.tRANSPORTADORATableAdapter = new Comercial.COMERCIALDataSetTableAdapters.TRANSPORTADORATableAdapter();
     this.vENDEDORTableAdapter = new Comercial.COMERCIALDataSetTableAdapters.VENDEDORTableAdapter();
     this.cLIENTETableAdapter = new Comercial.COMERCIALDataSetTableAdapters.CLIENTETableAdapter();
     this.cONDICAOPAGAMENTOTableAdapter = new Comercial.COMERCIALDataSetTableAdapters.CONDICAOPAGAMENTOTableAdapter();
     this.iTEMPEDIDOTableAdapter = new Comercial.COMERCIALDataSetTableAdapters.ITEMPEDIDOTableAdapter();
     this.pRODUTOTableAdapter = new Comercial.COMERCIALDataSetTableAdapters.PRODUTOTableAdapter();
     this.txtCodTransportadora = new Comercial.TextButton();
     this.txtCondPagto = new Comercial.TextButton();
     this.txtCodVendedor = new Comercial.TextButton();
     this.txtcodCli = new Comercial.TextButton();
     this.txtProduto = new Comercial.TextButton();
     this.Delete = new System.Windows.Forms.DataGridViewImageColumn();
     this.ClmItem = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.ColProd = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.ClmDescProd = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.ClmQtde = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.QUANTIDADELIB = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.ClmPrcUnit = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.ClmIPI = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.ColDesconto = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.ColTotal = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.Status = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.tbCntrlPedVend.SuspendLayout();
     this.tabPage1.SuspendLayout();
     this.grpBxPedVenda.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.pEDIDOBindingSource)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.cOMERCIALDataSet)).BeginInit();
     this.grpTipoPedido.SuspendLayout();
     this.grpBxSitPed.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.vENDEDORBindingSource)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.cLIENTEBindingSource)).BeginInit();
     this.grpBxItPedVen.SuspendLayout();
     this.pnlItenped.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.dtgrdvItenspven)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.pRODUTOBindingSource)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.iTEMPEDIDOBindingSource)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.tRANSPORTADORABindingSource)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.cONDICAOPAGAMENTOBindingSource)).BeginInit();
     this.SuspendLayout();
     //
     // BtmTlStrpnlPedVenda
     //
     this.BtmTlStrpnlPedVenda.Location = new System.Drawing.Point(0, 0);
     this.BtmTlStrpnlPedVenda.Name = "BtmTlStrpnlPedVenda";
     this.BtmTlStrpnlPedVenda.Orientation = System.Windows.Forms.Orientation.Horizontal;
     this.BtmTlStrpnlPedVenda.RowMargin = new System.Windows.Forms.Padding(3, 0, 0, 0);
     this.BtmTlStrpnlPedVenda.Size = new System.Drawing.Size(0, 0);
     //
     // TopToolStripPanel
     //
     this.TopToolStripPanel.Location = new System.Drawing.Point(0, 0);
     this.TopToolStripPanel.Name = "TopToolStripPanel";
     this.TopToolStripPanel.Orientation = System.Windows.Forms.Orientation.Horizontal;
     this.TopToolStripPanel.RowMargin = new System.Windows.Forms.Padding(3, 0, 0, 0);
     this.TopToolStripPanel.Size = new System.Drawing.Size(0, 0);
     //
     // dataGridViewImageColumn1
     //
     this.dataGridViewImageColumn1.HeaderText = "Column3";
     this.dataGridViewImageColumn1.ImageLayout = System.Windows.Forms.DataGridViewImageCellLayout.Stretch;
     this.dataGridViewImageColumn1.Name = "dataGridViewImageColumn1";
     //
     // tbCntrlPedVend
     //
     this.tbCntrlPedVend.Controls.Add(this.tabPage1);
     this.tbCntrlPedVend.Font = new System.Drawing.Font("Microsoft Sans Serif", 8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.tbCntrlPedVend.Location = new System.Drawing.Point(12, 12);
     this.tbCntrlPedVend.Name = "tbCntrlPedVend";
     this.tbCntrlPedVend.SelectedIndex = 0;
     this.tbCntrlPedVend.Size = new System.Drawing.Size(999, 524);
     this.tbCntrlPedVend.TabIndex = 2001;
     //
     // tabPage1
     //
     this.tabPage1.AutoScroll = true;
     this.tabPage1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
     this.tabPage1.Controls.Add(this.grpBxPedVenda);
     this.tabPage1.Controls.Add(this.grpBxItPedVen);
     this.tabPage1.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.tabPage1.ForeColor = System.Drawing.Color.WhiteSmoke;
     this.tabPage1.Location = new System.Drawing.Point(4, 22);
     this.tabPage1.Name = "tabPage1";
     this.tabPage1.Padding = new System.Windows.Forms.Padding(3);
     this.tabPage1.Size = new System.Drawing.Size(991, 498);
     this.tabPage1.TabIndex = 0;
     this.tabPage1.Text = "Pedidos de Vendas";
     this.tabPage1.UseVisualStyleBackColor = true;
     //
     // grpBxPedVenda
     //
     this.grpBxPedVenda.Controls.Add(this.txtFrete);
     this.grpBxPedVenda.Controls.Add(this.lblFrete);
     this.grpBxPedVenda.Controls.Add(this.grpTipoPedido);
     this.grpBxPedVenda.Controls.Add(this.grpBxSitPed);
     this.grpBxPedVenda.Controls.Add(this.dtpEntrega);
     this.grpBxPedVenda.Controls.Add(this.label1);
     this.grpBxPedVenda.Controls.Add(this.txtCodTransportadora);
     this.grpBxPedVenda.Controls.Add(this.dtpEmissao);
     this.grpBxPedVenda.Controls.Add(this.txtNomeTransportadora);
     this.grpBxPedVenda.Controls.Add(this.lbldtemi);
     this.grpBxPedVenda.Controls.Add(this.lblNomeTransportadora);
     this.grpBxPedVenda.Controls.Add(this.txtCondPagto);
     this.grpBxPedVenda.Controls.Add(this.txtCodVendedor);
     this.grpBxPedVenda.Controls.Add(this.txtcodCli);
     this.grpBxPedVenda.Controls.Add(this.txtNomeVendedor);
     this.grpBxPedVenda.Controls.Add(this.txtNomeCliente);
     this.grpBxPedVenda.Controls.Add(this.txtPedido);
     this.grpBxPedVenda.Controls.Add(this.lbltpfre);
     this.grpBxPedVenda.Controls.Add(this.lblcondp);
     this.grpBxPedVenda.Controls.Add(this.lblnomven);
     this.grpBxPedVenda.Controls.Add(this.lclcodven);
     this.grpBxPedVenda.Controls.Add(this.lblnomecli);
     this.grpBxPedVenda.Controls.Add(this.lblcodcli);
     this.grpBxPedVenda.Controls.Add(this.lblnumPed);
     this.grpBxPedVenda.Font = new System.Drawing.Font("Microsoft Sans Serif", 8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.grpBxPedVenda.ForeColor = System.Drawing.Color.CornflowerBlue;
     this.grpBxPedVenda.Location = new System.Drawing.Point(11, 13);
     this.grpBxPedVenda.Name = "grpBxPedVenda";
     this.grpBxPedVenda.Size = new System.Drawing.Size(949, 130);
     this.grpBxPedVenda.TabIndex = 17;
     this.grpBxPedVenda.TabStop = false;
     this.grpBxPedVenda.Text = "Pedido Venda";
     //
     // txtFrete
     //
     this.txtFrete.BeepOnError = true;
     this.txtFrete.CutCopyMaskFormat = System.Windows.Forms.MaskFormat.ExcludePromptAndLiterals;
     this.txtFrete.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.pEDIDOBindingSource, "VALORFRETE", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged, null, "C2"));
     this.txtFrete.Enabled = false;
     this.txtFrete.InsertKeyMode = System.Windows.Forms.InsertKeyMode.Insert;
     this.txtFrete.Location = new System.Drawing.Point(442, 78);
     this.txtFrete.Name = "txtFrete";
     this.txtFrete.PromptChar = ' ';
     this.txtFrete.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
     this.txtFrete.Size = new System.Drawing.Size(75, 20);
     this.txtFrete.TabIndex = 119;
     this.txtFrete.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
     this.txtFrete.TextMaskFormat = System.Windows.Forms.MaskFormat.ExcludePromptAndLiterals;
     //
     // pEDIDOBindingSource
     //
     this.pEDIDOBindingSource.DataMember = "PEDIDO";
     this.pEDIDOBindingSource.DataSource = this.cOMERCIALDataSet;
     this.pEDIDOBindingSource.PositionChanged += new System.EventHandler(this.pEDIDOBindingSource_PositionChanged);
     //
     // cOMERCIALDataSet
     //
     this.cOMERCIALDataSet.DataSetName = "COMERCIALDataSet";
     this.cOMERCIALDataSet.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
     //
     // lblFrete
     //
     this.lblFrete.AutoSize = true;
     this.lblFrete.Font = new System.Drawing.Font("Microsoft Sans Serif", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.lblFrete.ForeColor = System.Drawing.Color.CadetBlue;
     this.lblFrete.Location = new System.Drawing.Point(440, 63);
     this.lblFrete.Name = "lblFrete";
     this.lblFrete.Size = new System.Drawing.Size(64, 13);
     this.lblFrete.TabIndex = 118;
     this.lblFrete.Text = "Valor Frete :";
     //
     // grpTipoPedido
     //
     this.grpTipoPedido.Controls.Add(this.chkComplemento);
     this.grpTipoPedido.Controls.Add(this.chkNormal);
     this.grpTipoPedido.ForeColor = System.Drawing.Color.CadetBlue;
     this.grpTipoPedido.Location = new System.Drawing.Point(523, 58);
     this.grpTipoPedido.Name = "grpTipoPedido";
     this.grpTipoPedido.Size = new System.Drawing.Size(108, 52);
     this.grpTipoPedido.TabIndex = 90;
     this.grpTipoPedido.TabStop = false;
     this.grpTipoPedido.Text = "Tipo Pedido";
     //
     // chkComplemento
     //
     this.chkComplemento.AutoSize = true;
     this.chkComplemento.Location = new System.Drawing.Point(6, 29);
     this.chkComplemento.Name = "chkComplemento";
     this.chkComplemento.Size = new System.Drawing.Size(98, 17);
     this.chkComplemento.TabIndex = 1;
     this.chkComplemento.Text = "Complemeto ";
     this.chkComplemento.UseVisualStyleBackColor = true;
     this.chkComplemento.CheckedChanged += new System.EventHandler(this.chkComplemento_CheckedChanged);
     //
     // chkNormal
     //
     this.chkNormal.AutoSize = true;
     this.chkNormal.Location = new System.Drawing.Point(6, 14);
     this.chkNormal.Name = "chkNormal";
     this.chkNormal.Size = new System.Drawing.Size(65, 17);
     this.chkNormal.TabIndex = 0;
     this.chkNormal.Text = "Normal";
     this.chkNormal.UseVisualStyleBackColor = true;
     this.chkNormal.CheckedChanged += new System.EventHandler(this.chkNormal_CheckedChanged);
     //
     // grpBxSitPed
     //
     this.grpBxSitPed.Controls.Add(this.chkCancelado);
     this.grpBxSitPed.Controls.Add(this.chkPendente);
     this.grpBxSitPed.Controls.Add(this.chkEfetivado);
     this.grpBxSitPed.ForeColor = System.Drawing.Color.CadetBlue;
     this.grpBxSitPed.Location = new System.Drawing.Point(838, 18);
     this.grpBxSitPed.Name = "grpBxSitPed";
     this.grpBxSitPed.Size = new System.Drawing.Size(91, 85);
     this.grpBxSitPed.TabIndex = 89;
     this.grpBxSitPed.TabStop = false;
     this.grpBxSitPed.Text = "Situação ";
     //
     // chkCancelado
     //
     this.chkCancelado.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                 | System.Windows.Forms.AnchorStyles.Left)
                 | System.Windows.Forms.AnchorStyles.Right)));
     this.chkCancelado.Location = new System.Drawing.Point(6, 54);
     this.chkCancelado.Name = "chkCancelado";
     this.chkCancelado.Size = new System.Drawing.Size(92, 26);
     this.chkCancelado.TabIndex = 50;
     this.chkCancelado.Text = "Cancelado";
     this.chkCancelado.UseVisualStyleBackColor = true;
     //
     // chkPendente
     //
     this.chkPendente.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                 | System.Windows.Forms.AnchorStyles.Left)
                 | System.Windows.Forms.AnchorStyles.Right)));
     this.chkPendente.Checked = true;
     this.chkPendente.CheckState = System.Windows.Forms.CheckState.Checked;
     this.chkPendente.Location = new System.Drawing.Point(6, 32);
     this.chkPendente.Name = "chkPendente";
     this.chkPendente.Size = new System.Drawing.Size(85, 26);
     this.chkPendente.TabIndex = 49;
     this.chkPendente.Text = "Pendente";
     this.chkPendente.UseVisualStyleBackColor = true;
     //
     // chkEfetivado
     //
     this.chkEfetivado.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                 | System.Windows.Forms.AnchorStyles.Left)
                 | System.Windows.Forms.AnchorStyles.Right)));
     this.chkEfetivado.Location = new System.Drawing.Point(6, 10);
     this.chkEfetivado.Name = "chkEfetivado";
     this.chkEfetivado.Size = new System.Drawing.Size(92, 30);
     this.chkEfetivado.TabIndex = 48;
     this.chkEfetivado.Text = "Efetivado";
     this.chkEfetivado.UseVisualStyleBackColor = true;
     //
     // dtpEntrega
     //
     this.dtpEntrega.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.pEDIDOBindingSource, "DATAENTREGA", true));
     this.dtpEntrega.Format = System.Windows.Forms.DateTimePickerFormat.Short;
     this.dtpEntrega.Location = new System.Drawing.Point(742, 76);
     this.dtpEntrega.Name = "dtpEntrega";
     this.dtpEntrega.Size = new System.Drawing.Size(90, 20);
     this.dtpEntrega.TabIndex = 97;
     //
     // label1
     //
     this.label1.AutoSize = true;
     this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label1.ForeColor = System.Drawing.Color.CadetBlue;
     this.label1.Location = new System.Drawing.Point(739, 59);
     this.label1.Name = "label1";
     this.label1.Size = new System.Drawing.Size(73, 13);
     this.label1.TabIndex = 96;
     this.label1.Text = "Data Entrega:";
     //
     // dtpEmissao
     //
     this.dtpEmissao.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.pEDIDOBindingSource, "DATAEMISSAO", true));
     this.dtpEmissao.Enabled = false;
     this.dtpEmissao.Format = System.Windows.Forms.DateTimePickerFormat.Short;
     this.dtpEmissao.Location = new System.Drawing.Point(640, 75);
     this.dtpEmissao.Name = "dtpEmissao";
     this.dtpEmissao.Size = new System.Drawing.Size(96, 20);
     this.dtpEmissao.TabIndex = 92;
     //
     // txtNomeTransportadora
     //
     this.txtNomeTransportadora.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.vENDEDORBindingSource, "NOME", true));
     this.txtNomeTransportadora.Location = new System.Drawing.Point(164, 79);
     this.txtNomeTransportadora.Name = "txtNomeTransportadora";
     this.txtNomeTransportadora.Size = new System.Drawing.Size(184, 20);
     this.txtNomeTransportadora.TabIndex = 94;
     //
     // vENDEDORBindingSource
     //
     this.vENDEDORBindingSource.DataMember = "VENDEDOR";
     this.vENDEDORBindingSource.DataSource = this.cOMERCIALDataSet;
     //
     // lbldtemi
     //
     this.lbldtemi.AutoSize = true;
     this.lbldtemi.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.lbldtemi.ForeColor = System.Drawing.Color.CadetBlue;
     this.lbldtemi.Location = new System.Drawing.Point(637, 57);
     this.lbldtemi.Name = "lbldtemi";
     this.lbldtemi.Size = new System.Drawing.Size(75, 13);
     this.lbldtemi.TabIndex = 91;
     this.lbldtemi.Text = "Data Emissão:";
     //
     // lblNomeTransportadora
     //
     this.lblNomeTransportadora.AutoSize = true;
     this.lblNomeTransportadora.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.lblNomeTransportadora.ForeColor = System.Drawing.Color.CadetBlue;
     this.lblNomeTransportadora.Location = new System.Drawing.Point(161, 62);
     this.lblNomeTransportadora.Name = "lblNomeTransportadora";
     this.lblNomeTransportadora.Size = new System.Drawing.Size(184, 13);
     this.lblNomeTransportadora.TabIndex = 93;
     this.lblNomeTransportadora.Text = "Nome / Razão Social Transportadora";
     //
     // txtNomeVendedor
     //
     this.txtNomeVendedor.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.vENDEDORBindingSource, "NOME", true));
     this.txtNomeVendedor.Location = new System.Drawing.Point(595, 34);
     this.txtNomeVendedor.Name = "txtNomeVendedor";
     this.txtNomeVendedor.Size = new System.Drawing.Size(237, 20);
     this.txtNomeVendedor.TabIndex = 84;
     //
     // txtNomeCliente
     //
     this.txtNomeCliente.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.cLIENTEBindingSource, "RAZAOSOCIAL", true));
     this.txtNomeCliente.Location = new System.Drawing.Point(233, 36);
     this.txtNomeCliente.Name = "txtNomeCliente";
     this.txtNomeCliente.Size = new System.Drawing.Size(219, 20);
     this.txtNomeCliente.TabIndex = 82;
     //
     // cLIENTEBindingSource
     //
     this.cLIENTEBindingSource.DataMember = "CLIENTE";
     this.cLIENTEBindingSource.DataSource = this.cOMERCIALDataSet;
     //
     // txtPedido
     //
     this.txtPedido.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.pEDIDOBindingSource, "NRPEDIDO", true));
     this.txtPedido.Enabled = false;
     this.txtPedido.Location = new System.Drawing.Point(14, 37);
     this.txtPedido.Name = "txtPedido";
     this.txtPedido.Size = new System.Drawing.Size(80, 20);
     this.txtPedido.TabIndex = 18;
     //
     // lbltpfre
     //
     this.lbltpfre.AutoSize = true;
     this.lbltpfre.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.lbltpfre.ForeColor = System.Drawing.Color.CadetBlue;
     this.lbltpfre.Location = new System.Drawing.Point(11, 65);
     this.lbltpfre.Name = "lbltpfre";
     this.lbltpfre.Size = new System.Drawing.Size(97, 13);
     this.lbltpfre.TabIndex = 73;
     this.lbltpfre.Text = "Transportadora:";
     //
     // lblcondp
     //
     this.lblcondp.AutoSize = true;
     this.lblcondp.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.lblcondp.ForeColor = System.Drawing.Color.CadetBlue;
     this.lblcondp.Location = new System.Drawing.Point(355, 62);
     this.lblcondp.Name = "lblcondp";
     this.lblcondp.Size = new System.Drawing.Size(74, 13);
     this.lblcondp.TabIndex = 70;
     this.lblcondp.Text = "Cond. Pgto:";
     //
     // lblnomven
     //
     this.lblnomven.AutoSize = true;
     this.lblnomven.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.lblnomven.ForeColor = System.Drawing.Color.CadetBlue;
     this.lblnomven.Location = new System.Drawing.Point(592, 16);
     this.lblnomven.Name = "lblnomven";
     this.lblnomven.Size = new System.Drawing.Size(161, 13);
     this.lblnomven.TabIndex = 68;
     this.lblnomven.Text = "Nome / Razão Social Vendedor:";
     //
     // lclcodven
     //
     this.lclcodven.AutoSize = true;
     this.lclcodven.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.lclcodven.ForeColor = System.Drawing.Color.CadetBlue;
     this.lclcodven.Location = new System.Drawing.Point(454, 18);
     this.lclcodven.Name = "lclcodven";
     this.lclcodven.Size = new System.Drawing.Size(108, 13);
     this.lclcodven.TabIndex = 65;
     this.lclcodven.Text = "Código Vendedor:";
     //
     // lblnomecli
     //
     this.lblnomecli.AutoSize = true;
     this.lblnomecli.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.lblnomecli.ForeColor = System.Drawing.Color.CadetBlue;
     this.lblnomecli.Location = new System.Drawing.Point(230, 20);
     this.lblnomecli.Name = "lblnomecli";
     this.lblnomecli.Size = new System.Drawing.Size(147, 13);
     this.lblnomecli.TabIndex = 57;
     this.lblnomecli.Text = "Nome / Razão Social Cliente:";
     //
     // lblcodcli
     //
     this.lblcodcli.AutoSize = true;
     this.lblcodcli.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.lblcodcli.ForeColor = System.Drawing.Color.CadetBlue;
     this.lblcodcli.Location = new System.Drawing.Point(101, 20);
     this.lblcodcli.Name = "lblcodcli";
     this.lblcodcli.Size = new System.Drawing.Size(93, 13);
     this.lblcodcli.TabIndex = 54;
     this.lblcodcli.Text = "Código Cliente:";
     //
     // lblnumPed
     //
     this.lblnumPed.AutoSize = true;
     this.lblnumPed.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.lblnumPed.ForeColor = System.Drawing.Color.CadetBlue;
     this.lblnumPed.Location = new System.Drawing.Point(11, 20);
     this.lblnumPed.Name = "lblnumPed";
     this.lblnumPed.Size = new System.Drawing.Size(83, 13);
     this.lblnumPed.TabIndex = 52;
     this.lblnumPed.Text = "Numero Pedido:";
     //
     // grpBxItPedVen
     //
     this.grpBxItPedVen.Controls.Add(this.lblValortotal);
     this.grpBxItPedVen.Controls.Add(this.lblValortotalPed);
     this.grpBxItPedVen.Controls.Add(this.txtValorTotal);
     this.grpBxItPedVen.Controls.Add(this.lblTotal);
     this.grpBxItPedVen.Controls.Add(this.txtQtdItem);
     this.grpBxItPedVen.Controls.Add(this.LblqtdItem);
     this.grpBxItPedVen.Controls.Add(this.txtProduto);
     this.grpBxItPedVen.Controls.Add(this.btnAdditen);
     this.grpBxItPedVen.Controls.Add(this.lblDesconto);
     this.grpBxItPedVen.Controls.Add(this.txtDesconto);
     this.grpBxItPedVen.Controls.Add(this.pnlItenped);
     this.grpBxItPedVen.Controls.Add(this.txtipi);
     this.grpBxItPedVen.Controls.Add(this.LblIPI);
     this.grpBxItPedVen.Controls.Add(this.txtPrcUnit);
     this.grpBxItPedVen.Controls.Add(this.LblPrcVen);
     this.grpBxItPedVen.Controls.Add(this.txtEstAtual);
     this.grpBxItPedVen.Controls.Add(this.LblEstAtu);
     this.grpBxItPedVen.Controls.Add(this.txtUM);
     this.grpBxItPedVen.Controls.Add(this.LblUm);
     this.grpBxItPedVen.Controls.Add(this.txtDescprod);
     this.grpBxItPedVen.Controls.Add(this.LbDescProd);
     this.grpBxItPedVen.Controls.Add(this.lblCodProd);
     this.grpBxItPedVen.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.grpBxItPedVen.ForeColor = System.Drawing.Color.CornflowerBlue;
     this.grpBxItPedVen.Location = new System.Drawing.Point(11, 145);
     this.grpBxItPedVen.Name = "grpBxItPedVen";
     this.grpBxItPedVen.Size = new System.Drawing.Size(918, 347);
     this.grpBxItPedVen.TabIndex = 16;
     this.grpBxItPedVen.TabStop = false;
     this.grpBxItPedVen.Text = "Itens Pedido Venda";
     //
     // lblValortotal
     //
     this.lblValortotal.AutoSize = true;
     this.lblValortotal.Location = new System.Drawing.Point(800, 319);
     this.lblValortotal.Name = "lblValortotal";
     this.lblValortotal.Size = new System.Drawing.Size(0, 13);
     this.lblValortotal.TabIndex = 114;
     //
     // lblValortotalPed
     //
     this.lblValortotalPed.AutoSize = true;
     this.lblValortotalPed.Location = new System.Drawing.Point(676, 319);
     this.lblValortotalPed.Name = "lblValortotalPed";
     this.lblValortotalPed.Size = new System.Drawing.Size(116, 13);
     this.lblValortotalPed.TabIndex = 113;
     this.lblValortotalPed.Text = "Valor Total Pedido:";
     //
     // txtValorTotal
     //
     this.txtValorTotal.Location = new System.Drawing.Point(758, 283);
     this.txtValorTotal.Name = "txtValorTotal";
     this.txtValorTotal.Size = new System.Drawing.Size(70, 20);
     this.txtValorTotal.TabIndex = 110;
     //
     // lblTotal
     //
     this.lblTotal.AutoSize = true;
     this.lblTotal.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.lblTotal.ForeColor = System.Drawing.Color.CadetBlue;
     this.lblTotal.Location = new System.Drawing.Point(755, 267);
     this.lblTotal.Name = "lblTotal";
     this.lblTotal.Size = new System.Drawing.Size(77, 13);
     this.lblTotal.TabIndex = 112;
     this.lblTotal.Text = "Valor Total :";
     //
     // txtQtdItem
     //
     this.txtQtdItem.Location = new System.Drawing.Point(679, 283);
     this.txtQtdItem.Name = "txtQtdItem";
     this.txtQtdItem.Size = new System.Drawing.Size(70, 20);
     this.txtQtdItem.TabIndex = 109;
     this.txtQtdItem.TextChanged += new System.EventHandler(this.txtQtdItem_TextChanged);
     //
     // LblqtdItem
     //
     this.LblqtdItem.AutoSize = true;
     this.LblqtdItem.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.LblqtdItem.ForeColor = System.Drawing.Color.CadetBlue;
     this.LblqtdItem.Location = new System.Drawing.Point(676, 267);
     this.LblqtdItem.Name = "LblqtdItem";
     this.LblqtdItem.Size = new System.Drawing.Size(76, 13);
     this.LblqtdItem.TabIndex = 111;
     this.LblqtdItem.Text = "Quantidade:";
     //
     // btnAdditen
     //
     this.btnAdditen.Image = ((System.Drawing.Image)(resources.GetObject("btnAdditen.Image")));
     this.btnAdditen.Location = new System.Drawing.Point(835, 283);
     this.btnAdditen.Name = "btnAdditen";
     this.btnAdditen.Size = new System.Drawing.Size(37, 23);
     this.btnAdditen.TabIndex = 107;
     this.btnAdditen.UseVisualStyleBackColor = true;
     this.btnAdditen.Click += new System.EventHandler(this.btnAdditen_Click);
     //
     // lblDesconto
     //
     this.lblDesconto.AutoSize = true;
     this.lblDesconto.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.lblDesconto.ForeColor = System.Drawing.Color.CadetBlue;
     this.lblDesconto.Location = new System.Drawing.Point(609, 267);
     this.lblDesconto.Name = "lblDesconto";
     this.lblDesconto.Size = new System.Drawing.Size(53, 13);
     this.lblDesconto.TabIndex = 105;
     this.lblDesconto.Text = "Desconto";
     //
     // txtDesconto
     //
     this.txtDesconto.Location = new System.Drawing.Point(609, 283);
     this.txtDesconto.Name = "txtDesconto";
     this.txtDesconto.Size = new System.Drawing.Size(61, 20);
     this.txtDesconto.TabIndex = 104;
     //
     // pnlItenped
     //
     this.pnlItenped.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
     this.pnlItenped.Controls.Add(this.dtgrdvItenspven);
     this.pnlItenped.Location = new System.Drawing.Point(39, 19);
     this.pnlItenped.Name = "pnlItenped";
     this.pnlItenped.Size = new System.Drawing.Size(867, 235);
     this.pnlItenped.TabIndex = 100;
     //
     // dtgrdvItenspven
     //
     this.dtgrdvItenspven.AllowUserToAddRows = false;
     this.dtgrdvItenspven.AllowUserToDeleteRows = false;
     this.dtgrdvItenspven.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
     this.dtgrdvItenspven.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
     this.Delete,
     this.ClmItem,
     this.ColProd,
     this.ClmDescProd,
     this.ClmQtde,
     this.QUANTIDADELIB,
     this.ClmPrcUnit,
     this.ClmIPI,
     this.ColDesconto,
     this.ColTotal,
     this.Status});
     this.dtgrdvItenspven.Dock = System.Windows.Forms.DockStyle.Fill;
     this.dtgrdvItenspven.GridColor = System.Drawing.Color.WhiteSmoke;
     this.dtgrdvItenspven.Location = new System.Drawing.Point(0, 0);
     this.dtgrdvItenspven.Name = "dtgrdvItenspven";
     this.dtgrdvItenspven.ReadOnly = true;
     this.dtgrdvItenspven.Size = new System.Drawing.Size(867, 235);
     this.dtgrdvItenspven.TabIndex = 25;
     this.dtgrdvItenspven.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dtgrdvItenspven_CellClick);
     //
     // txtipi
     //
     this.txtipi.Location = new System.Drawing.Point(533, 284);
     this.txtipi.Name = "txtipi";
     this.txtipi.Size = new System.Drawing.Size(70, 20);
     this.txtipi.TabIndex = 20;
     //
     // LblIPI
     //
     this.LblIPI.AutoSize = true;
     this.LblIPI.Font = new System.Drawing.Font("Microsoft Sans Serif", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.LblIPI.ForeColor = System.Drawing.Color.CadetBlue;
     this.LblIPI.Location = new System.Drawing.Point(530, 268);
     this.LblIPI.Name = "LblIPI";
     this.LblIPI.Size = new System.Drawing.Size(37, 13);
     this.LblIPI.TabIndex = 94;
     this.LblIPI.Text = "IPI % :";
     //
     // txtPrcUnit
     //
     this.txtPrcUnit.Location = new System.Drawing.Point(454, 284);
     this.txtPrcUnit.Name = "txtPrcUnit";
     this.txtPrcUnit.Size = new System.Drawing.Size(70, 20);
     this.txtPrcUnit.TabIndex = 16;
     //
     // LblPrcVen
     //
     this.LblPrcVen.AutoSize = true;
     this.LblPrcVen.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.LblPrcVen.ForeColor = System.Drawing.Color.CadetBlue;
     this.LblPrcVen.Location = new System.Drawing.Point(451, 268);
     this.LblPrcVen.Name = "LblPrcVen";
     this.LblPrcVen.Size = new System.Drawing.Size(80, 13);
     this.LblPrcVen.TabIndex = 84;
     this.LblPrcVen.Text = "Preço Venda";
     //
     // txtEstAtual
     //
     this.txtEstAtual.Location = new System.Drawing.Point(375, 284);
     this.txtEstAtual.Name = "txtEstAtual";
     this.txtEstAtual.Size = new System.Drawing.Size(70, 20);
     this.txtEstAtual.TabIndex = 15;
     //
     // LblEstAtu
     //
     this.LblEstAtu.AutoSize = true;
     this.LblEstAtu.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.LblEstAtu.ForeColor = System.Drawing.Color.CadetBlue;
     this.LblEstAtu.Location = new System.Drawing.Point(372, 268);
     this.LblEstAtu.Name = "LblEstAtu";
     this.LblEstAtu.Size = new System.Drawing.Size(73, 13);
     this.LblEstAtu.TabIndex = 82;
     this.LblEstAtu.Text = "Estoque Atual";
     //
     // txtUM
     //
     this.txtUM.Location = new System.Drawing.Point(331, 284);
     this.txtUM.Name = "txtUM";
     this.txtUM.Size = new System.Drawing.Size(38, 20);
     this.txtUM.TabIndex = 14;
     //
     // LblUm
     //
     this.LblUm.AutoSize = true;
     this.LblUm.Font = new System.Drawing.Font("Microsoft Sans Serif", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.LblUm.ForeColor = System.Drawing.Color.CadetBlue;
     this.LblUm.Location = new System.Drawing.Point(328, 268);
     this.LblUm.Name = "LblUm";
     this.LblUm.Size = new System.Drawing.Size(24, 13);
     this.LblUm.TabIndex = 80;
     this.LblUm.Text = "UM";
     //
     // txtDescprod
     //
     this.txtDescprod.Location = new System.Drawing.Point(140, 284);
     this.txtDescprod.Name = "txtDescprod";
     this.txtDescprod.Size = new System.Drawing.Size(185, 20);
     this.txtDescprod.TabIndex = 13;
     //
     // LbDescProd
     //
     this.LbDescProd.AutoSize = true;
     this.LbDescProd.Font = new System.Drawing.Font("Microsoft Sans Serif", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.LbDescProd.ForeColor = System.Drawing.Color.CadetBlue;
     this.LbDescProd.Location = new System.Drawing.Point(137, 267);
     this.LbDescProd.Name = "LbDescProd";
     this.LbDescProd.Size = new System.Drawing.Size(95, 13);
     this.LbDescProd.TabIndex = 78;
     this.LbDescProd.Text = "Descrição Produto";
     //
     // lblCodProd
     //
     this.lblCodProd.AutoSize = true;
     this.lblCodProd.Font = new System.Drawing.Font("Microsoft Sans Serif", 8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.lblCodProd.ForeColor = System.Drawing.Color.CadetBlue;
     this.lblCodProd.Location = new System.Drawing.Point(44, 268);
     this.lblCodProd.Name = "lblCodProd";
     this.lblCodProd.Size = new System.Drawing.Size(94, 13);
     this.lblCodProd.TabIndex = 75;
     this.lblCodProd.Text = "Código Produto";
     //
     // dataGridViewImageColumn2
     //
     this.dataGridViewImageColumn2.HeaderText = "";
     this.dataGridViewImageColumn2.Name = "dataGridViewImageColumn2";
     this.dataGridViewImageColumn2.Resizable = System.Windows.Forms.DataGridViewTriState.True;
     this.dataGridViewImageColumn2.Width = 25;
     //
     // pRODUTOBindingSource
     //
     this.pRODUTOBindingSource.DataMember = "PRODUTO";
     this.pRODUTOBindingSource.DataSource = this.cOMERCIALDataSet;
     //
     // iTEMPEDIDOBindingSource
     //
     this.iTEMPEDIDOBindingSource.DataMember = "ITEMPEDIDO";
     this.iTEMPEDIDOBindingSource.DataSource = this.cOMERCIALDataSet;
     //
     // tRANSPORTADORABindingSource
     //
     this.tRANSPORTADORABindingSource.DataMember = "TRANSPORTADORA";
     this.tRANSPORTADORABindingSource.DataSource = this.cOMERCIALDataSet;
     //
     // cONDICAOPAGAMENTOBindingSource
     //
     this.cONDICAOPAGAMENTOBindingSource.DataMember = "CONDICAOPAGAMENTO";
     this.cONDICAOPAGAMENTOBindingSource.DataSource = this.cOMERCIALDataSet;
     //
     // pEDIDOTableAdapter
     //
     this.pEDIDOTableAdapter.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 = this.pEDIDOTableAdapter;
     this.tableAdapterManager.PRODUTOTableAdapter = null;
     this.tableAdapterManager.REGIAOTableAdapter = null;
     this.tableAdapterManager.TRANSPORTADORATableAdapter = this.tRANSPORTADORATableAdapter;
     this.tableAdapterManager.TRANSPORTADORAVIATableAdapter = null;
     this.tableAdapterManager.UNIDADEMEDIDATableAdapter = null;
     this.tableAdapterManager.UpdateOrder = Comercial.COMERCIALDataSetTableAdapters.TableAdapterManager.UpdateOrderOption.InsertUpdateDelete;
     this.tableAdapterManager.USUARIOTableAdapter = null;
     this.tableAdapterManager.VENDEDORTableAdapter = this.vENDEDORTableAdapter;
     this.tableAdapterManager.VIATRANSPORTETableAdapter = null;
     //
     // tRANSPORTADORATableAdapter
     //
     this.tRANSPORTADORATableAdapter.ClearBeforeFill = true;
     //
     // vENDEDORTableAdapter
     //
     this.vENDEDORTableAdapter.ClearBeforeFill = true;
     //
     // cLIENTETableAdapter
     //
     this.cLIENTETableAdapter.ClearBeforeFill = true;
     //
     // cONDICAOPAGAMENTOTableAdapter
     //
     this.cONDICAOPAGAMENTOTableAdapter.ClearBeforeFill = true;
     //
     // iTEMPEDIDOTableAdapter
     //
     this.iTEMPEDIDOTableAdapter.ClearBeforeFill = true;
     //
     // pRODUTOTableAdapter
     //
     this.pRODUTOTableAdapter.ClearBeforeFill = true;
     //
     // txtCodTransportadora
     //
     this.txtCodTransportadora.getText = "";
     this.txtCodTransportadora.Image = ((System.Drawing.Image)(resources.GetObject("txtCodTransportadora.Image")));
     this.txtCodTransportadora.Location = new System.Drawing.Point(14, 79);
     this.txtCodTransportadora.Name = "txtCodTransportadora";
     this.txtCodTransportadora.ShowButton = false;
     this.txtCodTransportadora.Size = new System.Drawing.Size(144, 25);
     this.txtCodTransportadora.TabIndex = 95;
     this.txtCodTransportadora.ButtonClick += new System.EventHandler(this.txtCodTransportadora_ButtonClick);
     //
     // txtCondPagto
     //
     this.txtCondPagto.getText = "";
     this.txtCondPagto.Image = ((System.Drawing.Image)(resources.GetObject("txtCondPagto.Image")));
     this.txtCondPagto.Location = new System.Drawing.Point(358, 78);
     this.txtCondPagto.Name = "txtCondPagto";
     this.txtCondPagto.ShowButton = false;
     this.txtCondPagto.Size = new System.Drawing.Size(71, 25);
     this.txtCondPagto.TabIndex = 92;
     this.txtCondPagto.ButtonClick += new System.EventHandler(this.txtCondPagto_ButtonClick);
     //
     // txtCodVendedor
     //
     this.txtCodVendedor.getText = "";
     this.txtCodVendedor.Image = ((System.Drawing.Image)(resources.GetObject("txtCodVendedor.Image")));
     this.txtCodVendedor.Location = new System.Drawing.Point(457, 34);
     this.txtCodVendedor.Name = "txtCodVendedor";
     this.txtCodVendedor.ShowButton = false;
     this.txtCodVendedor.Size = new System.Drawing.Size(132, 25);
     this.txtCodVendedor.TabIndex = 91;
     this.txtCodVendedor.ButtonClick += new System.EventHandler(this.txtCodVendedor_ButtonClick);
     //
     // txtcodCli
     //
     this.txtcodCli.getText = "";
     this.txtcodCli.Image = ((System.Drawing.Image)(resources.GetObject("txtcodCli.Image")));
     this.txtcodCli.Location = new System.Drawing.Point(100, 37);
     this.txtcodCli.Name = "txtcodCli";
     this.txtcodCli.ShowButton = false;
     this.txtcodCli.Size = new System.Drawing.Size(127, 25);
     this.txtcodCli.TabIndex = 90;
     this.txtcodCli.ButtonClick += new System.EventHandler(this.txtcodCli_ButtonClick);
     //
     // txtProduto
     //
     this.txtProduto.getText = "";
     this.txtProduto.Image = ((System.Drawing.Image)(resources.GetObject("txtProduto.Image")));
     this.txtProduto.Location = new System.Drawing.Point(45, 284);
     this.txtProduto.Name = "txtProduto";
     this.txtProduto.ShowButton = false;
     this.txtProduto.Size = new System.Drawing.Size(84, 25);
     this.txtProduto.TabIndex = 108;
     this.txtProduto.ButtonClick += new System.EventHandler(this.txtProduto_ButtonClick);
     //
     // Delete
     //
     this.Delete.HeaderText = "";
     this.Delete.Image = ((System.Drawing.Image)(resources.GetObject("Delete.Image")));
     this.Delete.Name = "Delete";
     this.Delete.ReadOnly = true;
     this.Delete.Resizable = System.Windows.Forms.DataGridViewTriState.True;
     this.Delete.Width = 25;
     //
     // ClmItem
     //
     this.ClmItem.DataPropertyName = "ITEM";
     this.ClmItem.HeaderText = "Item";
     this.ClmItem.Name = "ClmItem";
     this.ClmItem.ReadOnly = true;
     this.ClmItem.Width = 35;
     //
     // ColProd
     //
     this.ColProd.DataPropertyName = "CODPRODUTO";
     this.ColProd.HeaderText = "Codigo Produto";
     this.ColProd.Name = "ColProd";
     this.ColProd.ReadOnly = true;
     //
     // ClmDescProd
     //
     this.ClmDescProd.DataPropertyName = "DESCRICAO";
     this.ClmDescProd.HeaderText = "Descrição Produto";
     this.ClmDescProd.Name = "ClmDescProd";
     this.ClmDescProd.ReadOnly = true;
     this.ClmDescProd.Width = 125;
     //
     // ClmQtde
     //
     this.ClmQtde.DataPropertyName = "QUANTIDADE";
     this.ClmQtde.HeaderText = "Quantidade";
     this.ClmQtde.Name = "ClmQtde";
     this.ClmQtde.ReadOnly = true;
     //
     // QUANTIDADELIB
     //
     this.QUANTIDADELIB.DataPropertyName = "QUANTIDADELIB";
     this.QUANTIDADELIB.HeaderText = "QtdeLib";
     this.QUANTIDADELIB.Name = "QUANTIDADELIB";
     this.QUANTIDADELIB.ReadOnly = true;
     this.QUANTIDADELIB.Visible = false;
     //
     // ClmPrcUnit
     //
     this.ClmPrcUnit.DataPropertyName = "VALOR";
     dataGridViewCellStyle1.Format = "C2";
     dataGridViewCellStyle1.NullValue = null;
     this.ClmPrcUnit.DefaultCellStyle = dataGridViewCellStyle1;
     this.ClmPrcUnit.HeaderText = "Preço Unitário";
     this.ClmPrcUnit.Name = "ClmPrcUnit";
     this.ClmPrcUnit.ReadOnly = true;
     //
     // ClmIPI
     //
     this.ClmIPI.DataPropertyName = "IPI";
     dataGridViewCellStyle2.Format = "N2";
     dataGridViewCellStyle2.NullValue = null;
     this.ClmIPI.DefaultCellStyle = dataGridViewCellStyle2;
     this.ClmIPI.HeaderText = "% IPI";
     this.ClmIPI.Name = "ClmIPI";
     this.ClmIPI.ReadOnly = true;
     //
     // ColDesconto
     //
     this.ColDesconto.DataPropertyName = "DESCONTO";
     this.ColDesconto.HeaderText = "Desconto";
     this.ColDesconto.Name = "ColDesconto";
     this.ColDesconto.ReadOnly = true;
     //
     // ColTotal
     //
     this.ColTotal.DataPropertyName = "VALORTOTAL";
     dataGridViewCellStyle3.Format = "C2";
     dataGridViewCellStyle3.NullValue = null;
     this.ColTotal.DefaultCellStyle = dataGridViewCellStyle3;
     this.ColTotal.HeaderText = "Valor Total";
     this.ColTotal.Name = "ColTotal";
     this.ColTotal.ReadOnly = true;
     //
     // Status
     //
     this.Status.DataPropertyName = "Status";
     this.Status.HeaderText = "Status";
     this.Status.Name = "Status";
     this.Status.ReadOnly = true;
     //
     // FrmCadPed
     //
     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(1023, 548);
     this.Controls.Add(this.tbCntrlPedVend);
     this.ForeColor = System.Drawing.Color.WhiteSmoke;
     this.MaximizeBox = false;
     this.MinimizeBox = false;
     this.Name = "FrmCadPed";
     this.Text = "FrmCadPed";
     this.Shown += new System.EventHandler(this.FrmCadPed_Shown);
     this.tbCntrlPedVend.ResumeLayout(false);
     this.tabPage1.ResumeLayout(false);
     this.grpBxPedVenda.ResumeLayout(false);
     this.grpBxPedVenda.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.pEDIDOBindingSource)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.cOMERCIALDataSet)).EndInit();
     this.grpTipoPedido.ResumeLayout(false);
     this.grpTipoPedido.PerformLayout();
     this.grpBxSitPed.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.vENDEDORBindingSource)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.cLIENTEBindingSource)).EndInit();
     this.grpBxItPedVen.ResumeLayout(false);
     this.grpBxItPedVen.PerformLayout();
     this.pnlItenped.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.dtgrdvItenspven)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.pRODUTOBindingSource)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.iTEMPEDIDOBindingSource)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.tRANSPORTADORABindingSource)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.cONDICAOPAGAMENTOBindingSource)).EndInit();
     this.ResumeLayout(false);
 }
Пример #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);
 }
Пример #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
            {

            }
        }