/*---------------------------------------------------------------------------- * %%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(); }
/*---------------------------------------------------------------------------- * %%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; }
/*---------------------------------------------------------------------------- * %%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; }
/*---------------------------------------------------------------------------- * %%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); }
/*---------------------------------------------------------------------------- * %%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; }
/*---------------------------------------------------------------------------- * %%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; }
/*---------------------------------------------------------------------------- * %%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); }
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; }