using using using using using using using using using using
System; [Link]; [Link]; [Link]; [Link]; [Link]; [Link]; [Link]; [Link]; [Link];
namespace Quema { public partial class Form1 : Form { DBCAMPOEntities dc = new DBCAMPOEntities(); public Form1() { InitializeComponent(); } private class TmpCia { public String CodCia { get; set; } public String NomCia { get; set; } //public String CedulaRUC { get; set; } } private class TmpCantero { public String CodCantero { get; set; } public int areaTotal { get; set; } } private void Form1_Load(object sender, EventArgs e) { var xx = (from p in [Link] where [Link] >= 113 select [Link]).ToList(); [Link] = xx; TBCabGuiQue TB = new TBCabGuiQue(); List<TmpCia> WLstCias = new List<TmpCia>(); TmpCia WCia; var yy = (from p in [Link] select new { [Link], NomCia2 = [Link] + "-" + [Link]}); foreach (var item in yy) { WCia = new TmpCia(); [Link] = [Link]; [Link] = item.NomCia2; // [Link] = [Link]; [Link](WCia); } [Link] = WLstCias; [Link] = "NomCia"; [Link] = "CodCia"; [Link] = 0; TBSecciones TS = new TBSecciones(); var sec = (from p in [Link] where [Link] == "S" orderby [Link] select [Link] ).ToList(); [Link] = sec; var sec2 = (from p in [Link] where [Link] == "S" orderby [Link] select new { [Link], [Link], [Link], [Link] } ).ToList(); [Link] = sec2; }
private void txtNumOrden_Validating(object sender, CancelEventArgs e) { [Link] = false; String WTexto = [Link](); if ([Link]() == "") { [Link] = true; [Link]("debe ingresar ot..."); return; } var Wot = (from p in [Link] where [Link] == WTexto select p).ToList(); if ([Link] <= 0) { [Link] = true ; [Link]("ot no existe"); return; } [Link] = Wot[0].[Link](); } private void btnGraba_Click(object sender, EventArgs e) { ////////////////////////////// //validar espacios en Blanco// ///////////////////////////// String WZz = [Link]; String x = [Link](); TmpCia WTmpCia = (TmpCia) [Link]; //x = [Link]; String WTexto = [Link](); if ([Link]() == "") { [Link]("N de Orden en Blanco", [Link], [Link]); return; } String ZTexto = [Link](); if ([Link]() == "") { [Link]("Hectareas a Quemar en Blanco..", [Link], [Link]); return; } var valorsel = [Link](); int NumZafra = Convert.ToInt32([Link]); var codcia = [Link](); float canhas =0; [Link]([Link](), out canhas); TBCabGuiQue WCabGuiQue = new TBCabGuiQue(); [Link] = NumZafra; [Link] = [Link](); [Link] = codcia; [Link] = valorsel; [Link] = [Link]();
[Link] = [Link]([Link]); //[Link] = canhas; //[Link] = [Link](); [Link](WCabGuiQue); try { [Link](); [Link]("Registro grabado exitosamente!!.."); } catch ([Link] ex) { //[Link](); string WmsgErr = [Link](ex); [Link](WmsgErr); throw; } catch ([Link] tion ex) { //[Link](); string WMsgErr = [Link](ex); [Link](WMsgErr); throw; } catch ([Link] ex) { //[Link](); string WMsgErr = [Link](ex); [Link](WMsgErr); throw; } catch (Exception) { //[Link](); throw; } } private void button1_Click(object sender, EventArgs e) { [Link](); } private void MskFecha_Validated(object sender, EventArgs e) { DateTime fecha; if ( && [Link] == false) { [Link]("Fecha incorrecta"); return; } } private void mskHora_Validated(object sender, EventArgs e) { DateTime hora; if ( && [Link] == false) { [Link]("Hora incorrecta!!"); return; } }
private void cmbCompaia_SelectedIndexChanged(object sender, EventArgs e) { String WCia = [Link](); var WLstCantero = (from p in [Link] where [Link] == WCia select new { Cantero = [Link]}).ToList(); [Link] = WLstCantero; [Link] = "DescCantero"; [Link] = "Cantero"; [Link] = true; } private void txtquemar_Validating(object sender, CancelEventArgs e) { double xx ; if (, out xx)) { [Link]("Debe ingresar solo numeros"); } } private void txtNumGui_Validating(object sender, CancelEventArgs e) { int xx; if (, out xx)) { [Link]("Debe ingresar solo numeros"); } } private void cmbCantero_SelectedIndexChanged(object sender, EventArgs e) { int WZafra = 129; String WCodCia = [Link](); String WNumCantero = [Link](); double Wtotal = 0; var WCanteroSuma = (from p in [Link] where [Link] == WZafra && [Link] == WCodCia && [Link] == WNumCantero select [Link]).ToList(); //Wtotal = [Link](x => [Link]); //[Link] = [Link](); String WCodigoCia = [Link](); String WNumeroCantero = [Link](); double WtotalArea = 0; var WArea = (from p in [Link] where [Link] == WCodigoCia && [Link] == WNumeroCantero select [Link]).ToList(); //WtotalArea = [Link](x => [Link]); //[Link] = [Link](); } } }