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
{
///
/// 质量设计
///
private string desginKey;
///
/// 公差项代码
///
private string biasCode;
///
/// 是否特殊要求
///
private string speclFl;
///
/// 标准下限
///
private double stdMin;
///
/// 标准上限
///
private double stdMax;
///
/// 外径
///
private double outdiameter;
///
/// 壁厚
///
private double wallthick;
/// s
/// 控制壁厚
///
private double aimWallthick;
public OrderStdSic(OpeBase openBase)
{
desginKey = "";
biasCode = "";
speclFl = "0";
stdMin = 0;
stdMax = 0;
this.ob = openBase;
}
///
/// 获取公差上下限
///
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;
}
///
/// 质量设计
///
public string DesginKey
{
get { return desginKey; }
set { desginKey = value; }
}
///
/// 公差项代码
///
public string BiasCode
{
get { return biasCode; }
set { biasCode = value; }
}
///
/// 是否特殊要求(0:交付标准;1:特殊要求;2:内控标准)
///
public string SpeclFl
{
get { return speclFl; }
set { speclFl = 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; }
}
}
}