public FishEntity.PurchaseFishInfo getFishInfo(DataRow row)
 {
     FishEntity.PurchaseFishInfo model = new FishEntity.PurchaseFishInfo( );
     if (row != null)
     {
         if (row ["id"] != null && row ["id"].ToString( ) != "")
         {
             model.id = int.Parse(row ["id"].ToString( ));
         }
         if (row ["code"] != null)
         {
             model.code = row ["code"].ToString( );
         }
         if (row ["fishId"] != null)
         {
             model.fishId = row ["fishId"].ToString( );
         }
         if (row ["price"] != null && row ["price"].ToString( ) != "")
         {
             model.price = decimal.Parse(row ["price"].ToString( ));
         }
         if (row ["weight"] != null && row ["weight"].ToString( ) != "")
         {
             model.weight = decimal.Parse(row ["weight"].ToString( ));
         }
         if (row ["priceUSA"] != null && row ["priceUSA"].ToString( ) != "")
         {
             model.priceUSA = decimal.Parse(row ["priceUSA"].ToString( ));
         }
         if (row ["specifications"] != null)
         {
             model.specifications = row ["specifications"].ToString( );
         }
         if (row ["brand"] != null)
         {
             model.brand = row ["brand"].ToString( );
         }
         if (row ["country"] != null)
         {
             model.country = row ["country"].ToString( );
         }
         if (row ["shipName"] != null)
         {
             model.shipName = row ["shipName"].ToString( );
         }
         if (row ["billName"] != null)
         {
             model.billName = row ["billName"].ToString( );
         }
     }
     return(model);
 }