Exemplo n.º 1
0
        static ViewDesignBid()
        {
            dsNBD = new NBDDataSet();
            PROJECTTableAdapter        daProject       = new PROJECTTableAdapter();
            TASKTableAdapter           daTask          = new TASKTableAdapter();
            WORKER_TYPETableAdapter    daWorkerType    = new WORKER_TYPETableAdapter();
            MATERIALTableAdapter       daMaterial      = new MATERIALTableAdapter();
            INVENTORYTableAdapter      daInventory     = new INVENTORYTableAdapter();
            MATERIAL_REQTableAdapter   daMaterialReq   = new MATERIAL_REQTableAdapter();
            CLIENTTableAdapter         daClient        = new CLIENTTableAdapter();
            LABOUR_SUMMARYTableAdapter daLabourSummary = new LABOUR_SUMMARYTableAdapter();

            try
            {
                daProject.Fill(dsNBD.PROJECT);
                daTask.Fill(dsNBD.TASK);
                daWorkerType.Fill(dsNBD.WORKER_TYPE);
                daMaterial.Fill(dsNBD.MATERIAL);
                daInventory.Fill(dsNBD.INVENTORY);
                daMaterialReq.Fill(dsNBD.MATERIAL_REQ);
                daClient.Fill(dsNBD.CLIENT);
                daLabourSummary.Fill(dsNBD.LABOUR_SUMMARY);
            }
            catch { }
        }
Exemplo n.º 2
0
        static ProductionPlanApproval()
        {
            dsNBD = new NBDDataSet();
            PROJECTTableAdapter     daProject    = new PROJECTTableAdapter();
            TASKTableAdapter        daTask       = new TASKTableAdapter();
            WORKER_TYPETableAdapter daWorkerType = new WORKER_TYPETableAdapter();
            MATERIALTableAdapter    daMaterial   = new MATERIALTableAdapter();

            try
            {
                daProject.Fill(dsNBD.PROJECT);
                daTask.Fill(dsNBD.TASK);
                daWorkerType.Fill(dsNBD.WORKER_TYPE);
                daMaterial.Fill(dsNBD.MATERIAL);
            }
            catch { }
        }
Exemplo n.º 3
0
        static DesignBid()
        {
            //load data at the beginning of the session
            dsNBD = new NBDDataSet();
            CLIENTTableAdapter       daClient   = new CLIENTTableAdapter();
            PROJECTTableAdapter      daProject  = new PROJECTTableAdapter();
            MATERIAL_REQTableAdapter daMatReq   = new MATERIAL_REQTableAdapter();
            MATERIALTableAdapter     daMaterial = new MATERIALTableAdapter();

            try
            {
                daClient.Fill(dsNBD.CLIENT);
                daProject.Fill(dsNBD.PROJECT);
                daMatReq.Fill(dsNBD.MATERIAL_REQ);
                daMaterial.Fill(dsNBD.MATERIAL);
            }
            catch { }
        }
        static ProductionPlan()
        {
            // Set up data adapters/data set
            dsNBD = new NBDDataSet();
            PROJECTTableAdapter      daProject     = new PROJECTTableAdapter();
            TASKTableAdapter         daTask        = new TASKTableAdapter();
            WORKER_TYPETableAdapter  daWorkerType  = new WORKER_TYPETableAdapter();
            MATERIALTableAdapter     daMaterial    = new MATERIALTableAdapter();
            INVENTORYTableAdapter    daInventory   = new INVENTORYTableAdapter();
            MATERIAL_REQTableAdapter daMaterialReq = new MATERIAL_REQTableAdapter();

            try
            {
                daProject.Fill(dsNBD.PROJECT);
                daTask.Fill(dsNBD.TASK);
                daWorkerType.Fill(dsNBD.WORKER_TYPE);
                daMaterial.Fill(dsNBD.MATERIAL);
                daInventory.Fill(dsNBD.INVENTORY);
                daMaterialReq.Fill(dsNBD.MATERIAL_REQ);
            }
            catch { }
        }