Ejemplo n.º 1
0
        public void SetDemand(Guid id)
        {
            Budget2.DAL.DataSets.Demand ds = new DAL.DataSets.Demand();
            
            Budget2.DAL.DataSets.DemandTableAdapters.V_Report_DemandTableAdapter bdAdapter = new DAL.DataSets.DemandTableAdapters.V_Report_DemandTableAdapter();
            bdAdapter.Fill(ds.V_Report_Demand, id);
            
            Budget2.DAL.DataSets.DemandTableAdapters.V_Report_DemandMoneyTableAdapter bddAdapter = new DAL.DataSets.DemandTableAdapters.V_Report_DemandMoneyTableAdapter();
            bddAdapter.Fill(ds.V_Report_DemandMoney, id);

            Budget2.DAL.DataSets.DemandTableAdapters.V_Report_DemandAllocationTableAdapter bdaAdapter = new DAL.DataSets.DemandTableAdapters.V_Report_DemandAllocationTableAdapter();
            bdaAdapter.Fill(ds.V_Report_DemandAllocation, id);

            Budget2.DAL.DataSets.DemandTableAdapters.V_Report_DemandTransitionHistoryTableAdapter bdthAdapter = new DAL.DataSets.DemandTableAdapters.V_Report_DemandTransitionHistoryTableAdapter();
            bdthAdapter.Fill(ds.V_Report_DemandTransitionHistory, id);

            Budget2.DAL.DataSets.DemandTableAdapters.V_Report_DemandGoodsTypeTableAdapter bdgtAdapter = new DAL.DataSets.DemandTableAdapters.V_Report_DemandGoodsTypeTableAdapter();
            bdgtAdapter.Fill(ds.V_Report_DemandGoodsType, id);

            this.DataSource = ds;
        }
Ejemplo n.º 2
0
        public void SetDemand(Guid id)
        {
            Budget2.DAL.DataSets.Demand ds = new DAL.DataSets.Demand();

            Budget2.DAL.DataSets.DemandTableAdapters.V_Report_DemandTableAdapter bdAdapter = new DAL.DataSets.DemandTableAdapters.V_Report_DemandTableAdapter();
            bdAdapter.Fill(ds.V_Report_Demand, id);

            Budget2.DAL.DataSets.DemandTableAdapters.V_Report_DemandMoneyTableAdapter bddAdapter = new DAL.DataSets.DemandTableAdapters.V_Report_DemandMoneyTableAdapter();
            bddAdapter.Fill(ds.V_Report_DemandMoney, id);

            Budget2.DAL.DataSets.DemandTableAdapters.V_Report_DemandAllocationTableAdapter bdaAdapter = new DAL.DataSets.DemandTableAdapters.V_Report_DemandAllocationTableAdapter();
            bdaAdapter.Fill(ds.V_Report_DemandAllocation, id);

            Budget2.DAL.DataSets.DemandTableAdapters.V_Report_DemandTransitionHistoryTableAdapter bdthAdapter = new DAL.DataSets.DemandTableAdapters.V_Report_DemandTransitionHistoryTableAdapter();
            bdthAdapter.Fill(ds.V_Report_DemandTransitionHistory, id);

            Budget2.DAL.DataSets.DemandTableAdapters.V_Report_DemandGoodsTypeTableAdapter bdgtAdapter = new DAL.DataSets.DemandTableAdapters.V_Report_DemandGoodsTypeTableAdapter();
            bdgtAdapter.Fill(ds.V_Report_DemandGoodsType, id);

            this.DataSource = ds;
        }