64 lines
2.0 KiB
C#
64 lines
2.0 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Data;
|
|
using System.Drawing;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Windows.Forms;
|
|
using SOH.Kernel;
|
|
using EAS.Services;
|
|
using SOH.BLL;
|
|
using SOH.Entities;
|
|
|
|
using System.Data.SqlClient;
|
|
using System.Configuration;
|
|
using System.Data.Common;
|
|
using System.Collections.Generic;
|
|
|
|
|
|
namespace SOH.KeFu
|
|
{
|
|
[ModuleAttribute(ModuleID = "27D13BCD-7F70-44CC-AC12-1395C29B4D76", ModuleName = "团体汇总统计")]
|
|
public partial class frmTuanJianJieLunXinXiHuiZong : SOH.Window.baseChildForm
|
|
{
|
|
|
|
public frmTuanJianJieLunXinXiHuiZong()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
|
|
public FastReport.Report re = new FastReport.Report();
|
|
public string khmc = ""; //客户名称
|
|
|
|
private void textBox1_TextChanged(object sender, EventArgs e)
|
|
{
|
|
var service = ServiceContainer.GetService<It_ht>();
|
|
thtBindingSource.DataSource = service.GetListByparam(this.textBox1.Text);
|
|
}
|
|
|
|
private void button1_Click(object sender, EventArgs e)
|
|
{
|
|
if (dataGridView1.CurrentRow.Index < 0)
|
|
{
|
|
return;
|
|
}
|
|
else
|
|
{
|
|
var service = ServiceContainer.GetService<It_htfzb>();
|
|
t_ht o = dataGridView1.Rows[dataGridView1.CurrentRow.Index].DataBoundItem as t_ht;
|
|
khmc = o.khbianma.ToString();
|
|
DataTable tthzfxDt = ServiceContainer.GetService<IZongJian>().GetTTHZJG(o.htbm.ToString());
|
|
//DataTable tthzfxDt = Newtonsoft.Json.JsonConvert.DeserializeObject(tthzdtStr, typeof(DataTable)) as DataTable;
|
|
re.Load(System.Windows.Forms.Application.StartupPath + "\\Report\\tthzfx.frx");
|
|
re.SetParameterValue("khmc", khmc);
|
|
re.RegisterData(tthzfxDt, "Table");
|
|
re.Preview = previewControl1;
|
|
re.Refresh();
|
|
re.Show();
|
|
}
|
|
}
|
|
}
|
|
}
|