Ejemplo n.º 1
0
        private void cboStores_SelectedValueChanged(object sender, EventArgs e)
        {
            if (cboStores.SelectedValue == null)
            {
                return;
            }

            YearEnd   yEnd  = new YearEnd();
            DataTable dtRec = yEnd.GetDistinctYear(Convert.ToInt32(cboStores.SelectedValue));

            PopulateDocument(dtRec);

            dtRec           = yEnd.GetDocumentAll(Convert.ToInt32(cboStores.SelectedValue));
            lblAdjDate.Text = @"All Years";
            if (dtRec.Rows.Count == 0)
            {
                txtEmpty.Visible      = true;
                gridInventory.Visible = false;
            }
            else
            {
                gridInventory.Visible    = true;
                gridInventory.DataSource = dtRec;
            }
        }
        private void CboStoresSelectedValueChanged(object sender, EventArgs e)
        {
            if (lkActivity.EditValue != null)
            {
                YearEnd   yEnd  = new YearEnd();
                DataTable dtRec = yEnd.GetDistinctYear(Convert.ToInt32(lkActivity.EditValue));
                PopulateDocument(dtRec);

                dtRec           = yEnd.GetDocumentAll(Convert.ToInt32(lkActivity.EditValue));
                lblAdjDate.Text = "All Years";
                PopulateTransactions(dtRec);
            }
        }