码迷,mamicode.com
首页 > 其他好文 > 详细

导出到Excel

时间:2014-06-11 10:35:09      阅读:179      评论:0      收藏:0      [点我收藏+]

标签:tar   ext   get   art   name   for   

void clicked()
{
int ret;
InventSum1 curSum;
utcDatetime start=dateTimeUtil::utcNow();
container conRec,conItem,conHeader;
inventTable curITable
;
conHeader=["物料编号","物料名称","规格","单位","仓库","库位","批号","物理库存","物理预留","实际可用","供应商编号","供应商名称"];
for(curSum=inventSum1_ds.getFirst(1) ? inventSum1_ds.getFirst(1) : inventSum1_ds.cursor()
;curSum;curSum=inventSum1_ds.getNext()){
if(curSum.SumOfPhysicalInvent!=0 || curSum.SumOfAvailPhysical!=0){
curITable=inventTable::find(curSum.ItemId);
conItem=conNull();
conItem +=curSum.ItemId;
conItem +=curITable.itemName;
conItem +=curITable.Spec;
conItem +=curITable.inventUnitId();
conItem +=curSum.InventLocationId;
conItem +=curSum.wMSLocationId;
conItem +=curSum.inventBatchId;
conItem +=curSum.SumOfPhysicalInvent;
conItem +=curSum.SumOfReservPhysical;
conItem +=curSum.SumOfAvailPhysical;
conItem +=curSum.VendAccount();
conItem +=curSum.vendname();
conRec=conPoke(conRec,conLen(conRec)+1,conItem);
}
}
exportCon2Xls(conRec,conHeader);
return;
}

导出到Excel,布布扣,bubuko.com

导出到Excel

标签:tar   ext   get   art   name   for   

原文地址:http://www.cnblogs.com/AllenFeng/p/3772927.html

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