2008年10月23日星期四
AIX下一个完整的QAD备份方案
目标:1 星期1-6再线备份 并按日期生成备份文件
2 自动恢复到测试数据库中
3 星期7停数据完整备份
4 每天自动把备份文件转到其它机器上
步骤
1在/APP/SCRIPTS/建立PROBACKUP文件内容作用再线备份数据库
cd /backup/db
mkdir -m 777 ol`date +%y%m%d`
cd ol`date +%y%m%d`
mk -m 777 `date +%y%m%d`backuplist
echo `date +%y%m%d`02 >> `date +%y%m%d`backuplist
echo `date +%y%m%d`03 >> `date +%y%m%d`backuplist
echo `date +%y%m%d`04 >> `date +%y%m%d`backuplist
echo `date +%y%m%d`05 >> `date +%y%m%d`backuplist
echo `date +%y%m%d`06 >> `date +%y%m%d`backuplist
echo `date +%y%m%d`07 >> `date +%y%m%d`backuplist
echo `date +%y%m%d`08 >> `date +%y%m%d`backuplist
echo `date +%y%m%d`09 >> `date +%y%m%d`backuplist
echo `date +%y%m%d`10 >> `date +%y%m%d`backuplist
date >> /app/scripts/logs/probkup.log
/app/progress/91e/bin/probkup online /app/mfgpro/eb21/db/(数据库名称) `date +%y%m%d`0
1 < `date +%y%m%d`backuplist -vs 200000 >> /app/scripts/logs/probkup.log
2 在/APP/SCRIPTS/建立PROREST(作用恢复到BUFF数据库)
cd /app/mfgpro/eb21/dbbuff
rm -rf /app/mfgpro/eb21/dbbuff/mfgbuff*.b*
rm -rf /app/mfgpro/eb21/dbbuff/mfgbuff*.d*
rm -rf /app/mfgpro/eb21/dbbuff/mfgbuff*.l*
echo /backup/db/ol`date +%y%m%d`/`date +%y%m%d`02 >> restlist
echo /backup/db/ol`date +%y%m%d`/`date +%y%m%d`03 >> restlist
echo /backup/db/ol`date +%y%m%d`/`date +%y%m%d`04 >> restlist
echo /backup/db/ol`date +%y%m%d`/`date +%y%m%d`05 >> restlist
echo /backup/db/ol`date +%y%m%d`/`date +%y%m%d`06 >> restlist
echo /backup/db/ol`date +%y%m%d`/`date +%y%m%d`07 >> restlist
echo /backup/db/ol`date +%y%m%d`/`date +%y%m%d`08 >> restlist
echo /backup/db/ol`date +%y%m%d`/`date +%y%m%d`09 >> restlist
echo /backup/db/ol`date +%y%m%d`/`date +%y%m%d`10 >> restlist
date >> /app/scripts/logs/prorestbuff.log
/app/progress/91e/bin/prorest /app/mfgpro/eb21/dbbuff/mfgbuff /backup/db/ol`date
+%y%m%d`/`date +%y%m%d`01 <>> /app/scripts/logs/prorestbuff.log
3 在/APP/SCRIPTS/建立PROCOPYDB(作用全备数据库)
/app/progress/91e/bin/procopy /app/mfgpro/eb21/db/mfgprod /backup/db/mfgprod > /backup/db/procopy`date +%y%m%d`.log/app/progress/91e/bin/procopy /app/mfgpro/eb21/db/admprod /backup/db/admprod >>/backup/db/procopy`date +%y%m%d`.log/app/progress/91e/bin/procopy /app/mfgpro/eb21/db/hlpprod /backup/db/admprod >>/backup/db/procopy`date +%y%m%d`.log
4在/APP/SCRIPTS/建立truncatebi(作用全备后truncatebi数据库)
/app/progress/91e/bin/proutil /app/mfgpro/eb21/db/mfgprod -C truncate bi >> /app/scripts/logs/prodtruncate.log
5在/APP/SCRIPTS/建立probackup(作用转存)
ftp -n <open 192.168.1.16 (IP)
user 用户 密码
bin
prompt
mput *
bye
EOF
6输入CRONTAB -E 加入执行时间
05 00 * * 1-6 /app/scripts/PROBACKUP
25 01 * * 1-6 /app/mfgpro/eb21/stop.buff
30 01 * * 1-6 /app/scripts/PROREST
25 04 * * 1-6 /app/mfgpro/eb21/start.buff
05 01 * * 0 /app/mfgpro/eb21/stop.buff
15 01 * * 0 /app/mfgpro/eb21/stop.buff
30 01 * * 0 /app/scripts/PROCOPYDB
15 05 * * 0 /app/scripts/truncatebi
05 06 * * 0 /app/mfgpro/eb21/start.buff
15 06 * * 0 /app/mfgpro/eb21/start.buff
00 07 * * * /app/scripts/probackup
2 自动恢复到测试数据库中
3 星期7停数据完整备份
4 每天自动把备份文件转到其它机器上
步骤
1在/APP/SCRIPTS/建立PROBACKUP文件内容作用再线备份数据库
cd /backup/db
mkdir -m 777 ol`date +%y%m%d`
cd ol`date +%y%m%d`
mk -m 777 `date +%y%m%d`backuplist
echo `date +%y%m%d`02 >> `date +%y%m%d`backuplist
echo `date +%y%m%d`03 >> `date +%y%m%d`backuplist
echo `date +%y%m%d`04 >> `date +%y%m%d`backuplist
echo `date +%y%m%d`05 >> `date +%y%m%d`backuplist
echo `date +%y%m%d`06 >> `date +%y%m%d`backuplist
echo `date +%y%m%d`07 >> `date +%y%m%d`backuplist
echo `date +%y%m%d`08 >> `date +%y%m%d`backuplist
echo `date +%y%m%d`09 >> `date +%y%m%d`backuplist
echo `date +%y%m%d`10 >> `date +%y%m%d`backuplist
date >> /app/scripts/logs/probkup.log
/app/progress/91e/bin/probkup online /app/mfgpro/eb21/db/(数据库名称) `date +%y%m%d`0
1 < `date +%y%m%d`backuplist -vs 200000 >> /app/scripts/logs/probkup.log
2 在/APP/SCRIPTS/建立PROREST(作用恢复到BUFF数据库)
cd /app/mfgpro/eb21/dbbuff
rm -rf /app/mfgpro/eb21/dbbuff/mfgbuff*.b*
rm -rf /app/mfgpro/eb21/dbbuff/mfgbuff*.d*
rm -rf /app/mfgpro/eb21/dbbuff/mfgbuff*.l*
echo /backup/db/ol`date +%y%m%d`/`date +%y%m%d`02 >> restlist
echo /backup/db/ol`date +%y%m%d`/`date +%y%m%d`03 >> restlist
echo /backup/db/ol`date +%y%m%d`/`date +%y%m%d`04 >> restlist
echo /backup/db/ol`date +%y%m%d`/`date +%y%m%d`05 >> restlist
echo /backup/db/ol`date +%y%m%d`/`date +%y%m%d`06 >> restlist
echo /backup/db/ol`date +%y%m%d`/`date +%y%m%d`07 >> restlist
echo /backup/db/ol`date +%y%m%d`/`date +%y%m%d`08 >> restlist
echo /backup/db/ol`date +%y%m%d`/`date +%y%m%d`09 >> restlist
echo /backup/db/ol`date +%y%m%d`/`date +%y%m%d`10 >> restlist
date >> /app/scripts/logs/prorestbuff.log
/app/progress/91e/bin/prorest /app/mfgpro/eb21/dbbuff/mfgbuff /backup/db/ol`date
+%y%m%d`/`date +%y%m%d`01 <>> /app/scripts/logs/prorestbuff.log
3 在/APP/SCRIPTS/建立PROCOPYDB(作用全备数据库)
/app/progress/91e/bin/procopy /app/mfgpro/eb21/db/mfgprod /backup/db/mfgprod > /backup/db/procopy`date +%y%m%d`.log/app/progress/91e/bin/procopy /app/mfgpro/eb21/db/admprod /backup/db/admprod >>/backup/db/procopy`date +%y%m%d`.log/app/progress/91e/bin/procopy /app/mfgpro/eb21/db/hlpprod /backup/db/admprod >>/backup/db/procopy`date +%y%m%d`.log
4在/APP/SCRIPTS/建立truncatebi(作用全备后truncatebi数据库)
/app/progress/91e/bin/proutil /app/mfgpro/eb21/db/mfgprod -C truncate bi >> /app/scripts/logs/prodtruncate.log
5在/APP/SCRIPTS/建立probackup(作用转存)
ftp -n <
user 用户 密码
bin
prompt
mput *
bye
EOF
6输入CRONTAB -E 加入执行时间
05 00 * * 1-6 /app/scripts/PROBACKUP
25 01 * * 1-6 /app/mfgpro/eb21/stop.buff
30 01 * * 1-6 /app/scripts/PROREST
25 04 * * 1-6 /app/mfgpro/eb21/start.buff
05 01 * * 0 /app/mfgpro/eb21/stop.buff
15 01 * * 0 /app/mfgpro/eb21/stop.buff
30 01 * * 0 /app/scripts/PROCOPYDB
15 05 * * 0 /app/scripts/truncatebi
05 06 * * 0 /app/mfgpro/eb21/start.buff
15 06 * * 0 /app/mfgpro/eb21/start.buff
00 07 * * * /app/scripts/probackup
2008年10月22日星期三
AIX下把每天备份的程序自动转存到其它机器
1目标机器上开启FTP及用户名
2 在AIX的SCRIPTS先建立个文件如BACK内容如下
cd /backup/db/ol`date +%y%m%d` /进入备份文件目录/
ftp -n <open IP /输入备份文件目标的机器IP就是你要转存的机器/
user 用户 密码 /输入用户名密码/
bin /使用二进制文件传输方式/
prompt
mput *
bye
EOF
3 输入CRONTAB -E 加入行如
00 06 * * * /app/scripts/BACK /每天6点自动执行/
2 在AIX的SCRIPTS先建立个文件如BACK内容如下
cd /backup/db/ol`date +%y%m%d` /进入备份文件目录/
ftp -n <
user 用户 密码 /输入用户名密码/
bin /使用二进制文件传输方式/
prompt
mput *
bye
EOF
3 输入CRONTAB -E 加入行如
00 06 * * * /app/scripts/BACK /每天6点自动执行/
2008年10月17日星期五
PT_MSTR表字段说明
Item Master
Field Name Field Label Datatype Format Extent Default Description
pt_part 零件号 character x(18) 1 该零件或产品的代码
pt_desc1 描述 character x(24) 1 该零件的第一描述行
pt_desc2 描述 character x(24) 1 该零件的第二描述行
pt_um UM character x(2) 1 个 该零件的库存计量单位
pt__qad13 ? character x(2) 1 Not used, reserved for qad use.
pt__qad12 ? decimal >>>>9.9999<<<< 1 0 Not used, reserved for qad use.
pt_draw 图纸 character x(18) 1 该零件的图纸代码
pt_prod_line 产品类 character x(4) 1 该零件所属的产品类
pt_group 产品组 character x(8) 1 用于报表的该零件的产品组
pt_part_type 零件类型 character x(8) 1 用于特性相似的零件分组的代码
pt_status 状态 character x(2) 1 用户定义的零件工程状态: Active(活动), Inactive(不活动),...
pt_abc ABC 类型 character x(1) 1 零件的 ABC 分类法, 可用于计算
pt_iss_pol 发放原则 logical yes/no 1 yes 该零件是否打印在领料单上
pt_phantom 虚零件 logical yes/no 1 no 该零件是否是虚零件
pt_loc 库位 character x(8) 1 该零件存放的缺省库位代码
pt__qad01 ? decimal ->,>>>,>>9.9<<<<<<<< 1 0 Not used, reserved for qad use.
pt__qad02 ? decimal ->,>>>,>>9.9<<<<<<<< 1 0 Not used, reserved for qad use.
pt_abc_amt ABC 值 decimal ->,>>>,>>9.9<<<<<<<< 1 0 Field used internally for ABC classification.
pt__qad03 ? decimal ->>>,>>9.999 1 0 Not used, reserved for qad use.
pt__qad04 ? decimal ->>>,>>9.999 1 0 Not used, reserved for qad use.
pt_avg_int 平均间隔 integer >>9 1 90 用于计算间隔的平均天数
pt__qad05 ? date 99/99/99 1 today Not used, reserved for qad use.
pt_cyc_int 盘点周期间隔 integer >>9 1 120 该零件盘点周期之间的日历天数
pt__qad06 ? date 99/99/99 1 ? Not used, reserved for qad use.
pt__qad07 ? date 99/99/99 1 ? Not used, reserved for qad use.
pt__qad08 ? date 99/99/99 1 ? Not used, reserved for qad use.
pt_ms 主生产计划 logical yes/no 1 yes 该零件是否在主生产计划中出现
pt_plan_ord 计划订单 logical yes/no 1 yes 物料需求计划是否需要对该零件生成计划订单
pt_mrp 需要 MRP logical yes/no 1 no 该零件是否需要 MRP 计划
pt_ord_pol 订货原则 character x(3) 1 POQ 物料需求计划中的订货原则代码
pt_ord_qty 订货数量 decimal >>,>>>,>>9 1 0 物料需求计划中 FOQ 订货原则的订货数量
pt_ord_per 订货周期 integer >>9 1 7 物料需求计划中 POQ 订货原则需要的天数
pt_sfty_stk 安全库存 decimal >>,>>>,>>9 1 0 最小的库存留量
pt_sfty_time 安全时间 decimal >>9 1 0 到期日与需求日之间差的天数
pt_rop 订货点 decimal >>>,>>9 1 0 该库存量立即反映到订货报表
pt_buyer 采购员/计划员 character x(8) 1 负责计划该零件的人
pt_vend 供应商 character x(8) 1 该零件的主要供应商的地址代码
pt__qad09 ? decimal ->,>>>,>>9.9<<<<<<<< 1 0 Not used, reserved for qad use.
pt_pm_code 采/制 character x(1) 1 该零件的采购/制造代码(P, M, R, C, F)
pt_mfg_lead 制造LT decimal >>9 1 0 制造该零件需要的天数
pt_pur_lead 采购LT integer >>9 1 0 完成该零件采购单所需的日期
pt_insp_rqd 检验 logical yes/no 1 no 采购件进货是否需要检验
pt_insp_lead 检验LT integer >>9 1 0 为了检验而加到采购提前期的天数
pt_cum_lead 提前期 integer >>9 1 0 该零件关键路径的前期
pt_ord_min 最小订量 decimal >>,>>>,>>9 1 0 该零件的最小订货量
pt_ord_max 最大订量 decimal >>,>>>,>>9 1 0 该零件的最大订货数量
pt_ord_mult 订单倍数 decimal >>,>>>,>>9 1 0 用于物料需求计划中批量订货数量的倍数
pt_yield_pct 合格 % decimal >>9.99% 1 100 可以接受的订单百分比
pt__qad16 ? decimal >>>,>>9.9 1 0 Not used, reserved for qad use.
pt_setup 准备时间 decimal >>>,>>9.999<<<<<< 1 0 一批该零件需要的标准的准备时间
pt_setup_ll 低层准备时间 decimal >>>,>>9.999<<<<<< 1 0 累加的各层的准备时间
pt_run_ll 低层加工时间 decimal >>>,>>9.999<<<<<< 1 0 累加的各低层零件加工的时间
pt_run 加工时间 decimal >>>,>>9.999<<<<<< 1 0 加工一个零件需要的标准加工小时数
pt_price 价格 decimal >>>>,>>>,>>9.99<<< 1 0 该零件的正常销售价
pt_xmtl_tl 当前本层物料成本 decimal >>>>,>>>,>>9.99<<< 1 0 Not used. The current cost of material added at this level.
pt_xlbr_tl 当前本层人工成本 decimal >>>>,>>>,>>9.99<<< 1 0 Not used. The current cost of labor added at this level.
pt_xbdn_tl 当前本层附加成本 decimal >>>>,>>>,>>9.99<<< 1 0 Not used. The current cost of burden added at this level.
pt_xsub_tl 当前本层转包成本 decimal >>>>,>>>,>>9.99<<< 1 0 Not used. The current cost of subcontracting added at this level.
pt_xmtl_ll 当前低层物料成本 decimal >>>>,>>>,>>9.99<<< 1 0 Not used. The accumulated current cost of material from all lower level
pt_xlbr_ll 当前低层人工成本 decimal >>>>,>>>,>>9.99<<< 1 0 Not used. The accumulated current cost of labor from all lower level co
pt_xbdn_ll 当前低层附加成本 decimal >>>>,>>>,>>9.99<<< 1 0 Not used. The accumulated burden cost from all lower level components.
pt_xsub_ll 当前低层转包成本 decimal >>>>,>>>,>>9.99<<< 1 0 Not used. The accumulated current cost of subcontracting for all lower
pt_xtot_cur 本层低层总成本 decimal >>>>,>>>,>>9.99<<< 1 0 Not used. The sum of current costs for this level and all lower levels.
pt_cur_date 当期成本更新日 date 99/99/99 1 ? 当期成本更新的日期
pt_xmtl_stdtl 标准本层物料成本 decimal >>>>,>>>,>>9.99<<< 1 0 Not used. The standard material cost for this item.
pt_xlbr_stdtl 标准本层人工成本 decimal >>>>,>>>,>>9.99<<< 1 0 Not used. The standard cost of labor for this item.
pt_xbdn_stdtl 标准本层附加成本 decimal >>>>,>>>,>>9.99<<< 1 0 Not used. The standard burden cost for this item.
pt_xsub_stdtl 标准本层转包成本 decimal >>>>,>>>,>>9.99<<< 1 0 Not used. The standard cost of subcontracting for this item.
pt_xtot_std 标准总成本 decimal >>>>,>>>,>>9.99<<< 1 0 Not used. The sum of this level and lower level standard costs for this
pt_std_date 标准成本更新日 date 99/99/99 1 ? 上次标准成本更新的日期
pt_ll_code 低层 integer ->>>>>9 1 0 物料需求计划用于记录最低层零件的代码
pt_abc_qty ABC 数量 decimal ->,>>>,>>9.9<<<<<<<< 1 0 Field used internally for ABC classification.
pt__qad10 ? decimal ->,>>>,>>9.9<<<<<<<< 1 0 Not used, reserved for qad use.
pt__qad11 ? decimal ->,>>>,>>9.9<<<<<<<< 1 0 Not used, reserved for qad use.
pt_routing 工艺流程代码 character x(18) 1 该零件的缺省工艺流程代码
pt_lot_ser 批/序号控制 character x(1) 1 该零件是否需要批序号
pt_timefence 时界 integer ->>>9 1 0 无计划单生成的天数
pt_xmtl_stdll 标准低层物料成本 decimal >>>>,>>>,>>9.99<<< 1 0 Not used. The accumulated standard cost of material from all lower leve
pt_xlbr_stdll 标准低层人工成本 decimal >>>>,>>>,>>9.99<<< 1 0 Not used. The accumulated standard cost of labor from all lower levels.
pt_xbdn_stdll 标准低层附加成本 decimal >>>>,>>>,>>9.99<<< 1 0 Not used. The accumulated standard cost of burden from all lower levels
pt_xsub_stdll 标准低层转包成本 decimal >>>>,>>>,>>9.99<<< 1 0 Not used. The accumulated standard cost of subcontracting for all lower
pt_rev 版本 character x(2) 1 该零件的工程版本
pt_last_eco 上次工程变更 date 99/99/99 1 ? 该零件的上次工程变更单的日期
pt__qad15 ? logical yes/no 1 no Not used, reserved for qad use.
pt__qad17 ? logical yes/no 1 yes Not used, reserved for qad use.
pt_qc_lead 质量控制提前期 integer >>9 1 0 不使用, 原用于质量控制的提前期
pt_auto_lot 自动生成批号 logical yes/no 1 no 是否自动分配批号
pt_assay 检定 % decimal >>9.99% 1 0 零件正常检定的百分比
pt_batch 批处理量 decimal >>,>>>,>>9.9<<<<<<<< 1 1 用于物料清单和工艺流程的正常的批处理数量
pt__qad14 ? date 99/99/99 1 ? Not used, reserved for qad use.
pt_user3 用户3 character x(8) 1 不使用, 字段为用户定义和使用
pt_user1 Ufld1 character x(8) 1 用户字段 #1
pt_user2 Ufld2 character x(8) 1 用户字段 #2
pt_net_wt 净重 decimal ->>,>>9.99<<<< 1 0 The net weight of each unit of this item.
pt_net_wt_um 净重单位 character x(2) 1 The unit of measure for the item net weight.
pt_size 尺寸 decimal ->>,>>9.99 1 0 用户定义的该零件实际尺寸的代码
pt_size_um 尺寸单位 character x(2) 1 该零件尺寸的计量单位
pt_taxable 纳税 logical yes/no 1 yes 标识该零件是否应纳税
pt_taxc 税收代码 character x(1) 1 该零件的税收代码
pt_rollup 需向上累加 logical yes/no 1 no 标识该零件是否需要物料清单或工艺流程向上累加
pt_xovh_ll 当前低层间接成本 decimal >>>>,>>>,>>9.99<<< 1 0 Not used. The accumulated current cost of overhead from all lower level
pt_xovh_tl 当前本层间接成本 decimal >>>>,>>>,>>9.99<<< 1 0 Not used. The current cost of overhead added at this level.
pt_xovh_stdll 标准低层间接成本 decimal >>>>,>>>,>>9.99<<< 1 0 Not used. The accumulated standard overhead cost from all lower levels.
pt_xovh_stdtl 标准低层间接成本 decimal >>>>,>>>,>>9.99<<< 1 0 Not used. The standard overhead cost for this item.
pt_site 地点 character x(8) 1 该零件的缺省地点
pt_shelflife 保存期限 integer ->,>>>,>>> 1 0 该零件缺省的保存期限
pt_critical 关键零件 logical yes/no 1 no 划分该零件在加工单中是否是关键零件
pt_sngl_lot 单批备料 logical yes/no 1 no 库房是否必须单批备料
pt_upc 通用产品代码 character x(12) 1 该零件的通用价格代码
pt_hazard 危险品 character x(8) 1 该零件危险品代码
pt_added 加入日期 date 99/99/99 1 today 该零件加入系统的日期
pt__chr01 ? character x(8) 1 用户定义字符型字段 #1
pt__chr02 ? character x(8) 1 用户定义字符型字段 #2
pt__chr03 ? character x(8) 1 用户定义字符型字段 #3
pt__chr04 ? character x(8) 1 用户定义字符型字段 #4
pt__chr05 ? character x(8) 1 用户定义字符型字段 #5
pt__chr06 ? character x(8) 1 用户定义字符型字段 #6
pt__chr07 ? character x(8) 1 用户定义字符型字段 #7
pt__chr08 ? character x(8) 1 用户定义字符型字段 #8
pt__chr09 ? character x(8) 1 用户定义字符型字段 #9
pt__chr10 ? character x(8) 1 用户定义字符型字段 #10
pt__dte01 ? date 99/99/99 1 ? 用户定义日期字段 #1
pt__dte02 ? date 99/99/99 1 ? 用户定义日期字段 #2
pt__dec01 ? decimal >>>,>>>,>>9.99 1 0 用户定义十进制数字段 #1
pt__dec02 ? decimal >>>,>>>,>>9.99 1 0 用户定义十进制数字段 #2
pt__log01 ? logical yes/no 1 no 用户定义逻辑型字段 #1
pt__log02 ? logical yes/no 1 no 用户定义逻辑型字段 #2
pt__qad18 ? decimal >>>>,>>>,>>9.99<<< 1 0 Not used, reserved for qad use.
pt__qad21 ? decimal >>>>,>>>,>>9.99<<< 1 0 Not used, reserved for qad use.
pt__qad19 ? decimal >>>>,>>>,>>9.99<<< 1 0 Not used, reserved for qad use.
pt__qad20 ? decimal >>>>,>>>,>>9.99<<< 1 0 Not used, reserved for qad use.
pt_length 长度 decimal >>,>>9.99 1 0 The length of this item.
pt_height 高度 decimal >>,>>9.99 1 0 The height of this item.
pt_width 宽度 decimal >>,>>9.99 1 0 The width of this item.
pt_dim_um 容积计量单位 character x(2) 1 The dimensions unit of measure for this item.
pt_pkg_code 包装代码 character x(18) 1 A code, item number or description of packaging requirements.
pt_network 分销网 character x(18) 1
pt_ll_drp 分销低层 integer ->>>>>9 1 0 The low level value for this item in the distribution network.
pt_frt_class 运费类别 character x(8) 1 A code used for calculating freight charges.
pt_spec_hdlg 特别管理代码 character x(8) 1 A code indicating special handling requirements.
pt_bom_code 物料清单 character x(18) 1 The bill of material to use for this item.
pt_loc_type 库位类型 character x(8) 1 A code specifying special location requirements for this item.
pt_transtype 运输类型 character x(8) 1 A code specifying specific transportation requirements for this item.
pt_cover 包括 character x(1) 1 C
pt_unit_isb 已安装产品单位数量 logical yes/no 1 no
pt_article 货号 character x(18) 1 Article Number for waybills etc.
pt_po_site 采购地点 character x(8) 1 The default purchasing site for this item.
pt_ship_wt 运输重量 decimal ->>,>>9.99<<<< 1 0 The ship weight of each unit of this item.
pt_ship_wt_um 运输重量单位 character x(2) 1 The unit of measure for the item ship weight.
pt_formula 配料 logical yes/no 1 no Restricts items to use formula maintenance.
pt_dea DEA 控制 logical yes/no 1 no Identifies items strictly controlled by the FDA.
pt_byproduct 副产品 logical yes/no 1 no Identifies items produced as a result of some other items' production.
pt_coproduct 副产品 logical yes/no 1 no Identifies items yielded from another items' production process.
pt_wks_min 最少维护周数 integer >>9 1 0 The minimum number of weeks of forecasted requirements to hold.
pt_wks_max 最多维护周数 integer >>9 1 0 The maximum number of weeks of forecasted requirements to hold.
pt_wks_avg 平均维护周数 integer >>9 1 0 The average number of weeks of forecasted requirements to hold.
pt_comm_code 商品代码 character x(8) 1 The commodity code identifier used for centralized purchasing.
pt_inst_call 安装 logical yes/no 1 no Schedule installation call.
pt_sys_type 系统类型 character x(2) 1 Item Type
pt_tariff 关税 character x(8) 1 Tariff Number.
pt_origin 产地 character x(12) 1 Country where part was manufactured.
pt_sttr 修理时间 decimal ->>,>>9.99 1 0 Standard time to repair.
pt_mfg_mtbf 厂家平均故障时间 decimal ->>,>>9.99 1 0
pt_mfg_mttr 厂家平均修理时间 decimal ->>,>>9.99 1 0 Manufacturers MTTR.
pt_fru 现场换件 logical yes/no 1 no Field replaceable unit.
pt_ven_warr 供应商保修 logical yes/no 1 no Does this part have a supplier warranty.
pt_svc_group 服务组 character x(8) 1 Service group ...Generalized Codes
pt_svc_type 服务类型 character x(2) 1 P Service Type of this part
pt_mtbf 平均故障时间 decimal >>,>>9.99 1 0 Mean time between failures
pt_mttr 平均修理时间 decimal >>,>>9.99 1 0 Mean time to repair in hours
pt_isb 已安装产品 logical yes/no 1 no Should this part be transfer to installed base when shipped
pt_pvm_days 维护间隔天数 integer >>>>9 1 0 Days between preventative maintenance periods for this part
pt_warr_cd 保修代码 character x(8) 1 Warranty Code from the sv_mstr file (warranty)
pt_mod_date 修改日期 date 99/99/99 1 ? Date the record was last modified.
pt_userid 用户标志 character x(8) 1 The Userid of the last user to access this record.
pt_obs_date 废行日期 date 99/99/99 1 ?
pt_pvm_bom 维护物料单 character x(18) 1
pt_pvm_route 维护工艺流程 character x(18) 1
pt_pvm_um 单位 character x(2) 1
pt_rp_bom 维修物料单 character x(18) 1
pt_rp_route 维修工艺流程 character x(18) 1
pt_rp_vendor 维修代理 character x(8) 1
pt_domain 域
pt_bom_code pt_bom_code > pt_part
pt_desc Unique pt_desc1 > pt_desc2 > pt_part
pt_group Unique pt_group > pt_part
pt_ll_mrp_pt Unique pt_ll_code > pt_mrp > pt_part
pt_network pt_network > pt_part
pt_part Primary Unique pt_part
pt_part_type Unique pt_part_type > pt_part
pt_prod_part Unique pt_prod_line > pt_part
Field Name Field Label Datatype Format Extent Default Description
pt_part 零件号 character x(18) 1 该零件或产品的代码
pt_desc1 描述 character x(24) 1 该零件的第一描述行
pt_desc2 描述 character x(24) 1 该零件的第二描述行
pt_um UM character x(2) 1 个 该零件的库存计量单位
pt__qad13 ? character x(2) 1 Not used, reserved for qad use.
pt__qad12 ? decimal >>>>9.9999<<<< 1 0 Not used, reserved for qad use.
pt_draw 图纸 character x(18) 1 该零件的图纸代码
pt_prod_line 产品类 character x(4) 1 该零件所属的产品类
pt_group 产品组 character x(8) 1 用于报表的该零件的产品组
pt_part_type 零件类型 character x(8) 1 用于特性相似的零件分组的代码
pt_status 状态 character x(2) 1 用户定义的零件工程状态: Active(活动), Inactive(不活动),...
pt_abc ABC 类型 character x(1) 1 零件的 ABC 分类法, 可用于计算
pt_iss_pol 发放原则 logical yes/no 1 yes 该零件是否打印在领料单上
pt_phantom 虚零件 logical yes/no 1 no 该零件是否是虚零件
pt_loc 库位 character x(8) 1 该零件存放的缺省库位代码
pt__qad01 ? decimal ->,>>>,>>9.9<<<<<<<< 1 0 Not used, reserved for qad use.
pt__qad02 ? decimal ->,>>>,>>9.9<<<<<<<< 1 0 Not used, reserved for qad use.
pt_abc_amt ABC 值 decimal ->,>>>,>>9.9<<<<<<<< 1 0 Field used internally for ABC classification.
pt__qad03 ? decimal ->>>,>>9.999 1 0 Not used, reserved for qad use.
pt__qad04 ? decimal ->>>,>>9.999 1 0 Not used, reserved for qad use.
pt_avg_int 平均间隔 integer >>9 1 90 用于计算间隔的平均天数
pt__qad05 ? date 99/99/99 1 today Not used, reserved for qad use.
pt_cyc_int 盘点周期间隔 integer >>9 1 120 该零件盘点周期之间的日历天数
pt__qad06 ? date 99/99/99 1 ? Not used, reserved for qad use.
pt__qad07 ? date 99/99/99 1 ? Not used, reserved for qad use.
pt__qad08 ? date 99/99/99 1 ? Not used, reserved for qad use.
pt_ms 主生产计划 logical yes/no 1 yes 该零件是否在主生产计划中出现
pt_plan_ord 计划订单 logical yes/no 1 yes 物料需求计划是否需要对该零件生成计划订单
pt_mrp 需要 MRP logical yes/no 1 no 该零件是否需要 MRP 计划
pt_ord_pol 订货原则 character x(3) 1 POQ 物料需求计划中的订货原则代码
pt_ord_qty 订货数量 decimal >>,>>>,>>9 1 0 物料需求计划中 FOQ 订货原则的订货数量
pt_ord_per 订货周期 integer >>9 1 7 物料需求计划中 POQ 订货原则需要的天数
pt_sfty_stk 安全库存 decimal >>,>>>,>>9 1 0 最小的库存留量
pt_sfty_time 安全时间 decimal >>9 1 0 到期日与需求日之间差的天数
pt_rop 订货点 decimal >>>,>>9 1 0 该库存量立即反映到订货报表
pt_buyer 采购员/计划员 character x(8) 1 负责计划该零件的人
pt_vend 供应商 character x(8) 1 该零件的主要供应商的地址代码
pt__qad09 ? decimal ->,>>>,>>9.9<<<<<<<< 1 0 Not used, reserved for qad use.
pt_pm_code 采/制 character x(1) 1 该零件的采购/制造代码(P, M, R, C, F)
pt_mfg_lead 制造LT decimal >>9 1 0 制造该零件需要的天数
pt_pur_lead 采购LT integer >>9 1 0 完成该零件采购单所需的日期
pt_insp_rqd 检验 logical yes/no 1 no 采购件进货是否需要检验
pt_insp_lead 检验LT integer >>9 1 0 为了检验而加到采购提前期的天数
pt_cum_lead 提前期 integer >>9 1 0 该零件关键路径的前期
pt_ord_min 最小订量 decimal >>,>>>,>>9 1 0 该零件的最小订货量
pt_ord_max 最大订量 decimal >>,>>>,>>9 1 0 该零件的最大订货数量
pt_ord_mult 订单倍数 decimal >>,>>>,>>9 1 0 用于物料需求计划中批量订货数量的倍数
pt_yield_pct 合格 % decimal >>9.99% 1 100 可以接受的订单百分比
pt__qad16 ? decimal >>>,>>9.9 1 0 Not used, reserved for qad use.
pt_setup 准备时间 decimal >>>,>>9.999<<<<<< 1 0 一批该零件需要的标准的准备时间
pt_setup_ll 低层准备时间 decimal >>>,>>9.999<<<<<< 1 0 累加的各层的准备时间
pt_run_ll 低层加工时间 decimal >>>,>>9.999<<<<<< 1 0 累加的各低层零件加工的时间
pt_run 加工时间 decimal >>>,>>9.999<<<<<< 1 0 加工一个零件需要的标准加工小时数
pt_price 价格 decimal >>>>,>>>,>>9.99<<< 1 0 该零件的正常销售价
pt_xmtl_tl 当前本层物料成本 decimal >>>>,>>>,>>9.99<<< 1 0 Not used. The current cost of material added at this level.
pt_xlbr_tl 当前本层人工成本 decimal >>>>,>>>,>>9.99<<< 1 0 Not used. The current cost of labor added at this level.
pt_xbdn_tl 当前本层附加成本 decimal >>>>,>>>,>>9.99<<< 1 0 Not used. The current cost of burden added at this level.
pt_xsub_tl 当前本层转包成本 decimal >>>>,>>>,>>9.99<<< 1 0 Not used. The current cost of subcontracting added at this level.
pt_xmtl_ll 当前低层物料成本 decimal >>>>,>>>,>>9.99<<< 1 0 Not used. The accumulated current cost of material from all lower level
pt_xlbr_ll 当前低层人工成本 decimal >>>>,>>>,>>9.99<<< 1 0 Not used. The accumulated current cost of labor from all lower level co
pt_xbdn_ll 当前低层附加成本 decimal >>>>,>>>,>>9.99<<< 1 0 Not used. The accumulated burden cost from all lower level components.
pt_xsub_ll 当前低层转包成本 decimal >>>>,>>>,>>9.99<<< 1 0 Not used. The accumulated current cost of subcontracting for all lower
pt_xtot_cur 本层低层总成本 decimal >>>>,>>>,>>9.99<<< 1 0 Not used. The sum of current costs for this level and all lower levels.
pt_cur_date 当期成本更新日 date 99/99/99 1 ? 当期成本更新的日期
pt_xmtl_stdtl 标准本层物料成本 decimal >>>>,>>>,>>9.99<<< 1 0 Not used. The standard material cost for this item.
pt_xlbr_stdtl 标准本层人工成本 decimal >>>>,>>>,>>9.99<<< 1 0 Not used. The standard cost of labor for this item.
pt_xbdn_stdtl 标准本层附加成本 decimal >>>>,>>>,>>9.99<<< 1 0 Not used. The standard burden cost for this item.
pt_xsub_stdtl 标准本层转包成本 decimal >>>>,>>>,>>9.99<<< 1 0 Not used. The standard cost of subcontracting for this item.
pt_xtot_std 标准总成本 decimal >>>>,>>>,>>9.99<<< 1 0 Not used. The sum of this level and lower level standard costs for this
pt_std_date 标准成本更新日 date 99/99/99 1 ? 上次标准成本更新的日期
pt_ll_code 低层 integer ->>>>>9 1 0 物料需求计划用于记录最低层零件的代码
pt_abc_qty ABC 数量 decimal ->,>>>,>>9.9<<<<<<<< 1 0 Field used internally for ABC classification.
pt__qad10 ? decimal ->,>>>,>>9.9<<<<<<<< 1 0 Not used, reserved for qad use.
pt__qad11 ? decimal ->,>>>,>>9.9<<<<<<<< 1 0 Not used, reserved for qad use.
pt_routing 工艺流程代码 character x(18) 1 该零件的缺省工艺流程代码
pt_lot_ser 批/序号控制 character x(1) 1 该零件是否需要批序号
pt_timefence 时界 integer ->>>9 1 0 无计划单生成的天数
pt_xmtl_stdll 标准低层物料成本 decimal >>>>,>>>,>>9.99<<< 1 0 Not used. The accumulated standard cost of material from all lower leve
pt_xlbr_stdll 标准低层人工成本 decimal >>>>,>>>,>>9.99<<< 1 0 Not used. The accumulated standard cost of labor from all lower levels.
pt_xbdn_stdll 标准低层附加成本 decimal >>>>,>>>,>>9.99<<< 1 0 Not used. The accumulated standard cost of burden from all lower levels
pt_xsub_stdll 标准低层转包成本 decimal >>>>,>>>,>>9.99<<< 1 0 Not used. The accumulated standard cost of subcontracting for all lower
pt_rev 版本 character x(2) 1 该零件的工程版本
pt_last_eco 上次工程变更 date 99/99/99 1 ? 该零件的上次工程变更单的日期
pt__qad15 ? logical yes/no 1 no Not used, reserved for qad use.
pt__qad17 ? logical yes/no 1 yes Not used, reserved for qad use.
pt_qc_lead 质量控制提前期 integer >>9 1 0 不使用, 原用于质量控制的提前期
pt_auto_lot 自动生成批号 logical yes/no 1 no 是否自动分配批号
pt_assay 检定 % decimal >>9.99% 1 0 零件正常检定的百分比
pt_batch 批处理量 decimal >>,>>>,>>9.9<<<<<<<< 1 1 用于物料清单和工艺流程的正常的批处理数量
pt__qad14 ? date 99/99/99 1 ? Not used, reserved for qad use.
pt_user3 用户3 character x(8) 1 不使用, 字段为用户定义和使用
pt_user1 Ufld1 character x(8) 1 用户字段 #1
pt_user2 Ufld2 character x(8) 1 用户字段 #2
pt_net_wt 净重 decimal ->>,>>9.99<<<< 1 0 The net weight of each unit of this item.
pt_net_wt_um 净重单位 character x(2) 1 The unit of measure for the item net weight.
pt_size 尺寸 decimal ->>,>>9.99 1 0 用户定义的该零件实际尺寸的代码
pt_size_um 尺寸单位 character x(2) 1 该零件尺寸的计量单位
pt_taxable 纳税 logical yes/no 1 yes 标识该零件是否应纳税
pt_taxc 税收代码 character x(1) 1 该零件的税收代码
pt_rollup 需向上累加 logical yes/no 1 no 标识该零件是否需要物料清单或工艺流程向上累加
pt_xovh_ll 当前低层间接成本 decimal >>>>,>>>,>>9.99<<< 1 0 Not used. The accumulated current cost of overhead from all lower level
pt_xovh_tl 当前本层间接成本 decimal >>>>,>>>,>>9.99<<< 1 0 Not used. The current cost of overhead added at this level.
pt_xovh_stdll 标准低层间接成本 decimal >>>>,>>>,>>9.99<<< 1 0 Not used. The accumulated standard overhead cost from all lower levels.
pt_xovh_stdtl 标准低层间接成本 decimal >>>>,>>>,>>9.99<<< 1 0 Not used. The standard overhead cost for this item.
pt_site 地点 character x(8) 1 该零件的缺省地点
pt_shelflife 保存期限 integer ->,>>>,>>> 1 0 该零件缺省的保存期限
pt_critical 关键零件 logical yes/no 1 no 划分该零件在加工单中是否是关键零件
pt_sngl_lot 单批备料 logical yes/no 1 no 库房是否必须单批备料
pt_upc 通用产品代码 character x(12) 1 该零件的通用价格代码
pt_hazard 危险品 character x(8) 1 该零件危险品代码
pt_added 加入日期 date 99/99/99 1 today 该零件加入系统的日期
pt__chr01 ? character x(8) 1 用户定义字符型字段 #1
pt__chr02 ? character x(8) 1 用户定义字符型字段 #2
pt__chr03 ? character x(8) 1 用户定义字符型字段 #3
pt__chr04 ? character x(8) 1 用户定义字符型字段 #4
pt__chr05 ? character x(8) 1 用户定义字符型字段 #5
pt__chr06 ? character x(8) 1 用户定义字符型字段 #6
pt__chr07 ? character x(8) 1 用户定义字符型字段 #7
pt__chr08 ? character x(8) 1 用户定义字符型字段 #8
pt__chr09 ? character x(8) 1 用户定义字符型字段 #9
pt__chr10 ? character x(8) 1 用户定义字符型字段 #10
pt__dte01 ? date 99/99/99 1 ? 用户定义日期字段 #1
pt__dte02 ? date 99/99/99 1 ? 用户定义日期字段 #2
pt__dec01 ? decimal >>>,>>>,>>9.99 1 0 用户定义十进制数字段 #1
pt__dec02 ? decimal >>>,>>>,>>9.99 1 0 用户定义十进制数字段 #2
pt__log01 ? logical yes/no 1 no 用户定义逻辑型字段 #1
pt__log02 ? logical yes/no 1 no 用户定义逻辑型字段 #2
pt__qad18 ? decimal >>>>,>>>,>>9.99<<< 1 0 Not used, reserved for qad use.
pt__qad21 ? decimal >>>>,>>>,>>9.99<<< 1 0 Not used, reserved for qad use.
pt__qad19 ? decimal >>>>,>>>,>>9.99<<< 1 0 Not used, reserved for qad use.
pt__qad20 ? decimal >>>>,>>>,>>9.99<<< 1 0 Not used, reserved for qad use.
pt_length 长度 decimal >>,>>9.99 1 0 The length of this item.
pt_height 高度 decimal >>,>>9.99 1 0 The height of this item.
pt_width 宽度 decimal >>,>>9.99 1 0 The width of this item.
pt_dim_um 容积计量单位 character x(2) 1 The dimensions unit of measure for this item.
pt_pkg_code 包装代码 character x(18) 1 A code, item number or description of packaging requirements.
pt_network 分销网 character x(18) 1
pt_ll_drp 分销低层 integer ->>>>>9 1 0 The low level value for this item in the distribution network.
pt_frt_class 运费类别 character x(8) 1 A code used for calculating freight charges.
pt_spec_hdlg 特别管理代码 character x(8) 1 A code indicating special handling requirements.
pt_bom_code 物料清单 character x(18) 1 The bill of material to use for this item.
pt_loc_type 库位类型 character x(8) 1 A code specifying special location requirements for this item.
pt_transtype 运输类型 character x(8) 1 A code specifying specific transportation requirements for this item.
pt_cover 包括 character x(1) 1 C
pt_unit_isb 已安装产品单位数量 logical yes/no 1 no
pt_article 货号 character x(18) 1 Article Number for waybills etc.
pt_po_site 采购地点 character x(8) 1 The default purchasing site for this item.
pt_ship_wt 运输重量 decimal ->>,>>9.99<<<< 1 0 The ship weight of each unit of this item.
pt_ship_wt_um 运输重量单位 character x(2) 1 The unit of measure for the item ship weight.
pt_formula 配料 logical yes/no 1 no Restricts items to use formula maintenance.
pt_dea DEA 控制 logical yes/no 1 no Identifies items strictly controlled by the FDA.
pt_byproduct 副产品 logical yes/no 1 no Identifies items produced as a result of some other items' production.
pt_coproduct 副产品 logical yes/no 1 no Identifies items yielded from another items' production process.
pt_wks_min 最少维护周数 integer >>9 1 0 The minimum number of weeks of forecasted requirements to hold.
pt_wks_max 最多维护周数 integer >>9 1 0 The maximum number of weeks of forecasted requirements to hold.
pt_wks_avg 平均维护周数 integer >>9 1 0 The average number of weeks of forecasted requirements to hold.
pt_comm_code 商品代码 character x(8) 1 The commodity code identifier used for centralized purchasing.
pt_inst_call 安装 logical yes/no 1 no Schedule installation call.
pt_sys_type 系统类型 character x(2) 1 Item Type
pt_tariff 关税 character x(8) 1 Tariff Number.
pt_origin 产地 character x(12) 1 Country where part was manufactured.
pt_sttr 修理时间 decimal ->>,>>9.99 1 0 Standard time to repair.
pt_mfg_mtbf 厂家平均故障时间 decimal ->>,>>9.99 1 0
pt_mfg_mttr 厂家平均修理时间 decimal ->>,>>9.99 1 0 Manufacturers MTTR.
pt_fru 现场换件 logical yes/no 1 no Field replaceable unit.
pt_ven_warr 供应商保修 logical yes/no 1 no Does this part have a supplier warranty.
pt_svc_group 服务组 character x(8) 1 Service group ...Generalized Codes
pt_svc_type 服务类型 character x(2) 1 P Service Type of this part
pt_mtbf 平均故障时间 decimal >>,>>9.99 1 0 Mean time between failures
pt_mttr 平均修理时间 decimal >>,>>9.99 1 0 Mean time to repair in hours
pt_isb 已安装产品 logical yes/no 1 no Should this part be transfer to installed base when shipped
pt_pvm_days 维护间隔天数 integer >>>>9 1 0 Days between preventative maintenance periods for this part
pt_warr_cd 保修代码 character x(8) 1 Warranty Code from the sv_mstr file (warranty)
pt_mod_date 修改日期 date 99/99/99 1 ? Date the record was last modified.
pt_userid 用户标志 character x(8) 1 The Userid of the last user to access this record.
pt_obs_date 废行日期 date 99/99/99 1 ?
pt_pvm_bom 维护物料单 character x(18) 1
pt_pvm_route 维护工艺流程 character x(18) 1
pt_pvm_um 单位 character x(2) 1
pt_rp_bom 维修物料单 character x(18) 1
pt_rp_route 维修工艺流程 character x(18) 1
pt_rp_vendor 维修代理 character x(8) 1
pt_domain 域
pt_bom_code pt_bom_code > pt_part
pt_desc Unique pt_desc1 > pt_desc2 > pt_part
pt_group Unique pt_group > pt_part
pt_ll_mrp_pt Unique pt_ll_code > pt_mrp > pt_part
pt_network pt_network > pt_part
pt_part Primary Unique pt_part
pt_part_type Unique pt_part_type > pt_part
pt_prod_part Unique pt_prod_line > pt_part
AIX 下用RM删除不了的解决方法及修改文件组所有者
1 AIX 下用RM删除不了的解决方法
有可能是文件列表太多系统无法用RM删除解决方法
find . -name "*.l"xargs rm
"*.l" 是文件类型
2修改文件组及所有者
chown root:system 文件名
有可能是文件列表太多系统无法用RM删除解决方法
find . -name "*.l"xargs rm
"*.l" 是文件类型
2修改文件组及所有者
chown root:system 文件名
2008年10月16日星期四
QAD事务类型对照表
CST-ADJ:成本调整
CUM-RADJ:累计收货调整
CUM-RRES:累计收货重置
CUM-SADJ:累计发货调整
CUM-SRES:累计发货重置
CYC-CNT:周期盘点调整
CYC-ERR:周期数错误
CYC-RCNT:周期重盘
ISS-CHL/RCT-CHL:改变库存细节
ISS-DO/RCT-GIT:分销订单发货
ISS-GIT/RCT-DO:分销订单收货
ISS-FAS/RCT-FAS:最终装配单
ISS-PRV:采购退回供应商
ISS-RV:库存退回供应商
ISS-SO:客户订单货物发运
ISS-TR/RCT-TR:库存转移
ISS-UNP/RCT-UNP:非计划发放/收到
ISS-WO/RCT-WO:加工单发放/收到
ORD-PO:采购单帐目
ORD-SO:客户订单帐目
ORD-SEO:材料单帐目
RCT-PO:采购单收货
RCT-RS:库存退货
RCT-SOR:库存客户订单退回
RJCT-WO:加工单拒绝
TAG-CNT:实际库存更新
WIP-ADJ:在制品调整
WO-CLOSE:加工单结算
CUM-RADJ:累计收货调整
CUM-RRES:累计收货重置
CUM-SADJ:累计发货调整
CUM-SRES:累计发货重置
CYC-CNT:周期盘点调整
CYC-ERR:周期数错误
CYC-RCNT:周期重盘
ISS-CHL/RCT-CHL:改变库存细节
ISS-DO/RCT-GIT:分销订单发货
ISS-GIT/RCT-DO:分销订单收货
ISS-FAS/RCT-FAS:最终装配单
ISS-PRV:采购退回供应商
ISS-RV:库存退回供应商
ISS-SO:客户订单货物发运
ISS-TR/RCT-TR:库存转移
ISS-UNP/RCT-UNP:非计划发放/收到
ISS-WO/RCT-WO:加工单发放/收到
ORD-PO:采购单帐目
ORD-SO:客户订单帐目
ORD-SEO:材料单帐目
RCT-PO:采购单收货
RCT-RS:库存退货
RCT-SOR:库存客户订单退回
RJCT-WO:加工单拒绝
TAG-CNT:实际库存更新
WIP-ADJ:在制品调整
WO-CLOSE:加工单结算
2008年10月14日星期二
查询有7.5中效日程程序
查询有效日程
for each scx_ref no-lock where scx_domain = "01" and scx_type = 1,
each sch_mstr no-lock where sch_domain = scx_domain and sch_nbr = scx_order and sch_line = scx_line and sch_type = 3, each schd_det no-lock where schd_domain = sch_domain and schd_nbr = sch_nbr and schd_line = sch_line and schd_rlse_id = sch_rlse_id and schd_type = sch_type and schd_type = 3 and schd_reference = "s", each sod_det no-lock where sod_domain = schd_domain and sod_nbr = schd_nbr and sod_line = schd_line and sod_curr_rlse_id[3] = sch_rlse_id : display scx_part scx_order scx_line schd_upd_qty schd_time schd_date.
for each scx_ref no-lock where scx_domain = "01" and scx_type = 1,
each sch_mstr no-lock where sch_domain = scx_domain and sch_nbr = scx_order and sch_line = scx_line and sch_type = 3, each schd_det no-lock where schd_domain = sch_domain and schd_nbr = sch_nbr and schd_line = sch_line and schd_rlse_id = sch_rlse_id and schd_type = sch_type and schd_type = 3 and schd_reference = "s", each sod_det no-lock where sod_domain = schd_domain and sod_nbr = schd_nbr and sod_line = schd_line and sod_curr_rlse_id[3] = sch_rlse_id : display scx_part scx_order scx_line schd_upd_qty schd_time schd_date.
SQL92 Client 连接QAD数据库
1. 连接环境介绍服务器:HPUX 11.0、progress9.1D、QAD eb版本客户端:Win2000、progress9.1D
2. 服务器端启动设置本文此处仅仅提供各自启动4GL和SQL服务器方式。启动脚本如下
$DLC/bin/proserve /mfgpro/mfgebdb/TTprod -S TTprod -N TCP -n 162 -Mn 30 -Mi 3 -Ma 5 -Mpb 30 -L 10000 -B 50000 -ServerType 4GL
$DLC/bin/proserve /mfgpro/mfgebdb/TTprod -S 9010 -N TCP -m3 -Ma 4 -Mpb 3 -ServerType SQL说明:* 首先启动4GL服务器,附加启动SQL服务器,-ServerType为服务器类型* 4GL服务器的-n参数包括4GL服务器启动的用户数,所以是150+12 = 162* 附加启动服务器必须使用-m3,另外需指明端口,此处为-S 9010* 其他参数可以按照各自数据库情况自行设定
3. 客户端设置在系统环境变量进行如下设置:
DLC c:\dlc The directory where you installed the Progress client pieces
IDLC c:\dlc Required only for 8.1 or higher clients
PROMSGS c:\dlc\promsgs The directory and name of the message fileI
PROMSGS c:\dlc\promsgs Required only for 8.1 or higher clients
PATH c:\dlc\bin;c:\dlc;c:\winNT\system32;%path% Example for Windows NTTEMP c:\temp
SQL_CLIENT_CHARSET GB2312 此处为SQL92设置特有环境变量,指定客户端字符集
2. 服务器端启动设置本文此处仅仅提供各自启动4GL和SQL服务器方式。启动脚本如下
$DLC/bin/proserve /mfgpro/mfgebdb/TTprod -S TTprod -N TCP -n 162 -Mn 30 -Mi 3 -Ma 5 -Mpb 30 -L 10000 -B 50000 -ServerType 4GL
$DLC/bin/proserve /mfgpro/mfgebdb/TTprod -S 9010 -N TCP -m3 -Ma 4 -Mpb 3 -ServerType SQL说明:* 首先启动4GL服务器,附加启动SQL服务器,-ServerType为服务器类型* 4GL服务器的-n参数包括4GL服务器启动的用户数,所以是150+12 = 162* 附加启动服务器必须使用-m3,另外需指明端口,此处为-S 9010* 其他参数可以按照各自数据库情况自行设定
3. 客户端设置在系统环境变量进行如下设置:
DLC c:\dlc The directory where you installed the Progress client pieces
IDLC c:\dlc Required only for 8.1 or higher clients
PROMSGS c:\dlc\promsgs The directory and name of the message fileI
PROMSGS c:\dlc\promsgs Required only for 8.1 or higher clients
PATH c:\dlc\bin;c:\dlc;c:\winNT\system32;%path% Example for Windows NTTEMP c:\temp
SQL_CLIENT_CHARSET GB2312 此处为SQL92设置特有环境变量,指定客户端字符集
2008年10月10日星期五
QAD加LICENSE CODE步骤
1. Shutdown数据库,让所有的用户退出。
2. 启动数据库,用管理员的用户登入。
3. 运行菜单36.16.10.1 (License Registration)或程序lvreq.p,出现界面如下图,选择edit,将原来的license code改成新的license code即可。
4. 用root登入linux/UNIX系统,在progress安装目录下运行proupdt,如下图所示:
按enter继续
再按enter继续
5.输入progress的license code即可。
2. 启动数据库,用管理员的用户登入。
3. 运行菜单36.16.10.1 (License Registration)或程序lvreq.p,出现界面如下图,选择edit,将原来的license code改成新的license code即可。
4. 用root登入linux/UNIX系统,在progress安装目录下运行proupdt,如下图所示:
按enter继续
再按enter继续
5.输入progress的license code即可。
关于Odbc连MFG时出现219901 的解决方法
首先确保 Mfg/Pro-Progress 有对Odbc开放端口,允许通过Odbc连接.
在新建系统Odbc中加入对应的资料. 测试连接时出现 "[DataDirect][ODBC PROGRESS Driver][PROGRESS]-219901"
那么要在环境变量中设一个SQL_CLIENT_CHARSET值為 GB2312(簡體) 或 BIG-5(繁體)或是其它.即可.
在新建系统Odbc中加入对应的资料. 测试连接时出现 "[DataDirect][ODBC PROGRESS Driver][PROGRESS]-219901"
那么要在环境变量中设一个SQL_CLIENT_CHARSET值為 GB2312(簡體) 或 BIG-5(繁體)或是其它.即可.
AIX下自动备份数据库程序
mkdir /backup/db/`date +%y%m%d`
/app/progress/91e/bin/procopy 数据库路径 /backup/db/`date +%y%m%d`/mfgprod > /backup/db/log/procp`date +%y%m%d`.log
/app/progress/91e/bin/procopy 数据库路径/admprod /backup/db/`date +%y%m%d`/admprod >> /backup/db/log/procp`date +%y%m%d`.log
/app/progress/91e/bin/procopy 数据库路径/hlpprod /backup/db/`date +%y%m%d`/hlpprod >> /backup/db/log/procp`date +%y%m%d`.log
proutil /app/mfgpro/eb21/db/mfgpro.db -C trunc BI
/app/progress/91e/bin/procopy 数据库路径 /backup/db/`date +%y%m%d`/mfgprod > /backup/db/log/procp`date +%y%m%d`.log
/app/progress/91e/bin/procopy 数据库路径/admprod /backup/db/`date +%y%m%d`/admprod >> /backup/db/log/procp`date +%y%m%d`.log
/app/progress/91e/bin/procopy 数据库路径/hlpprod /backup/db/`date +%y%m%d`/hlpprod >> /backup/db/log/procp`date +%y%m%d`.log
proutil /app/mfgpro/eb21/db/mfgpro.db -C trunc BI
2008年10月9日星期四
数据库新分卷操作步骤
1) 关闭所有的数据库
2) 用更换到MFG拥护
3) 检查硬盘空间是否足够
4) 备份数据库
5) 建立数据库结构文件
例如数据库的第7,25,35的分区已经达到2G左右,增加add.st文档,格式如下:
d "TRANSACTION":7,64 ./db
d "TRHIST":25,64 ./db
d "GLTRHIST"":35,64 ./db
6) 对数据库进行BI 截取操作,例如对数据库mfgeb2操作如下:
# proutil mfgeb2 -C truncate bi - 0
7) 建立需要增加的数据库分区(例如对mfgeb2进行分区),操作如下:
# prostrct add mfgeb2 add.st
8) 完成以上步骤即可启动DB.
2) 用更换到MFG拥护
3) 检查硬盘空间是否足够
4) 备份数据库
5) 建立数据库结构文件
例如数据库的第7,25,35的分区已经达到2G左右,增加add.st文档,格式如下:
d "TRANSACTION":7,64 ./db
d "TRHIST":25,64 ./db
d "GLTRHIST"":35,64 ./db
6) 对数据库进行BI 截取操作,例如对数据库mfgeb2操作如下:
# proutil mfgeb2 -C truncate bi - 0
7) 建立需要增加的数据库分区(例如对mfgeb2进行分区),操作如下:
# prostrct add mfgeb2 add.st
8) 完成以上步骤即可启动DB.
维护程序模板简化
/* DISPLAY TITLE */{mfdtitle.i "2+ "}
define variable del-yn like mfc_logical initial no.
define variable fldname like code_fldname initial "txt_tax_type".
/* DISPLAY SELECTION FORM */
form
code_value label "Tax Type" colon 25 format "x(16)" skip(1)
code_desc colon 25
with frame a side-labels width 80 attr-space.
/* SET EXTERNAL LABELS */setFrameLabels(frame a:handle).
/* DISPLAY */
view frame a.
mainloop:repeat with frame a:
prompt-for code_value with frame a editing: /* FIND NEXT/PREVIOUS RECORD */ {mfnp01.i code_mstr code_value code_value fldname " code_mstr.code_domain = global_domain and code_fldname " code_fldval} if recno <> ? then display code_value code_desc. end.
/* ADD/MOD/DELETE */
find code_mstr
where code_mstr.code_domain = global_domain and code_fldname = fldname and code_value = input code_value exclusive-lock no-error.
if not available code_mstr then do: {pxmsg.i &MSGNUM=1 &ERRORLEVEL=1} create code_mstr. code_mstr.code_domain = global_domain. assign code_value. code_fldname = fldname. end.
display code_value code_desc.
ststatus = stline[2]. status input ststatus. del-yn = no.
seta: do on error undo, retry:
set code_desc go-on (F5 CTRL-D).
/* DELETE */ if lastkey = keycode("F5") or lastkey = keycode("CTRL-D") then do:
del-yn = yes. {pxmsg.i &MSGNUM=11 &ERRORLEVEL=1 &CONFIRM=del-yn} if del-yn = no then undo, retry. delete code_mstr. clear frame a. next mainloop.
end.
end. /* seta: */
release code_mstr.
end. /* mainloop: */
define variable del-yn like mfc_logical initial no.
define variable fldname like code_fldname initial "txt_tax_type".
/* DISPLAY SELECTION FORM */
form
code_value label "Tax Type" colon 25 format "x(16)" skip(1)
code_desc colon 25
with frame a side-labels width 80 attr-space.
/* SET EXTERNAL LABELS */setFrameLabels(frame a:handle).
/* DISPLAY */
view frame a.
mainloop:repeat with frame a:
prompt-for code_value with frame a editing: /* FIND NEXT/PREVIOUS RECORD */ {mfnp01.i code_mstr code_value code_value fldname " code_mstr.code_domain = global_domain and code_fldname " code_fldval} if recno <> ? then display code_value code_desc. end.
/* ADD/MOD/DELETE */
find code_mstr
where code_mstr.code_domain = global_domain and code_fldname = fldname and code_value = input code_value exclusive-lock no-error.
if not available code_mstr then do: {pxmsg.i &MSGNUM=1 &ERRORLEVEL=1} create code_mstr. code_mstr.code_domain = global_domain. assign code_value. code_fldname = fldname. end.
display code_value code_desc.
ststatus = stline[2]. status input ststatus. del-yn = no.
seta: do on error undo, retry:
set code_desc go-on (F5 CTRL-D).
/* DELETE */ if lastkey = keycode("F5") or lastkey = keycode("CTRL-D") then do:
del-yn = yes. {pxmsg.i &MSGNUM=11 &ERRORLEVEL=1 &CONFIRM=del-yn} if del-yn = no then undo, retry. delete code_mstr. clear frame a. next mainloop.
end.
end. /* seta: */
release code_mstr.
end. /* mainloop: */
2008年10月8日星期三
报表程序模板
/* mmrcsomtrp.p v 1.0 hubo 2008.1.10*//*客户订单详细*/
{mfdtitle.i "1.0"}
/*定义使用的变量*/
define variable 变量 like sod_start_eff[1] .
define variable 变量 as char .
/*定义查询条件FROM*/
form
变量 colon 15
变量1 label {t001.i} colon 47 cust colon 15
with frame a attr-space side-labels width 80.
setFrameLabels(frame a:handle).
{wbrp01.i}
repeat:
if 变量 = low_date then rdate = ?.
if 变量1 = hi_char then cust1 = "".
if c-application-mode <> "WEB" then
update 变量 变量1 with frame a.
{wbrp06.i &command = update
&fields = "变量 变量1 "
&frm = "a"}
if (c-application-mode <> "WEB") or
(c-application-mode = "WEB" and
(c-web-request begins "DATA"))
then do:
{mfquoter.i 变量 }
{mfquoter.i 变量1 }
if 变量 = ? then rdate = low_date.
if 变量1 = "" then cust1 = hi_char.
/*定义打印输出可以默认不用改*/
{gpselout.i &printType = "printer"
&printWidth = 132
&pagedFlag = " "
&stream = " "
&appendToFile = " "
&streamedOutputToTerminal = " "
&withBatchOption = "yes"
&displayStatementType = 1
&withCancelMessage = "yes"
&pageBottomMargin = 6
&withEmail = "yes"
&withWinprint = "yes"
&defineVariables = "yes"}
{mfphead.i}
/*定义查询语句*/
for each ........
each ........
find........
end.
/*定义输出*/
display
.......
{mfrtrail.i}
end.
{wbrp04.i &frame-spec = a}
{mfdtitle.i "1.0"}
/*定义使用的变量*/
define variable 变量 like sod_start_eff[1] .
define variable 变量 as char .
/*定义查询条件FROM*/
form
变量 colon 15
变量1 label {t001.i} colon 47 cust colon 15
with frame a attr-space side-labels width 80.
setFrameLabels(frame a:handle).
{wbrp01.i}
repeat:
if 变量 = low_date then rdate = ?.
if 变量1 = hi_char then cust1 = "".
if c-application-mode <> "WEB" then
update 变量 变量1 with frame a.
{wbrp06.i &command = update
&fields = "变量 变量1 "
&frm = "a"}
if (c-application-mode <> "WEB") or
(c-application-mode = "WEB" and
(c-web-request begins "DATA"))
then do:
{mfquoter.i 变量 }
{mfquoter.i 变量1 }
if 变量 = ? then rdate = low_date.
if 变量1 = "" then cust1 = hi_char.
/*定义打印输出可以默认不用改*/
{gpselout.i &printType = "printer"
&printWidth = 132
&pagedFlag = " "
&stream = " "
&appendToFile = " "
&streamedOutputToTerminal = " "
&withBatchOption = "yes"
&displayStatementType = 1
&withCancelMessage = "yes"
&pageBottomMargin = 6
&withEmail = "yes"
&withWinprint = "yes"
&defineVariables = "yes"}
{mfphead.i}
/*定义查询语句*/
for each ........
each ........
find........
end.
/*定义输出*/
display
.......
{mfrtrail.i}
end.
{wbrp04.i &frame-spec = a}
2008年10月7日星期二
2008年10月6日星期一
Progress数据库管理几个要点
1、 数据备份
A、 数据存放位置:/app/mfgpro/eb2/db目录下,数据库有三个(mfgdemo、mfgtrain、mfgprod),其中mfgprod为正式数据库。
B、 数据备份存放位置:/backup目录下,根据用户的实际情况创建相应的备份目录
C、 数据备份一般采用copy的方式进行,备份前要事先关闭数据保证数据的完整性。数据库备份的命令在/database/progress/91d/bin目录下的procopy
D、 例如要将mfgprod数据备份到/backup/prod0812目录下,备份的数据库名为prodbk步骤如下:
a)、先确认/backup目录下是否有创建prod0812的目录,如果没有在/backup先创建一个prod0812的目录(创建目录的命令mkdir)。
b)、系统切换到/database/progress/91d/bin目录下,执行下面的命令:
./procopy /app/mfgpro/eb2/db/mfgprod /backup/prod0812/prodbk
系统即可开始备份
1、 数据库监控
A、 数据监控命令是promon,文件位于/database/progress/91d/bin目录下,监控数据必须是在数据启动状态下。
B、 使用方法可以系统切换到/database/progress/91d/bin目录下,执行下面的命令:(以监控mfgprod数据库为例)
./promon /app/mfgpro/eb2/db/mfgprod
A、 主要使用选项1、4、8选择1、User Control主要了解那些用户在使用数据库及用户用户相应的User Number,选择1之1
A、 在画面的第一列就是代表用户的User Number,这里同时也记录数据启动的用户。在这个画面上按Q即可退到第一个画面。
选择4、Record Locking Table
在这个画面上继续选择1、Display all entries
在这个画面上体现对表锁的情况。画面上按Q即可退到第一画面
选择8、Shut Down Database
在这个画面上可以直接体现用户的在线情况,如果要将用户断线可以选择1、Disconnect a User系统会出现如下的画面,之后输入用户的User Number即可实现用户断线
1、 Linux常用的命令主要有如下几个
A)、ls—列出文件名
B)、pwd—查看当前的所处的目录
C)、cd --切换路径
D)、who—查看当前在线用户
E)、rmdir—创建目录
F)、rm—删除文件
G)、ps—查看用户进程
A、 数据存放位置:/app/mfgpro/eb2/db目录下,数据库有三个(mfgdemo、mfgtrain、mfgprod),其中mfgprod为正式数据库。
B、 数据备份存放位置:/backup目录下,根据用户的实际情况创建相应的备份目录
C、 数据备份一般采用copy的方式进行,备份前要事先关闭数据保证数据的完整性。数据库备份的命令在/database/progress/91d/bin目录下的procopy
D、 例如要将mfgprod数据备份到/backup/prod0812目录下,备份的数据库名为prodbk步骤如下:
a)、先确认/backup目录下是否有创建prod0812的目录,如果没有在/backup先创建一个prod0812的目录(创建目录的命令mkdir)。
b)、系统切换到/database/progress/91d/bin目录下,执行下面的命令:
./procopy /app/mfgpro/eb2/db/mfgprod /backup/prod0812/prodbk
系统即可开始备份
1、 数据库监控
A、 数据监控命令是promon,文件位于/database/progress/91d/bin目录下,监控数据必须是在数据启动状态下。
B、 使用方法可以系统切换到/database/progress/91d/bin目录下,执行下面的命令:(以监控mfgprod数据库为例)
./promon /app/mfgpro/eb2/db/mfgprod
A、 主要使用选项1、4、8选择1、User Control主要了解那些用户在使用数据库及用户用户相应的User Number,选择1之1
A、 在画面的第一列就是代表用户的User Number,这里同时也记录数据启动的用户。在这个画面上按Q即可退到第一个画面。
选择4、Record Locking Table
在这个画面上继续选择1、Display all entries
在这个画面上体现对表锁的情况。画面上按Q即可退到第一画面
选择8、Shut Down Database
在这个画面上可以直接体现用户的在线情况,如果要将用户断线可以选择1、Disconnect a User系统会出现如下的画面,之后输入用户的User Number即可实现用户断线
1、 Linux常用的命令主要有如下几个
A)、ls—列出文件名
B)、pwd—查看当前的所处的目录
C)、cd --切换路径
D)、who—查看当前在线用户
E)、rmdir—创建目录
F)、rm—删除文件
G)、ps—查看用户进程
2008年9月27日星期六
AIX下建立和QAD相关联的用户
1用ROOT进AIX
2执行SMITTY USER命令选择ADD A USER建立用户.
3进/HOME/用户名更改.PROFILE文件
4加如
/app/mfgpro/eb21/client.数据库名称
exit
5哈哈哈就OK
这样简单的东西都写上来冲数了哈哈哈
2执行SMITTY USER命令选择ADD A USER建立用户.
3进/HOME/用户名更改.PROFILE文件
4加如
/app/mfgpro/eb21/client.数据库名称
exit
5哈哈哈就OK
这样简单的东西都写上来冲数了哈哈哈
QAD 安装过程(我没尝试过转的呵呵)
QAD 安装过程
1、 JDK虚拟机安装,安装完成之后要对计算环境变量进行设置,主要要设置有
A、 administrator (系统管理员)的用户环境变量:java_home = ‘…’JAVA的存放位置如果其安装目录在C:盘,则其变量值为 c:\jsdk1.4.1_02(相当于安装的目录)。
B、 修改系统变量,修改系统变量PATH值,增加虚拟机安装目录及下面的BIN目录两个。
2、 安装PROGRESS,安装PROGRESS分为三个部分,一个是安装Query/RESULTS;一个安装ProVISION;最后在安装 client Networking,在安装这部分时要先从服务上停止PROGRESS方可安装;其他均用默认值即可安装。(直接用4-A盘安装三次即可,主要三次各有不同的Serial No及Control No)
3、 安装WEB client (4-B)
4、 安装Documentation (4-c)
5、 安装Service PARK1 progress_win32
6、 安装eB2(9-A)
A、 please enter the directory where the database server was installed default is c:\mfgsvr(可以直接用默认值),如果想安装在别的目录请修改
B、 create it default N:Y
C、 do you want to start a new setup file (.ini) Y
D、default desktop (enter)
E、 if you choose no the install will stop: default N:Y
F、 1、single Tier (单线程) 2、Multi Tier(多线程)选择 2
G、Mail menu 1、Install MFG/PRO Progress Desktop files 2、Update Additional MFG/UTIL installation 3、Telnet setup (window only)
H、 先选择1
I、 Please specify the MFG/PRO character client directory d:\mfgsvr (默认值)
J、 The admin privileges in desktop default is “qadadmin” (默认值)
K、 The desktop progress code file will extracted ..(如果碰到version.mfg 不存在就直接在数据EB2安装目录下建立一个)
7、 安装database server (9-C) 直接执行光盘install目录下install.exe 文件
A、 you must accept this agreement(y/n) default N:Y
B、 enter Progress Installation directory:progress 的安装目录(如装在D:则直接输入或copy一个安装路径:D:\Program Files\progress )
C、 please enter the directory where the database server was installed default is d:\mfgsvr(可以直接用默认值),如果与安装不一致则修改成一致的目录
D、continue anyway default Y (默认值)
E、 Is this install for an Oracle dataserver default N (默认值)
F、 proceed anyway default N:Y (默认值)
G、proceed using these values (y/n) default Y (默认值)
8、 安装(9-F),直接执行光盘install目录下install.exe 文件
A、 A、you must accept this agreement (Y/N) default N:Y
B、 please enter location where the log file should be written:可以默认值
C、 enter Progress Installation directory:progress 的安装目录(如装在D:则直接输入或copy一个安装路径:D:\Program Files\progress )
D、please enter the directory where the database server was installed default is d:\mfgsvr(可以直接用默认值),如果与安装不一致则修改成一致的目录
E、 overwrite the files default Y (默认值)
F、 enter folder name for MFGutil icons default is MFGPRO eB2 character client (默认值)
G、create it (y/N) default Y (默认值)
H、 proceed anyway default N:Y (默认值)
I、 proceed using these values (y/n) default Y (默认值)
9、 安装character client all language(9-D),直接执行光盘install目录下install.exe 文件
A、 you must accept this agreement (Y/N) default N:Y
B、 please enter location where the log file should be written:可以默认值
C、 enter Progress Installation directory:progress 的安装目录(如装在D:则直接输入或copy一个安装路径:D:\Program Files\progress )
D、please enter the directory where the database server was installed default is d:\mfgsvr(可以直接用默认值),如果与安装不一致则修改成一致的目录
E、 please enter the destination location for this installation default is c:\mfgsvr(可以直接用默认值),如果与安装不一致则修改一致的目录
F、 enter folder name for MFGutil icons default is MFGPRO eB2 character client (默认值)
G、create it (y/N) default Y (默认值)
H、 proceed anyway default Y (默认值)
I、 proceed using these values (y/n) default Y (默认值)
J、 would you like to view more information about SV(Y/N) default Y (默认值)
10、 安装Gui client (9-E),直接执行光盘install目录下install.exe 文件
A、 you must accept this agreement(Y/N) default N:Y
B、 please enter location where the log file should be written:可以默认值
C、 enter Progress Installation directory:progress 的安装目录(如装在D:则直接输入或copy一个安装路径:D:\Program Files\progress )
D、please enter the directory where the database server was installed default is d:\mfgsvr(可以直接用默认值),如果与安装不一致则修改成一致的目录
E、 please enter the destination location for this installation default is c:\mfgsvr\guicli(可以直接用默认值),如果与安装不一致则修改一致的目录
F、 create a new directory and install there default is Y (可以直接使用默认值)
G、enter folder name for MFGutil icons default is MFGPRO eB2 GUI client (默认值)
H、 create it (y/n) default Y (默认值)
I、 proceed anyway default Y (默认值)
J、 proceed using these values (y/n) default Y (默认值)
K、 would you like to view more information about SV(Y/N) default Y (默认值)
1、 JDK虚拟机安装,安装完成之后要对计算环境变量进行设置,主要要设置有
A、 administrator (系统管理员)的用户环境变量:java_home = ‘…’JAVA的存放位置如果其安装目录在C:盘,则其变量值为 c:\jsdk1.4.1_02(相当于安装的目录)。
B、 修改系统变量,修改系统变量PATH值,增加虚拟机安装目录及下面的BIN目录两个。
2、 安装PROGRESS,安装PROGRESS分为三个部分,一个是安装Query/RESULTS;一个安装ProVISION;最后在安装 client Networking,在安装这部分时要先从服务上停止PROGRESS方可安装;其他均用默认值即可安装。(直接用4-A盘安装三次即可,主要三次各有不同的Serial No及Control No)
3、 安装WEB client (4-B)
4、 安装Documentation (4-c)
5、 安装Service PARK1 progress_win32
6、 安装eB2(9-A)
A、 please enter the directory where the database server was installed default is c:\mfgsvr(可以直接用默认值),如果想安装在别的目录请修改
B、 create it default N:Y
C、 do you want to start a new setup file (.ini) Y
D、default desktop (enter)
E、 if you choose no the install will stop: default N:Y
F、 1、single Tier (单线程) 2、Multi Tier(多线程)选择 2
G、Mail menu 1、Install MFG/PRO Progress Desktop files 2、Update Additional MFG/UTIL installation 3、Telnet setup (window only)
H、 先选择1
I、 Please specify the MFG/PRO character client directory d:\mfgsvr (默认值)
J、 The admin privileges in desktop default is “qadadmin” (默认值)
K、 The desktop progress code file will extracted ..(如果碰到version.mfg 不存在就直接在数据EB2安装目录下建立一个)
7、 安装database server (9-C) 直接执行光盘install目录下install.exe 文件
A、 you must accept this agreement(y/n) default N:Y
B、 enter Progress Installation directory:progress 的安装目录(如装在D:则直接输入或copy一个安装路径:D:\Program Files\progress )
C、 please enter the directory where the database server was installed default is d:\mfgsvr(可以直接用默认值),如果与安装不一致则修改成一致的目录
D、continue anyway default Y (默认值)
E、 Is this install for an Oracle dataserver default N (默认值)
F、 proceed anyway default N:Y (默认值)
G、proceed using these values (y/n) default Y (默认值)
8、 安装(9-F),直接执行光盘install目录下install.exe 文件
A、 A、you must accept this agreement (Y/N) default N:Y
B、 please enter location where the log file should be written:可以默认值
C、 enter Progress Installation directory:progress 的安装目录(如装在D:则直接输入或copy一个安装路径:D:\Program Files\progress )
D、please enter the directory where the database server was installed default is d:\mfgsvr(可以直接用默认值),如果与安装不一致则修改成一致的目录
E、 overwrite the files default Y (默认值)
F、 enter folder name for MFGutil icons default is MFGPRO eB2 character client (默认值)
G、create it (y/N) default Y (默认值)
H、 proceed anyway default N:Y (默认值)
I、 proceed using these values (y/n) default Y (默认值)
9、 安装character client all language(9-D),直接执行光盘install目录下install.exe 文件
A、 you must accept this agreement (Y/N) default N:Y
B、 please enter location where the log file should be written:可以默认值
C、 enter Progress Installation directory:progress 的安装目录(如装在D:则直接输入或copy一个安装路径:D:\Program Files\progress )
D、please enter the directory where the database server was installed default is d:\mfgsvr(可以直接用默认值),如果与安装不一致则修改成一致的目录
E、 please enter the destination location for this installation default is c:\mfgsvr(可以直接用默认值),如果与安装不一致则修改一致的目录
F、 enter folder name for MFGutil icons default is MFGPRO eB2 character client (默认值)
G、create it (y/N) default Y (默认值)
H、 proceed anyway default Y (默认值)
I、 proceed using these values (y/n) default Y (默认值)
J、 would you like to view more information about SV(Y/N) default Y (默认值)
10、 安装Gui client (9-E),直接执行光盘install目录下install.exe 文件
A、 you must accept this agreement(Y/N) default N:Y
B、 please enter location where the log file should be written:可以默认值
C、 enter Progress Installation directory:progress 的安装目录(如装在D:则直接输入或copy一个安装路径:D:\Program Files\progress )
D、please enter the directory where the database server was installed default is d:\mfgsvr(可以直接用默认值),如果与安装不一致则修改成一致的目录
E、 please enter the destination location for this installation default is c:\mfgsvr\guicli(可以直接用默认值),如果与安装不一致则修改一致的目录
F、 create a new directory and install there default is Y (可以直接使用默认值)
G、enter folder name for MFGutil icons default is MFGPRO eB2 GUI client (默认值)
H、 create it (y/n) default Y (默认值)
I、 proceed anyway default Y (默认值)
J、 proceed using these values (y/n) default Y (默认值)
K、 would you like to view more information about SV(Y/N) default Y (默认值)
委外加工基础设置及流程
委外加工基础设置及流程
一、基础设置
1、14.5设置委外工作中心(虚拟)
2、5.5.1.13日程单维护,“订单项零件数据”对话框
l 类型:S
l 工序:10
3、14.13.2工艺流程维护
l 供应商:委外供应商代码
l 转包成本:委外加工标准成本
l 采购单:委外采购单代码
l 项次:采购单项次
l 转入下道工序:YES
二、流程
l 18.22.2.1 委外件日程维护(如涂装件)
l 18.22.2.4 日程分解
l 18.22.3.1 重复生产领料单计算
l 18.22.3.6 重复生产领料单转移(未涂装件从半成品仓转到委外工作中心虚拟仓)
l 5.13.1 采购收货(产生工单号,并自动填写在5.5.1.13日程单维护中)
产生的会计分录如下:
RCT-PO 借:生产费用 (转包标准成本)
贷:应付存货暂估款
ISS-WO 借:在制品 (未涂装件标准成本)
贷:半成品
RCT-WO 借:半成品 (涂装件标准成本)
贷:在制品
SUBCNT 借:在制品 (转包标准成本)
生产费用
一、基础设置
1、14.5设置委外工作中心(虚拟)
2、5.5.1.13日程单维护,“订单项零件数据”对话框
l 类型:S
l 工序:10
3、14.13.2工艺流程维护
l 供应商:委外供应商代码
l 转包成本:委外加工标准成本
l 采购单:委外采购单代码
l 项次:采购单项次
l 转入下道工序:YES
二、流程
l 18.22.2.1 委外件日程维护(如涂装件)
l 18.22.2.4 日程分解
l 18.22.3.1 重复生产领料单计算
l 18.22.3.6 重复生产领料单转移(未涂装件从半成品仓转到委外工作中心虚拟仓)
l 5.13.1 采购收货(产生工单号,并自动填写在5.5.1.13日程单维护中)
产生的会计分录如下:
RCT-PO 借:生产费用 (转包标准成本)
贷:应付存货暂估款
ISS-WO 借:在制品 (未涂装件标准成本)
贷:半成品
RCT-WO 借:半成品 (涂装件标准成本)
贷:在制品
SUBCNT 借:在制品 (转包标准成本)
生产费用
AIX5.3如何自动备份数据库
使用前注意
1. 使用root用户登陆再作以下动作
2. 因为下面动作全程会以 root用户完成数据库停止,启动等动作,故最好确保平常也是用 root做这些动作而没问题
3. 每天都要查看一下log文件确保备份无误
4.以下测试是在AIX5.2L完成,请注意在5.3测试无误再使用
步骤:
1. 用root登陆系统
2. 运行 crontab –e
3. 编辑该文件,在最后加上以下
#########################softspeed ivan add on AIX5.2###############################
01 00 * * * /app/mfgpro/eb21/stop.Demonstration
05 00 * * * /app/mfgpro/eb21/procopy ./db/mfgdemo /backup/db/mfgdemo > /backup/db/procopy`date +%y%m%d`.log
00 03 * * * /app/mfgpro/eb21/procopy ./db/admdemo /backup/db/admdemo >> /backup/db/procopy`date +%y%m%d`.log
20 03 * * * /app/mfgpro/eb21/procopy ./db/hlpdemo /backup/db/hlpdemo >> /backup/db/procopy`date +%y%m%d`.log
30 03 * * * /app/mfgpro/eb21/start.Demonstration
#########################softspeed ivan add end####################################
注意:此为备份DEMO数据库示例主要是定义在每天凌晨0点01分开始, 凌晨3点30分结束,要注意其中第3行是从新产生一个用时间命名的log文件,而且要注意 /backup/db/procopy`date +%y%m%d`.log
这两点是指“F1”按键前的案件符号,然后第4行是把新的PROCOPY 信息加到刚刚产生的log文件,故用>>
4.修改完毕按 :wq! 退出
1. 使用root用户登陆再作以下动作
2. 因为下面动作全程会以 root用户完成数据库停止,启动等动作,故最好确保平常也是用 root做这些动作而没问题
3. 每天都要查看一下log文件确保备份无误
4.以下测试是在AIX5.2L完成,请注意在5.3测试无误再使用
步骤:
1. 用root登陆系统
2. 运行 crontab –e
3. 编辑该文件,在最后加上以下
#########################softspeed ivan add on AIX5.2###############################
01 00 * * * /app/mfgpro/eb21/stop.Demonstration
05 00 * * * /app/mfgpro/eb21/procopy ./db/mfgdemo /backup/db/mfgdemo > /backup/db/procopy`date +%y%m%d`.log
00 03 * * * /app/mfgpro/eb21/procopy ./db/admdemo /backup/db/admdemo >> /backup/db/procopy`date +%y%m%d`.log
20 03 * * * /app/mfgpro/eb21/procopy ./db/hlpdemo /backup/db/hlpdemo >> /backup/db/procopy`date +%y%m%d`.log
30 03 * * * /app/mfgpro/eb21/start.Demonstration
#########################softspeed ivan add end####################################
注意:此为备份DEMO数据库示例主要是定义在每天凌晨0点01分开始, 凌晨3点30分结束,要注意其中第3行是从新产生一个用时间命名的log文件,而且要注意 /backup/db/procopy`date +%y%m%d`.log
这两点是指“F1”按键前的案件符号,然后第4行是把新的PROCOPY 信息加到刚刚产生的log文件,故用>>
4.修改完毕按 :wq! 退出
关于系统维护一些方法
关于系统维护:
1、 通用代码维护36.2.13
crrl+f 查询字段名称,后在36.2.13中设置字段的值和说明信息.
2、菜单系统维护36.4.4
选择标签:可以修改菜单名称或新增菜单名称
执行文件:客制化文件放到这里
3、打印机管理菜单36.13
打印机设置维护36.13.2
输出至:可以自己设printer100
设备路径名:printer,也可以设置打印目录
4、标签主集维护36.4.17.1
堆叠标签:名称!规格(!表示折行)
5、标签细节维护36.4.17.5
6、用户维护(用户数是有限制的)
分组:如可设维护组和浏览组。。。,不需要事先定义
7、下拉/查询维护36.20.1
关于F2功能挂接过程:
可以把客户的F2查询,借用销售定单中客户F2开窗功能,挂到价格单-客户F2查询中。如在36.20.1
录入字段名称so_cust
1.10.1.1客户字段名是pi_cs_code,程序名pppimt.p.
7.1.1程序名sosomt.p
8、安全维护:
菜单口令维护
字段安全维护(不是所有,只有特殊的字段才可以加以控制)
总帐帐户安全
会计单位安全
地点安全维护
用户监控查询
9、 CIM接口菜单 36.15,可以导入数据
10修改回报中?好是植
1显示所以?号。
fro each rps_mstr where rps_demain=”05” and rps_line=”线别” and rps_part=”件号” and rps_qty_comp=”?”
display rps_mstr
2把?修改成0
fro each rps_mstr where rps_demain=”05” and rps_line=”线别” and rps_part=”件号” and rps_qty_comp=”?” and rps_dve_date<=09/04/06
rps_qty_comp=”0”
display rps_mstr
3把完成数量改成计划数量
fro each rps_mstr where rps_demain=”05” and rps_line=”线别” and rps_part=”件号” and rps_qty_comp=”?” and rps_dve_date<=09/04/06
rps_qty_comp=rps_qty_req
display rps_mstr
屏蔽最外面的菜单
A.5
1、 通用代码维护36.2.13
crrl+f 查询字段名称,后在36.2.13中设置字段的值和说明信息.
2、菜单系统维护36.4.4
选择标签:可以修改菜单名称或新增菜单名称
执行文件:客制化文件放到这里
3、打印机管理菜单36.13
打印机设置维护36.13.2
输出至:可以自己设printer100
设备路径名:printer,也可以设置打印目录
4、标签主集维护36.4.17.1
堆叠标签:名称!规格(!表示折行)
5、标签细节维护36.4.17.5
6、用户维护(用户数是有限制的)
分组:如可设维护组和浏览组。。。,不需要事先定义
7、下拉/查询维护36.20.1
关于F2功能挂接过程:
可以把客户的F2查询,借用销售定单中客户F2开窗功能,挂到价格单-客户F2查询中。如在36.20.1
录入字段名称so_cust
1.10.1.1客户字段名是pi_cs_code,程序名pppimt.p.
7.1.1程序名sosomt.p
8、安全维护:
菜单口令维护
字段安全维护(不是所有,只有特殊的字段才可以加以控制)
总帐帐户安全
会计单位安全
地点安全维护
用户监控查询
9、 CIM接口菜单 36.15,可以导入数据
10修改回报中?好是植
1显示所以?号。
fro each rps_mstr where rps_demain=”05” and rps_line=”线别” and rps_part=”件号” and rps_qty_comp=”?”
display rps_mstr
2把?修改成0
fro each rps_mstr where rps_demain=”05” and rps_line=”线别” and rps_part=”件号” and rps_qty_comp=”?” and rps_dve_date<=09/04/06
rps_qty_comp=”0”
display rps_mstr
3把完成数量改成计划数量
fro each rps_mstr where rps_demain=”05” and rps_line=”线别” and rps_part=”件号” and rps_qty_comp=”?” and rps_dve_date<=09/04/06
rps_qty_comp=rps_qty_req
display rps_mstr
屏蔽最外面的菜单
A.5
MFG/PRO初始化步骤
MFG/PRO初始化步骤
25.3.1
会计单位维护
26.1
货币维护
1.1.13
地点维护
36.1
系统/帐户控制文件
36.2.3
日历维护
1.1.1
库存状态代码维护
1.1.5
零件状态代码维护
2.13.1.1
税收类型维护
2.13.1.5
税收类别维护
2.13.1.9
税用途
2.13.1.13
纳税基数维护
2.13.3.1
国家代码维护
2.13.3.13
纳税区
2.13.5.1
纳税环境
2.13.13.1
税率维护
36.3.1
菜单口令维护
36.3.18
用户维护
1.2.1
产品类维护
1.13
计量单位维护
2.7.1
雇员维护
2.12
公司地址维护
2.24
地址/税收控制文件
2.13.24
全球税收管理控制文件(圆整方法:2)
36.2.13
通用代码维护cm_type:客户类型so_channel:销售渠道ad_format:邮政编码打印位置pt_part_type:零件类型pt_buyer:零件采购员po_buyer:订单采购员ad_start:省ad_city:城市ad_country:国别vd_type:供应商类型
36.4.21
窗口提示维护(小眼睛--字段名--要执行的过程名)
1.10.1.24
价格控制文件
19.24
质量管理控制文件
2.1.24
客户代码控制文件
2.3.24
供应商代码控制文件
23.24
MRP控制文件
3.24
仓库控制文件
36.3.24
安全控制文件
5.24
采购控制文件
5.5.7.24
供应商日程控制文件
7.1.24
客户定单控制文件
7.3.24
客户日程控制文件
36.2.21.1
号码范围维护
1.1.18
库位维护
2.11
地址代码变更
5.5.1.13
排程单维护
25.3.4
总帐日历维护
25.3.7
科目分组维护
25.3.13
帐户代码维护
1.10.1.1
销售价格单维护
1.10.2.1
采购价格单维护
1.4.9
零件的标准成本
1.4.5
零件库存维护
36.13.4
打印机缺省值维护
2.20.24
运费控制文件
25.3.1
会计单位维护
26.1
货币维护
1.1.13
地点维护
36.1
系统/帐户控制文件
36.2.3
日历维护
1.1.1
库存状态代码维护
1.1.5
零件状态代码维护
2.13.1.1
税收类型维护
2.13.1.5
税收类别维护
2.13.1.9
税用途
2.13.1.13
纳税基数维护
2.13.3.1
国家代码维护
2.13.3.13
纳税区
2.13.5.1
纳税环境
2.13.13.1
税率维护
36.3.1
菜单口令维护
36.3.18
用户维护
1.2.1
产品类维护
1.13
计量单位维护
2.7.1
雇员维护
2.12
公司地址维护
2.24
地址/税收控制文件
2.13.24
全球税收管理控制文件(圆整方法:2)
36.2.13
通用代码维护cm_type:客户类型so_channel:销售渠道ad_format:邮政编码打印位置pt_part_type:零件类型pt_buyer:零件采购员po_buyer:订单采购员ad_start:省ad_city:城市ad_country:国别vd_type:供应商类型
36.4.21
窗口提示维护(小眼睛--字段名--要执行的过程名)
1.10.1.24
价格控制文件
19.24
质量管理控制文件
2.1.24
客户代码控制文件
2.3.24
供应商代码控制文件
23.24
MRP控制文件
3.24
仓库控制文件
36.3.24
安全控制文件
5.24
采购控制文件
5.5.7.24
供应商日程控制文件
7.1.24
客户定单控制文件
7.3.24
客户日程控制文件
36.2.21.1
号码范围维护
1.1.18
库位维护
2.11
地址代码变更
5.5.1.13
排程单维护
25.3.4
总帐日历维护
25.3.7
科目分组维护
25.3.13
帐户代码维护
1.10.1.1
销售价格单维护
1.10.2.1
采购价格单维护
1.4.9
零件的标准成本
1.4.5
零件库存维护
36.13.4
打印机缺省值维护
2.20.24
运费控制文件
BI文件超过最大限制解决方法
1 停止数据库./STOP.数据库名
2 看B1文件大小ls -l.b1
3 强制压缩BI文件
proutil -C truncate bi -F -G 0
4 新建立个 addbi.st 内容如下:(设置成1G)
b /app/mfgpro/eb21/db/mfgprod.b1 f 1024000b /app/mfgpro/eb21/db/mfgprod.b2 f 1024000b /app/mfgpro/eb21/db/mfgprod.b3 f 1024000b /app/mfgpro/eb21/db/mfgprod.b4
5 移除老数据库的BI文件 prostrct remove bi
6把新的BI文件替代老的BI文件
prostrct add addbi.st
7重新建立.STprostrct list .st
8成功后启动数据库成功后检查3.21.1事务时间和数据库的LG文件出错时间是都一致!
9日常解决在备份数据库的时候做Truncate 定期做Dump/load
2 看B1文件大小ls -l
3 强制压缩BI文件
proutil
4 新建立个 addbi.st 内容如下:(设置成1G)
b /app/mfgpro/eb21/db/mfgprod.b1 f 1024000b /app/mfgpro/eb21/db/mfgprod.b2 f 1024000b /app/mfgpro/eb21/db/mfgprod.b3 f 1024000b /app/mfgpro/eb21/db/mfgprod.b4
5 移除老数据库的BI文件 prostrct remove
6把新的BI文件替代老的BI文件
prostrct add
7重新建立.STprostrct list
8成功后启动数据库成功后检查3.21.1事务时间和数据库的LG文件出错时间是都一致!
9日常解决在备份数据库的时候做Truncate 定期做Dump/load
关于ERP实施的感触(前期)
搞ERP实施已经有5年了,做了5年感触多多写下来给大家参考下
项目实施前
要先确定项目的范围
1单工厂 2集团
如果是2那恭喜你中奖了你将相当辛苦
如果是1那你可以充满希望的憧憬未来了哈哈哈
选择一行业性的ERP很重要,因为真的很多行业的特性非常明显也非常特殊.
所以先找几家相似行业的来出发初步方案.他们这时候很积极哈哈哈.当然商务的事情你要负责的话也要和他们碰碰的.这样时候你要注意要他们派人来你们工厂调研(反正免费的哈哈)出调研报告.当然几天是调查不出什么东西的(除非非常非常厉害的人)你可以评价下看看他们顾问的水平,要求软件公司提供试用版本,要求各部门都去使用测试软件的功能性和友好性(这比较总要为什么以后在说哈哈)
如果是集团的那工作就复杂了
你前期要做好标准话工作,统一集团的物料编码,供应商编码,客户编码.财务科目代码,人员,(可以不统一)等
要考虑服务器架构(建议用分布),以后的数据抽取,报表合并问题.
测试时候还测试公共网络对系统传输的影响等
集团实施的前期一个小失误对或许可能就是几百W的影响
项目主导人员要有足够的授权
项目人员选择角色主导人员 1良好的项目管理经验 2良好的沟通能力 3勇敢,果断,坚韧
4 计算机基础 5熟悉集团或者公司流程
项目团队角色实施人员 1良好的学习能力 2良好的沟通能力 3细心,耐心.4最好单身 (集团的好要经常出差呵呵) 5良好计算机基础 6熟悉集团或者公司流程
项目团队角色2次开发人员 1计算机软件开发能力 2良好的沟通能力 3熟悉软件开发流程及测试流程.其它还没想到哈哈!今天先写到这把累了NND
项目实施前
要先确定项目的范围
1单工厂 2集团
如果是2那恭喜你中奖了你将相当辛苦
如果是1那你可以充满希望的憧憬未来了哈哈哈
选择一行业性的ERP很重要,因为真的很多行业的特性非常明显也非常特殊.
所以先找几家相似行业的来出发初步方案.他们这时候很积极哈哈哈.当然商务的事情你要负责的话也要和他们碰碰的.这样时候你要注意要他们派人来你们工厂调研(反正免费的哈哈)出调研报告.当然几天是调查不出什么东西的(除非非常非常厉害的人)你可以评价下看看他们顾问的水平,要求软件公司提供试用版本,要求各部门都去使用测试软件的功能性和友好性(这比较总要为什么以后在说哈哈)
如果是集团的那工作就复杂了
你前期要做好标准话工作,统一集团的物料编码,供应商编码,客户编码.财务科目代码,人员,(可以不统一)等
要考虑服务器架构(建议用分布),以后的数据抽取,报表合并问题.
测试时候还测试公共网络对系统传输的影响等
集团实施的前期一个小失误对或许可能就是几百W的影响
项目主导人员要有足够的授权
项目人员选择角色主导人员 1良好的项目管理经验 2良好的沟通能力 3勇敢,果断,坚韧
4 计算机基础 5熟悉集团或者公司流程
项目团队角色实施人员 1良好的学习能力 2良好的沟通能力 3细心,耐心.4最好单身 (集团的好要经常出差呵呵) 5良好计算机基础 6熟悉集团或者公司流程
项目团队角色2次开发人员 1计算机软件开发能力 2良好的沟通能力 3熟悉软件开发流程及测试流程.其它还没想到哈哈!今天先写到这把累了NND
标准成本报表的程序贡献给大家
是在字符界面下的!结合快意的BISTART使用的!要是想不使用BI把EXPORT DELIMITER ";" 改成DISPLAY就可以了
输出
产品类代码
产品类说明
零件代码
单位
状态
零件说明
件号
成本集
物料成本
人工成本
附加成本
间接成本
转包成本
成本合计
成本更新日期几个字段
{mfdtitle.i "1.0 "}
define variable line like pt_prod_line.
define variable line1 like pt_prod_line.
define variable part like pt_part.
define variable part1 like pt_part.
define variable type like pt_part_type.
define variable type1 like pt_part_type.
define variable site like si_site.
define variable site1 like si_site.
define variable buyer like pt_buyer.
define variable buyer1 like pt_buyer.
define variable pldesc like pl_desc.
define variable first_flag as logical initial no.
define variable first_of_flag as logical initial no.
define variable desc1 like pt_desc1 format "x(80)" .
define variable desc2 like pt_desc2 format "x(80)" .
define variable mtltl like sct_mtl_tl.
define variable lbrtl like sct_lbr_tl.
define variable bdntl like sct_bdn_tl.
define variable ovhtl like sct_ovh_tl.
define variable subtl like sct_sub_tl.
form
line colon 15
line1 label {t001.i} colon 49 skip
part colon 15
part1 label {t001.i} colon 49 skip
type colon 15
type1 label {t001.i} colon 49 skip
site colon 15 site1 label {t001.i} colon 49 skip
buyer colon 15 buyer1 label {t001.i} colon 49 skip
with frame a side-labels width 80.
setFrameLabels(frame a:handle).
{wbrp01.i}
repeat:
if part1 = hi_char then part1 = "".
if line1 = hi_char then line1 = "".
if type1 = hi_char then type1 = "".
if site1 = hi_char then site1 = "".
if buyer1 = hi_char then buyer1 = "".
if c-application-mode <> "WEB" then update line line1 part part1 type type1 site site1 buyer buyer1 with frame a. {wbrp06.i &command = update
&fields = " line line1 part part1 type type1 site site1 buyer buyer1"
&frm = "a"}
if (c-application-mode <> "WEB") or
(c-application-mode = "WEB" and
(c-web-request begins "DATA"))
then do: bcdparm = "". {mfquoter.i line } {mfquoter.i line1 } {mfquoter.i part } {mfquoter.i part1 } {mfquoter.i type } {mfquoter.i type1 } {mfquoter.i site } {mfquoter.i site1 } {mfquoter.i buyer } {mfquoter.i buyer1 }
if part1 = "" then part1 = hi_char.
if line1 = "" then line1 = hi_char.
if type1 = "" then type1 = hi_char.
if site1 = "" then site1 = hi_char.
if buyer1 = "" then buyer1 = hi_char.
end. {mfselbpr.i "printer" 132}
PUT UNFORMATTED "#def REPORTPATH=$/Minth/minthck" SKIP. PUT UNFORMATTED "#def :end" SKIP.
for each pt_mstr no-lock use-index pt_part where pt_mstr.pt_domain = global_domain and (pt_part >= part and pt_part <= part1) and (pt_prod_line >= line and pt_prod_line <= line1) and (pt_part_type >= type and pt_part_type <= type1), each sct_det no-lock use-index sct_part where sct_domain = global_domain and sct_part = pt_part and sct_sim matches "*STD", each pl_mstr no-lock use-index pl_prod_line where pl_domain = global_domain and pl_prod_line = pt_prod_line:
assign desc1 = pt_desc1 desc2 = pt_desc2 mtltl = sct_mtl_tl + sct_mtl_ll lbrtl = sct_lbr_tl + sct_lbr_ll bdntl = sct_bdn_tl + sct_bdn_ll ovhtl = sct_ovh_tl + sct_ovh_ll subtl = sct_sub_tl + sct_sub_ll.
EXPORT DELIMITER ";" pl_prod_line pl_desc pt_part pt_um pt_status desc1 desc2 sct_sim mtltl lbrtl bdntl ovhtl subtl sct_cst_tot sct_cst_date .
end.
/*{mfrpchk.i} */{mfreset.i}end. {wbrp04.i}
输出
产品类代码
产品类说明
零件代码
单位
状态
零件说明
件号
成本集
物料成本
人工成本
附加成本
间接成本
转包成本
成本合计
成本更新日期几个字段
{mfdtitle.i "1.0 "}
define variable line like pt_prod_line.
define variable line1 like pt_prod_line.
define variable part like pt_part.
define variable part1 like pt_part.
define variable type like pt_part_type.
define variable type1 like pt_part_type.
define variable site like si_site.
define variable site1 like si_site.
define variable buyer like pt_buyer.
define variable buyer1 like pt_buyer.
define variable pldesc like pl_desc.
define variable first_flag as logical initial no.
define variable first_of_flag as logical initial no.
define variable desc1 like pt_desc1 format "x(80)" .
define variable desc2 like pt_desc2 format "x(80)" .
define variable mtltl like sct_mtl_tl.
define variable lbrtl like sct_lbr_tl.
define variable bdntl like sct_bdn_tl.
define variable ovhtl like sct_ovh_tl.
define variable subtl like sct_sub_tl.
form
line colon 15
line1 label {t001.i} colon 49 skip
part colon 15
part1 label {t001.i} colon 49 skip
type colon 15
type1 label {t001.i} colon 49 skip
site colon 15 site1 label {t001.i} colon 49 skip
buyer colon 15 buyer1 label {t001.i} colon 49 skip
with frame a side-labels width 80.
setFrameLabels(frame a:handle).
{wbrp01.i}
repeat:
if part1 = hi_char then part1 = "".
if line1 = hi_char then line1 = "".
if type1 = hi_char then type1 = "".
if site1 = hi_char then site1 = "".
if buyer1 = hi_char then buyer1 = "".
if c-application-mode <> "WEB" then update line line1 part part1 type type1 site site1 buyer buyer1 with frame a. {wbrp06.i &command = update
&fields = " line line1 part part1 type type1 site site1 buyer buyer1"
&frm = "a"}
if (c-application-mode <> "WEB") or
(c-application-mode = "WEB" and
(c-web-request begins "DATA"))
then do: bcdparm = "". {mfquoter.i line } {mfquoter.i line1 } {mfquoter.i part } {mfquoter.i part1 } {mfquoter.i type } {mfquoter.i type1 } {mfquoter.i site } {mfquoter.i site1 } {mfquoter.i buyer } {mfquoter.i buyer1 }
if part1 = "" then part1 = hi_char.
if line1 = "" then line1 = hi_char.
if type1 = "" then type1 = hi_char.
if site1 = "" then site1 = hi_char.
if buyer1 = "" then buyer1 = hi_char.
end. {mfselbpr.i "printer" 132}
PUT UNFORMATTED "#def REPORTPATH=$/Minth/minthck" SKIP. PUT UNFORMATTED "#def :end" SKIP.
for each pt_mstr no-lock use-index pt_part where pt_mstr.pt_domain = global_domain and (pt_part >= part and pt_part <= part1) and (pt_prod_line >= line and pt_prod_line <= line1) and (pt_part_type >= type and pt_part_type <= type1), each sct_det no-lock use-index sct_part where sct_domain = global_domain and sct_part = pt_part and sct_sim matches "*STD", each pl_mstr no-lock use-index pl_prod_line where pl_domain = global_domain and pl_prod_line = pt_prod_line:
assign desc1 = pt_desc1 desc2 = pt_desc2 mtltl = sct_mtl_tl + sct_mtl_ll lbrtl = sct_lbr_tl + sct_lbr_ll bdntl = sct_bdn_tl + sct_bdn_ll ovhtl = sct_ovh_tl + sct_ovh_ll subtl = sct_sub_tl + sct_sub_ll.
EXPORT DELIMITER ";" pl_prod_line pl_desc pt_part pt_um pt_status desc1 desc2 sct_sim mtltl lbrtl bdntl ovhtl subtl sct_cst_tot sct_cst_date .
end.
/*{mfrpchk.i} */{mfreset.i}end. {wbrp04.i}
订阅:
博文 (Atom)