Beispiel #1
0
        /// <summary>
        /// 打开窗体,不返回任何数据
        /// </summary>
        public static void Execute_Query(OutstandingType type)
        {
            frmQueryOutstanding form = new frmQueryOutstanding();

            form.OutstandingType = type;
            form.cmbType.Enabled = OutstandingType.None == type;
            form.btnOk.Visible   = false;//查询窗体不显示确认按钮
            form.ShowDialog();
        }
Beispiel #2
0
        /// <summary>
        /// 打开窗体,跟据参数取当前客户的帐款资料。
        /// </summary>
        /// <param name="customerCode"></param>
        /// <returns></returns>
        public static DataRow Execute_SelectRow(string customerCode, OutstandingType type)
        {
            frmQueryOutstanding form = new frmQueryOutstanding();

            form.OutstandingType = type;
            form.cmbType.Enabled = OutstandingType.None == type;
            form.Init(customerCode);
            if (!String.IsNullOrEmpty(customerCode))
            {
                form.btnQuery_Click(form.btnQuery, new EventArgs());//自动查询客户的余款
            }
            form.ShowDialog();
            return(form.GetResult()); //返回选择的记录
        }