public KPListDetail(string ID, KPListItem _Item, OleExec sfcdb) { ListItem = _Item; T_C_KP_List_Item_Detail T = new T_C_KP_List_Item_Detail(sfcdb, MESDataObject.DB_TYPE_ENUM.Oracle); Row_C_KP_List_Item_Detail R = (Row_C_KP_List_Item_Detail)T.GetObjByID(ID, sfcdb); if (R != null) { value = R.GetDataObject(); } else { throw new Exception($@"查詢不到ID為:{ID} KP_List_Item_Detail"); } }
public KPListBase(string ID, OleExec sfcdb) { T_C_KP_LIST T = new T_C_KP_LIST(sfcdb, MESDataObject.DB_TYPE_ENUM.Oracle); Row_C_KP_LIST R = (Row_C_KP_LIST)T.GetObjByID(ID, sfcdb); if (R != null) { value = R.GetDataObject(); } else { throw new Exception($@"查詢不到ID為:{ID} 的KP_LIST"); } List <string> itemID = T.GetItemID(ID, sfcdb); for (int i = 0; i < itemID.Count; i++) { KPListItem I = new KPListItem(itemID[i], this, sfcdb); Item.Add(I); } }