private void butAdd_Click(object sender, EventArgs e) { string[] values = { cusNum.Text, cusName.Text, cusTell.Text }; if (InformationManage.isEmpty(values)) { index = setCusMessage.Rows.Add(); flag = true; InformationManage.insert(values, setCusMessage, index); } else { MessageBox.Show("请将信息填写完整!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
/** * 加入按钮点击事件 */ private void butAdd_Click(object sender, System.EventArgs e) { string[] values = { drugNum.Text, customerNum.Text, drugPrice.Text, supplyNum.Text, orderTime.Value.ToString() }; if (InformationManage.isEmpty(values)) { index = setDrugMessage.Rows.Add(); flag = true; InformationManage.insert(values, setDrugMessage, index); } else { MessageBox.Show("请将信息填写完整!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void butAdd_Click(object sender, EventArgs e) { string[] values = { drugNum.Text, drugName.Text, birthday.Value.ToString(), validity.Value.ToString(), drugFunction.Text, supplierNum.Text, supplierPrice.Text, supplyNum.Text, supplyTime.Value.ToString() }; if (InformationManage.isEmpty(values)) { index = setPurchaseMessage.Rows.Add(); flag = true; InformationManage.insert(values, setPurchaseMessage, index); } else { MessageBox.Show("请将信息填写完整!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void butAdd_Click(object sender, EventArgs e) { string sex = ""; if (radioMan.Checked) { sex = "男"; } if (radioWom.Checked) { sex = "女"; } string[] values = { staffNum.Text, staffName.Text, sex, staffTime.Value.ToString(), staffDuty.Text }; if (InformationManage.isEmpty(values)) { flag = true; index = setStaffMessage.Rows.Add(); InformationManage.insert(values, setStaffMessage, index); } else { MessageBox.Show("请将信息填写完整!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Error); } }