//Refresh the tableControl according to the measurement mode protected override void openReport() { if (FormList.FormBatch.od.batchList == null) { MessageShow.show("Please Creat or Open a Batch!", "请在批次面板新建或打开一个批次!"); return; } if (formreport == null) { formreport = new FormReport(this); } formreport.Show(); }
private void button1_Click(object sender, EventArgs e) { testforbatch(); string path = AppDomain.CurrentDomain.BaseDirectory.ToString() + "\\order1.odr"; string date = string.Format("{0:yyyy-MM-dd HH_mm_ss}", DateTime.Now); date = DateTime.Now.ToString("yyyy.MM.dd HH:mm:ss");//"G" SystemConfig.WriteConfigData(path, "date", date); SystemConfig.WriteBase64Data(path, "order", order); FormReport formreport = new FormReport(tmp); formreport.Show(); }