コード例 #1
0
        /// <summary>
        ///  打开客戶资料查询窗体.
        /// </summary>
        /// <returns></returns>
        public static DataRow Execute()
        {
            frmFuzzyCustomer form = new frmFuzzyCustomer();

            form.ShowDialog();
            return(form._ReturnRow);
        }
コード例 #2
0
        public static void Execute(ButtonEdit Sender, string attributeCodes, SearchCallBack callBack)
        {
            frmFuzzyCustomer form = new frmFuzzyCustomer();

            form._AttributeCodes = attributeCodes;
            form.ShowDialog();
            if ((callBack != null) && (form._ReturnRow != null))
            {
                callBack(form._ReturnRow);
            }
        }
コード例 #3
0
        /// <summary>
        /// 打开客戶资料查询窗体
        /// </summary>
        /// <param name="Sender">ButtonEdit</param>
        /// <param name="customers">數據源</param>
        /// <param name="callBack">当选中客戶,返回客戶资料</param>
        public static void Execute(ButtonEdit Sender, DataTable customers, SearchCallBack callBack)
        {
            frmFuzzyCustomer form = new frmFuzzyCustomer();

            form.gcSummary.DataSource = customers;
            form.ShowDialog();
            if ((callBack != null) && (form._ReturnRow != null))
            {
                callBack(form._ReturnRow);
            }
        }
コード例 #4
0
        /// <summary>
        /// 打开客戶资料查询窗体
        /// </summary>
        /// <param name="Sender">ButtonEdit</param>
        /// <param name="callBack">当选中客戶,返回客戶资料</param>
        public static void Execute(ButtonEdit Sender, SearchCallBack callBack)
        {
            frmFuzzyCustomer form = new frmFuzzyCustomer();

            form.txtValue.Text = Sender.Text;
            form.DoQuery(form.txtValue.Text);
            form.ShowDialog();
            if ((callBack != null) && (form._ReturnRow != null))
            {
                callBack(form._ReturnRow);
            }
        }