示例#1
0
        /*----------------------------------------------------------------------------
        *       %%Function: ReaderLastScanDateDelegate
        *       %%Qualified: UpcSvc.UpcSvc.ReaderLastScanDateDelegate
        *       %%Contact: rlittle
        *
        *  ----------------------------------------------------------------------------*/
        public static void ReaderLastScanDateDelegate(SqlReader sqlr, CorrelationID crid, ref USR_String usrs)
        {
            DateTime dttm = sqlr.Reader.GetDateTime(1);

            usrs          = USR_String.FromTCSR(USR.SuccessCorrelate(crid));
            usrs.TheValue = dttm.ToString();
        }
示例#2
0
文件: dvd.cs 项目: rlittletht/UpcInv
        /*----------------------------------------------------------------------------
        *       %%Function: ReaderGetDvdScanInfoDelegate
        *       %%Qualified: UpcSvc.UpcSvc.ReaderGetDvdScanInfoDelegate
        *       %%Contact: rlittle
        *
        *  ----------------------------------------------------------------------------*/
        public static void ReaderGetDvdScanInfoDelegate(SqlReader sqlr, CorrelationID crid, ref USR_DvdInfo usrd)
        {
            DvdInfo dvdi = new DvdInfo();

            dvdi.Code      = sqlr.Reader.GetString(0);
            dvdi.LastScan  = sqlr.Reader.GetDateTime(1);
            dvdi.FirstScan = sqlr.Reader.GetDateTime(2);
            dvdi.Title     = sqlr.Reader.GetString(3);

            usrd          = USR_DvdInfo.FromTCSR(USR.SuccessCorrelate(crid));
            usrd.TheValue = dvdi;
        }
示例#3
0
文件: book.cs 项目: rlittletht/UpcInv
        /*----------------------------------------------------------------------------
        *   %%Function: ReaderGetBookScanInfoDelegate
        *   %%Qualified: UpcSvc.UpcSvc.ReaderGetBookScanInfoDelegate
        *   %%Contact: rlittle
        *
        *  ----------------------------------------------------------------------------*/
        public static void ReaderGetBookScanInfoDelegate(SqlReader sqlr, CorrelationID crid, ref USR_BookInfo usrb)
        {
            BookInfo bki = new BookInfo();

            bki.Code      = sqlr.Reader.GetString(0);
            bki.LastScan  = sqlr.Reader.GetDateTime(1);
            bki.FirstScan = sqlr.Reader.GetDateTime(2);
            bki.Title     = sqlr.Reader.GetString(3);
            bki.Location  = sqlr.Reader.GetString(4);

            usrb          = USR_BookInfo.FromTCSR(USR.SuccessCorrelate(crid));
            usrb.TheValue = bki;
        }
示例#4
0
文件: dvd.cs 项目: rlittletht/UpcInv
        /*----------------------------------------------------------------------------
        *       %%Function: ReaderGetDvdScanInfoListDelegate
        *       %%Qualified: UpcSvc.UpcSvc.ReaderGetDvdScanInfoListDelegate
        *       %%Contact: rlittle
        *
        *  ----------------------------------------------------------------------------*/
        public static void ReaderGetDvdScanInfoListDelegate(SqlReader sqlr, CorrelationID crid, ref USR_DvdInfoList usrds)
        {
            DvdInfo dvdi = new DvdInfo();

            dvdi.Code      = sqlr.Reader.GetString(0);
            dvdi.LastScan  = sqlr.Reader.GetDateTime(1);
            dvdi.FirstScan = sqlr.Reader.GetDateTime(2);
            dvdi.Title     = sqlr.Reader.GetString(3);

            if (usrds == null)
            {
                usrds          = USR_DvdInfoList.FromTCSR(USR.SuccessCorrelate(crid));
                usrds.TheValue = new List <DvdInfo>();
            }
            usrds.TheValue.Add(dvdi);
        }
