📄 dlgmx.cpp
字号:
{
// TODO: Add your control notification handler code here
OnDrqDkq(4, TRUE);
}
void dlgmx::OnDrq6()
{
// TODO: Add your control notification handler code here
OnDrqDkq(5, TRUE);
}
void dlgmx::OnDkq1()
{
// TODO: Add your control notification handler code here
OnDrqDkq(0, FALSE);
}
void dlgmx::OnDkq2()
{
// TODO: Add your control notification handler code here
OnDrqDkq(1, FALSE);
}
void dlgmx::OnDkq3()
{
// TODO: Add your control notification handler code here
OnDrqDkq(2, FALSE);
}
void dlgmx::OnDkq4()
{
// TODO: Add your control notification handler code here
OnDrqDkq(3, FALSE);
}
void dlgmx::OnDkq5()
{
// TODO: Add your control notification handler code here
OnDrqDkq(4, FALSE);
}
void dlgmx::OnDkq6()
{
// TODO: Add your control notification handler code here
OnDrqDkq(5, FALSE);
}
void dlgmx::OnOK()
{
// TODO: Add extra validation here
char alarmMsg[128];
strcpy(alarmMsg, dlgName);
EndDataDefineProc();
if (FALSE == mxSet.CheckParam(&alarmMsg[strlen(alarmMsg)])){
strcat(alarmMsg,"您确定退出吗?");
if (IDYES==MessageBox(alarmMsg, "警告", MB_YESNO | MB_ICONQUESTION)) CDialog::OnOK();
else return;
}
CDialog::OnOK();
}
void dlgmx::OnSamemx1()
{
// TODO: Add your control notification handler code here
m_ActWeight = mxSet.pFatherZB->pFatherVQC->ZB[0].MX[0].ActWeight;
m_JudgeTime = mxSet.pFatherZB->pFatherVQC->ZB[0].MX[0].JudgeTime;
m_ActWeight = mxSet.pFatherZB->pFatherVQC->ZB[0].MX[0].JudgeTime;
m_DrqNum = mxSet.pFatherZB->pFatherVQC->ZB[0].MX[0].DRQNum;
m_DkqNum = mxSet.pFatherZB->pFatherVQC->ZB[0].MX[0].DKQNum;
m_LeftLinkDevNum = mxSet.pFatherZB->pFatherVQC->ZB[0].MX[0].LeftLinkDevNum;
m_RightLinkDevNum = mxSet.pFatherZB->pFatherVQC->ZB[0].MX[0].RightLinkDevNum;
UpdateData(FALSE);
}
void dlgmx::OnLimit()
{
// TODO: Add your control notification handler code here
int l;
dlglimit limitDef;
if (mxSet.pGlobalDef->bSameAllDevice)
if (mxSet.ZBNo||mxSet.MXNo)
MessageBox("您已设定所有的设备参数一致,若要修改限值,请选择#1主变的#1母线进行修改!","警告",MB_OK);
l = strlen(dlgName);
strcat(dlgName, "电压和无功限值");
limitDef.mxSet = &mxSet;
limitDef.dlgName = dlgName;
limitDef.DoModal();
dlgName[l] = 0;
}
void dlgmx::OnLockdef()
{
// TODO: Add your control notification handler code here
int l;
dlglock lockDef;
l = strlen(dlgName);
EndDataDefineProc();
lockDef.dlgName = dlgName;
lockDef.lockSet = mxSet.CheckLock;
if (IDOK==lockDef.DoModal()) mxSet.CheckLock = lockDef.lockSet;
dlgName[l] = 0;
}
void dlgmx::DispDblinkDefineButton()
{
BYTE i;
char szText[128];
mxSet.AskDrqCloseRec.GetName(szText);
GetDlgItem(IDC_AskDrqCloseRec)->SetWindowText(szText);
mxSet.AskDrqOpenRec.GetName(szText);
GetDlgItem(IDC_AskDrqOpenRec)->SetWindowText(szText);
mxSet.AskDrqCloseRec.GetName(szText);
GetDlgItem(IDC_AskDrqCloseRec)->SetWindowText(szText);
mxSet.AskFjtUpRec.GetName(szText);
GetDlgItem(IDC_AskFjtUpRec)->SetWindowText(szText);
mxSet.AskFjtDownRec.GetName(szText);
GetDlgItem(IDC_AskFjtDownRec)->SetWindowText(szText);
mxSet.LinkZbDzDevRec.GetName(szText);
GetDlgItem(IDC_LinkZbDzDevRec)->SetWindowText(szText);
mxSet.LinkZbKgDevRec.GetName(szText);
GetDlgItem(IDC_LinkZbKgDevRec)->SetWindowText(szText);
mxSet.URec.GetName(szText);
GetDlgItem(IDC_URec)->SetWindowText(szText);
mxSet.QRec.GetName(szText);
GetDlgItem(IDC_QRec)->SetWindowText(szText);
mxSet.PRec.GetName(szText);
GetDlgItem(IDC_PRec)->SetWindowText(szText);
mxSet.LockStatRec.GetName(szText);
GetDlgItem(IDC_LockStatRec)->SetWindowText(szText);
for (i=0;i<4;i++){
mxSet.RightLinkDevRec[i].GetName(szText);
GetDlgItem(IDC_RightLinkDevRec1+i)->SetWindowText(szText);
}
for (i=0;i<4;i++){
mxSet.LeftLinkDevRec[i].GetName(szText);
GetDlgItem(IDC_LeftLinkDevRec1+i)->SetWindowText(szText);
}
}
void dlgmx::OnReSet()
{
// TODO: Add your control notification handler code here
mxSet.VQCMUXI_DBS::VQCMUXI_DBS();
InitDataDefineProc();
UpdateData(FALSE);
DispDblinkDefineButton();
}
void dlgmx::OnAskDrqCloseRec()
{
// TODO: Add your control notification handler code here
DoDataDblinkDefineProc(GetDlgItem(IDC_AskDrqCloseRec), "电容器合",dlgName, "请求电容器合的遥信", &mxSet.AskDrqCloseRec, DATA_TYPE_YX);
}
void dlgmx::OnAskDrqOpenRec()
{
// TODO: Add your control notification handler code here
DoDataDblinkDefineProc(GetDlgItem(IDC_AskDrqOpenRec), "电容器分",dlgName, "请求电容器分的遥信", &mxSet.AskDrqOpenRec, DATA_TYPE_YX);
}
void dlgmx::OnAskFjtDownRec()
{
// TODO: Add your control notification handler code here
DoDataDblinkDefineProc(GetDlgItem(IDC_AskFjtDownRec), "分接头降",dlgName, "请求分接头降的遥信", &mxSet.AskFjtDownRec, DATA_TYPE_YX);
}
void dlgmx::OnAskFjtUpRec()
{
// TODO: Add your control notification handler code here
DoDataDblinkDefineProc(GetDlgItem(IDC_AskFjtUpRec), "分接头升",dlgName, "请求分接头升的遥信", &mxSet.AskFjtUpRec, DATA_TYPE_YX);
}
void dlgmx::OnLinkZbDzDevRec()
{
// TODO: Add your control notification handler code here
DoDataDblinkDefineProc(GetDlgItem(IDC_LinkZbDzDevRec), "连主变刀闸",dlgName, "与主变连接的刀闸", &mxSet.LinkZbDzDevRec, DATA_TYPE_YX);
}
void dlgmx::OnLinkZbKgDevRec()
{
// TODO: Add your control notification handler code here
DoDataDblinkDefineProc(GetDlgItem(IDC_LinkZbKgDevRec), "连主变开关",dlgName, "与主变连接的开关", &mxSet.LinkZbKgDevRec, DATA_TYPE_YX);
}
void dlgmx::OnLeftLinkDevRec1()
{
// TODO: Add your control notification handler code here
DoDataDblinkDefineProc(GetDlgItem(IDC_LeftLinkDevRec1), "左1",dlgName, "左连接设备1", &mxSet.LeftLinkDevRec[0], DATA_TYPE_YX);
}
void dlgmx::OnLeftLinkDevRec2()
{
// TODO: Add your control notification handler code here
DoDataDblinkDefineProc(GetDlgItem(IDC_LeftLinkDevRec2), "左2",dlgName, "左连接设备2", &mxSet.LeftLinkDevRec[1], DATA_TYPE_YX);
}
void dlgmx::OnLeftLinkDevRec3()
{
// TODO: Add your control notification handler code here
DoDataDblinkDefineProc(GetDlgItem(IDC_LeftLinkDevRec3), "左3",dlgName, "左连接设备3", &mxSet.LeftLinkDevRec[2], DATA_TYPE_YX);
}
void dlgmx::OnLeftLinkDevRec4()
{
// TODO: Add your control notification handler code here
DoDataDblinkDefineProc(GetDlgItem(IDC_LeftLinkDevRec4), "左4",dlgName, "左连接设备4", &mxSet.LeftLinkDevRec[3], DATA_TYPE_YX);
}
void dlgmx::OnRightLinkDevRec1()
{
// TODO: Add your control notification handler code here
DoDataDblinkDefineProc(GetDlgItem(IDC_RightLinkDevRec1), "右1",dlgName, "右连接设备1", &mxSet.RightLinkDevRec[0], DATA_TYPE_YX);
}
void dlgmx::OnRightLinkDevRec2()
{
// TODO: Add your control notification handler code here
DoDataDblinkDefineProc(GetDlgItem(IDC_RightLinkDevRec2), "右2",dlgName, "右连接设备2", &mxSet.RightLinkDevRec[1], DATA_TYPE_YX);
}
void dlgmx::OnRightLinkDevRec3()
{
// TODO: Add your control notification handler code here
DoDataDblinkDefineProc(GetDlgItem(IDC_RightLinkDevRec3), "右3",dlgName, "右连接设备3", &mxSet.RightLinkDevRec[2], DATA_TYPE_YX);
}
void dlgmx::OnRightLinkDevRec4()
{
// TODO: Add your control notification handler code here
DoDataDblinkDefineProc(GetDlgItem(IDC_RightLinkDevRec4), "右4",dlgName, "右连接设备4", &mxSet.RightLinkDevRec[3], DATA_TYPE_YX);
}
void dlgmx::OnURec()
{
// TODO: Add your control notification handler code here
DoDataDblinkDefineProc(GetDlgItem(IDC_URec), "电压",dlgName, "电压定义", &mxSet.URec, DATA_TYPE_YC);
}
void dlgmx::OnQRec()
{
// TODO: Add your control notification handler code here
DoDataDblinkDefineProc(GetDlgItem(IDC_QRec), "无功",dlgName, "无功定义", &mxSet.QRec, DATA_TYPE_YC);
}
void dlgmx::OnPRec()
{
// TODO: Add your control notification handler code here
DoDataDblinkDefineProc(GetDlgItem(IDC_PRec), "有功",dlgName, "与无功对应的有功定义", &mxSet.PRec, DATA_TYPE_YC);
}
void dlgmx::OnLockStatRec()
{
// TODO: Add your control notification handler code here
DoDataDblinkDefineProc(GetDlgItem(IDC_LockStatRec), "闭锁状态",dlgName, "VQC闭锁状态", &mxSet.LockStatRec, DATA_TYPE_YX);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -