public static BJBookInfo GetBookInfoByPIN(string FullPin) { string fund = FullPin.Substring(0, FullPin.IndexOf("_")); int IDRecord = int.Parse(FullPin.Substring(FullPin.LastIndexOf("_") + 1)); return(BJBookInfo.GetBookInfoByPIN(IDRecord, fund)); }
public static BJBookInfo GetBookInfoByInventoryNumber(string inv, string fund) { BJDatabaseWrapper dbw = new BJDatabaseWrapper(fund); DataTable table = dbw.GetExemplar(inv); if (table.Rows.Count == 0) { return(null); } BJBookInfo result = BJBookInfo.GetBookInfoByPIN((int)table.Rows[0]["IDMAIN"], fund); return(result); }