private void aceptarOrdProdBTN_Click(object sender, EventArgs e) { ProductionOrder prod = new ProductionOrder(""); //String _noLote, int _id, DateTime _creationDate, DateTime _finishedDate, int _status ProductionOrderModel prodMod = new ProductionOrderModel(); string idProd = (string)prodBOX.SelectedItem; //Console.WriteLine(idProd.Split(' ')[0]); //int id; int j; if (Int32.TryParse(idProd.Split(' ')[0], out j)) { ; } //idProd.Split(' ')[0] Console.WriteLine(dateTimePicker1.Value); if ((string)checkedListBox1.SelectedItem == "Sí") { ProductionOrder prodNuevo = new ProductionOrder(prodMod.getNewProdOrderNumber("CR"), j, DateTime.Now, dateTimePicker1.Value, 2); } else { ProductionOrder prodNuevo = new ProductionOrder(prodMod.getNewProdOrderNumber("CR"), j, DateTime.Now, dateTimePicker1.Value, 1); } }
private void updateNoLote() { prodOrderModel.getNewProdOrderNumber("CR"); }