383 lines
16 KiB
C#
383 lines
16 KiB
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.UI ;
|
|
/// <summary>
|
|
/// 描述一个数据操作页面
|
|
/// </summary>
|
|
public class InfoPanel : MonoBehaviour
|
|
{
|
|
public bool ifShowAtStart;
|
|
//对应的数据
|
|
//[System.NonSerialized]
|
|
public WorkInfoTeam wInfoTeam;
|
|
|
|
//抬头数据-维护货物交接单
|
|
[Header("到货交接单号")]
|
|
public InputField IP_DHJJDH;
|
|
[Header("合同编号")]
|
|
public InputField IP_HTBH;
|
|
[Header("合同数量")]
|
|
public InputField IP_HTSL;
|
|
[Header("发货数量")]
|
|
public InputField IP_FHSL;
|
|
[Header("补库通知单编号")]
|
|
public InputField IP_BKTZDBH;
|
|
[Header("供应商名称")]
|
|
public InputField IP_GYSMC;
|
|
[Header("实际交货期")]
|
|
public InputField IP_SJJHQ;
|
|
[Header("供应商联系人")]
|
|
public InputField IP_Person_GYSLXR;
|
|
[Header("承运人")]
|
|
public InputField IP_Person_CYR;
|
|
[Header("收货人")]
|
|
public InputField IP_Person_SHR;
|
|
[Header("发货方")]
|
|
public InputField IP_FHF;
|
|
[Header("收货方")]
|
|
public InputField IP_SHF;
|
|
[Header("发货方时间")]
|
|
public InputField IP_FHFSJ;
|
|
[Header("收货方时间")]
|
|
public InputField IP_SHFSJ;
|
|
[Header("延迟交货原因")]
|
|
public InputField IP_YCJHYY;
|
|
[Header("项目编号")]
|
|
public InputField IP_XMBH;
|
|
[Header("项目单位")]
|
|
public InputField IP_XMDW;
|
|
[Header("项目名称")]
|
|
public InputField IP_XMMC;
|
|
//抬头数据-维护到货验收单
|
|
[Header("实际验收日期")]
|
|
public InputField IP_Time_SJYSRQ;//实际验收日期
|
|
[Header("过账日期")]
|
|
public InputField IP_Time_GZRQ;//过账日期
|
|
[Header("签字_物资供应公司")]
|
|
public InputField IP_Sign_WZGYGS;
|
|
[Header("签字时间")]
|
|
public InputField IP_Time_WZGYGS;//签字
|
|
[Header("签字_项目单位接收人")]
|
|
public InputField IP_Sign_XMDWJSR;
|
|
[Header("签字时间")]
|
|
public InputField IP_Time_XMDWJSR;//签字
|
|
[Header("签字_供应商交付人")]
|
|
public InputField IP_Sign_GYSJFR;
|
|
[Header("签字时间")]
|
|
public InputField IP_Time_GYSJFR;//签字
|
|
[Header("备注")]
|
|
public InputField IP_Remark;
|
|
[Header("领料单号")]
|
|
public InputField IP_LLDH;
|
|
|
|
//明细数据-维护货物交接单
|
|
[Space]
|
|
[Header("供应计划编号")]
|
|
public InputField IP_GYJHBH;
|
|
[Header("物料凭证编号")]
|
|
public InputField IP_WLPZBH;
|
|
[Header("物料凭证中的项目")]
|
|
public InputField IP_WLPZZDXM;
|
|
[Header("物料凭证年度")]
|
|
public InputField IP_WLPZND;
|
|
[Header("公司代码")]
|
|
public InputField IP_GSDM;
|
|
[Header("工厂")]
|
|
public InputField IP_GC;
|
|
[Header("工厂描述")]
|
|
public InputField IP_GCMS;
|
|
[Header("库存地点")]
|
|
public InputField IP_KCDD;
|
|
[Header("库存地点描述")]
|
|
public InputField IP_KCDDMS;
|
|
[Header("交货地点")]
|
|
public InputField IP_JHDD;
|
|
[Header("库存数量")]
|
|
public InputField IP_KCSL;
|
|
[Header("库存类型")]
|
|
public InputField IP_KCLX;
|
|
[Header("入库日期")]
|
|
public InputField IP_RKRQ;
|
|
//明细数据-维护到货验收单
|
|
[Header("物料编码")]
|
|
public InputField IP_WLBH;
|
|
[Header("物料描述")]
|
|
public InputField IP_WLMS;
|
|
[Header("实际到货")]
|
|
public InputField IP_SJDH;
|
|
[Header("剩余数量")]
|
|
public InputField IP_SYSL;
|
|
[Header("换货接收")]
|
|
public InputField IP_HHYS;
|
|
[Header("凭证数量")]
|
|
public InputField IP_PZSL;
|
|
[Header("单位")]
|
|
public InputField IP_DW;
|
|
[Header("移")]
|
|
public InputField IP_Y;
|
|
[Header("物料凭证")]
|
|
public InputField IP_WLPZ;
|
|
[Header("物料凭证_过账")]
|
|
public InputField IP_WLPZ_PASS;
|
|
[Header("物料凭证_过账")]
|
|
public Text Text_WLPZ_PASS;
|
|
[Header("采购订单号")]
|
|
public InputField IP_CGDDH;
|
|
[Header("批次")]
|
|
public InputField IP_PC;
|
|
[Header("物资身份码")]
|
|
public Text[] Text_WZSFM;
|
|
[Header("物资身份码选择")]
|
|
public Toggle[] Tog_WZSFM;
|
|
//转移过账类
|
|
[Header("移")]
|
|
public Text Text_Move;
|
|
[Header("物料短文本")]
|
|
public InputField IP_WLDWB;
|
|
/////////////////////仓库上下架管理
|
|
[Header("仓库号")]
|
|
public InputField IP_CKH;
|
|
[Header("装运类型描述")]
|
|
public InputField IP_ZYLXMS;
|
|
[Header("源发地仓位")]
|
|
public InputField IP_YFDCW;
|
|
[Header("目标仓位")]
|
|
public InputField IP_MBCW;
|
|
[Header("上下架数量")]
|
|
public InputField IP_SXJSL;
|
|
[Header("未清数量")]
|
|
public InputField IP_WQSL;
|
|
[Header("转储单")]
|
|
public InputField IP_ZCD;
|
|
/////////////////////参照借料申请单进行...
|
|
[Header("借料申请单号")]
|
|
public InputField IP_JLSQDH;
|
|
[Header("借料工厂")]
|
|
public InputField IP_JLGC;
|
|
[Header("借料人")]
|
|
public InputField IP_JLR;
|
|
[Header("借料部门")]
|
|
public InputField IP_JLBM;
|
|
[Header("借料部门描述")]
|
|
public InputField IP_JLBMMS;
|
|
[Header("借料类型")]
|
|
public InputField IP_JLLX;
|
|
[Header("审批状态")]
|
|
public InputField IP_SPZT;
|
|
[Header("借用物资")]
|
|
public InputField IP_JYWZ;
|
|
[Header("物资唯一码")]
|
|
public InputField IP_WZWYM;
|
|
[Header("本次归还数量")]
|
|
public InputField IP_BCGHSL;
|
|
[Header("申请借用数量")]
|
|
public InputField IP_SQJYSL;
|
|
[Header("预计归还或发料日期")]
|
|
public InputField IP_YJGHHFLRQ;
|
|
[Header("已借数量")]
|
|
public InputField IP_YJSL;
|
|
[Header("已归还或发料数量")]
|
|
public InputField IP_YGHHFLSL;
|
|
[Header("借出库存地")]
|
|
public InputField IP_JCKCD;
|
|
[Header("借入库存地")]
|
|
public InputField IP_JRKCD;
|
|
[Header("借料物资状态")]
|
|
public InputField IP_JLWZZT;
|
|
[Header("借出凭证")]
|
|
public InputField IP_JCPZ;
|
|
[Header("借出凭证年度")]
|
|
public InputField IP_JCPZND;
|
|
[Header("借料说明")]
|
|
public InputField IP_JLSM;
|
|
|
|
|
|
[Header("返回信息_上下架")]
|
|
public InputField IP_FHXX_SXJ;
|
|
[Header("返回信息_借料")]
|
|
public InputField IP_FHXX_JL;
|
|
[Header("预留")]
|
|
public InputField IP_YL;
|
|
[Header("状态")]
|
|
public InputField IP_ZT;
|
|
[Header("申请数量")]
|
|
public InputField IP_SQSL;
|
|
[Header("已发数量")]
|
|
public InputField IP_YFSL;
|
|
[Header("会计凭证")]
|
|
public InputField IP_KJPZ;
|
|
[Header("单价")]
|
|
public InputField IP_DJ;
|
|
[Header("总价")]
|
|
public InputField IP_ZJ;
|
|
//验证
|
|
[Space]
|
|
[Header("详细数据显示需要验证-交接单号")]
|
|
public bool ifCheckJJDH;
|
|
[Header("详细数据显示需要验证-物料凭证号")]
|
|
public bool ifCheckWLPZ;
|
|
[Header("详细数据显示需要验证-借料申请单号")]
|
|
public bool ifCheckJLSQDH;
|
|
[Header("需要验证输入框")]
|
|
public InputField IP_Check;
|
|
|
|
void Start()
|
|
{
|
|
if (ifShowAtStart)
|
|
ShowInfo();
|
|
}
|
|
//显示列表信息
|
|
public GameObject Panel_Detail;//详细
|
|
int i;
|
|
public void ShowInfo()
|
|
{
|
|
if (ifCheckJJDH)//详细数据显示需要验证-交接单号
|
|
{
|
|
if (IP_Check.text.ToUpper() == wInfoTeam.wInfo.DHJJDH)
|
|
Show();
|
|
}
|
|
else if (ifCheckWLPZ)//详细数据显示需要验证-物料凭证号
|
|
{
|
|
Debug.Log("验证物料凭证单号" + IP_Check.text.ToUpper() + "/" + wInfoTeam.wInfo.WLPZ_PASS);
|
|
if (IP_Check.text.ToUpper() == wInfoTeam.wInfo.WLPZ_PASS)
|
|
{
|
|
Debug.Log("符合");
|
|
Show();
|
|
}
|
|
}
|
|
else if (ifCheckJLSQDH)//详细数据显示需要验证-借料申请单号
|
|
{
|
|
Debug.Log("验证物料凭证单号");
|
|
if (IP_Check.text.ToUpper() == wInfoTeam.wInfo.JLSQDH)
|
|
{
|
|
Debug.Log("符合");
|
|
Show();
|
|
}
|
|
}
|
|
else
|
|
Show();
|
|
|
|
}
|
|
void Show()
|
|
{
|
|
gameObject.SetActive(true);
|
|
if (Panel_Detail != null)
|
|
Panel_Detail.SetActive(true);
|
|
if (IP_DHJJDH != null) IP_DHJJDH.text = wInfoTeam.wInfo.DHJJDH;
|
|
if (IP_HTBH != null) IP_HTBH.text = wInfoTeam.wInfo.HTBH;
|
|
if (IP_HTSL != null) IP_HTSL.text = wInfoTeam.wInfo.HTSL;
|
|
if (IP_FHSL != null) IP_FHSL.text = wInfoTeam.wInfo.FHSL;
|
|
if (IP_BKTZDBH != null) IP_BKTZDBH.text = wInfoTeam.wInfo.BKTZDBH;
|
|
if (IP_GYSMC != null) IP_GYSMC.text = wInfoTeam.wInfo.GYSMC;
|
|
if (IP_SJJHQ != null) IP_SJJHQ.text = wInfoTeam.wInfo.Time_SJJHQ;
|
|
if (IP_Person_GYSLXR != null) IP_Person_GYSLXR.text = wInfoTeam.wInfo.GYSLXR;
|
|
if (IP_Person_CYR != null) IP_Person_CYR.text = wInfoTeam.wInfo.CYR;
|
|
if (IP_Person_SHR != null) IP_Person_SHR.text = wInfoTeam.wInfo.SHR;
|
|
if (IP_FHF != null) IP_FHF.text = wInfoTeam.wInfo.FHF;
|
|
if (IP_SHF != null) IP_SHF.text = wInfoTeam.wInfo.SHF;
|
|
if (IP_FHFSJ != null) IP_FHFSJ.text = wInfoTeam.wInfo.Time_FHFSJ;
|
|
if (IP_SHFSJ != null) IP_SHFSJ.text = wInfoTeam.wInfo.Time_SHFSJ;
|
|
if (IP_YCJHYY != null) IP_YCJHYY.text = wInfoTeam.wInfo.YCJHYY;
|
|
if (IP_XMBH != null) IP_XMBH.text = wInfoTeam.wInfo.XMBH;
|
|
if (IP_XMDW != null) IP_XMDW.text = wInfoTeam.wInfo.XMDW;
|
|
if (IP_XMMC != null) IP_XMMC.text = wInfoTeam.wInfo.XMMC;
|
|
if (IP_GYJHBH != null) IP_GYJHBH.text = wInfoTeam.wInfo.GYJHBH;
|
|
if (IP_WLPZBH != null) IP_WLPZBH.text = wInfoTeam.wInfo.WLPZBH;
|
|
if (IP_WLPZZDXM != null) IP_WLPZZDXM.text = wInfoTeam.wInfo.WLPZZDXM;
|
|
if (IP_WLPZND != null) IP_WLPZND.text = wInfoTeam.wInfo.WLPZND;
|
|
if (IP_GSDM != null) IP_GSDM.text = wInfoTeam.wInfo.GSDM;
|
|
if (IP_GC != null) IP_GC.text = wInfoTeam.wInfo.GC;
|
|
if (IP_KCDD != null) IP_KCDD.text = wInfoTeam.wInfo.KCDD;
|
|
if (IP_KCSL != null) IP_KCSL.text = wInfoTeam.wInfo.KCSL;
|
|
if (IP_KCLX != null) IP_KCLX.text = wInfoTeam.wInfo.KCLX;
|
|
if (IP_GCMS != null) IP_GCMS.text = wInfoTeam.wInfo.GCMS;
|
|
if (IP_KCDDMS != null)IP_KCDDMS.text = wInfoTeam.wInfo.KCDDMS;
|
|
if (IP_JHDD != null) IP_JHDD.text = wInfoTeam.wInfo.JHDD;
|
|
if (IP_RKRQ != null) IP_RKRQ.text = wInfoTeam.wInfo.RKRQ;
|
|
/////////////////////------------------------------------维护到货验收单--------------------/////////////
|
|
if (IP_Time_SJYSRQ != null) IP_Time_SJYSRQ.text = wInfoTeam.wInfo.Time_SJYSRQ;
|
|
//if (IP_Time_GZRQ != null) IP_Time_GZRQ.text = wInfoTeam.wInfo.Time_GZRQ;
|
|
if (IP_Sign_WZGYGS != null) IP_Sign_WZGYGS.text = wInfoTeam.wInfo.WZGYGS;
|
|
//if (IP_Time_WZGYGS != null) IP_Time_WZGYGS.text = wInfoTeam.wInfo.WZGYGS;
|
|
if (IP_Sign_XMDWJSR != null) IP_Sign_XMDWJSR.text = wInfoTeam.wInfo.XMDWJSR;
|
|
//if (IP_Time_XMDWJSR != null) IP_Time_XMDWJSR.text = wInfoTeam.wInfo.Time_XMDWJSR;
|
|
if (IP_Sign_GYSJFR != null) IP_Sign_GYSJFR.text = wInfoTeam.wInfo.GYSJFR;
|
|
//if (IP_Time_GYSJFR != null) IP_Time_GYSJFR.text = wInfoTeam.wInfo.Time_GYSJFR;
|
|
if (IP_Remark != null) IP_Remark.text = wInfoTeam.wInfo.Remark;
|
|
if (IP_LLDH != null) IP_LLDH.text = wInfoTeam.wInfo.LLDH;
|
|
/////////////////////------------------------------------行项目--------------------/////////////
|
|
if (IP_WLBH != null) IP_WLBH.text = wInfoTeam.wInfo.WLBH;
|
|
if (IP_WLMS != null) IP_WLMS.text = wInfoTeam.wInfo.WLMS;
|
|
if (IP_SJDH != null) IP_SJDH.text = wInfoTeam.wInfo.SJDH;
|
|
if (IP_SYSL != null) IP_SYSL.text = wInfoTeam.wInfo.SYSL;
|
|
if (IP_HHYS != null) IP_HHYS.text = wInfoTeam.wInfo.HHYS;
|
|
if (IP_PZSL != null) IP_PZSL.text = wInfoTeam.wInfo.PZSL;
|
|
if (IP_DW != null) IP_DW.text = wInfoTeam.wInfo.DW;
|
|
if (IP_Y != null) IP_Y.text = wInfoTeam.wInfo.Y;
|
|
if (IP_WLPZ != null) IP_WLPZ.text = wInfoTeam.wInfo.WLPZ;
|
|
if (IP_CGDDH != null) IP_CGDDH.text = wInfoTeam.wInfo.CGDDH;
|
|
if (IP_PC != null) IP_PC.text = wInfoTeam.wInfo.PC;
|
|
/////////////////////------------------------------------物资身份码--------------------/////////////
|
|
if (Text_WZSFM.Length > 0)
|
|
{
|
|
//for (i = 0; i < wInfoTeam.wInfo.WZSFM.Length; i++)
|
|
//{
|
|
|
|
// if (Text_WZSFM[i] != null)
|
|
// Text_WZSFM[i].text = wInfoTeam.wInfo.WZSFM[i];
|
|
// if (Tog_WZSFM[i] != null)
|
|
// Tog_WZSFM[i].isOn = false;
|
|
//}
|
|
}
|
|
/////////////////////------------------------------------过账--------------------/////////////
|
|
if (IP_WLPZ_PASS != null) IP_WLPZ_PASS.text = wInfoTeam.wInfo.WLPZ_PASS;
|
|
if (Text_WLPZ_PASS != null) Text_WLPZ_PASS.text = wInfoTeam.wInfo.WLPZ_PASS;
|
|
/////////////////////------------------------------------仓库上下架管理--------------------/////////////
|
|
if (IP_CKH != null) IP_CKH.text = wInfoTeam.wInfo.CKH;
|
|
if (IP_ZYLXMS != null) IP_ZYLXMS.text = wInfoTeam.wInfo.ZYLXMS;
|
|
if (IP_YFDCW != null) IP_YFDCW.text = wInfoTeam.wInfo.YFDCW;
|
|
if (IP_MBCW != null) IP_MBCW.text = wInfoTeam.wInfo.MBCW;
|
|
if (IP_SXJSL != null) IP_SXJSL.text = wInfoTeam.wInfo.SXJSL;
|
|
if (IP_WQSL != null) IP_WQSL.text = wInfoTeam.wInfo.WQSL;
|
|
if (IP_ZCD != null) IP_ZCD.text = wInfoTeam.wInfo.ZCD;
|
|
/////////////////////------------------------------------参照借料申请单进行...--------------------/////////////
|
|
if (IP_JLSQDH != null) IP_JLSQDH.text = wInfoTeam.wInfo.JLSQDH;
|
|
if (IP_JLGC != null) IP_JLGC.text = wInfoTeam.wInfo.JLGC;
|
|
if (IP_JLR != null) IP_JLR.text = wInfoTeam.wInfo.JLR;
|
|
if (IP_JLBM != null) IP_JLBM.text = wInfoTeam.wInfo.JLBM;
|
|
if (IP_JLBMMS != null) IP_JLBMMS.text = wInfoTeam.wInfo.JLBMMS;
|
|
if (IP_JLLX != null) IP_JLLX.text = wInfoTeam.wInfo.JLLX;
|
|
if (IP_SPZT != null) IP_SPZT.text = wInfoTeam.wInfo.SPZT;
|
|
if (IP_JYWZ != null) IP_JYWZ.text = wInfoTeam.wInfo.JYWZ;
|
|
if (IP_WZWYM != null) IP_WZWYM.text = wInfoTeam.wInfo.WZWYM;
|
|
if (IP_BCGHSL != null) IP_BCGHSL.text = wInfoTeam.wInfo.BCGHSL;
|
|
if (IP_SQJYSL != null) IP_SQJYSL.text = wInfoTeam.wInfo.SQJYSL;
|
|
if (IP_YJGHHFLRQ != null) IP_YJGHHFLRQ.text = wInfoTeam.wInfo.YJGHHFLRQ;
|
|
if (IP_YJSL != null) IP_YJSL.text = wInfoTeam.wInfo.YJSL;
|
|
if (IP_YGHHFLSL != null) IP_YGHHFLSL.text = wInfoTeam.wInfo.YGHHFLSL;
|
|
if (IP_JCKCD != null) IP_JCKCD.text = wInfoTeam.wInfo.JCKCD;
|
|
if (IP_JRKCD != null) IP_JRKCD.text = wInfoTeam.wInfo.JRKCD;
|
|
if (IP_JLWZZT != null) IP_JLWZZT.text = wInfoTeam.wInfo.JLWZZT;
|
|
if (IP_JCPZ != null) IP_JCPZ.text = wInfoTeam.wInfo.JCPZ;
|
|
if (IP_JCPZND != null) IP_JCPZND.text = wInfoTeam.wInfo.JCPZND;
|
|
if (IP_JLSM != null) IP_JLSM.text = wInfoTeam.wInfo.JLSM;
|
|
/////////////////////------------------------------------返回信息--------------------/////////////
|
|
if (IP_FHXX_SXJ != null) IP_FHXX_SXJ.text = wInfoTeam.wInfo.FHXX_SXJ;
|
|
if (IP_FHXX_JL != null) IP_FHXX_JL.text = wInfoTeam.wInfo.FHXX_JL;
|
|
if (IP_YL != null) IP_YL.text = wInfoTeam.wInfo.YL;
|
|
if (IP_ZT != null) IP_ZT.text = wInfoTeam.wInfo.ZT;
|
|
if (IP_SQSL != null) IP_SQSL.text = wInfoTeam.wInfo.SQSL;
|
|
if (IP_YFSL != null) IP_YFSL.text = wInfoTeam.wInfo.YFSL;
|
|
if (IP_KJPZ != null) IP_KJPZ.text = wInfoTeam.wInfo.KJPZ;
|
|
if (IP_DJ != null) IP_DJ.text = wInfoTeam.wInfo.DJ;
|
|
if (IP_ZJ != null) IP_ZJ.text = wInfoTeam.wInfo.ZJ;
|
|
}
|
|
//保存
|
|
public GameObject Panel_SaveSuccess;//保存成功
|
|
public void SaveInfo()
|
|
{
|
|
Panel_SaveSuccess.SetActive(true);
|
|
}
|
|
}
|