投料单携带生产任务单上的信息
/*
投料单携带生产任务单上的信息
*/
SELECT *
FROM dbo.ICTransactionType
WHERE FName LIKE '%生产投料%'
OR FName LIKE '%生产任务单%';
SELECT FRelationID,
FAction,
FFieldName,
FCaption,
*
FROM dbo.ICTemplate
WHERE FID = 'Y02'
AND
(
FCaption LIKE '销售订单号:'
OR FFieldName LIKE '%SELF%'
OR FFieldName LIKE '%FICMOInterID%'
OR FFieldName LIKE '%FSEBillno%'
OR FFieldName LIKE '%FSEBillName%'
)
ORDER BY FCaption;
SELECT FFieldName,
FCaption,
*
FROM dbo.ICTemplate
WHERE FID = 'J01'
AND
(
FFieldName LIKE '%HEADSELF%'
OR FFieldName LIKE '%FICMOInterID%'
OR FFieldName LIKE '%FSEBILLNO%'
)
ORDER BY FCaption;
--更新FRelationID='FICMOInterID'
UPDATE dbo.ICTemplate
SET FRelationID = 'FICMOInterID'
WHERE FID = 'Y02'
AND FFieldName LIKE '%FHeadSelfY02%'
AND FRelationID = ''
AND FAction = '';
--电话1
UPDATE dbo.ICTemplate
SET FAction = '.,FHeadSelfJ01103'
WHERE FID = 'Y02'
AND FFieldName = 'FHeadSelfY0231';
--电话2
UPDATE dbo.ICTemplate
SET FAction = '.,FHeadSelfJ01103'
WHERE FID = 'Y02'
AND FFieldName = 'FHeadSelfY0232';
--购货单位
UPDATE dbo.ICTemplate
SET FAction = '.,FHeadSelfJ0199'
WHERE FID = 'Y02'
AND FFieldName = 'FHeadSelfY0227';
--交货地址
UPDATE dbo.ICTemplate
SET FAction = '.,FHeadSelfJ01105'
WHERE FID = 'Y02'
AND FFieldName = 'FHeadSelfY0233';
--联系人
UPDATE dbo.ICTemplate
SET FAction = '.,FHeadSelfJ01102'
WHERE FID = 'Y02'
AND FFieldName = 'FHeadSelfY0230';
--运输方式
UPDATE dbo.ICTemplate
SET FAction = '.,FHeadSelfJ01100'
WHERE FID = 'Y02'
AND FFieldName = 'FHeadSelfY0228';
--运输公司
UPDATE dbo.ICTemplate
SET FAction = '.,FHeadSelfJ01101'
WHERE FID = 'Y02'
AND FFieldName = 'FHeadSelfY0229';
投料单携带生产任务单上的信息
/*投料单携带生产任务单上的信息*/SELECT *FROM dbo.ICTransactionTypeWHERE FName LIKE '%生产投料%' OR FName LIKE '%生产...
点击下载文档
本文2024-09-16 15:28:54发表“k3wise知识”栏目。
本文链接:https://wenku.my7c.com/article/kingdee-k3wise-3072.html
您需要登录后才可以发表评论, 登录登录 或者 注册
最新文档
热门文章