using System; using System.Collections.Generic; using System.Linq; using System.Text; using CoreFS.CA06; using System.Collections; using System.Windows.Forms; namespace Core.StlMes.Client.PlnSaleOrd.BaseMethod { class OrderStdSic { private OpeBase opeBase = null; /// /// 质量设计 /// private string desginKey; /// /// 标准下限 /// private double stdMin; /// /// 标准上限 /// private double stdMax; /// /// 外径 /// private double outdiameter; /// /// 壁厚 /// private double wallthick; /// s /// 控制壁厚 /// private double aimWallthick; public OrderStdSic(OpeBase openBase) { desginKey = ""; stdMin = 0; stdMax = 0; opeBase = openBase; } /// /// 获取公差上下限 /// public void getStdTolerance() { ArrayList result = null; CoreClientParam ccp = new CoreClientParam(); ccp.ServerName = "com.steering.pss.plnsaleord.order.baseMethod.CoreOrderStdSic"; ccp.MethodName = "getStdTolerance"; ccp.ServerParams = new object[] { desginKey, outdiameter, wallthick }; ccp = opeBase.ExecuteSortResultByQueryToDataTable(ccp, CoreInvokeType.Internal); if (ccp == null || ccp.ReturnObject == null) { MessageBox.Show("服务端处理失败!"); return; } result = (ArrayList)ccp.ReturnObject; stdMax = (double)result[0]; stdMin = (double)result[1]; aimWallthick = ((wallthick + stdMin) + (wallthick + stdMax)) / 2; } /// /// 质量设计 /// public string DesginKey { get { return desginKey; } set { desginKey = value; } } /// /// 标准下限 /// public double StdMin { get { return stdMin; } set { stdMin = value; } } /// /// 标准上限 /// public double StdMax { get { return stdMax; } set { stdMax = value; } } /// /// 外径 /// public double Outdiameter { get { return outdiameter; } set { outdiameter = value; } } /// /// 壁厚 /// public double Wallthick { get { return wallthick; } set { wallthick = value; } } /// /// 控制壁厚 /// public double AimWallthick { get { return aimWallthick; } set { aimWallthick = value; } } } }