コード例 #1
0
ファイル: SR_CTRL.CPP プロジェクト: abcweizhuo/Test3
void CEC_EquilTXPoly::BuildDataDefn(DataDefnBlk & DDB)
  {
  DDB.Text  ("EquilTXPoly");
  DDEF_Flags VFlags=DDB.GetVisibility();
  DDB.String("ExtentType",        "",        DC_,     "",      xid_RCTExtentType,          &Eq, SetOnChange|isParm, DDBExtentTypes);
  DDB.SetVisibility(VFlags);

  DDB.Double("K_Eq",             "",        DC_,     "",      &dK_Eq,                  &Eq, isResult);
  DDB.Double("K_Act",            "",        DC_,     "",      &dK_Act,                 &Eq, isResult);
  DDB.Double("ExtentError",      "",        DC_Frac, "%",     xid_ExtentError,         &Eq, isResult|noFile|noSnap|NAN_OK);
  if (m_bDoResTime)
    {
    //DDB.Double("K_Rt",           "",        DC_,     "",      &dK_Rt,                  &Eq, isResult);
    //DDB.Double("Defined_RT",     "",        DC_Time, "s",     &m_ddDefinedResTime,        &Eq, isParm);
    //m_ddDefinedResTime.BuildDataDefn(DDB, "RT_Ref", "",  DC_Time, "s",  xid_RTRef,   &Eq, "Rct", "Reqd");
    //m_ddActualResTime.BuildDataDefn(DDB, "RT",      "",  DC_Time, "s",  xid_ResTime, &Eq, "Actual", "Reqd");
    //DDB.Double("Actual_RT",      "",        DC_Time, "s",     &m_ddActualResTime,         &Eq, isParm);
    DDB.Double("Alpha",          "",        DC_,     "",      &m_dAlpha,                 &Eq, isResult);
    }

//  if (m_iXSpcId>=0)
//    {
//    DDB.String("ExtentSpc", "", DC_, "", &m_sExtentSpc, &Eq, 0|InitHidden|noFileAtAll);
//    CCnvIndex dc;
//    pchar pCnvTxt;
//    SDB.AddSpCnv(DC_Frac, SDB[m_iXSpcId].SymOrTag(), "%", dc, pCnvTxt);
//    m_ddExtentRqd.BuildDataDefn(DDB, "Extent", "",  dc, pCnvTxt,  xid_RCTExtent, &Eq, "Rct", "Reqd");
//    }
  };
コード例 #2
0
ファイル: SR_CTRL.CPP プロジェクト: abcweizhuo/Test3
void CEC_FracExt::BuildDataDefn(DataDefnBlk & DDB)
  {
  Strng T;
  T.Set("Fractional Extent %s", m_Spc.m_Name());
  if (m_bStablize)
    T += " (Stabilised)";

  DDB.Text  (T());
  DDEF_Flags VFlags=DDB.GetVisibility();
  DDB.String("ExtentType",        "",        DC_,     "",      xid_RCTExtentType,          &Eq, SetOnChange|isParm, DDBExtentTypes);
  DDB.SetVisibility(VFlags);

  if (m_iXSpcId>=0)
    {
    DDB.String("ExtentSpc", "", DC_, "", &m_sExtentSpc, &Eq, 0|InitHidden|noFileAtAll);
    CCnvIndex dc;
    pchar pCnvTxt;
    SDB.AddSpCnv(DC_Frac, SDB[m_iXSpcId].SymOrTag(), "%", dc, pCnvTxt);
    m_ddExtentRqd.BuildDataDefn(DDB, "Extent", "",  dc, pCnvTxt,  xid_RCTExtent, &Eq, "Rct", "Reqd");
    DDB.Double("ExtentAchieved",   "",     DC_Frac, "%",  &m_dKEOStep,  &Eq, isResult);

    if (!DynamicRate())
      DDB.Double("ExtentError",       "",        DC_Frac, "%",     xid_ExtentError,         &Eq, isResult|noFile|noSnap|InitHidden|NAN_OK);
    else
      {
      if (m_bDoRate)
        {
        m_ddFracRate.BuildDataDefn(DDB, "Rate", "",  DC_FracRate, "%/s",  xid_RCTFracRate, &Eq, "Rct", "Reqd");
        }
      }
    }
  }
