| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161 |
- 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
- {
- class ToleranceNk : FrmBase
- {
- /// <summary>
- /// 外径
- /// </summary>
- private double outdiameter;
- /// <summary>
- /// 外径(mm)
- /// </summary>
- public double Outdiameter
- {
- get { return outdiameter; }
- set { outdiameter = value; }
- }
- /// <summary>
- /// 壁厚
- /// </summary>
- private double wallthick;
- /// <summary>
- /// 壁厚(mm)
- /// </summary>
- public double Wallthick
- {
- get { return wallthick; }
- set { wallthick = value; }
- }
- /// <summary>
- /// 长度上限
- /// </summary>
- private double lengthmax;
- /// <summary>
- /// 长度上限(m)
- /// </summary>
- public double Lengthmax
- {
- get { return lengthmax; }
- set { lengthmax = value; }
- }
- /// <summary>
- /// 长度下限
- /// </summary>
- private double lengthmin;
- /// <summary>
- /// 长度下限(m)
- /// </summary>
- public double Lengthmin
- {
- get { return lengthmin; }
- set { lengthmin = value; }
- }
- /// <summary>
- /// 公差标准索引
- /// </summary>
- private string sic;
- /// <summary>
- /// 公差标准索引
- /// </summary>
- public string Sic
- {
- get { return sic; }
- set { sic = value; }
- }
- /// <summary>
- /// 公差项代码
- /// </summary>
- private string baseCode;
- /// <summary>
- /// 公差项代码
- /// </summary>
- public string BaseCode
- {
- get { return baseCode; }
- set { baseCode = value; }
- }
- /// <summary>
- /// 公差下限
- /// </summary>
- private double lower;
- /// <summary>
- /// 公差下限
- /// </summary>
- public double Lower
- {
- get { return lower; }
- set { lower = value; }
- }
- /// <summary>
- /// 公差上限
- /// </summary>
- private double upper;
- /// <summary>
- /// 公差上限
- /// </summary>
- public double Upper
- {
- get { return upper; }
- set { upper = value; }
- }
- public ToleranceNk(OpeBase openBase)
- {
- this.ob = openBase;
- outdiameter = 0;
- wallthick = 0;
- lengthmin = 0;
- lengthmax = 0;
- sic = "";
- baseCode = "";
- upper = 0;
- lower = 0;
- }
- /// <summary>
- /// 查询内控公差
- /// </summary>
- public void getToleranceOfNk()
- {
- ArrayList param = new ArrayList();
- param.Add(outdiameter);
- param.Add(wallthick);
- param.Add(sic);
- param.Add(lengthmin);
- param.Add(lengthmax);
- param.Add(baseCode);
- CoreClientParam ccp = new CoreClientParam();
- ccp.ServerName = "com.steering.pss.plan.order.baseMethod.CoreToleranceNk";
- ccp.MethodName = "getTolerOfNk";
- ccp.ServerParams = new object[] { param };
- ccp = ob.ExecuteSortResultByQueryToDataTable(ccp, CoreInvokeType.Internal);
- if (ccp == null || ccp.ReturnObject == null)
- {
- MessageBox.Show("服务端处理失败!");
- return;
- }
- ArrayList result = (ArrayList)ccp.ReturnObject;
- lower = (double)result[0];
- upper = (double)result[1];
- }
- }
- }
|