Programa de clases en c#

Solo disponible en BuenasTareas
  • Páginas : 15 (3578 palabras )
  • Descarga(s) : 0
  • Publicado : 15 de febrero de 2012
Leer documento completo
Vista previa del texto
Instituto Tecnológico de Tijuana

Departamento de Computación y Sistemas

SUBDIRECCIÓN ACADÉMICA


UNIDAD TOMAS AQUINO



Ing. en Sistemas Computacionales





|2W2C |Programación Orientada a Objetos |


Alumnos:
Curiel Castro Luis Fernando
FloresMontoya Carlos Javier 09211253
Docente:
Jorge Uribe
Tema:
Proyecto con Librerías
Horario:
Lunes.Viernes 14:00 a 15:00 pm



TIJUANA, BC, A 25 DE marzo DEL 2010









Índice


Clase Busquedas 11


Clase Compras 14


Clase Datos 4


Clase Despliege 17


Clase empleados 18


Clase Encabezados 10


Clase Menus 4


Clase Nominas 19


Clase Program3


Clase Viajes 22











Clase Program

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Menus;

namespace BC_Recicladora
{
class Program
{



static void Main(string[] args)
{


//Instanciando Clase Menus
Menu MEN = new Menu();
string Opcion;//Aviso habilitar Mayusculas
Console.WriteLine("HABILITAR CONTROL MAYUS");
//Ciclo Que seguira hasta la Opcion de Salida S
do
{
//Dandole el Valor a la Opcion que se Toma en el Menu Principal
Opcion = MEN.Menues();
//Llamando ala Seleccion del MenuPrincipal
MEN.SCMenu(Opcion);

}
while (Opcion != "S" && Opcion != "s");

}
}
}
Clase Datos

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Datos
{
public class Dato
{
//Arreglo de Datos de Empleados
public string[,] Empleados = { { "01JBCH","CH01", "JUAN", "BARRAZA", "32", "7:00 a 4:00" }, { "02GGAD", "AD01", "GLORIA", "GOMEZ", "38", "8:00 a 5:00" }, { "03JPMA", "MA01", "JESUS", "PINEDA", "41", "11:00 a 7:00" }, { "04MAOB", "OB01", "MARLON", "ACOSTA", "24", "7:00 a 4:00" }, { "05MAOB", "OB01", "RENNE", "MONREAL", "25", "11:00 a 7:00" }, { "06LCMA", "MA01", "LUIS", "CURIEL", "21", "7:00 a 4:00" }, { "07EMCH", "CH01", "ELIAS","MONTOYA", "22", "11:00 a 7:00" }, { "08LGOB", "OB01", "LUIS", "GARCIA", "27", "7:00 a 4:00" }, { "09IPOB", "OB01", "ISMAEL", "PEREZ", "25", "11:00 a 7:00" } };
//Arreglo de Sueldos de los Empleados
public string[,] Sueldos = { { "CH01", "19.65", "CHOFER" }, { "AD01", "25.80", "ADMINISTRATIVO" }, { "MA01", "21.40", "MAQUINAS" }, { "OB01", "18.75", "OBRERO" } };
//Arreglo deMateriales
public string[,] Materiales = { { "AL01", "14", "ALUMINIO","14000" }, { "AL02", "12", "AL SUCIO","12000" }, { "CO01", "78", "COBRE","7800" }, { "BR01", "56", "BRONCE","56000" }, { "BT01", "14.5", "BOTE","14500" }, { "BA01", "16", "BOT AL","16000" }, { "FI01", "3", "FIERRO","3000" }, { "LA01", "2.5", "LAMINA","2500" } };
//Arreglo de Compras Realizadas
publicstring[,] Com = { { "COM001", "AL01", "3", "BR01", "1.5", "LA01", "9.3", "5-FEB" }, { "COM002", "BR02", "1", "BT01", "23", "BA01", "7.1", "6-FEB" }, { "COM003", "CO02", "4", "BT01", "2", "AL02", "5", "7-FEB" }, { "COM004", "FI01", "5", "LA01", "2.4", "AL02", "2", "8-FEB" }, { "COM005", "BT01", "12", "BR01", "3", "BT01", "12", "9-FEB" }, { "COM006", "CO01", "6", "BT01", "7", "LA01", "7.8", "5-FEB" },{ "COM007", "AL02", "4.2", "BA01", "6", "CO01", "8", "7-FEB" } };
//Arreglo de Ventas Realizadas
public string [,] Ven ={{"VIA099","1","COBRE","0.5","BOTE","7:00 A 12:40"},{"VIA098","2","ALUMINIO","1","BRONCE","11:00 A 5:10"},{"VIA097","0.5","FIERRO","2","COBRE","8:00 A 1:58"},{"VIA096","3","FIERRO","0.5","LAMINA","7:00 A 1:00"},{"VIA095","1","BRONCE","1","ALUMINIO","10:00 A...
tracking img