使用diskpart命令Win+R键运行cmd,进入命令行界面:1.diskpart2.list disk 查看有几块硬盘3.select disk 0 选择第一块硬盘4.detail disk 显示选择的硬盘详细信息(显示的第一行是硬盘型号,第二行ID是序列号.) 5.若有多块硬盘,返回第3步继续下面操作. https://blog.csdn.net/hellokandy/article/details/78460511
/* server: db: EDI */ -- 以下案例多次查询同一张表,仅有Name条件不同 --可以使用一次查出相关类容避免长时间占用表 USE EDI GO DECLARE @FileTypeID_X12850 int ,@FileTypeID_X12832 int ,@FileTypeID_X12846 int SELECT TOP 1 @FileTypeID_X12850 = ID FROM dbo.EDI_CFG_FileType WITH(NOLOCK) WHERE Name='
/* server: db: EDI */ -- 以下案例多次查询同一张表,仅有组合条件Name+Direction不同 --可以使用一次查出相关类容避免长时间占用表 USE EDI GO DECLARE @OutBoundBusinessID_PO int ,@InboundBusinessID_ItemCatalog int ,@InboundBusinessID_Inventory int ,@InboundBusinessID_ShipNotice int ,@InboundBusine
首先引入服务 然后 调用 本文转载自http://blog.sina.com.cn/s/blog_7eeb43210101hf7f.html public class Computer { public static string CpuID; //1.cpu序列号 public static string MacAddress; //2.mac序列号 public static string DiskID; //3.硬盘id public static string IpAddress; //
上班很忙,自己做个记录 代码如下: 需要引入:System.Management 代码如下: using System; using System.Collections.Generic; using System.Linq; using System.Management; using System.Text; using System.Threading.Tasks; namespace KMHC.Infrastructure { public class Computer { public
sql如下: SELECT t.*,d.name as "workName" FROM t_traceability_slice t LEFT JOIN sys_department d ON t.workshop_code = d.code WHERE t.del_flag = '0' AND t.enterprise_id = 81 AND ( t.production_Batch LIKE '%B463463543525%' OR t.import_Batch LIKE '%B4
// 注意:首先要在项目bin目录中添加引用 System.Management using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Management; /// <summary>///Computer 的摘要说明/// </summary> public class Computer{ public string CpuID; //CPU的I
一.程序直接生成: 使用jdk中的concurrent包可以轻松实现唯一数字型ID的生成,且无需考虑单例.采用高效率的CAS无需考虑synchronized关键字 import java.util.concurrent.atomic.AtomicLong; public class UniqueID { private static AtomicLong uniqeid = new AtomicLong(0); public static long getNextID() { return un