90 lines
2.9 KiB
C#
90 lines
2.9 KiB
C#
using DefaultNamespace;
|
|
using MotionFramework;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using TMPro;
|
|
using UnityEngine;
|
|
|
|
/// <summary>
|
|
/// 结余物资退库申请单
|
|
/// </summary>
|
|
public class ApplicationsurplusMaterials : MonoBehaviour
|
|
{
|
|
/// <summary>
|
|
/// 物料编码
|
|
/// </summary>
|
|
[Header("物料编码")]
|
|
public TextMeshProUGUI MaterialsCode;
|
|
/// <summary>
|
|
/// 物料描述
|
|
/// </summary>
|
|
[Header("物料描述")]
|
|
public TextMeshProUGUI MaterialsName;
|
|
/// <summary>
|
|
/// 退回数量
|
|
/// </summary>
|
|
[Header("退回数量")]
|
|
public TMP_InputField ReturnNumber;
|
|
/// <summary>
|
|
/// 鉴定情况
|
|
/// </summary>
|
|
[Header("鉴定情况")]
|
|
public TextMeshProUGUI Identification;
|
|
/// <summary>
|
|
/// 计量单位
|
|
/// </summary>
|
|
[Header("计量单位")]
|
|
public TextMeshProUGUI Unit;
|
|
/// <summary>
|
|
/// 领用数量
|
|
/// </summary>
|
|
[Header("领用数量")]
|
|
public TextMeshProUGUI Getnumber;
|
|
/// <summary>
|
|
/// 退回数量
|
|
/// </summary>
|
|
[Header("退回数量")]
|
|
public TMP_InputField returnnumber;
|
|
/// <summary>
|
|
/// 制单人
|
|
/// </summary>
|
|
[Header("制单人")]
|
|
public TMP_InputField MakeSingle;
|
|
/// <summary>
|
|
/// 退料部门审核人
|
|
/// </summary>
|
|
[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<GlobalDataStorage>().GetTaskBookValueByMapping("物料编码");
|
|
MaterialsName.text = MotionEngine.GetModule<GlobalDataStorage>().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<GlobalDataStorage>().GetTaskBookValueByMapping("收入数量");
|
|
//MaterialsCode.text = MotionEngine.GetModule<GlobalDataStorage>().GetTaskBookValueByMapping("物料编码");
|
|
//MaterialsName.text = MotionEngine.GetModule<GlobalDataStorage>().GetTaskBookValueByMapping("物料描述");
|
|
//returnnumber.text = MotionEngine.GetModule<GlobalDataStorage>().GetTaskBookValueByMapping("收入数量");
|
|
//Batch.text = MotionEngine.GetModule<GlobalDataStorage>().GetTaskBookValueByMapping("批次");
|
|
|
|
}
|
|
}
|