using DefaultNamespace;
using DefaultNamespace.ProcessMode;
using MotionFramework;
using System.Collections;
using System.Collections.Generic;
using TMPro;
using UnityEngine;
using UnityEngine.UI;
using static InterfaceManager;
///
/// 入库单查询及打印
///
public class ERPPrintWarehouseReceipt : MonoBehaviour
{
#region 打开入库单
///
/// 物料凭证
///
public InputField InMaterialVoucherPrintWarehouseReceipt;
///
/// 配送单号
///
public InputField InDeliveryOrderPrintWarehouseReceipt;
///
/// 工厂
///
public InputField InFactoryPrintWarehouseReceipt;
///
/// 库存地点
///
public InputField InStorageLocationPrintWarehouseReceipt;
///
/// 物料
///
public InputField InMaterialPrintWarehouseReceipt;
///
/// 批次
///
public InputField InBatchPrintWarehouseReceipt;
///
/// 过账日期
///
public InputField InPostingDatePrintWarehouseReceipt;
///
/// 执行
///
public Button btnPrintWarehouseReceipt;
#endregion
#region 入库单
///
/// 入库单面板
///
public Transform PanelGodownEntry;
///
/// 打印按钮
///
public Button btnPrintOutWarehouseReceipt;
///
/// 选择
///
public Toggle TogChoosePrintWarehouseReceipt;
///
/// In入库单编号
///
public TMP_InputField InEntryNumberPrintWarehouseReceipt;
///
/// In供应商名称
///
public TMP_InputField InSupplierNamePrintWarehouseReceipt;
///
/// In供应商编码
///
public TMP_InputField InSupplierCodePrintWarehouseReceipt;
///
/// In入库日期
///
public TMP_InputField InEntryDatePrintWarehouseReceipt;
///
/// In电子验收报告编号
///
public TMP_InputField InElectronicAcceptanceReportNumberPrintWarehouseReceipt;
///
/// In物料编号
///
public TMP_InputField InMaterialNumberPrintWarehouseReceipt;
///
/// In物料描述
///
public TMP_InputField InMaterialDescriptionPrintWarehouseReceipt;
///
/// In计量单位
///
public TMP_InputField InMeasurementUnitPrintWarehouseReceipt;
///
/// In收货数量
///
public TMP_InputField InReceivedQuantityPrintWarehouseReceipt;
///
/// In收货单价
///
public TMP_InputField InReceivedUnitPricePrintWarehouseReceipt;
///
/// In收货金额
///
public TMP_InputField InReceivedAmountPrintWarehouseReceipt;
///
/// In仓库名称
///
public TMP_InputField InWarehouseNamePrintWarehouseReceipt;
///
/// In批次
///
public TMP_InputField InBatchPrintWarehouseReceiptTwo;
///
/// In会计凭证号
///
public TMP_InputField InAccountingVoucherNumberPrintWarehouseReceipt;
///
/// In仓库编号
///
public TMP_InputField InWarehouseNumberPrintWarehouseReceipt;
///
/// In物料凭证创建人
///
public TMP_InputField InMaterialVoucherCreatorPrintWarehouseReceipt;
///
/// In收货数量(黄)
///
public TMP_InputField InReceivedQuantityPrintWarehouseReceiptYellow;
///
/// In收货金额(黄)
///
public TMP_InputField InReceivedAmountPrintWarehouseReceiptYellow;
#endregion
#region 入库单预览界面
///
/// 打印界面
///
public Transform PanelGodownEntryTwo;
///
/// 打印预览按钮
///
public Button btnPrintPreviewPrintWarehouseReceipt;
///
/// 打印仓库收货单数据
///
//public PrintWarehouseReceipt printWarehouseReceipt;
///
/// 入库单面板
///
public Transform PanelWarehouseWarrant;
///
/// 打印数据
///
//public PrintWarehouseReceiptCollection printWarehouseReceiptCollection;
///
/// 入库类型
///
public InputField InInTypeWarehouseWarrant;
///
/// 工厂代码/工厂名称
///
public InputField InFactoryCodeNameWarehouseWarrant;
///
/// 移动类型代码/移动类型名称
///
public InputField InTransportationTypeCodeNameWarehouseWarrant;
///
/// 供应商编码/供应商名称
///
public InputField InSupplierCodeNameWarehouseWarrant;
///
/// 订单号
///
public InputField InOrderNumberWarehouseWarrant;
///
/// 凭证输入日期
///
public InputField InVoucherInputDateWarehouseWarrant;
///
/// 合同编号
///
public InputField InContractNumberWarehouseWarrant;
///
/// 物料凭证
///
public InputField InMaterialVoucherWarehouseWarrant;
///
/// 物料编码
///
public InputField InMaterialCodeWarehouseWarrant;
///
/// 物料描述
///
public InputField InMaterialDescriptionWarehouseWarrant;
///
/// 计量单位
///
public InputField InMeasurementUnitWarehouseWarrant;
///
/// 结存数量
///
public InputField InStockQuantityWarehouseWarrant;
///
/// 实际到货数量
///
public InputField InActualArrivalQuantityWarehouseWarrant;
///
/// 单价
///
public InputField InUnitPriceWarehouseWarrant;
///
/// 总价
///
public InputField InTotalPriceWarehouseWarrant;
///
/// 库存地点
///
public InputField InStockLocationCodeWarehouseWarrant;
///
/// 批次号
///
public InputField InBatchNumberWarehouseWarrant;
///
/// 打印日期
///
public InputField InPrintDateWarehouseWarrant;
///
/// 库管员
///
public InputField InStockKeeperWarehouseWarrant;
///
/// 仓库主管
///
public InputField InWarehouseManagerWarehouseWarrant;
///
/// 单据打印
///
public Button btnPrintDocumentsReceipts;
///
/// 打印完成
///
public Transform DocumentPrintingComplete;
#endregion
void Awake()
{
#region 打开入库单
InMaterialVoucherPrintWarehouseReceipt = FindObjectByName("InMaterialVoucherPrintWarehouseReceipt");
InDeliveryOrderPrintWarehouseReceipt = FindObjectByName("InDeliveryOrderPrintWarehouseReceipt");
InFactoryPrintWarehouseReceipt = FindObjectByName("InFactoryPrintWarehouseReceipt");
InStorageLocationPrintWarehouseReceipt = FindObjectByName("InStorageLocationPrintWarehouseReceipt");
InBatchPrintWarehouseReceipt = FindObjectByName("InBatchPrintWarehouseReceipt");
InPostingDatePrintWarehouseReceipt = FindObjectByName("InPostingDatePrintWarehouseReceipt");
btnPrintWarehouseReceipt = FindObjectByName