Exemple #1
0
        public productForm(Context context, Product product)
        {
            this.context = context;

            InitializeComponent();
            this.product = product;
            populateFields();
        }
Exemple #2
0
 public Printer(Context context, Form parent)
 {
     this.context = context;
     this.parent = parent;
     webbrowser = new WebBrowser();
     webbrowser.Parent = this.parent;
     SetBrowserPrintSettings();
 }
        public customerForm(Context context, Customer customer)
        {
            this.context = context;

            InitializeComponent();
            this.customer = customer;
            populateFields();
        }
        public customerForm(Context context)
        {
            this.context = context;

            InitializeComponent();
            customer = new Customer();
            populateFields();
        }
Exemple #5
0
        public userForm(Context context)
        {
            this.context = context;

            InitializeComponent();
            user = new User();
            populateFields();
        }
Exemple #6
0
        public userForm(Context context, User user)
        {
            this.context = context;

            InitializeComponent();
            this.user = user;
            populateFields();
        }
Exemple #7
0
        public usersForm(Context context)
        {
            this.context = context;

            InitializeComponent();

            this.Text = this.Text.Replace("[*companyname*]", Properties.Settings.Default.companyname);
        }
Exemple #8
0
        public productForm(Context context)
        {
            this.context = context;

            InitializeComponent();
            product = new Product();
            populateFields();
        }
        public statementForm(Context context, Statement statement)
        {
            this.context = context;
            this.statement = statement;

            InitializeComponent();
            populateFields();
        }
        public statementForm(Context context, Customer customer, DateTime startdate, DateTime enddate)
        {
            this.context = context;

            InitializeComponent();

            this.statement = new Statement(customer, false, startdate, enddate);
            populateFields();
        }
Exemple #11
0
        public reportsForm(Context context, ReportType reporttype)
        {
            this.context = context;

            InitializeComponent();

            this.report = new Report(reporttype);
            populateFields();
        }
        public statementForm(Context context, Customer customer, Boolean zerobased)
        {
            this.context = context;

            InitializeComponent();

            this.statement = new Statement(customer, zerobased);
            populateFields();
        }
Exemple #13
0
        public paymentForm(Context context, Customer customer)
        {
            this.context = context;

            InitializeComponent();
            this.customer = customer;
            payment = new Payment(customer);

            populateFields();
        }
Exemple #14
0
        public paymentForm(Context context, Invoice invoice)
        {
            this.context = context;

            InitializeComponent();
            this.invoice = invoice;
            this.customer = invoice.Customer;
            payment = new Payment(invoice);

            populateFields();
        }
        public selectProductForm(Context context, InvoiceProduct invoiceproduct)
        {
            this.context = context;

            InitializeComponent();

            searchproducts = Manager.listSearchProducts();
            loadProductsList();

            this.invoiceproduct = invoiceproduct;
            populateFields(invoiceproduct);
        }
        public customersForm(Context context)
        {
            this.context = context;

            InitializeComponent();

            buttonEdit.Visible = buttonDelete.Visible = Security.allowCustomerManagement(context.User);
            buttonPayment.Visible = Security.allowPayments(context.User);
            buttonStatement.Visible = Security.allowStatementsList(context.User);
            buttonEmail.Visible = Security.allowEmail(context.User);

            this.Text = this.Text.Replace("[*companyname*]", Properties.Settings.Default.companyname);
        }
Exemple #17
0
 public printForm(Context context, String PreviewHTML, String PrintHTML, bool printOnLoad)
 {
     InitializeComponent();
     webBrowserPreview.DocumentText = PreviewHTML;
     webBrowserPrintWindow.Url = new Uri("http://www.meulenfoods.co.za");
     webBrowserPrintWindow.DocumentText = PrintHTML;
     textBoxSource.Text = PrintHTML;
     buttonShowHTML.Visible = context.User.Role.Equals(Roles.Admin);
     if (printOnLoad)
     {
         webBrowserPrintWindow.DocumentCompleted += webBrowserPrintWindow_DocumentCompleted_printonload;
     }
 }
Exemple #18
0
        public invoicesForm(Context context)
        {
            this.context = context;

            InitializeComponent();

            buttonNew.Visible = Security.allowInvoiceCreate(this.context.User);
            buttonEdit.Visible = buttonDelete.Visible = Security.allowInvoiceManagement(this.context.User);
            buttonPayment.Visible = Security.allowPayments(this.context.User);
            buttonFinalize.Visible = Security.allowFinalize(this.context.User);
            buttonEmail.Visible = Security.allowEmail(this.context.User);

            this.Text = this.Text.Replace("[*companyname*]", Properties.Settings.Default.companyname);
        }
Exemple #19
0
        public invoiceForm(Context context)
        {
            this.context = context;

            InitializeComponent();
            invoice = new Invoice();

            searchcustomers = Manager.listSearchCustomers();
            loadCustomersList();

            enableCustomerFields();
            buttonPrint.Visible = buttonSave.Visible = Security.allowInvoiceManagement(context.User);

            populateInvoiceFields(invoice);
            loadListProducts();
            populateCustomerFields(invoice.Customer);
        }
Exemple #20
0
        public invoiceForm(Context context, Invoice invoice)
        {
            this.context = context;

            InitializeComponent();
            this.invoice = invoice;

            searchcustomers = Manager.listSearchCustomers();
            loadCustomersList();

            buttonSave.Enabled = buttonSavePrint.Enabled = Security.allowInvoiceManagement(context.User);
            buttonAddProduct.Enabled = buttonEditProduct.Enabled = buttonRemoveProduct.Enabled = Security.allowInvoiceManagement(context.User);

            populateInvoiceFields(invoice);
            loadListProducts();
            populateCustomerFields(invoice.Customer);
        }
 public formDashboard(Context context)
 {
     this.context = context;
     InitializeComponent();
 }
Exemple #22
0
        public importForm(Context context)
        {
            this.context = context;

            InitializeComponent();
        }