Exemple #1
10
 private void Form_jysq_Load(object sender, EventArgs e)
 {
     dtp_rq1.Value = Convert.ToDateTime(lisbiz.Get_ServerDate());
     dtp_rq2.Value = Convert.ToDateTime(lisbiz.Get_ServerDate());
 }
        private void Form_codeprint_Load(object sender, EventArgs e)
        {
            if (Program.bcode_x != 0)
            {
                numericUpDown1.Value = Program.bcode_x;
                numericUpDown2.Value = Program.bcode_y;
                numericUpDown3.Value = Program.bcode_count;
                numericUpDown4.Value = Program.bcode_scale;
                numericUpDown5.Value = Program.bcode_range;
            }
            //bcode_w.Text = Program.bcode_w.ToString();
            //bcode_h.Text = Program.bcode_h.ToString();

            txt_tjdw.Text = Program.now_tjdwmc;//by zhz
            txt_tjdw.Tag  = Program.now_tjdwid;

            dgv_tjdjb.AutoGenerateColumns = false;
            LisBiz   lisbiz = new LisBiz();
            DateTime dt     = Convert.ToDateTime(lisbiz.Get_ServerDate());

            dtp_begin.Value = dt;
            dtp_end.Value   = dt;
            List <string> listprint = Common.Common.GetPrinterInfo();

            if (listprint != null && listprint.Count > 0)
            {
                cboxPrinter.Items.AddRange(listprint.ToArray());
                cboxPrinter.SelectedIndex = 0;
            }
        }