private void butNew_Click(object sender, EventArgs e) { try { if (Verify() == false) { return; } QueueData queueData = new QueueData(); queueData.科室ID = cbxDepartment.SelectedValue.ToString(); queueData.队列ID = SqlHelper.GetCmpUID(); queueData.队列名称 = txtQueueName.Text; queueData.队列信息.号码前缀 = txtPrefix.Text; queueData.队列信息.号码长度 = Convert.ToInt32(txtNoLen.Text); queueData.队列信息.播放站点 = txtCallStation.Text; queueData.队列信息.呼叫格式 = rtbCallFormat.Text; queueData.队列信息.备注 = txtDes.Text; queueData.队列信息.是否禁用 = chkStopUse.Checked; queueData.队列信息.创建日期 = _qm.GetServerDate(); queueData.队列信息.CopyBasePro(queueData); _qm.NewQueue(queueData); NewView(queueData); ButtonHint.Start(sender as Button, "OK"); } catch (Exception ex) { MsgBox.ShowException(ex, this); } }