| | |
| | | decimal lowerValue = Convert.ToDecimal(saveModel.MainData["lowerValue"]); |
| | | decimal upperValue = Convert.ToDecimal(saveModel.MainData["upperValue"]); |
| | | int isCantainGK = saveModel.MainData["isCantainGK"].ObjToInt(); |
| | | decimal lowerValue_gk = Convert.ToDecimal(saveModel.MainData["lowerValue_gk"]); |
| | | decimal upperValue_gk = Convert.ToDecimal(saveModel.MainData["upperValue_gk"]); |
| | | string PostContainer = saveModel.MainData["postContainer"].ToString(); |
| | | |
| | | |
| | | if (lowerValue < 0 || upperValue < 0) throw new Exception("è¿çéå¼å¼å¸¸"); |
| | | |
| | | decimal lowerValue_gk = 0; |
| | | decimal upperValue_gk = 0; |
| | | if (isCantainGK != 0) |
| | | { |
| | | if (lowerValue_gk < 0 || upperValue_gk < 0) throw new Exception("æªé¢è¿çéå¼å¼å¸¸"); |
| | | |
| | | lowerValue_gk = Convert.ToDecimal(saveModel.MainData["lowerValue_gk"]); |
| | | upperValue_gk = Convert.ToDecimal(saveModel.MainData["upperValue_gk"]); |
| | | if (isCantainGK != 0) |
| | | { |
| | | if (lowerValue_gk < 0 || upperValue_gk < 0) throw new Exception("æªé¢è¿çéå¼å¼å¸¸"); |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | Dt_SelectionStandards selectionStandards = new Dt_SelectionStandards |
| | | { |
| | |
| | | mttype = mttype, |
| | | neworold = neworold, |
| | | upperValue_gk = upperValue_gk, |
| | | upperValue = upperValue |
| | | upperValue = upperValue, |
| | | PostContainer = PostContainer, |
| | | }; |
| | | |
| | | if (BaseDal.AddData(selectionStandards) > 0) |
| | |
| | | string gkdj = saveModel.MainData["gkdj"].ToString(); |
| | | decimal lowerValue = Convert.ToDecimal(saveModel.MainData["lowerValue"]); |
| | | decimal upperValue = Convert.ToDecimal(saveModel.MainData["upperValue"]); |
| | | string PostContainer = saveModel.MainData["postContainer"].ToString(); |
| | | int isCantainGK = saveModel.MainData["isCantainGK"].ObjToInt(); |
| | | decimal lowerValue_gk = Convert.ToDecimal(saveModel.MainData["lowerValue_gk"]); |
| | | decimal upperValue_gk = Convert.ToDecimal(saveModel.MainData["upperValue_gk"]); |
| | | |
| | | Dt_SelectionStandards dt_Selection = BaseDal.QueryFirst(x => x.ID == id); |
| | | dt_Selection.CarType=carType; |
| | | dt_Selection.mttype=mttype; |
| | | |
| | | |
| | | |
| | | dt_Selection.CarType = carType; |
| | | dt_Selection.mttype = mttype; |
| | | dt_Selection.neworold = neworold; |
| | | dt_Selection.gkdj = gkdj; |
| | | dt_Selection.lowerValue = lowerValue; |
| | | dt_Selection.upperValue = upperValue; |
| | | dt_Selection.isCantainGK = isCantainGK != 0 ? true : false; |
| | | dt_Selection.lowerValue_gk = lowerValue_gk; |
| | | dt_Selection.upperValue_gk = upperValue_gk; |
| | | |
| | | dt_Selection.PostContainer = PostContainer; |
| | | |
| | | dt_Selection.isCantainGK = isCantainGK != 0 ? true : false; |
| | | if (isCantainGK != 0) |
| | | { |
| | | decimal lowerValue_gk = Convert.ToDecimal(saveModel.MainData["lowerValue_gk"]); |
| | | decimal upperValue_gk = Convert.ToDecimal(saveModel.MainData["upperValue_gk"]); |
| | | |
| | | dt_Selection.lowerValue_gk = lowerValue_gk; |
| | | dt_Selection.upperValue_gk = upperValue_gk; |
| | | } |
| | | |
| | | |
| | | if (BaseDal.UpdateData(dt_Selection)) |
| | | { |