コード例 #3
0
ファイル: SR_CTRL.CPP プロジェクト: abcweizhuo/Test3
void CEC_FinalConc::BuildDataDefn(DataDefnBlk & DDB)
  {
  Strng T;
  T.Set("Final Conc %s", m_Spc.m_Name());

  DDB.Text  (T());
  DDEF_Flags VFlags=DDB.GetVisibility();
  DDB.String("ExtentType",        "",        DC_,     "",      xid_RCTExtentType,          &Eq, SetOnChange|isParm, DDBExtentTypes);
  DDB.SetVisibility(VFlags);

  if (m_Spc.m_ReactTerm>=0 || m_Spc.m_ProdTerm>=0)
    {
    CCnvIndex dc;
    pchar pCnvTxt;
    SDB.AddSpCnv(DC_Conc, SDB[m_Spc.m_SpcId].SymOrTag(), "g/L", dc, pCnvTxt);
    Strng S,C("Rct"),R("Reqd");
    if (Valid(m_dRqdTemp))
      S.Set("@%.2f", K2C(m_dRqdTemp));
    else
      S="@FinalT";
    C+=S;
    R+=S;
    m_ddRqdConc.BuildDataDefn(DDB, "Conc_Rqd", "", dc, pCnvTxt, xid_RCTExtent, &Eq, C(), R());
    DDB.Double("Conc_MeasTemp",    "",          DC_T,     "C",  xid_RCTFinalConcT,  &Eq, isResult|noFile|noSnap|InitHidden);
    DDB.Double("Conc_EOStep",      "Conc_Act",  DC_,      "",   &m_dKEOStep,             &Eq, isResult);
    DDB.TagComment(S());
    DDB.Double("Conc_Final",       "",          DC_,      "",   &m_dKFinal,              &Eq, isResult|NAN_OK);
    DDB.TagComment(S());
    DDB.Double("ExtentError",      "",          DC_Frac,  "%",  xid_ExtentError, &Eq, isResult|noFile|noSnap|NAN_OK);
    }
  };
コード例 #4
0
ファイル: Crush1.cpp プロジェクト: ChrisMoreton/Test3
void CrushBlk::Add_StandardDataDefn(DataDefnBlk & DDB, flag Vis)
  {
  DDEF_Flags Old = DDB.GetVisibility();
  DDB.Visibility(NSHM_All, Vis);
  DDB.Text("");
  DDB.CheckBox("TrackStatus", "", DC_, "", &bTrackStatus, this, isParm);
  static DDBValueLst DDB0[]={
    {(int)CM_PartCrv_Overall, "Overall_PartCrv"},
    {(int)CM_PartCrv_Individ, "Individual_PartCrv" },
    {(int)CM_SelBreak, "Select/Break"},
    {(int)CM_TestData_Overall, "Overall_TestData"},
    {(int)CM_TestData_Individ, "Individual_TestData" },
    //{(int)CM_JK, "JK" },
    {0}};
  DDB.Byte    ("Method",       "", DC_, "", xidMethod,      this, isParmStopped/*|DDEF_SETONCHANGE*/, DDB0);
  DDB.Visibility(NSHM_All, Vis && (iMethod==CM_PartCrv_Overall || iMethod==CM_PartCrv_Individ));
  DDB.CheckBox("ForcePartCrv", "", DC_, "", &bForcePartCrv, this, isParm, DDBYesNo);
  DDB.Visibility(NSHM_All, Vis && (iMethod==CM_TestData_Overall || iMethod==CM_TestData_Individ));
  DDB.CheckBox("EnterExtents", "", DC_, "", xidEnterExtents, this, isParmStopped, DDBYesNo);
  DDB.Visibility(NSHM_All, Vis && (iMethod==CM_JK));
  DDB.Double("",          "K1",         DC_L,    "mm",   &dK1,     this,  isParm);
  DDB.Double("",          "K2",         DC_L,    "mm",   &dK2,     this,  isParm);
  DDB.Double("",          "K3",         DC_,     "",     &dK3,     this,  isParm);
  DDB.Double("",          "t10",        DC_,     "",     &dt10,    this,  isParm);
  //DDB.Visibility(NSHM_All, Vis);
  DDB.SetVisibility(Old);
  }
