/// <summary> /// This method is used to get Closing balance of annual period of that user. /// </summary> /// <param name="sConnectionString"></param> /// <returns></returns> public double GetClosingBalanceOfAnnualPeriod(string sConnectionString, int nUserInfoId, int nUserInfoIdRelative, int nSecurityTypeCodeId) { double nClosingBalance = 0; try { //PeriodEndDisclosureDAL objPeriodEndDisclosureDAL = new PeriodEndDisclosureDAL(); using (var objPeriodEndDisclosureDAL = new PeriodEndDisclosureDAL()) { nClosingBalance = objPeriodEndDisclosureDAL.GetClosingBalanceOfAnnualPeriod(sConnectionString, nUserInfoId, nUserInfoIdRelative, nSecurityTypeCodeId); } } catch (Exception exp) { throw exp; } return(nClosingBalance); }
/// <summary> /// This method is used to get period's start and end date in year /// </summary> /// <param name="sConnectionString"></param> /// <param name="YearCode"></param> /// <param name="PeriodCode"></param> /// <returns></returns> public Dictionary <String, Object> GetPeriodStarEndDate(string sConnectionString, int YearCode, int PeriodCode, int PeriodType) { var PeriodStartEndDate = new Dictionary <String, object>(); try { //PeriodEndDisclosureDAL objPeriodEndDisclosureDAL = new PeriodEndDisclosureDAL(); using (var objPeriodEndDisclosureDAL = new PeriodEndDisclosureDAL()) { PeriodStartEndDate = objPeriodEndDisclosureDAL.GetPeriodStarEndDate(sConnectionString, YearCode, PeriodCode, PeriodType); } } catch (Exception exp) { throw exp; } return(PeriodStartEndDate); }
/// <summary> /// This method is used to lastest period end disclosure year code /// </summary> /// <param name="sConnectionString"></param> /// <returns></returns> public int GetLastestPeriodEndYearCode(string sConnectionString) { int nYearCode = 0; try { //PeriodEndDisclosureDAL objPeriodEndDisclosureDAL = new PeriodEndDisclosureDAL(); using (var objPeriodEndDisclosureDAL = new PeriodEndDisclosureDAL()) { nYearCode = objPeriodEndDisclosureDAL.GetLastestPeriodEndYearCode(sConnectionString); } } catch (Exception exp) { throw exp; } return(nYearCode); }
/// <summary> /// This method is used to get impact on securities held post to acquisition. /// </summary> /// <param name="sConnectionString"></param> /// <param name="nTransTypeCodeId"></param> /// <param name="nModeOfAcquisCodeId"></param> /// <returns></returns> public int GetImpactOnPostQuantity(string sConnectionString, int nTransTypeCodeId, int nModeOfAcquisCodeId, int nSecurityTypeCodeId) { int nImpactOnPostQuantity = 0; try { //PeriodEndDisclosureDAL objPeriodEndDisclosureDAL = new PeriodEndDisclosureDAL(); using (var objPeriodEndDisclosureDAL = new PeriodEndDisclosureDAL()) { nImpactOnPostQuantity = objPeriodEndDisclosureDAL.GetImpactOnPostQuantity(sConnectionString, nTransTypeCodeId, nModeOfAcquisCodeId, nSecurityTypeCodeId); } } catch (Exception exp) { throw exp; } return(nImpactOnPostQuantity); }