PranticeResultItem.cs 1005 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /****************************************************************************
  2. * 2024.6 LXD
  3. ****************************************************************************/
  4. using System;
  5. using System.Collections.Generic;
  6. using UnityEngine;
  7. using UnityEngine.UI;
  8. using QFramework;
  9. namespace QFramework
  10. {
  11. public partial class PranticeResultItem : UIComponent
  12. {
  13. public void Init(PranticeProcessElement element)
  14. {
  15. StepID.text = element.id.ToString();
  16. StepListProxy tmpProxy = DAL.Instance.Get<StepListProxy>();
  17. OperationStepDataInfo tmpInfo = tmpProxy.GetOperationStepDataInfoById(element.id);
  18. StepDesctript.text = tmpInfo.stepName;
  19. if (element.finish && element.result)
  20. {
  21. ScoreSituation.text = "<color=green>²Ù×÷ÕýÈ·</color>";
  22. }
  23. else if (element.finish && !element.result)
  24. {
  25. ScoreSituation.text = "<color=red>²Ù×÷´íÎó</color>";
  26. }
  27. else
  28. {
  29. ScoreSituation.text = "<color=red>δ²Ù×÷</color>";
  30. }
  31. }
  32. }
  33. }