Esempio n. 1
0
        public int SalvarPedidoCab()
        {
            DataRowView objPedido;
            objPedido = (DataRowView)pEDIDOBindingSource.Current;

            if (chkEfetivado.Checked)
            {
                objPedido["SITUACAO"] = "E";
            }
            else if (chkCancelado.Checked)
            {
                objPedido["SITUACAO"] = "C";
            }
            else
            {
                objPedido["SITUACAO"] = "P";
            }

            if (chkNormal.Checked)
            {

                objPedido["TIPO"] = "N";
            }
            else
            {
                objPedido["TIPO"] = "C";
            }

            objPedido["DATAEMISSAO"] = DateTime.Now.ToString("dd/MM/yyyy");
            objPedido["DATAENTREGA"] = Convert.ToDateTime(dtpEntrega.Value).ToString("dd/MM/yyyy");
            objPedido["CODCLIENTE"] = txtcodCli.getText;
            objPedido["CODVENDEDOR"] = txtCodVendedor.getText;
            objPedido["CODCONDICAOPAGAMENTO"] = txtCondPagto.getText;
            objPedido["CODTRANSPORTADORA"] = txtCodTransportadora.getText;
            string ValorFrete = txtFrete.Text.Replace("R$", "").Replace(".", "");
            //txtFrete.Text = string.Format("{0:C2}", Convert.ToDouble(txtFrete.Text));
            objPedido["VALORFRETE"] = ValorFrete;

            if (dtgrdvItenspven.RowCount == 0)
            {
                MessageBox.Show("Operação Cancelada, pois não existe itens para este pedido.", "Erro", MessageBoxButtons.OK, MessageBoxIcon.Error);

                return 1;
            }
            else
            {
                COMERCIALDataSetTableAdapters.PEDIDOTableAdapter table = new Comercial.COMERCIALDataSetTableAdapters.PEDIDOTableAdapter();
                table.Insert(Convert.ToString(objPedido["TIPO"].ToString()),
                       Convert.ToDateTime(objPedido["DATAEMISSAO"].ToString()),
                       Convert.ToDateTime(objPedido["DATAENTREGA"].ToString()),
                       Convert.ToInt32(objPedido["CODCONDICAOPAGAMENTO"].ToString()),
                       Convert.ToString(objPedido["SITUACAO"].ToString()),
                       Convert.ToString(objPedido["CODVENDEDOR"].ToString()),
                       Convert.ToString(objPedido["CODCLIENTE"].ToString()),
                       Convert.ToString(objPedido["CODTRANSPORTADORA"].ToString()),
                       Convert.ToDouble(objPedido["VALORFRETE"].ToString()));

                this.SalvarPedidoDeta();

                return 0;
            }
        }
 /// <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(FrmConPDV));
     System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
     System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
     System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = 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();
     System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
     System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
     this.tbCntrlConPDV = new System.Windows.Forms.TabControl();
     this.tbPgConCli = new System.Windows.Forms.TabPage();
     this.grpSituacao = new System.Windows.Forms.GroupBox();
     this.label2 = new System.Windows.Forms.Label();
     this.label1 = new System.Windows.Forms.Label();
     this.lblteztoPendente = new System.Windows.Forms.Label();
     this.lblPendente = new System.Windows.Forms.Label();
     this.lblCancelado = new System.Windows.Forms.Label();
     this.lblEfetivado = new System.Windows.Forms.Label();
     this.grpBxFiltro = new System.Windows.Forms.GroupBox();
     this.grpBxTpRel = new System.Windows.Forms.GroupBox();
     this.rdbProd = new System.Windows.Forms.RadioButton();
     this.rdbped = new System.Windows.Forms.RadioButton();
     this.grpBxCli = new System.Windows.Forms.GroupBox();
     this.txtCodProd = new Comercial.TextButton();
     this.txtDesc = new System.Windows.Forms.TextBox();
     this.lblNome = new System.Windows.Forms.Label();
     this.lblCodCli = new System.Windows.Forms.Label();
     this.grpBxPedido = new System.Windows.Forms.GroupBox();
     this.txtCodPed = new System.Windows.Forms.TextBox();
     this.cmBxTipoPed = new System.Windows.Forms.ComboBox();
     this.groupBox2 = new System.Windows.Forms.GroupBox();
     this.rdbtnCancelado = new System.Windows.Forms.RadioButton();
     this.checkBox1 = new System.Windows.Forms.CheckBox();
     this.rdbtnPendente = new System.Windows.Forms.RadioButton();
     this.rdbtnEfetivado = new System.Windows.Forms.RadioButton();
     this.dttmDataPedidoate = new System.Windows.Forms.DateTimePicker();
     this.dttmDataPedido = new System.Windows.Forms.DateTimePicker();
     this.lblDataate = new System.Windows.Forms.Label();
     this.lblDataPed = new System.Windows.Forms.Label();
     this.lblCod = new System.Windows.Forms.Label();
     this.lblTipoPed = new System.Windows.Forms.Label();
     this.dtGrdConPDV = new System.Windows.Forms.DataGridView();
     this.iTEMPEDIDOBindingSource = new System.Windows.Forms.BindingSource(this.components);
     this.cOMERCIALDataSet = new Comercial.COMERCIALDataSet();
     this.iTEMPEDIDOTableAdapter = new Comercial.COMERCIALDataSetTableAdapters.ITEMPEDIDOTableAdapter();
     this.tableAdapterManager = new Comercial.COMERCIALDataSetTableAdapters.TableAdapterManager();
     this.pEDIDOTableAdapter = new Comercial.COMERCIALDataSetTableAdapters.PEDIDOTableAdapter();
     this.pEDIDOBindingSource = new System.Windows.Forms.BindingSource(this.components);
     this.ColStatus = new System.Windows.Forms.DataGridViewImageColumn();
     this.ClmnCodPed = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.ClmnDtPed = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.ColSituacao = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.Cliente = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.DtEmissão = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.ColDtEntrega = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.ColCodProd = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.ColDescricao = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.ColQuantidade = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.ColQtdeLib = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.ClmnValPed = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.ColValorTotal = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.ColVALORFRETE = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.ColDesconto = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.tbCntrlConPDV.SuspendLayout();
     this.tbPgConCli.SuspendLayout();
     this.grpSituacao.SuspendLayout();
     this.grpBxFiltro.SuspendLayout();
     this.grpBxTpRel.SuspendLayout();
     this.grpBxCli.SuspendLayout();
     this.grpBxPedido.SuspendLayout();
     this.groupBox2.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.dtGrdConPDV)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.iTEMPEDIDOBindingSource)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.cOMERCIALDataSet)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.pEDIDOBindingSource)).BeginInit();
     this.SuspendLayout();
     //
     // tbCntrlConPDV
     //
     this.tbCntrlConPDV.Controls.Add(this.tbPgConCli);
     this.tbCntrlConPDV.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.tbCntrlConPDV.Location = new System.Drawing.Point(12, 12);
     this.tbCntrlConPDV.Name = "tbCntrlConPDV";
     this.tbCntrlConPDV.SelectedIndex = 0;
     this.tbCntrlConPDV.Size = new System.Drawing.Size(1000, 464);
     this.tbCntrlConPDV.TabIndex = 1;
     //
     // tbPgConCli
     //
     this.tbPgConCli.AutoScroll = true;
     this.tbPgConCli.Controls.Add(this.grpSituacao);
     this.tbPgConCli.Controls.Add(this.grpBxFiltro);
     this.tbPgConCli.Controls.Add(this.dtGrdConPDV);
     this.tbPgConCli.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.tbPgConCli.ForeColor = System.Drawing.Color.CadetBlue;
     this.tbPgConCli.Location = new System.Drawing.Point(4, 22);
     this.tbPgConCli.Name = "tbPgConCli";
     this.tbPgConCli.Padding = new System.Windows.Forms.Padding(3);
     this.tbPgConCli.Size = new System.Drawing.Size(992, 438);
     this.tbPgConCli.TabIndex = 0;
     this.tbPgConCli.Text = "Consulta Pedido de Venda - Pedido / Cliente";
     this.tbPgConCli.UseVisualStyleBackColor = true;
     this.tbPgConCli.Click += new System.EventHandler(this.tbPgConCli_Click);
     //
     // grpSituacao
     //
     this.grpSituacao.Controls.Add(this.label2);
     this.grpSituacao.Controls.Add(this.label1);
     this.grpSituacao.Controls.Add(this.lblteztoPendente);
     this.grpSituacao.Controls.Add(this.lblPendente);
     this.grpSituacao.Controls.Add(this.lblCancelado);
     this.grpSituacao.Controls.Add(this.lblEfetivado);
     this.grpSituacao.ForeColor = System.Drawing.Color.CadetBlue;
     this.grpSituacao.Location = new System.Drawing.Point(858, 113);
     this.grpSituacao.Name = "grpSituacao";
     this.grpSituacao.Size = new System.Drawing.Size(123, 91);
     this.grpSituacao.TabIndex = 5;
     this.grpSituacao.TabStop = false;
     this.grpSituacao.Text = "Legenda";
     //
     // label2
     //
     this.label2.AutoSize = true;
     this.label2.Location = new System.Drawing.Point(33, 65);
     this.label2.Name = "label2";
     this.label2.Size = new System.Drawing.Size(58, 13);
     this.label2.TabIndex = 7;
     this.label2.Text = "Cancelado";
     //
     // label1
     //
     this.label1.AutoSize = true;
     this.label1.Location = new System.Drawing.Point(33, 43);
     this.label1.Name = "label1";
     this.label1.Size = new System.Drawing.Size(52, 13);
     this.label1.TabIndex = 6;
     this.label1.Text = "Efetivado";
     //
     // lblteztoPendente
     //
     this.lblteztoPendente.AutoSize = true;
     this.lblteztoPendente.Location = new System.Drawing.Point(33, 20);
     this.lblteztoPendente.Name = "lblteztoPendente";
     this.lblteztoPendente.Size = new System.Drawing.Size(53, 13);
     this.lblteztoPendente.TabIndex = 5;
     this.lblteztoPendente.Text = "Pendente";
     //
     // lblPendente
     //
     this.lblPendente.AutoSize = true;
     this.lblPendente.Image = global::Comercial.Properties.Resources.BolaAmarela;
     this.lblPendente.Location = new System.Drawing.Point(6, 20);
     this.lblPendente.MaximumSize = new System.Drawing.Size(30, 30);
     this.lblPendente.MinimumSize = new System.Drawing.Size(30, 0);
     this.lblPendente.Name = "lblPendente";
     this.lblPendente.Size = new System.Drawing.Size(30, 13);
     this.lblPendente.TabIndex = 2;
     //
     // lblCancelado
     //
     this.lblCancelado.AutoSize = true;
     this.lblCancelado.Image = global::Comercial.Properties.Resources.BolaVermelho;
     this.lblCancelado.Location = new System.Drawing.Point(6, 65);
     this.lblCancelado.MaximumSize = new System.Drawing.Size(30, 30);
     this.lblCancelado.MinimumSize = new System.Drawing.Size(30, 0);
     this.lblCancelado.Name = "lblCancelado";
     this.lblCancelado.Size = new System.Drawing.Size(30, 13);
     this.lblCancelado.TabIndex = 4;
     //
     // lblEfetivado
     //
     this.lblEfetivado.AutoSize = true;
     this.lblEfetivado.Image = global::Comercial.Properties.Resources.BolaVerde;
     this.lblEfetivado.Location = new System.Drawing.Point(6, 43);
     this.lblEfetivado.MaximumSize = new System.Drawing.Size(30, 30);
     this.lblEfetivado.MinimumSize = new System.Drawing.Size(30, 0);
     this.lblEfetivado.Name = "lblEfetivado";
     this.lblEfetivado.Size = new System.Drawing.Size(30, 13);
     this.lblEfetivado.TabIndex = 3;
     //
     // grpBxFiltro
     //
     this.grpBxFiltro.Controls.Add(this.grpBxTpRel);
     this.grpBxFiltro.Controls.Add(this.grpBxCli);
     this.grpBxFiltro.Controls.Add(this.grpBxPedido);
     this.grpBxFiltro.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.grpBxFiltro.ForeColor = System.Drawing.Color.CornflowerBlue;
     this.grpBxFiltro.Location = new System.Drawing.Point(6, 6);
     this.grpBxFiltro.Name = "grpBxFiltro";
     this.grpBxFiltro.Size = new System.Drawing.Size(648, 198);
     this.grpBxFiltro.TabIndex = 1;
     this.grpBxFiltro.TabStop = false;
     this.grpBxFiltro.Text = "Filtros:";
     //
     // grpBxTpRel
     //
     this.grpBxTpRel.Controls.Add(this.rdbProd);
     this.grpBxTpRel.Controls.Add(this.rdbped);
     this.grpBxTpRel.ForeColor = System.Drawing.Color.CadetBlue;
     this.grpBxTpRel.Location = new System.Drawing.Point(318, 101);
     this.grpBxTpRel.Name = "grpBxTpRel";
     this.grpBxTpRel.Size = new System.Drawing.Size(195, 53);
     this.grpBxTpRel.TabIndex = 10;
     this.grpBxTpRel.TabStop = false;
     this.grpBxTpRel.Text = "Tipo Relatório";
     //
     // rdbProd
     //
     this.rdbProd.AutoSize = true;
     this.rdbProd.ForeColor = System.Drawing.Color.CadetBlue;
     this.rdbProd.Location = new System.Drawing.Point(93, 28);
     this.rdbProd.Name = "rdbProd";
     this.rdbProd.Size = new System.Drawing.Size(65, 17);
     this.rdbProd.TabIndex = 1;
     this.rdbProd.Text = "Poduto";
     this.rdbProd.UseVisualStyleBackColor = true;
     //
     // rdbped
     //
     this.rdbped.AutoSize = true;
     this.rdbped.Checked = true;
     this.rdbped.ForeColor = System.Drawing.Color.CadetBlue;
     this.rdbped.Location = new System.Drawing.Point(10, 28);
     this.rdbped.Name = "rdbped";
     this.rdbped.Size = new System.Drawing.Size(64, 17);
     this.rdbped.TabIndex = 0;
     this.rdbped.TabStop = true;
     this.rdbped.Text = "Pedido";
     this.rdbped.UseVisualStyleBackColor = true;
     //
     // grpBxCli
     //
     this.grpBxCli.Controls.Add(this.txtCodProd);
     this.grpBxCli.Controls.Add(this.txtDesc);
     this.grpBxCli.Controls.Add(this.lblNome);
     this.grpBxCli.Controls.Add(this.lblCodCli);
     this.grpBxCli.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.grpBxCli.ForeColor = System.Drawing.Color.CornflowerBlue;
     this.grpBxCli.Location = new System.Drawing.Point(318, 19);
     this.grpBxCli.Name = "grpBxCli";
     this.grpBxCli.Size = new System.Drawing.Size(324, 76);
     this.grpBxCli.TabIndex = 9;
     this.grpBxCli.TabStop = false;
     this.grpBxCli.Text = "Dados Produto:";
     //
     // txtCodProd
     //
     this.txtCodProd.getText = "";
     this.txtCodProd.Image = ((System.Drawing.Image)(resources.GetObject("txtCodProd.Image")));
     this.txtCodProd.Location = new System.Drawing.Point(15, 35);
     this.txtCodProd.Name = "txtCodProd";
     this.txtCodProd.ShowButton = false;
     this.txtCodProd.Size = new System.Drawing.Size(98, 25);
     this.txtCodProd.TabIndex = 109;
     this.txtCodProd.ButtonClick += new System.EventHandler(this.txtCodProd_ButtonClick);
     //
     // txtDesc
     //
     this.txtDesc.Location = new System.Drawing.Point(123, 36);
     this.txtDesc.Name = "txtDesc";
     this.txtDesc.Size = new System.Drawing.Size(187, 20);
     this.txtDesc.TabIndex = 23;
     //
     // lblNome
     //
     this.lblNome.AutoSize = true;
     this.lblNome.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.lblNome.ForeColor = System.Drawing.Color.CadetBlue;
     this.lblNome.Location = new System.Drawing.Point(120, 19);
     this.lblNome.Name = "lblNome";
     this.lblNome.Size = new System.Drawing.Size(58, 13);
     this.lblNome.TabIndex = 22;
     this.lblNome.Text = "Descrição:";
     //
     // lblCodCli
     //
     this.lblCodCli.AutoSize = true;
     this.lblCodCli.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.lblCodCli.ForeColor = System.Drawing.Color.CadetBlue;
     this.lblCodCli.Location = new System.Drawing.Point(12, 19);
     this.lblCodCli.Name = "lblCodCli";
     this.lblCodCli.Size = new System.Drawing.Size(43, 13);
     this.lblCodCli.TabIndex = 20;
     this.lblCodCli.Text = "Código:";
     //
     // grpBxPedido
     //
     this.grpBxPedido.Controls.Add(this.txtCodPed);
     this.grpBxPedido.Controls.Add(this.cmBxTipoPed);
     this.grpBxPedido.Controls.Add(this.groupBox2);
     this.grpBxPedido.Controls.Add(this.dttmDataPedidoate);
     this.grpBxPedido.Controls.Add(this.dttmDataPedido);
     this.grpBxPedido.Controls.Add(this.lblDataate);
     this.grpBxPedido.Controls.Add(this.lblDataPed);
     this.grpBxPedido.Controls.Add(this.lblCod);
     this.grpBxPedido.Controls.Add(this.lblTipoPed);
     this.grpBxPedido.ForeColor = System.Drawing.Color.CornflowerBlue;
     this.grpBxPedido.Location = new System.Drawing.Point(6, 19);
     this.grpBxPedido.Name = "grpBxPedido";
     this.grpBxPedido.Size = new System.Drawing.Size(305, 170);
     this.grpBxPedido.TabIndex = 8;
     this.grpBxPedido.TabStop = false;
     this.grpBxPedido.Text = "Dados Pedido";
     //
     // txtCodPed
     //
     this.txtCodPed.Location = new System.Drawing.Point(10, 35);
     this.txtCodPed.Name = "txtCodPed";
     this.txtCodPed.Size = new System.Drawing.Size(92, 20);
     this.txtCodPed.TabIndex = 27;
     //
     // cmBxTipoPed
     //
     this.cmBxTipoPed.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.cmBxTipoPed.FormattingEnabled = true;
     this.cmBxTipoPed.Items.AddRange(new object[] {
     "",
     "N = Normal",
     "C = Complemento de preço"});
     this.cmBxTipoPed.Location = new System.Drawing.Point(108, 35);
     this.cmBxTipoPed.Name = "cmBxTipoPed";
     this.cmBxTipoPed.Size = new System.Drawing.Size(173, 21);
     this.cmBxTipoPed.TabIndex = 13;
     //
     // groupBox2
     //
     this.groupBox2.Controls.Add(this.rdbtnCancelado);
     this.groupBox2.Controls.Add(this.checkBox1);
     this.groupBox2.Controls.Add(this.rdbtnPendente);
     this.groupBox2.Controls.Add(this.rdbtnEfetivado);
     this.groupBox2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.groupBox2.ForeColor = System.Drawing.Color.CadetBlue;
     this.groupBox2.Location = new System.Drawing.Point(18, 64);
     this.groupBox2.Name = "groupBox2";
     this.groupBox2.Size = new System.Drawing.Size(263, 42);
     this.groupBox2.TabIndex = 26;
     this.groupBox2.TabStop = false;
     this.groupBox2.Text = "Situação do Pedido:";
     //
     // rdbtnCancelado
     //
     this.rdbtnCancelado.AutoSize = true;
     this.rdbtnCancelado.Location = new System.Drawing.Point(180, 18);
     this.rdbtnCancelado.Name = "rdbtnCancelado";
     this.rdbtnCancelado.Size = new System.Drawing.Size(76, 17);
     this.rdbtnCancelado.TabIndex = 4;
     this.rdbtnCancelado.TabStop = true;
     this.rdbtnCancelado.Text = "Cancelado";
     this.rdbtnCancelado.UseVisualStyleBackColor = true;
     this.rdbtnCancelado.CheckedChanged += new System.EventHandler(this.rdbtnCancelado_CheckedChanged);
     //
     // checkBox1
     //
     this.checkBox1.AutoSize = true;
     this.checkBox1.Location = new System.Drawing.Point(6, 22);
     this.checkBox1.Name = "checkBox1";
     this.checkBox1.Size = new System.Drawing.Size(15, 14);
     this.checkBox1.TabIndex = 3;
     this.checkBox1.UseVisualStyleBackColor = true;
     this.checkBox1.CheckStateChanged += new System.EventHandler(this.checkBox1_CheckStateChanged);
     //
     // rdbtnPendente
     //
     this.rdbtnPendente.AutoSize = true;
     this.rdbtnPendente.Location = new System.Drawing.Point(103, 19);
     this.rdbtnPendente.Name = "rdbtnPendente";
     this.rdbtnPendente.Size = new System.Drawing.Size(71, 17);
     this.rdbtnPendente.TabIndex = 1;
     this.rdbtnPendente.TabStop = true;
     this.rdbtnPendente.Text = "Pendente";
     this.rdbtnPendente.UseVisualStyleBackColor = true;
     this.rdbtnPendente.CheckedChanged += new System.EventHandler(this.rdbtnPendente_CheckedChanged);
     //
     // rdbtnEfetivado
     //
     this.rdbtnEfetivado.AutoSize = true;
     this.rdbtnEfetivado.Location = new System.Drawing.Point(27, 20);
     this.rdbtnEfetivado.Name = "rdbtnEfetivado";
     this.rdbtnEfetivado.Size = new System.Drawing.Size(70, 17);
     this.rdbtnEfetivado.TabIndex = 0;
     this.rdbtnEfetivado.TabStop = true;
     this.rdbtnEfetivado.Text = "Efetivado";
     this.rdbtnEfetivado.UseVisualStyleBackColor = true;
     this.rdbtnEfetivado.CheckedChanged += new System.EventHandler(this.rdbtnEfetivado_CheckedChanged);
     //
     // dttmDataPedidoate
     //
     this.dttmDataPedidoate.Checked = false;
     this.dttmDataPedidoate.Format = System.Windows.Forms.DateTimePickerFormat.Short;
     this.dttmDataPedidoate.Location = new System.Drawing.Point(133, 128);
     this.dttmDataPedidoate.Name = "dttmDataPedidoate";
     this.dttmDataPedidoate.ShowCheckBox = true;
     this.dttmDataPedidoate.Size = new System.Drawing.Size(115, 20);
     this.dttmDataPedidoate.TabIndex = 25;
     //
     // dttmDataPedido
     //
     this.dttmDataPedido.Checked = false;
     this.dttmDataPedido.Format = System.Windows.Forms.DateTimePickerFormat.Short;
     this.dttmDataPedido.Location = new System.Drawing.Point(12, 128);
     this.dttmDataPedido.Name = "dttmDataPedido";
     this.dttmDataPedido.ShowCheckBox = true;
     this.dttmDataPedido.Size = new System.Drawing.Size(115, 20);
     this.dttmDataPedido.TabIndex = 24;
     //
     // lblDataate
     //
     this.lblDataate.AutoSize = true;
     this.lblDataate.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.lblDataate.ForeColor = System.Drawing.Color.CadetBlue;
     this.lblDataate.Location = new System.Drawing.Point(133, 112);
     this.lblDataate.Name = "lblDataate";
     this.lblDataate.Size = new System.Drawing.Size(51, 13);
     this.lblDataate.TabIndex = 22;
     this.lblDataate.Text = "Data até:";
     //
     // lblDataPed
     //
     this.lblDataPed.AutoSize = true;
     this.lblDataPed.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.lblDataPed.ForeColor = System.Drawing.Color.CadetBlue;
     this.lblDataPed.Location = new System.Drawing.Point(9, 112);
     this.lblDataPed.Name = "lblDataPed";
     this.lblDataPed.Size = new System.Drawing.Size(48, 13);
     this.lblDataPed.TabIndex = 20;
     this.lblDataPed.Text = "Data de:";
     //
     // lblCod
     //
     this.lblCod.AutoSize = true;
     this.lblCod.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.lblCod.ForeColor = System.Drawing.Color.CadetBlue;
     this.lblCod.Location = new System.Drawing.Point(9, 19);
     this.lblCod.Name = "lblCod";
     this.lblCod.Size = new System.Drawing.Size(43, 13);
     this.lblCod.TabIndex = 16;
     this.lblCod.Text = "Código:";
     //
     // lblTipoPed
     //
     this.lblTipoPed.AutoSize = true;
     this.lblTipoPed.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.lblTipoPed.ForeColor = System.Drawing.Color.CadetBlue;
     this.lblTipoPed.Location = new System.Drawing.Point(105, 20);
     this.lblTipoPed.Name = "lblTipoPed";
     this.lblTipoPed.Size = new System.Drawing.Size(81, 13);
     this.lblTipoPed.TabIndex = 7;
     this.lblTipoPed.Text = "Tipo do pedido:";
     //
     // dtGrdConPDV
     //
     this.dtGrdConPDV.AllowUserToAddRows = false;
     this.dtGrdConPDV.AllowUserToDeleteRows = false;
     dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
     dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Control;
     dataGridViewCellStyle1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.WindowText;
     dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight;
     dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
     dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
     this.dtGrdConPDV.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;
     this.dtGrdConPDV.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
     this.dtGrdConPDV.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
     this.ColStatus,
     this.ClmnCodPed,
     this.ClmnDtPed,
     this.ColSituacao,
     this.Cliente,
     this.DtEmissão,
     this.ColDtEntrega,
     this.ColCodProd,
     this.ColDescricao,
     this.ColQuantidade,
     this.ColQtdeLib,
     this.ClmnValPed,
     this.ColValorTotal,
     this.ColVALORFRETE,
     this.ColDesconto});
     dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
     dataGridViewCellStyle6.BackColor = System.Drawing.SystemColors.Window;
     dataGridViewCellStyle6.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     dataGridViewCellStyle6.ForeColor = System.Drawing.Color.CadetBlue;
     dataGridViewCellStyle6.SelectionBackColor = System.Drawing.SystemColors.Highlight;
     dataGridViewCellStyle6.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
     dataGridViewCellStyle6.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
     this.dtGrdConPDV.DefaultCellStyle = dataGridViewCellStyle6;
     this.dtGrdConPDV.Location = new System.Drawing.Point(6, 210);
     this.dtGrdConPDV.Name = "dtGrdConPDV";
     this.dtGrdConPDV.ReadOnly = true;
     dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
     dataGridViewCellStyle7.BackColor = System.Drawing.SystemColors.Control;
     dataGridViewCellStyle7.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     dataGridViewCellStyle7.ForeColor = System.Drawing.SystemColors.WindowText;
     dataGridViewCellStyle7.SelectionBackColor = System.Drawing.SystemColors.Highlight;
     dataGridViewCellStyle7.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
     dataGridViewCellStyle7.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
     this.dtGrdConPDV.RowHeadersDefaultCellStyle = dataGridViewCellStyle7;
     this.dtGrdConPDV.Size = new System.Drawing.Size(975, 222);
     this.dtGrdConPDV.TabIndex = 0;
     //
     // iTEMPEDIDOBindingSource
     //
     this.iTEMPEDIDOBindingSource.DataMember = "ITEMPEDIDO";
     this.iTEMPEDIDOBindingSource.DataSource = this.cOMERCIALDataSet;
     //
     // cOMERCIALDataSet
     //
     this.cOMERCIALDataSet.DataSetName = "COMERCIALDataSet";
     this.cOMERCIALDataSet.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
     //
     // iTEMPEDIDOTableAdapter
     //
     this.iTEMPEDIDOTableAdapter.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 = this.iTEMPEDIDOTableAdapter;
     this.tableAdapterManager.modeloCampoTableAdapter = null;
     this.tableAdapterManager.modeloTableAdapter = 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 = null;
     this.tableAdapterManager.TRANSPORTADORAVIATableAdapter = null;
     this.tableAdapterManager.UNIDADEMEDIDATableAdapter = null;
     this.tableAdapterManager.UpdateOrder = Comercial.COMERCIALDataSetTableAdapters.TableAdapterManager.UpdateOrderOption.InsertUpdateDelete;
     this.tableAdapterManager.USUARIOTableAdapter = null;
     this.tableAdapterManager.VENDEDORTableAdapter = null;
     this.tableAdapterManager.VIATRANSPORTETableAdapter = null;
     //
     // pEDIDOTableAdapter
     //
     this.pEDIDOTableAdapter.ClearBeforeFill = true;
     //
     // pEDIDOBindingSource
     //
     this.pEDIDOBindingSource.DataMember = "PEDIDO";
     this.pEDIDOBindingSource.DataSource = this.cOMERCIALDataSet;
     //
     // ColStatus
     //
     this.ColStatus.DataPropertyName = "ImageStatus";
     this.ColStatus.HeaderText = "";
     this.ColStatus.Name = "ColStatus";
     this.ColStatus.ReadOnly = true;
     this.ColStatus.Resizable = System.Windows.Forms.DataGridViewTriState.True;
     this.ColStatus.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
     this.ColStatus.Width = 30;
     //
     // ClmnCodPed
     //
     this.ClmnCodPed.DataPropertyName = "NRPEDIDO";
     this.ClmnCodPed.HeaderText = "Num Ped.";
     this.ClmnCodPed.Name = "ClmnCodPed";
     this.ClmnCodPed.ReadOnly = true;
     //
     // ClmnDtPed
     //
     this.ClmnDtPed.DataPropertyName = "TIPO";
     this.ClmnDtPed.HeaderText = "Tipo Ped.";
     this.ClmnDtPed.Name = "ClmnDtPed";
     this.ClmnDtPed.ReadOnly = true;
     this.ClmnDtPed.Visible = false;
     this.ClmnDtPed.Width = 80;
     //
     // ColSituacao
     //
     this.ColSituacao.DataPropertyName = "SITUACAO";
     this.ColSituacao.HeaderText = "Situação";
     this.ColSituacao.Name = "ColSituacao";
     this.ColSituacao.ReadOnly = true;
     this.ColSituacao.Width = 80;
     //
     // Cliente
     //
     this.Cliente.DataPropertyName = "RAZAOSOCIAL";
     this.Cliente.HeaderText = "Cliente";
     this.Cliente.Name = "Cliente";
     this.Cliente.ReadOnly = true;
     //
     // DtEmissão
     //
     this.DtEmissão.DataPropertyName = "DATAEMISSAO";
     dataGridViewCellStyle2.Format = "d";
     dataGridViewCellStyle2.NullValue = null;
     this.DtEmissão.DefaultCellStyle = dataGridViewCellStyle2;
     this.DtEmissão.HeaderText = "Data Emissão";
     this.DtEmissão.Name = "DtEmissão";
     this.DtEmissão.ReadOnly = true;
     //
     // ColDtEntrega
     //
     this.ColDtEntrega.DataPropertyName = "DATAENTREGA";
     dataGridViewCellStyle3.Format = "d";
     this.ColDtEntrega.DefaultCellStyle = dataGridViewCellStyle3;
     this.ColDtEntrega.HeaderText = "Data Entrega";
     this.ColDtEntrega.Name = "ColDtEntrega";
     this.ColDtEntrega.ReadOnly = true;
     //
     // ColCodProd
     //
     this.ColCodProd.DataPropertyName = "CODPRODUTO";
     this.ColCodProd.HeaderText = "Código Produto";
     this.ColCodProd.Name = "ColCodProd";
     this.ColCodProd.ReadOnly = true;
     this.ColCodProd.Visible = false;
     //
     // ColDescricao
     //
     this.ColDescricao.DataPropertyName = "DESCRICAO";
     this.ColDescricao.HeaderText = "Descrição Produto";
     this.ColDescricao.Name = "ColDescricao";
     this.ColDescricao.ReadOnly = true;
     this.ColDescricao.Width = 120;
     //
     // ColQuantidade
     //
     this.ColQuantidade.DataPropertyName = "QUANTIDADE";
     this.ColQuantidade.HeaderText = "Quantidade";
     this.ColQuantidade.Name = "ColQuantidade";
     this.ColQuantidade.ReadOnly = true;
     //
     // ColQtdeLib
     //
     this.ColQtdeLib.DataPropertyName = "QUANTIDADELIB";
     this.ColQtdeLib.HeaderText = "Quant. Liberada";
     this.ColQtdeLib.Name = "ColQtdeLib";
     this.ColQtdeLib.ReadOnly = true;
     //
     // ClmnValPed
     //
     this.ClmnValPed.DataPropertyName = "VALOR";
     dataGridViewCellStyle4.Format = "C2";
     dataGridViewCellStyle4.NullValue = null;
     this.ClmnValPed.DefaultCellStyle = dataGridViewCellStyle4;
     this.ClmnValPed.HeaderText = "Preço Unitário";
     this.ClmnValPed.Name = "ClmnValPed";
     this.ClmnValPed.ReadOnly = true;
     this.ClmnValPed.Visible = false;
     //
     // ColValorTotal
     //
     this.ColValorTotal.DataPropertyName = "ValorTotal";
     dataGridViewCellStyle5.Format = "C2";
     dataGridViewCellStyle5.NullValue = null;
     this.ColValorTotal.DefaultCellStyle = dataGridViewCellStyle5;
     this.ColValorTotal.HeaderText = "Valor Total";
     this.ColValorTotal.Name = "ColValorTotal";
     this.ColValorTotal.ReadOnly = true;
     //
     // ColVALORFRETE
     //
     this.ColVALORFRETE.DataPropertyName = "VALORFRETE";
     this.ColVALORFRETE.HeaderText = "Valor Frete";
     this.ColVALORFRETE.Name = "ColVALORFRETE";
     this.ColVALORFRETE.ReadOnly = true;
     this.ColVALORFRETE.Visible = false;
     //
     // ColDesconto
     //
     this.ColDesconto.DataPropertyName = "DESCONTO";
     this.ColDesconto.HeaderText = "Desconto";
     this.ColDesconto.Name = "ColDesconto";
     this.ColDesconto.ReadOnly = true;
     this.ColDesconto.Visible = false;
     //
     // FrmConPDV
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize = new System.Drawing.Size(1014, 482);
     this.Controls.Add(this.tbCntrlConPDV);
     this.Name = "FrmConPDV";
     this.Text = "Consulta Pedido de Vendas";
     this.Load += new System.EventHandler(this.FrmConPDV_Load);
     this.Leave += new System.EventHandler(this.FrmConPDV_Leave);
     this.tbCntrlConPDV.ResumeLayout(false);
     this.tbPgConCli.ResumeLayout(false);
     this.grpSituacao.ResumeLayout(false);
     this.grpSituacao.PerformLayout();
     this.grpBxFiltro.ResumeLayout(false);
     this.grpBxTpRel.ResumeLayout(false);
     this.grpBxTpRel.PerformLayout();
     this.grpBxCli.ResumeLayout(false);
     this.grpBxCli.PerformLayout();
     this.grpBxPedido.ResumeLayout(false);
     this.grpBxPedido.PerformLayout();
     this.groupBox2.ResumeLayout(false);
     this.groupBox2.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.dtGrdConPDV)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.iTEMPEDIDOBindingSource)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.cOMERCIALDataSet)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.pEDIDOBindingSource)).EndInit();
     this.ResumeLayout(false);
 }
 /// <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.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
     System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
     System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = 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();
     System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
     System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
     this.tbCntrlPedVend = new System.Windows.Forms.TabControl();
     this.tbPgPDV = new System.Windows.Forms.TabPage();
     this.grpBxPedVenda = new System.Windows.Forms.GroupBox();
     this.txtbtnPedido = new System.Windows.Forms.TextBox();
     this.txtCondPagto = new System.Windows.Forms.TextBox();
     this.txtCodTransportadora = new System.Windows.Forms.TextBox();
     this.txtCodVendedor = new System.Windows.Forms.TextBox();
     this.txtCodCliente = new System.Windows.Forms.TextBox();
     this.grpTipoPedido = new System.Windows.Forms.GroupBox();
     this.chkComplemento = new System.Windows.Forms.CheckBox();
     this.chkNormal = 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.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.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.grpBxTotais = new System.Windows.Forms.GroupBox();
     this.lblFrete = new System.Windows.Forms.Label();
     this.txtFrete = new System.Windows.Forms.MaskedTextBox();
     this.pEDIDOBindingSource = new System.Windows.Forms.BindingSource(this.components);
     this.cOMERCIALDataSet = new Comercial.COMERCIALDataSet();
     this.lblICMS = new System.Windows.Forms.Label();
     this.txtICMS = new System.Windows.Forms.TextBox();
     this.lblIPI = new System.Windows.Forms.Label();
     this.txtIPI = new System.Windows.Forms.TextBox();
     this.txtBxVlrFaturado = new System.Windows.Forms.TextBox();
     this.grpSituacaoItens = new System.Windows.Forms.GroupBox();
     this.label2 = new System.Windows.Forms.Label();
     this.label3 = new System.Windows.Forms.Label();
     this.lblteztoPendente = new System.Windows.Forms.Label();
     this.lblPendente = new System.Windows.Forms.Label();
     this.lblCancelado = new System.Windows.Forms.Label();
     this.lblEfetivado = new System.Windows.Forms.Label();
     this.lblDescontos = new System.Windows.Forms.Label();
     this.lblVlrFrete = new System.Windows.Forms.Label();
     this.lblVlrMercadoria = new System.Windows.Forms.Label();
     this.txtBxDescontos = new System.Windows.Forms.TextBox();
     this.txtBxVlrPedido = new System.Windows.Forms.TextBox();
     this.pnlItenped = new System.Windows.Forms.Panel();
     this.dtgrdvItenspven = new System.Windows.Forms.DataGridView();
     this.pEDIDOTableAdapter = new Comercial.COMERCIALDataSetTableAdapters.PEDIDOTableAdapter();
     this.tableAdapterManager = new Comercial.COMERCIALDataSetTableAdapters.TableAdapterManager();
     this.nOTAFISCALBindingSource = new System.Windows.Forms.BindingSource(this.components);
     this.nOTAFISCALTableAdapter = new Comercial.COMERCIALDataSetTableAdapters.NOTAFISCALTableAdapter();
     this.itemNotaFiscalBindingSource = new System.Windows.Forms.BindingSource(this.components);
     this.itemNotaFiscalTableAdapter = new Comercial.COMERCIALDataSetTableAdapters.ItemNotaFiscalTableAdapter();
     this.ColStatus = new System.Windows.Forms.DataGridViewImageColumn();
     this.ColCheck = new System.Windows.Forms.DataGridViewCheckBoxColumn();
     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.ClmQtdeLib = 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.ColVALORFATU = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.ColStatusItem = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.tbCntrlPedVend.SuspendLayout();
     this.tbPgPDV.SuspendLayout();
     this.grpBxPedVenda.SuspendLayout();
     this.grpTipoPedido.SuspendLayout();
     this.grpBxItPedVen.SuspendLayout();
     this.grpBxTotais.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.pEDIDOBindingSource)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.cOMERCIALDataSet)).BeginInit();
     this.grpSituacaoItens.SuspendLayout();
     this.pnlItenped.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.dtgrdvItenspven)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.nOTAFISCALBindingSource)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.itemNotaFiscalBindingSource)).BeginInit();
     this.SuspendLayout();
     //
     // tbCntrlPedVend
     //
     this.tbCntrlPedVend.Controls.Add(this.tbPgPDV);
     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(885, 623);
     this.tbCntrlPedVend.TabIndex = 2001;
     //
     // tbPgPDV
     //
     this.tbPgPDV.AutoScroll = true;
     this.tbPgPDV.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
     this.tbPgPDV.Controls.Add(this.grpBxPedVenda);
     this.tbPgPDV.Controls.Add(this.grpBxItPedVen);
     this.tbPgPDV.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.tbPgPDV.ForeColor = System.Drawing.Color.WhiteSmoke;
     this.tbPgPDV.Location = new System.Drawing.Point(4, 22);
     this.tbPgPDV.Name = "tbPgPDV";
     this.tbPgPDV.Padding = new System.Windows.Forms.Padding(3);
     this.tbPgPDV.Size = new System.Drawing.Size(877, 597);
     this.tbPgPDV.TabIndex = 0;
     this.tbPgPDV.Text = "Pedidos de Vendas";
     this.tbPgPDV.UseVisualStyleBackColor = true;
     //
     // grpBxPedVenda
     //
     this.grpBxPedVenda.Controls.Add(this.txtbtnPedido);
     this.grpBxPedVenda.Controls.Add(this.txtCondPagto);
     this.grpBxPedVenda.Controls.Add(this.txtCodTransportadora);
     this.grpBxPedVenda.Controls.Add(this.txtCodVendedor);
     this.grpBxPedVenda.Controls.Add(this.txtCodCliente);
     this.grpBxPedVenda.Controls.Add(this.grpTipoPedido);
     this.grpBxPedVenda.Controls.Add(this.dtpEntrega);
     this.grpBxPedVenda.Controls.Add(this.label1);
     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.txtNomeVendedor);
     this.grpBxPedVenda.Controls.Add(this.txtNomeCliente);
     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, 7);
     this.grpBxPedVenda.Name = "grpBxPedVenda";
     this.grpBxPedVenda.Size = new System.Drawing.Size(858, 116);
     this.grpBxPedVenda.TabIndex = 102;
     this.grpBxPedVenda.TabStop = false;
     this.grpBxPedVenda.Text = "Pedido Venda";
     //
     // txtbtnPedido
     //
     this.txtbtnPedido.Enabled = false;
     this.txtbtnPedido.Location = new System.Drawing.Point(14, 36);
     this.txtbtnPedido.Name = "txtbtnPedido";
     this.txtbtnPedido.Size = new System.Drawing.Size(84, 20);
     this.txtbtnPedido.TabIndex = 103;
     //
     // txtCondPagto
     //
     this.txtCondPagto.Enabled = false;
     this.txtCondPagto.Location = new System.Drawing.Point(358, 77);
     this.txtCondPagto.Name = "txtCondPagto";
     this.txtCondPagto.Size = new System.Drawing.Size(86, 20);
     this.txtCondPagto.TabIndex = 102;
     //
     // txtCodTransportadora
     //
     this.txtCodTransportadora.Enabled = false;
     this.txtCodTransportadora.Location = new System.Drawing.Point(14, 78);
     this.txtCodTransportadora.Name = "txtCodTransportadora";
     this.txtCodTransportadora.Size = new System.Drawing.Size(144, 20);
     this.txtCodTransportadora.TabIndex = 101;
     //
     // txtCodVendedor
     //
     this.txtCodVendedor.Enabled = false;
     this.txtCodVendedor.Location = new System.Drawing.Point(458, 34);
     this.txtCodVendedor.Name = "txtCodVendedor";
     this.txtCodVendedor.Size = new System.Drawing.Size(123, 20);
     this.txtCodVendedor.TabIndex = 100;
     //
     // txtCodCliente
     //
     this.txtCodCliente.Enabled = false;
     this.txtCodCliente.Location = new System.Drawing.Point(104, 36);
     this.txtCodCliente.Name = "txtCodCliente";
     this.txtCodCliente.Size = new System.Drawing.Size(123, 20);
     this.txtCodCliente.TabIndex = 99;
     //
     // grpTipoPedido
     //
     this.grpTipoPedido.Controls.Add(this.chkComplemento);
     this.grpTipoPedido.Controls.Add(this.chkNormal);
     this.grpTipoPedido.Enabled = false;
     this.grpTipoPedido.ForeColor = System.Drawing.Color.CadetBlue;
     this.grpTipoPedido.Location = new System.Drawing.Point(457, 60);
     this.grpTipoPedido.Name = "grpTipoPedido";
     this.grpTipoPedido.Size = new System.Drawing.Size(177, 39);
     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(73, 16);
     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;
     //
     // chkNormal
     //
     this.chkNormal.AutoSize = true;
     this.chkNormal.Location = new System.Drawing.Point(7, 16);
     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;
     //
     // dtpEntrega
     //
     this.dtpEntrega.Enabled = false;
     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.Enabled = false;
     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.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.Enabled = false;
     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;
     //
     // lbldtemi
     //
     this.lbldtemi.AutoSize = true;
     this.lbldtemi.Enabled = false;
     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.Enabled = false;
     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.Enabled = false;
     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.Enabled = false;
     this.txtNomeCliente.Location = new System.Drawing.Point(233, 36);
     this.txtNomeCliente.Name = "txtNomeCliente";
     this.txtNomeCliente.Size = new System.Drawing.Size(211, 20);
     this.txtNomeCliente.TabIndex = 82;
     //
     // lbltpfre
     //
     this.lbltpfre.AutoSize = true;
     this.lbltpfre.Enabled = false;
     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.Enabled = false;
     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.Enabled = false;
     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.Enabled = false;
     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.Enabled = false;
     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.Enabled = false;
     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.grpBxTotais);
     this.grpBxItPedVen.Controls.Add(this.pnlItenped);
     this.grpBxItPedVen.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.grpBxItPedVen.ForeColor = System.Drawing.Color.CadetBlue;
     this.grpBxItPedVen.Location = new System.Drawing.Point(11, 129);
     this.grpBxItPedVen.Name = "grpBxItPedVen";
     this.grpBxItPedVen.Size = new System.Drawing.Size(865, 462);
     this.grpBxItPedVen.TabIndex = 16;
     this.grpBxItPedVen.TabStop = false;
     this.grpBxItPedVen.Text = "Itens Pedido Venda";
     //
     // grpBxTotais
     //
     this.grpBxTotais.Controls.Add(this.lblFrete);
     this.grpBxTotais.Controls.Add(this.txtFrete);
     this.grpBxTotais.Controls.Add(this.lblICMS);
     this.grpBxTotais.Controls.Add(this.txtICMS);
     this.grpBxTotais.Controls.Add(this.lblIPI);
     this.grpBxTotais.Controls.Add(this.txtIPI);
     this.grpBxTotais.Controls.Add(this.txtBxVlrFaturado);
     this.grpBxTotais.Controls.Add(this.grpSituacaoItens);
     this.grpBxTotais.Controls.Add(this.lblDescontos);
     this.grpBxTotais.Controls.Add(this.lblVlrFrete);
     this.grpBxTotais.Controls.Add(this.lblVlrMercadoria);
     this.grpBxTotais.Controls.Add(this.txtBxDescontos);
     this.grpBxTotais.Controls.Add(this.txtBxVlrPedido);
     this.grpBxTotais.ForeColor = System.Drawing.Color.CornflowerBlue;
     this.grpBxTotais.Location = new System.Drawing.Point(10, 260);
     this.grpBxTotais.Name = "grpBxTotais";
     this.grpBxTotais.Size = new System.Drawing.Size(855, 191);
     this.grpBxTotais.TabIndex = 101;
     this.grpBxTotais.TabStop = false;
     this.grpBxTotais.Text = "Totais";
     //
     // lblFrete
     //
     this.lblFrete.AutoSize = true;
     this.lblFrete.Enabled = false;
     this.lblFrete.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.lblFrete.ForeColor = System.Drawing.Color.CadetBlue;
     this.lblFrete.Location = new System.Drawing.Point(674, 129);
     this.lblFrete.Name = "lblFrete";
     this.lblFrete.Size = new System.Drawing.Size(61, 13);
     this.lblFrete.TabIndex = 124;
     this.lblFrete.Text = "Valor Frete:";
     //
     // 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(752, 125);
     this.txtFrete.Name = "txtFrete";
     this.txtFrete.PromptChar = ' ';
     this.txtFrete.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
     this.txtFrete.Size = new System.Drawing.Size(83, 20);
     this.txtFrete.TabIndex = 123;
     this.txtFrete.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
     this.txtFrete.TextMaskFormat = System.Windows.Forms.MaskFormat.ExcludePromptAndLiterals;
     //
     // pEDIDOBindingSource
     //
     this.pEDIDOBindingSource.DataMember = "PEDIDO";
     this.pEDIDOBindingSource.DataSource = this.cOMERCIALDataSet;
     //
     // cOMERCIALDataSet
     //
     this.cOMERCIALDataSet.DataSetName = "COMERCIALDataSet";
     this.cOMERCIALDataSet.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
     //
     // lblICMS
     //
     this.lblICMS.AutoSize = true;
     this.lblICMS.Enabled = false;
     this.lblICMS.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.lblICMS.ForeColor = System.Drawing.Color.CadetBlue;
     this.lblICMS.Location = new System.Drawing.Point(699, 102);
     this.lblICMS.Name = "lblICMS";
     this.lblICMS.Size = new System.Drawing.Size(36, 13);
     this.lblICMS.TabIndex = 31;
     this.lblICMS.Text = "ICMS:";
     //
     // txtICMS
     //
     this.txtICMS.Enabled = false;
     this.txtICMS.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.txtICMS.Location = new System.Drawing.Point(752, 99);
     this.txtICMS.Name = "txtICMS";
     this.txtICMS.Size = new System.Drawing.Size(83, 20);
     this.txtICMS.TabIndex = 30;
     //
     // lblIPI
     //
     this.lblIPI.AutoSize = true;
     this.lblIPI.Enabled = false;
     this.lblIPI.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.lblIPI.ForeColor = System.Drawing.Color.CadetBlue;
     this.lblIPI.Location = new System.Drawing.Point(712, 76);
     this.lblIPI.Name = "lblIPI";
     this.lblIPI.Size = new System.Drawing.Size(23, 13);
     this.lblIPI.TabIndex = 29;
     this.lblIPI.Text = "IPI:";
     //
     // txtIPI
     //
     this.txtIPI.Enabled = false;
     this.txtIPI.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.txtIPI.Location = new System.Drawing.Point(752, 73);
     this.txtIPI.Name = "txtIPI";
     this.txtIPI.Size = new System.Drawing.Size(83, 20);
     this.txtIPI.TabIndex = 28;
     //
     // txtBxVlrFaturado
     //
     this.txtBxVlrFaturado.Enabled = false;
     this.txtBxVlrFaturado.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.txtBxVlrFaturado.Location = new System.Drawing.Point(752, 19);
     this.txtBxVlrFaturado.Name = "txtBxVlrFaturado";
     this.txtBxVlrFaturado.Size = new System.Drawing.Size(83, 20);
     this.txtBxVlrFaturado.TabIndex = 27;
     //
     // grpSituacaoItens
     //
     this.grpSituacaoItens.Controls.Add(this.label2);
     this.grpSituacaoItens.Controls.Add(this.label3);
     this.grpSituacaoItens.Controls.Add(this.lblteztoPendente);
     this.grpSituacaoItens.Controls.Add(this.lblPendente);
     this.grpSituacaoItens.Controls.Add(this.lblCancelado);
     this.grpSituacaoItens.Controls.Add(this.lblEfetivado);
     this.grpSituacaoItens.ForeColor = System.Drawing.Color.CadetBlue;
     this.grpSituacaoItens.Location = new System.Drawing.Point(6, 13);
     this.grpSituacaoItens.Name = "grpSituacaoItens";
     this.grpSituacaoItens.Size = new System.Drawing.Size(125, 78);
     this.grpSituacaoItens.TabIndex = 25;
     this.grpSituacaoItens.TabStop = false;
     this.grpSituacaoItens.Text = "Legenda Itens";
     //
     // label2
     //
     this.label2.AutoSize = true;
     this.label2.Location = new System.Drawing.Point(33, 58);
     this.label2.Name = "label2";
     this.label2.Size = new System.Drawing.Size(72, 13);
     this.label2.TabIndex = 7;
     this.label2.Text = "Não Faturado";
     //
     // label3
     //
     this.label3.AutoSize = true;
     this.label3.Location = new System.Drawing.Point(33, 36);
     this.label3.Name = "label3";
     this.label3.Size = new System.Drawing.Size(49, 13);
     this.label3.TabIndex = 6;
     this.label3.Text = "Faturado";
     //
     // lblteztoPendente
     //
     this.lblteztoPendente.AutoSize = true;
     this.lblteztoPendente.Location = new System.Drawing.Point(33, 15);
     this.lblteztoPendente.Name = "lblteztoPendente";
     this.lblteztoPendente.Size = new System.Drawing.Size(84, 13);
     this.lblteztoPendente.TabIndex = 5;
     this.lblteztoPendente.Text = "Faturado Parcial";
     //
     // lblPendente
     //
     this.lblPendente.AutoSize = true;
     this.lblPendente.Image = global::Comercial.Properties.Resources.BolaAmarela;
     this.lblPendente.Location = new System.Drawing.Point(6, 15);
     this.lblPendente.MaximumSize = new System.Drawing.Size(30, 30);
     this.lblPendente.MinimumSize = new System.Drawing.Size(30, 0);
     this.lblPendente.Name = "lblPendente";
     this.lblPendente.Size = new System.Drawing.Size(30, 13);
     this.lblPendente.TabIndex = 2;
     //
     // lblCancelado
     //
     this.lblCancelado.AutoSize = true;
     this.lblCancelado.Image = global::Comercial.Properties.Resources.BolaVermelho;
     this.lblCancelado.Location = new System.Drawing.Point(6, 58);
     this.lblCancelado.MaximumSize = new System.Drawing.Size(30, 30);
     this.lblCancelado.MinimumSize = new System.Drawing.Size(30, 0);
     this.lblCancelado.Name = "lblCancelado";
     this.lblCancelado.Size = new System.Drawing.Size(30, 13);
     this.lblCancelado.TabIndex = 4;
     //
     // lblEfetivado
     //
     this.lblEfetivado.AutoSize = true;
     this.lblEfetivado.Image = global::Comercial.Properties.Resources.BolaVerde;
     this.lblEfetivado.Location = new System.Drawing.Point(6, 36);
     this.lblEfetivado.MaximumSize = new System.Drawing.Size(30, 30);
     this.lblEfetivado.MinimumSize = new System.Drawing.Size(30, 0);
     this.lblEfetivado.Name = "lblEfetivado";
     this.lblEfetivado.Size = new System.Drawing.Size(30, 13);
     this.lblEfetivado.TabIndex = 3;
     //
     // lblDescontos
     //
     this.lblDescontos.AutoSize = true;
     this.lblDescontos.Enabled = false;
     this.lblDescontos.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.lblDescontos.ForeColor = System.Drawing.Color.CadetBlue;
     this.lblDescontos.Location = new System.Drawing.Point(674, 51);
     this.lblDescontos.Name = "lblDescontos";
     this.lblDescontos.Size = new System.Drawing.Size(61, 13);
     this.lblDescontos.TabIndex = 24;
     this.lblDescontos.Text = "Descontos:";
     //
     // lblVlrFrete
     //
     this.lblVlrFrete.AutoSize = true;
     this.lblVlrFrete.Enabled = false;
     this.lblVlrFrete.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.lblVlrFrete.ForeColor = System.Drawing.Color.CadetBlue;
     this.lblVlrFrete.Location = new System.Drawing.Point(656, 23);
     this.lblVlrFrete.Name = "lblVlrFrete";
     this.lblVlrFrete.Size = new System.Drawing.Size(79, 13);
     this.lblVlrFrete.TabIndex = 23;
     this.lblVlrFrete.Text = "Valor Faturado:";
     //
     // lblVlrMercadoria
     //
     this.lblVlrMercadoria.AutoSize = true;
     this.lblVlrMercadoria.Enabled = false;
     this.lblVlrMercadoria.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.lblVlrMercadoria.ForeColor = System.Drawing.Color.CadetBlue;
     this.lblVlrMercadoria.Location = new System.Drawing.Point(638, 154);
     this.lblVlrMercadoria.Name = "lblVlrMercadoria";
     this.lblVlrMercadoria.Size = new System.Drawing.Size(97, 13);
     this.lblVlrMercadoria.TabIndex = 22;
     this.lblVlrMercadoria.Text = "Valor Total Pedido:";
     //
     // txtBxDescontos
     //
     this.txtBxDescontos.Enabled = false;
     this.txtBxDescontos.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.txtBxDescontos.Location = new System.Drawing.Point(752, 48);
     this.txtBxDescontos.Name = "txtBxDescontos";
     this.txtBxDescontos.Size = new System.Drawing.Size(83, 20);
     this.txtBxDescontos.TabIndex = 21;
     //
     // txtBxVlrPedido
     //
     this.txtBxVlrPedido.Enabled = false;
     this.txtBxVlrPedido.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.txtBxVlrPedido.Location = new System.Drawing.Point(752, 151);
     this.txtBxVlrPedido.Name = "txtBxVlrPedido";
     this.txtBxVlrPedido.Size = new System.Drawing.Size(83, 20);
     this.txtBxVlrPedido.TabIndex = 18;
     //
     // pnlItenped
     //
     this.pnlItenped.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
     this.pnlItenped.Controls.Add(this.dtgrdvItenspven);
     this.pnlItenped.Location = new System.Drawing.Point(10, 19);
     this.pnlItenped.Name = "pnlItenped";
     this.pnlItenped.Size = new System.Drawing.Size(841, 235);
     this.pnlItenped.TabIndex = 100;
     //
     // dtgrdvItenspven
     //
     this.dtgrdvItenspven.AllowUserToAddRows = false;
     this.dtgrdvItenspven.AllowUserToDeleteRows = false;
     this.dtgrdvItenspven.AllowUserToResizeColumns = false;
     this.dtgrdvItenspven.AllowUserToResizeRows = false;
     dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
     dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Control;
     dataGridViewCellStyle1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.WindowText;
     dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight;
     dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
     dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
     this.dtgrdvItenspven.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;
     this.dtgrdvItenspven.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
     this.dtgrdvItenspven.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
     this.ColStatus,
     this.ColCheck,
     this.ClmItem,
     this.ColProd,
     this.ClmDescProd,
     this.ClmQtde,
     this.ClmQtdeLib,
     this.ClmPrcUnit,
     this.ClmIPI,
     this.ColDesconto,
     this.ColTotal,
     this.ColVALORFATU,
     this.ColStatusItem});
     dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
     dataGridViewCellStyle6.BackColor = System.Drawing.SystemColors.Window;
     dataGridViewCellStyle6.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     dataGridViewCellStyle6.ForeColor = System.Drawing.Color.CadetBlue;
     dataGridViewCellStyle6.SelectionBackColor = System.Drawing.SystemColors.Highlight;
     dataGridViewCellStyle6.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
     dataGridViewCellStyle6.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
     this.dtgrdvItenspven.DefaultCellStyle = dataGridViewCellStyle6;
     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";
     dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
     dataGridViewCellStyle7.BackColor = System.Drawing.SystemColors.Control;
     dataGridViewCellStyle7.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     dataGridViewCellStyle7.ForeColor = System.Drawing.SystemColors.WindowText;
     dataGridViewCellStyle7.SelectionBackColor = System.Drawing.SystemColors.Highlight;
     dataGridViewCellStyle7.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
     dataGridViewCellStyle7.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
     this.dtgrdvItenspven.RowHeadersDefaultCellStyle = dataGridViewCellStyle7;
     this.dtgrdvItenspven.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.CellSelect;
     this.dtgrdvItenspven.Size = new System.Drawing.Size(841, 235);
     this.dtgrdvItenspven.TabIndex = 26;
     this.dtgrdvItenspven.CellValueChanged += new System.Windows.Forms.DataGridViewCellEventHandler(this.dtgrdvItenspven_CellValueChanged);
     //
     // 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.modeloCampoTableAdapter = null;
     this.tableAdapterManager.modeloTableAdapter = 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 = null;
     this.tableAdapterManager.TRANSPORTADORAVIATableAdapter = null;
     this.tableAdapterManager.UNIDADEMEDIDATableAdapter = null;
     this.tableAdapterManager.UpdateOrder = Comercial.COMERCIALDataSetTableAdapters.TableAdapterManager.UpdateOrderOption.InsertUpdateDelete;
     this.tableAdapterManager.USUARIOTableAdapter = null;
     this.tableAdapterManager.VENDEDORTableAdapter = null;
     this.tableAdapterManager.VIATRANSPORTETableAdapter = null;
     //
     // nOTAFISCALBindingSource
     //
     this.nOTAFISCALBindingSource.DataMember = "NOTAFISCAL";
     this.nOTAFISCALBindingSource.DataSource = this.cOMERCIALDataSet;
     //
     // nOTAFISCALTableAdapter
     //
     this.nOTAFISCALTableAdapter.ClearBeforeFill = true;
     //
     // itemNotaFiscalBindingSource
     //
     this.itemNotaFiscalBindingSource.DataMember = "ItemNotaFiscal";
     this.itemNotaFiscalBindingSource.DataSource = this.cOMERCIALDataSet;
     //
     // itemNotaFiscalTableAdapter
     //
     this.itemNotaFiscalTableAdapter.ClearBeforeFill = true;
     //
     // ColStatus
     //
     this.ColStatus.HeaderText = "";
     this.ColStatus.Name = "ColStatus";
     this.ColStatus.Resizable = System.Windows.Forms.DataGridViewTriState.True;
     this.ColStatus.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
     this.ColStatus.Width = 28;
     //
     // ColCheck
     //
     this.ColCheck.FalseValue = "";
     this.ColCheck.HeaderText = "";
     this.ColCheck.Name = "ColCheck";
     this.ColCheck.Resizable = System.Windows.Forms.DataGridViewTriState.True;
     this.ColCheck.TrueValue = "";
     this.ColCheck.Width = 25;
     //
     // ClmItem
     //
     this.ClmItem.DataPropertyName = "ITEM";
     this.ClmItem.HeaderText = "Item";
     this.ClmItem.Name = "ClmItem";
     this.ClmItem.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
     this.ClmItem.Width = 35;
     //
     // ColProd
     //
     this.ColProd.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
     this.ColProd.DataPropertyName = "CODPRODUTO";
     this.ColProd.HeaderText = "Codigo Produto";
     this.ColProd.Name = "ColProd";
     this.ColProd.ReadOnly = true;
     this.ColProd.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
     //
     // ClmDescProd
     //
     this.ClmDescProd.DataPropertyName = "DESCRICAO";
     this.ClmDescProd.HeaderText = "Descrição Produto";
     this.ClmDescProd.Name = "ClmDescProd";
     this.ClmDescProd.ReadOnly = true;
     this.ClmDescProd.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
     this.ClmDescProd.Width = 125;
     //
     // ClmQtde
     //
     this.ClmQtde.DataPropertyName = "QUANTIDADE";
     this.ClmQtde.HeaderText = "Quantidade";
     this.ClmQtde.Name = "ClmQtde";
     this.ClmQtde.ReadOnly = true;
     this.ClmQtde.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
     //
     // ClmQtdeLib
     //
     this.ClmQtdeLib.DataPropertyName = "QUANTLIB";
     dataGridViewCellStyle2.NullValue = null;
     this.ClmQtdeLib.DefaultCellStyle = dataGridViewCellStyle2;
     this.ClmQtdeLib.HeaderText = "Quantidade Liberada";
     this.ClmQtdeLib.Name = "ClmQtdeLib";
     this.ClmQtdeLib.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
     //
     // ClmPrcUnit
     //
     this.ClmPrcUnit.DataPropertyName = "VALOR";
     dataGridViewCellStyle3.Format = "C2";
     dataGridViewCellStyle3.NullValue = null;
     this.ClmPrcUnit.DefaultCellStyle = dataGridViewCellStyle3;
     this.ClmPrcUnit.HeaderText = "Preço Unitário";
     this.ClmPrcUnit.Name = "ClmPrcUnit";
     this.ClmPrcUnit.ReadOnly = true;
     this.ClmPrcUnit.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
     //
     // ClmIPI
     //
     this.ClmIPI.DataPropertyName = "IPI";
     this.ClmIPI.HeaderText = "% IPI";
     this.ClmIPI.Name = "ClmIPI";
     this.ClmIPI.ReadOnly = true;
     this.ClmIPI.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
     //
     // ColDesconto
     //
     this.ColDesconto.DataPropertyName = "DESCONTO";
     this.ColDesconto.HeaderText = "% Desconto";
     this.ColDesconto.Name = "ColDesconto";
     this.ColDesconto.ReadOnly = true;
     this.ColDesconto.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
     //
     // ColTotal
     //
     this.ColTotal.DataPropertyName = "VALORTOTAL";
     dataGridViewCellStyle4.Format = "C2";
     dataGridViewCellStyle4.NullValue = null;
     this.ColTotal.DefaultCellStyle = dataGridViewCellStyle4;
     this.ColTotal.HeaderText = "Valor Total";
     this.ColTotal.Name = "ColTotal";
     this.ColTotal.ReadOnly = true;
     this.ColTotal.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
     //
     // ColVALORFATU
     //
     this.ColVALORFATU.DataPropertyName = "VALORFATU";
     dataGridViewCellStyle5.Format = "C2";
     this.ColVALORFATU.DefaultCellStyle = dataGridViewCellStyle5;
     this.ColVALORFATU.HeaderText = "Valor Faturado";
     this.ColVALORFATU.Name = "ColVALORFATU";
     this.ColVALORFATU.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
     this.ColVALORFATU.Visible = false;
     //
     // ColStatusItem
     //
     this.ColStatusItem.DataPropertyName = "Status";
     this.ColStatusItem.HeaderText = "Status";
     this.ColStatusItem.Name = "ColStatusItem";
     this.ColStatusItem.ReadOnly = true;
     this.ColStatusItem.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
     this.ColStatusItem.Visible = false;
     //
     // FrmLibPDV
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize = new System.Drawing.Size(905, 639);
     this.Controls.Add(this.tbCntrlPedVend);
     this.Name = "FrmLibPDV";
     this.Text = "Liberação de Pedido";
     this.Load += new System.EventHandler(this.FrmLibPDV_Load);
     this.tbCntrlPedVend.ResumeLayout(false);
     this.tbPgPDV.ResumeLayout(false);
     this.grpBxPedVenda.ResumeLayout(false);
     this.grpBxPedVenda.PerformLayout();
     this.grpTipoPedido.ResumeLayout(false);
     this.grpTipoPedido.PerformLayout();
     this.grpBxItPedVen.ResumeLayout(false);
     this.grpBxTotais.ResumeLayout(false);
     this.grpBxTotais.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.pEDIDOBindingSource)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.cOMERCIALDataSet)).EndInit();
     this.grpSituacaoItens.ResumeLayout(false);
     this.grpSituacaoItens.PerformLayout();
     this.pnlItenped.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.dtgrdvItenspven)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.nOTAFISCALBindingSource)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.itemNotaFiscalBindingSource)).EndInit();
     this.ResumeLayout(false);
 }
 /// <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);
 }
