using Org.BouncyCastle.Asn1.Ocsp; using System; using System.Collections.Generic; using System.Text; namespace New_College.Common { public class MajorPlanScoreTool { /// /// 冲稳保计算 /// /// /// public static int GetPlanScore(int LowScore, int requestScore) { int minscore = requestScore - 15;//最小 int constscore = requestScore;//中位数 int maxscore = requestScore + 15;//最大 int type = LowScore <= minscore ? 0 : minscore < LowScore && LowScore <= constscore ? 1 : LowScore > constscore && LowScore <= maxscore ? 2 : -1; //if (LowScore <= minscore) //{ // return "保"; //} //else if (minscore < LowScore && LowScore <= constscore) //{ // return "稳"; //} //else if (LowScore > constscore && LowScore <= maxscore) //{ // return "冲"; //} //else //{ // return ""; //} return type; } } }