| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157 |
- 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.Plan.Order.BaseMethod
- {
- class OrderStdSic : FrmBase
- {
- /// <summary>
- /// 质量设计
- /// </summary>
- private string desginKey;
- /// <summary>
- /// 公差项代码
- /// </summary>
- private string biasCode;
- /// <summary>
- /// 是否特殊要求
- /// </summary>
- private string speclFl;
- /// <summary>
- /// 标准下限
- /// </summary>
- private double stdMin;
- /// <summary>
- /// 标准上限
- /// </summary>
- private double stdMax;
- /// <summary>
- /// 外径
- /// </summary>
- private double outdiameter;
- /// <summary>
- /// 壁厚
- /// </summary>
- private double wallthick;
-
- /// <summary>s
- /// 控制壁厚
- /// </summary>
- private double aimWallthick;
- public OrderStdSic(OpeBase openBase)
- {
- desginKey = "";
- biasCode = "";
- speclFl = "0";
- stdMin = 0;
- stdMax = 0;
- this.ob = openBase;
- }
- /// <summary>
- /// 获取公差上下限
- /// </summary>
- public void getStdTolerance()
- {
- ArrayList result = null;
- CoreClientParam ccp = new CoreClientParam();
- ccp.ServerName = "com.steering.pss.plan.order.baseMethod.CoreOrderStdSic";
- ccp.MethodName = "getStdTolerance";
- ccp.ServerParams = new object[] { desginKey, biasCode, speclFl, outdiameter, wallthick };
- ccp = ob.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;
- }
- /// <summary>
- /// 质量设计
- /// </summary>
- public string DesginKey
- {
- get { return desginKey; }
- set { desginKey = value; }
- }
- /// <summary>
- /// 公差项代码
- /// </summary>
- public string BiasCode
- {
- get { return biasCode; }
- set { biasCode = value; }
- }
- /// <summary>
- /// 是否特殊要求(0:交付标准;1:特殊要求;2:内控标准)
- /// </summary>
- public string SpeclFl
- {
- get { return speclFl; }
- set { speclFl = value; }
- }
- /// <summary>
- /// 标准下限
- /// </summary>
- public double StdMin
- {
- get { return stdMin; }
- set { stdMin = value; }
- }
- /// <summary>
- /// 标准上限
- /// </summary>
- public double StdMax
- {
- get { return stdMax; }
- set { stdMax = value; }
- }
- /// <summary>
- /// 外径
- /// </summary>
- public double Outdiameter
- {
- get { return outdiameter; }
- set { outdiameter = value; }
- }
- /// <summary>
- /// 壁厚
- /// </summary>
- public double Wallthick
- {
- get { return wallthick; }
- set { wallthick = value; }
- }
- /// <summary>
- /// 控制壁厚
- /// </summary>
- public double AimWallthick
- {
- get { return aimWallthick; }
- set { aimWallthick = value; }
- }
- }
- }
|