コード例 #1
0
ファイル: DisbursementCotrol.cs プロジェクト: arizarm/Test11
    //GET DISBURSEMENT LIST TO DISPLAY
    public List <DisbursementListItems> GvDisbursementPopulate()
    {
        List <DisbursementListItems> disbursementListItemsList = new List <DisbursementListItems>();

        //get all disbursement data
        List <Disbursement> disbursement = EFBroker_Disbursement.GetAllDisbursementList();

        //get dep detail for each disbursement
        foreach (Disbursement d in disbursement)
        {
            //Set DisbursementListItem Details
            DisbursementListItems disbursementListItems = CreateDisbursementListItem(d);
            //add display data to list
            disbursementListItemsList.Add(disbursementListItems);
        }
        return(disbursementListItemsList);
    }