Exemplo n.º 1
0
        private static BJConvoluteInfo GetConvoluteInfo(string InventoryNumber, string fund)
        {
            Stopwatch sw = new Stopwatch();

            sw.Start();
            BJDatabaseWrapper dbw = new BJDatabaseWrapper(fund);
            //DataTable table = dbw.GetExemplar(InventoryNumber);
            DataTable table = dbw.GetConvolute(InventoryNumber);

            sw.Stop();
            if (table.Rows.Count == 0)
            {
                return(null);
            }
            BJConvoluteInfo convolute = new BJConvoluteInfo();

            convolute.Fund   = fund;
            convolute.IDDATA = (int)table.Rows[0]["IDDATA"];
            convolute.IDMAIN = (int)table.Rows[0]["IDMAIN"];
            return(convolute);
        }