net防伪码导出

2021-02-06 06:16

阅读:517

标签:man   ble   eval   get   ack   web   tail   pre   form   

S_CodeListFilterModel model = new S_CodeListFilterModel();
model.batchCode = Request.Form["batchparam"];

var cookieValueArray = CookieManager.GetKey(Request, "whmp_web").Split(‘_‘);
var gid = int.Parse(cookieValueArray[0]);

string str = string.Format(@" select a.ExpressCode as ‘物流码‘,SecurityCode as ‘防伪码‘,‘{2}‘+SecurityCode as ‘小溯源码‘,‘{3}‘+BoxCodes as ‘箱物流码‘,
‘{4}‘+BoxCodes AS ‘箱溯源码‘ from whmp_web_securityCode_PackingDetails a join (select * from whmp_web_securitycode where gid={0} and batchcode=‘{1}‘) as b on a.ExpressCode=b.ExpressCode where b.gid={0} and b.batchcode=‘{1}‘ order by a.ExpressCode", gid, model.batchCode, "http://" + Request.Url.Host + "/Platform/ScanCode?f=", "xx=", "http://" + "" + Request.Url.Host + "/Platform/Scancode?XX=");

DataTable dt = SystemDBInfo.WHDBSqlInstance.GetDataTableBySQL(str);
DateTime time = DateTime.Now;
ExportToExcelHelper.ResponseExcel("防伪码按批次(" + time.Year + "-" + time.Month + "-" + time.Day + ").xlsx", dt);

net防伪码导出

标签:man   ble   eval   get   ack   web   tail   pre   form   

原文地址:https://www.cnblogs.com/-lsf/p/13118181.html


评论


亲,登录后才可以留言!