Esempio n. 1
0
        private void Form_tjbg_Load(object sender, EventArgs e)
        {
            if (!Program.sfzc)//没有注册
            {
                if (tjdjbiz.GetTjCounts() > 300)
                {
                    MessageBox.Show("软件试用期已到,请联系供应商: !", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                    Application.Exit();
                }
            }
            txt_tjdw.Tag = "";


            cmb_xb.DataSource    = xtbiz.GetXtZd(1);//性别
            cmb_xb.DisplayMember = "xmmc";
            cmb_xb.ValueMember   = "bzdm";
            cmb_xb.SelectedValue = "%";
            cmb_bggs.Text        = xtbiz.GetXtCsz("BggsType").Trim();

            dtp_begin.Value = xtbiz.GetServerDate();
            dtp_end.Value   = dtp_begin.Value;
            //选择打印机试试
            try
            {
                List <string> listprint = Common.Common.GetPrinterInfo();
                if (listprint != null && listprint.Count > 0)
                {
                    cboxPrinter.Items.AddRange(listprint.ToArray());
                    cboxPrinter.SelectedIndex = 0;
                }
            }
            catch
            { }
        }
Esempio n. 2
0
 private void Form_tjpldj_Load(object sender, EventArgs e)
 {
     if (!Program.sfzc)//没有注册
     {
         if (tjdjbiz.GetTjCounts() > 300)
         {
             MessageBox.Show("软件试用期已到,请联系供应商:!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
             Application.Exit();
         }
     }
 }