码迷,mamicode.com
首页 > Web开发 > 详细

net防伪码导出

时间:2020-06-13 17:32:04      阅读:64      评论:0      收藏:0      [点我收藏+]

标签: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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!