Beispiel #1
0
        public expenseReportsPopup(client.projectTravelAndExpenseEntry.Form1 inParentForm, String inEmployee, String inDocNbr)
        {
            InitializeComponent();
            parentForm = inParentForm;

            ctDynamicsSL.project.timeAndExpense.input.projectTravelAndExpenseEntry.PJEXPHDR[] myTimecards = parentForm.myPTEService.getExpenseReportsByID(inEmployee, inDocNbr);
            this.gvTimecards.AutoGenerateColumns = true;
            this.gvTimecards.DataSource          = myTimecards;
        }
        public employeesPopup(client.projectTravelAndExpenseEntry.Form1 inParentForm, String inEmployeeID)
        {
            InitializeComponent();
            parentForm = inParentForm;

            ctDynamicsSL.project.timeAndExpense.input.projectTravelAndExpenseEntry.PJEMPLOY[] myEmployees = parentForm.myPTEService.getEmployeesByID(inEmployeeID);
            this.gvEmployees.AutoGenerateColumns = true;
            this.gvEmployees.DataSource          = myEmployees;
        }