Ejemplo n.º 1
0
 private void LoadGRN(int GRNType)
 {
     dgvGRN.AutoGenerateColumns = false;
     bsGRN.DataSource           = objGRNDL.GetDataView(GRNType, GRN.Status.Initial);
     dgvGRN.DataSource          = bsGRN;
     bsGRN.ResetBindings(true);
 }
Ejemplo n.º 2
0
 private void btnSearch_Click(object sender, EventArgs e)
 {
     try
     {
         bindGRN.DataSource      = objGRN_DL.GetDataView(Convert.ToInt64(cmbDepartment.SelectedValue), dtFrom.Value, dtTo.Value, (SESD.MRP.REF.GRN.Status)Enum.Parse(typeof(SESD.MRP.REF.GRN.Status), cmbStatus.SelectedItem.ToString()));
         bindItemList.DataSource = null;
     }
     catch (Exception ex)
     {
         MessageBox.Show(this, ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
Ejemplo n.º 3
0
        private void frmGRNApproval_Load(object sender, EventArgs e)
        {
            try
            {
                objStore = objStoreDL.Get("Rejects");

                txtStore.Text = objStore.StoreDescription;

                DataTable dtGRN = new DataTable();

                dtGRN = objGRNDL.GetDataView(objStore.StoreID, GRN.Status.Initial);
                bindGRNList.DataSource = dtGRN;

                gvGRNList.AutoGenerateColumns = false;
                gvGRNList.DataSource          = bindGRNList;
                bindGRNList.ResetBindings(true);
            }
            catch (Exception ex)
            {
                MessageBox.Show(this, ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }