Beispiel #1
0
 /// <summary>
 /// Method Name     : SetStatusCode
 /// Author          : Vivek Bhavsar
 /// Creation Date   : 23 Jan 2018
 /// Purpose         : sub method to set status code
 /// Revision        :
 /// </summary>
 /// <param name="dtoEstimate"></param>
 private void SetStatusCode(EstimateModel dtoEstimate)
 {
     if (!string.IsNullOrEmpty(dtoEstimate.StatusReason))
     {
         dtoEstimate.StatusReason = UtilityPCL.GetMoveDataDisplayValue(dtoEstimate.StatusReason, MoveDataDisplayResource.msgMoveCode);
     }
 }
Beispiel #2
0
 /// <summary>
 /// Method Name     : SetValuation
 /// Author          : Vivek Bhavsar
 /// Creation Date   : 22 Jan 2018
 /// Purpose         : sub method to set data for valuation fields
 /// Revision        :
 /// </summary>
 /// <param name="dtoEstimate"></param>
 private void SetValuation(EstimateModel dtoEstimate)
 {
     if (!string.IsNullOrEmpty(dtoEstimate.ExcessValuation))
     {
         dtoEstimate.ExcessValuation = UtilityPCL.CurrencyFormat(dtoEstimate.ExcessValuation);
     }
     if (!string.IsNullOrEmpty(dtoEstimate.EstimatedLineHaul))
     {
         dtoEstimate.EstimatedLineHaul = UtilityPCL.CurrencyFormat(dtoEstimate.EstimatedLineHaul);
     }
     if (!string.IsNullOrEmpty(dtoEstimate.ValuationDeductible))
     {
         dtoEstimate.ValuationDeductible = UtilityPCL.GetMoveDataDisplayValue(dtoEstimate.ValuationDeductible, MoveDataDisplayResource.msgValuationDeductible);
     }
     if (!string.IsNullOrEmpty(dtoEstimate.ValuationCost))
     {
         dtoEstimate.ValuationCost = UtilityPCL.CurrencyFormat(dtoEstimate.ValuationCost);
     }
     if (!string.IsNullOrEmpty(dtoEstimate.Deposit))
     {
         dtoEstimate.Deposit = UtilityPCL.CurrencyFormat(dtoEstimate.Deposit);
     }
 }