XDFZ/GetGuest.cs
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using BLL;
using Model;
using CommonTools;
using DAL;
namespace XDFZ
{
public partial class GetGuest : Form
{
DataTable binddt = new DataTable();
public GetGuest()
{
InitializeComponent();
binddt.Columns.Add("客户名称");
binddt.Columns.Add("联系人");
binddt.Columns.Add("联系电话");
binddt.Columns.Add("联系地址");
}
private void GetGuest_Load(object sender, EventArgs e)
{
this.winGridView1.AppendedMenu = this.contextMenuStrip1;
this.winGridView1.AddColumnAlias("客户名称", "客户名称");
this.winGridView1.AddColumnAlias("联系人", "联系人");
this.winGridView1.AddColumnAlias("联系电话", "联系电话");
this.winGridView1.AddColumnAlias("联系地址", "联系地址");
this.winGridView1.PrintTitle = "客源统计报表";
this.winGridView1.DataSource = binddt.DefaultView;
}
private void button1_Click(object sender, EventArgs e)
{
this.binddt.Rows.Clear();
DataTable mdt = CommonProxy.GetGuestInfo();
if (mdt != null && mdt.Rows.Count > 0)
{
for (int i = 0; i < mdt.Rows.Count; i++)
{
DataRow dr = binddt.Rows.Add();
if (!string.IsNullOrEmpty(mdt.Rows[i]["GuestName"].ToString()))
{
dr["客户名称"] = mdt.Rows[i]["GuestName"].ToString();
}
if (!string.IsNullOrEmpty(mdt.Rows[i]["RelaPerson"].ToString()))
{
dr["联系人"] = mdt.Rows[i]["RelaPerson"].ToString();
}
if (!string.IsNullOrEmpty(mdt.Rows[i]["Tel"].ToString()))
{
dr["联系电话"] = mdt.Rows[i]["Tel"].ToString();
}
if (!string.IsNullOrEmpty(mdt.Rows[i]["Address"].ToString()))
后面还有 42 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。