Exemplo n.º 1
0
        public AddProducts(Upd eventUpdate)
        {
            updateInformation += eventUpdate;
            productsForRemaking = new List<ProductConteiner>();
            InitializeComponent();
            Height = heightProductsWithoutRemake;
            ProductRepository repos = new ProductRepository();

            entryProductsContainerCollection = new List<Conteiner>();

            productCollection = repos.GetDataSource().Select(element => element.Name).ToList();


            bsProductCollection = new BindingSource();
            bsProductCollection.DataSource = productCollection;
            comboBox1.DataSource = bsProductCollection;
            comboBox1.IntegralHeight = false;

            groupBox2.Visible = groupBox2.Enabled = false;


            panel1PositionProductWithoutRemake = panel1.Location = new Point(3, 163);
            panel1PositionProductWithRemake = new Point(3, 307);
            dateTimePicker1.MaxDate = DateTime.Today;
        }
Exemplo n.º 2
0
        public void Update([FromBody] Upd upd)
        {
            var user = _user.GetByID(upd.Id);

            user.Login    = upd.Login;
            user.Password = upd.Password;
            _user.Update(user);
        }
Exemplo n.º 3
0
        public Delete(Upd updateEvent)
        {
            updateInformation += updateEvent;
            InitializeComponent();
            ProductRepository repos = new ProductRepository();

            listBox1.DataSource = repos.GetDataSource();
        }
Exemplo n.º 4
0
        public Remove(Upd eventUpdate)
        {
            updateInformation += eventUpdate;
            var productRepository = new ProductRepository();

            InitializeComponent();
            RadioButton1_CheckedChanged(this, null);
            maskedTextBox1.Visible  = maskedTextBox1.Enabled = false;
            numericUpDown1.Visible  = numericUpDown1.Enabled = true;
            dateTimePicker1.MaxDate = DateTime.Today;
            dateTimePicker1.Value   = DateTime.Today;
        }
Exemplo n.º 5
0
        public AddTare(Upd eventUpdate)
        {
            updateInformation += eventUpdate;
            InitializeComponent();

            TareRepository repos = new TareRepository();

            coll = repos.GetDataSource().Select(element => element.Name).ToList <string>();
            comboBox1.SelectedIndex = -1;
            label1.Text             = @"Назва:";

            bs                     = new BindingSource();
            bs.DataSource          = coll;
            comboBox1.DataSource   = bs;
            comboBox1.SelectedItem = null;

            comboBox1.DropDownStyle    = System.Windows.Forms.ComboBoxStyle.DropDown;
            comboBox1.AutoCompleteMode = AutoCompleteMode.None;
            comboBox1.IntegralHeight   = false;
        }
Exemplo n.º 6
0
        public Edit(Upd eventUpdate)
        {
            updateInformation += eventUpdate;
            InitializeComponent();
            position = button1.Location;
            IngredientRepository source            = new IngredientRepository();
            ProductRepository    productRepository = new ProductRepository();

            ingredientForReceiptCollection = source.GetDataSource().Select(n => n.Name).ToList();

            bsObjectCollection = new BindingSource();

            bsIngredientForReceiptCollection            = new BindingSource();
            bsIngredientForReceiptCollection.DataSource = ingredientForReceiptCollection;
            comboBox1.DataSource   = bsIngredientForReceiptCollection;
            comboBox1.SelectedItem = null;

            comboBox1.DropDownStyle    = comboBox2.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDown;
            comboBox1.AutoCompleteMode = comboBox2.AutoCompleteMode = AutoCompleteMode.None;
            comboBox1.IntegralHeight   = comboBox1.IntegralHeight = false;

            radioButton1_CheckedChanged(this, null);
        }
Exemplo n.º 7
0
        public AddIngradients(Upd eventUpdate)
        {
            updateInformation += eventUpdate;
            InitializeComponent();

            IngredientRepository repos = new IngredientRepository();

            coll = repos.GetDataSource().Select(element => element.Name).ToList <string>();
            comboBox1.SelectedIndex = -1;
            label1.Text             = @"Назва:";
            maskedTextBox1.Mask     = @"000.00";
            maskedTextBox1.Text     = "";

            dateTimePicker1.MaxDate = DateTime.Today;

            bs                     = new BindingSource();
            bs.DataSource          = coll;
            comboBox1.DataSource   = bs;
            comboBox1.SelectedItem = null;

            comboBox1.DropDownStyle    = System.Windows.Forms.ComboBoxStyle.DropDown;
            comboBox1.AutoCompleteMode = AutoCompleteMode.None;
            comboBox1.IntegralHeight   = false;
        }
Exemplo n.º 8
0
 public CreateTare(Upd updateEvent)
 {
     updateInformation += updateEvent;
     InitializeComponent();
 }
Exemplo n.º 9
0
 public ParserInvoice(Upd eventUpdate)
 {
     updateInformation += eventUpdate;
     InitializeComponent();
     productCount = new Dictionary <Conteiner, int>();
 }
Exemplo n.º 10
0
 public ActionResult UpdEquipment(Upd e)
 {
     return(View());
 }
Exemplo n.º 11
0
 public Restore(Upd updateEvent)
 {
     InitializeComponent();
     updateInformation += updateEvent;
 }
Exemplo n.º 12
0
 public ActionResult UpdateStatus(Upd s)
 {
     return(View());
 }