public DataLayerResult DoResponse(IDataLayer dataLayer, Object response) { dataLayer.DataInfoStandardList.Clear(); GetAllDataInfoStandardResponse res = (GetAllDataInfoStandardResponse)response; if (res.allStandard != null) { DataInfoStandard[] dataInfoStandardArray = res.allStandard; for (int i = 0; i < dataInfoStandardArray.Length; i++) { dataLayer.DataInfoStandardList.Add(dataInfoStandardArray[i].typeId, dataInfoStandardArray[i]); } } return(DataLayerResult.Success); }
public DataLayerResult GetAllDataInfoStandard() { GetAllDataInfoStandardRequest req = new GetAllDataInfoStandardRequest(); GetAllDataInfoStandardResponse res = null; try { res = m_WsSysguard.GetAllDataInfoStandard(req); connStateManager.Connection(); return(stateProcessor.MakeDataLayerResult <GetAllDataInfoStandardResponse>(this, res)); } catch (Exception ex) { return(HandleException(ex)); } }