Beispiel #1
0
    public void show(RecordBackObj obj)
    {
        gameObject.SetActive(true);
        ProcessGameObjs(0);
        dataObjs.Clear();
        _RecordBackObj = obj;
        shaixuanpanel.gameObject.SetActive(false); //隐藏筛选


        string[] labelstrs = obj.chData.Split('~');
        int      col       = _RecordBackObj.byColumn;

        int length = labelstrs.Length / col;

        for (int i = 0; i < length; ++i)
        {
            //Debug.Log (length+"  "+i);
            RecordLookItemObj dataObj = new RecordLookItemObj();
            for (int j = 0; j < col; j++)
            {
                //Debug.Log (col+"  "+i);
                dataObj.data.Add(labelstrs[col * i + j]);
            }

            dataObjs.Add(dataObj);
        }

        if (length > 0)
        {
            norecord.SetActive(false);
        }
        else
        {
            norecord.SetActive(true);
        }

        ProcessGameObjs(dataObjs.Count);

        for (int i = 0; i < itemGameObjs.Count; ++i)
        {
            ZhuanZhangJiLuItem script = itemGameObjs[i].GetComponent <ZhuanZhangJiLuItem>();
            script.FillData(dataObjs[i]);
        }


        grid.transform.parent.GetComponent <UIScrollView>().ResetPosition();

        int totalRecord = _RecordBackObj.iCountRecord;
        int pageSize    = (int)_RecordBackObj.byPages;
        int totalPages  = totalRecord % pageSize > 0 ? 1 + (totalRecord / pageSize) : 0 + (totalRecord / pageSize);

        if (totalPages == 0)
        {
            totalPages = 1;
        }
        pageLabel.text = string.Format("第{0}页 共{1}页", _RecordBackObj.iCuePage, totalPages);
    }
Beispiel #2
0
 public void FillData(RecordLookItemObj obj)
 {
     LiuShuiHaoLabel.text        = obj.data[0];
     TiXianShiJianLabel.text     = obj.data[1];
     ShouKuanKaiHuHangLabel.text = obj.data[2];
     TiXianJinELabel.text        = obj.data[3];
     TiXianRenLabel.text         = obj.data[4];
     TiXianStatusLabel.text      = obj.data[5];
     TiXianDescLabel.text        = obj.data[6];
 }
Beispiel #3
0
 public void FillData(RecordLookItemObj obj)
 {
     YongHuMingLabel.text    = obj.data[0];
     FangJianMingLabel.text  = obj.data[1];
     KaiShiJinELabel.text    = obj.data[2];
     ShuYingLabel.text       = obj.data[3];
     ShengYuJinELabel.text   = obj.data[4];
     YouXiShiChangLabel.text = obj.data[5];
     JieShuShiJianLabel.text = obj.data[6];
 }
Beispiel #4
0
 public void FillData(RecordLookItemObj obj)
 {
     YongHuMingLabel.text     = obj.data[0];
     OrderIdLabel.text        = obj.data[1];
     YingKuiLabel.text        = obj.data[2];
     CaiPiaoYuELabel.text     = obj.data[3];
     YingKuiShiJianLabel.text = obj.data[4];
     LeiXingLabel.text        = obj.data[5];
     GaiYaoLabel.text         = obj.data[6];
 }
Beispiel #5
0
    public void FillData(RecordLookItemObj obj)
    {
        if (uint.Parse(obj.data[0]) == XiaJiYingKuiTongjiPanel.GetLastId())
        {
            chakanxiajiBtn.SetActive(false);
        }
        else
        {
            chakanxiajiBtn.SetActive(true);
        }

        for (int i = 0; i < Labels.Length; ++i)
        {
            Labels[i].text = obj.data[i];
        }
    }