示例#1
0
 public formAddUser(formContainer parent, Model model)
 {
     InitializeComponent();
     MdiParent  = parent;
     fc         = parent;
     this.model = model;
 }
示例#2
0
 public formManager(formContainer parent, IModel Model)
 {
     InitializeComponent();
     MdiParent  = parent;
     fc         = parent;
     this.Model = Model;
 }
示例#3
0
        public formAllocatePreparedProduct(formContainer parent, IModel model)
        {
            InitializeComponent();
            MdiParent                = parent;
            fc                       = parent;
            this.Model               = model;
            buttonFind.Enabled       = false;
            buttonAddProduct.Enabled = false;
            textBoxAmount.Enabled    = false;

            ColumnHeader colHead = new ColumnHeader();

            colHead.Text  = "ProductLineCodeCode";
            colHead.Width = listViewProductLines.Width / 5;
            listViewProductLines.Columns.Add(colHead);
            colHead       = new ColumnHeader();
            colHead.Text  = "OrderCode";
            colHead.Width = listViewProductLines.Width / 5;
            listViewProductLines.Columns.Add(colHead);
            colHead      = new ColumnHeader();
            colHead.Text = "ProductCode";
            listViewProductLines.Columns.Add(colHead);
            colHead.Width = listViewProductLines.Width / 5;
            colHead       = new ColumnHeader();
            colHead.Text  = "QtyOrdered";
            listViewProductLines.Columns.Add(colHead);
            colHead.Width = listViewProductLines.Width / 5;

            colHead      = new ColumnHeader();
            colHead.Text = "QtyPrepared";
            listViewProductLines.Columns.Add(colHead);
            colHead.Width = listViewProductLines.Width / 5;
        }
示例#4
0
 public formViewOrderDetails(formContainer parent, IModel model)
 {
     InitializeComponent();
     MdiParent  = parent;
     fc         = parent;
     this.Model = model;
 }
示例#5
0
 public formOperator(formContainer parent, IModel model)
 {
     InitializeComponent();
     MdiParent  = parent;
     fc         = parent;
     this.Model = model;
     Model.populateOrders(); // lazy load the orders ie we will only construct the order objects and fill the models orderList if the user is going into the Production side of the application
                             // lazy load in this context just means that we did not load them in the Model constructor as we may never need the order objects, as it depends on what areas of the
                             // UI the user navigates to. We won't load any orders unless user navigates to an area of the UI dealing with orders .
                             // The populateOrders() method also manages setting up the linked ProductLine objects for each order.
                             // an order can have one or many productLines so need to setup ProductLineList in each order object.
 }