public string[] GetEquipmentDetailData(string equipmentNo) { int errorCode = 0; string errorMsg = ""; KeyValue[] equipmentGetFilters = new KeyValue[] { new KeyValue("EQUIPMENT_NUMBER", equipmentNo) }; string[] equipmentGetResultKeys = new string[] { "EQUIPMENT_STATE", "ERROR_CODE", "PART_NUMBER", "EQUIPMENT_INDEX", "CNT_USAGE", "EXPIRE_AFTER_CNT_TOTAL", "EXPIRATION_DATE" }; string[] equipmentGetResultValues = new string[] { }; errorCode = imsapi.equGetEquipment(sessionContext, init.configHandler.StationNumber, equipmentGetFilters, equipmentGetResultKeys, out equipmentGetResultValues); LogHelper.Info("Api equGetEquipment: station no =" + init.configHandler.StationNumber + "equipment number =" + equipmentNo + ",error code =" + errorCode); if (errorCode == 0) { view.errorHandler(0, init.lang.ERROR_API_CALL_ERROR + " equGetEquipment " + errorCode, ""); } else { //imsapi.imsapiGetErrorText(sessionContext, errorCode, out errorMsg); errorMsg = UtilityFunction.GetZHSErrorString(errorCode, init, sessionContext); view.errorHandler(2, init.lang.ERROR_API_CALL_ERROR + " equGetEquipment " + errorCode + "," + errorMsg, ""); } return(equipmentGetResultValues); }