示例#1
0
 /// <summary>
 /// Method Name     : SetStatusCode
 /// Author          : Vivek Bhavsar
 /// Creation Date   : 23 Jan 2018
 /// Purpose         : Set Status code using mapping set in MoveDataDisplayResource resource file
 /// Revision        :
 /// </summary>
 /// <param name="customerMoveData"></param>
 /// <param name="moveData"></param>
 private void SetStatusCode(MoveDataModel customerMoveData, GetMoveDataResponse moveData)
 {
     if (!string.IsNullOrEmpty(moveData.StatusReason))
     {
         customerMoveData.StatusReason = UtilityPCL.GetMoveDataDisplayValue(moveData.StatusReason, MoveDataDisplayResource.msgMoveCode);
     }
 }
示例#2
0
        /// <summary>
        /// Method Name     : SetValuation
        /// Author          : Vivek Bhavsar
        /// Creation Date   : 23 Jan 2018
        /// Purpose         : Set specific currency formats for  valuation fields
        /// Revision        :
        /// </summary>
        /// <param name="customerMoveData"></param>
        /// <param name="moveData"></param>
        private void SetValuation(MoveDataModel customerMoveData, GetMoveDataResponse moveData)
        {
            if (!string.IsNullOrEmpty(moveData.ExcessValuation))
            {
                customerMoveData.ExcessValuation = UtilityPCL.CurrencyFormat(moveData.ExcessValuation);
            }

            if (!string.IsNullOrEmpty(moveData.ValuationDeductible))
            {
                customerMoveData.ValuationDeductible = UtilityPCL.GetMoveDataDisplayValue(moveData.ValuationDeductible, MoveDataDisplayResource.msgValuationDeductible);
            }

            if (!string.IsNullOrEmpty(moveData.ValuationCost))
            {
                customerMoveData.ValuationCost = UtilityPCL.CurrencyFormat(moveData.ValuationCost);
            }
        }