Logo Passei Direto
Buscar
Material

Esta é uma pré-visualização de arquivo. Entre para ver o arquivo original

Vendedores Funcionarios.sln
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.28010.2003
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Vendedores Funcionarios", "Vendedores Funcionarios\Vendedores Funcionarios.csproj", "{6BD4421E-C948-4F5D-A36B-3D16A7E72B11}"
EndProject
Global
	GlobalSection(SolutionConfigurationPlatforms) = preSolution
		Debug|Any CPU = Debug|Any CPU
		Release|Any CPU = Release|Any CPU
	EndGlobalSection
	GlobalSection(ProjectConfigurationPlatforms) = postSolution
		{6BD4421E-C948-4F5D-A36B-3D16A7E72B11}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{6BD4421E-C948-4F5D-A36B-3D16A7E72B11}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{6BD4421E-C948-4F5D-A36B-3D16A7E72B11}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{6BD4421E-C948-4F5D-A36B-3D16A7E72B11}.Release|Any CPU.Build.0 = Release|Any CPU
	EndGlobalSection
	GlobalSection(SolutionProperties) = preSolution
		HideSolutionNode = FALSE
	EndGlobalSection
	GlobalSection(ExtensibilityGlobals) = postSolution
		SolutionGuid = {FD417CF4-C523-4E11-842B-BA1F86C975B5}
	EndGlobalSection
