/// <summary>
        /// 提交并打印标签
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Print_btn_Click(object sender, EventArgs e)
        {
            if (cInfo.Records.Count < 1)
            {
                return;
            }
            cInfo.Create_date = DateTime.Now;
            cInfo.Create_user = uInfo.User_id;
            cInfo.Status      = 0;
            if (!cInfo.WriteDB())
            {
                //have some error once write to db "
                return;
            }
            MessageBox.Show("write to db is sucess", "infonation");
            DataTable dt = new DataTable();

            pLable.Print(ref dt);
        }
Example #2
0
        /// <summary>
        /// 打印事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void submit_btn_Click(object sender, EventArgs e)
        {
            PrintLabel pLabel = new PrintLabel(rInfo);

            pLabel.Print(type_txt.Text);
        }