Tz2/Assets/Zion/Scripts/ERP/到货验收/ERPPrintWarehouseReceipt.cs

549 lines
26 KiB
C#

using DefaultNamespace;
using DefaultNamespace.ProcessMode;
using MotionFramework;
using System.Collections;
using System.Collections.Generic;
using TMPro;
using UnityEngine;
using UnityEngine.UI;
using static InterfaceManager;
/// <summary>
/// 入库单查询及打印
/// </summary>
public class ERPPrintWarehouseReceipt : MonoBehaviour
{
#region
/// <summary>
/// 物料凭证
/// </summary>
public InputField InMaterialVoucherPrintWarehouseReceipt;
/// <summary>
/// 配送单号
/// </summary>
public InputField InDeliveryOrderPrintWarehouseReceipt;
/// <summary>
/// 工厂
/// </summary>
public InputField InFactoryPrintWarehouseReceipt;
/// <summary>
/// 库存地点
/// </summary>
public InputField InStorageLocationPrintWarehouseReceipt;
/// <summary>
/// 物料
/// </summary>
public InputField InMaterialPrintWarehouseReceipt;
/// <summary>
/// 批次
/// </summary>
public InputField InBatchPrintWarehouseReceipt;
/// <summary>
/// 过账日期
/// </summary>
public InputField InPostingDatePrintWarehouseReceipt;
/// <summary>
/// 执行
/// </summary>
public Button btnPrintWarehouseReceipt;
#endregion
#region
/// <summary>
/// 入库单面板
/// </summary>
public Transform PanelGodownEntry;
/// <summary>
/// 打印按钮
/// </summary>
public Button btnPrintOutWarehouseReceipt;
/// <summary>
/// 选择
/// </summary>
public Toggle TogChoosePrintWarehouseReceipt;
/// <summary>
/// In入库单编号
/// </summary>
public TMP_InputField InEntryNumberPrintWarehouseReceipt;
/// <summary>
/// In供应商名称
/// </summary>
public TMP_InputField InSupplierNamePrintWarehouseReceipt;
/// <summary>
/// In供应商编码
/// </summary>
public TMP_InputField InSupplierCodePrintWarehouseReceipt;
/// <summary>
/// In入库日期
/// </summary>
public TMP_InputField InEntryDatePrintWarehouseReceipt;
/// <summary>
/// In电子验收报告编号
/// </summary>
public TMP_InputField InElectronicAcceptanceReportNumberPrintWarehouseReceipt;
/// <summary>
/// In物料编号
/// </summary>
public TMP_InputField InMaterialNumberPrintWarehouseReceipt;
/// <summary>
/// In物料描述
/// </summary>
public TMP_InputField InMaterialDescriptionPrintWarehouseReceipt;
/// <summary>
/// In计量单位
/// </summary>
public TMP_InputField InMeasurementUnitPrintWarehouseReceipt;
/// <summary>
/// In收货数量
/// </summary>
public TMP_InputField InReceivedQuantityPrintWarehouseReceipt;
/// <summary>
/// In收货单价
/// </summary>
public TMP_InputField InReceivedUnitPricePrintWarehouseReceipt;
/// <summary>
/// In收货金额
/// </summary>
public TMP_InputField InReceivedAmountPrintWarehouseReceipt;
/// <summary>
/// In仓库名称
/// </summary>
public TMP_InputField InWarehouseNamePrintWarehouseReceipt;
/// <summary>
/// In批次
/// </summary>
public TMP_InputField InBatchPrintWarehouseReceiptTwo;
/// <summary>
/// In会计凭证号
/// </summary>
public TMP_InputField InAccountingVoucherNumberPrintWarehouseReceipt;
/// <summary>
/// In仓库编号
/// </summary>
public TMP_InputField InWarehouseNumberPrintWarehouseReceipt;
/// <summary>
/// In物料凭证创建人
/// </summary>
public TMP_InputField InMaterialVoucherCreatorPrintWarehouseReceipt;
/// <summary>
/// In收货数量(黄)
/// </summary>
public TMP_InputField InReceivedQuantityPrintWarehouseReceiptYellow;
/// <summary>
/// In收货金额(黄)
/// </summary>
public TMP_InputField InReceivedAmountPrintWarehouseReceiptYellow;
#endregion
#region
/// <summary>
/// 打印界面
/// </summary>
public Transform PanelGodownEntryTwo;
/// <summary>
/// 打印预览按钮
/// </summary>
public Button btnPrintPreviewPrintWarehouseReceipt;
/// <summary>
/// 打印仓库收货单数据
/// </summary>
//public PrintWarehouseReceipt printWarehouseReceipt;
/// <summary>
/// 入库单面板
/// </summary>
public Transform PanelWarehouseWarrant;
/// <summary>
/// 打印数据
/// </summary>
//public PrintWarehouseReceiptCollection printWarehouseReceiptCollection;
/// <summary>
/// 入库类型
/// </summary>
public InputField InInTypeWarehouseWarrant;
/// <summary>
/// 工厂代码/工厂名称
/// </summary>
public InputField InFactoryCodeNameWarehouseWarrant;
/// <summary>
/// 移动类型代码/移动类型名称
/// </summary>
public InputField InTransportationTypeCodeNameWarehouseWarrant;
/// <summary>
/// 供应商编码/供应商名称
/// </summary>
public InputField InSupplierCodeNameWarehouseWarrant;
/// <summary>
/// 订单号
/// </summary>
public InputField InOrderNumberWarehouseWarrant;
/// <summary>
/// 凭证输入日期
/// </summary>
public InputField InVoucherInputDateWarehouseWarrant;
/// <summary>
/// 合同编号
/// </summary>
public InputField InContractNumberWarehouseWarrant;
/// <summary>
/// 物料凭证
/// </summary>
public InputField InMaterialVoucherWarehouseWarrant;
/// <summary>
/// 物料编码
/// </summary>
public InputField InMaterialCodeWarehouseWarrant;
/// <summary>
/// 物料描述
/// </summary>
public InputField InMaterialDescriptionWarehouseWarrant;
/// <summary>
/// 计量单位
/// </summary>
public InputField InMeasurementUnitWarehouseWarrant;
/// <summary>
/// 结存数量
/// </summary>
public InputField InStockQuantityWarehouseWarrant;
/// <summary>
/// 实际到货数量
/// </summary>
public InputField InActualArrivalQuantityWarehouseWarrant;
/// <summary>
/// 单价
/// </summary>
public InputField InUnitPriceWarehouseWarrant;
/// <summary>
/// 总价
/// </summary>
public InputField InTotalPriceWarehouseWarrant;
/// <summary>
/// 库存地点
/// </summary>
public InputField InStockLocationCodeWarehouseWarrant;
/// <summary>
/// 批次号
/// </summary>
public InputField InBatchNumberWarehouseWarrant;
/// <summary>
/// 打印日期
/// </summary>
public InputField InPrintDateWarehouseWarrant;
/// <summary>
/// 库管员
/// </summary>
public InputField InStockKeeperWarehouseWarrant;
/// <summary>
/// 仓库主管
/// </summary>
public InputField InWarehouseManagerWarehouseWarrant;
/// <summary>
/// 单据打印
/// </summary>
public Button btnPrintDocumentsReceipts;
/// <summary>
/// 打印完成
/// </summary>
public Transform DocumentPrintingComplete;
#endregion
void Awake()
{
#region
InMaterialVoucherPrintWarehouseReceipt = FindObjectByName<InputField>("InMaterialVoucherPrintWarehouseReceipt");
InDeliveryOrderPrintWarehouseReceipt = FindObjectByName<InputField>("InDeliveryOrderPrintWarehouseReceipt");
InFactoryPrintWarehouseReceipt = FindObjectByName<InputField>("InFactoryPrintWarehouseReceipt");
InStorageLocationPrintWarehouseReceipt = FindObjectByName<InputField>("InStorageLocationPrintWarehouseReceipt");
InBatchPrintWarehouseReceipt = FindObjectByName<InputField>("InBatchPrintWarehouseReceipt");
InPostingDatePrintWarehouseReceipt = FindObjectByName<InputField>("InPostingDatePrintWarehouseReceipt");
btnPrintWarehouseReceipt = FindObjectByName<Button>("btnPrintWarehouseReceipt");
InMaterialPrintWarehouseReceipt = FindObjectByName<InputField>("InMaterialPrintWarehouseReceipt");
#endregion
#region
PanelGodownEntry = FindObjectByName<Transform>("PanelGodownEntry");
btnPrintOutWarehouseReceipt = FindObjectByName<Button>("btnPrintOutWarehouseReceipt");
TogChoosePrintWarehouseReceipt = FindObjectByName<Toggle>("TogChoosePrintWarehouseReceipt");
InEntryNumberPrintWarehouseReceipt = FindObjectByName<TMP_InputField>("InEntryNumberPrintWarehouseReceipt");
InSupplierNamePrintWarehouseReceipt = FindObjectByName<TMP_InputField>("InSupplierNamePrintWarehouseReceipt");
InSupplierCodePrintWarehouseReceipt = FindObjectByName<TMP_InputField>("InSupplierCodePrintWarehouseReceipt");
InEntryDatePrintWarehouseReceipt = FindObjectByName<TMP_InputField>("InEntryDatePrintWarehouseReceipt");
InElectronicAcceptanceReportNumberPrintWarehouseReceipt = FindObjectByName<TMP_InputField>("InElectronicAcceptanceReportNumberPrintWarehouseReceipt");
InMaterialNumberPrintWarehouseReceipt = FindObjectByName<TMP_InputField>("InMaterialNumberPrintWarehouseReceipt");
InMaterialDescriptionPrintWarehouseReceipt = FindObjectByName<TMP_InputField>("InMaterialDescriptionPrintWarehouseReceipt");
InMeasurementUnitPrintWarehouseReceipt = FindObjectByName<TMP_InputField>("InMeasurementUnitPrintWarehouseReceipt");
InReceivedQuantityPrintWarehouseReceipt = FindObjectByName<TMP_InputField>("InReceivedQuantityPrintWarehouseReceipt");
InReceivedUnitPricePrintWarehouseReceipt = FindObjectByName<TMP_InputField>("InReceivedUnitPricePrintWarehouseReceipt");
InReceivedAmountPrintWarehouseReceipt = FindObjectByName<TMP_InputField>("InReceivedAmountPrintWarehouseReceipt");
InWarehouseNamePrintWarehouseReceipt = FindObjectByName<TMP_InputField>("InWarehouseNamePrintWarehouseReceipt");
InBatchPrintWarehouseReceiptTwo = FindObjectByName<TMP_InputField>("InBatchPrintWarehouseReceiptTwo");
InAccountingVoucherNumberPrintWarehouseReceipt = FindObjectByName<TMP_InputField>("InAccountingVoucherNumberPrintWarehouseReceipt");
InWarehouseNumberPrintWarehouseReceipt = FindObjectByName<TMP_InputField>("InWarehouseNumberPrintWarehouseReceipt");
InMaterialVoucherCreatorPrintWarehouseReceipt = FindObjectByName<TMP_InputField>("InMaterialVoucherCreatorPrintWarehouseReceipt");
InReceivedQuantityPrintWarehouseReceiptYellow = FindObjectByName<TMP_InputField>("InReceivedQuantityPrintWarehouseReceiptYellow");
InReceivedAmountPrintWarehouseReceiptYellow = FindObjectByName<TMP_InputField>("InReceivedAmountPrintWarehouseReceiptYellow");
#endregion
#region
PanelGodownEntryTwo = FindObjectByName<Transform>("PanelGodownEntryTwo");
btnPrintPreviewPrintWarehouseReceipt = FindObjectByName<Button>("btnPrintPreviewPrintWarehouseReceipt");
PanelWarehouseWarrant = FindObjectByName<Transform>("PanelWarehouseWarrant");
InInTypeWarehouseWarrant = FindObjectByName<InputField>("InInTypeWarehouseWarrant");
InFactoryCodeNameWarehouseWarrant = FindObjectByName<InputField>("InFactoryCodeNameWarehouseWarrant");
InTransportationTypeCodeNameWarehouseWarrant = FindObjectByName<InputField>("InTransportationTypeCodeNameWarehouseWarrant");
InSupplierCodeNameWarehouseWarrant = FindObjectByName<InputField>("InSupplierCodeNameWarehouseWarrant");
InOrderNumberWarehouseWarrant = FindObjectByName<InputField>("InOrderNumberWarehouseWarrant");
InVoucherInputDateWarehouseWarrant = FindObjectByName<InputField>("InVoucherInputDateWarehouseWarrant");
InContractNumberWarehouseWarrant = FindObjectByName<InputField>("InContractNumberWarehouseWarrant");
InMaterialVoucherWarehouseWarrant = FindObjectByName<InputField>("InMaterialVoucherWarehouseWarrant");
InMaterialCodeWarehouseWarrant = FindObjectByName<InputField>("InMaterialCodeWarehouseWarrant");
InMaterialDescriptionWarehouseWarrant = FindObjectByName<InputField>("InMaterialDescriptionWarehouseWarrant");
InMeasurementUnitWarehouseWarrant = FindObjectByName<InputField>("InMeasurementUnitWarehouseWarrant");
InStockQuantityWarehouseWarrant = FindObjectByName<InputField>("InStockQuantityWarehouseWarrant");
InActualArrivalQuantityWarehouseWarrant = FindObjectByName<InputField>("InActualArrivalQuantityWarehouseWarrant");
InUnitPriceWarehouseWarrant = FindObjectByName<InputField>("InUnitPriceWarehouseWarrant");
InTotalPriceWarehouseWarrant = FindObjectByName<InputField>("InTotalPriceWarehouseWarrant");
InStockLocationCodeWarehouseWarrant = FindObjectByName<InputField>("InStockLocationCodeWarehouseWarrant");
InBatchNumberWarehouseWarrant = FindObjectByName<InputField>("InBatchNumberWarehouseWarrant");
InPrintDateWarehouseWarrant = FindObjectByName<InputField>("InPrintDateWarehouseWarrant");
InStockKeeperWarehouseWarrant = FindObjectByName<InputField>("InStockKeeperWarehouseWarrant");
InWarehouseManagerWarehouseWarrant = FindObjectByName<InputField>("InWarehouseManagerWarehouseWarrant");
btnPrintDocumentsReceipts = FindObjectByName<Button>("btnPrintDocumentsReceipts");
DocumentPrintingComplete = FindObjectByName<Transform>("DocumentPrintingComplete");
#endregion
}
// Start is called before the first frame update
void Start()
{
Init();
}
/// <summary>
/// 初始化
/// </summary>
public void Init()
{
CombinedClass combinedClass = GameManager.Instance.combinedClass;
//打印预览(到货验收修改为打印按钮)
if (btnPrintPreviewPrintWarehouseReceipt != null)
{
btnPrintPreviewPrintWarehouseReceipt.onClick.AddListener(() =>
{
#region
//PanelWarehouseWarrant.gameObject.SetActive(true);
//LoadTriggerNextGuide();
#endregion
DocumentManagement.Instance.IsShowTrue("入库单");
InInTypeWarehouseWarrant.text = combinedClass.storageType;
InFactoryCodeNameWarehouseWarrant.text = combinedClass.FactoryCode + "/"
+ combinedClass.FactoryName;
InTransportationTypeCodeNameWarehouseWarrant.text = combinedClass.TransportationTypeCode + " "
+ combinedClass.TransportationTypeName;
InSupplierCodeNameWarehouseWarrant.text = combinedClass.SupplierCode
+ combinedClass.SupplierName;
InOrderNumberWarehouseWarrant.text = combinedClass.OrderNumber;
InVoucherInputDateWarehouseWarrant.text = combinedClass.DeliveryDate;
InContractNumberWarehouseWarrant.text = combinedClass.ContractNumber;
InMaterialVoucherWarehouseWarrant.text = combinedClass.materialVoucherCreator;
InMaterialCodeWarehouseWarrant.text = combinedClass.materialCode;
InMaterialDescriptionWarehouseWarrant.text = combinedClass.materialName;
InMeasurementUnitWarehouseWarrant.text = combinedClass.materialUnit;
InStockQuantityWarehouseWarrant.text = combinedClass.inventoryQuantity;
InActualArrivalQuantityWarehouseWarrant.text = combinedClass.incomeQuantity;
InUnitPriceWarehouseWarrant.text = combinedClass.unitPrice;
InTotalPriceWarehouseWarrant.text = (float.Parse(combinedClass.incomeQuantity) * float.Parse(combinedClass.unitPrice)).ToString();
InStockLocationCodeWarehouseWarrant.text = combinedClass.StockLocationName;
InBatchNumberWarehouseWarrant.text = combinedClass.BatchNumber;
InPrintDateWarehouseWarrant.text = combinedClass.DeliveryDate;
if (MotionFramework.MotionEngine.GetModule<ProcessManager>()._currentMode == ProcessMode. ||
MotionFramework.MotionEngine.GetModule<ProcessManager>()._currentMode == ProcessMode.)
{
{
if (MotionEngine.GetModule<GlobalDataStorage>().ExamName.Contains("退料物资入库"))
{
bool isMatch = MotionFramework.MotionEngine.GetModule<ProcessManager>().HandleClick("打印退料单");
if (isMatch)
{
PanelGodownEntryTwo.gameObject.SetActive(false);
LoadTriggerNextGuide();
}
}
else if (MotionEngine.GetModule<GlobalDataStorage>().ExamName.Contains("到货验收入库") ||
MotionEngine.GetModule<GlobalDataStorage>().ExamName.Contains("调拨物资入库") ||
MotionEngine.GetModule<GlobalDataStorage>().ExamName.Contains("退出退役代保管入库"))
{
bool isMatch = MotionFramework.MotionEngine.GetModule<ProcessManager>().HandleClick("打印入库单");
if (isMatch)
{
PanelGodownEntryTwo.gameObject.SetActive(false);
LoadTriggerNextGuide();
}
}
else
{
Debug.Log("未选择打印入库单,请检查");
}
}
}
else
{
if (MotionEngine.GetModule<GlobalDataStorage>().ExamName.Contains("退料物资入库"))
{
bool isMatch = MotionFramework.MotionEngine.GetModule<ProcessManager>().HandleClick("打印退料单");
PanelGodownEntryTwo.gameObject.SetActive(false);
//DocumentPrintingComplete.gameObject.SetActive(true);
LoadTriggerNextGuide();
}
else if (MotionEngine.GetModule<GlobalDataStorage>().ExamName.Contains("到货验收入库") ||
MotionEngine.GetModule<GlobalDataStorage>().ExamName.Contains("调拨物资入库") ||
MotionEngine.GetModule<GlobalDataStorage>().ExamName.Contains("退出退役代保管入库"))
{
bool isMatch = MotionFramework.MotionEngine.GetModule<ProcessManager>().HandleClick("打印入库单");
PanelGodownEntryTwo.gameObject.SetActive(false);
//DocumentPrintingComplete.gameObject.SetActive(true);
LoadTriggerNextGuide();
}
}
});
}
//执行按钮
if (btnPrintWarehouseReceipt != null)
{
btnPrintWarehouseReceipt.onClick.AddListener(() =>
{
List<string> inputList = new List<string>();
if (MotionEngine.GetModule<GlobalDataStorage>().ExamName.Contains("调拨物资入库"))
{
inputList.Add(InMaterialVoucherPrintWarehouseReceipt.text);
inputList.Add(InFactoryPrintWarehouseReceipt.text);
inputList.Add(InStorageLocationPrintWarehouseReceipt.text);
inputList.Add(InMaterialPrintWarehouseReceipt.text);
inputList.Add(InBatchPrintWarehouseReceipt.text);
}
else
{
inputList.Add(InFactoryPrintWarehouseReceipt.text);
inputList.Add(InStorageLocationPrintWarehouseReceipt.text);
inputList.Add(InBatchPrintWarehouseReceipt.text);
}
PanelGodownEntry.gameObject.SetActive(true);
MotionFramework.MotionEngine.GetModule<ProcessManager>().HandleClick(inputList);
InEntryNumberPrintWarehouseReceipt.text = "5005706954";
InSupplierNamePrintWarehouseReceipt.text = "江苏南瑞帕威尔电气有限公司";
InSupplierCodePrintWarehouseReceipt.text = "1000010780";
InEntryDatePrintWarehouseReceipt.text = "2025.03.04";
InElectronicAcceptanceReportNumberPrintWarehouseReceipt.text = "5005706832";
InMaterialNumberPrintWarehouseReceipt.text = MotionEngine.GetModule<GlobalDataStorage>().GetTaskBookValueByMapping("物料编码");
InMaterialDescriptionPrintWarehouseReceipt.text = MotionEngine.GetModule<GlobalDataStorage>().GetTaskBookValueByMapping("物料描述");
InMeasurementUnitPrintWarehouseReceipt.text = GameManager.Instance.unit;
InReceivedQuantityPrintWarehouseReceipt.text = GameManager.Instance.marteialnumber.ToString();
InReceivedUnitPricePrintWarehouseReceipt.text = GameManager.Instance.pice;
InReceivedAmountPrintWarehouseReceipt.text = (GameManager.Instance.marteialnumber * float.Parse(GameManager.Instance.pice)).ToString();
InWarehouseNamePrintWarehouseReceipt.text = "国网常州供电公司青龙仓库";
InBatchPrintWarehouseReceiptTwo.text = MotionEngine.GetModule<GlobalDataStorage>().GetTaskBookValueByMapping("批次");
InAccountingVoucherNumberPrintWarehouseReceipt.text = combinedClass.accountingVoucherNumber;
InWarehouseNumberPrintWarehouseReceipt.text = MotionEngine.GetModule<GlobalDataStorage>().GetTaskBookValue("库存地点");
InMaterialVoucherCreatorPrintWarehouseReceipt.text = "李九";
InReceivedQuantityPrintWarehouseReceiptYellow.text = GameManager.Instance.marteialnumber.ToString();
InReceivedAmountPrintWarehouseReceiptYellow.text = (GameManager.Instance.marteialnumber * float.Parse(GameManager.Instance.pice)).ToString();
LoadTriggerNextGuide();
// }
// else
// {
// Debug.Log("未查询到入库单,请检查输入是否正确");
// }
});
}
else
{
Debug.Log("btnPrintWarehouseReceipt is null");
}
//打印按钮
if (btnPrintOutWarehouseReceipt != null)
{
btnPrintOutWarehouseReceipt.onClick.AddListener(() =>
{
string isChoose = TogChoosePrintWarehouseReceipt.isOn ? "true" : "false";
MotionFramework.MotionEngine.GetModule<ProcessManager>().HandleClick(isChoose);
PanelGodownEntryTwo.gameObject.SetActive(true);
LoadTriggerNextGuide();
});
}
else
{
Debug.Log("btnPrintOutWarehouseReceipt is null");
}
//单据打印按钮
if (btnPrintDocumentsReceipts != null)
{
btnPrintDocumentsReceipts.onClick.AddListener(() =>
{
if (MotionFramework.MotionEngine.GetModule<ProcessManager>()._currentMode == ProcessMode. ||
MotionFramework.MotionEngine.GetModule<ProcessManager>()._currentMode == ProcessMode.)
{
{
if (MotionEngine.GetModule<GlobalDataStorage>().ExamName.Contains("退料物资入库"))
{
bool isMatch = MotionFramework.MotionEngine.GetModule<ProcessManager>().HandleClick("打印退料单");
if (isMatch)
{
DocumentPrintingComplete.gameObject.SetActive(true);
LoadTriggerNextGuide();
}
}
else if (MotionEngine.GetModule<GlobalDataStorage>().ExamName.Contains("到货验收入库") ||
MotionEngine.GetModule<GlobalDataStorage>().ExamName.Contains("调拨物资入库") ||
MotionEngine.GetModule<GlobalDataStorage>().ExamName.Contains("退出退役代保管入库"))
{
bool isMatch = MotionFramework.MotionEngine.GetModule<ProcessManager>().HandleClick("打印入库单");
if (isMatch)
{
DocumentPrintingComplete.gameObject.SetActive(true);
LoadTriggerNextGuide();
}
}
else
{
Debug.Log("未选择打印入库单,请检查");
}
}
}
else
{
if (MotionEngine.GetModule<GlobalDataStorage>().ExamName.Contains("退料物资入库"))
{
bool isMatch = MotionFramework.MotionEngine.GetModule<ProcessManager>().HandleClick("打印退料单");
DocumentPrintingComplete.gameObject.SetActive(true);
LoadTriggerNextGuide();
}
else if (MotionEngine.GetModule<GlobalDataStorage>().ExamName.Contains("到货验收入库") ||
MotionEngine.GetModule<GlobalDataStorage>().ExamName.Contains("调拨物资入库") ||
MotionEngine.GetModule<GlobalDataStorage>().ExamName.Contains("退出退役代保管入库"))
{
bool isMatch = MotionFramework.MotionEngine.GetModule<ProcessManager>().HandleClick("打印入库单");
DocumentPrintingComplete.gameObject.SetActive(true);
LoadTriggerNextGuide();
}
}
}
);
}
}
}