Example #1
0
        public void displayCriticalNotif(Product product, int qty_onhand)
        {
            notif          = new CriticalNotif(product, qty_onhand);
            notif.Location = new Point(getFrmMain.Height - notif.Height,
                                       getFrmMain.Width - notif.Width
                                       );
            Form form = Application.OpenForms["CriticalNotif"];

            if (form == null)
            {
                notif.Show();
            }
        }
Example #2
0
        public void checkProductCriticalLevel(Product product, MasterController masterController)
        {
            string condition = string.Format("Name = '{0}'", product.Description);
            decimal qty_received = (decimal)readScalar("Qty_Received", condition);
            decimal qty_onhand = (decimal)readScalar("Qty_on_Hand", condition);

            if (qty_onhand <= (qty_received * .10M))
            {
                CriticalNotif notif = new CriticalNotif(product, (int)qty_onhand);
                notif.Location = new Point(masterController.getFrmMain.Height - notif.Height,
                                            masterController.getFrmMain.Width - notif.Width
                                            );
                notif.Show();
            }
        }
Example #3
0
        public void checkProductCriticalLevel(Product product, MasterController masterController)
        {
            string  condition    = string.Format("Name = '{0}'", product.Description);
            decimal qty_received = (decimal)readScalar("Qty_Received", condition);
            decimal qty_onhand   = (decimal)readScalar("Qty_on_Hand", condition);

            if (qty_onhand <= (qty_received * .10M))
            {
                CriticalNotif notif = new CriticalNotif(product, (int)qty_onhand);
                notif.Location = new Point(masterController.getFrmMain.Height - notif.Height,
                                           masterController.getFrmMain.Width - notif.Width
                                           );
                notif.Show();
            }
        }
 public void displayCriticalNotif(Product product, int qty_onhand)
 {
     notif = new CriticalNotif(product, qty_onhand);
     notif.Location = new Point(getFrmMain.Height - notif.Height,
                                 getFrmMain.Width - notif.Width
                                 );
     Form form = Application.OpenForms["CriticalNotif"];
     if (form == null)
         notif.Show();
 }