using System.Collections;
using System.Collections.Generic;
using DefaultNamespace;
using MotionFramework;
using TMPro;
using UnityEngine;
public class CustodyEntrustmentApplication : MonoBehaviour
{
///
/// ���ϱ���
///
[Header("���ϱ���")]
public TMP_InputField Materialcode;
///
/// ��������
///
[Header("��������")]
public TMP_InputField MaterialName;
///
/// ������λ
///
[Header("������λ")]
public TMP_InputField Unit;
///
/// ����
///
[Header("����")]
public TMP_InputField MaterialNumber;
///
/// ��ʹ��ʱ��
///
[Header("��ʹ��ʱ��")]
public TMP_InputField Usetime;
///
/// ����
///
[Header("����")]
public TextMeshProUGUI DateTime;
///
/// ������ǩ��
///
[Header("������ǩ��")]
public TMP_InputField Attn;
///
/// �����ǩ��
///
[Header("�����ǩ��")]
public TMP_InputField Reviewers;
///
/// ���ʲ���ǩ��
///
[Header("���ʲ���ǩ��")]
public TMP_InputField Suppliesdepartment;
///
/// 单价
///
public TMP_InputField pice;
///
/// 总价
///
public TMP_InputField allpice;
void Start()
{
Init();
}
// Update is called once per frame
void Update()
{
}
public void Init()
{
// CombinedClass combined = GameManager.Instance.combinedClass;
// Materialcode.text = combined.materialCode;
// MaterialName.text = combined.materialName;
// Unit.text = combined.materialUnit;
// MaterialNumber.text = combined.materialNumber;
// DateTime.text = combined.TodayTime;
Materialcode.text = MotionEngine.GetModule().GetTaskBookValueByMapping("物料编码");
MaterialName.text = MotionEngine.GetModule().GetTaskBookValueByMapping("物料描述");
MaterialNumber.text = GameManager.Instance.marteialnumber.ToString();
Unit.text = GameManager.Instance.unit;
pice.text = GameManager.Instance.pice;
allpice.text = (GameManager.Instance.marteialnumber * float.Parse(GameManager.Instance.pice)).ToString();
//Attn.text = combined.Attn;
//Reviewers.text = combined.Reviewers;
//Suppliesdepartment.text = combined.Suppliesdepartment;
}
}