private void btTerminar_Click(object sender, EventArgs e) { cProduc.OF oProduc = new cProduc.OF(); _Terminar = false; if (cbUbi.Text == "") { MessageBox.Show("No se ha informado la UbicaciĆ³n de destino del material sobrante"); return; } if (cbUbiPiezas.Text == "") { MessageBox.Show("No se ha informado la UbicaciĆ³n de destino de las Piezas"); return; } oProduc.Id = Convert.ToInt32(txId.Text); oProduc.fncGrabaCampo("Horas", txHoras.Text.Replace(",", ".")); oProduc.fncGrabaCampo("PiezasReales", txPiezasReales.Text.Replace(",", ".")); oProduc.fncGrabaCampo("PiezasNoOk", txSobrante.Text.Replace(",", ".")); oProduc.fncGrabaCampo("Kilos", txKilos.Text.Replace(",", ".")); //oProduc.fncGrabaCampo("NoMaquina", txMaquina.Text); oProduc.fncGrabaCampo("Ubi", cbUbi.Text); string vMen = "Se Terminaran la O.F.L. " + lbOF.Text + " .Esta seguro?"; string vTit = "Terminar O.F.L."; if (MessageBox.Show(vMen, vTit, MessageBoxButtons.YesNo) == DialogResult.No) { return; } _UbiPie = cbUbiPiezas.Text; _Terminar = true; this.Close(); }
private void txGrabar_Click(object sender, EventArgs e) { cProduc.OF oProduc = new cProduc.OF(); oProduc.Id = Convert.ToInt32(txId.Text); oProduc.fncGrabaCampo("Horas", txHoras.Text.Replace(",", ".")); oProduc.fncGrabaCampo("PiezasReales", txPiezasReales.Text.Replace(",", ".")); oProduc.fncGrabaCampo("PiezasNoOk", txSobrante.Text.Replace(",", ".")); oProduc.fncGrabaCampo("Kilos", txKilos.Text.Replace(",", ".")); oProduc.fncGrabaCampo("Maquina", txMaquina.Text); oProduc.fncGrabaCampo("Ubi", cbUbi.Text); btGrabar.Visible = false; //this.Close(); }
private void sbrModifCampo(string vCampo, string vValor) { cProduc.OF of = (cProduc.OF)bS1.Current; if ((of.aCampoModif != "") & (of.aCampoModif != null)) { vCampo = of.aCampoModif; } if ((of.aValor != "") & (of.aValor != null)) { vValor = of.aValor; } if (!of.fncGrabaCampo(vCampo, vValor)) { MessageBox.Show("No se ha podido Grabar el Dato"); bS1.CancelEdit(); } //if (vCampo == "CodCli") //{ // sbrActuCli(vValor); //} }