EndGlobal
Vendedores Funcionarios/administrativo.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Vendedores_Funcionarios
{
 class administrativo : Funcionario
 {
 protected double horas;
 public double getHoras()
 {
 return horas;
 }
 public void InformaHoras(double valor)
 {
 horas += valor;
 }
 public double CalculaSalario()
 {
 return salario + horas * (salario / 100);
 }
 }
}
Vendedores Funcionarios/App.config
 
 
 
 
Vendedores Funcionarios/Form1.cs
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Vendedores_Funcionarios
{
 public partial class Form1 : Form
 {
 vendedor vendedor;
 administrativo administrativo;
 public Form1()
 {
 InitializeComponent();
 }
 
 
 private void btnFechar_Click(object sender, EventArgs e)
 {
 Close ();
 }
 private void btnCriar_Click(object sender, EventArgs e)
 {
 if (rbAdministrativo.Checked)
 {
 administrativo = new administrativo();
 administrativo.setNome(txbNome.Text);
 administrativo.setRG(txbRG.Text);
 administrativo.setSalario(Double.Parse(txbSalário.Text));
 btnRegistrarhoras.Enabled = true;
 }
 else if (rbVendedor.Checked)
 {
 vendedor = new vendedor();
 vendedor.setNome(txbNome.Text);
 vendedor.setRG(txbRG.Text);
 vendedor.setSalario(Double.Parse(txbSalário.Text));
 btnRealizarVenda.Enabled = true;
 }
 
 
 txbValor.Enabled = true;
 btnLimpar.Enabled = true;
 btnCalcularsalario.Enabled = true;
 btnCriar.Enabled = false;
 txbNome.Enabled = false;
 txbRG.Enabled = false;
 txbSalário.Enabled = false;
 rbAdministrativo.Enabled = false;
 rbVendedor.Enabled = false;
 }
 private void btnLimpar_Click(object sender, EventArgs e)
 {
 txbNome.Clear();
 txbRG.Clear();
 txbSalário.Clear();
 txbValor.Enabled = false;
 btnRegistrarhoras.Enabled = false;
 btnRealizarVenda.Enabled = false;
 btnLimpar.Enabled = false;
 btnCalcularsalario.Enabled = false;
 btnCriar.Enabled = true;
 txbNome.Enabled = true;
 txbRG.Enabled = true;
 txbSalário.Enabled = true;
 rbAdministrativo.Enabled = true;
 rbVendedor.Enabled = true;
 }
 private void btnRealizarVenda_Click(object sender, EventArgs e)
 {
 vendedor.registrarvendas(Double.Parse(txbValor.Text));
 txbValor.Clear();
 }
 private void btnRegistrarhoras_Click(object sender, EventArgs e)
 {
 administrativo.InformaHoras(Double.Parse(txbValor.Text));
 txbValor.Clear();
 }
 private void btnCalcularsalario_Click(object sender, EventArgs e)
 {
 if(rbAdministrativo.Checked)
 {
 MessageBox.Show("Oi " + administrativo.getNome() + ", seu salario é: " + administrativo.CalculaSalario());
 }
 else if(rbVendedor.Checked)
 {
 MessageBox.Show("Oi " + vendedor.getNome() + ", seu salario é: " + vendedor.calcularSalario());
 }
 }
 }
}
Vendedores Funcionarios/Form1.Designer.cs
namespace Vendedores_Funcionarios
{
 partial class Form1
 {
 /// <summary>
 /// Variável de designer necessária.
 /// </summary>
 private System.ComponentModel.IContainer components = null;
 /// <summary>
 /// Limpar os recursos que estão sendo usados.
 /// </summary>
 /// <param name="disposing">true se for necessário descartar os recursos gerenciados; caso contrário, false.</param>
 protected override void Dispose(bool disposing)
 {
 if (disposing && (components != null))
 {
 components.Dispose();
 }
 base.Dispose(disposing);
 }
 #region Código gerado pelo Windows Form Designer
 /// <summary>
 /// Método necessário para suporte ao Designer - não modifique 
 /// o conteúdo deste método com o editor de código.
 /// </summary>
 private void InitializeComponent()
 {
 this.btnRealizarVenda = new System.Windows.Forms.Button();
 this.btnRegistrarhoras = new System.Windows.Forms.Button();
 this.btnCalcularsalario = new System.Windows.Forms.Button();
 this.btnLimpar = new System.Windows.Forms.Button();
 this.btnFechar = new System.Windows.Forms.Button();
 this.btnCriar = new System.Windows.Forms.Button();
 this.label1 = new System.Windows.Forms.Label();
 this.label2 = new System.Windows.Forms.Label();
 this.label3 = new System.Windows.Forms.Label();
 this.label4 = new System.Windows.Forms.Label();
 this.txbNome = new System.Windows.Forms.TextBox();
 this.txbRG = new System.Windows.Forms.TextBox();
 this.txbSalário = new System.Windows.Forms.TextBox();
 this.txbValor = new System.Windows.Forms.TextBox();
 this.rbVendedor = new System.Windows.Forms.RadioButton();
 this.rbAdministrativo = new System.Windows.Forms.RadioButton();
 this.SuspendLayout();
 // 
 // btnRealizarVenda
 // 
 this.btnRealizarVenda.Enabled = false;
 this.btnRealizarVenda.Location = new System.Drawing.Point(101, 255);
 this.btnRealizarVenda.Name = "btnRealizarVenda";
 this.btnRealizarVenda.Size = new System.Drawing.Size(103, 23);
 this.btnRealizarVenda.TabIndex = 4;
 this.btnRealizarVenda.Text = "Realizar venda";
 this.btnRealizarVenda.UseVisualStyleBackColor = true;
 this.btnRealizarVenda.Click += new System.EventHandler(this.btnRealizarVenda_Click);
 // 
 // btnRegistrarhoras
 //
this.btnRegistrarhoras.Enabled = false;
 this.btnRegistrarhoras.Location = new System.Drawing.Point(220, 255);
 this.btnRegistrarhoras.Name = "btnRegistrarhoras";
 this.btnRegistrarhoras.Size = new System.Drawing.Size(97, 23);
 this.btnRegistrarhoras.TabIndex = 5;
 this.btnRegistrarhoras.Text = "Registrar horas";
 this.btnRegistrarhoras.UseVisualStyleBackColor = true;
 this.btnRegistrarhoras.Click += new System.EventHandler(this.btnRegistrarhoras_Click);
 // 
 // btnCalcularsalario
 // 
 this.btnCalcularsalario.Enabled = false;
 this.btnCalcularsalario.Location = new System.Drawing.Point(338, 255);
 this.btnCalcularsalario.Name = "btnCalcularsalario";
 this.btnCalcularsalario.Size = new System.Drawing.Size(95, 23);
 this.btnCalcularsalario.TabIndex = 6;
 this.btnCalcularsalario.Text = "Calcular Salário";
 this.btnCalcularsalario.UseVisualStyleBackColor = true;
 this.btnCalcularsalario.Click += new System.EventHandler(this.btnCalcularsalario_Click);
 // 
 // btnLimpar
 // 
 this.btnLimpar.Enabled = false;
 this.btnLimpar.Location = new System.Drawing.Point(456, 255);
 this.btnLimpar.Name = "btnLimpar";
 this.btnLimpar.Size = new System.Drawing.Size(75, 23);
 this.btnLimpar.TabIndex = 7;
 this.btnLimpar.Text = "Limpar";
 this.btnLimpar.UseVisualStyleBackColor = true;
 this.btnLimpar.Click += new System.EventHandler(this.btnLimpar_Click);
 // 
 // btnFechar
 // 
 this.btnFechar.Location = new System.Drawing.Point(551, 255);
 this.btnFechar.Name = "btnFechar";
 this.btnFechar.Size = new System.Drawing.Size(75, 23);
 this.btnFechar.TabIndex = 8;
 this.btnFechar.Text = "Fechar";
 this.btnFechar.UseVisualStyleBackColor = true;
 this.btnFechar.Click += new System.EventHandler(this.btnFechar_Click);
 // 
 // btnCriar
 // 
 this.btnCriar.Location = new System.Drawing.Point(560, 104);
 this.btnCriar.Name = "btnCriar";
 this.btnCriar.Size = new System.Drawing.Size(75, 23);
 this.btnCriar.TabIndex = 9;
 this.btnCriar.Text = "Criar";
 this.btnCriar.UseVisualStyleBackColor = true;
 this.btnCriar.Click += new System.EventHandler(this.btnCriar_Click);
 // 
 // label1
 // 
 this.label1.AutoSize = true;
 this.label1.Location = new System.Drawing.Point(49, 53);
 this.label1.Name = "label1";
 this.label1.Size = new System.Drawing.Size(35, 13);
 this.label1.TabIndex = 10;
 this.label1.Text = "Nome";
 // 
 // label2
 // 
 this.label2.AutoSize = true;
 this.label2.Location = new System.Drawing.Point(49, 91);
 this.label2.Name = "label2";
 this.label2.Size = new System.Drawing.Size(23, 13);
 this.label2.TabIndex = 11;
 this.label2.Text = "RG";
 // 
 // label3
 // 
 this.label3.AutoSize = true;
 this.label3.Location = new System.Drawing.Point(49, 132);
 this.label3.Name = "label3";
 this.label3.Size = new System.Drawing.Size(39, 13);
 this.label3.TabIndex = 12;
 this.label3.Text = "Salário";
 // 
 // label4
 // 
 this.label4.AutoSize = true;
 this.label4.Location = new System.Drawing.Point(49, 185);
 this.label4.Name = "label4";
 this.label4.Size = new System.Drawing.Size(31, 13);
 this.label4.TabIndex = 13;
 this.label4.Text = "Valor";
 // 
 // txbNome
 // 
 this.txbNome.Location = new System.Drawing.Point(129, 45);
 this.txbNome.Name = "txbNome";
 this.txbNome.Size = new System.Drawing.Size(100, 20);
 this.txbNome.TabIndex = 14;
 // 
 // txbRG
 // 
 this.txbRG.Location = new System.Drawing.Point(129, 83);
 this.txbRG.Name = "txbRG";
 this.txbRG.Size = new System.Drawing.Size(100, 20);
 this.txbRG.TabIndex = 15;
 // 
 // txbSalário
 // 
 this.txbSalário.Location = new System.Drawing.Point(129, 124);
 this.txbSalário.Name = "txbSalário";
 this.txbSalário.Size = new System.Drawing.Size(100, 20);
 this.txbSalário.TabIndex = 16;
 // 
 // txbValor
 // 
 this.txbValor.Enabled = false;
 this.txbValor.Location = new System.Drawing.Point(129, 177);
 this.txbValor.Name = "txbValor";
 this.txbValor.Size = new System.Drawing.Size(100, 20);
 this.txbValor.TabIndex = 17;
 // 
 // rbVendedor
 // 
 this.rbVendedor.AutoSize = true;
 this.rbVendedor.Location = new System.Drawing.Point(372, 83);
 this.rbVendedor.Name = "rbVendedor";
 this.rbVendedor.Size = new System.Drawing.Size(71, 17);
 this.rbVendedor.TabIndex = 18;
 this.rbVendedor.TabStop = true;
 this.rbVendedor.Text = "Vendedor";
 this.rbVendedor.UseVisualStyleBackColor = true;
 // 
 // rbAdministrativo
 // 
 this.rbAdministrativo.AutoSize = true;
 this.rbAdministrativo.Location = new System.Drawing.Point(372, 152);
 this.rbAdministrativo.Name = "rbAdministrativo";
 this.rbAdministrativo.Size = new System.Drawing.Size(90, 17);
 this.rbAdministrativo.TabIndex = 19;
 this.rbAdministrativo.TabStop = true;
 this.rbAdministrativo.Text = "Administrativo";
 this.rbAdministrativo.UseVisualStyleBackColor = true;
 // 
 // Form1
 // 
 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
 this.ClientSize = new System.Drawing.Size(800, 450);
 this.Controls.Add(this.rbAdministrativo);
 this.Controls.Add(this.rbVendedor);
 this.Controls.Add(this.txbValor);
 this.Controls.Add(this.txbSalário);
 this.Controls.Add(this.txbRG);
 this.Controls.Add(this.txbNome);
 this.Controls.Add(this.label4);
 this.Controls.Add(this.label3);
 this.Controls.Add(this.label2);
 this.Controls.Add(this.label1);
 this.Controls.Add(this.btnCriar);
 this.Controls.Add(this.btnFechar);
 this.Controls.Add(this.btnLimpar);
 this.Controls.Add(this.btnCalcularsalario);
 this.Controls.Add(this.btnRegistrarhoras);
 this.Controls.Add(this.btnRealizarVenda);
 this.Name = "Form1";
 this.Text = "Form1";
 this.ResumeLayout(false);
 this.PerformLayout();
 }
 #endregion
 private System.Windows.Forms.Button btnRealizarVenda;
 private System.Windows.Forms.Button btnRegistrarhoras;
 private System.Windows.Forms.Button btnCalcularsalario;
 private System.Windows.Forms.Button btnLimpar;
 private System.Windows.Forms.Button btnFechar;
 private System.Windows.Forms.Button btnCriar;
 private System.Windows.Forms.Label label1;
 private System.Windows.Forms.Label label2;
 private
System.Windows.Forms.Label label3;
 private System.Windows.Forms.Label label4;
 private System.Windows.Forms.TextBox txbNome;
 private System.Windows.Forms.TextBox txbRG;
 private System.Windows.Forms.TextBox txbSalário;
 private System.Windows.Forms.TextBox txbValor;
 private System.Windows.Forms.RadioButton rbVendedor;
 private System.Windows.Forms.RadioButton rbAdministrativo;
 }
}
Vendedores Funcionarios/Form1.resx
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 text/microsoft-resx
 
 
 2.0
 
 
 System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
 
 
 System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
 
