92 lines
2.7 KiB
C#
92 lines
2.7 KiB
C#
using System.Collections;
|
||
using System.Collections.Generic;
|
||
using DefaultNamespace;
|
||
using MotionFramework;
|
||
using TMPro;
|
||
using UnityEngine;
|
||
|
||
public class CustodyEntrustmentApplication : MonoBehaviour
|
||
{
|
||
/// <summary>
|
||
/// <20><><EFBFBD>ϱ<EFBFBD><CFB1><EFBFBD>
|
||
/// </summary>
|
||
[Header("<22><><EFBFBD>ϱ<EFBFBD><CFB1><EFBFBD>")]
|
||
public TMP_InputField Materialcode;
|
||
/// <summary>
|
||
/// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||
/// </summary>
|
||
[Header("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>")]
|
||
public TMP_InputField MaterialName;
|
||
/// <summary>
|
||
/// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>λ
|
||
/// </summary>
|
||
[Header("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>λ")]
|
||
public TMP_InputField Unit;
|
||
/// <summary>
|
||
/// <20><><EFBFBD><EFBFBD>
|
||
/// </summary>
|
||
[Header("<22><><EFBFBD><EFBFBD>")]
|
||
public TMP_InputField MaterialNumber;
|
||
/// <summary>
|
||
/// <20><>ʹ<EFBFBD><CAB9>ʱ<EFBFBD><CAB1>
|
||
/// </summary>
|
||
[Header("<22><>ʹ<EFBFBD><CAB9>ʱ<EFBFBD><CAB1>")]
|
||
public TMP_InputField Usetime;
|
||
/// <summary>
|
||
/// <20><><EFBFBD><EFBFBD>
|
||
/// </summary>
|
||
[Header("<22><><EFBFBD><EFBFBD>")]
|
||
public TextMeshProUGUI DateTime;
|
||
/// <summary>
|
||
/// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ǩ<EFBFBD><C7A9>
|
||
/// </summary>
|
||
[Header("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ǩ<EFBFBD><C7A9>")]
|
||
public TMP_InputField Attn;
|
||
/// <summary>
|
||
/// <20><><EFBFBD><EFBFBD><EFBFBD>ǩ<EFBFBD><C7A9>
|
||
/// </summary>
|
||
[Header("<22><><EFBFBD><EFBFBD><EFBFBD>ǩ<EFBFBD><C7A9>")]
|
||
public TMP_InputField Reviewers;
|
||
/// <summary>
|
||
/// <20><><EFBFBD>ʲ<EFBFBD><CAB2><EFBFBD>ǩ<EFBFBD><C7A9>
|
||
/// </summary>
|
||
[Header("<22><><EFBFBD>ʲ<EFBFBD><CAB2><EFBFBD>ǩ<EFBFBD><C7A9>")]
|
||
public TMP_InputField Suppliesdepartment;
|
||
/// <summary>
|
||
/// 单价
|
||
/// </summary>
|
||
public TMP_InputField pice;
|
||
/// <summary>
|
||
/// 总价
|
||
/// </summary>
|
||
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<GlobalDataStorage>().GetTaskBookValueByMapping("物料编码");
|
||
MaterialName.text = MotionEngine.GetModule<GlobalDataStorage>().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;
|
||
}
|
||
}
|