private void btnTransferOut_Click(object sender, EventArgs e) { FrmTransferOut frm = new FrmTransferOut(_db, "POD"); frm.QD_CODE = txtCode.Text; frm.ShowDialog(); }
private void btnTransferOut_Click(object sender, EventArgs e) { FrmTransferOut frm = new FrmTransferOut(_dtb, "TASK"); //frm.DTB = Form_QD._dtb; frm.QD_CODE = txtCode.Text; frm.ShowDialog(); //BUS.LIST_TASKControl ctr = new BUS.LIST_TASKControl(); ////if (ctr.IsExist(ddlQD.Text, txtCode.Text)) ////{ ////DTO.LIST_TASKInfo inf = new DTO.LIST_TASKInfo(); ////inf = GetDataFromForm(inf); //SaveFileDialog sfd = new SaveFileDialog(); //sfd._Filter = "XML file(*.xml)|*.xml"; //string sErr = ""; //if (sfd.ShowDialog() == DialogResult.OK) //{ // DataTable dt = ctr.GetAll(ddlQD.Text, ref sErr); // //dt.Rows.Add(inf.ToDataRow(dt)); // dt.WriteXml(sfd.FileName); //} //lbErr.Text = sErr; //} }