Esempio n. 1
0
 private static void CreateTempToCut(CutModel cutModel)
 {
     var result = new List<Stock>();
     result.Add(new Stock() {  Length = 4024, Quantity = 2 });
     result.Add(new Stock() {  Length = 1048, Quantity = 5 });
     result.Add(new Stock() { Length = 100, Quantity = 20 });
     cutModel.ToCut = result;
 }
Esempio n. 2
0
 private void ClearResult(CutModel cutmodel)
 {
     CutModel.Solve = null;
 }
Esempio n. 3
0
        private static void CreateTempStock(CutModel cutModel)
        {
            var result = new List<Stock>();

            result.Add(new Stock() {  Length = 6000, Quantity = 10 });
            cutModel.Stocks = result;
        }
Esempio n. 4
0
 public ActionResult Clear()
 {
     CutModel = new CutModel();
     return View("Index",CutModel);
 }