public static CashIn convertToCashIn(WFSCIMCASHIN item) { CashIn unit = new CashIn(); unit.usNumber = item.usNumber; unit.fwType = item.fwType; unit.cUnitID = item.cUnitID; unit.cCurrencyID = item.cCurrencyID; unit.ulValues = item.ulValues; unit.ulCashInCount = item.ulCashInCount; unit.ulCount = item.ulCount; unit.ulMaximum = item.ulMaximum; unit.usStatus = item.usStatus; unit.bAppLock = item.bAppLock; unit.usNumPhysicalCUs = item.usNumPhysicalCUs; if (item.usNumPhysicalCUs > 0) { unit.lppPhysical = XFSUtil.XFSPtrToArray <WFSCIMPHCU>(item.lppPhysical, item.usNumPhysicalCUs); } else { unit.lppPhysical = new WFSCIMPHCU[0]; } var notnumberList = new WFSCIMNOTENUMBERLIST(); XFSUtil.PtrToStructure <WFSCIMNOTENUMBERLIST>(item.lpNoteNumberList, ref notnumberList); unit.lpNoteNumberList = convertToNoteNumberList(notnumberList); unit.lpszExtra = item.lpszExtra; return(unit); }
public static NoteNumberList convertToNoteNumberList(WFSCIMNOTENUMBERLIST item) { NoteNumberList noteNumberList = new NoteNumberList(); noteNumberList.usNumOfNoteNumbers = item.usNumOfNoteNumbers; if (item.usNumOfNoteNumbers > 0) { noteNumberList.lppNoteNumber = XFSUtil.XFSPtrToArray <WFSCIMNOTENUMBER>(item.lppNoteNumber, item.usNumOfNoteNumbers); } else { noteNumberList.lppNoteNumber = new WFSCIMNOTENUMBER[0]; } return(noteNumberList); }