Exemplo n.º 1
0
        private void button5_Click(object sender, EventArgs e)
        {
            if ((textBox12.Text == "") || (textBox13.Text == "") || (richTextBox1.Text == "") || (textBox16.Text == "") || (textBox19.Text == "") || (textBox15.Text == ""))
            {
                richTextBox1.Text = "";
                MessageBox.Show("All the fields must be Filled");
            }
            else
            {
                //int Alert_ID = int.Parse(code);
                int    alert        = int.Parse(alert_id);
                int    sid          = int.Parse(textBox12.Text);
                string name         = textBox13.Text;
                string company_name = textBox16.Text;

                string sms = richTextBox1.Text;

                ReorderForm rdform = new ReorderForm();
                rdform.sendSupplier(alert, sid, name, company_name, sms, this);

                Form5 reload = new Form5();
                reload.Show();
                this.Close();
            }
        }
Exemplo n.º 2
0
        public void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            code     = dataGridView1.Rows[dataGridView1.CurrentCell.RowIndex].Cells[1].Value.ToString();
            alert_id = dataGridView1.Rows[dataGridView1.CurrentCell.RowIndex].Cells[0].Value.ToString();

            ReorderForm rdform = new ReorderForm();

            rdform.clicButton(this, code);
        }
        public ActionResult Reorder(ReorderForm model)
        {
            var project = _projects.Query().Single(p => p.ID == model.ProjectID);

            var moved = project.CurrentIssues.Single(i => i.ID == model.MovedID);
            var relativeTo = project.CurrentIssues.Single(i => i.ID == model.RelativeToID);

            project.MoveIssue(moved, model.MoveType, relativeTo);

            return new JsonResult();
        }
Exemplo n.º 4
0
        private void Admin_Load(object sender, EventArgs e)
        {
            //-------------------Danusha Tharanga--------------------------------2/19/2014---------------------------
            if (storekeeper_name == "Storekeeper")
            {
                adminTabPg.TabPages.Remove(Items);
                adminTabPg.TabPages.Remove(Users);
                adminTabPg.TabPages.Remove(Report);
                adminTabPg.TabPages.Remove(Supplier);
            }
            //-------------------------------------------------------------------------------------------------------
            //-------------------Dilanka Rathnayaka------------------------------2/9/2014----------------------------
            Reports rep = new Reports();

            //set dates
            rep.FormLoadDateTimePicker(dateTimePicker1, dateTimePicker2);
            //Set Cashier names to combo box
            rep.FormLoadComboBox(comboBox1, comboBox2);
            //-------------------------------------------------------------------------------------------------------

            //-------------------Ravisha Weerasekara------------------------------2/7/2014----------------------------
            KeyPressEvent kpe = new KeyPressEvent();

            kpe.manualBilling("admin", "", this, "itm");
            kpe.manualBilling("admin", "", this, "usrs");
            kpe.manualBilling("admin", "", this, "qty");
            kpe.manualBilling("admin", "", this, "sup");

            this.KeyPreview            = true;
            this.textBox6.KeyDown     += new KeyEventHandler(textBox6_KeyDown);
            this.textBox24.KeyDown    += new KeyEventHandler(textBox24_KeyDown);
            this.txtBoxSearch.KeyDown += new KeyEventHandler(txtBoxSearch_KeyDown);
            this.textBox18.KeyDown    += new KeyEventHandler(textBox18_KeyDown);

            //-------------------------------------------------------------------------------------------------------

            //---------------------------Aruna Udayana - supplier tab form_Load   ----------------------------------
            SupplierDBConnection supp = new SupplierDBConnection();

            supp.search(dataGridView4);
            //---------------------------------------------------------------------------

            ReorderForm reorder = new ReorderForm();

            reorder.reorderLevel(this, Reorder);
        }
Exemplo n.º 5
0
        public void Form5_Load(object sender, EventArgs e)
        {
            ReorderForm re = new ReorderForm();

            re.search(this, dataGridView1);
        }