Exemplo n.º 1
0
 /// <summary>
 /// 受保护的方法,调用Query事件
 /// </summary>
 /// <param name="e"></param>
 protected void OnQuery(QueryEventArgs e)
 {
     if (this.Query != null)
     {
         this.Query(this, e);
     }
 }
Exemplo n.º 2
0
        /// <summary>
        /// 确定按钮单击事件
        /// 返回输入的条件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnOK_Click(object sender, System.EventArgs e)
        {
            SaveQueryCondition();
            QueryEventArgs arg = new QueryEventArgs();

            arg.QueryCondition = GetQueryCondition();
            OnQuery(arg);
        }
Exemplo n.º 3
0
        private void ucquery1_Query(Object sender, QueryEventArgs e)
        {
            string strWhere = GetWhereString(e.QueryCondition);

            this.Query(strWhere);
        }