Exemplo n.º 1
0
        public IntPtr Marshal(CimCashInfoObject cashInfo)
        {
            WFSCIMCASHINFO dto = new WFSCIMCASHINFO();

            dto.usCount = cashInfo.usCount;
            WFSCIMCASHIN[] cashunitstructs = new WFSCIMCASHIN[cashInfo.CashIns.Length];
            for (int i = 0; i < cashInfo.CashIns.Length; i++)
            {
                cashunitstructs[i] = CashIn.convertToWFSCIMCASHIN(cashInfo.CashIns[i]);
            }

            dto.lppCashIn = XFSUtil.XFSArrayToPTR <WFSCIMCASHIN>(cashunitstructs);
            return(XFSUtil.StructureToPtr <WFSCIMCASHINFO>(dto));
        }
Exemplo n.º 2
0
        public IntPtr Marshal(CashInfoObject cashInfo)
        {
            WFS_CDM_CashUnit_INFO dto = new WFS_CDM_CashUnit_INFO();

            dto.usCount    = cashInfo.usCount;
            dto.usTellerID = cashInfo.TellerID;
            WFSCDMCASHUNIT[] cashunitstructs = new WFSCDMCASHUNIT[cashInfo.CashUnits.Length];
            for (int i = 0; i < cashInfo.CashUnits.Length; i++)
            {
                cashunitstructs[i] = CashUnit.convertToWFSCDMCASHUNIT(cashInfo.CashUnits[i]);
            }

            dto.lppList = XFSUtil.XFSArrayToPTR <WFSCDMCASHUNIT>(cashunitstructs);
            return(XFSUtil.StructureToPtr <WFS_CDM_CashUnit_INFO>(dto));
        }
Exemplo n.º 3
0
        public static WFSCIMCASHIN convertToWFSCIMCASHIN(CashIn cashUnit)
        {
            WFSCIMCASHIN dtoCashUnit = new WFSCIMCASHIN();

            dtoCashUnit.usNumber         = cashUnit.usNumber;
            dtoCashUnit.fwType           = cashUnit.fwType;
            dtoCashUnit.fwItemType       = cashUnit.fwItemType;
            dtoCashUnit.cUnitID          = cashUnit.cUnitID;
            dtoCashUnit.cCurrencyID      = cashUnit.cCurrencyID;
            dtoCashUnit.ulValues         = cashUnit.ulValues;
            dtoCashUnit.ulCashInCount    = cashUnit.ulCashInCount;
            dtoCashUnit.ulCount          = cashUnit.ulCount;
            dtoCashUnit.ulMaximum        = cashUnit.ulMaximum;
            dtoCashUnit.usStatus         = cashUnit.usStatus;
            dtoCashUnit.bAppLock         = cashUnit.bAppLock;
            dtoCashUnit.usNumPhysicalCUs = cashUnit.usNumPhysicalCUs;
            dtoCashUnit.lppPhysical      = XFSUtil.XFSArrayToPTR <WFSCIMPHCU>(cashUnit.lppPhysical);
            return(dtoCashUnit);
        }
Exemplo n.º 4
0
        public static WFSCDMCASHUNIT convertToWFSCDMCASHUNIT(CashUnit cashUnit)
        {
            WFSCDMCASHUNIT dtoCashUnit = new WFSCDMCASHUNIT();

            dtoCashUnit.bAppLock         = cashUnit.bAppLock;
            dtoCashUnit.cCurrencyID      = cashUnit.cCurrencyID;
            dtoCashUnit.cUnitID          = cashUnit.cUnitID;
            dtoCashUnit.szCashUnitName   = cashUnit.szCashUnitName;
            dtoCashUnit.ulCount          = cashUnit.ulCount;
            dtoCashUnit.ulInitialCount   = cashUnit.ulInitialCount;
            dtoCashUnit.ulMaximum        = cashUnit.ulMaximum;
            dtoCashUnit.ulMinimum        = cashUnit.ulMinimum;
            dtoCashUnit.ulRejectCount    = cashUnit.ulRejectCount;
            dtoCashUnit.ulValues         = cashUnit.ulValues;
            dtoCashUnit.usNumber         = cashUnit.usNumber;
            dtoCashUnit.usNumPhysicalCUs = cashUnit.usNumPhysicalCUs;
            dtoCashUnit.usStatus         = cashUnit.usStatus;
            dtoCashUnit.usType           = cashUnit.usType;
            dtoCashUnit.lppPhysical      = XFSUtil.XFSArrayToPTR <WFSCDMPHCU>(cashUnit.PhysicalCashUnits);
            return(dtoCashUnit);
        }