Inheritance: EntityBase
Exemplo n.º 1
0
    public void InitPageParameter()
    {
        IList<InspectItem> inspectItemList = new List<InspectItem>();
        foreach (string fgItemCode in this.InspectItemDic.Keys)
        {
            string[] fgItem = fgItemCode.Split('-');
            string itemCode = fgItem[0];
            string fgCode = fgItem[1];
            string defectClassification = fgItem[2];
             string defectFactor = fgItem[3];
            InspectItem inspectItem = new InspectItem();
            inspectItem.IsBlank = false;
            inspectItem.InspectQty = InspectItemDic[fgItemCode];
            inspectItem.Item = TheItemMgr.LoadItem(itemCode);
            inspectItem.FinishGoods = TheItemMgr.LoadItem(fgCode);
            inspectItem.DefectClassification = defectClassification;
            inspectItem.DefectFactor = defectFactor;
            inspectItemList.Add(inspectItem);
        }

        //新行
        InspectItem blankInspectItem = new InspectItem();
        blankInspectItem.IsBlank = true;
        inspectItemList.Add(blankInspectItem);

        this.GV_List.DataSource = inspectItemList;
        this.GV_List.DataBind();
    }
Exemplo n.º 2
0
    public void InitPageParameter()
    {
        IList<InspectItem> inspectItemList = new List<InspectItem>();
        foreach (string itemCode in this.InspectItemDic.Keys)
        {
            InspectItem inspectItem = new InspectItem();
            inspectItem.IsBlank = false;
            inspectItem.InspectQty = InspectItemDic[itemCode];
            inspectItem.Item = TheItemMgr.LoadItem(itemCode);
            inspectItemList.Add(inspectItem);
        }

        //新行
        InspectItem blankInspectItem = new InspectItem();
        blankInspectItem.IsBlank = true;
        inspectItemList.Add(blankInspectItem);

        this.GV_List.DataSource = inspectItemList;
        this.GV_List.DataBind();
    }