예제 #1
0
 private void btnSearch_Click(object sender, EventArgs e)
 {
     try
     {
         FindBase L_FindBase = new FindBase("SYS_MENU", new SysMenu());
         L_FindBase.ShowDialog();
         if (L_FindBase.DialogResult == DialogResult.OK)
         {
             Category mCategory = (Category)L_FindBase.DynObject;
             dgvCategory.DataSource = mMasterBLL.searchData("LMS_Category", mCategory);
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.ToString());
     }
 }
예제 #2
0
 private void btnSearch_Click(object sender, EventArgs e)
 {
     try
     {
         FindBase L_FindBase = new FindBase("LMS_Book", new setBook());
         L_FindBase.ShowDialog();
         if (L_FindBase.DialogResult == DialogResult.OK)
         {
             setBook msetBook = (setBook)L_FindBase.DynObject;
             dgvLibrary.DataSource = mMasterBLL.searchData("LMS_Book", mBook);
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.ToString());
     }
 }
예제 #3
0
        private void btnSearch_Click(object sender, EventArgs e)
        {
            try
            {
                FindBase L_FindBase = new FindBase("POS_Brand", new BrandObj());
                L_FindBase.ShowDialog();
                if (L_FindBase.DialogResult == DialogResult.OK)
                {
                    BrandObj mSysMenuGroup = (BrandObj)L_FindBase.DynObject;

                    //string data = Utility.getPropertyValue2(periodObj);
                    dgvBrand.DataSource = mMasterBLL.searchData("POS_Brand", mSysMenuGroup);
                }

                //loadGrid();
                //hideGridviewcolumn();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
        }