private void btnBatch_Click(object sender, EventArgs e) { ScheduleDal scheduleDal = new ScheduleDal(); TableDialogDal dialogDal = new TableDialogDal(); //SelectDialog selectDialog = new SelectDialog(scheduleDal.GetSchedule(), dialogDal.GetField("SCHEDULE"), false); SelectDialog selectDialog = new SelectDialog(scheduleDal.GetNoneInSchedule(), dialogDal.GetField("SCHEDULE"), false); if (selectDialog.ShowDialog() == DialogResult.OK) { //if (selectDialog.SelectedValue["FORMULACODE"].Trim().Length != 0) //{ txtScheduleNo.Text = selectDialog.SelectedValue["SCHEDULENO"]; //} //else // THOKUtil.ShowInfo("�������õ�ǰ�����ƻ���Ӧ�õ��䷽����"); } }
private void btnBatch_Click(object sender, EventArgs e) { ScheduleDal scheduleDal = new ScheduleDal(); SelectDialog selectDialog = new SelectDialog(scheduleDal.GetNoneInSchedule(), scheduleFields, false); if (selectDialog.ShowDialog() == DialogResult.OK) { txtScheduleNo.Text = selectDialog["SCHEDULENO"]; } }