示例#5
0
文件: dvd.cs 项目: rlittletht/UpcInv
        /*----------------------------------------------------------------------------
        *       %%Function: ReaderGetDvdScanInfoExDelegate
        *       %%Qualified: UpcSvc.UpcSvc.ReaderGetDvdScanInfoExDelegate
        *       %%Contact: rlittle
        *
        *  ----------------------------------------------------------------------------*/
        public static void ReaderGetDvdScanInfoExDelegate(SqlReader sqlr, CorrelationID crid, ref USR_DvdInfoEx usrd)
        {
            USR_DvdInfo dvdInfo = null;

            ReaderGetDvdScanInfoDelegate(sqlr, crid, ref dvdInfo);

            DvdInfoEx dvdix = DvdInfoEx.FromDvdInfo(dvdInfo.TheValue);

            dvdix.Summary        = sqlr.Reader.IsDBNull(4) ? null : sqlr.Reader.GetString(4);
            dvdix.Classification = sqlr.Reader.IsDBNull(5) ? null : sqlr.Reader.GetString(5);
            dvdix.MediaType      = sqlr.Reader.IsDBNull(6) ? null : sqlr.Reader.GetString(6);
            dvdix.CoverSrc       = sqlr.Reader.IsDBNull(7) ? null : sqlr.Reader.GetString(7);

            usrd          = USR_DvdInfoEx.FromTCSR(USR.SuccessCorrelate(crid));
            usrd.TheValue = dvdix;
        }
示例#6
0
        /*----------------------------------------------------------------------------
        *       %%Function: ReaderGetBookScanInfoDelegate
        *       %%Qualified: UpcSvc.UpcSvc.ReaderGetBookScanInfoDelegate
        *       %%Contact: rlittle
        *
        *  ----------------------------------------------------------------------------*/
        public static void ReaderGetWineScanInfoDelegate(SqlReader sqlr, CorrelationID crid, ref USR_WineInfo usrw)
        {
            WineInfo wni = new WineInfo();

            wni.Code      = sqlr.Reader.GetString(0);
            wni.LastScan  = sqlr.Reader.GetDateTime(1);
            wni.FirstScan = sqlr.Reader.GetDateTime(2);
            wni.Wine      = sqlr.Reader.GetString(3);
            wni.Vintage   = sqlr.Reader.GetString(4);
            wni.Notes     = sqlr.Reader.IsDBNull(5) ? null : sqlr.Reader.GetString(5);
            wni.Bin       = sqlr.Reader.GetString(6);
            wni.Location  = sqlr.Reader.GetString(7);

            usrw          = USR_WineInfo.FromTCSR(USR.SuccessCorrelate(crid));
            usrw.TheValue = wni;
        }
示例#7
0
文件: book.cs 项目: rlittletht/UpcInv
        /*----------------------------------------------------------------------------
        *   %%Function: ReaderGetDvdScanInfoListDelegate
        *   %%Qualified: UpcSvc.UpcSvc.ReaderGetDvdScanInfoListDelegate
        *   %%Contact: rlittle
        *
        *  ----------------------------------------------------------------------------*/
        public static void ReaderGetBookScanInfoListDelegate(SqlReader sqlr, CorrelationID crid, ref USR_BookInfoList usrbs)
        {
            BookInfo bki = new BookInfo();

            bki.Code      = sqlr.Reader.GetString(0);
            bki.LastScan  = sqlr.Reader.GetDateTime(1);
            bki.FirstScan = sqlr.Reader.GetDateTime(2);
            bki.Title     = sqlr.Reader.GetString(3);

            if (usrbs == null)
            {
                usrbs          = USR_BookInfoList.FromTCSR(USR.SuccessCorrelate(crid));
                usrbs.TheValue = new List <BookInfo>();
            }

            usrbs.TheValue.Add(bki);
        }
示例#8
0
文件: book.cs 项目: rlittletht/UpcInv
        public static void ReaderGetBookScanInfoExDelegate(SqlReader sqlr, CorrelationID crid, ref USR_BookInfoEx usrb)
        {
            USR_BookInfo bookInfo = null;

            ReaderGetBookScanInfoDelegate(sqlr, crid, ref bookInfo);

            BookInfoEx bkix = BookInfoEx.FromBookInfo(bookInfo.TheValue); // new BookInfoEx()); //bookInfo.TheValue);

            bkix.Author      = sqlr.Reader.IsDBNull(5) ? null : sqlr.Reader.GetString(5);
            bkix.Summary     = sqlr.Reader.IsDBNull(6) ? null : sqlr.Reader.GetString(6);
            bkix.CoverSrc    = sqlr.Reader.IsDBNull(7) ? null : sqlr.Reader.GetString(7);
            bkix.ReleaseDate = sqlr.Reader.IsDBNull(8) ? (DateTime?)null : sqlr.Reader.GetDateTime(8);
            bkix.Series      = sqlr.Reader.IsDBNull(9) ? null : sqlr.Reader.GetString(9);

            usrb          = USR_BookInfoEx.FromTCSR(USR.SuccessCorrelate(crid));
            usrb.TheValue = bkix;
        }