/// <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(FrmCadConPag)); this.tabPage2 = new System.Windows.Forms.TabPage(); this.chkEntrada = new System.Windows.Forms.CheckBox(); this.lblCodigo = new System.Windows.Forms.Label(); this.TxtDiaDes = new System.Windows.Forms.TextBox(); this.TxtDes = new System.Windows.Forms.TextBox(); this.LblDiaPCo = new System.Windows.Forms.Label(); this.LblDes = new System.Windows.Forms.Label(); this.TbCntConPag = new System.Windows.Forms.TabControl(); this.consultaCondicaoToolStrip = new System.Windows.Forms.ToolStrip(); this.dESCRICAOToolStripLabel = new System.Windows.Forms.ToolStripLabel(); this.dESCRICAOToolStripTextBox = new System.Windows.Forms.ToolStripTextBox(); this.consultaCondicaoToolStripButton = new System.Windows.Forms.ToolStripButton(); this.toolStripButton3 = new System.Windows.Forms.ToolStripButton(); this.toolStripButton2 = new System.Windows.Forms.ToolStripButton(); this.cONDICAOPAGAMENTOBindingSource = new System.Windows.Forms.BindingSource(this.components); this.cOMERCIALDataSet = new Comercial.COMERCIALDataSet(); this.cONDICAOPAGAMENTOTableAdapter = new Comercial.COMERCIALDataSetTableAdapters.CONDICAOPAGAMENTOTableAdapter(); this.tableAdapterManager = new Comercial.COMERCIALDataSetTableAdapters.TableAdapterManager(); this.tabPage2.SuspendLayout(); this.TbCntConPag.SuspendLayout(); this.consultaCondicaoToolStrip.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.cONDICAOPAGAMENTOBindingSource)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.cOMERCIALDataSet)).BeginInit(); this.SuspendLayout(); // // tabPage2 // this.tabPage2.AutoScroll = true; this.tabPage2.Controls.Add(this.chkEntrada); this.tabPage2.Controls.Add(this.lblCodigo); this.tabPage2.Controls.Add(this.TxtDiaDes); this.tabPage2.Controls.Add(this.TxtDes); this.tabPage2.Controls.Add(this.LblDiaPCo); this.tabPage2.Controls.Add(this.LblDes); this.tabPage2.Location = new System.Drawing.Point(4, 22); this.tabPage2.Name = "tabPage2"; this.tabPage2.Padding = new System.Windows.Forms.Padding(3); this.tabPage2.Size = new System.Drawing.Size(541, 74); this.tabPage2.TabIndex = 1; this.tabPage2.Text = "Cadastro Condições de Pagamento"; this.tabPage2.UseVisualStyleBackColor = true; // // chkEntrada // this.chkEntrada.Location = new System.Drawing.Point(425, 19); this.chkEntrada.Name = "chkEntrada"; this.chkEntrada.Size = new System.Drawing.Size(104, 24); this.chkEntrada.TabIndex = 48; this.chkEntrada.Text = "Entrada"; this.chkEntrada.UseVisualStyleBackColor = true; // // lblCodigo // this.lblCodigo.AutoSize = true; this.lblCodigo.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.cONDICAOPAGAMENTOBindingSource, "CODCONDICAOPAGAMENTO", true)); this.lblCodigo.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lblCodigo.ForeColor = System.Drawing.Color.CadetBlue; this.lblCodigo.Location = new System.Drawing.Point(6, 23); this.lblCodigo.Name = "lblCodigo"; this.lblCodigo.Size = new System.Drawing.Size(43, 13); this.lblCodigo.TabIndex = 47; this.lblCodigo.Text = "Código:"; // // TxtDiaDes // this.TxtDiaDes.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.cONDICAOPAGAMENTOBindingSource, "QTDEVEZES", true)); this.TxtDiaDes.Location = new System.Drawing.Point(313, 19); this.TxtDiaDes.Name = "TxtDiaDes"; this.TxtDiaDes.Size = new System.Drawing.Size(106, 20); this.TxtDiaDes.TabIndex = 45; this.TxtDiaDes.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.TxtDiaDes_KeyPress); // // TxtDes // this.TxtDes.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.cONDICAOPAGAMENTOBindingSource, "DESCRICAO", true)); this.TxtDes.Location = new System.Drawing.Point(65, 19); this.TxtDes.Name = "TxtDes"; this.TxtDes.Size = new System.Drawing.Size(239, 20); this.TxtDes.TabIndex = 44; // // LblDiaPCo // this.LblDiaPCo.AutoSize = true; this.LblDiaPCo.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.LblDiaPCo.ForeColor = System.Drawing.Color.CadetBlue; this.LblDiaPCo.Location = new System.Drawing.Point(310, 3); this.LblDiaPCo.Name = "LblDiaPCo"; this.LblDiaPCo.Size = new System.Drawing.Size(109, 13); this.LblDiaPCo.TabIndex = 43; this.LblDiaPCo.Text = "Quantidade vezes"; // // LblDes // this.LblDes.AutoSize = true; this.LblDes.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.LblDes.ForeColor = System.Drawing.Color.CadetBlue; this.LblDes.Location = new System.Drawing.Point(62, 3); this.LblDes.Name = "LblDes"; this.LblDes.Size = new System.Drawing.Size(68, 13); this.LblDes.TabIndex = 42; this.LblDes.Text = "Descrição:"; // // TbCntConPag // this.TbCntConPag.Controls.Add(this.tabPage2); this.TbCntConPag.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.TbCntConPag.Location = new System.Drawing.Point(12, 32); this.TbCntConPag.Name = "TbCntConPag"; this.TbCntConPag.SelectedIndex = 0; this.TbCntConPag.Size = new System.Drawing.Size(549, 100); this.TbCntConPag.TabIndex = 0; // // consultaCondicaoToolStrip // this.consultaCondicaoToolStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.dESCRICAOToolStripLabel, this.dESCRICAOToolStripTextBox, this.consultaCondicaoToolStripButton, this.toolStripButton3, this.toolStripButton2}); this.consultaCondicaoToolStrip.Location = new System.Drawing.Point(0, 0); this.consultaCondicaoToolStrip.Name = "consultaCondicaoToolStrip"; this.consultaCondicaoToolStrip.Size = new System.Drawing.Size(581, 25); this.consultaCondicaoToolStrip.TabIndex = 1; this.consultaCondicaoToolStrip.Text = "consultaCondicaoToolStrip"; this.consultaCondicaoToolStrip.Visible = false; // // dESCRICAOToolStripLabel // this.dESCRICAOToolStripLabel.Name = "dESCRICAOToolStripLabel"; this.dESCRICAOToolStripLabel.Size = new System.Drawing.Size(61, 22); this.dESCRICAOToolStripLabel.Text = "Descrição:"; // // dESCRICAOToolStripTextBox // this.dESCRICAOToolStripTextBox.Name = "dESCRICAOToolStripTextBox"; this.dESCRICAOToolStripTextBox.Size = new System.Drawing.Size(100, 25); // // consultaCondicaoToolStripButton // this.consultaCondicaoToolStripButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.consultaCondicaoToolStripButton.Image = global::Comercial.Properties.Resources.search1; this.consultaCondicaoToolStripButton.Name = "consultaCondicaoToolStripButton"; this.consultaCondicaoToolStripButton.Size = new System.Drawing.Size(23, 22); this.consultaCondicaoToolStripButton.Text = "ConsultaCondicao"; this.consultaCondicaoToolStripButton.Click += new System.EventHandler(this.consultaCondicaoToolStripButton_Click); // // toolStripButton3 // this.toolStripButton3.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.toolStripButton3.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton3.Image"))); this.toolStripButton3.ImageTransparentColor = System.Drawing.Color.Magenta; this.toolStripButton3.Name = "toolStripButton3"; this.toolStripButton3.Size = new System.Drawing.Size(23, 22); this.toolStripButton3.Text = "Limpar"; this.toolStripButton3.Click += new System.EventHandler(this.toolStripButton3_Click); // // toolStripButton2 // this.toolStripButton2.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.toolStripButton2.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton2.Image"))); this.toolStripButton2.ImageTransparentColor = System.Drawing.Color.Magenta; this.toolStripButton2.Name = "toolStripButton2"; this.toolStripButton2.Size = new System.Drawing.Size(23, 22); this.toolStripButton2.Text = "Cancelar"; this.toolStripButton2.ToolTipText = "Cancelar"; this.toolStripButton2.Click += new System.EventHandler(this.toolStripButton2_Click); // // cONDICAOPAGAMENTOBindingSource // this.cONDICAOPAGAMENTOBindingSource.DataMember = "CONDICAOPAGAMENTO"; this.cONDICAOPAGAMENTOBindingSource.DataSource = this.cOMERCIALDataSet; this.cONDICAOPAGAMENTOBindingSource.PositionChanged += new System.EventHandler(this.cONDICAOPAGAMENTOBindingSource_PositionChanged); // // cOMERCIALDataSet // this.cOMERCIALDataSet.DataSetName = "COMERCIALDataSet"; this.cOMERCIALDataSet.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema; // // cONDICAOPAGAMENTOTableAdapter // this.cONDICAOPAGAMENTOTableAdapter.ClearBeforeFill = true; // // tableAdapterManager // this.tableAdapterManager.ACESSOTableAdapter = null; this.tableAdapterManager.ATUCUBOTableAdapter = null; this.tableAdapterManager.BackupDataSetBeforeUpdate = false; this.tableAdapterManager.CLIENTETableAdapter = null; this.tableAdapterManager.CONDICAOPAGAMENTOTableAdapter = this.cONDICAOPAGAMENTOTableAdapter; this.tableAdapterManager.GRUPOPRODUTOTableAdapter = null; this.tableAdapterManager.ICMSTableAdapter = null; this.tableAdapterManager.ItemNotaFiscalTableAdapter = null; this.tableAdapterManager.ITEMPEDIDOTableAdapter = null; this.tableAdapterManager.modeloCampoTableAdapter = null; this.tableAdapterManager.modeloTableAdapter = null; this.tableAdapterManager.MODULOTableAdapter = null; this.tableAdapterManager.NOTAFISCALTableAdapter = null; this.tableAdapterManager.PEDIDOTableAdapter = null; this.tableAdapterManager.PRODUTOTableAdapter = null; this.tableAdapterManager.REGIAOTableAdapter = null; this.tableAdapterManager.TRANSPORTADORATableAdapter = null; this.tableAdapterManager.TRANSPORTADORAVIATableAdapter = null; this.tableAdapterManager.UNIDADEMEDIDATableAdapter = null; this.tableAdapterManager.UpdateOrder = Comercial.COMERCIALDataSetTableAdapters.TableAdapterManager.UpdateOrderOption.InsertUpdateDelete; this.tableAdapterManager.USUARIOTableAdapter = null; this.tableAdapterManager.VENDEDORTableAdapter = null; this.tableAdapterManager.VIATRANSPORTETableAdapter = null; // // FrmCadConPag // 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(581, 152); this.Controls.Add(this.consultaCondicaoToolStrip); this.Controls.Add(this.TbCntConPag); this.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.ForeColor = System.Drawing.Color.CadetBlue; this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "FrmCadConPag"; this.ShowIcon = false; this.ShowInTaskbar = false; this.Text = "Cadastro Condições de Pagamento"; this.Load += new System.EventHandler(this.FrmCadConPag_Load); this.Shown += new System.EventHandler(this.FrmCadConPag_Shown); this.tabPage2.ResumeLayout(false); this.tabPage2.PerformLayout(); this.TbCntConPag.ResumeLayout(false); this.consultaCondicaoToolStrip.ResumeLayout(false); this.consultaCondicaoToolStrip.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.cONDICAOPAGAMENTOBindingSource)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.cOMERCIALDataSet)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); }
private void BtnSalvar_Click(object sender, EventArgs e) { int retorno = 0; Form frm = this.ActiveMdiChild; if (frm == null) return; try { // METODOS QUE NECESSITAM DE LOGICA ANTES DE SALVAR if (frm is FrmCadVen) { FrmCadVen frmVen = (FrmCadVen)frm; retorno = frmVen.salvar(edit); } #region Form's Claudio if (frm is FrmCadCli) { FrmCadCli frmCli = (FrmCadCli)frm; retorno = frmCli.salvar(edit); } #endregion #region Transportadora if (frm is FrmCadTra) { FrmCadTra frmTra = (FrmCadTra)frm; retorno = frmTra.salvarcep(); } #endregion #region CondicaoPagamento if (frm is FrmCadConPag) { FrmCadConPag frmCon = (FrmCadConPag)frm; retorno = frmCon.Salvar(); } if (frm is FrmCadUniMed) { FrmCadUniMed frmCon = (FrmCadUniMed)frm; retorno = frmCon.Salvar(); } #endregion if (frm is FrmCadProd && edit == false) { FrmCadProd frmCadProd = (FrmCadProd)frm; retorno = frmCadProd.salvar(); } if (frm is FrmPermissoesUsu && edit == false) { FrmPermissoesUsu frmCadven = (FrmPermissoesUsu)frm; retorno = frmCadven.salvar(); } if (frm is FrmCadPed && edit == false) { FrmCadPed frmPed = (FrmCadPed)frm; string DataEmissão = frmPed.dtpEmissao.Value.ToShortDateString(); string DataSistema = DateTime.Now.ToShortDateString(); string DataEntrega = frmPed.dtpEntrega.Value.ToShortDateString(); if (Convert.ToDateTime(DataEntrega) < Convert.ToDateTime(DataEmissão)) { throw new Exception("DataInvalida"); } if (Convert.ToDateTime(DataEmissão) < Convert.ToDateTime(DataSistema)) { throw new Exception("DataSistema"); } retorno = frmPed.SalvarPedidoCab(); } if (frm is FrmCadPed && edit == true) { FrmCadPed frmPed = (FrmCadPed)frm; retorno = frmPed.AtualizarPedido(); } if (retorno == 0) { bindingNavigator1.BindingSource.EndEdit(); // // CADA UM COLOCA O BLOCO DO SEU FORM... if (frm is FrmCadConPag) { COMERCIALDataSetTableAdapters.CONDICAOPAGAMENTOTableAdapter table = new Comercial.COMERCIALDataSetTableAdapters.CONDICAOPAGAMENTOTableAdapter(); table.Update(_dataset); FrmCadConPag frmCond = (FrmCadConPag)frm; retorno = frmCond.Salvar(); } if (frm is FrmCadGrpProd) { COMERCIALDataSetTableAdapters.GRUPOPRODUTOTableAdapter table = new Comercial.COMERCIALDataSetTableAdapters.GRUPOPRODUTOTableAdapter(); table.Update(_dataset); } #region Form's Claudio if (frm is FrmCadCli) { COMERCIALDataSetTableAdapters.CLIENTETableAdapter table = new Comercial.COMERCIALDataSetTableAdapters.CLIENTETableAdapter(); table.Update(_dataset); FrmCadCli cli = (FrmCadCli)frm; cli.pictureBox1.Visible = false; cli.pictureBox2.Visible = false; } if (frm is FrmCadRegiao) { COMERCIALDataSetTableAdapters.REGIAOTableAdapter table = new Comercial.COMERCIALDataSetTableAdapters.REGIAOTableAdapter(); table.Update(_dataset); } #endregion if (frm is FrmCadUniMed) { COMERCIALDataSetTableAdapters.UNIDADEMEDIDATableAdapter table = new Comercial.COMERCIALDataSetTableAdapters.UNIDADEMEDIDATableAdapter(); table.Update(_dataset); } if (frm is FrmCadVen) { COMERCIALDataSetTableAdapters.VENDEDORTableAdapter table = new Comercial.COMERCIALDataSetTableAdapters.VENDEDORTableAdapter(); table.Update(_dataset); FrmCadVen ven = (FrmCadVen)frm; ven.pictureBox1.Visible = false; ven.pictureBox2.Visible = false; } if (frm is FrmCadProd) { COMERCIALDataSetTableAdapters.PRODUTOTableAdapter table = new Comercial.COMERCIALDataSetTableAdapters.PRODUTOTableAdapter(); table.Update(_dataset); } Util.Interface.ChangeControlStatus(frm, false); bindingNavigator1.Refresh(); edit = false; cancelEdicao(); if (frm is FrmPermissoesUsu) { COMERCIALDataSetTableAdapters.USUARIOTableAdapter table = new Comercial.COMERCIALDataSetTableAdapters.USUARIOTableAdapter(); table.Update(_dataset); } if (frm is FrmCadTra) { FrmCadTra frmTrans = (FrmCadTra)frm; retorno = frmTrans.ValidaCNPJ(); if (retorno == 1) { MessageBox.Show("CNPJ Inválido.", "Erro", MessageBoxButtons.OK, MessageBoxIcon.Error); Util.Interface.ChangeControlStatus(frm, true); bindingNavigator1.Refresh(); btnPesquisar.Enabled = false; BtnDeletar.Enabled = false; btnNovo.Enabled = false; BtnPrincipal.Enabled = false; btnEditar.Enabled = false; btnSalvar.Enabled = true; btnCancelEdicao.Enabled = true; } else { COMERCIALDataSetTableAdapters.TRANSPORTADORATableAdapter table = new Comercial.COMERCIALDataSetTableAdapters.TRANSPORTADORATableAdapter(); table.Update(_dataset); retorno = frmTrans.salvar(); } } } } catch (SqlException sqlex) { Validacoes valida = new Validacoes(); valida.tratarSqlExceções(sqlex); } catch (Exception ex) { Validacoes valida = new Validacoes(); valida.tratarSystemExceções(ex); } }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(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); }
//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 { } }