private void BT_OutPort_Click(object sender, EventArgs e) { string FileName; if ((FileName = PublicFunc.SfD_Show(Application.StartupPath, "XLS文件|*.xls")) == null) { return; } gv.ExportToXls(FileName); }
/// <summary> /// 把机器码生成文本 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void BBI_SaveToolCodeTxt_ItemClick(object sender, ItemClickEventArgs e) { string FileName; if ((FileName = PublicFunc.SfD_Show("Packaging注册码.txt", "TXT文件(*.txt)|*.txt")) == null) { return; } PublicFunc.SaveTxt(FileName, BSI_ToolCode.Caption); }
private void BT_P2_Click(object sender, EventArgs e) { string FileName; if ((FileName = PublicFunc.SfD_Show(Application.StartupPath, "PDF文件|*.pdf")) == null) { return; } gv2.ExportToPdf(FileName); }
private void BT_OutPort_Click(object sender, EventArgs e) { if ((FileName = PublicFunc.SfD_Show()) == null) { return; } TxtData.PublicData.ErrorCode = 0; System.Threading.ThreadPool.QueueUserWorkItem(new WaitCallback(PollOutport)); Frm_Wait frm = new Frm_Wait("", false); frm.ShowDialog(); }
private void BT_OutPort_Click(object sender, EventArgs e) { string FileName; if (gv.RowCount == 0) { MessageBox.Show("没有日志记录"); return; } if ((FileName = PublicFunc.SfD_Show(Application.StartupPath, "XLS文件|*.xls")) == null) { return; } gv.ExportToXls(FileName); }
private void BT_OutPut_Click(object sender, EventArgs e) { if (CBE_RecipeName.EditValue.ToString() == "") { MessageBox.Show("无产品"); return; } if ((FileName = PublicFunc.SfD_Show(CBE_RecipeName.EditValue.ToString() + ".txt")) == null) { return; } TxtData.PublicData.ErrorCode = 0; OperIndex = 1; System.Threading.ThreadPool.QueueUserWorkItem(new WaitCallback(PollImport)); Frm_Wait frm = new Frm_Wait(CBE_RecipeName.EditValue.ToString(), false); frm.ShowDialog(); }