private void Save()
        {
            SqlCommand cmd = new SqlCommand("Save8105Returnables");

            cmd.CommandType = CommandType.StoredProcedure;

            cmd.Parameters.AddWithValue("@8105FormNo", _8105formNo.ToString().Trim());

            cmd.Parameters.AddWithValue("@PEZAformType", tbFormType.Text.Trim());

            cmd.Parameters.AddWithValue("@PEZAformNo", tbFormNo.Text.Trim());

            cmd.Parameters.AddWithValue("@ItemDesc", tbDescription.Text.Trim());

            cmd.Parameters.AddWithValue("@ItemQty", Convert.ToInt32(tbQuantity.Text.Trim()));

            cmd.Parameters.AddWithValue("@ItemUnit", cboUOM.SelectedValue.ToString().Trim());

            SqlHelper.ExecuteNonQuery(ClsConfig.PEZAConnectionString, cmd);

            PEZA_8105.grid_Returnables.ItemsSource = ClsPEZAData.Get8105Returnables(_8105formNo.ToString().Trim()).DefaultView;
        }
Exemplo n.º 2
0
 private void FillReturnables(string _form)
 {
     gridReturnables.ItemsSource = ClsPEZAData.Get8105Returnables(_form).DefaultView;
 }