9.0009
This commit is contained in:
parent
ba3d0ebabf
commit
8c4e6f779d
|
|
@ -42,12 +42,6 @@ public class DeliveryListManager : MonoBehaviour
|
||||||
|
|
||||||
private void OnClickCloseButton()
|
private void OnClickCloseButton()
|
||||||
{
|
{
|
||||||
// if (Delivery_BadBehavior.Instance.isGuiding)
|
Debug.Log("OnClickCloseButton");
|
||||||
// {
|
|
||||||
// if (TutorialGuideManager.Instance.TriggerNextGuide(closeButton.name))
|
|
||||||
// {
|
|
||||||
// listPanel.SetActive(false);
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -59,8 +59,4 @@ public class TruckAnimation : MonoBehaviour
|
||||||
gameObject.SetActive(false);
|
gameObject.SetActive(false);
|
||||||
worker.SetActive(true);
|
worker.SetActive(true);
|
||||||
}
|
}
|
||||||
public void OnDisable()
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -235,7 +235,6 @@ public class ERPCollection : MonoBehaviour
|
||||||
{
|
{
|
||||||
PanelERP.gameObject.SetActive(false);
|
PanelERP.gameObject.SetActive(false);
|
||||||
LoadTriggerNextGuide("关闭");
|
LoadTriggerNextGuide("关闭");
|
||||||
; //隐藏引导
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -334,7 +334,7 @@ namespace Zion.ERP.Inventory
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public void OnGUI()
|
public void OnGUI()
|
||||||
{
|
{
|
||||||
// 可以在这里添加调试信息显示
|
Debug.Log("API配置管理器绘制");// 可以在这里添加调试信息显示
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -62,14 +62,6 @@ public class UI_Tips : MonoBehaviour
|
||||||
ecp.SetActive(true);
|
ecp.SetActive(true);
|
||||||
ecp.GetComponent<FormulationSupplyPlanInfrastructureProjects>().enabled = true;
|
ecp.GetComponent<FormulationSupplyPlanInfrastructureProjects>().enabled = true;
|
||||||
}
|
}
|
||||||
else if (MotionEngine.GetModule<GlobalDataStorage>().ExamName == "不良行为处理")
|
|
||||||
{
|
|
||||||
}
|
|
||||||
else if (MotionEngine.GetModule<GlobalDataStorage>().ExamName == "不良行为处理")
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
LoadTriggerNextGuide(btn_close.name);
|
LoadTriggerNextGuide(btn_close.name);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
||||||
|
|
@ -75,33 +75,8 @@ public class ReceivingShippingReturnWarehousing : MonoBehaviour
|
||||||
//Init();
|
//Init();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Update()
|
public void Init()
|
||||||
{
|
{
|
||||||
//if (InputFieldManageInventoryReceivingShippingOrderNumber.text != "" && InputFieldManageInventoryReceivingShippingOrderNumber.text == "4914324675")
|
|
||||||
//{
|
|
||||||
// ShortText.text = MotionEngine.GetModule<GlobalDataStorage>().GetTaskBookValueByMapping("物料编码");
|
|
||||||
// number.text = (int.Parse(MotionEngine.GetModule<GlobalDataStorage>().GetTaskBookValueByMapping("台")) * 2).ToString();
|
|
||||||
// point.text = MotionEngine.GetModule<GlobalDataStorage>().GetTaskBookValueByMapping("库存地点");
|
|
||||||
// batch.text = MotionEngine.GetModule<GlobalDataStorage>().GetTaskBookValueByMapping("批次");
|
|
||||||
// Materialmessage.text= MotionEngine.GetModule<GlobalDataStorage>().GetTaskBookValueByMapping("物料描述");
|
|
||||||
//}
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Init()
|
|
||||||
{
|
|
||||||
// CombinedClass combined = GameManager.Instance.combinedClass;
|
|
||||||
// ShortText.text = combined.materialCode;
|
|
||||||
// eunit.text = combined.materialUnit;
|
|
||||||
// unit.text = combined.materialUnit;
|
|
||||||
|
|
||||||
// InMaterialDescriptionTransferWarehouseTransferOrder.text = MotionEngine.GetModule<GlobalDataStorage>().GetTaskBookValueByMapping("物料描述");
|
|
||||||
// InStockQuantityTransferWarehouseTransferOrder.text = MotionEngine.GetModule<GlobalDataStorage>().GetTaskBookValueByMapping("收入数量");
|
|
||||||
// //InActualArrivalQuantityWarehouseWarrant.text = MotionEngine.GetModule<GlobalDataStorage>().GetTaskBookValueByMapping("收入数量");
|
|
||||||
// //InUnitPriceWarehouseWarrant.text = combinedClass.unitPrice;
|
|
||||||
// //InTotalPriceWarehouseWarrant.text = (float.Parse(combinedClass.incomeQuantity) * float.Parse(combinedClass.unitPrice)).ToString();
|
|
||||||
// //InStockLocationCodeWarehouseWarrant.text = MotionEngine.GetModule<GlobalDataStorage>().GetTaskBookValueByMapping("");
|
|
||||||
// InBatchNumberTransferWarehouseTransferOrder.text = MotionEngine.GetModule<GlobalDataStorage>().GetTaskBookValueByMapping("批次");
|
|
||||||
|
|
||||||
ShortText.text = MotionEngine.GetModule<GlobalDataStorage>().GetTaskBookValueByMapping("物料编码");
|
ShortText.text = MotionEngine.GetModule<GlobalDataStorage>().GetTaskBookValueByMapping("物料编码");
|
||||||
number.text = (int.Parse(MotionEngine.GetModule<GlobalDataStorage>().GetTaskBookValueByMapping("台")) * 2).ToString();
|
number.text = (int.Parse(MotionEngine.GetModule<GlobalDataStorage>().GetTaskBookValueByMapping("台")) * 2).ToString();
|
||||||
point.text = MotionEngine.GetModule<GlobalDataStorage>().GetTaskBookValueByMapping("库存地点");
|
point.text = MotionEngine.GetModule<GlobalDataStorage>().GetTaskBookValueByMapping("库存地点");
|
||||||
|
|
|
||||||
|
|
@ -79,12 +79,7 @@ public class TaskPrompt : MonoBehaviour
|
||||||
// Start is called before the first frame update
|
// Start is called before the first frame update
|
||||||
void Start()
|
void Start()
|
||||||
{
|
{
|
||||||
if (btnClosePanelTaskPrompt != null)
|
returnRevVoucherAnalyzer = (Framework.Dto.InventoryReversalVoucherAnalyzer)MotionEngine.GetModule<GlobalDataStorage>().materialTaskObj;
|
||||||
{
|
|
||||||
//btnClosePanelTaskPrompt.onClick.AddListener(HHH);
|
|
||||||
}
|
|
||||||
returnRevVoucherAnalyzer = (Framework.Dto.InventoryReversalVoucherAnalyzer)MotionEngine.GetModule<GlobalDataStorage>().materialTaskObj;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -142,31 +137,8 @@ public class TaskPrompt : MonoBehaviour
|
||||||
FileComponent.DownloadSingleFile("新注册仓库的主数据运维流程_答题卡1");
|
FileComponent.DownloadSingleFile("新注册仓库的主数据运维流程_答题卡1");
|
||||||
MotionFramework.MotionEngine.GetModule<ProcessManager>().HandleClick("答题卡");
|
MotionFramework.MotionEngine.GetModule<ProcessManager>().HandleClick("答题卡");
|
||||||
}
|
}
|
||||||
// if (MotionEngine.GetModule<GlobalDataStorage>().ExamName == "审核合同变更申请")
|
|
||||||
// {
|
|
||||||
//
|
|
||||||
// if (returnRevVoucherAnalyzer.formselection == "合同1")
|
|
||||||
// {
|
|
||||||
// FileComponent.DownloadSingleFile("附件2 系统数据-合同执行计划_合同1");
|
|
||||||
// }
|
|
||||||
// else if (returnRevVoucherAnalyzer.formselection == "合同2")
|
|
||||||
// {
|
|
||||||
// FileComponent.DownloadSingleFile("附件2 系统数据-合同执行计划_合同2");
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
|
||||||
// // 检查下一个步骤是否包含"发货前"
|
|
||||||
// string nextStepTitle = MotionFramework.MotionEngine.GetModule<ProcessManager>().GetNextStepTitle();
|
|
||||||
// if (!string.IsNullOrEmpty(nextStepTitle) && nextStepTitle.Contains("发货前"))
|
|
||||||
// {
|
|
||||||
// Debug.Log($"检测到下一个步骤包含'发货前': {nextStepTitle},调用Hide()方法");
|
|
||||||
// Hide();
|
|
||||||
// }
|
|
||||||
|
|
||||||
|
|
||||||
gameObject.SetActive(false);
|
gameObject.SetActive(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -209,11 +181,7 @@ public class TaskPrompt : MonoBehaviour
|
||||||
{
|
{
|
||||||
isHandle = false;
|
isHandle = false;
|
||||||
MotionFramework.MotionEngine.GetModule<ProcessManager>().HandleClick("任务书");
|
MotionFramework.MotionEngine.GetModule<ProcessManager>().HandleClick("任务书");
|
||||||
LoadTriggerNextGuide("关闭");;
|
LoadTriggerNextGuide("关闭");;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -53,8 +53,6 @@ public class DragWindow : MonoBehaviour, IDragHandler, IBeginDragHandler, IEndDr
|
||||||
}
|
}
|
||||||
public void OnDrag(PointerEventData eventData)
|
public void OnDrag(PointerEventData eventData)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
if (IgnoretheUI == false)
|
if (IgnoretheUI == false)
|
||||||
{
|
{
|
||||||
if (EventSystem.current.IsPointerOverGameObject()) return;
|
if (EventSystem.current.IsPointerOverGameObject()) return;
|
||||||
|
|
@ -63,17 +61,12 @@ public class DragWindow : MonoBehaviour, IDragHandler, IBeginDragHandler, IEndDr
|
||||||
{
|
{
|
||||||
Vector2 localPosition;
|
Vector2 localPosition;
|
||||||
RectTransformUtility.ScreenPointToLocalPointInRectangle(transform.parent as RectTransform, Input.mousePosition, null, out localPosition);
|
RectTransformUtility.ScreenPointToLocalPointInRectangle(transform.parent as RectTransform, Input.mousePosition, null, out localPosition);
|
||||||
//transform.localPosition = localPosition;
|
|
||||||
// offest = vector2TpVector3(localPosition);
|
|
||||||
|
|
||||||
transform.localPosition = vector2TpVector3(localPosition) - offest;
|
transform.localPosition = vector2TpVector3(localPosition) - offest;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//停止拖拽
|
//停止拖拽
|
||||||
public void OnEndDrag(PointerEventData eventData)
|
public void OnEndDrag(PointerEventData eventData)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
if (IgnoretheUI == false)
|
if (IgnoretheUI == false)
|
||||||
{
|
{
|
||||||
if (EventSystem.current.IsPointerOverGameObject()) return;
|
if (EventSystem.current.IsPointerOverGameObject()) return;
|
||||||
|
|
@ -88,7 +81,7 @@ public class DragWindow : MonoBehaviour, IDragHandler, IBeginDragHandler, IEndDr
|
||||||
|
|
||||||
public void OnPointerClick(PointerEventData eventData)
|
public void OnPointerClick(PointerEventData eventData)
|
||||||
{
|
{
|
||||||
|
Debug.Log("OnPointerClick");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -57,24 +57,10 @@ public class CustodyEntrustmentApplication : MonoBehaviour
|
||||||
Init();
|
Init();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update is called once per frame
|
|
||||||
void Update()
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
public void Init()
|
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("物料编码");
|
Materialcode.text = MotionEngine.GetModule<GlobalDataStorage>().GetTaskBookValueByMapping("物料编码");
|
||||||
MaterialName.text = MotionEngine.GetModule<GlobalDataStorage>().GetTaskBookValueByMapping("物料描述");
|
MaterialName.text = MotionEngine.GetModule<GlobalDataStorage>().GetTaskBookValueByMapping("物料描述");
|
||||||
MaterialNumber.text = MotionEngine.GetModule<GlobalDataStorage>().GetTaskBookValueByMapping("收入数量");
|
MaterialNumber.text = MotionEngine.GetModule<GlobalDataStorage>().GetTaskBookValueByMapping("收入数量");
|
||||||
//Attn.text = combined.Attn;
|
|
||||||
//Reviewers.text = combined.Reviewers;
|
|
||||||
//Suppliesdepartment.text = combined.Suppliesdepartment;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -117,11 +117,6 @@ public class ReturnAndInboundList : MonoBehaviour
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update is called once per frame
|
|
||||||
void Update()
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
void Init()
|
void Init()
|
||||||
{
|
{
|
||||||
Returnnumber.text = MotionEngine.GetModule<GlobalDataStorage>().GetTaskBookValueByMapping("台");
|
Returnnumber.text = MotionEngine.GetModule<GlobalDataStorage>().GetTaskBookValueByMapping("台");
|
||||||
|
|
|
||||||
|
|
@ -4,16 +4,16 @@ using TMPro;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 工程结余物资退料申请单
|
/// 工程结余物资退料申请单
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class ReturnRequestDocuments : MonoBehaviour
|
public class ReturnRequestDocuments : MonoBehaviour
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 物料描述文本
|
/// 物料描述文本
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public TextMeshProUGUI Materialdescription;
|
public TextMeshProUGUI Materialdescription;
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 物料数量
|
/// 物料数量
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public TextMeshProUGUI Materialnum;
|
public TextMeshProUGUI Materialnum;
|
||||||
void Start()
|
void Start()
|
||||||
|
|
@ -23,10 +23,4 @@ public class ReturnRequestDocuments : MonoBehaviour
|
||||||
Materialnum.text = data.materialNumber;
|
Materialnum.text = data.materialNumber;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update is called once per frame
|
|
||||||
void Update()
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -124,7 +124,7 @@ public class BasePanel : MonoBehaviour
|
||||||
/// <param name="btnPath">按钮的完整路径</param>
|
/// <param name="btnPath">按钮的完整路径</param>
|
||||||
protected virtual void OnClick(string btnPath)
|
protected virtual void OnClick(string btnPath)
|
||||||
{
|
{
|
||||||
// 处理按钮点击事件
|
Debug.Log(btnPath + " 处理按钮点击事件"); // 处理按钮点击事件
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
@ -134,7 +134,7 @@ public class BasePanel : MonoBehaviour
|
||||||
/// <param name="isOn">Toggle的状态</param>
|
/// <param name="isOn">Toggle的状态</param>
|
||||||
protected virtual void OnChangeToggle(string togglePath, bool isOn)
|
protected virtual void OnChangeToggle(string togglePath, bool isOn)
|
||||||
{
|
{
|
||||||
// 处理Toggle切换事件
|
Debug.Log(togglePath + " 处理Toggle切换事件: " + isOn); // 处理Toggle切换事件
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
|
||||||
|
|
@ -63,9 +63,5 @@ public class ERP_BorrowingRequisitions : MonoBehaviour
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
// Update is called once per frame
|
|
||||||
void Update()
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -18,63 +18,15 @@ public class test : MonoBehaviour
|
||||||
|
|
||||||
Debug.Log(JsonConvert.SerializeObject(new CustodyInbound()));
|
Debug.Log(JsonConvert.SerializeObject(new CustodyInbound()));
|
||||||
|
|
||||||
// 订阅当前动作完成事件
|
// 订阅当前动作完成事件
|
||||||
MotionEngine.GetModule<ProcessManager>().OnCurrentActionCompleteEvent += (e) => {
|
MotionEngine.GetModule<ProcessManager>().OnCurrentActionCompleteEvent += (e) => {
|
||||||
Debug.Log("当前动作已完成!");
|
Debug.Log("当前动作已完成!");
|
||||||
};
|
};
|
||||||
|
|
||||||
// 订阅当前步骤所有动作完成事件
|
// 订阅当前步骤所有动作完成事件
|
||||||
MotionEngine.GetModule<ProcessManager>().OnStepActionsCompleteEvent += (e) => {
|
MotionEngine.GetModule<ProcessManager>().OnStepActionsCompleteEvent += (e) => {
|
||||||
Debug.Log("当前步骤的所有动作已完成!");
|
Debug.Log("当前步骤的所有动作已完成!");
|
||||||
};
|
};
|
||||||
// MotionEngine.GetModule<ProcessManager>().JumpToProcessAsync(1, 0);
|
|
||||||
// MotionEngine.GetModule<ProcessManager>().HandleClick("任务书");
|
|
||||||
// MotionEngine.GetModule<ProcessManager>().HandleClick("对话结束");
|
|
||||||
|
|
||||||
// Debug.Log(MotionEngine.GetModule<ProcessManager>().HandleClick(new List<string>({""})));
|
|
||||||
// Debug.Log(MotionEngine.GetModule<ProcessManager>().HandleClick("任务书"));
|
|
||||||
// Debug.Log(MotionEngine.GetModule<ProcessManager>().HandleClick(new List<string>()
|
|
||||||
// {
|
|
||||||
// "陈二","赵六1","HDA1"
|
|
||||||
// }));
|
|
||||||
// Debug.Log(MotionEngine.GetModule<ProcessManager>().HandleClick(new List<string>()
|
|
||||||
// {
|
|
||||||
// "陈二","赵六","HDA1"
|
|
||||||
// }));
|
|
||||||
// Debug.Log(MotionEngine.GetModule<ProcessManager>().HandleClick(new List<string>()
|
|
||||||
// {
|
|
||||||
// "2222","3333"
|
|
||||||
// }));
|
|
||||||
//
|
|
||||||
// Debug.Log(MotionEngine.GetModule<ProcessManager>().HandleClick("pp1p"));
|
|
||||||
// Debug.Log(MotionEngine.GetModule<ProcessManager>().HandleClick("pp2p"));
|
|
||||||
// Debug.Log(MotionEngine.GetModule<ProcessManager>().HandleClick("pp3p"));
|
|
||||||
// Debug.Log(MotionEngine.GetModule<ProcessManager>().HandleClick("ppp"));
|
|
||||||
// Debug.Log(MotionEngine.GetModule<ProcessManager>().HandleClick("3"));
|
|
||||||
// Debug.Log(MotionEngine.GetModule<ProcessManager>().HandleClick("ppp"));
|
|
||||||
// Debug.Log(MotionEngine.GetModule<ProcessManager>().HandleClick("3"));
|
|
||||||
// Debug.Log(MotionEngine.GetModule<ProcessManager>().HandleClick("33"));
|
|
||||||
// Debug.Log(MotionEngine.GetModule<ProcessManager>().HandleClick("2"));
|
|
||||||
// Debug.Log(MotionEngine.GetModule<ProcessManager>().CalculateTotalScore());
|
|
||||||
// Debug.Log(MotionEngine.GetModule<ProcessManager>().HandleClick("11"));
|
|
||||||
//
|
|
||||||
|
|
||||||
// GuideMask.Instance.CreateRectangleMask(aa);
|
|
||||||
// 2. 开始引导流程
|
|
||||||
// TutorialGuideManager.Instance.InitializeGuideObjects();
|
|
||||||
// TutorialGuideManager.Instance.StartGuide();
|
|
||||||
// yield return new WaitForSeconds(5);
|
|
||||||
// TutorialGuideManager.Instance.HideGuide();
|
|
||||||
// yield return new WaitForSeconds(5);
|
|
||||||
// TutorialGuideManager.Instance.TriggerNextGuide();
|
|
||||||
// TutorialGuideManager.Instance.TriggerNextGuide();
|
|
||||||
// yield return new WaitForSeconds(2);
|
|
||||||
// TutorialGuideManager.Instance.TriggerNextGuide();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update is called once per frame
|
|
||||||
void Update()
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue