-- 委外领料加物料名称字段
  IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IM_MDC_OMOUTBILLENTRY' AND KSQL_COL_NAME ='FMATERIALNAME')
 ALTER TABLE T_IM_MDC_OMOUTBILLENTRY ADD (FMATERIALNAME NVARCHAR(255) DEFAULT ' ' NOT NULL );
 
 
 -- 委外完工入库加物料名称目字段
  IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IM_MDC_OMCPBILLENTRY' AND KSQL_COL_NAME ='FMATERIALNAME')
 ALTER TABLE T_IM_MDC_OMCPBILLENTRY ADD (FMATERIALNAME NVARCHAR(255) DEFAULT ' ' NOT NULL );
