62,046
社区成员
发帖
与我相关
我的任务
分享
string update = "update ems_xp set a.property_num='" + this.资产.Value + "',a.Section_num='" + this.部门管理编号.Value + "',a.sn='" + this.序列号.Value + "',b.ip='" + this.IP地址.Value + "',b.mac='" + this.MAC.Value + "',b.hostname='" + this.电脑名.Value + "',a.model='" + this.型号.Value + "',a.type_s='" + this.类型.Value + "',a.Supplier='" + this.品牌.Value + "',a.cpu='" + this.CPU.Value + "',a.hdd='" + this.硬盘.Value + "',a.memory='" + this.内存.Value + "',a.statuss='" + this.资产状态.Value + "',a.takes='" + this.使用担当.Value + "',a.contact='" + this.联络员.Value + "',a.Acquire_date='" + this.取得日期.Value + "',a.update_time='" + this.更新日期.Value + "',a.position='" + this.位置.Value + "',a.is_null='" + this.资产有无.Value + "',a.is_num='" + this.有无标签.Value + "',b.floor='" + this.楼层.Value + "' from ems_xp as a inner join macip as b on a.property_num=b.bh";
SqlCommand cmd=new SqlCommand(update,strcon);
cmd.ExecuteNonQuery();
string update = "update ems_xp a set a.property_num='" + this.资产.Value + "',a.Section_num='" + this.部门管理编号.Value + "',a.sn='" + this.序列号.Value + "',b.ip='" + this.IP地址.Value + "',b.mac='" + this.MAC.Value + "',b.hostname='" + this.电脑名.Value + "',a.model='" + this.型号.Value + "',a.type_s='" + this.类型.Value + "',a.Supplier='" + this.品牌.Value + "',a.cpu='" + this.CPU.Value + "',a.hdd='" + this.硬盘.Value + "',a.memory='" + this.内存.Value + "',a.statuss='" + this.资产状态.Value + "',a.takes='" + this.使用担当.Value + "',a.contact='" + this.联络员.Value + "',a.Acquire_date='" + this.取得日期.Value + "',a.update_time='" + this.更新日期.Value + "',a.position='" + this.位置.Value + "',a.is_null='" + this.资产有无.Value + "',a.is_num='" + this.有无标签.Value + "',b.floor='" + this.楼层.Value + "' from ems_xp as c inner join macip as b on c.property_num=b.bh";
SqlCommand cmd=new SqlCommand(update,strcon);
cmd.ExecuteNonQuery();