//更新校准项 public void updateItem(CaliData caliData, CaliProcess caliProcess) { int index = caliProcess.curNum; CaliItem item = null; switch (caliProcess.curMode) { case EnumMode.IACI: item = caliData.iaciData[index]; break; case EnumMode.IACF: item = caliData.iacfData[index]; break; case EnumMode.IDC: item = caliData.idcData[index]; break; case EnumMode.VACF: item = caliData.vacfData[index]; break; case EnumMode.VACVL: item = caliData.vacvData[index]; break; case EnumMode.VDCL: if (index < CaliData.VLOWNUM) { item = caliData.vdcData[index]; } else { item = caliData.vdcData[CaliData.VDCPNUM + index - CaliData.VLOWNUM]; } break; case EnumMode.VACVH: item = caliData.vacvData[CaliData.VLOWNUM + index]; break; case EnumMode.VDCHP: item = caliData.vdcData[CaliData.VLOWNUM + index]; break; case EnumMode.VDCHN: item = caliData.vdcData[CaliData.VDCPNUM + CaliData.VLOWNUM + index]; break; } item.State = 1; }
public void Reset(CaliProcess caliProcess) { int i = 0; switch (caliProcess.curMode) { case EnumMode.IACF: for (i = 0; i < iacfData.Count; i++) { iacfData[i].StandOut = 0; iacfData[i].TestOut = 0; } if (caliProcess.type) { goto case EnumMode.IACI; } break; case EnumMode.IACI: for (i = 0; i < iaciData.Count; i++) { iaciData[i].StandOut = 0; iaciData[i].TestOut = 0; } if (caliProcess.type) { goto case EnumMode.IDC; } break; case EnumMode.IDC: for (i = 0; i < idcData.Count; i++) { idcData[i].StandOut = 0; idcData[i].TestOut = 0; } if (caliProcess.type) { goto case EnumMode.VACF; } break; case EnumMode.VACF: for (i = 0; i < vacfData.Count; i++) { vacfData[i].StandOut = 0; vacfData[i].TestOut = 0; } if (caliProcess.type) { goto case EnumMode.VACVL; } break; case EnumMode.VACVL: for (i = 0; i < CaliData.VLOWNUM; i++) { vacvData[i].StandOut = 0; vacvData[i].TestOut = 0; } if (caliProcess.type) { goto case EnumMode.VDCL; } break; case EnumMode.VDCL: for (i = 0; i < CaliData.VLOWNUM; i++) { vdcData[i].StandOut = 0; vdcData[i].TestOut = 0; } if (caliProcess.type) { goto case EnumMode.VACVH; } break; case EnumMode.VACVH: for (i = CaliData.VLOWNUM; i < vacvData.Count; i++) { vacvData[i].StandOut = 0; vacvData[i].TestOut = 0; } if (caliProcess.type) { goto case EnumMode.VDCHP; } break; case EnumMode.VDCHP: for (i = CaliData.VLOWNUM; i < CaliData.VDCPNUM; i++) { vdcData[i].StandOut = 0; vdcData[i].TestOut = 0; } if (caliProcess.type) { goto case EnumMode.VDCHN; } break; case EnumMode.VDCHN: for (i = CaliData.VLOWNUM + CaliData.VDCPNUM; i < vdcData.Count; i++) { vdcData[i].StandOut = 0; vdcData[i].TestOut = 0; } break; } }