public clsBearing_Radial_FP(clsUnit.eSystem UnitSystem_In, eDesign Design_In, clsProduct CurrentProduct_In) : base(UnitSystem_In, Design_In) //========================================================================================================= { //....Instantiate member class objects: mPad = new clsPad(this); mFlexurePivot = new clsFlexurePivot(); mOilInlet = new clsOilInlet(this); mFlange = new clsFlange(this); //mTempSensor = new clsTempSensor(this); mMillRelief = new clsMillRelief(this); mSL = new clsSL(this); mARP = new clsARP(this); mEDM_Pad = new clsEDM_Pad(this); mMount = new clsMount(CurrentProduct_In); mPerformData = new clsPerformData(); //....Initialize: mSplitConfig = true; //........Material. mMat.WCode_Base = "1002-107"; mMat.LiningExists = true; mMat.WCode_Lining = "1002-960"; mCurrentProduct = CurrentProduct_In; }
//....Class Constructor public clsRadB(clsUnit.eSystem UnitSystem_In, eDesign Design_In, clsJBearing CurrentBearing_In) //============================================================================================= { mCurrentBearing = CurrentBearing_In; if (Design_In == eDesign.Flexure_Pivot) { mPivot = new clsPivot.clsFP(UnitSystem_In, clsRadB.eDesign.Flexure_Pivot, CurrentBearing_In); } else if (Design_In == eDesign.Tilting_Pad) { mPivot = new clsPivot.clsTP(UnitSystem_In, clsRadB.eDesign.Tilting_Pad, CurrentBearing_In); } //....Instantiate member class objects: mPad = new clsPad(this); mOilInlet = new clsOilInlet(CurrentBearing_In); mARP = new clsARP(CurrentBearing_In); mSL = new clsSL(CurrentBearing_In); mFlange = new clsFlange(this); //....Initialize: mSplitConfig = true; //........Material. mMat.WCode_Base = "1002-107"; mMat.LiningExists = true; mMat.WCode_Lining = "1002-960"; }
public clsBearing_Thrust_TL(clsUnit.eSystem UnitSystem_In, eType Type_In, clsDB DB_In, clsProduct CurrentProduct_In) : base(UnitSystem_In, Type_In, DB_In, CurrentProduct_In) //==================================================================================================================== { mPadD = new Double[2]; mFeedGroove = new clsFeedGroove(this); mWeepSlot = new clsWeepSlot(); mPerformData = new clsPerformData(); ////mT1 = new clsEndMill(); ////mT2 = new clsEndMill(); ////mT3 = new clsEndMill(); ////mT4 = new clsEndMill(); ////mT2.Type = clsEndMill.eType.Flat; ////mT4.Type = clsEndMill.eType.Chamfer; ////mOverlap_frac = mc_DESIGN_OVERLAP_FRAC; ////mFeedRate.Taperland = mc_FEED_RATE_TL_DEF; ////mDepth_TL_BackLash = mc_DEPTH_TL_BACKLASH; ////mDepth_TL_Dwell_T = mc_DEPTH_TL_DWELL_T; ////mFeedRate.WeepSlot = mc_FEED_RATE_WEEPSLOT_DEF; ////mDepth_WS_Cut_Per_Pass = mc_DEPTH_WS_CUT_PER_PASS_DEF; Mat.Base = "Steel 4340"; Mat.LiningExists = false; Mat.Lining = "Babbitt"; }
public clsProduct(clsUnit.eSystem UnitSystem_In, clsDB DB_In) //============================================================ { //PB 23JAN13. At the time of instantiation of this object, the Bearing Type & Bearing Design, EndConfig [0,1] Types are //....known. Hence, instantiate mBearing & mEndConfig [0,1] using the above info. To be done in the future. // Initialize. // ----------- // //....Unit System. mUnit = new clsUnit(); //....Default unit = English (automatically). mUnit.System = UnitSystem_In; //....Bearing. mBearing = new clsBearing_Radial_FP(mUnit.System, clsBearing_Radial.eDesign.Flexure_Pivot, this); //....End Plates: clsEndPlate.eType[] pEndPlate = new clsEndPlate.eType[2]; for (int i = 0; i < pEndPlate.Length; i++) { pEndPlate[i] = clsEndPlate.eType.Seal; //....Default cofigs = [Seal, Seal] } mEndPlate = new clsEndPlate[2]; for (int i = 0; i < 2; i++) { mEndPlate[i] = new clsSeal(mUnit.System, this); } }
//AM 13AUG12 //PB 13AUG12 //public Double PAD_L_THRESHOLD //{ // get // { // return mUnit.CMet_Eng(mcPAD_L_THRESHOLD); // } //} #endregion //....Class Constructor public clsBearing(clsUnit.eSystem UnitSystem_In, eType Type_In, clsBearing_Radial_FP.eDesign Design_In, clsDB DB_In) //==================================================================== { mUnit.System = UnitSystem_In; mType = Type_In; mDB = DB_In; }
//BG 19DEC12 //public clsProject(clsUnit.eSystem UnitSystem_In, clsBearing.eType Type_In, clsBearing_Radial_FP.eDesign Design_In, // clsEndConfig.eType[] EndConfigType_In, clsDB DB_In) ////================================================================================================================ //{ // mUnit.System = UnitSystem_In; // mProduct = new clsProduct(UnitSystem_In,Type_In, Design_In, EndConfigType_In, DB_In); // mFiltered_Project_Nos = new StringCollection(); //} public clsProject(clsUnit.eSystem UnitSystem_In) //============================================== { mUnit.System = UnitSystem_In; mProduct = new clsProduct(mUnit.System, modMain.gDB); //mProduct.Unit.System = mUnit.System; //PB 22JAN13. mFiltered_Project_Nos = new StringCollection(); }
public clsPin(clsUnit.eSystem UnitSystem_In) //========================================== { mUnit.System = UnitSystem_In; mDB = new clsDB(); mTypeList = new StringCollection(); GetTypeList(); }
public clsFP(clsUnit.eSystem UnitSystem_In, clsRadB.eDesign Design_In, clsJBearing CurrentBearing_In) : base(Design_In) //=============================================================================================== { //....Instantiate member class objects: mEDM_Pad = new clsEDM_Pad(CurrentBearing_In); mCurrentBearing = CurrentBearing_In; }
public clsEndPlate(clsUnit.eSystem UnitSystem_In, clsProduct CurrentProduct_In) //============================================================================= { mUnit.System = UnitSystem_In; mMat.LiningExists = false; mMat.Lining = "None"; mCurrentProduct = CurrentProduct_In; }
//#region "Wire Clip Holes:" // public clsWireClipHoles WireClipHoles // { // get { return mWireClipHoles; } // set { mWireClipHoles = value; } // } //#endregion //#region "Temp Sensor Exit Holes:" // public Double TempSensor_D_ExitHole // { // get { return mTempSensor_D_ExitHole; } // set { mTempSensor_D_ExitHole = value; } // } //#endregion #endregion #region "CONSTRUCTOR:" public clsSeal(clsUnit.eSystem UnitSystem_In, clsProduct CurrentProduct_In) : base(UnitSystem_In, CurrentProduct_In) //========================================================================== { //....Default Values: mDesign = eDesign.Fixed; //....Instantiate member object variables: //mCurrentProduct = CurrentProduct_In; mBlade = new clsBlade(); mDrainHoles = new clsDrainHoles(this, CurrentProduct_In); //mWireClipHoles = new clsWireClipHoles(this); }
public clsSeal(clsUnit.eSystem UnitSystem_In, eType Type_In, clsDB DB_In, clsProduct CurrentProduct_In) : base(UnitSystem_In, Type_In, DB_In, CurrentProduct_In) //===================================================================================================== { //....Default Values: mDesign = eDesign.Fixed; mLiningT = mc_DESIGN_LINING_THICK; //....Instantiate member object variables: mBlade = new clsBlade(); mDrainHoles = new clsDrainHoles(this); mWireClipHoles = new clsWireClipHoles(this); }
public clsProject(clsUnit.eSystem UnitSystem_In, clsBearing.eType Type_In) //======================================================================== { // Initialize. mPNR.Unit.System = UnitSystem_In; //....Default unit = English (automatically). if (Type_In == clsBearing.eType.JBearing) { mPNR.Bearing = new clsJBearing(UnitSystem_In, Type_In); } else if (Type_In == clsBearing.eType.TBearing) { mPNR.Bearing = new clsTBearing(UnitSystem_In, Type_In); } }
public clsEndConfig(clsUnit.eSystem UnitSystem_In, eType Type_In, clsDB DB_In, clsProduct CurrentProduct_In) //================================================================= { mUnit.System = UnitSystem_In; mType = Type_In; mMountHoles = new clsMountHoles(this); mMat.Base = "Bronze 660"; mMat.LiningExists = false; mMat.Lining = "None"; mCurrentProduct = CurrentProduct_In; mDB = DB_In; }
//BG 24AUG12 //public clsFixture() //{ // mHolesAngOther = new Double[mc_COUNT_MOUNT_HOLES_ANG_OTHER_MAX]; //} public clsFixture(clsBearing_Radial_FP Current_Bearing_Radial_FP_In) //================================================================== { mHolesAngOther = new Double[mc_COUNT_MOUNT_HOLES_ANG_OTHER_MAX]; //BG 24AUG12 clsUnit.eSystem pUnitSystem = Current_Bearing_Radial_FP_In.Unit.System; mScrew_Spec = new clsScrew(pUnitSystem); //....Screw. //BG 24AUG12 mScrew_Spec.Type = "SHCS"; mScrew_Spec.Mat = "STL"; mHolesCount = 4; //....HolesEquispaced mHolesEquiSpaced = true; }
//....Class Constructor public clsJBearing(clsUnit.eSystem UnitSystem_In, clsBearing.eType BearingType_In) : base(UnitSystem_In, BearingType_In) //=============================================================================== { mUnit.System = UnitSystem_In; mRadB = new clsRadB(UnitSystem_In, clsRadB.eDesign.Flexure_Pivot, this); //....End Plates: mEndPlate = new clsEndPlate[2]; //....Mount mMount = new clsMount[2]; for (int i = 0; i < 2; i++) { mEndPlate[i] = new clsEndPlate(mUnit.System, this); mMount[i] = new clsMount(this); } }
//....Class Constructor public clsBearing_Radial(clsUnit.eSystem UnitSystem_In, eType Type_In, eDesign Design_In, clsDB DB_In) : base(UnitSystem_In, Type_In, Design_In, DB_In) //==================================================================================================== { mDesign = Design_In; }
//....Class Constructor public clsBearing(clsUnit.eSystem UnitSystem_In, clsBearing_Radial_FP.eDesign Design_In) //====================================================================================== { mUnit.System = UnitSystem_In; //mDB = DB_In; }
private void SaveData() //====================== { Boolean pNewProject = true; //AES 18OCT18 if (modMain.gProject != null) { if (modMain.gProject.PNR.Unit.System != (clsUnit.eSystem)Enum.Parse(typeof(clsUnit.eSystem), cmbUnitSystem.Text)) { pNewProject = true; } else { pNewProject = false; //clsEndPlate.eType[] pType = new clsEndPlate.eType[2]; //pType[0] = (clsEndPlate.eType)Enum.Parse(typeof(clsEndPlate.eType), cmbEndConfig_Front.Text.Replace(" ", "_")); //pType[1] = (clsEndPlate.eType)Enum.Parse(typeof(clsEndPlate.eType), cmbEndConfig_Back.Text.Replace(" ", "_")); //for (int i = 0; i < 2; i++) //{ // if (modMain.gProject.Product.EndPlate[i].Type != pType[i]) // { // pNewProject = true; // break; // } // else // { // pNewProject = false; // } //} } } if (pNewProject || mblnNewProject) { mblnNewProject = false; clsUnit.eSystem pUnitSystem = (clsUnit.eSystem)Enum.Parse(typeof(clsUnit.eSystem), cmbUnitSystem.Text); modMain.gProject = new clsProject(pUnitSystem, clsBearing.eType.JBearing); //....Customer modMain.gProject.SOL.Customer.Name = txtCustName.Text; modMain.gProject.SOL.Customer.OrderNo = txtCustOrderNo.Text; modMain.gProject.SOL.Customer.MachineName = txtCustMachineName.Text; modMain.gProject.PNR.Unit.System = (clsUnit.eSystem)Enum.Parse(typeof(clsUnit.eSystem), cmbUnitSystem.Text); //....Sales Order //string pSONo = txtSONo.Text; if (cmbSONo_Part1.Text != "" && txtSONo_Part2.Text != "" && txtSONo_Part3.Text != "") { //modMain.gProject.SalesOrder.No = txtSONo_Part1.Text + " " + txtSONo_Part2.Text; modMain.gProject.SOL.SONo = cmbSONo_Part1.Text + " " + txtSONo_Part2.Text; modMain.gProject.SOL.LineNo = txtSONo_Part3.Text; } modMain.gProject.SOL.RelatedNo = txtRelatedSONo.Text; modMain.gProject.PNR.No = txtPartNo.Text; modMain.gProject.Status = "Open"; if (optOrder.Checked) { modMain.gProject.SOL.Type = clsProject.clsSOL.eType.Order; } else if (optProposal.Checked) { modMain.gProject.SOL.Type = clsProject.clsSOL.eType.Proposal; } //....Product //........Bearing modMain.gProject.PNR.Bearing.Type = (clsBearing.eType)Enum.Parse(typeof(clsBearing.eType), cmbProduct.Text); ((clsJBearing)modMain.gProject.PNR.Bearing).RadB.Pivot.Design = (clsRadB.eDesign)Enum.Parse(typeof(clsRadB.eDesign), cmbDesign.Text.ToString().Replace(" ", "_")); ((clsJBearing)modMain.gProject.PNR.Bearing).EndPlate[0].TLTB.Exists = chkTLTB_Front.Checked; ((clsJBearing)modMain.gProject.PNR.Bearing).EndPlate[1].TLTB.Exists = chkTLTB_Back.Checked; //for (int i = 0; i < 2; i++) //{ // if (pType[i] == clsEndPlate.eType.Seal) // { // modMain.gProject.Product.EndPlate[i] = new clsSeal(modMain.gProject.PNR.Unit.System, modMain.gProject.Product); // } // else if (pType[i] == clsEndPlate.eType.TL_TB) // { // modMain.gProject.Product.EndPlate[i] = new clsBearing_Thrust_TL(modMain.gProject.PNR.Unit.System, modMain.gProject.Product); // } //} } else { //....Customer modMain.gProject.SOL.Customer.Name = txtCustName.Text; modMain.gProject.SOL.Customer.OrderNo = txtCustOrderNo.Text; modMain.gProject.SOL.Customer.MachineName = txtCustMachineName.Text; modMain.gProject.PNR.Unit.System = (clsUnit.eSystem)Enum.Parse(typeof(clsUnit.eSystem), cmbUnitSystem.Text); //....Sales Order if (cmbSONo_Part1.Text != "" && txtSONo_Part2.Text != "" && txtSONo_Part3.Text != "") { //modMain.gProject.SalesOrder.No = txtSONo_Part1.Text + " " + txtSONo_Part2.Text; modMain.gProject.SOL.SONo = cmbSONo_Part1.Text + " " + txtSONo_Part2.Text; modMain.gProject.SOL.LineNo = txtSONo_Part3.Text; } modMain.gProject.SOL.RelatedNo = txtRelatedSONo.Text; modMain.gProject.PNR.No = txtPartNo.Text; modMain.gProject.Status = "Open"; if (optOrder.Checked) { modMain.gProject.SOL.Type = clsProject.clsSOL.eType.Order; } else if (optProposal.Checked) { modMain.gProject.SOL.Type = clsProject.clsSOL.eType.Proposal; } } }
public clsProject(clsUnit.eSystem UnitSystem_In) //============================================== { mPNR.Unit.System = UnitSystem_In; mProduct = new clsProduct(mPNR.Unit.System, modMain.gDB); }
public clsBearing(clsUnit.eSystem UnitSystem_In, eType Type_In) //============================================================= { mType = Type_In; }
private void SaveData() //====================== { Boolean pNewProject = true; if (modMain.gProject != null) { if (modMain.gProject.Unit.System != (clsUnit.eSystem)Enum.Parse(typeof(clsUnit.eSystem), cmbUnitSystem.Text)) { pNewProject = true; } else { clsEndConfig.eType[] pType = new clsEndConfig.eType[2]; pType[0] = (clsEndConfig.eType)Enum.Parse(typeof(clsEndConfig.eType), cmbEndConfig_Front.Text.Replace(" ", "_")); pType[1] = (clsEndConfig.eType)Enum.Parse(typeof(clsEndConfig.eType), cmbEndConfig_Back.Text.Replace(" ", "_")); for (int i = 0; i < 2; i++) { if (modMain.gProject.Product.EndConfig[i].Type != pType[i]) { pNewProject = true; break; } else { pNewProject = false; } } } } if (pNewProject) { clsUnit.eSystem pUnitSystem = (clsUnit.eSystem)Enum.Parse(typeof(clsUnit.eSystem), cmbUnitSystem.Text); modMain.gProject = new clsProject(pUnitSystem); modMain.gProject.No = txtNo.Text; //modMain.gProject.No_Suffix = txtNo_Suffix.Text; //....Product //........Bearing modMain.gProject.Product.Bearing.Type = (clsBearing.eType)Enum.Parse(typeof(clsBearing.eType), cmbProduct.Text); ((clsBearing_Radial)modMain.gProject.Product.Bearing).Design = (clsBearing_Radial.eDesign)Enum.Parse(typeof(clsBearing_Radial.eDesign), cmbType.Text.ToString().Replace(" ", "_")); //Customer. //--------- modMain.gProject.Customer_Name = txtCustomer_Name.Text; clsEndConfig.eType[] pType = new clsEndConfig.eType[2]; pType[0] = (clsEndConfig.eType)Enum.Parse(typeof(clsEndConfig.eType), cmbEndConfig_Front.Text.Replace(" ", "_")); pType[1] = (clsEndConfig.eType)Enum.Parse(typeof(clsEndConfig.eType), cmbEndConfig_Back.Text.Replace(" ", "_")); for (int i = 0; i < 2; i++) { if (pType[i] == clsEndConfig.eType.Seal) { modMain.gProject.Product.EndConfig[i] = new clsSeal(modMain.gProject.Unit.System, pType[i], modMain.gDB, modMain.gProject.Product); } else if (pType[i] == clsEndConfig.eType.Thrust_Bearing_TL) { modMain.gProject.Product.EndConfig[i] = new clsBearing_Thrust_TL(modMain.gProject.Unit.System, pType[i], modMain.gDB, modMain.gProject.Product); } } } }
//======================== #endregion #region "CONSTRUCTOR:" public clsTP(clsUnit.eSystem UnitSystem_In, clsRadB.eDesign Design_In, clsJBearing CurrentBearing_In) : base(Design_In) //====================================================================================== { }
public clsPin(clsUnit.eSystem UnitSystem_In) //========================================== { mSpec.Unit = new clsUnit(); mSpec.Unit.System = UnitSystem_In; }
//....Class Constructor public clsTBearing(clsUnit.eSystem UnitSystem_In, clsBearing.eType BearingType_In) : base(UnitSystem_In, BearingType_In) //==================================================================================== { mUnit.System = UnitSystem_In; }