Vendedores Funcionarios/funcionario.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Vendedores_Funcionarios
{
 public class Funcionario
 {
 protected String nome;
 protected String rg;
 protected double salario;
 public String getNome()
 {
 return nome;
 }
 public String getRG()
 {
 return rg;
 }
 public Double getSalario()
 {
 return salario;
 }
 public void setNome(string n)
 {
 nome = n;
 }
 public void setRG(string r)
 {
 rg = r;
 }
 public void setSalario(double s)
 {
 salario = s;
 }
 }
}
Vendedores Funcionarios/obj/Debug/DesignTimeResolveAssemblyReferences.cache
Vendedores Funcionarios/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
Vendedores Funcionarios/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
Vendedores Funcionarios/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
Vendedores Funcionarios/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
Vendedores Funcionarios/obj/Debug/Vendedores Funcionarios.csproj.CoreCompileInputs.cache
389213b5282d344a96ceec071eccc50000c8dfb6
Vendedores Funcionarios/obj/Debug/Vendedores Funcionarios.csprojAssemblyReference.cache
Vendedores Funcionarios/Program.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Vendedores_Funcionarios
{
 static class Program
 {
 /// <summary>
 /// Ponto de entrada principal para o aplicativo.
 /// </summary>
 [STAThread]
 static void Main()
 {
 Application.EnableVisualStyles();
 Application.SetCompatibleTextRenderingDefault(false);
 Application.Run(new Form1());
 }
 }
}
Vendedores Funcionarios/Properties/AssemblyInfo.cs
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// As informações gerais sobre um assembly são controladas por
// conjunto de atributos. Altere estes valores de atributo para modificar as informações
// associada a um assembly.
[assembly: AssemblyTitle("Vendedores Funcionarios")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Vendedores Funcionarios")]
[assembly: AssemblyCopyright("Copyright © 2019")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Definir ComVisible como false torna os tipos neste assembly invisíveis
// para componentes COM. Caso precise acessar um tipo neste assembly de
// COM, defina o atributo ComVisible como true nesse tipo.
[assembly: ComVisible(false)]
// O GUID a seguir será destinado à ID de typelib se este projeto for exposto para COM
[assembly: Guid("6bd4421e-c948-4f5d-a36b-3d16a7e72b11")]
// As informações da versão de um assembly consistem nos quatro valores a seguir:
//
// Versão Principal
// Versão Secundária 
// Número da Versão
// Revisão
//
// É possível especificar todos os valores ou usar como padrão os Números de Build e da Revisão
// utilizando o "*" como mostrado abaixo:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
Vendedores Funcionarios/Properties/Resources.Designer.cs
//------------------------------------------------------------------------------
// <auto-generated>
// Este código foi gerado por uma ferramenta.
// Versão de Tempo de Execução: 4.0.30319.42000
//
// As alterações ao arquivo poderão causar comportamento incorreto e serão perdidas se
// o código for recriado
// </auto-generated>
//------------------------------------------------------------------------------
namespace Vendedores_Funcionarios.Properties
{
 /// <summary>
 /// Uma classe de recurso fortemente tipados, para pesquisar cadeias de caracteres localizadas etc.
 /// </summary>
 // Esta classe foi gerada automaticamente pela StronglyTypedResourceBuilder
 // classe através de uma ferramenta como ResGen ou Visual Studio.
 // Para adicionar ou remover um associado, edite o arquivo .ResX e execute ResGen novamente
 // com a opção /str ou reconstrua seu projeto VS.
 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
 internal class Resources
 {
 private static global::System.Resources.ResourceManager resourceMan;
 private static global::System.Globalization.CultureInfo resourceCulture;
 [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
 internal Resources()
 {
 }
 /// <summary>
 /// Retorna a instância cacheada de ResourceManager utilizada por esta classe.
 /// </summary>
 [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
 internal static global::System.Resources.ResourceManager ResourceManager
 {
 get
 {
 if ((resourceMan == null))
 {
 global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Vendedores_Funcionarios.Properties.Resources", typeof(Resources).Assembly);
 resourceMan = temp;
 }
 return resourceMan;
 }
 }
 /// <summary>
 /// Substitui a propriedade CurrentUICulture do thread atual para todas
 /// as pesquisas de recursos que usam esta classe de recursos fortemente tipados.
 /// </summary>
 [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
 internal static global::System.Globalization.CultureInfo Culture
 {
 get
 {
 return resourceCulture;
 }
 set
 {
resourceCulture = value;
 }
 }
 }
}
Vendedores Funcionarios/Properties/Resources.resx
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 text/microsoft-resx
 
 
 2.0
 
 
 System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
 
 
 System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
 
Vendedores Funcionarios/Properties/Settings.Designer.cs
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace Vendedores_Funcionarios.Properties
{
 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")]
 internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
 {
 private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
 public static Settings Default
 {
 get
 {
 return defaultInstance;
 }
 }
 }
}
Vendedores Funcionarios/Properties/Settings.settings
 
 
 
 
 
Vendedores Funcionarios/txbValor/Enabled.cs
namespace txbValor
{
 internal class Enabled
 {
 }
}
Vendedores Funcionarios/vendedor.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Vendedores_Funcionarios
{
 class vendedor : Funcionario
 {
 private double vendas;
 protected double getvendas()
 {
 return vendas;
 }
 public void setvendas(double v)
 {
 vendas = v;
 }
 public void registrarvendas(double valor)
 {
 vendas += valor;
 }
 public double calcularSalario()
 {
 return salario + vendas * 0.5;
 }
 }
}
Vendedores Funcionarios/Vendedores Funcionarios.csproj
 
 
 
 Debug
 AnyCPU
 {6BD4421E-C948-4F5D-A36B-3D16A7E72B11}
 WinExe
 Vendedores_Funcionarios
 Vendedores Funcionarios
 v4.6.1
 512
 true
 true
 
 
 AnyCPU
 true
 full
 false
 bin\Debug\
 DEBUG;TRACE
 prompt
 4
 
 
 AnyCPU
 pdbonly
 true
 bin\Release\
 TRACE
 prompt
 4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 Form
 
 
 Form1.cs
 
 
 
 
 
 
 
 Form1.cs
 
 
 ResXFileCodeGenerator
 Resources.Designer.cs
 Designer
 
 
 True
 Resources.resx
 
 
 SettingsSingleFileGenerator
 Settings.Designer.cs
 
 
 True
 Settings.settings
 True

Teste o Premium para desbloquear

Aproveite todos os benefícios por 3 dias sem pagar! 😉
Já tem cadastro?

Mais conteúdos dessa disciplina