Acarreo: Using Using Using Using Using Using Using Using Using Namespace Public Partial Class Public
Acarreo: Using Using Using Using Using Using Using Using Using Namespace Public Partial Class Public
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 MIneria_Superficial
{
public partial class Acarreo : Form
{
public Acarreo()
{
InitializeComponent();
}
double Camion = 0.0, nop = 0.0, suop = 0.0, ng = 0.0, costg = 0.0, sueldoop
= 0.0, costac = 0.0, gastcomb = 0.0;
ng = Convert.ToDouble(txtNgalCOm.Text);
costg = Convert.ToDouble(txtCostoGal.Text);
txtGastCombs.Text = (ng * costg).ToString();
txtCostoAcarr.Text = Math.Round(costac,2).ToString();
}
}
CARGUIO
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 MIneria_Superficial
{
public partial class Carguio : Form
{
public Carguio()
{
InitializeComponent();
}
double ng = 0.0, costgal = 0.0, costcomb = 0.0, ntrab = 0.0, sueldo = 0.0,
palas = 0.0, costocar = 0.0;
private void btnVprinc_Click(object sender, EventArgs e)
{
PantallaPrincipal pp = new PantallaPrincipal();
pp.Show();
this.Hide();
}
}
}
COSTO DE PRODUCCION
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 MIneria_Superficial
{
public partial class Costo_de_Producción_y_Ganancia_Total : Form
{
public Costo_de_Producción_y_Ganancia_Total()
{
InitializeComponent();
}
double ton = 0.0, ley = 0.0, ponza = 0.0, cospq = 0.0, ncol = 0.0, sueldodia
= 0.0, inpro=0.0,
qoro = 0.0, onzoro = 0.0, supers = 0.0, costmin = 0.0, ganan = 0.0,
nonzas = 0.0;
private void btnVprinc_Click(object sender, EventArgs e)
{
PantallaPrincipal pp = new PantallaPrincipal();
pp.Show();
this.Hide();
}
nonzas = Convert.ToDouble(txtOnzoro.Text);
costmin = nonzas * ponza;
txtCostMin.Text = Math.Round(costmin, 2).ToString();
INTEGRANTES
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 MIneria_Superficial
{
public partial class Integrantes : Form
{
public Integrantes()
{
InitializeComponent();
}
}
}
}
LOGIN
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 MIneria_Superficial
{
public partial class Login : Form
{
public Login()
{
InitializeComponent();
}
string user = "MINAS", pass = "2018";
private void Login_Load(object sender, EventArgs e)
{
txtUser.Focus();
this.btnIngresa.DialogResult = System.Windows.Forms.DialogResult.Yes;
}
}
}
}
PANTALLA PRINCIPAL
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 MIneria_Superficial
{
public partial class PantallaPrincipal : Form
{
public PantallaPrincipal()
{
InitializeComponent();
}
PERFORACION
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 MIneria_Superficial
{
public partial class Perforacion : Form
{
TextBox[,] ct_A;
TextBox[,] ct_B;
TextBox[,] ct_C;
public Perforacion()
{
InitializeComponent();
ct_A = new TextBox[3, 1] {
{txtNumOp,},
{txtNumPerf},
{txtNumTal}
};
ct_B = new TextBox[3, 1] { {txtSuelOp}, { txtGastPerf}, { txtGastTal} };
ct_C = new TextBox[3, 1] { { gaop}, { gaper}, {gatal} };
}
int i, j;
//Lectura de la Matriz A
for (i = 0; i < 3; i++)
for (j = 0; j < 1; j++)
A[i, j] = Convert.ToInt32(ct_A[i, j].Text);
//Lectura de la Matriz B
for (i = 0; i < 3; i++)
for (j = 0; j < 1; j++)
B[i, j] = Convert.ToInt32(ct_B[i, j].Text);
namespace MIneria_Superficial
{
public partial class Voladura : Form
{
public Voladura()
{
InitializeComponent();
}
txtFulminantes.Text = "";
txtTrabaj.Text = "";
txtSuelDia.Text = "";
txtMseg80.Text ="";
txtExplosiv.Text = "";
txtSueldPers.Text = "";
txtSubt.Text = "";
txtIGV.Text = "";
txtCostoAcc.Text = "";
txtCostoVol.Text = "";
}
}
}
}