using System; using MotionFramework; using UnityEngine; using Zion.Scripts.ERP.库存物资库存地点批量切换; using Zion.Scripts.ERP.库存物资报表的查询与解读; using Zion.Scripts.ERP.库存物资查询报表; using Zion.Scripts.ERP.系统入库冲销凭证分析; using Zion.Scripts.ERP.系统退库冲销凭证分析; namespace DefaultNamespace { public class ERPManager : MonoBehaviour { // 代保管物资仓储单 public GameObject mTrusteeMaterialStorageForm; // 物资需求计划审批情况查询表 public GameObject mMaterialDemandPlanApprovalQuery; // 物资需求计划审批情况查询表1 public GameObject mMaterialDemandPlanApprovalQuery1; // 童询库存物资报表 public GameObject mChildInventoryReport; // 库存物资查询报表 public GameObject mInventoryReport; // 在途库存 public GameObject mInTransitInventory2; // 库存物资查询报表-分析全市库存 public GameObject mInventoryReportCityAnalysis; // 库存物资查询报表new public GameObject mInventoryReportNew; // 过账转移new public GameObject mTransferPostingNew; // 物料凭证清单 public GameObject mMaterialVoucherList; // 物料凭证清单1 public GameObject mMaterialVoucherList1; // 显示库存凭证清单 public GameObject mDisplayInventoryVoucherList; // 查询物资采购合同执行状态 public GameObject mQueryMaterialPurchaseContractStatus; // 打印入库单 public GameObject mPrintWarehouseEntry; // 维护货物交接单 public GameObject mMaintainGoodsHandoverForm; // 查询物资采购合同执行状态1 public GameObject mQueryMaterialPurchaseContractStatus1; // 库存物资查询报表1 public GameObject mInventoryReport1; // 维护到货验收单 public GameObject mMaintainGoodsReceiptForm; // 管理库存收发货 public GameObject mManageInventoryReceiving; // 代保管物资仓储单1 public GameObject mTrusteeMaterialStorageForm1; // 打印遐料单 public GameObject mPrintMaterialForm; // 出场验收处理 public GameObject mExitInspectionProcessing; // SAP上下架功能 public GameObject mSAPShelfManagement; public void OnClick(GameObject erpUI) { string examName = MotionEngine.GetModule().ExamName; switch (examName) { case "公司库存组成分析": break; case "库存物资报表的查询与解读": mInTransitInventory2.GetComponent().enabled = true; break; case "在途库存物资报表的查询与解读": mInTransitInventory2.GetComponent().enabled = true; break; case "库存物资库存状态转换": mInventoryReportNew.GetComponent().enabled = true; mTransferPostingNew.GetComponent().enabled = true; break; case "库存物资库存地点批量切换": mInventoryReportNew.GetComponent().enabled = true; mTransferPostingNew.GetComponent().enabled = true; break; case "系统入库冲销凭证分析": mMaterialVoucherList.GetComponent().enabled = true; break; case "系统退库冲销凭证分析": mMaterialVoucherList.GetComponent().enabled = true; break; case "退出退役资产代保管入库作业": break; case "电缆分支箱跨地市物资调配": mInventoryReport1.SetActive(true); break; case "重点物资排产计划": mQueryMaterialPurchaseContractStatus.SetActive(true); break; case "物资配送履约跟踪表维护": mQueryMaterialPurchaseContractStatus.SetActive(true); break; case "完成出厂验收的系统上报": mQueryMaterialPurchaseContractStatus.SetActive(true); break; case "查询需求计划审批状态": mMaterialDemandPlanApprovalQuery1.SetActive(true); break; case "物料凭证分析基础知识": mMaterialVoucherList1.SetActive(true); break; default: Debug.LogWarning($"未知的考试名称: {examName}"); break; } erpUI.SetActive(true); } } }