private void generateCTList()
        {
            int printQty = (int)this.numericUpDown1.Value;

            if (printQty <= 0)
            {
                MessageBox.Show("此工單已經生成所需數量的CT碼!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                return;
            }
            //ctCodeInfo.Cuspo = this.comboBox1.Text == null ? "" : this.comboBox1.Text.ToString().Trim();            //Cuspo
            ctCodeInfo.Quantity = (int)this.numericUpDown2.Value;
            ctList = generateC.generateCTNumber(ctCodeInfo, printQty, dateTimePicker1.Value);
            if (ctList.Count > 0)
            {
                this.textBox12.Text = ctList[0].Ctcode;
                this.textBox5.Text  = ctList[ctList.Count - 1].Ctcode;
            }
        }