public decimal GetTwoUnitOfMeasureRate(int pintUnitID1, int pintUnitID2) { try { MST_UMRateDS objMST_UMRateDS = new MST_UMRateDS(); return(objMST_UMRateDS.GetUMRate(pintUnitID1, pintUnitID2)); } catch (PCSDBException ex) { throw ex; } catch (Exception ex) { throw ex; } }
//************************************************************************** /// <Description> /// Compare two unit to know if they are scalled /// </Description> /// <Inputs> /// /// </Inputs> /// <Outputs> /// /// </Outputs> /// <Returns> /// /// </Returns> /// <Authors> /// THIENHD /// </Authors> /// <History> /// 15-Dec-2004 /// </History> /// <Notes> /// </Notes> //************************************************************************** public bool isTwoUnitOfMeasureScalled(int pintUnitID1, int pintUnitID2) { try { MST_UMRateDS objMST_UMRateDS = new MST_UMRateDS(); return(objMST_UMRateDS.isTwoUnitOfMeasureScalled(pintUnitID1, pintUnitID2)); } catch (PCSException ex) { throw ex; } catch (Exception ex) { throw ex; } }