public void OnShowPaymentDetailsByDate()
        {
            storeData = new storeDataSet();
            EclipsePOS.WPF.SystemManager.Data.storeDataSetTableAdapters.retail_storeTableAdapter storeTa = new EclipsePOS.WPF.SystemManager.Data.storeDataSetTableAdapters.retail_storeTableAdapter();
            storeTa.Fill(storeData.retail_store);
            View.SetRetailStoreFromDataContext(storeData.retail_store);
            View.SetRetailStoreToDataContext(storeData.retail_store);

            organizationData = new EclipsePOS.WPF.SystemManager.Data.organizationLookupDataSet();
            EclipsePOS.WPF.SystemManager.Data.organizationLookupDataSetTableAdapters.organizationTableAdapter organizationTa = new EclipsePOS.WPF.SystemManager.Data.organizationLookupDataSetTableAdapters.organizationTableAdapter();
            organizationTa.Fill(organizationData.organization);
            View.SetOrganizationFromDataContext(organizationData.organization);

            View.SetOrganizationToDataContext(organizationData.organization);
            View.SetRunBtnDataContext(RunCommand);
        }
예제 #2
0
        public void OnShowSalesPersonView()
        {
            storeData = new storeDataSet();
            EclipsePOS.WPF.SystemManager.Data.storeDataSetTableAdapters.retail_storeTableAdapter storeTa = new EclipsePOS.WPF.SystemManager.Data.storeDataSetTableAdapters.retail_storeTableAdapter();
            storeTa.Fill(storeData.retail_store);
            View.SetRetailStoreFromDataContext(storeData.retail_store);
            View.SetRetailStoreToDataContext(storeData.retail_store);

            organizationData = new EclipsePOS.WPF.SystemManager.Data.organizationLookupDataSet();
            EclipsePOS.WPF.SystemManager.Data.organizationLookupDataSetTableAdapters.organizationTableAdapter organizationTa = new EclipsePOS.WPF.SystemManager.Data.organizationLookupDataSetTableAdapters.organizationTableAdapter();
            organizationTa.Fill(organizationData.organization);
            View.SetOrganizationFromDataContext(organizationData.organization);
            View.SetOrganizationToDataContext(organizationData.organization);

            emplyeeData = new employeeDataSet();
            EclipsePOS.WPF.SystemManager.Data.employeeDataSetTableAdapters.employeeTableAdapter employeeTa = new EclipsePOS.WPF.SystemManager.Data.employeeDataSetTableAdapters.employeeTableAdapter();
            employeeTa.Fill(emplyeeData.employee);
            View.SetEmployeeFromDataContext(emplyeeData.employee);
            View.SetEmployeeToDataContext(emplyeeData.employee);

            View.SetRunBtnDataContext(RunCommand);
            View.SetSaveBtnDataContext(SaveCommand);
        }