示例#1
0
        private void Load_MRList()
        {
            DataTable MRList = objMRDL.GetDataView(CurrentUser.UserID, MR.Status.Issued, MR.Origin.ToDepartment);

            bindMRList.DataSource        = MRList;
            gvMRList.AutoGenerateColumns = false;
            gvMRList.DataSource          = bindMRList;
            bindMRList.ResetBindings(true);
        }
示例#2
0
 private void cmbStore_SelectedIndexChanged(object sender, EventArgs e)
 {
     try
     {
         bindMRList.DataSource = null;
         Store objStore = (Store)cmbStore.SelectedItem;
         if (objStore != null)
         {
             bindMRList.DataSource = objMRDL.GetDataView(objStore.StoreID, MR.Status.Approved);
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(this, ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }