投料单携带生产任务单上的信息原创
3人赞赏了该文章
344次浏览
编辑于2022年03月18日 08:24:39
/*
投料单携带生产任务单上的信息
*/
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';
赞 3
3人点赞
还没有人点赞,快来当第一个点赞的人吧!
打赏
0人打赏
还没有人打赏,快来当第一个打赏的人吧!
推荐阅读