private void RunFsDc() { dtxft = null; MyInvoke mi = new MyInvoke(UpdatePanfs); MyInvoke1 mi1 = new MyInvoke1(UpdateGridViewfs); MyInvoke2 mi2 = new MyInvoke2(UpdateLabelfs); MyInvoke3 mi3 = new MyInvoke3(UpdatePicturefs); this.BeginInvoke(mi3, new object[] { Properties.Resources.loading }); this.BeginInvoke(mi2, new object[] { "正在导出数据……" }); this.BeginInvoke(mi1, new object[] { dtfs }); this.BeginInvoke(mi, new object[] { true }); queryClass qc = new queryClass(); dtxft = qc.SelectFs(dtinput5.Value, dtinput6.Value, fsmchtid.Text.Trim(), fstermid.Text.Trim(), actnbr.Text.Trim()); qc.WriteExcelFile("商户交易明细", "Sheet1", dtinput3.Value, dtinput4.Value, dtfs); this.BeginInvoke(mi3, new object[] { Properties.Resources.finishok }); this.BeginInvoke(mi1, new object[] { dtfs }); this.BeginInvoke(mi2, new object[] { "导出数据任务已完成" }); Thread.Sleep(1000); this.BeginInvoke(mi, new object[] { false }); }
private void RunPosDc() { dt = null; MyInvoke mi = new MyInvoke(UpdatePan); MyInvoke1 mi1 = new MyInvoke1(UpdateGridView); MyInvoke2 mi2 = new MyInvoke2(UpdateLabel); MyInvoke3 mi3 = new MyInvoke3(UpdatePicture); this.BeginInvoke(mi3, new object[] { Properties.Resources.loading }); this.BeginInvoke(mi2, new object[] { "正在导出数据……" }); this.BeginInvoke(mi1, new object[] { dt }); this.BeginInvoke(mi, new object[] { true }); queryClass qc = new queryClass(); dt = qc.SelectDt(dtinput1.Value, dtinput2.Value, mchtid_text.Text, termid_text.Text); qc.WriteExcelFile("商户交易明细", "Sheet1", dtinput1.Value, dtinput2.Value, dt); this.BeginInvoke(mi3, new object[] { Properties.Resources.finishok }); this.BeginInvoke(mi1, new object[] { dt }); this.BeginInvoke(mi2, new object[] { "导出数据任务已完成" }); Thread.Sleep(1000); this.BeginInvoke(mi, new object[] { false }); }
private void RunXftDcXft() { dtxft = null; MyInvoke mi = new MyInvoke(UpdatePanxft); MyInvoke1 mi1 = new MyInvoke1(UpdateGridViewxft); MyInvoke2 mi2 = new MyInvoke2(UpdateLabelxft); MyInvoke3 mi3 = new MyInvoke3(UpdatePicturexft); this.BeginInvoke(mi3, new object[] { Properties.Resources.loading }); this.BeginInvoke(mi2, new object[] { "正在导出数据……" }); this.BeginInvoke(mi1, new object[] { dtxft }); this.BeginInvoke(mi, new object[] { true }); queryClass qc = new queryClass(); dtxft = qc.SelectXft(dtinput3.Value, dtinput4.Value, psam.Text, areatelno.Text); qc.WriteExcelFile("信付通商户交易明细", "Sheet1", dtinput3.Value, dtinput4.Value, dtxft); this.BeginInvoke(mi3, new object[] { Properties.Resources.finishok }); this.BeginInvoke(mi1, new object[] { dtxft }); this.BeginInvoke(mi2, new object[] { "导出数据任务已完成" }); Thread.Sleep(1000); this.BeginInvoke(mi, new object[] { false }); }