Exemplo n.º 1
0
        private void btnSaveUpdate_Click(object sender, EventArgs e)
        {
            array_daily[updatnumber].bincode  = txtEditBinCode.Text;
            array_daily[updatnumber].quantity = txtEditQty.Text;

            GrdDailyLoss.DataSource = null;
            dt.Clear();

            //for (int i = 0; i < array_daily.Count; i++)
            //{
            //    Object[] array = new Object[6];

            //    array[0] = array_daily[i].itemno;
            //    array[1] = array_daily[i].location;
            //    array[2] = array_daily[i].bincode;
            //    array[3] = array_daily[i].quantity;
            //    array[4] = array_daily[i].postingDate;
            //    array[5] = array_daily[i].staffdimension;

            //    dt.Rows.Add(array);

            //}

            CompactSQL comsql = new CompactSQL();

            comsql.updateDailyLoss(Convert.ToInt32(txtEditQty.Text.ToString()), Convert.ToInt32(txtLineNo.Text.ToString()));

            getdata = comsql.SelectRecord("DailyLoss");
            GetSQLData(getdata);

            //GrdDailyLoss.DataSource = dt;

            MessageBox.Show("Updated Succesfully!");
        }