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

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

            InitializeComponent();
            this.customer = customer;
            populateFields();
        }
예제 #4
0
        public customerForm(Context context)
        {
            this.context = context;

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

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

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

            InitializeComponent();

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

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

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

            InitializeComponent();

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

            InitializeComponent();

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

            InitializeComponent();

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

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

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

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

            populateFields();
        }
예제 #15
0
        public selectProductForm(Context context, InvoiceProduct invoiceproduct)
        {
            this.context = context;

            InitializeComponent();

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

            this.invoiceproduct = invoiceproduct;
            populateFields(invoiceproduct);
        }
예제 #16
0
        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);
        }
예제 #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;
     }
 }
예제 #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);
        }
예제 #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);
        }
예제 #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);
        }
예제 #21
0
 public formDashboard(Context context)
 {
     this.context = context;
     InitializeComponent();
 }
예제 #22
0
        public importForm(Context context)
        {
            this.context = context;

            InitializeComponent();
        }