/// <summary> /// 建卡按钮 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnJK_Click(object sender, EventArgs e) { var strsum = string.Empty; for (var i = 0; i < Convert.ToInt32(comboBox1.Text); i++) { var strTmp = _cos.KeyXz(Common.GetKeyStatus(comboBox2.SelectedIndex)); strsum += strTmp + Environment.NewLine; _cos.JlXz(strTmp, UserName, "新建"); } rtxtInfo.Text = $@"当前{Common.GetKeyStatus(comboBox2.SelectedIndex)}天卡 {comboBox1.Text} 张如下:{Environment.NewLine}{strsum}"; }