//private void pnl跑龙套1_Paint(object sender, PaintEventArgs e)
        //{
        //    try
        //    {
        //        using (Pen pen = new Pen(Color.FromArgb(165, 172, 181)))
        //        {
        //            e.Graphics.DrawLine(pen, new Point(0, 0), new Point(pnl跑龙套1.Width, 0));
        //            e.Graphics.DrawLine(pen, new Point(0, 0), new Point(0, pnl跑龙套1.Height));
        //            e.Graphics.DrawLine(pen, new Point(pnl跑龙套1.Width - 1, 0), new Point(pnl跑龙套1.Width - 1, pnl跑龙套1.Height));
        //        }
        //    }
        //    catch (Exception ex)
        //    {
        //        LogError(ex);
        //    }
        //}

        //private void pnl跑龙套3_Paint(object sender, PaintEventArgs e)
        //{
        //    try
        //    {
        //        using (Pen pen = new Pen(Color.FromArgb(165, 172, 181)))
        //        {
        //            e.Graphics.DrawLine(pen, new Point(0, 0), new Point(pnl跑龙套1.Width, 0));
        //            e.Graphics.DrawLine(pen, new Point(0, pnl跑龙套1.Height - 1), new Point(pnl跑龙套1.Width, pnl跑龙套1.Height - 1));

        //            e.Graphics.DrawLine(pen, new Point(0, 0), new Point(0, pnl跑龙套1.Height));
        //            e.Graphics.DrawLine(pen, new Point(pnl跑龙套1.Width - 1, 0), new Point(pnl跑龙套1.Width - 1, pnl跑龙套1.Height));

        //        }
        //    }
        //    catch (Exception ex)
        //    {
        //        LogError(ex);
        //    }
        //}

        private void sr厂家账户_Properties_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
        {
            try
            {
                string brand = "";
                if (cbo品牌.SelectedItem != null)
                {
                    TB_BrandModel model = cbo品牌.SelectedItem as TB_BrandModel;
                    if (model != null)
                    {
                        brand = model.FID;
                    }
                }

                FrmQueryClientAccount frm = new FrmQueryClientAccount(brand);
                if (frm.ShowDialog() == DialogResult.OK)
                {
                    sr厂家账户.Text = frm.SelectName;
                    sr厂家账户.Tag  = frm.SelectID;
                }
            }
            catch (Exception ex)
            {
                LogError(ex);
            }
        }
Пример #2
0
        private void txt经营场所_Properties_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
        {
            string brand = "";

            if (comBrand.SelectedItem != null)
            {
                TB_BrandModel model = comBrand.SelectedItem as TB_BrandModel;
                if (model != null)
                {
                    brand = model.FID;
                }
            }

            FrmQueryClientAccount frm = new FrmQueryClientAccount(brand);

            if (frm.ShowDialog() == DialogResult.OK)
            {
                txt厂家账户.Text = frm.SelectName;
                txt厂家账户.Tag  = frm.SelectID;
            }
        }