Esempio n. 5
0
        public int SalvarPedidoCab()
        {
            DataRowView objPedido;

            objPedido = (DataRowView)pEDIDOBindingSource.Current;



            if (chkEfetivado.Checked)
            {
                objPedido["SITUACAO"] = "E";
            }
            else if (chkCancelado.Checked)
            {
                objPedido["SITUACAO"] = "C";
            }
            else
            {
                objPedido["SITUACAO"] = "P";
            }

            if (chkNormal.Checked)
            {
                objPedido["TIPO"] = "N";
            }
            else
            {
                objPedido["TIPO"] = "C";
            }

            objPedido["DATAEMISSAO"]          = DateTime.Now.ToString("dd/MM/yyyy");
            objPedido["DATAENTREGA"]          = Convert.ToDateTime(dtpEntrega.Value).ToString("dd/MM/yyyy");
            objPedido["CODCLIENTE"]           = txtcodCli.getText;
            objPedido["CODVENDEDOR"]          = txtCodVendedor.getText;
            objPedido["CODCONDICAOPAGAMENTO"] = txtCondPagto.getText;
            objPedido["CODTRANSPORTADORA"]    = txtCodTransportadora.getText;
            string ValorFrete = txtFrete.Text.Replace("R$", "").Replace(".", "");

            //txtFrete.Text = string.Format("{0:C2}", Convert.ToDouble(txtFrete.Text));
            objPedido["VALORFRETE"] = ValorFrete;

            if (dtgrdvItenspven.RowCount == 0)
            {
                MessageBox.Show("Operação Cancelada, pois não existe itens para este pedido.", "Erro", MessageBoxButtons.OK, MessageBoxIcon.Error);

                return(1);
            }
            else
            {
                COMERCIALDataSetTableAdapters.PEDIDOTableAdapter table = new Comercial.COMERCIALDataSetTableAdapters.PEDIDOTableAdapter();
                table.Insert(Convert.ToString(objPedido["TIPO"].ToString()),
                             Convert.ToDateTime(objPedido["DATAEMISSAO"].ToString()),
                             Convert.ToDateTime(objPedido["DATAENTREGA"].ToString()),
                             Convert.ToInt32(objPedido["CODCONDICAOPAGAMENTO"].ToString()),
                             Convert.ToString(objPedido["SITUACAO"].ToString()),
                             Convert.ToString(objPedido["CODVENDEDOR"].ToString()),
                             Convert.ToString(objPedido["CODCLIENTE"].ToString()),
                             Convert.ToString(objPedido["CODTRANSPORTADORA"].ToString()),
                             Convert.ToDouble(objPedido["VALORFRETE"].ToString()));


                this.SalvarPedidoDeta();

                return(0);
            }
        }
Esempio n. 6
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
            {

            }
        }