套打常用脚本


1:供应链客户联系人问题




(1)      由于采购订单中无供应商联系人,首先需要在字段中添加对应字段;

(2)      供应商联系人需要根据单据中的供应商信息做关联,所以需要在计算公式中定义字段取值,SQL如下:


select top 1 t2.fcontactperson from T_BD_SupplierPurchaseInfo t1 
left join T_BD_SupplierLinkMan t2 on t1.fid=t2.fSupplierPurchaseid 
where t1.fpurchaseorgid=#0 and t1.fsupplierid=#1 and t2.fid Is not null
 
 

其中传入的值purchaseorgunit.id (#0)    supplier.id(#1)


2 . 套打




var a=getValue();
if(a)
{
cell44.setValue("是");
}
else
{
cell44.setValue("否");
}


猜你喜欢

转载自blog.csdn.net/tanrt/article/details/78789477