投料单携带生产任务单上的信息

栏目:k3wise知识作者:金蝶来源:金蝶云社区发布:2024-09-16浏览:1

投料单携带生产任务单上的信息

/*
投料单携带生产任务单上的信息
*/
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 '%生产...
点击下载文档
确认删除?
回到顶部
客服QQ
  • 客服QQ点击这里给我发消息