Пример #1
0
        private void chkShowPreferredCU_CheckedChanged(object sender, EventArgs e)
        {
            try
            {
                string filter = string.Empty;
                if (chkShowPreferredCU.Checked == true)
                {
                    IGTApplication  oApp = GTClassFactory.Create <IGTApplication>();
                    CuCommonForms   obj  = new CuCommonForms(oApp);
                    ADODB.Recordset rs   = obj.GetPreferredCU(cmbAncillaryCategories.SelectedValue.ToString());
                    m_PreferredCUFilter = obj.GetPreferredCuFilterString(rs);

                    if (string.IsNullOrEmpty(m_PreferredCUFilter))
                    {
                        m_PreferredCUFilter = "'***NOTDefined***'";
                    }
                    HandleCUDataFilters();
                }
                else
                {
                    m_PreferredCUFilter = null;
                    HandleCUDataFilters();
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Пример #2
0
        private void SetPreferredFilter()
        {
            IGTApplication oApp = GTClassFactory.Create <IGTApplication>();
            CuCommonForms  obj  = new CuCommonForms(oApp);

            ADODB.Recordset rs = obj.GetPreferredCU(grdFilter.Rows[0].Cells[0].Value.ToString());
            m_PreferredCUFilter = obj.GetPreferredCuFilterString(rs);
        }