using DefaultNamespace; using MotionFramework; using System.Collections; using System.Collections.Generic; using TMPro; using UnityEngine; /// /// 结余物资退库申请单 /// public class ApplicationsurplusMaterials : MonoBehaviour { /// /// 物料编码 /// [Header("物料编码")] public TextMeshProUGUI MaterialsCode; /// /// 物料描述 /// [Header("物料描述")] public TextMeshProUGUI MaterialsName; /// /// 退回数量 /// [Header("退回数量")] public TMP_InputField ReturnNumber; /// /// 鉴定情况 /// [Header("鉴定情况")] public TextMeshProUGUI Identification; /// /// 计量单位 /// [Header("计量单位")] public TextMeshProUGUI Unit; /// /// 领用数量 /// [Header("领用数量")] public TextMeshProUGUI Getnumber; /// /// 退回数量 /// [Header("退回数量")] public TMP_InputField returnnumber; /// /// 制单人 /// [Header("制单人")] public TMP_InputField MakeSingle; /// /// 退料部门审核人 /// [Header("退料部门审核人")] public TMP_InputField ReturnSingle; void Start() { Init(); } // Update is called once per frame void Update() { returnnumber.text = GameManager.Instance.marteialnumber.ToString(); MaterialsCode.text = MotionEngine.GetModule().GetTaskBookValueByMapping("物料编码"); MaterialsName.text = MotionEngine.GetModule().GetTaskBookValueByMapping("物料描述"); Getnumber.text = (GameManager.Instance.marteialnumber * 2).ToString(); Unit.text = GameManager.Instance.unit; } public void Init() { CombinedClass combined = GameManager.Instance.combinedClass; //MaterialsCode.text=combined.materialCode; //MaterialsName.text=combined.materialName; //Getnumber.text=combined.NeedNumber; //Unit.text=combined.materialUnit; //Identification.text=combined.identification; //returnnumber.text=combined.incomeQuantity; //MaterialsName.text = MotionEngine.GetModule().GetTaskBookValueByMapping("收入数量"); //MaterialsCode.text = MotionEngine.GetModule().GetTaskBookValueByMapping("物料编码"); //MaterialsName.text = MotionEngine.GetModule().GetTaskBookValueByMapping("物料描述"); //returnnumber.text = MotionEngine.GetModule().GetTaskBookValueByMapping("收入数量"); //Batch.text = MotionEngine.GetModule().GetTaskBookValueByMapping("批次"); } }