コード例 #5
0
ファイル: SR_CTRL.CPP プロジェクト: abcweizhuo/Test3
void CEC_MLFinalFrac::BuildDataDefn(DataDefnBlk & DDB)
  {
  Strng T;
  T.Set("Final Mole %sFraction %s", m_AsTotal?"":"Phase ", m_Spc.m_Name());

  DDB.Text  (T());
  DDEF_Flags VFlags=DDB.GetVisibility();
  DDB.String("ExtentType",        "",        DC_,     "",      xid_RCTExtentType,    &Eq, SetOnChange|isParm, DDBExtentTypes);
  DDB.SetVisibility(VFlags);

  if (m_Spc.m_ReactTerm>=0 || m_Spc.m_ProdTerm>=0)
    {
    CCnvIndex dc;
    pchar pCnvTxt;
    SDB.AddSpCnv(DC_Frac, SDB[m_Spc.m_SpcId].SymOrTag(), "%", dc, pCnvTxt);
    m_ddRqdFrac.BuildDataDefn(DDB, "Frac_Rqd", "",  dc, pCnvTxt,  xid_RCTExtent,    &Eq, "Rct", "Reqd");
    DDB.Double("Frac_EOStep",      "Frac_Act",      dc, pCnvTxt,   &m_dKEOStep,      &Eq, isResult);
    DDB.Double("Frac_Final",       "",              dc, pCnvTxt,   &m_dKFinal,       &Eq, isResult|NAN_OK);
    DDB.Double("ExtentError",      "",              DC_Frac, "%",  xid_ExtentError,  &Eq, isResult|noFile|noSnap|NAN_OK);
    }
  };
コード例 #6
0
ファイル: Crush1.cpp プロジェクト: ChrisMoreton/Test3
void CrushBlk::Add_ObjectDataDefn(DataDefnBlk & DDB, flag Vis)
  {
  DDEF_Flags Old = DDB.GetVisibility();
  DDB.Visibility(NSHM_All, Vis);
  switch (iMethod)
    {
    case CM_PartCrv_Overall:
    case CM_PartCrv_Individ:
      DDB.Object(&DischParts, this, NULL, NULL, DDB_RqdPage);
      break;
    case CM_SelBreak:
    case CM_JK:
      DDB.Object(&SelBrk, this, NULL, NULL, DDB_RqdPage);
      break;
    case CM_TestData_Overall:
    case CM_TestData_Individ:
      if (!bEnterExtents)
        DDB.Object(&DataParts, this, NULL, NULL, DDB_RqdPage);
      DDB.Object(&Extents, this, NULL, NULL, DDB_RqdPage);
      break;
    }
  DDB.SetVisibility(Old);
  }
コード例 #7
0
ファイル: SR_CTRL.CPP プロジェクト: abcweizhuo/Test3
void CEC_Ratio::BuildDataDefn(DataDefnBlk & DDB)
  {
  DDB.Text  ("Ratio");
  DDEF_Flags VFlags=DDB.GetVisibility();
  DDB.String("ExtentType",        "",                       DC_,     "",    xid_RCTExtentType,   &Eq, SetOnChange|isParm, DDBExtentTypes);
  DDB.SetVisibility(VFlags);

  m_ddKEq.BuildDataDefn(DDB, "K_Eq",  "EquilbriumRatio",    DC_,     "",    xid_RCTKEquilibrium, &Eq, "Rct", "Reqd");
  DDB.Double("K_EOStep",          "K_Act",   DC_,     "",      &m_dKEOStep,             &Eq, isResult);
  DDB.Double("K_Final",           "",        DC_,     "",      &m_dKFinal,              &Eq, isResult|NAN_OK);
  if (!DynamicRate())
    DDB.Double("ExtentError",       "",                     DC_Frac, "%",   xid_ExtentError,  &Eq, isResult|noFile|noSnap|NAN_OK);
  else
    {
    if (m_bDoRate)
      {
      m_ddFracRate.BuildDataDefn(DDB, "Rate", "",           DC_FracRate, "%/s",  xid_RCTFracRate, &Eq, "Rct", "Reqd");
      }
    if (m_bDoResTime)
      {
      DDB.Double("K_Rt",           "",                      DC_,     "",    &m_dKRt,          &Eq, isResult);
      m_ddDefinedResTime.BuildDataDefn(DDB, "RT_Ref", "",   DC_Time, "s",   xid_RTRef,        &Eq, "Rct", "Reqd");
      m_ddActualResTime.BuildDataDefn(DDB,  "RT",     "",   DC_Time, "s",   xid_ResTime,      &Eq, "Actual", "Reqd");
      DDB.Double("Alpha",          "",                      DC_,     "",    &m_dAlpha,        &Eq, isResult);
      }
    }

  if (m_iXSpcId>=0)
    {
    DDB.String("ExtentSpc", "",                             DC_, "", &m_sExtentSpc, &Eq, 0|InitHidden|noFileAtAll);
    CCnvIndex dc;
    pchar pCnvTxt;
    SDB.AddSpCnv(DC_Frac, SDB[m_iXSpcId].SymOrTag(), "%",     dc, pCnvTxt);
    m_ddExtentRqd.BuildDataDefn(DDB, "Extent", "",          dc, pCnvTxt,  xid_RCTExtent, &Eq, "Rct", "Reqd");
    }
  };