Ejemplo n.º 1
0
 public ViewProducts(HomePage h)
 {
     home = h;
     InitializeComponent();
     P            = new Product();
     CE           = new CheckEntry();
     productTable = P.ProductTable();
 }
Ejemplo n.º 2
0
 public AddProduct(ManageProductOrders O)
 {
     InitializeComponent();
     product = new Product();
     product.newProduct();
     CE     = new CheckEntry();
     M      = new WorkFlowMessage();
     Orders = O;
 }
Ejemplo n.º 3
0
 public AddProduct()
 {
     InitializeComponent();
     product = new Product();
     product.newProduct();
     CE = new CheckEntry();
     M  = new WorkFlowMessage();
     objDatabaseManager = new DatabaseManager();
     stockTable         = objDatabaseManager.SumStocks();
 }
Ejemplo n.º 4
0
        public ItemCapacityForm()
        {
            InitializeComponent();
            materialList = objDatabaseManager.LoadRawMat();

            foreach (var mat in materialList)
            {
                cbox_Materials.Items.Add(mat.material);
            }

            objCheckEntry = new CheckEntry();
        }
        private void btnCalculate_Click(object sender, EventArgs e)
        {
            CheckEntry objCheckQuantity = new CheckEntry(txt_Quantity.Text, lbl_quantity.Text);
            CheckEntry objCheckUCost    = new CheckEntry(txt_unitCost.Text, lbl_unitCost.Text);

            if (!objCheckQuantity.isNull() && !objCheckUCost.isNull())
            {
                double uCost = double.Parse(txt_unitCost.Text);
                double quan  = double.Parse(txt_Quantity.Text);
                double tCost = uCost * quan;

                txt_TotalCost.Text = tCost.ToString();
            }
            else
            {
                MessageBox.Show("Enter a value in the Quantity and Unit Cost fields.");
            }
        }
        public AddMaterialForm(HomePage h)
        {
            home = h;
            InitializeComponent();

            objStock      = new Stock();
            stocks        = new List <Stock>();
            materialList  = new List <RawMaterials>();
            objCheckEntry = new CheckEntry();

            materialList = objDatabaseManager.LoadRawMat();

            foreach (var mat in materialList)
            {
                txt_materialType.Items.Add(mat.material);
            }

            txt_unitCost.DecimalPlaces  = 2;
            txt_TotalCost.DecimalPlaces = 2;
        }