tijian_jichuang/Code/KeFu/frmShouQuanXiuGai.cs
2025-02-20 11:54:48 +08:00

47 lines
1.4 KiB
C#

using SOH.Kernel;
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 EAS;
using EAS.Data;
using EAS.Services;
using SOH.Entities.DTO;
namespace SOH.KeFu
{
[ModuleAttribute(ModuleID = "5F97DE83-17E0-410D-A70C-EB2A06592C54", ModuleName = "修改授权")]
public partial class frmShouQuanXiuGai : SOH.Window.baseChildForm
{
public frmShouQuanXiuGai()
{
InitializeComponent();
}
private void btn_cx_Click(object sender, EventArgs e)
{
var vser = ServiceContainer.GetService<SOH.BLL.IQianTai>();
string data = vser.gettjxx(dtp_tjrq.Value.Date, txt_tmh.Text);
List<SOH.Entities.DTO.dto_gzb> gzbs = Newtonsoft.Json.JsonConvert.DeserializeObject<List<SOH.Entities.DTO.dto_gzb>>(data);
dtogzbBindingSource.DataSource = gzbs;
}
private void frmShouQuanXiuGai_Load(object sender, EventArgs e)
{
dgvAll.AutoGenerateColumns = false;
}
private void dgvAll_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
{
dto_gzb gzb = dgvAll.Rows[e.RowIndex].DataBoundItem as dto_gzb;
frmtjjg tjjg = new frmtjjg(gzb.tm);
tjjg.showcd = true;
tjjg.ShowDialog();
}
}
}