net防伪码导出
2021-02-06 06:16
                         标签:man   ble   eval   get   ack   web   tail   pre   form     S_CodeListFilterModel model = new S_CodeListFilterModel();             var cookieValueArray = CookieManager.GetKey(Request, "whmp_web").Split(‘_‘);             string str = string.Format(@" select a.ExpressCode as ‘物流码‘,SecurityCode as ‘防伪码‘,‘{2}‘+SecurityCode as ‘小溯源码‘,‘{3}‘+BoxCodes as ‘箱物流码‘,             DataTable dt = SystemDBInfo.WHDBSqlInstance.GetDataTableBySQL(str); net防伪码导出 标签:man   ble   eval   get   ack   web   tail   pre   form    原文地址:https://www.cnblogs.com/-lsf/p/13118181.html
            model.batchCode = Request.Form["batchparam"];
            var gid = int.Parse(cookieValueArray[0]);
                                         ‘{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=");
            DateTime time = DateTime.Now;
            ExportToExcelHelper.ResponseExcel("防伪码按批次(" + time.Year + "-" + time.Month + "-" + time.Day + ").xlsx", dt);