CREATE TABLE [dbo].[CP_ProdInfo] (
	[Prod_ID] [int] NOT NULL ,
	[own_id] [varchar] (10) NOT NULL ,
	[Prod_Code] [varchar] (25) NOT NULL ,
	[PI_Name] [nvarchar] (64) NOT NULL ,
	[PI_AID] [varchar] (10) NULL ,
	[PT_ID] [int] NOT NULL ,
	[PI_Spec] [varchar] (50) NULL ,
	[Unit_ID] [int] NULL ,
	[PI_Unit] [varchar] (20) NOT NULL ,
	[PI_Price] [numeric](18, 4) NOT NULL ,
	[PI_Cost] [numeric](18, 4) NOT NULL ,
	[PI_Date] [varchar] (10) NULL ,
	[PI_Grade] [varchar] (10) NULL ,
	[PI_MaintTerm] [int] NULL ,
	[PI_Picture] [int] NULL ,
	[PI_Desc] [text] NULL ,
	[PI_Memo] [text] NULL ,
	[PI_Int01] [int] NULL ,
	[PI_Int02] [int] NULL ,
	[PI_Int03] [int] NULL ,
	[PI_Dec01] [numeric](18, 4) NULL ,
	[PI_Dec02] [numeric](18, 4) NULL ,
	[PI_Dec03] [numeric](18, 4) NULL ,
	[PI_Char01] [varchar] (64) NULL ,
	[PI_Char02] [varchar] (64) NULL ,
	[PI_Char03] [varchar] (64) NULL ,
	[PI_Char04] [varchar] (64) NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[CP_ProdType] (
	[PT_ID] [int] NOT NULL ,
	[own_id] [varchar] (10) NOT NULL ,
	[PT_Code] [varchar] (20) NOT NULL ,
	[PT_Name] [nvarchar] (50) NOT NULL ,
	[PT_ProdSN] [int] NULL ,
	[PT_Levels] [int] NULL ,
	[PT_Path] [varchar] (100) NULL ,
	[PT_ParentID] [int] NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[FW_CareAdvice] (
	[Ca_ID] [int] IDENTITY (1, 1) NOT NULL ,
	[own_id] [varchar] (10) NOT NULL ,
	[CA_Code] [varchar] (20) NULL ,
	[CA_Type] [varchar] (20) NULL ,
	[CA_CustID] [text] NULL ,
	[CA_Subject] [varchar] (100) NULL ,
	[CA_Content] [text] NULL ,
	[CA_Days] [int] NULL ,
	[CA_Flag] [bit] NULL ,
	[Contact_ID] [int] NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[FW_FdbkPrg] (
	[rid] [int] IDENTITY (1, 1) NOT NULL ,
	[own_id] [varchar] (10) NOT NULL ,
	[Fdbk_id] [varchar] (10) NOT NULL ,
	[Fp_PrgId] [varchar] (10) NOT NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[FW_FdbkTask] (
	[rid] [int] IDENTITY (1, 1) NOT NULL ,
	[own_id] [varchar] (10) NOT NULL ,
	[Fdbk_ID] [varchar] (10) NOT NULL ,
	[FT_TaskID] [varchar] (10) NOT NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[FW_Feedback] (
	[Fdbk_ID] [int] NOT NULL ,
	[own_id] [varchar] (10) NOT NULL ,
	[Fdbk_Code] [varchar] (20) NOT NULL ,
	[Fdbk_SrcType] [varchar] (10) NULL ,
	[Fdbk_SrcID] [int] NULL ,
	[Fdbk_Type] [varchar] (10) NULL ,
	[Fdbk_TargetType] [varchar] (10) NULL ,
	[Fdbk_TargetID] [varchar] (10) NULL ,
	[Fdbk_TargetName] [varchar] (100) NULL ,
	[Fdbk_subject] [varchar] (50) NULL ,
	[Fdbk_priority] [varchar] (10) NULL ,
	[Fdbk_Dispose] [varchar] (100) NULL ,
	[Fdbk_Desc] [text] NULL ,
	[Fdbk_Result] [text] NULL ,
	[Fdbk_Date] [datetime] NULL ,
	[Fdbk_Acceptor] [int] NULL ,
	[Fdbk_FinishDate] [datetime] NULL ,
	[Fdbk_Flag] [bit] NULL ,
	[Fdbk_Status] [varchar] (10) NULL ,
	[Fdbk_ExecEmp] [text] NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[FW_Holiday] (
	[rid] [int] IDENTITY (1, 1) NOT NULL ,
	[own_id] [varchar] (10) NULL ,
	[ho_month] [smallint] NOT NULL ,
	[ho_day] [smallint] NOT NULL ,
	[ho_name] [varchar] (30) NOT NULL ,
	[ho_wish] [text] NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[FW_MaintCard] (
	[rid] [int] IDENTITY (1, 1) NOT NULL ,
	[own_id] [varchar] (10) NOT NULL ,
	[MC_ID] [varchar] (20) NOT NULL ,
	[Prod_ID] [int] NOT NULL ,
	[MC_SerialNo] [varchar] (40) NULL ,
	[MC_BuyDate] [smalldatetime] NULL ,
	[Mc_TermDate] [smalldatetime] NULL ,
	[MC_Sell] [varchar] (100) NULL ,
	[MC_Acceptor] [int] NULL ,
	[cust_id] [int] NULL ,
	[mc_contact] [varchar] (32) NULL ,
	[mc_addr] [varchar] (128) NULL ,
	[mc_phone] [varchar] (32) NULL ,
	[mc_postcode] [varchar] (10) NULL ,
	[mc_email] [varchar] (64) NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[FW_MaintRec] (
	[rid] [int] IDENTITY (1, 1) NOT NULL ,
	[own_id] [varchar] (10) NOT NULL ,
	[MC_ID] [varchar] (20) NOT NULL ,
	[MR_Date] [datetime] NULL ,
	[MR_Desc] [varchar] (256) NULL ,
	[MR_Charge] [numeric](18, 4) NULL ,
	[MR_Status] [varchar] (10) NULL ,
	[MR_Repairer] [int] NULL ,
	[MR_TaskID] [varchar] (20) NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[FW_MaintTask] (
	[rid] [int] IDENTITY (1, 1) NOT NULL ,
	[own_id] [varchar] (10) NOT NULL ,
	[MR_ID] [varchar] (10) NOT NULL ,
	[MT_TaskID] [varchar] (10) NOT NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[FW_SrvcRule] (
	[sr_ID] [int] NOT NULL ,
	[own_Id] [varchar] (10) NOT NULL ,
	[sr_Code] [varchar] (20) NOT NULL ,
	[sr_subject] [varchar] (100) NOT NULL ,
	[sr_content] [text] NULL ,
	[sr_type] [int] NULL ,
	[sr_dept] [int] NULL ,
	[sr_filename] [varchar] (100) NULL ,
	[sr_filepath] [varchar] (200) NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[JB_Contact] (
	[ct_id] [int] NOT NULL ,
	[own_id] [varchar] (10) NOT NULL ,
	[ct_name] [nvarchar] (50) NOT NULL ,
	[ct_aid] [nvarchar] (10) NULL ,
	[ct_sex] [nvarchar] (50) NULL ,
	[ct_married] [bit] NULL ,
	[ct_birthday] [datetime] NULL ,
	[ct_title] [nvarchar] (50) NULL ,
	[ct_dept] [nvarchar] (50) NULL ,
	[ct_addr] [nvarchar] (100) NULL ,
	[ct_postcode] [varchar] (10) NULL ,
	[ct_phone] [varchar] (20) NULL ,
	[ct_fax] [varchar] (20) NULL ,
	[ct_mobile] [varchar] (20) NULL ,
	[ct_pager] [varchar] (20) NULL ,
	[ct_email] [nvarchar] (60) NULL ,
	[ct_Hphone] [nvarchar] (50) NULL ,
	[ct_biz] [nvarchar] (50) NULL ,
	[ct_memo] [text] NULL ,
	[ct_flag] [bit] NULL ,
	[ct_type] [varchar] (5) NULL ,
	[cust_id] [int] NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[JB_CustContact] (
	[rid] [int] IDENTITY (1, 1) NOT NULL ,
	[own_id] [varchar] (10) NOT NULL ,
	[cust_id] [int] NOT NULL ,
	[contact_id] [int] NOT NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[JB_CustEvent] (
	[rid] [int] IDENTITY (1, 1) NOT NULL ,
	[cust_id] [int] NULL ,
	[ce_subject] [nvarchar] (128) NULL ,
	[event_type] [int] NULL ,
	[contact_id] [int] NULL ,
	[emp_id] [int] NULL ,
	[ce_begin] [datetime] NULL ,
	[ce_end] [datetime] NULL ,
	[ce_info] [nvarchar] (128) NULL ,
	[ce_desc] [text] NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[JB_CustInfo] (
	[CI_ID] [int] NOT NULL ,
	[own_id] [varchar] (10) NOT NULL ,
	[CI_Code] [varchar] (10) NOT NULL ,
	[CI_Name] [nvarchar] (100) NOT NULL ,
	[CI_AID] [varchar] (10) NULL ,
	[CI_Type] [varchar] (5) NULL ,
	[CI_Abbr] [varchar] (20) NULL ,
	[Province_ID] [int] NULL ,
	[City_ID] [int] NULL ,
	[District_ID] [int] NULL ,
	[Area_ID] [int] NULL ,
	[GT_ID] [int] NULL ,
	[Trade_ID] [int] NULL ,
	[CK_ID] [int] NULL ,
	[CS_ID] [int] NULL ,
	[CI_Scale] [nvarchar] (20) NULL ,
	[CI_Fund] [numeric](18, 4) NULL ,
	[CI_Legal] [nvarchar] (50) NULL ,
	[CI_Addr] [nvarchar] (100) NULL ,
	[CI_PostCode] [varchar] (10) NULL ,
	[CI_Phone1] [varchar] (20) NULL ,
	[ci_phone2] [varchar] (20) NULL ,
	[CI_Fax] [varchar] (20) NULL ,
	[CI_Mobile] [varchar] (20) NULL ,
	[CI_Pager] [varchar] (20) NULL ,
	[CI_Email] [varchar] (60) NULL ,
	[CI_Web] [varchar] (50) NULL ,
	[CI_Bank] [varchar] (30) NULL ,
	[CI_Account] [varchar] (30) NULL ,
	[CI_Credit] [numeric](18, 4) NULL ,
	[CI_TotalSales] [numeric](18, 4) NULL ,
	[CI_Arrearage] [numeric](18, 4) NULL ,
	[CI_Turnover] [numeric](18, 4) NULL ,
	[Contact_ID] [int] NULL ,
	[Emp_ID] [int] NULL ,
	[CI_Forbid] [bit] NULL ,
	[CI_Desc] [text] NULL ,
	[CI_Int01] [int] NULL ,
	[CI_Int02] [int] NULL ,
	[CI_Int03] [int] NULL ,
	[CI_Dec01] [numeric](18, 4) NULL ,
	[CI_Dec02] [numeric](18, 4) NULL ,
	[CI_Dec03] [numeric](18, 4) NULL ,
	[CI_Char01] [varchar] (64) NULL ,
	[CI_Char02] [varchar] (64) NULL ,
	[CI_Char03] [varchar] (64) NULL ,
	[CI_Char04] [varchar] (64) NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[JB_CustRequire] (
	[rid] [int] IDENTITY (1, 1) NOT NULL ,
	[cust_id] [int] NULL ,
	[cr_date] [datetime] NULL ,
	[cr_maker] [int] NULL ,
	[cr_kind] [int] NULL ,
	[cr_desc] [text] NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[JB_EmpCust] (
	[rid] [int] IDENTITY (1, 1) NOT NULL ,
	[own_id] [varchar] (10) NOT NULL ,
	[cust_id] [int] NOT NULL ,
	[emp_id] [int] NOT NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[JB_RivalInfo] (
	[ri_id] [int] NOT NULL ,
	[own_id] [varchar] (10) NOT NULL ,
	[RI_Name] [nvarchar] (50) NOT NULL ,
	[CK_ID] [int] NULL ,
	[Area_ID] [int] NULL ,
	[RI_Fund] [numeric](18, 4) NULL ,
	[RI_StaffNum] [int] NULL ,
	[RI_Turnover] [numeric](18, 4) NULL ,
	[RI_Addr] [nvarchar] (100) NULL ,
	[RI_PostCode] [varchar] (10) NULL ,
	[RI_Phone] [varchar] (20) NULL ,
	[RI_Fax] [varchar] (20) NULL ,
	[RI_Email] [varchar] (40) NULL ,
	[RI_Desc] [text] NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[JB_RivalProd] (
	[own_id] [varchar] (10) NOT NULL ,
	[RI_ID] [int] NOT NULL ,
	[RP_ID] [int] NOT NULL ,
	[RP_Name] [nvarchar] (50) NOT NULL ,
	[RP_Type] [nvarchar] (50) NULL ,
	[RP_Unit] [nvarchar] (50) NULL ,
	[RP_Price] [numeric](18, 4) NULL ,
	[RP_Strength] [text] NULL ,
	[RP_Weakness] [text] NULL ,
	[RP_Tactic] [text] NULL ,
	[RP_Memo] [text] NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[JC_ActResult] (
	[ar_id] [int] NOT NULL ,
	[own_id] [varchar] (10) NOT NULL ,
	[ar_name] [nvarchar] (50) NOT NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[JC_ActType] (
	[at_id] [int] NOT NULL ,
	[own_id] [varchar] (10) NOT NULL ,
	[at_name] [nvarchar] (50) NOT NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[JC_ActionDef] (
	[rid] [int] NOT NULL ,
	[own_id] [varchar] (10) NOT NULL ,
	[dept_id] [varchar] (10) NULL ,
	[ad_Name] [nvarchar] (50) NOT NULL ,
	[ad_type] [varchar] (10) NOT NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[JC_Area] (
	[area_id] [int] NOT NULL ,
	[own_id] [varchar] (10) NOT NULL ,
	[area_code] [varchar] (20) NOT NULL ,
	[area_name] [nvarchar] (50) NOT NULL ,
	[area_rootid] [int] NULL ,
	[area_baseid] [int] NULL ,
	[levels] [int] NULL ,
	[path] [varchar] (100) NULL ,
	[parentID] [int] NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[JC_Campaign] (
	[rid] [int] NOT NULL ,
	[own_id] [varchar] (10) NOT NULL ,
	[cp_content] [nvarchar] (50) NOT NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[JC_CustKind] (
	[ck_id] [int] NOT NULL ,
	[own_id] [varchar] (10) NOT NULL ,
	[ck_name] [nvarchar] (50) NOT NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[JC_EventType] (
	[et_id] [int] NOT NULL ,
	[own_id] [varchar] (50) NULL ,
	[et_name] [nvarchar] (50) NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[JC_ExpenseType] (
	[et_id] [int] NOT NULL ,
	[own_id] [varchar] (10) NOT NULL ,
	[et_name] [nvarchar] (50) NOT NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[JC_GradeType] (
	[rid] [int] NOT NULL ,
	[own_id] [varchar] (10) NOT NULL ,
	[gt_name] [nvarchar] (50) NOT NULL ,
	[gt_type] [varchar] (10) NOT NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[JC_LostSales] (
	[rid] [int] NOT NULL ,
	[own_id] [varchar] (10) NOT NULL ,
	[ls_content] [nvarchar] (50) NOT NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[JC_OpptPhase] (
	[op_id] [int] NOT NULL ,
	[own_id] [varchar] (10) NOT NULL ,
	[op_name] [nvarchar] (50) NOT NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[JC_OpptStatus] (
	[os_id] [int] NOT NULL ,
	[own_id] [varchar] (10) NOT NULL ,
	[os_name] [nvarchar] (50) NOT NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[JC_OpptType] (
	[ot_id] [int] NOT NULL ,
	[own_id] [varchar] (10) NOT NULL ,
	[ot_name] [nvarchar] (50) NOT NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[JC_PayMode] (
	[pm_id] [int] NOT NULL ,
	[own_id] [varchar] (10) NOT NULL ,
	[pm_name] [nvarchar] (50) NOT NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[JC_Possible] (
	[rid] [int] NOT NULL ,
	[own_id] [varchar] (10) NOT NULL ,
	[possible_scope] [varchar] (50) NULL ,
	[possible_max] [int] NULL ,
	[possible_min] [int] NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[JC_Progress] (
	[rid] [int] NOT NULL ,
	[own_id] [varchar] (10) NOT NULL ,
	[prg_content] [nvarchar] (50) NOT NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[JC_Region] (
	[JR_ID] [int] NOT NULL ,
	[own_id] [varchar] (20) NULL ,
	[JR_Name] [nvarchar] (20) NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[JC_RequireType] (
	[rt_id] [int] NOT NULL ,
	[own_id] [varchar] (10) NULL ,
	[rt_name] [nvarchar] (50) NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[JC_SourceType] (
	[rid] [int] NOT NULL ,
	[own_id] [varchar] (10) NOT NULL ,
	[st_name] [nvarchar] (50) NOT NULL ,
	[st_type] [varchar] (10) NOT NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[JC_TaskStatus] (
	[rid] [int] NOT NULL ,
	[own_id] [varchar] (10) NOT NULL ,
	[ts_status] [nvarchar] (50) NULL ,
	[ts_type] [varchar] (10) NOT NULL ,
	[ts_delete] [bit] NOT NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[JC_Trade] (
	[trade_id] [int] NOT NULL ,
	[own_id] [varchar] (10) NOT NULL ,
	[trade_name] [nvarchar] (50) NOT NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[JC_TypeDef] (
	[td_id] [int] NOT NULL ,
	[own_id] [varchar] (10) NOT NULL ,
	[td_name] [varchar] (50) NULL ,
	[td_type] [varchar] (10) NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[JC_Unit] (
	[rid] [int] NOT NULL ,
	[own_id] [varchar] (10) NOT NULL ,
	[unit_name] [nvarchar] (50) NOT NULL ,
	[unit_spec] [varchar] (20) NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[JT_Owner] (
	[rid] [int] IDENTITY (1, 1) NOT NULL ,
	[own_id] [varchar] (10) NOT NULL ,
	[own_Name] [varchar] (40) NOT NULL ,
	[own_Abbr] [varchar] (20) NULL ,
	[own_Addr] [varchar] (100) NULL ,
	[own_Email] [varchar] (40) NULL ,
	[own_Phone] [varchar] (20) NULL ,
	[own_Fax] [varchar] (20) NULL ,
	[own_PostCode] [varchar] (10) NULL ,
	[own_City] [varchar] (20) NULL ,
	[own_Province] [varchar] (20) NULL ,
	[own_Flag] [bit] NOT NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[Pub_Attach] (
	[Att_id] [int] NOT NULL ,
	[Att_SrcType] [varchar] (20) NULL ,
	[Att_SrcID] [int] NULL ,
	[Att_Mime] [varchar] (50) NULL ,
	[Att_CreateDate] [datetime] NULL ,
	[Att_Subject] [nvarchar] (100) NULL ,
	[Att_FileName] [varchar] (256) NULL ,
	[Att_Desc] [text] NULL ,
	[Att_Flag] [bit] NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[Pub_Attach_Content] (
	[Att_ID] [int] NOT NULL ,
	[Att_Content] [image] NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[Pub_BillCode] (
	[Own_id] [varchar] (10) NOT NULL ,
	[BC_MaxID] [int] NOT NULL ,
	[BC_Type] [varchar] (10) NOT NULL ,
	[BC_Prefix] [varchar] (10) NULL ,
	[BC_SerialLen] [int] NULL ,
	[BC_Date] [datetime] NULL ,
	[BC_HasDate] [bit] NULL ,
	[BC_AutoIncrease] [bit] NULL ,
	[BC_Use] [bit] NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[Pub_Calendar] (
	[rid] [int] IDENTITY (1, 1) NOT NULL ,
	[own_id] [varchar] (10) NOT NULL ,
	[Emp_id] [int] NOT NULL ,
	[Cal_Date] [datetime] NOT NULL ,
	[Cal_StartTime] [datetime] NOT NULL ,
	[Cal_EndTime] [datetime] NULL ,
	[Cal_Subject] [varchar] (50) NOT NULL ,
	[Cal_Location] [varchar] (20) NULL ,
	[Cal_Type] [varchar] (20) NOT NULL ,
	[Task_ID] [varchar] (20) NULL ,
	[Cal_Desc] [text] NULL ,
	[Cal_Remind] [int] NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[Pub_DefType] (
	[rid] [int] IDENTITY (1, 1) NOT NULL ,
	[own_id] [varchar] (10) NOT NULL ,
	[DT_ID] [varchar] (10) NOT NULL ,
	[DT_ParentName] [varchar] (30) NOT NULL ,
	[DT_PropName] [varchar] (30) NOT NULL ,
	[DT_DataType] [varchar] (10) NOT NULL ,
	[DT_DataLength] [int] NOT NULL ,
	[DT_Precision] [int] NOT NULL ,
	[DT_Location] [varchar] (10) NOT NULL ,
	[DT_Memo] [varchar] (100) NOT NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[Pub_Event] (
	[pe_id] [int] NOT NULL ,
	[own_id] [varchar] (10) NOT NULL ,
	[pe_subject] [nvarchar] (128) NULL ,
	[pe_type] [int] NULL ,
	[pe_Addr] [nvarchar] (255) NULL ,
	[pe_startdate] [datetime] NULL ,
	[pe_enddate] [datetime] NULL ,
	[pe_content] [text] NULL ,
	[pe_priority] [nvarchar] (20) NOT NULL ,
	[emp_id] [int] NULL ,
	[pe_empid] [int] NULL ,
	[pe_baseid] [int] NULL ,
	[pe_readed] [char] (1) NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[Pub_Login] (
	[rid] [int] IDENTITY (1, 1) NOT NULL ,
	[own_id] [varchar] (10) NOT NULL ,
	[Login_Name] [varchar] (20) NOT NULL ,
	[Login_Pwd] [varchar] (10) NULL ,
	[Login_Type] [varchar] (10) NULL ,
	[Login_Status] [bit] NULL ,
	[Emp_ID] [int] NOT NULL ,
	[Login_Forbid] [bit] NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[Pub_Memo] (
	[rid] [int] IDENTITY (1, 1) NOT NULL ,
	[own_id] [varchar] (10) NOT NULL ,
	[M_Title] [nvarchar] (255) NULL ,
	[M_Content] [text] NULL ,
	[M_Date] [datetime] NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[Pub_MsgBoard] (
	[rid] [int] IDENTITY (1, 1) NOT NULL ,
	[own_id] [varchar] (10) NOT NULL ,
	[MB_Subject] [varchar] (100) NULL ,
	[MB_Time] [datetime] NULL ,
	[MB_Content] [text] NULL ,
	[Emp_ID] [int] NULL ,
	[MB_Sender] [int] NULL ,
	[MB_Read] [bit] NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[Pub_Pending] (
	[PD_ID] [int] IDENTITY (1, 1) NOT NULL ,
	[own_id] [varchar] (10) NOT NULL ,
	[Emp_ID] [int] NOT NULL ,
	[PD_Status] [int] NULL ,
	[PD_Subject] [varchar] (50) NULL ,
	[PD_TgtID] [int] NULL ,
	[PD_TgtName] [varchar] (100) NULL ,
	[PD_Type] [varchar] (20) NULL ,
	[PD_Date] [datetime] NULL ,
	[PD_FinDate] [datetime] NULL ,
	[PD_TaskID] [int] NULL ,
	[PD_Read] [bit] NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[Pub_Progress] (
	[prg_ID] [int] NOT NULL ,
	[own_id] [varchar] (10) NOT NULL ,
	[Task_Id] [int] NULL ,
	[Prg_Code] [varchar] (20) NOT NULL ,
	[Prg_Type] [char] (10) NULL ,
	[prg_objID] [int] NULL ,
	[prg_objType] [nvarchar] (10) NULL ,
	[prg_contactID] [int] NULL ,
	[Prg_Executor] [int] NULL ,
	[Prg_Subject] [varchar] (50) NULL ,
	[Prg_StartDate] [datetime] NULL ,
	[Prg_EndDate] [datetime] NULL ,
	[Prg_Action] [int] NULL ,
	[Prg_CampType] [int] NULL ,
	[Prg_Cost] [numeric](18, 4) NULL ,
	[Prg_Desc] [text] NULL ,
	[prg_finish] [char] (1) NULL ,
	[prg_priority] [nvarchar] (10) NULL ,
	[prg_Result] [int] NULL ,
	[Prg_Memo] [text] NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[Pub_Session] (
	[session_id] [varchar] (128) NOT NULL ,
	[session_ip] [varchar] (30) NULL ,
	[session_time] [datetime] NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[Pub_Task] (
	[Task_ID] [int] NOT NULL ,
	[own_id] [varchar] (10) NOT NULL ,
	[Task_Code] [varchar] (20) NULL ,
	[Task_Subject] [varchar] (50) NOT NULL ,
	[Task_ObjID] [int] NULL ,
	[Task_Object] [varchar] (100) NULL ,
	[Task_ObjType] [varchar] (10) NULL ,
	[Task_Type] [varchar] (10) NULL ,
	[Task_Manager] [int] NULL ,
	[Task_Status] [int] NULL ,
	[Task_StartDate] [datetime] NULL ,
	[Task_priority] [varchar] (20) NULL ,
	[Task_EndDate] [datetime] NULL ,
	[Task_Budget] [numeric](18, 4) NULL ,
	[Task_Cost] [numeric](18, 4) NULL ,
	[Task_Flag] [char] (1) NULL ,
	[Task_Result] [nvarchar] (255) NULL ,
	[Task_Desc] [text] NULL ,
	[Task_Source] [int] NULL ,
	[Contact_ID] [int] NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[XS_ActExpense] (
	[rid] [int] IDENTITY (1, 1) NOT NULL ,
	[own_id] [varchar] (10) NOT NULL ,
	[act_id] [int] NULL ,
	[ae_type] [int] NULL ,
	[ae_expense] [numeric](18, 4) NULL ,
	[ae_date] [datetime] NULL ,
	[emp_id] [int] NULL ,
	[ae_checker] [int] NULL ,
	[ae_memo] [nvarchar] (128) NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[XS_Activity] (
	[act_id] [int] NOT NULL ,
	[own_id] [varchar] (10) NOT NULL ,
	[oppt_id] [int] NULL ,
	[act_subject] [nvarchar] (100) NULL ,
	[cust_id] [int] NULL ,
	[act_type] [int] NULL ,
	[act_action] [int] NULL ,
	[act_priority] [nvarchar] (10) NULL ,
	[act_createdate] [datetime] NULL ,
	[act_start] [datetime] NULL ,
	[act_end] [datetime] NULL ,
	[act_duration] [int] NULL ,
	[act_finish] [bit] NULL ,
	[act_result] [int] NULL ,
	[act_expense] [numeric](18, 4) NULL ,
	[act_maker] [int] NULL ,
	[act_executor] [int] NULL ,
	[act_memo] [nvarchar] (200) NULL ,
	[act_closedesc] [nvarchar] (200) NULL ,
	[contact_id] [int] NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[XS_CustFunds] (
	[own_id] [varchar] (10) NOT NULL ,
	[cust_id] [int] NOT NULL ,
	[cf_amountinit] [numeric](18, 4) NULL ,
	[cf_profitinit] [numeric](18, 4) NULL ,
	[cf_receiveinit] [numeric](18, 4) NULL ,
	[cf_amount] [numeric](18, 0) NULL ,
	[cf_profit] [numeric](18, 4) NULL ,
	[cf_receive] [numeric](18, 4) NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[XS_Opportunity] (
	[oppt_id] [int] NOT NULL ,
	[own_id] [varchar] (10) NOT NULL ,
	[oppt_subject] [nvarchar] (128) NULL ,
	[cust_id] [int] NULL ,
	[oppt_source] [int] NULL ,
	[oppt_type] [int] NULL ,
	[oppt_phase] [int] NULL ,
	[phase_id] [int] NULL ,
	[oppt_status] [int] NULL ,
	[oppt_valuable] [nvarchar] (20) NULL ,
	[oppt_createdate] [smalldatetime] NULL ,
	[oppt_start] [smalldatetime] NULL ,
	[oppt_end] [smalldatetime] NULL ,
	[oppt_close] [bit] NULL ,
	[oppt_succeed] [bit] NULL ,
	[oppt_reason] [int] NULL ,
	[oppt_closedate] [smalldatetime] NULL ,
	[oppt_closedesc] [nvarchar] (200) NULL ,
	[oppt_maker] [int] NULL ,
	[oppt_manager] [int] NULL ,
	[oppt_revenue] [numeric](18, 4) NULL ,
	[oppt_probability] [numeric](18, 4) NULL ,
	[oppt_memo] [nvarchar] (200) NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[XS_OpptContact] (
	[rid] [int] IDENTITY (1, 1) NOT NULL ,
	[own_id] [varchar] (10) NULL ,
	[oppt_id] [int] NULL ,
	[contact_id] [int] NULL ,
	[oc_main] [bit] NULL ,
	[oc_degree] [nvarchar] (64) NULL ,
	[oc_force] [nvarchar] (64) NULL ,
	[oc_tactic] [nvarchar] (128) NULL ,
	[oc_memo] [nvarchar] (128) NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[XS_OpptEmp] (
	[rid] [int] IDENTITY (1, 1) NOT NULL ,
	[own_id] [varchar] (10) NOT NULL ,
	[oppt_id] [int] NULL ,
	[emp_id] [int] NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[XS_OpptPhase] (
	[phase_id] [int] NOT NULL ,
	[own_id] [varchar] (10) NOT NULL ,
	[oppt_id] [int] NOT NULL ,
	[oppt_phase] [int] NOT NULL ,
	[phase_begin] [datetime] NULL ,
	[phase_end] [datetime] NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[XS_OpptProd] (
	[rid] [int] IDENTITY (1, 1) NOT NULL ,
	[own_id] [varchar] (10) NULL ,
	[oppt_id] [int] NULL ,
	[prod_id] [int] NULL ,
	[op_price] [numeric](18, 4) NULL ,
	[op_qty] [numeric](18, 4) NULL ,
	[op_amount] [numeric](18, 4) NULL ,
	[op_memo] [nvarchar] (128) NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[XS_OpptRival] (
	[rid] [int] IDENTITY (1, 1) NOT NULL ,
	[own_id] [varchar] (10) NOT NULL ,
	[oppt_id] [int] NOT NULL ,
	[ri_id] [int] NULL ,
	[rp_id] [int] NULL ,
	[or_main] [bit] NULL ,
	[or_strength] [nvarchar] (200) NULL ,
	[or_weakness] [nvarchar] (200) NULL ,
	[or_tactic] [nvarchar] (200) NULL ,
	[or_memo] [text] NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[XS_Plan_D] (
	[rid] [int] IDENTITY (1, 1) NOT NULL ,
	[own_id] [varchar] (10) NOT NULL ,
	[plan_id] [int] NOT NULL ,
	[plan_object] [int] NOT NULL ,
	[plan_type] [varchar] (10) NULL ,
	[plan_year] [int] NULL ,
	[plan_month1] [numeric](18, 4) NULL ,
	[plan_month2] [numeric](18, 4) NULL ,
	[plan_month3] [numeric](18, 4) NULL ,
	[plan_month4] [numeric](18, 4) NULL ,
	[plan_month5] [numeric](18, 4) NULL ,
	[plan_month6] [numeric](18, 4) NULL ,
	[plan_month7] [numeric](18, 4) NULL ,
	[plan_month8] [numeric](18, 4) NULL ,
	[plan_month9] [numeric](18, 4) NULL ,
	[plan_month10] [numeric](18, 4) NULL ,
	[plan_month11] [numeric](18, 4) NULL ,
	[plan_month12] [numeric](18, 4) NULL ,
	[plan_subtotal] [numeric](18, 4) NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[XS_Plan_H] (
	[plan_id] [int] NOT NULL ,
	[own_id] [varchar] (10) NOT NULL ,
	[plan_code] [varchar] (20) NULL ,
	[plan_type] [varchar] (10) NULL ,
	[plan_subject] [nvarchar] (128) NULL ,
	[plan_year] [int] NULL ,
	[plan_maker] [int] NULL ,
	[plan_amount] [numeric](18, 4) NULL ,
	[plan_createdate] [smalldatetime] NULL ,
	[plan_memo] [nvarchar] (128) NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[XS_Plan_Temp_D] (
	[rid] [int] IDENTITY (1, 1) NOT NULL ,
	[own_id] [varchar] (10) NOT NULL ,
	[plan_id] [int] NOT NULL ,
	[plan_object] [int] NOT NULL ,
	[emp_id] [int] NOT NULL ,
	[plan_type] [varchar] (10) NULL ,
	[plan_year] [int] NULL ,
	[plan_month1] [numeric](18, 4) NULL ,
	[plan_month2] [numeric](18, 4) NULL ,
	[plan_month3] [numeric](18, 4) NULL ,
	[plan_month4] [numeric](18, 4) NULL ,
	[plan_month5] [numeric](18, 4) NULL ,
	[plan_month6] [numeric](18, 4) NULL ,
	[plan_month7] [numeric](18, 4) NULL ,
	[plan_month8] [numeric](18, 4) NULL ,
	[plan_month9] [numeric](18, 4) NULL ,
	[plan_month10] [numeric](18, 4) NULL ,
	[plan_month11] [numeric](18, 4) NULL ,
	[plan_month12] [numeric](18, 4) NULL ,
	[plan_subtotal] [numeric](18, 4) NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[XS_QP_D] (
	[rid] [int] IDENTITY (1, 1) NOT NULL ,
	[own_id] [varchar] (10) NOT NULL ,
	[qp_id] [int] NOT NULL ,
	[prod_id] [int] NOT NULL ,
	[qp_discount] [numeric](18, 4) NULL ,
	[qp_taxrate] [numeric](18, 4) NULL ,
	[qp_price] [numeric](18, 4) NULL ,
	[qp_lastprice] [numeric](18, 4) NULL ,
	[qp_qty] [numeric](18, 4) NULL ,
	[qp_amount] [numeric](18, 4) NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[XS_QP_H] (
	[qp_id] [int] NOT NULL ,
	[own_id] [varchar] (10) NOT NULL ,
	[qp_code] [varchar] (20) NOT NULL ,
	[cust_id] [int] NOT NULL ,
	[contact_id] [int] NULL ,
	[oppt_id] [int] NULL ,
	[qp_date] [smalldatetime] NULL ,
	[qp_createdate] [smalldatetime] NULL ,
	[qp_memo] [text] NULL ,
	[qp_maker] [int] NULL ,
	[qp_sales] [int] NULL ,
	[qp_checker] [int] NULL ,
	[qp_amount] [numeric](18, 4) NULL ,
	[qp_check] [char] (1) NULL ,
	[qp_close] [bit] NULL ,
	[qp_closedate] [smalldatetime] NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[XS_SO_D] (
	[rid] [int] IDENTITY (1, 1) NOT NULL ,
	[own_id] [varchar] (10) NOT NULL ,
	[so_id] [int] NOT NULL ,
	[prod_id] [int] NOT NULL ,
	[so_price] [numeric](18, 4) NULL ,
	[so_discount] [numeric](18, 4) NULL ,
	[so_taxrate] [numeric](18, 4) NULL ,
	[so_lastprice] [numeric](18, 4) NULL ,
	[so_qty] [numeric](18, 4) NULL ,
	[so_deliveryqty] [numeric](18, 4) NULL ,
	[so_amount] [numeric](18, 4) NULL ,
	[so_qp_id] [int] NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[XS_SO_Delivery] (
	[rid] [int] IDENTITY (1, 1) NOT NULL ,
	[so_id] [int] NOT NULL ,
	[prod_id] [int] NOT NULL ,
	[del_date] [smalldatetime] NULL ,
	[del_qty] [numeric](18, 4) NULL ,
	[del_operator] [int] NULL ,
	[del_memo] [nvarchar] (128) NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[XS_SO_H] (
	[so_id] [int] NOT NULL ,
	[own_id] [varchar] (10) NOT NULL ,
	[so_code] [varchar] (20) NOT NULL ,
	[cust_id] [int] NOT NULL ,
	[so_createdate] [smalldatetime] NULL ,
	[so_deliverydate] [smalldatetime] NULL ,
	[so_deliveryaddr] [nvarchar] (50) NULL ,
	[so_sales] [int] NULL ,
	[contact_id] [int] NULL ,
	[oppt_id] [int] NULL ,
	[so_source] [int] NULL ,
	[so_maker] [int] NULL ,
	[so_checker] [int] NULL ,
	[so_memo] [nvarchar] (128) NULL ,
	[so_check] [char] (1) NULL ,
	[so_amount] [numeric](18, 4) NULL ,
	[so_profit] [numeric](18, 4) NULL ,
	[so_paidamount] [numeric](18, 4) NULL ,
	[so_close] [bit] NULL ,
	[so_closedate] [smalldatetime] NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[XS_SO_Receive] (
	[rid] [int] IDENTITY (1, 1) NOT NULL ,
	[so_id] [int] NULL ,
	[rec_date] [smalldatetime] NULL ,
	[rec_amount] [numeric](18, 0) NULL ,
	[rec_mode] [int] NULL ,
	[rec_sales] [int] NULL ,
	[rec_memo] [nvarchar] (128) NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[XS_Temp_D] (
	[rid] [int] IDENTITY (1, 1) NOT NULL ,
	[own_id] [varchar] (10) NOT NULL ,
	[emp_id] [int] NOT NULL ,
	[note_code] [varchar] (20) NOT NULL ,
	[prod_id] [int] NULL ,
	[price] [numeric](18, 4) NULL ,
	[lastprice] [numeric](18, 4) NULL ,
	[discount] [numeric](18, 4) NULL ,
	[taxrate] [numeric](18, 4) NULL ,
	[qty] [numeric](18, 4) NULL ,
	[amount] [numeric](18, 4) NULL ,
	[rel_note_id] [int] NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[XT_Approve] (
	[emp_id] [int] NOT NULL ,
	[doc_type] [varchar] (10) NOT NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[XT_Dept] (
	[Dept_ID] [int] NOT NULL ,
	[own_id] [varchar] (10) NOT NULL ,
	[Dept_Code] [varchar] (10) NOT NULL ,
	[Dept_Name] [varchar] (50) NOT NULL ,
	[Dept_levels] [int] NULL ,
	[Dept_parentid] [int] NULL ,
	[Dept_path] [varchar] (100) NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[XT_Employee] (
	[Emp_ID] [int] NOT NULL ,
	[own_id] [varchar] (10) NOT NULL ,
	[Emp_Code] [varchar] (10) NOT NULL ,
	[Emp_Name] [varchar] (40) NOT NULL ,
	[Emp_IdCard] [varchar] (20) NULL ,
	[Emp_Sex] [varchar] (2) NULL ,
	[Emp_Birthday] [datetime] NULL ,
	[Emp_Native] [varchar] (40) NULL ,
	[Emp_Education] [varchar] (20) NULL ,
	[Dept_ID] [int] NULL ,
	[Emp_Title] [varchar] (20) NULL ,
	[Emp_Ophone] [varchar] (20) NULL ,
	[Emp_Mobile] [varchar] (20) NULL ,
	[Emp_Hphone] [varchar] (20) NULL ,
	[Emp_Email] [varchar] (60) NULL ,
	[Emp_Role] [varchar] (10) NULL ,
	[Emp_Addr] [varchar] (100) NULL ,
	[Emp_Forbid] [bit] NULL ,
	[Emp_Picture] [int] NULL ,
	[Emp_Memo] [text] NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[XT_Log] (
	[rid] [int] IDENTITY (1, 1) NOT NULL ,
	[own_id] [varchar] (10) NOT NULL ,
	[log_time] [datetime] NOT NULL ,
	[Emp_ID] [int] NOT NULL ,
	[Log_Name] [varchar] (20) NOT NULL ,
	[Log_Action] [varchar] (20) NULL ,
	[Log_Table] [varchar] (20) NULL ,
	[Log_IP] [varchar] (20) NULL ,
	[Log_Desc] [varchar] (128) NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[XT_Module] (
	[mod_id] [int] NOT NULL ,
	[mod_code] [varchar] (10) NULL ,
	[mod_name] [varchar] (30) NOT NULL ,
	[mod_type] [varchar] (5) NULL ,
	[mod_seq] [int] NOT NULL ,
	[mod_parent] [int] NOT NULL ,
	[mod_level] [int] NULL ,
	[mod_HaveSub] [bit] NULL ,
	[mod_read] [bit] NULL ,
	[mod_edit] [bit] NULL ,
	[mod_delete] [bit] NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[XT_Role] (
	[role_id] [int] NOT NULL ,
	[own_id] [varchar] (10) NOT NULL ,
	[role_name] [nvarchar] (50) NOT NULL ,
	[role_right] [varchar] (100) NULL ,
	[role_desc] [nvarchar] (128) NULL ,
	[role_customer] [char] (1) NULL ,
	[role_contact] [char] (1) NULL ,
	[role_oppt] [char] (1) NULL ,
	[role_act] [char] (1) NULL ,
	[role_qp] [char] (1) NULL ,
	[role_so] [char] (1) NULL ,
	[role_service] [char] (1) NULL ,
	[role_care] [char] (1) NULL ,
	[role_market] [char] (1) NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[prg_expense] (
	[rid] [int] IDENTITY (1, 1) NOT NULL ,
	[own_id] [varchar] (10) NOT NULL ,
	[prg_id] [int] NOT NULL ,
	[cust_id] [int] NULL ,
	[pe_expense] [numeric](18, 4) NULL ,
	[pe_type] [int] NULL ,
	[pe_date] [datetime] NULL ,
	[pe_checker] [int] NULL ,
	[emp_id] [int] NULL ,
	[pe_desc] [nvarchar] (255) NULL ,
	[pe_srctype] [varchar] (20) NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[pub_bbsforum] (
	[rid] [int] IDENTITY (1, 1) NOT NULL ,
	[Own_ID] [varchar] (10) NOT NULL ,
	[BF_Type] [char] (1) NULL ,
	[Emp_ID] [int] NULL ,
	[BF_levels] [varchar] (50) NULL ,
	[BF_Title] [varchar] (300) NULL ,
	[BF_Content] [text] NULL ,
	[BF_Date] [datetime] NULL ,
	[BF_Clickcount] [int] NULL ,
	[BF_replycount] [int] NULL ,
	[BF_imageid] [char] (10) NULL ,
	[BF_rootid] [int] NULL ,
	[BF_baseid] [int] NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

ALTER TABLE [dbo].[CP_ProdInfo] WITH NOCHECK ADD 
	CONSTRAINT [PK_CP_ProdInfo] PRIMARY KEY  CLUSTERED 
	(
		[Prod_ID]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[CP_ProdType] WITH NOCHECK ADD 
	CONSTRAINT [DF_CP_ProdType_PT_ProdSN] DEFAULT (0) FOR [PT_ProdSN],
	CONSTRAINT [PK_CP_ProdType] PRIMARY KEY  CLUSTERED 
	(
		[PT_ID]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[FW_CareAdvice] WITH NOCHECK ADD 
	CONSTRAINT [PK_FW_CareAdvice] PRIMARY KEY  CLUSTERED 
	(
		[Ca_ID]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[FW_FdbkPrg] WITH NOCHECK ADD 
	CONSTRAINT [PK_FW_FdbkPrg] PRIMARY KEY  CLUSTERED 
	(
		[rid]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[FW_FdbkTask] WITH NOCHECK ADD 
	CONSTRAINT [PK_FW_FdbkTask] PRIMARY KEY  CLUSTERED 
	(
		[rid]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[FW_Feedback] WITH NOCHECK ADD 
	CONSTRAINT [PK_FW_Feedback] PRIMARY KEY  CLUSTERED 
	(
		[own_id],
		[Fdbk_Code]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[FW_Holiday] WITH NOCHECK ADD 
	CONSTRAINT [PK_FW_Holiday] PRIMARY KEY  CLUSTERED 
	(
		[rid]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[FW_MaintCard] WITH NOCHECK ADD 
	CONSTRAINT [PK_FW_MaintCard] PRIMARY KEY  CLUSTERED 
	(
		[own_id],
		[MC_ID]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[FW_MaintRec] WITH NOCHECK ADD 
	CONSTRAINT [DF_FW_MaintRec_MR_Charge] DEFAULT (0) FOR [MR_Charge],
	CONSTRAINT [PK_FW_MaintRec] PRIMARY KEY  CLUSTERED 
	(
		[rid]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[FW_MaintTask] WITH NOCHECK ADD 
	CONSTRAINT [PK_FW_MaintTask] PRIMARY KEY  CLUSTERED 
	(
		[rid]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[FW_SrvcRule] WITH NOCHECK ADD 
	CONSTRAINT [PK_FW_SrvcRule] PRIMARY KEY  CLUSTERED 
	(
		[own_Id],
		[sr_Code]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[JB_Contact] WITH NOCHECK ADD 
	CONSTRAINT [DF_JB_Contact_ct_sex] DEFAULT ('男') FOR [ct_sex],
	CONSTRAINT [DF_JB_Contact_ct_married] DEFAULT (0) FOR [ct_married],
	CONSTRAINT [DF_JB_Contact_ct_flag] DEFAULT (0) FOR [ct_flag],
	CONSTRAINT [PK_JB_Contact] PRIMARY KEY  CLUSTERED 
	(
		[ct_id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[JB_CustContact] WITH NOCHECK ADD 
	CONSTRAINT [PK_JB_CustContact] PRIMARY KEY  CLUSTERED 
	(
		[own_id],
		[cust_id],
		[contact_id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[JB_CustEvent] WITH NOCHECK ADD 
	CONSTRAINT [PK_JB_CustEvent] PRIMARY KEY  CLUSTERED 
	(
		[rid]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[JB_CustInfo] WITH NOCHECK ADD 
	CONSTRAINT [DF_JB_CustInfo_Contact_ID] DEFAULT (0) FOR [Contact_ID],
	CONSTRAINT [DF_JB_CustInfo_CI_Forbid] DEFAULT (0) FOR [CI_Forbid],
	CONSTRAINT [PK_JB_CustInfo] PRIMARY KEY  CLUSTERED 
	(
		[CI_ID]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[JB_CustRequire] WITH NOCHECK ADD 
	CONSTRAINT [PK_JB_CustRequire] PRIMARY KEY  CLUSTERED 
	(
		[rid]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[JB_EmpCust] WITH NOCHECK ADD 
	CONSTRAINT [PK_JB_EmpCust] PRIMARY KEY  CLUSTERED 
	(
		[rid]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[JB_RivalInfo] WITH NOCHECK ADD 
	CONSTRAINT [PK_JB_RivalInfo] PRIMARY KEY  CLUSTERED 
	(
		[ri_id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[JB_RivalProd] WITH NOCHECK ADD 
	CONSTRAINT [PK_JB_RivalProd] PRIMARY KEY  CLUSTERED 
	(
		[RP_ID]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[JC_ActResult] WITH NOCHECK ADD 
	CONSTRAINT [PK_JC_ActResult] PRIMARY KEY  CLUSTERED 
	(
		[ar_id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[JC_ActType] WITH NOCHECK ADD 
	CONSTRAINT [PK_JC_ActType] PRIMARY KEY  CLUSTERED 
	(
		[at_id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[JC_ActionDef] WITH NOCHECK ADD 
	CONSTRAINT [PK_JC_ActionDef] PRIMARY KEY  CLUSTERED 
	(
		[rid]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[JC_Area] WITH NOCHECK ADD 
	CONSTRAINT [DF_JC_Area_area_rootid] DEFAULT (0) FOR [area_rootid],
	CONSTRAINT [DF_JC_Area_area_baseid] DEFAULT (0) FOR [area_baseid],
	CONSTRAINT [PK_JC_Area] PRIMARY KEY  CLUSTERED 
	(
		[area_id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[JC_Campaign] WITH NOCHECK ADD 
	CONSTRAINT [PK_JC_Campaign] PRIMARY KEY  CLUSTERED 
	(
		[rid]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[JC_CustKind] WITH NOCHECK ADD 
	CONSTRAINT [PK_JC_CustKind] PRIMARY KEY  CLUSTERED 
	(
		[ck_id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[JC_EventType] WITH NOCHECK ADD 
	CONSTRAINT [PK_jc_eventtype] PRIMARY KEY  CLUSTERED 
	(
		[et_id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[JC_ExpenseType] WITH NOCHECK ADD 
	CONSTRAINT [PK_JC_ExpenseType] PRIMARY KEY  CLUSTERED 
	(
		[et_id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[JC_GradeType] WITH NOCHECK ADD 
	CONSTRAINT [PK_JC_GradeType] PRIMARY KEY  CLUSTERED 
	(
		[rid]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[JC_LostSales] WITH NOCHECK ADD 
	CONSTRAINT [PK_JC_LostSales] PRIMARY KEY  CLUSTERED 
	(
		[rid]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[JC_OpptPhase] WITH NOCHECK ADD 
	CONSTRAINT [PK_JC_OpptPhase] PRIMARY KEY  CLUSTERED 
	(
		[op_id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[JC_OpptStatus] WITH NOCHECK ADD 
	CONSTRAINT [PK_JC_OpptStatus] PRIMARY KEY  CLUSTERED 
	(
		[os_id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[JC_OpptType] WITH NOCHECK ADD 
	CONSTRAINT [PK_JC_OpptType] PRIMARY KEY  CLUSTERED 
	(
		[ot_id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[JC_PayMode] WITH NOCHECK ADD 
	CONSTRAINT [PK_JC_PayMode] PRIMARY KEY  CLUSTERED 
	(
		[pm_id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[JC_Possible] WITH NOCHECK ADD 
	CONSTRAINT [PK_jc_possible] PRIMARY KEY  CLUSTERED 
	(
		[rid]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[JC_Progress] WITH NOCHECK ADD 
	CONSTRAINT [PK_JC_Progress] PRIMARY KEY  CLUSTERED 
	(
		[rid]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[JC_Region] WITH NOCHECK ADD 
	CONSTRAINT [PK_JC_Region] PRIMARY KEY  CLUSTERED 
	(
		[JR_ID]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[JC_RequireType] WITH NOCHECK ADD 
	CONSTRAINT [PK_JC_RequireType] PRIMARY KEY  CLUSTERED 
	(
		[rt_id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[JC_SourceType] WITH NOCHECK ADD 
	CONSTRAINT [PK_JC_SourceType] PRIMARY KEY  CLUSTERED 
	(
		[rid]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[JC_TaskStatus] WITH NOCHECK ADD 
	CONSTRAINT [DF_JC_TaskStatus_ts_delete] DEFAULT (1) FOR [ts_delete],
	CONSTRAINT [PK_JC_TaskStatus] PRIMARY KEY  CLUSTERED 
	(
		[rid]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[JC_Trade] WITH NOCHECK ADD 
	CONSTRAINT [PK_JC_Tread] PRIMARY KEY  CLUSTERED 
	(
		[trade_id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[JC_TypeDef] WITH NOCHECK ADD 
	CONSTRAINT [PK_JC_TypeDef] PRIMARY KEY  CLUSTERED 
	(
		[td_id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[JC_Unit] WITH NOCHECK ADD 
	CONSTRAINT [PK_JC_Unit] PRIMARY KEY  CLUSTERED 
	(
		[rid]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[JT_Owner] WITH NOCHECK ADD 
	CONSTRAINT [DF_JT_Owner_own_Flag] DEFAULT (1) FOR [own_Flag],
	CONSTRAINT [PK_JT_Owner] PRIMARY KEY  CLUSTERED 
	(
		[own_id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[Pub_Attach] WITH NOCHECK ADD 
	CONSTRAINT [DF_Pub_Attach_Att_Flag] DEFAULT (1) FOR [Att_Flag],
	CONSTRAINT [PK_Pub_Attach] PRIMARY KEY  CLUSTERED 
	(
		[Att_id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[Pub_Attach_Content] WITH NOCHECK ADD 
	CONSTRAINT [PK_Pub_Attach_Content] PRIMARY KEY  CLUSTERED 
	(
		[Att_ID]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[Pub_BillCode] WITH NOCHECK ADD 
	CONSTRAINT [DF_Pub_BillCode_BC_MaxID] DEFAULT (0) FOR [BC_MaxID],
	CONSTRAINT [DF_Pub_BillCode_BC_SerialLen] DEFAULT (4) FOR [BC_SerialLen],
	CONSTRAINT [DF_Pub_BillCode_BC_HasDate] DEFAULT (1) FOR [BC_HasDate],
	CONSTRAINT [DF_Pub_BillCode_BC_AutoIncrease] DEFAULT (1) FOR [BC_AutoIncrease],
	CONSTRAINT [DF_Pub_BillCode_BC_Use] DEFAULT (1) FOR [BC_Use],
	CONSTRAINT [PK_Pub_BillCode] PRIMARY KEY  CLUSTERED 
	(
		[Own_id],
		[BC_Type]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[Pub_Calendar] WITH NOCHECK ADD 
	CONSTRAINT [PK_Pub_Calendar] PRIMARY KEY  CLUSTERED 
	(
		[rid]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[Pub_DefType] WITH NOCHECK ADD 
	CONSTRAINT [PK_Pub_DefType] PRIMARY KEY  CLUSTERED 
	(
		[own_id],
		[DT_ID]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[Pub_Event] WITH NOCHECK ADD 
	CONSTRAINT [PK_Pub_Event] PRIMARY KEY  CLUSTERED 
	(
		[pe_id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[Pub_Login] WITH NOCHECK ADD 
	CONSTRAINT [DF_Pub_Login_Login_Status] DEFAULT (0) FOR [Login_Status],
	CONSTRAINT [DF_Pub_Login_Login_Forbid] DEFAULT (0) FOR [Login_Forbid],
	CONSTRAINT [PK_Pub_Login] PRIMARY KEY  CLUSTERED 
	(
		[Login_Name]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[Pub_Memo] WITH NOCHECK ADD 
	CONSTRAINT [PK_Pub_Memo] PRIMARY KEY  CLUSTERED 
	(
		[rid]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[Pub_MsgBoard] WITH NOCHECK ADD 
	CONSTRAINT [DF_Pub_MsgBoard_MB_Read] DEFAULT (0) FOR [MB_Read],
	CONSTRAINT [PK_Pub_MsgBoard] PRIMARY KEY  CLUSTERED 
	(
		[rid]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[Pub_Pending] WITH NOCHECK ADD 
	CONSTRAINT [DF_Pub_Pending_PD_Date] DEFAULT (getdate()) FOR [PD_Date],
	CONSTRAINT [PK_Pub_Pending] PRIMARY KEY  CLUSTERED 
	(
		[PD_ID]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[Pub_Progress] WITH NOCHECK ADD 
	CONSTRAINT [DF_Pub_Progress_Prg_Cost] DEFAULT (0) FOR [Prg_Cost],
	CONSTRAINT [PK_Pub_Progress] PRIMARY KEY  CLUSTERED 
	(
		[own_id],
		[Prg_Code]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[Pub_Session] WITH NOCHECK ADD 
	CONSTRAINT [PK_Pub_Session] PRIMARY KEY  CLUSTERED 
	(
		[session_id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[Pub_Task] WITH NOCHECK ADD 
	CONSTRAINT [DF_Pub_Task_Task_Budget] DEFAULT (0) FOR [Task_Budget],
	CONSTRAINT [DF_Pub_Task_Task_Cost] DEFAULT (0) FOR [Task_Cost],
	CONSTRAINT [DF_Pub_Task_Task_Flag] DEFAULT (0) FOR [Task_Flag],
	CONSTRAINT [PK_Pub_Task] PRIMARY KEY  CLUSTERED 
	(
		[Task_ID]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[XS_ActExpense] WITH NOCHECK ADD 
	CONSTRAINT [PK_XS_ActExpense] PRIMARY KEY  CLUSTERED 
	(
		[rid]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[XS_Activity] WITH NOCHECK ADD 
	CONSTRAINT [DF_XS_Activity_act_finish] DEFAULT (0) FOR [act_finish],
	CONSTRAINT [DF_XS_Activity_act_expense] DEFAULT (0) FOR [act_expense],
	CONSTRAINT [PK_XS_Activity] PRIMARY KEY  CLUSTERED 
	(
		[act_id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[XS_CustFunds] WITH NOCHECK ADD 
	CONSTRAINT [DF_XS_CustFunds_cf_amountinit] DEFAULT (0) FOR [cf_amountinit],
	CONSTRAINT [DF_XS_CustFunds_cf_profitinit] DEFAULT (0) FOR [cf_profitinit],
	CONSTRAINT [DF_XS_CustFunds_cf_receiveinit] DEFAULT (0) FOR [cf_receiveinit],
	CONSTRAINT [DF_XS_CustFunds_cf_amount] DEFAULT (0) FOR [cf_amount],
	CONSTRAINT [DF_XS_CustFunds_cf_profit] DEFAULT (0) FOR [cf_profit],
	CONSTRAINT [DF_XS_CustFunds_cf_receive] DEFAULT (0) FOR [cf_receive],
	CONSTRAINT [PK_XS_CustFunds] PRIMARY KEY  CLUSTERED 
	(
		[own_id],
		[cust_id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[XS_Opportunity] WITH NOCHECK ADD 
	CONSTRAINT [DF_XS_Opportunity_oppt_close] DEFAULT (0) FOR [oppt_close],
	CONSTRAINT [DF_XS_Opportunity_oppt_succeed] DEFAULT (0) FOR [oppt_succeed],
	CONSTRAINT [PK_XS_Opportunity] PRIMARY KEY  CLUSTERED 
	(
		[oppt_id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[XS_OpptContact] WITH NOCHECK ADD 
	CONSTRAINT [DF_XS_OpptContact_oc_main] DEFAULT (0) FOR [oc_main],
	CONSTRAINT [PK_XS_OpptContact] PRIMARY KEY  CLUSTERED 
	(
		[rid]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[XS_OpptPhase] WITH NOCHECK ADD 
	CONSTRAINT [PK_XS_OpptPhase] PRIMARY KEY  CLUSTERED 
	(
		[phase_id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[XS_OpptProd] WITH NOCHECK ADD 
	CONSTRAINT [DF_XS_OpptProd_op_price] DEFAULT (0) FOR [op_price],
	CONSTRAINT [DF_XS_OpptProd_op_qty] DEFAULT (0) FOR [op_qty],
	CONSTRAINT [DF_XS_OpptProd_op_amount] DEFAULT (0) FOR [op_amount]
GO

ALTER TABLE [dbo].[XS_OpptRival] WITH NOCHECK ADD 
	CONSTRAINT [DF_XS_OpptRival_or_main] DEFAULT (0) FOR [or_main],
	CONSTRAINT [PK_XS_OpptRival] PRIMARY KEY  CLUSTERED 
	(
		[rid]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[XS_Plan_D] WITH NOCHECK ADD 
	CONSTRAINT [DF_XS_Plan_D_plan_month1] DEFAULT (0) FOR [plan_month1],
	CONSTRAINT [DF_XS_Plan_D_plan_month2] DEFAULT (0) FOR [plan_month2],
	CONSTRAINT [DF_XS_Plan_D_plan_month3] DEFAULT (0) FOR [plan_month3],
	CONSTRAINT [DF_XS_Plan_D_plan_month4] DEFAULT (0) FOR [plan_month4],
	CONSTRAINT [DF_XS_Plan_D_plan_month5] DEFAULT (0) FOR [plan_month5],
	CONSTRAINT [DF_XS_Plan_D_plan_month6] DEFAULT (0) FOR [plan_month6],
	CONSTRAINT [DF_XS_Plan_D_plan_month7] DEFAULT (0) FOR [plan_month7],
	CONSTRAINT [DF_XS_Plan_D_plan_month8] DEFAULT (0) FOR [plan_month8],
	CONSTRAINT [DF_XS_Plan_D_plan_month9] DEFAULT (0) FOR [plan_month9],
	CONSTRAINT [DF_XS_Plan_D_plan_month10] DEFAULT (0) FOR [plan_month10],
	CONSTRAINT [DF_XS_Plan_D_plan_month11] DEFAULT (0) FOR [plan_month11],
	CONSTRAINT [DF_XS_Plan_D_plan_month12] DEFAULT (0) FOR [plan_month12],
	CONSTRAINT [DF_XS_Plan_D_plan_subtotal] DEFAULT (0) FOR [plan_subtotal],
	CONSTRAINT [PK_XS_Plan_D] PRIMARY KEY  CLUSTERED 
	(
		[plan_id],
		[plan_object]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[XS_Plan_H] WITH NOCHECK ADD 
	CONSTRAINT [DF_XS_Plan_H_plan_amount] DEFAULT (0) FOR [plan_amount],
	CONSTRAINT [PK_XS_Plan_H] PRIMARY KEY  CLUSTERED 
	(
		[plan_id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[XS_Plan_Temp_D] WITH NOCHECK ADD 
	CONSTRAINT [DF_XS_Plan_Temp_D_month1] DEFAULT (0) FOR [plan_month1],
	CONSTRAINT [DF_XS_Plan_Temp_D_month2] DEFAULT (0) FOR [plan_month2],
	CONSTRAINT [DF_XS_Plan_Temp_D_month3] DEFAULT (0) FOR [plan_month3],
	CONSTRAINT [DF_XS_Plan_Temp_D_month4] DEFAULT (0) FOR [plan_month4],
	CONSTRAINT [DF_XS_Plan_Temp_D_month5] DEFAULT (0) FOR [plan_month5],
	CONSTRAINT [DF_XS_Plan_Temp_D_month6] DEFAULT (0) FOR [plan_month6],
	CONSTRAINT [DF_XS_Plan_Temp_D_month7] DEFAULT (0) FOR [plan_month7],
	CONSTRAINT [DF_XS_Plan_Temp_D_month8] DEFAULT (0) FOR [plan_month8],
	CONSTRAINT [DF_XS_Plan_Temp_D_month9] DEFAULT (0) FOR [plan_month9],
	CONSTRAINT [DF_XS_Plan_Temp_D_month10] DEFAULT (0) FOR [plan_month10],
	CONSTRAINT [DF_XS_Plan_Temp_D_month11] DEFAULT (0) FOR [plan_month11],
	CONSTRAINT [DF_XS_Plan_Temp_D_month12] DEFAULT (0) FOR [plan_month12],
	CONSTRAINT [DF_XS_Plan_Temp_D_subtotal] DEFAULT (0) FOR [plan_subtotal],
	CONSTRAINT [PK_XS_Plan_Temp_D] PRIMARY KEY  CLUSTERED 
	(
		[plan_id],
		[plan_object],
		[emp_id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[XS_QP_D] WITH NOCHECK ADD 
	CONSTRAINT [PK_XS_QP_D] PRIMARY KEY  CLUSTERED 
	(
		[own_id],
		[qp_id],
		[prod_id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[XS_QP_H] WITH NOCHECK ADD 
	CONSTRAINT [DF_XS_QP_H_qp_close] DEFAULT (0) FOR [qp_close],
	CONSTRAINT [PK_XS_QP_H] PRIMARY KEY  CLUSTERED 
	(
		[qp_id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[XS_SO_D] WITH NOCHECK ADD 
	CONSTRAINT [DF_XS_SO_D_so_deliveryqty] DEFAULT (0) FOR [so_deliveryqty],
	CONSTRAINT [PK_XS_SO_D] PRIMARY KEY  CLUSTERED 
	(
		[own_id],
		[so_id],
		[prod_id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[XS_SO_Delivery] WITH NOCHECK ADD 
	CONSTRAINT [PK_XS_SO_Delivery] PRIMARY KEY  CLUSTERED 
	(
		[rid]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[XS_SO_H] WITH NOCHECK ADD 
	CONSTRAINT [DF_XS_SO_H_so_check] DEFAULT (0) FOR [so_check],
	CONSTRAINT [DF_XS_SO_H_so_amount] DEFAULT (0) FOR [so_amount],
	CONSTRAINT [DF_XS_SO_H_so_profit] DEFAULT (0) FOR [so_profit],
	CONSTRAINT [DF_XS_SO_H_so_paidamount] DEFAULT (0) FOR [so_paidamount],
	CONSTRAINT [DF_XS_SO_H_so_close] DEFAULT (0) FOR [so_close],
	CONSTRAINT [PK_XS_SO_H] PRIMARY KEY  CLUSTERED 
	(
		[so_id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[XT_Approve] WITH NOCHECK ADD 
	CONSTRAINT [PK_XT_Approve] PRIMARY KEY  CLUSTERED 
	(
		[emp_id],
		[doc_type]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[XT_Dept] WITH NOCHECK ADD 
	CONSTRAINT [PK_XT_Dept] PRIMARY KEY  CLUSTERED 
	(
		[Dept_ID]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[XT_Employee] WITH NOCHECK ADD 
	CONSTRAINT [DF_XT_Employee_Emp_Sex] DEFAULT ('男') FOR [Emp_Sex],
	CONSTRAINT [DF_XT_Employee_Emp_Forbid] DEFAULT (0) FOR [Emp_Forbid],
	CONSTRAINT [PK_XT_Employee] PRIMARY KEY  CLUSTERED 
	(
		[Emp_ID]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[XT_Log] WITH NOCHECK ADD 
	CONSTRAINT [PK_XT_Log] PRIMARY KEY  CLUSTERED 
	(
		[rid]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[XT_Module] WITH NOCHECK ADD 
	CONSTRAINT [DF_XT_Module_mod_check] DEFAULT (1) FOR [mod_read],
	CONSTRAINT [DF_XT_Module_mod_view] DEFAULT (1) FOR [mod_edit],
	CONSTRAINT [DF_XT_Module_mod_delete] DEFAULT (1) FOR [mod_delete],
	CONSTRAINT [PK_XT_Module] PRIMARY KEY  CLUSTERED 
	(
		[mod_id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[XT_Role] WITH NOCHECK ADD 
	CONSTRAINT [DF_XT_Role_role_customer] DEFAULT (1) FOR [role_customer],
	CONSTRAINT [DF_XT_Role_role_contact] DEFAULT (1) FOR [role_contact],
	CONSTRAINT [DF_XT_Role_role_oppt] DEFAULT (1) FOR [role_oppt],
	CONSTRAINT [DF_XT_Role_role_act] DEFAULT (1) FOR [role_act],
	CONSTRAINT [DF_XT_Role_role_qp] DEFAULT (1) FOR [role_qp],
	CONSTRAINT [DF_XT_Role_role_so] DEFAULT (1) FOR [role_so],
	CONSTRAINT [PK_XT_Role] PRIMARY KEY  CLUSTERED 
	(
		[role_id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[prg_expense] WITH NOCHECK ADD 
	CONSTRAINT [PK_prg_expense] PRIMARY KEY  CLUSTERED 
	(
		[rid]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[pub_bbsforum] WITH NOCHECK ADD 
	CONSTRAINT [PK_pub_bbsforum] PRIMARY KEY  CLUSTERED 
	(
		[rid]
	)  ON [PRIMARY] 
GO

SET QUOTED_IDENTIFIER OFF 
GO
SET ANSI_NULLS ON 
GO

CREATE VIEW dbo.view_Activity
AS
SELECT a.act_id, a.own_id, a.oppt_id, a.act_subject, a.cust_id, a.contact_id, a.act_type, 
      a.act_action, a.act_priority, a.act_createdate, a.act_start, a.act_end, a.act_finish, 
      a.act_result, a.act_expense, a.act_maker, a.act_executor, a.act_duration, 
      a.act_memo, c.CI_Name, c.CI_Forbid, o.oppt_subject, at.at_name, e.Emp_Name,  e.dept_id, 
      e.Emp_Forbid, ad.ad_Name
FROM dbo.XS_Opportunity o RIGHT OUTER JOIN
      dbo.JB_CustInfo c INNER JOIN
      dbo.XT_Employee e INNER JOIN
      dbo.XS_Activity a ON e.Emp_ID = a.act_executor ON c.CI_ID = a.cust_id INNER JOIN
      dbo.JC_ActType at ON a.act_type = at.at_id INNER JOIN
      dbo.JC_ActionDef ad ON a.act_action = ad.rid ON o.oppt_id = a.oppt_id

GO
SET QUOTED_IDENTIFIER OFF 
GO
SET ANSI_NULLS ON 
GO

SET QUOTED_IDENTIFIER OFF 
GO
SET ANSI_NULLS ON 
GO

CREATE VIEW dbo.view_Opportunity
AS
SELECT o.oppt_id, o.own_id, o.oppt_subject, o.cust_id, o.oppt_source, o.oppt_type, 
      o.oppt_phase, o.oppt_status, o.oppt_valuable, o.oppt_createdate, o.oppt_start, 
      o.oppt_end, o.oppt_close, o.oppt_succeed, o.oppt_closedate, o.oppt_maker, 
      o.oppt_manager, o.oppt_revenue, o.oppt_probability, o.phase_id,
      o.oppt_memo, e.Emp_Name, e.Emp_forbid, e.dept_id, 
      c.CI_Name,c.CI_forbid, ot.ot_name, st.st_name, op.op_name, os.os_name
FROM dbo.XS_Opportunity o INNER JOIN
      dbo.JB_CustInfo c ON o.cust_id = c.CI_ID LEFT OUTER  JOIN
      dbo.XT_Employee e ON o.oppt_manager = e.Emp_ID LEFT OUTER JOIN
      dbo.JC_OpptPhase op ON o.oppt_phase = op.op_id LEFT OUTER JOIN
      dbo.JC_OpptStatus os ON o.oppt_status = os.os_id LEFT OUTER JOIN
      dbo.JC_OpptType ot ON o.oppt_type = ot.ot_id LEFT OUTER JOIN
      dbo.JC_SourceType st ON o.oppt_source = st.rid

GO
SET QUOTED_IDENTIFIER OFF 
GO
SET ANSI_NULLS ON 
GO

SET QUOTED_IDENTIFIER ON 
GO
SET ANSI_NULLS ON 
GO

CREATE VIEW dbo.vw_ServiceAct
AS
SELECT dbo.Pub_Progress.Task_Id, dbo.Pub_Progress.prg_ID, 
      dbo.Pub_Progress.prg_objID, dbo.Pub_Progress.prg_objType, 
      dbo.Pub_Progress.Prg_Subject, dbo.Pub_Progress.Prg_StartDate, 
      dbo.Pub_Progress.Prg_Cost, dbo.Pub_Task.Task_Subject, 
      dbo.XT_Employee.Emp_Name, dbo.Pub_Progress.Prg_EndDate, 
      dbo.Pub_Progress.Prg_Code, dbo.Pub_Progress.own_id, dbo.XT_Employee.Dept_ID, 
      dbo.Pub_Progress.Prg_Type, dbo.Pub_Progress.prg_finish, 
      dbo.JC_ActionDef.ad_Name, dbo.Pub_Progress.Prg_Action, 
      dbo.Pub_Progress.Prg_Executor
FROM dbo.Pub_Progress INNER JOIN
      dbo.XT_Employee ON 
      dbo.Pub_Progress.Prg_Executor = dbo.XT_Employee.Emp_ID LEFT OUTER JOIN
      dbo.JC_ActionDef ON 
      dbo.Pub_Progress.Prg_Action = dbo.JC_ActionDef.rid INNER JOIN
      dbo.Pub_Task ON dbo.Pub_Progress.Task_Id = dbo.Pub_Task.Task_ID

GO
SET QUOTED_IDENTIFIER OFF 
GO
SET ANSI_NULLS ON 
GO

SET QUOTED_IDENTIFIER OFF 
GO
SET ANSI_NULLS ON 
GO

CREATE Procedure oppt_pipeline
	(
		@begin datetime,
		@end datetime
	)
As
/* set nocount on */
select    
jc_opptphase.op_name as phasename,
jc_opptphase.op_id as phaseid,
vopptphase.oppt_id as phasecount,
vopptphase.oppt_amount as phaseamount,
(vopptphase.oppt_possible) as phasepossible,
vopptphase.oppt_saleamount as phasesaleamount,
(voppt.opptcount) as allopptcount,
case when voppt.opptcount=0 then 0 else round(((vopptphase.oppt_id*100)/voppt.opptcount),2) end as phasepercent,
voppt.lmoney as allopptamount,
case when voppt.lmoney=0 then 0 else round(((vopptphase.oppt_amount/voppt.lmoney) *100),2) end as amountpercent 
from 
( jc_opptphase 
  left outer join 
   (
     select
        oppt.oppt_phase, count(distinct (oppt.oppt_id))as oppt_id,
        sum(distinct (oppt.oppt_revenue)) as oppt_amount,
        avg(oppt.oppt_probability) as oppt_possible,
        (sum(distinct (oppt.oppt_revenue))* (avg(oppt.oppt_probability)/100))as oppt_saleamount
     from
        xs_opportunity oppt
     where
        (oppt.oppt_start >= @begin and oppt.oppt_start <= @end and oppt.oppt_close = 0)
     group by oppt.oppt_phase
    )vopptphase on vopptphase.oppt_phase = jc_opptphase.op_id),
 (
  select
    count(oppt_id) as opptcount, sum(oppt_revenue) as lmoney
  from
    xs_opportunity
  where
    (xs_opportunity.oppt_start >= @begin and xs_opportunity.oppt_start <= @end and xs_opportunity.oppt_close = 0)
 ) voppt
order by jc_opptphase.op_id	
	
	return

GO
SET QUOTED_IDENTIFIER OFF 
GO
SET ANSI_NULLS ON 
GO

SET QUOTED_IDENTIFIER OFF 
GO
SET ANSI_NULLS ON 
GO

CREATE Procedure oppt_possible
	(
		@begin datetime,
		@end datetime
	)
As
	/* set nocount on */
	
select 
jc_possible.rid as possibleid,
jc_possible.possible_scope, 
voppt.lcount as countoppt,
vopptproduct.oppt_amount,
vopptproduct.possibleamount,
vopptmonth.lcount as countmonthoppt,
vopptnmonth.lcount as countnmonthoppt,
vopptweek.lcount as countweekoppt,
vopptother.lcount as countotheroppt
from jc_possible
left outer join (
select p.possible_scope, count(o.oppt_id) as lcount 
from xs_opportunity o left outer join jc_possible p on o.oppt_probability >= p.possible_min and o.oppt_probability < p.possible_max
where (o.oppt_start >= @begin and o.oppt_start <= @end) and o.oppt_close = 0
group by p.possible_scope
)voppt on voppt.possible_scope=jc_possible.possible_scope
left outer join (
select p.possible_scope, sum(o.oppt_revenue) as oppt_amount, sum(o.oppt_revenue * o.oppt_probability/100) as possibleamount
from xs_opportunity o left outer join jc_possible p on o.oppt_probability >= p.possible_min and o.oppt_probability < p.possible_max
where (o.oppt_start >= @begin and o.oppt_start <= @end) and o.oppt_close = 0
group by p.possible_scope
)vopptproduct on vopptproduct.possible_scope=jc_possible.possible_scope
left outer join (
select p.possible_scope, count(o.oppt_id) as lcount
from xs_opportunity o left outer join jc_possible p on o.oppt_probability >= p.possible_min and o.oppt_probability < p.possible_max
where datediff(week, o.oppt_end, getdate())=0 
and  (o.oppt_start >= @begin and o.oppt_start <= @end) and o.oppt_close = 0
group by p.possible_scope
)vopptweek on vopptweek.possible_scope = jc_possible.possible_scope
left outer join (
select p.possible_scope, count(o.oppt_id) as lcount
from xs_opportunity o left outer join jc_possible p on o.oppt_probability >= p.possible_min and o.oppt_probability < p.possible_max
where month(getdate()) = month(o.oppt_end)  
and  (o.oppt_start >= @begin and o.oppt_start <= @end) and o.oppt_close = 0
group by p.possible_scope
)vopptmonth on vopptmonth.possible_scope = jc_possible.possible_scope
left outer join (
select p.possible_scope, count(o.oppt_id) as lcount
from xs_opportunity o left outer join jc_possible p on o.oppt_probability >= p.possible_min and o.oppt_probability < p.possible_max
where (month(getdate()) + 1) = month(o.oppt_end) 
and (o.oppt_start >= @begin and o.oppt_start <= @end) and o.oppt_close = 0
group by p.possible_scope
)vopptnmonth on vopptnmonth.possible_scope = jc_possible.possible_scope
left outer join (
select p.possible_scope, count(o.oppt_id) as lcount
from xs_opportunity o left outer join jc_possible p on o.oppt_probability >= p.possible_min and o.oppt_probability < p.possible_max
where o.oppt_close = 0
and (month(getdate()) <> month(o.oppt_end) and ((month(getdate())+1) <> month(o.oppt_end)) or o.oppt_end is null)
and (o.oppt_start >= @begin and o.oppt_start <= @end  and o.oppt_close = 0)  
group by p.possible_scope
)vopptother on vopptother.possible_scope=jc_possible.possible_scope	
	
	return

GO
SET QUOTED_IDENTIFIER OFF 
GO
SET ANSI_NULLS ON 
GO

SET QUOTED_IDENTIFIER OFF 
GO
SET ANSI_NULLS ON 
GO

CREATE Procedure oppt_promote
	(
		@begin datetime,
		@end datetime
	)
As
	
select 
jc_opptphase.op_id as phaseid,
jc_opptphase.op_name as phasename,
vmaxopptphase.opptphasedays,
vopptphase1.lopptcount as opptcount1,
vopptphase7.lopptcount as opptcount7,
vopptphase15.lopptcount as opptcount15,
vopptphase30.lopptcount as opptcount30,
vopptphase40.lopptcount as opptcount40,
vcuroppt.lopptcount as opptcount 
from 
jc_opptphase
left outer join
(select max(datediff(dy, p.phase_begin, getdate())) as opptphasedays, o.oppt_phase 
from xs_opportunity o left outer join xs_opptphase p on o.phase_id=p.phase_id
where (o.oppt_start >= @begin and o.oppt_start <= @end and o.oppt_close = 0)
group by o.oppt_phase)vmaxopptphase
on vmaxopptphase.oppt_phase=jc_opptphase.op_id
left outer join
(select count(distinct(o.oppt_id)) as lopptcount,o.oppt_phase
from xs_opportunity o left outer join xs_opptphase p on o.phase_id=p.phase_id
where (o.oppt_start >= @begin and o.oppt_start <= @end and o.oppt_close = 0)
and  (datediff(dy,p.phase_begin,getdate())>=0 
and datediff(dy,p.phase_begin,getdate())<=3)
group by o.oppt_phase) vopptphase1
on vopptphase1.oppt_phase=jc_opptphase.op_id
left outer join
(select count(distinct(o.oppt_id)) as lopptcount,o.oppt_phase
from xs_opportunity o left outer join xs_opptphase p on o.phase_id=p.phase_id
where (o.oppt_start >= @begin and o.oppt_start <= @end and o.oppt_close = 0)
and  (datediff(dy,p.phase_begin,getdate())>3 
and datediff(dy,p.phase_begin,getdate())<=7)
group by o.oppt_phase) vopptphase7
on vopptphase7.oppt_phase=jc_opptphase.op_id
left outer join
(select count(distinct(o.oppt_id)) as lopptcount,o.oppt_phase
from xs_opportunity o left outer join xs_opptphase p on o.phase_id=p.phase_id
where (o.oppt_start >= @begin and o.oppt_start <= @end and o.oppt_close = 0)
and  (datediff(dy,p.phase_begin,getdate())>7 
and datediff(dy,p.phase_begin,getdate())<=15)
group by o.oppt_phase) vopptphase15
on vopptphase15.oppt_phase=jc_opptphase.op_id
left outer join
(select count(distinct(o.oppt_id)) as lopptcount,o.oppt_phase
from xs_opportunity o left outer join xs_opptphase p on o.phase_id=p.phase_id
where (o.oppt_start >= @begin and o.oppt_start <= @end and o.oppt_close = 0)
and  (datediff(dy,p.phase_begin,getdate())>15 
and datediff(dy,p.phase_begin,getdate())<=30)
group by o.oppt_phase) vopptphase30
on vopptphase30.oppt_phase=jc_opptphase.op_id
left outer join
(select count(distinct(o.oppt_id)) as lopptcount,o.oppt_phase
from xs_opportunity o left outer join xs_opptphase p on o.phase_id=p.phase_id
where (o.oppt_start >= @begin and o.oppt_start <= @end and o.oppt_close = 0)
and  (datediff(dy,p.phase_begin,getdate())>30) 
group by o.oppt_phase) vopptphase40
on vopptphase40.oppt_phase=jc_opptphase.op_id
left outer join(select count(distinct(o.oppt_id)) as lopptcount,o.oppt_phase
from xs_opportunity o left outer join xs_opptphase p on o.phase_id=p.phase_id
where (o.oppt_start >= @begin and o.oppt_start <= @end and o.oppt_close = 0)
group by o.oppt_phase) vcuroppt
on  vcuroppt.oppt_phase=jc_opptphase.op_id
order by jc_opptphase.op_id	
	
	return

GO
SET QUOTED_IDENTIFIER OFF 
GO
SET ANSI_NULLS ON 
GO

Insert Into CP_ProdInfo( Prod_ID,own_id,Prod_Code,PI_Name,PI_AID,PT_ID,PI_Spec,Unit_ID,PI_Unit,PI_Price,PI_Cost,PI_Date,PI_Grade,PI_MaintTerm,PI_Picture,PI_Desc,PI_Memo,PI_Int01,PI_Int02,PI_Int03,PI_Dec01,PI_Dec02,PI_Dec03,PI_Char01,PI_Char02,PI_Char03,PI_Char04 ) Values(1,'fw001','ap00003001002002-0001','Acer笔记本电脑','p002',170,'LX730',1,'',14800,12000,'123','甲级',12,Null,'Test','Test',Null,Null,Null,Null,Null,Null,'','','','')
Insert Into CP_ProdInfo( Prod_ID,own_id,Prod_Code,PI_Name,PI_AID,PT_ID,PI_Spec,Unit_ID,PI_Unit,PI_Price,PI_Cost,PI_Date,PI_Grade,PI_MaintTerm,PI_Picture,PI_Desc,PI_Memo,PI_Int01,PI_Int02,PI_Int03,PI_Dec01,PI_Dec02,PI_Dec03,PI_Char01,PI_Char02,PI_Char03,PI_Char04 ) Values(2,'fw001','000002-0002','IBM服务器','p001',174,'X220',1,'张',26800,23800,'','甲级',Null,Null,'aaaaa','',Null,Null,Null,Null,Null,Null,'','','','')
Insert Into CP_ProdInfo( Prod_ID,own_id,Prod_Code,PI_Name,PI_AID,PT_ID,PI_Spec,Unit_ID,PI_Unit,PI_Price,PI_Cost,PI_Date,PI_Grade,PI_MaintTerm,PI_Picture,PI_Desc,PI_Memo,PI_Int01,PI_Int02,PI_Int03,PI_Dec01,PI_Dec02,PI_Dec03,PI_Char01,PI_Char02,PI_Char03,PI_Char04 ) Values(5,'fw001','000-0011','三星显示器743DF','c11',170,'17寸纯平',1,'台',1500,1200,'','',Null,Null,'fasfsdfasdfasdf','',Null,Null,Null,Null,Null,Null,'','','','')
Insert Into CP_ProdInfo( Prod_ID,own_id,Prod_Code,PI_Name,PI_AID,PT_ID,PI_Spec,Unit_ID,PI_Unit,PI_Price,PI_Cost,PI_Date,PI_Grade,PI_MaintTerm,PI_Picture,PI_Desc,PI_Memo,PI_Int01,PI_Int02,PI_Int03,PI_Dec01,PI_Dec02,PI_Dec03,PI_Char01,PI_Char02,PI_Char03,PI_Char04 ) Values(6,'fw001','000-P004','三星显示器753DF','c22',170,'17寸纯平',1,'台',1600,1400,'1000','dsfsdf',Null,Null,'','',Null,Null,Null,Null,Null,Null,'','','','')
Insert Into CP_ProdInfo( Prod_ID,own_id,Prod_Code,PI_Name,PI_AID,PT_ID,PI_Spec,Unit_ID,PI_Unit,PI_Price,PI_Cost,PI_Date,PI_Grade,PI_MaintTerm,PI_Picture,PI_Desc,PI_Memo,PI_Int01,PI_Int02,PI_Int03,PI_Dec01,PI_Dec02,PI_Dec03,PI_Char01,PI_Char02,PI_Char03,PI_Char04 ) Values(7,'fw001','000-P005','三星显示器755DF','c12',170,'17寸纯平',1,'台',1900,1500,'100','',Null,Null,'','',Null,Null,Null,Null,Null,Null,'','','','')
Insert Into CP_ProdInfo( Prod_ID,own_id,Prod_Code,PI_Name,PI_AID,PT_ID,PI_Spec,Unit_ID,PI_Unit,PI_Price,PI_Cost,PI_Date,PI_Grade,PI_MaintTerm,PI_Picture,PI_Desc,PI_Memo,PI_Int01,PI_Int02,PI_Int03,PI_Dec01,PI_Dec02,PI_Dec03,PI_Char01,PI_Char02,PI_Char03,PI_Char04 ) Values(9,'fw001','000-P006','三星显示器750S','c13',170,'17寸',1,'台',1400,1300,'100','',Null,Null,'','',Null,Null,Null,Null,Null,Null,'','','','')
Insert Into CP_ProdInfo( Prod_ID,own_id,Prod_Code,PI_Name,PI_AID,PT_ID,PI_Spec,Unit_ID,PI_Unit,PI_Price,PI_Cost,PI_Date,PI_Grade,PI_MaintTerm,PI_Picture,PI_Desc,PI_Memo,PI_Int01,PI_Int02,PI_Int03,PI_Dec01,PI_Dec02,PI_Dec03,PI_Char01,PI_Char02,PI_Char03,PI_Char04 ) Values(10,'fw001','004001-0001','爱立信T18SC','c14',186,'简体中文，双频',1,'台',1000,500,'100','',Null,Null,'','',Null,Null,Null,Null,Null,Null,'','','','')
Insert Into CP_ProdInfo( Prod_ID,own_id,Prod_Code,PI_Name,PI_AID,PT_ID,PI_Spec,Unit_ID,PI_Unit,PI_Price,PI_Cost,PI_Date,PI_Grade,PI_MaintTerm,PI_Picture,PI_Desc,PI_Memo,PI_Int01,PI_Int02,PI_Int03,PI_Dec01,PI_Dec02,PI_Dec03,PI_Char01,PI_Char02,PI_Char03,PI_Char04 ) Values(11,'fw001','004001-0002','爱立信T28SC','c15',170,'简体中文，双频',1,'台',1200,600,'100','',Null,Null,'','',Null,Null,Null,Null,Null,Null,'','','','')
Insert Into CP_ProdInfo( Prod_ID,own_id,Prod_Code,PI_Name,PI_AID,PT_ID,PI_Spec,Unit_ID,PI_Unit,PI_Price,PI_Cost,PI_Date,PI_Grade,PI_MaintTerm,PI_Picture,PI_Desc,PI_Memo,PI_Int01,PI_Int02,PI_Int03,PI_Dec01,PI_Dec02,PI_Dec03,PI_Char01,PI_Char02,PI_Char03,PI_Char04 ) Values(12,'fw001','004001-0003','爱立信T29SC','c165',170,'简体中文，三频，WAP',1,'台',1400,700,'100','',Null,Null,'','',Null,Null,Null,Null,Null,Null,'','','','')
Insert Into CP_ProdInfo( Prod_ID,own_id,Prod_Code,PI_Name,PI_AID,PT_ID,PI_Spec,Unit_ID,PI_Unit,PI_Price,PI_Cost,PI_Date,PI_Grade,PI_MaintTerm,PI_Picture,PI_Desc,PI_Memo,PI_Int01,PI_Int02,PI_Int03,PI_Dec01,PI_Dec02,PI_Dec03,PI_Char01,PI_Char02,PI_Char03,PI_Char04 ) Values(13,'fw001','004001-0004','爱立信T39mc','c144',170,'简体中文,WAP,GPRS',1,'台',2800,1000,'100','',Null,Null,'','',Null,Null,Null,Null,Null,Null,'','','','')
Insert Into CP_ProdInfo( Prod_ID,own_id,Prod_Code,PI_Name,PI_AID,PT_ID,PI_Spec,Unit_ID,PI_Unit,PI_Price,PI_Cost,PI_Date,PI_Grade,PI_MaintTerm,PI_Picture,PI_Desc,PI_Memo,PI_Int01,PI_Int02,PI_Int03,PI_Dec01,PI_Dec02,PI_Dec03,PI_Char01,PI_Char02,PI_Char03,PI_Char04 ) Values(14,'fw001','004001-0005','Motorola V66','c1334',170,'简体中文，三频，WAP',1,'台',2900,1000,'100','',Null,Null,'','',Null,Null,Null,Null,Null,Null,'','','','')
Insert Into CP_ProdInfo( Prod_ID,own_id,Prod_Code,PI_Name,PI_AID,PT_ID,PI_Spec,Unit_ID,PI_Unit,PI_Price,PI_Cost,PI_Date,PI_Grade,PI_MaintTerm,PI_Picture,PI_Desc,PI_Memo,PI_Int01,PI_Int02,PI_Int03,PI_Dec01,PI_Dec02,PI_Dec03,PI_Char01,PI_Char02,PI_Char03,PI_Char04 ) Values(15,'fw001','004001-0006','Motorola V60','c144',170,'中文,三频,WAP',1,'台',4500,1200,'100','',Null,Null,'','',Null,Null,Null,Null,Null,Null,'','','','')
Insert Into CP_ProdInfo( Prod_ID,own_id,Prod_Code,PI_Name,PI_AID,PT_ID,PI_Spec,Unit_ID,PI_Unit,PI_Price,PI_Cost,PI_Date,PI_Grade,PI_MaintTerm,PI_Picture,PI_Desc,PI_Memo,PI_Int01,PI_Int02,PI_Int03,PI_Dec01,PI_Dec02,PI_Dec03,PI_Char01,PI_Char02,PI_Char03,PI_Char04 ) Values(18,'fw001','004001-0007','Motorola V8088','c33',170,'中文,双频,WAP',1,'台',2200,1200,'100','',Null,Null,'','',Null,Null,Null,Null,Null,Null,'','','','')
Insert Into CP_ProdInfo( Prod_ID,own_id,Prod_Code,PI_Name,PI_AID,PT_ID,PI_Spec,Unit_ID,PI_Unit,PI_Price,PI_Cost,PI_Date,PI_Grade,PI_MaintTerm,PI_Picture,PI_Desc,PI_Memo,PI_Int01,PI_Int02,PI_Int03,PI_Dec01,PI_Dec02,PI_Dec03,PI_Char01,PI_Char02,PI_Char03,PI_Char04 ) Values(19,'fw001','004001-0008','Nokia 8210','ccc',170,'中文,双频',1,'台',1800,1000,'100','',Null,Null,'','',Null,Null,Null,Null,Null,Null,'','','','')
Insert Into CP_ProdInfo( Prod_ID,own_id,Prod_Code,PI_Name,PI_AID,PT_ID,PI_Spec,Unit_ID,PI_Unit,PI_Price,PI_Cost,PI_Date,PI_Grade,PI_MaintTerm,PI_Picture,PI_Desc,PI_Memo,PI_Int01,PI_Int02,PI_Int03,PI_Dec01,PI_Dec02,PI_Dec03,PI_Char01,PI_Char02,PI_Char03,PI_Char04 ) Values(20,'fw001','004001-0009','Nokia 8250','c333',170,'中文,双频,WAP',1,'台',2500,1200,'100','',Null,Null,'','',Null,Null,Null,Null,Null,Null,'','','','')
Insert Into CP_ProdInfo( Prod_ID,own_id,Prod_Code,PI_Name,PI_AID,PT_ID,PI_Spec,Unit_ID,PI_Unit,PI_Price,PI_Cost,PI_Date,PI_Grade,PI_MaintTerm,PI_Picture,PI_Desc,PI_Memo,PI_Int01,PI_Int02,PI_Int03,PI_Dec01,PI_Dec02,PI_Dec03,PI_Char01,PI_Char02,PI_Char03,PI_Char04 ) Values(22,'fw001','004001-0010','Nokia 8850','c212',170,'中文,双频',1,'台',3000,1200,'100','',Null,Null,'','',Null,Null,Null,Null,Null,Null,'','','','')
Insert Into CP_ProdInfo( Prod_ID,own_id,Prod_Code,PI_Name,PI_AID,PT_ID,PI_Spec,Unit_ID,PI_Unit,PI_Price,PI_Cost,PI_Date,PI_Grade,PI_MaintTerm,PI_Picture,PI_Desc,PI_Memo,PI_Int01,PI_Int02,PI_Int03,PI_Dec01,PI_Dec02,PI_Dec03,PI_Char01,PI_Char02,PI_Char03,PI_Char04 ) Values(23,'fw001','004001-0011','Nokia 3310','c34',170,'中文,双频',1,'台',1500,800,'100','',Null,Null,'','',Null,Null,Null,Null,Null,Null,'','','','')
Insert Into CP_ProdInfo( Prod_ID,own_id,Prod_Code,PI_Name,PI_AID,PT_ID,PI_Spec,Unit_ID,PI_Unit,PI_Price,PI_Cost,PI_Date,PI_Grade,PI_MaintTerm,PI_Picture,PI_Desc,PI_Memo,PI_Int01,PI_Int02,PI_Int03,PI_Dec01,PI_Dec02,PI_Dec03,PI_Char01,PI_Char02,PI_Char03,PI_Char04 ) Values(24,'fw001','004001-0012','Siemens 6688','c344',170,'中文,双频,WAP',1,'台',3500,2000,'100','',Null,Null,'','',Null,Null,Null,Null,Null,Null,'','','','')
Insert Into CP_ProdInfo( Prod_ID,own_id,Prod_Code,PI_Name,PI_AID,PT_ID,PI_Spec,Unit_ID,PI_Unit,PI_Price,PI_Cost,PI_Date,PI_Grade,PI_MaintTerm,PI_Picture,PI_Desc,PI_Memo,PI_Int01,PI_Int02,PI_Int03,PI_Dec01,PI_Dec02,PI_Dec03,PI_Char01,PI_Char02,PI_Char03,PI_Char04 ) Values(25,'fw001','004001-0013','Motorola V998+','c433',170,'中文,双频',1,'台',1800,800,'100','',Null,Null,'','',Null,Null,Null,Null,Null,Null,'','','','')
Insert Into CP_ProdInfo( Prod_ID,own_id,Prod_Code,PI_Name,PI_AID,PT_ID,PI_Spec,Unit_ID,PI_Unit,PI_Price,PI_Cost,PI_Date,PI_Grade,PI_MaintTerm,PI_Picture,PI_Desc,PI_Memo,PI_Int01,PI_Int02,PI_Int03,PI_Dec01,PI_Dec02,PI_Dec03,PI_Char01,PI_Char02,PI_Char03,PI_Char04 ) Values(26,'fw001','000-0014','Seagate U6ST320413A','c123',170,'20.4G/IDE/2M/5400rpm',1,'台',640,500,'120','',Null,Null,'','',Null,Null,Null,Null,Null,Null,'','','','')
Insert Into CP_ProdInfo( Prod_ID,own_id,Prod_Code,PI_Name,PI_AID,PT_ID,PI_Spec,Unit_ID,PI_Unit,PI_Price,PI_Cost,PI_Date,PI_Grade,PI_MaintTerm,PI_Picture,PI_Desc,PI_Memo,PI_Int01,PI_Int02,PI_Int03,PI_Dec01,PI_Dec02,PI_Dec03,PI_Char01,PI_Char02,PI_Char03,PI_Char04 ) Values(27,'fw001','000-P021','Seagate ST340016A','d333',170,'40G/IDE/2M/7200rpm',1,'台',845,600,'140','',Null,Null,'','',Null,Null,Null,Null,Null,Null,'','','','')
Insert Into CP_ProdInfo( Prod_ID,own_id,Prod_Code,PI_Name,PI_AID,PT_ID,PI_Spec,Unit_ID,PI_Unit,PI_Price,PI_Cost,PI_Date,PI_Grade,PI_MaintTerm,PI_Picture,PI_Desc,PI_Memo,PI_Int01,PI_Int02,PI_Int03,PI_Dec01,PI_Dec02,PI_Dec03,PI_Char01,PI_Char02,PI_Char03,PI_Char04 ) Values(28,'fw001','000-P022','IBM 60AVER07','33',170,'60G/2M/7200rpm',1,'个',1090,800,'100','',Null,8,'','',Null,Null,Null,Null,Null,Null,'','','','')
Insert Into CP_ProdInfo( Prod_ID,own_id,Prod_Code,PI_Name,PI_AID,PT_ID,PI_Spec,Unit_ID,PI_Unit,PI_Price,PI_Cost,PI_Date,PI_Grade,PI_MaintTerm,PI_Picture,PI_Desc,PI_Memo,PI_Int01,PI_Int02,PI_Int03,PI_Dec01,PI_Dec02,PI_Dec03,PI_Char01,PI_Char02,PI_Char03,PI_Char04 ) Values(29,'fw001','000-P023','Acer显示器77V','d33',170,'17寸/.27mm',1,'台',1399,1200,'100','',Null,6,'','',Null,Null,Null,Null,Null,Null,'','','','')
Insert Into CP_ProdInfo( Prod_ID,own_id,Prod_Code,PI_Name,PI_AID,PT_ID,PI_Spec,Unit_ID,PI_Unit,PI_Price,PI_Cost,PI_Date,PI_Grade,PI_MaintTerm,PI_Picture,PI_Desc,PI_Memo,PI_Int01,PI_Int02,PI_Int03,PI_Dec01,PI_Dec02,PI_Dec03,PI_Char01,PI_Char02,PI_Char03,PI_Char04 ) Values(30,'fw001','000-P024','Philips显示器107G','c333d',170,'17寸/.28mm',1,'台',1720,1300,'1000','ffffffffff',222,Null,'dfasffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff','ffffffffffffffffffffffffffffffffffffffffffffffffffffffff',Null,Null,Null,Null,Null,Null,'','','','')
Insert Into CP_ProdInfo( Prod_ID,own_id,Prod_Code,PI_Name,PI_AID,PT_ID,PI_Spec,Unit_ID,PI_Unit,PI_Price,PI_Cost,PI_Date,PI_Grade,PI_MaintTerm,PI_Picture,PI_Desc,PI_Memo,PI_Int01,PI_Int02,PI_Int03,PI_Dec01,PI_Dec02,PI_Dec03,PI_Char01,PI_Char02,PI_Char03,PI_Char04 ) Values(31,'fw001','000-P025','Philips显示器105S','e33',170,'15寸/.28mm',1,'台',1050,800,'140','',Null,Null,'','',Null,Null,Null,Null,Null,Null,'','','','')
Insert Into CP_ProdInfo( Prod_ID,own_id,Prod_Code,PI_Name,PI_AID,PT_ID,PI_Spec,Unit_ID,PI_Unit,PI_Price,PI_Cost,PI_Date,PI_Grade,PI_MaintTerm,PI_Picture,PI_Desc,PI_Memo,PI_Int01,PI_Int02,PI_Int03,PI_Dec01,PI_Dec02,PI_Dec03,PI_Char01,PI_Char02,PI_Char03,PI_Char04 ) Values(33,'fw001','p00002-0001','EPSON1600K','1600k',170,'A4',Null,'台',1500,1200,'1400','',12,Null,'test','test',Null,Null,Null,Null,Null,Null,'','','','')
Insert Into CP_ProdInfo( Prod_ID,own_id,Prod_Code,PI_Name,PI_AID,PT_ID,PI_Spec,Unit_ID,PI_Unit,PI_Price,PI_Cost,PI_Date,PI_Grade,PI_MaintTerm,PI_Picture,PI_Desc,PI_Memo,PI_Int01,PI_Int02,PI_Int03,PI_Dec01,PI_Dec02,PI_Dec03,PI_Char01,PI_Char02,PI_Char03,PI_Char04 ) Values(34,'fw001','000001-0009','昭阳笔记本电脑','LEGEND',173,'sdfds',Null,'台',16800,10000,'','dsfsdf',12,11,'','',Null,Null,Null,Null,Null,Null,'','','','')
Insert Into CP_ProdInfo( Prod_ID,own_id,Prod_Code,PI_Name,PI_AID,PT_ID,PI_Spec,Unit_ID,PI_Unit,PI_Price,PI_Cost,PI_Date,PI_Grade,PI_MaintTerm,PI_Picture,PI_Desc,PI_Memo,PI_Int01,PI_Int02,PI_Int03,PI_Dec01,PI_Dec02,PI_Dec03,PI_Char01,PI_Char02,PI_Char03,PI_Char04 ) Values(35,'fw001','p03-0001','aaaa','',172,',',Null,'',34556,3434,'','',Null,Null,'','',Null,Null,Null,Null,Null,Null,'','','','')
Insert Into CP_ProdInfo( Prod_ID,own_id,Prod_Code,PI_Name,PI_AID,PT_ID,PI_Spec,Unit_ID,PI_Unit,PI_Price,PI_Cost,PI_Date,PI_Grade,PI_MaintTerm,PI_Picture,PI_Desc,PI_Memo,PI_Int01,PI_Int02,PI_Int03,PI_Dec01,PI_Dec02,PI_Dec03,PI_Char01,PI_Char02,PI_Char03,PI_Char04 ) Values(36,'fw001','000002003-0001','IBM笔记本电脑','',191,'sdfsdf',Null,'',16852,8523,'','',Null,9,'','',Null,Null,Null,Null,Null,Null,'','','','')
GO

Insert Into CP_ProdType( PT_ID,own_id,PT_Code,PT_Name,PT_ProdSN,PT_Levels,PT_Path,PT_ParentID ) Values(170,'fw001','000','电脑类',14,0,'-',0)
Insert Into CP_ProdType( PT_ID,own_id,PT_Code,PT_Name,PT_ProdSN,PT_Levels,PT_Path,PT_ParentID ) Values(171,'fw001','p00','打印机类',0,0,'-',0)
Insert Into CP_ProdType( PT_ID,own_id,PT_Code,PT_Name,PT_ProdSN,PT_Levels,PT_Path,PT_ParentID ) Values(172,'fw001','p03','刻录机类',1,0,'-',0)
Insert Into CP_ProdType( PT_ID,own_id,PT_Code,PT_Name,PT_ProdSN,PT_Levels,PT_Path,PT_ParentID ) Values(173,'fw001','000001','联想电脑',10,1,'-170-',170)
Insert Into CP_ProdType( PT_ID,own_id,PT_Code,PT_Name,PT_ProdSN,PT_Levels,PT_Path,PT_ParentID ) Values(174,'fw001','000002','IBM电脑',2,1,'-170-',170)
Insert Into CP_ProdType( PT_ID,own_id,PT_Code,PT_Name,PT_ProdSN,PT_Levels,PT_Path,PT_ParentID ) Values(176,'fw001','000001003','联想商用电脑',1,2,'-170-173-',173)
Insert Into CP_ProdType( PT_ID,own_id,PT_Code,PT_Name,PT_ProdSN,PT_Levels,PT_Path,PT_ParentID ) Values(177,'fw001','000001004','联想手提电脑',3,2,'-170-173-',173)
Insert Into CP_ProdType( PT_ID,own_id,PT_Code,PT_Name,PT_ProdSN,PT_Levels,PT_Path,PT_ParentID ) Values(178,'fw001','000002001','IBM商用电脑',2,2,'-170-174-',174)
Insert Into CP_ProdType( PT_ID,own_id,PT_Code,PT_Name,PT_ProdSN,PT_Levels,PT_Path,PT_ParentID ) Values(179,'fw001','000002002','IBM220服务器',2,2,'-170-174-',174)
Insert Into CP_ProdType( PT_ID,own_id,PT_Code,PT_Name,PT_ProdSN,PT_Levels,PT_Path,PT_ParentID ) Values(181,'fw001','p00002','针式打印机类',1,1,'-171-',171)
Insert Into CP_ProdType( PT_ID,own_id,PT_Code,PT_Name,PT_ProdSN,PT_Levels,PT_Path,PT_ParentID ) Values(182,'fw001','p00003','喷墨打印机类',0,1,'-171-',171)
Insert Into CP_ProdType( PT_ID,own_id,PT_Code,PT_Name,PT_ProdSN,PT_Levels,PT_Path,PT_ParentID ) Values(183,'fw001','p00004','激光打印机类',0,1,'-171-',171)
Insert Into CP_ProdType( PT_ID,own_id,PT_Code,PT_Name,PT_ProdSN,PT_Levels,PT_Path,PT_ParentID ) Values(184,'fw001','p00003001','Cancel打印机',0,2,'-171-182-',182)
Insert Into CP_ProdType( PT_ID,own_id,PT_Code,PT_Name,PT_ProdSN,PT_Levels,PT_Path,PT_ParentID ) Values(185,'fw001','004','通讯类',3,0,'-',0)
Insert Into CP_ProdType( PT_ID,own_id,PT_Code,PT_Name,PT_ProdSN,PT_Levels,PT_Path,PT_ParentID ) Values(186,'fw001','004001','移动电话',2,1,'-185-',185)
Insert Into CP_ProdType( PT_ID,own_id,PT_Code,PT_Name,PT_ProdSN,PT_Levels,PT_Path,PT_ParentID ) Values(187,'fw001','004002','交换机',0,1,'-185',185)
Insert Into CP_ProdType( PT_ID,own_id,PT_Code,PT_Name,PT_ProdSN,PT_Levels,PT_Path,PT_ParentID ) Values(189,'fw001','p00003001002','Cancel 2000',0,3,'-171-182-184',184)
Insert Into CP_ProdType( PT_ID,own_id,PT_Code,PT_Name,PT_ProdSN,PT_Levels,PT_Path,PT_ParentID ) Values(190,'fw001','p00003001002002','Cancel 2000A型',50,4,'-171-182-184189',189)
Insert Into CP_ProdType( PT_ID,own_id,PT_Code,PT_Name,PT_ProdSN,PT_Levels,PT_Path,PT_ParentID ) Values(191,'fw001','000002003','IMB笔记本电脑',1,2,'-170-191-',174)
GO

Insert Into FW_CareAdvice( own_id,CA_Code,CA_Type,CA_CustID,CA_Subject,CA_Content,CA_Days,CA_Flag,Contact_ID ) Values('fw001','','节日关怀','28,27,26,25','test','我们的产品质量绝对没问题！',0,'0',Null)
GO

Insert Into FW_Holiday( own_id,ho_month,ho_day,ho_name,ho_wish ) Values('fw001','1','1','元旦节','新年快乐！')
Insert Into FW_Holiday( own_id,ho_month,ho_day,ho_name,ho_wish ) Values('fw001','1','24','春节','新年好！')
Insert Into FW_Holiday( own_id,ho_month,ho_day,ho_name,ho_wish ) Values('fw001','2','14','情人节','情人节快乐')
Insert Into FW_Holiday( own_id,ho_month,ho_day,ho_name,ho_wish ) Values('fw001','3','15','消费者权益日','我们的产品质量绝对没问题！')
Insert Into FW_Holiday( own_id,ho_month,ho_day,ho_name,ho_wish ) Values('fw001','5','1','国际劳动节','节日快乐！')
Insert Into FW_Holiday( own_id,ho_month,ho_day,ho_name,ho_wish ) Values('fw001','6','1','国际儿童节','小朋友节日快乐！')
Insert Into FW_Holiday( own_id,ho_month,ho_day,ho_name,ho_wish ) Values('fw001','3','8','妇女节','祝女士节日快乐！')
Insert Into FW_Holiday( own_id,ho_month,ho_day,ho_name,ho_wish ) Values('fw001','8','1','建军节','')
Insert Into FW_Holiday( own_id,ho_month,ho_day,ho_name,ho_wish ) Values('fw001','9','10','教师节','节日快乐！')
Insert Into FW_Holiday( own_id,ho_month,ho_day,ho_name,ho_wish ) Values('fw001','10','1','国庆节','节日快乐！')
Insert Into FW_Holiday( own_id,ho_month,ho_day,ho_name,ho_wish ) Values('fw001','12','25','圣诞节','节日快乐！')
Insert Into FW_Holiday( own_id,ho_month,ho_day,ho_name,ho_wish ) Values('fw001','9','9','重阳节','一起去登山')
Insert Into FW_Holiday( own_id,ho_month,ho_day,ho_name,ho_wish ) Values('fw001','3','12','植树节','保护环境， 人人有责')
Insert Into FW_Holiday( own_id,ho_month,ho_day,ho_name,ho_wish ) Values('fw001','5','4','青年节','青年人快乐！')
Insert Into FW_Holiday( own_id,ho_month,ho_day,ho_name,ho_wish ) Values('fw001','7','1',' 建党节','中国共产党一路走好！')
Insert Into FW_Holiday( own_id,ho_month,ho_day,ho_name,ho_wish ) Values('fw001','4','2','愚人节','先生，你的钱包掉了！对不起开个玩笑！今天是愚人节！')
GO

Insert Into FW_MaintCard( own_id,MC_ID,Prod_ID,MC_SerialNo,MC_BuyDate,Mc_TermDate,MC_Sell,MC_Acceptor,cust_id,mc_contact,mc_addr,mc_phone,mc_postcode,mc_email ) Values('fw001','123456',7,'12345','01/03/2002','01/10/2002','test',1,8,'test','test','','','')
GO

Insert Into FW_MaintRec( own_id,MC_ID,MR_Date,MR_Desc,MR_Charge,MR_Status,MR_Repairer,MR_TaskID ) Values('fw001','123456','12/30/2001','test',1000,'报修',1,'')
GO

Insert Into FW_SrvcRule( sr_ID,own_Id,sr_Code,sr_subject,sr_content,sr_type,sr_dept,sr_filename,sr_filepath ) Values(2,'fw001','FW-SR-20011127-0003','互联网营销概述','在日常的业务交往中，我们会发现越来越多的企业已经有了自己的网址，很多业务信息的沟通也普遍应用电子邮件，当你询问企业的负责人互联网有没有为企业带来效益时，一般都会得到肯定的回答，而且很多企业中已经有专门的电子商务部门或有专人负责利用互联网进行营销工作。互联网在企业中应用的热潮正好与.com公司的萧条形成鲜明的对比，互联网已经在企业的具体应用中发挥越来越大的作用。
   作为一种有效的营销工具，互联网有其自身的特点，如果说，企业已经或即将把互联网作为一种营销手段的话，那么就像其它的营销工具都有常用的方法和规律一样，互联网营销也应该具备一些常规的方法和规律，也会有一些特点的业务方式和管理手段。笔者在咨询工作中发现对互联网营销如何做，如何进行营销管理等具体问题上，尚没有形成定型的方法，导致企业虽然重视互联网营销但在具体操作中却经常无章可寻，无法有序地推进营销效果，使企业无法更深更好地挖掘互联网的营销价值，也使这方面的具体办事人员无法长期持久地体现工作的价值。笔者希望通过这个专栏可以对互联网营销在操作层面进行一些探索，希望自身的经验可以对企业中从事相关工作的朋友有些许作用，更希望以这个专栏为契机，与朋友们进行探讨，相互促进。

1、什么是互联网营销？

定义有很多版本，但为了使这个专栏更具操作价值，我们也权且把它定义得具备操作意义：凡利用互联网进行的营销工作，就可称其为互联网营销，营销中的诸多要素如：品牌、渠道、促销等要素都会在互联网营销中体现，而互联网营销更为营销各要素带来新的形式与内容。也就是说，在营销工作中利用了互联网，我们就称作在进行互联网营销。

2、互联网营销要实现什么目的？

正如任何营销的形式其最终目的都是给企业带来利润一样，互联网营销的根本目的也必须为企业带来利益，节约成本或者创造利润。

3、互联网营销的主要作用：

一般情况下互联网营销有以下5个主要作用： 

1）宣传广告：

2）新产品促（试）销

3）市场调查

4）网上直销

5）客户关系管理 

客户服务、销售与渠道管理等

对不同业务性质和业务规模的企业，互联网营销起到的作用也不同。 

4、互联网营销的主要工具有哪些？

电子邮件营销、企业网站营销、网上广告等是互联网营销的主要工具，企业中网络营销部门一般会依托这几种形式进行营销工作，而每一种工具都有其广阔的内涵和多层次的内容，如：网站营销，从简单的网页，到与内部系统相联的企业门户网站，到采用CRM系统的一对一营销网站，都是网站营销，而其具体的内容则有很大的差异。

5、现实的工作中存在哪些问题？

由于互联网营销无论从理论到实践都太新，都处于探索阶段，所以具体到企业的互联网营销实践都会表现出一些共性的问题。

1）作用不清，目的不明：很多企业在战略上对互联网的作用定位模糊，在互联网热潮中有很多企业进行了大型的投资项目，目前看来，大多数以失败告终，这之后又出现了谈网色变的情况，企业自身利用互联网的积极性受到了打击，这些在战略上的模糊定位，导致互联网营销在很多企业中的畸形状态。

2）任务不清、考核不明：我们在咨询工作中经常会看到这样的情况，企业的管理层没有办法给负责互联网营销的部门下达准确的任务，具体负责的部门也不能向企业提供很清晰的计划，对这个部门或负责的人员很难有一个量化的连续的考核指标，这些状况直接导致管理层对相应部门的不信任和执行人员的成功感不强。

3）互联网营销的潜力没有得到充分的挖掘：很多企业由于一开始实施互联网营销时遇到了各种问题，也有过高投入低产出的教训，则对互联网营销保持相当谨慎的态度，导致浅层次的较多尝试，深层次的应用较少，没能充分挖掘互联网营销的潜力。此外，还存在着互联网部门与其他部门难于信息沟通，对互联网营销的难于进行成本管理等问题。

总之，互联网营销无论从宏观和微观很多值得挖掘和优化的地方，笔者希在后续的文章中与对此感兴趣的朋友共同交流。
',4,Null,'','')
Insert Into FW_SrvcRule( sr_ID,own_Id,sr_Code,sr_subject,sr_content,sr_type,sr_dept,sr_filename,sr_filepath ) Values(3,'fw001','FW-SR-20011127-0004','网络营销的主要方法','网上页面广告
主要包括横幅旗帜广告（即Banner，包括全尺寸和小尺寸2种，可以是静态图片或gif动画或Flash动画）、标识广告（即Logo，它又分为图片和文字2类）、文字链接以及分类广告（Classified Ad.）等几种形式。当访问者看到网上广告并对其感兴趣时，即会点击链接到广告发布者的网站上。 

搜索引擎加注
经常上网的朋友都会熟悉这个名词，搜索引擎收集了成千上万的网站索引信息，并将其分门别类地存放于数据库当中，当我们想在网上寻找某方面的网站时，一般都会从搜索引擎入手。有关机构的统计报告显示，搜索引擎查询已经成为上网者仅次于电子邮件的一种最常使用的网上服务项目，相信每一位网站建设者都希望自己的网站能被搜索引擎罗列出来，甚至排名靠前，这就必须进行搜索引擎加注。

商业分类广告
据统计，上网者查看分类广告(Classified Ad.)与查看新闻的比例不相上下。分类广告是指按行业及目的等进行分类的各种广告信息，它具有针对性强、发布费用低、见效快、交互方便及站点覆盖广等优点；目前网上提供这种服务的站点层出不穷，较常见的有阿里巴巴、经贸信息网及市场商情网等。　

电子杂志广告
历年来世界各国的互联网应用调查都显示，电子邮件几乎永远是网络用户的首要应用项目，各类专业的邮件营销服务商已将服务深入到千家万户，他们正在以先进、严谨的服务内容及编辑风格创造着传媒业的奇迹，其拥有的上百万许可营销用户能使您的广告信息直达用户视野。

交换链接
如果说“链接”是互联网站上最实用、最有特色的技术，那么“交换链接”应当是开展网上营销的最经济、最便利的手段，网站之间通过交换图片或文字链接，使本网站访问者很容易到达另一个网站(对新网站尤其重要)，这样可以直接提高访问量、扩大知名度，实现信息互通、资源共享。
',4,Null,'','')
Insert Into FW_SrvcRule( sr_ID,own_Id,sr_Code,sr_subject,sr_content,sr_type,sr_dept,sr_filename,sr_filepath ) Values(9,'fw001','FW-SR-20020708-0001','公司考勤管理制度','',6,6,'9-','')
GO

Insert Into JB_Contact( ct_id,own_id,ct_name,ct_aid,ct_sex,ct_married,ct_birthday,ct_title,ct_dept,ct_addr,ct_postcode,ct_phone,ct_fax,ct_mobile,ct_pager,ct_email,ct_Hphone,ct_biz,ct_memo,ct_flag,ct_type,cust_id ) Values(5,'fw001','王小毛','cv','0','0','02/21/1978','销售总监','销售','23423423','410022','020-33778899','020-2009990','138-58993333','020-55773333-8907','ty@yu.com','','wwew','sdswqew','1','cust',3)
Insert Into JB_Contact( ct_id,own_id,ct_name,ct_aid,ct_sex,ct_married,ct_birthday,ct_title,ct_dept,ct_addr,ct_postcode,ct_phone,ct_fax,ct_mobile,ct_pager,ct_email,ct_Hphone,ct_biz,ct_memo,ct_flag,ct_type,cust_id ) Values(6,'fw001','张大千','ZDQ','0','0','03/09/1970','设计总监','技术部','ddd','8999444','040-39383838','9999999','139-98377778','','zdqian@dtda.com','445345346536','','','1','cust',6)
Insert Into JB_Contact( ct_id,own_id,ct_name,ct_aid,ct_sex,ct_married,ct_birthday,ct_title,ct_dept,ct_addr,ct_postcode,ct_phone,ct_fax,ct_mobile,ct_pager,ct_email,ct_Hphone,ct_biz,ct_memo,ct_flag,ct_type,cust_id ) Values(7,'fw001','李江山','LJS','0','0','','总经理','dfsd','','510345','020-5678990','020-5678990','020-5678990','020-5678990','jiang@sina.com','','ddddd','dfs''dfgdfg','0','cust',6)
Insert Into JB_Contact( ct_id,own_id,ct_name,ct_aid,ct_sex,ct_married,ct_birthday,ct_title,ct_dept,ct_addr,ct_postcode,ct_phone,ct_fax,ct_mobile,ct_pager,ct_email,ct_Hphone,ct_biz,ct_memo,ct_flag,ct_type,cust_id ) Values(8,'fw001','孙永前','SYQ','1','0','','销售部经理','','广州市体育东路1号金泽大厦2714','510600','020-87567159','020-87567159','13602589452','','syqian@21cn.com','','','','1','',17)
Insert Into JB_Contact( ct_id,own_id,ct_name,ct_aid,ct_sex,ct_married,ct_birthday,ct_title,ct_dept,ct_addr,ct_postcode,ct_phone,ct_fax,ct_mobile,ct_pager,ct_email,ct_Hphone,ct_biz,ct_memo,ct_flag,ct_type,cust_id ) Values(9,'fw001','蔡明哲','CMZ','1','0','','市场部经理','','广州天河北路233号中信广场1606室','516200','020-38771606','020-38771606','13925896325','','cmz@huada.com','','','','1','',18)
Insert Into JB_Contact( ct_id,own_id,ct_name,ct_aid,ct_sex,ct_married,ct_birthday,ct_title,ct_dept,ct_addr,ct_postcode,ct_phone,ct_fax,ct_mobile,ct_pager,ct_email,ct_Hphone,ct_biz,ct_memo,ct_flag,ct_type,cust_id ) Values(10,'fw001','刘世同','LST','1','1','','部门经理','','北京海淀区西三旗建材城中路10号','','010-82922205','010-82923987','13902412363','','liust@Hsj.com','13802569423','','','1','',19)
Insert Into JB_Contact( ct_id,own_id,ct_name,ct_aid,ct_sex,ct_married,ct_birthday,ct_title,ct_dept,ct_addr,ct_postcode,ct_phone,ct_fax,ct_mobile,ct_pager,ct_email,ct_Hphone,ct_biz,ct_memo,ct_flag,ct_type,cust_id ) Values(11,'fw001','陈东声','CDS','1','0','','部门经理','','上海市南丹东路238号金轩大厦17C','','021-64270620','021-64270620','13826331254','','cds@hkyy.com','','','','1','',20)
Insert Into JB_Contact( ct_id,own_id,ct_name,ct_aid,ct_sex,ct_married,ct_birthday,ct_title,ct_dept,ct_addr,ct_postcode,ct_phone,ct_fax,ct_mobile,ct_pager,ct_email,ct_Hphone,ct_biz,ct_memo,ct_flag,ct_type,cust_id ) Values(12,'fw001','王络彤','WLT','0','0','','市场主管','','南京建业路199号东沛大厦10层','','025-2336896','','13825469871','','wltong@botong.com','','','','1','',21)
Insert Into JB_Contact( ct_id,own_id,ct_name,ct_aid,ct_sex,ct_married,ct_birthday,ct_title,ct_dept,ct_addr,ct_postcode,ct_phone,ct_fax,ct_mobile,ct_pager,ct_email,ct_Hphone,ct_biz,ct_memo,ct_flag,ct_type,cust_id ) Values(13,'fw001','潘安详','PAX','1','0','','部门经理','','长春市同志路87号','','0431-5671405','','13922012365','','pax@jdgm.com','','','','1','',22)
Insert Into JB_Contact( ct_id,own_id,ct_name,ct_aid,ct_sex,ct_married,ct_birthday,ct_title,ct_dept,ct_addr,ct_postcode,ct_phone,ct_fax,ct_mobile,ct_pager,ct_email,ct_Hphone,ct_biz,ct_memo,ct_flag,ct_type,cust_id ) Values(14,'fw001','谢冬新','XDX','1','0','','销售总监','','天津市南开区科研东路11号A座12楼','','022-23673423','','13922105698','','xdxin@yiqixin.com','','','','1','',23)
Insert Into JB_Contact( ct_id,own_id,ct_name,ct_aid,ct_sex,ct_married,ct_birthday,ct_title,ct_dept,ct_addr,ct_postcode,ct_phone,ct_fax,ct_mobile,ct_pager,ct_email,ct_Hphone,ct_biz,ct_memo,ct_flag,ct_type,cust_id ) Values(15,'fw001','谭邵翔','TSX','1','0','','销售部经理','','北京北三环西路青云里满庭芳园B座3层','100080','010-62143126','010-62143127','13822256984','','tsx@jhsm.com','','','','1','',5)
Insert Into JB_Contact( ct_id,own_id,ct_name,ct_aid,ct_sex,ct_married,ct_birthday,ct_title,ct_dept,ct_addr,ct_postcode,ct_phone,ct_fax,ct_mobile,ct_pager,ct_email,ct_Hphone,ct_biz,ct_memo,ct_flag,ct_type,cust_id ) Values(16,'fw001','黄天湘','HTX','1','1','','客户部经理','','长沙市解放北路','','0731-8744534','','13923659847','','htx@huayou.com','','','','1','',13)
Insert Into JB_Contact( ct_id,own_id,ct_name,ct_aid,ct_sex,ct_married,ct_birthday,ct_title,ct_dept,ct_addr,ct_postcode,ct_phone,ct_fax,ct_mobile,ct_pager,ct_email,ct_Hphone,ct_biz,ct_memo,ct_flag,ct_type,cust_id ) Values(17,'fw001','方苏新','FSX','1','0','','','','重庆石桥铺渝州路33号12层','','023-66862227','023-68602824','13922456957','','fsuxin@ayd.com','','','','1','',25)
Insert Into JB_Contact( ct_id,own_id,ct_name,ct_aid,ct_sex,ct_married,ct_birthday,ct_title,ct_dept,ct_addr,ct_postcode,ct_phone,ct_fax,ct_mobile,ct_pager,ct_email,ct_Hphone,ct_biz,ct_memo,ct_flag,ct_type,cust_id ) Values(18,'fw001','吴强','WQ','1','0','06/25/1980','','','西安火炬路3号楼10层C区','','029-2241059','029-2241001-7','13502659842','','wuq@boke.com','','','','1','',24)
Insert Into JB_Contact( ct_id,own_id,ct_name,ct_aid,ct_sex,ct_married,ct_birthday,ct_title,ct_dept,ct_addr,ct_postcode,ct_phone,ct_fax,ct_mobile,ct_pager,ct_email,ct_Hphone,ct_biz,ct_memo,ct_flag,ct_type,cust_id ) Values(19,'fw001','萧天强','XTQ','1','0','','','','湖北武昌珞狮路170号洪发大厦8楼 ','','027-87383297','027-87383423','13525695633','','xtq@ayxd.com','','','','1','',26)
Insert Into JB_Contact( ct_id,own_id,ct_name,ct_aid,ct_sex,ct_married,ct_birthday,ct_title,ct_dept,ct_addr,ct_postcode,ct_phone,ct_fax,ct_mobile,ct_pager,ct_email,ct_Hphone,ct_biz,ct_memo,ct_flag,ct_type,cust_id ) Values(20,'fw001','徐梦达','XMD','1','0','','','','厦门火炬开发区科技村5座203室','','0592-5710060','0592-5710060','13602589432','','Xumd@huiguang.com','','','','1','',27)
Insert Into JB_Contact( ct_id,own_id,ct_name,ct_aid,ct_sex,ct_married,ct_birthday,ct_title,ct_dept,ct_addr,ct_postcode,ct_phone,ct_fax,ct_mobile,ct_pager,ct_email,ct_Hphone,ct_biz,ct_memo,ct_flag,ct_type,cust_id ) Values(21,'fw001','张夕阳','zxy','1','0','','经理','采购部','广州市','','','','','','','','物资采购','','1','',14)
Insert Into JB_Contact( ct_id,own_id,ct_name,ct_aid,ct_sex,ct_married,ct_birthday,ct_title,ct_dept,ct_addr,ct_postcode,ct_phone,ct_fax,ct_mobile,ct_pager,ct_email,ct_Hphone,ct_biz,ct_memo,ct_flag,ct_type,cust_id ) Values(22,'fw001','张三丰','','1','0','','','','','','','','','','','','','','0','',4)
Insert Into JB_Contact( ct_id,own_id,ct_name,ct_aid,ct_sex,ct_married,ct_birthday,ct_title,ct_dept,ct_addr,ct_postcode,ct_phone,ct_fax,ct_mobile,ct_pager,ct_email,ct_Hphone,ct_biz,ct_memo,ct_flag,ct_type,cust_id ) Values(23,'fw001','杨五六','','1','0','','','','','','','','','','','','','','0','',16)
GO

Insert Into JB_CustContact( own_id,cust_id,contact_id ) Values('fw001',1,7)
Insert Into JB_CustContact( own_id,cust_id,contact_id ) Values('fw001',14,5)
Insert Into JB_CustContact( own_id,cust_id,contact_id ) Values('fw001',14,6)
Insert Into JB_CustContact( own_id,cust_id,contact_id ) Values('fw001',14,8)
GO

Insert Into JB_CustEvent( cust_id,ce_subject,event_type,contact_id,emp_id,ce_begin,ce_end,ce_info,ce_desc ) Values(14,'客户咨询SFA软件功能',1,21,5,'04/14/2002','04/14/2002','','答复客户软件功能情况，并将送一些产品介绍给客户')
Insert Into JB_CustEvent( cust_id,ce_subject,event_type,contact_id,emp_id,ce_begin,ce_end,ce_info,ce_desc ) Values(3,'士大夫',1,Null,2,'04/16/2002','04/16/2002','','')
Insert Into JB_CustEvent( cust_id,ce_subject,event_type,contact_id,emp_id,ce_begin,ce_end,ce_info,ce_desc ) Values(28,'sdfsdf',2,Null,5,'06/10/2002 10:00:00','06/10/2002 19:00:00','','')
GO

Insert Into JB_CustInfo( CI_ID,own_id,CI_Code,CI_Name,CI_AID,CI_Type,CI_Abbr,Province_ID,City_ID,District_ID,Area_ID,GT_ID,Trade_ID,CK_ID,CS_ID,CI_Scale,CI_Fund,CI_Legal,CI_Addr,CI_PostCode,CI_Phone1,ci_phone2,CI_Fax,CI_Mobile,CI_Pager,CI_Email,CI_Web,CI_Bank,CI_Account,CI_Credit,CI_TotalSales,CI_Arrearage,CI_Turnover,Contact_ID,Emp_ID,CI_Forbid,CI_Desc,CI_Int01,CI_Int02,CI_Int03,CI_Dec01,CI_Dec02,CI_Dec03,CI_Char01,CI_Char02,CI_Char03,CI_Char04 ) Values(3,'Fw001','CUST00004','海浪金胜集团','HLJS','bp','山东青岛',10,55,Null,Null,14,4,3,7,'大型企业',0,'','青岛','','','','','','','','','','',10,Null,Null,Null,Null,4,'0','',Null,Null,Null,Null,Null,Null,'','','','')
Insert Into JB_CustInfo( CI_ID,own_id,CI_Code,CI_Name,CI_AID,CI_Type,CI_Abbr,Province_ID,City_ID,District_ID,Area_ID,GT_ID,Trade_ID,CK_ID,CS_ID,CI_Scale,CI_Fund,CI_Legal,CI_Addr,CI_PostCode,CI_Phone1,ci_phone2,CI_Fax,CI_Mobile,CI_Pager,CI_Email,CI_Web,CI_Bank,CI_Account,CI_Credit,CI_TotalSales,CI_Arrearage,CI_Turnover,Contact_ID,Emp_ID,CI_Forbid,CI_Desc,CI_Int01,CI_Int02,CI_Int03,CI_Dec01,CI_Dec02,CI_Dec03,CI_Char01,CI_Char02,CI_Char03,CI_Char04 ) Values(4,'Fw001','CUST00001','先锋科技有限公司','XFKJ','bp','',28,35,37,1,13,1,6,7,'中型企业',0,'','广州市东山区356号东山大厦','123445','020-85369423','020-85632145','345345','','','micbos@online.sh.cn','www.microbos.com','','sdfsdfsdf',12345,Null,Null,Null,0,1,'0','sfdsf',Null,Null,Null,Null,Null,Null,'','','','')
Insert Into JB_CustInfo( CI_ID,own_id,CI_Code,CI_Name,CI_AID,CI_Type,CI_Abbr,Province_ID,City_ID,District_ID,Area_ID,GT_ID,Trade_ID,CK_ID,CS_ID,CI_Scale,CI_Fund,CI_Legal,CI_Addr,CI_PostCode,CI_Phone1,ci_phone2,CI_Fax,CI_Mobile,CI_Pager,CI_Email,CI_Web,CI_Bank,CI_Account,CI_Credit,CI_TotalSales,CI_Arrearage,CI_Turnover,Contact_ID,Emp_ID,CI_Forbid,CI_Desc,CI_Int01,CI_Int02,CI_Int03,CI_Dec01,CI_Dec02,CI_Dec03,CI_Char01,CI_Char02,CI_Char03,CI_Char04 ) Values(5,'Fw001','CUST00002','金航数码科技','JHSM','bp','',1,47,0,2,13,2,0,16,'',0,'','北京北三环西路青云里满庭芳园B座3层','100080','010-62143126','','010-62143127','','','avicit@avicit.com','www.avicit.com','','',500000,Null,Null,Null,15,10,'0','',Null,Null,Null,Null,Null,Null,'','','','')
Insert Into JB_CustInfo( CI_ID,own_id,CI_Code,CI_Name,CI_AID,CI_Type,CI_Abbr,Province_ID,City_ID,District_ID,Area_ID,GT_ID,Trade_ID,CK_ID,CS_ID,CI_Scale,CI_Fund,CI_Legal,CI_Addr,CI_PostCode,CI_Phone1,ci_phone2,CI_Fax,CI_Mobile,CI_Pager,CI_Email,CI_Web,CI_Bank,CI_Account,CI_Credit,CI_TotalSales,CI_Arrearage,CI_Turnover,Contact_ID,Emp_ID,CI_Forbid,CI_Desc,CI_Int01,CI_Int02,CI_Int03,CI_Dec01,CI_Dec02,CI_Dec03,CI_Char01,CI_Char02,CI_Char03,CI_Char04 ) Values(6,'Fw001','CUST00003','鼎太达科技有限公司','DTD','bp','chen',2,48,0,2,13,2,Null,15,'小型企业',30000,'柳元志','上海市淮海中路755号（东楼）19A','','021-64669897','021-64152871','021-64669897','','','amawu@dsh.com.cn','','','',0,Null,Null,Null,0,10,'0','',Null,Null,Null,Null,Null,Null,'','','','')
Insert Into JB_CustInfo( CI_ID,own_id,CI_Code,CI_Name,CI_AID,CI_Type,CI_Abbr,Province_ID,City_ID,District_ID,Area_ID,GT_ID,Trade_ID,CK_ID,CS_ID,CI_Scale,CI_Fund,CI_Legal,CI_Addr,CI_PostCode,CI_Phone1,ci_phone2,CI_Fax,CI_Mobile,CI_Pager,CI_Email,CI_Web,CI_Bank,CI_Account,CI_Credit,CI_TotalSales,CI_Arrearage,CI_Turnover,Contact_ID,Emp_ID,CI_Forbid,CI_Desc,CI_Int01,CI_Int02,CI_Int03,CI_Dec01,CI_Dec02,CI_Dec03,CI_Char01,CI_Char02,CI_Char03,CI_Char04 ) Values(9,'fw001','CUST00005','华天饮食有限公司','HTYS','cust','',2,48,0,0,15,1,5,15,'中型企业',0,'','广州市番禺区','123456','343545345','34534545','34353545','4564564576','','sfsd@3c.dom','fsdfsdf','sdfdsfsd','fsfsdf',342354,Null,Null,Null,5,Null,'1','sdfsdf',Null,Null,Null,Null,Null,Null,'','','','')
Insert Into JB_CustInfo( CI_ID,own_id,CI_Code,CI_Name,CI_AID,CI_Type,CI_Abbr,Province_ID,City_ID,District_ID,Area_ID,GT_ID,Trade_ID,CK_ID,CS_ID,CI_Scale,CI_Fund,CI_Legal,CI_Addr,CI_PostCode,CI_Phone1,ci_phone2,CI_Fax,CI_Mobile,CI_Pager,CI_Email,CI_Web,CI_Bank,CI_Account,CI_Credit,CI_TotalSales,CI_Arrearage,CI_Turnover,Contact_ID,Emp_ID,CI_Forbid,CI_Desc,CI_Int01,CI_Int02,CI_Int03,CI_Dec01,CI_Dec02,CI_Dec03,CI_Char01,CI_Char02,CI_Char03,CI_Char04 ) Values(13,'fw001','CUST00008','华友装饰公司','HUAYOU','cust','华饰',27,54,0,0,16,2,0,0,'小型企业',0,'','长沙市解放北路','','0731-8744534','','','138-34789234','','hu@oop.com','','','',0,Null,Null,Null,16,10,'0','',Null,Null,Null,Null,Null,Null,'','','','')
Insert Into JB_CustInfo( CI_ID,own_id,CI_Code,CI_Name,CI_AID,CI_Type,CI_Abbr,Province_ID,City_ID,District_ID,Area_ID,GT_ID,Trade_ID,CK_ID,CS_ID,CI_Scale,CI_Fund,CI_Legal,CI_Addr,CI_PostCode,CI_Phone1,ci_phone2,CI_Fax,CI_Mobile,CI_Pager,CI_Email,CI_Web,CI_Bank,CI_Account,CI_Credit,CI_TotalSales,CI_Arrearage,CI_Turnover,Contact_ID,Emp_ID,CI_Forbid,CI_Desc,CI_Int01,CI_Int02,CI_Int03,CI_Dec01,CI_Dec02,CI_Dec03,CI_Char01,CI_Char02,CI_Char03,CI_Char04 ) Values(14,'fw001','CUST00006','华侨公司','p01','cust','p0923',28,35,0,0,17,1,8,7,'小型企业',1000,'100','广州市','','020-84564566','','','','','','','','',0,Null,Null,Null,0,5,'0','',Null,Null,Null,Null,Null,Null,'','','','')
Insert Into JB_CustInfo( CI_ID,own_id,CI_Code,CI_Name,CI_AID,CI_Type,CI_Abbr,Province_ID,City_ID,District_ID,Area_ID,GT_ID,Trade_ID,CK_ID,CS_ID,CI_Scale,CI_Fund,CI_Legal,CI_Addr,CI_PostCode,CI_Phone1,ci_phone2,CI_Fax,CI_Mobile,CI_Pager,CI_Email,CI_Web,CI_Bank,CI_Account,CI_Credit,CI_TotalSales,CI_Arrearage,CI_Turnover,Contact_ID,Emp_ID,CI_Forbid,CI_Desc,CI_Int01,CI_Int02,CI_Int03,CI_Dec01,CI_Dec02,CI_Dec03,CI_Char01,CI_Char02,CI_Char03,CI_Char04 ) Values(16,'fw001','CUST00007','晨光灯具','002','cust','晨光',28,35,0,0,15,2,6,7,'中型企业',33234234,'李江山','广州市天河区','510012','020-89007345','020-89007345','020-89007345','020-89007345','020-89007345','chen@ds.com','www.cheng.com','30000','2001999999',33333444434,Null,Null,Null,0,2,'0','very&nbsp;good!this&nbsp;corporation',Null,Null,Null,Null,Null,Null,'','','','')
Insert Into JB_CustInfo( CI_ID,own_id,CI_Code,CI_Name,CI_AID,CI_Type,CI_Abbr,Province_ID,City_ID,District_ID,Area_ID,GT_ID,Trade_ID,CK_ID,CS_ID,CI_Scale,CI_Fund,CI_Legal,CI_Addr,CI_PostCode,CI_Phone1,ci_phone2,CI_Fax,CI_Mobile,CI_Pager,CI_Email,CI_Web,CI_Bank,CI_Account,CI_Credit,CI_TotalSales,CI_Arrearage,CI_Turnover,Contact_ID,Emp_ID,CI_Forbid,CI_Desc,CI_Int01,CI_Int02,CI_Int03,CI_Dec01,CI_Dec02,CI_Dec03,CI_Char01,CI_Char02,CI_Char03,CI_Char04 ) Values(17,'fw001','CUST00009','广州盖特科技有限公司','GZGT','','',28,35,37,0,15,5,8,15,'中型企业',Null,'','广州市体育东路1号金泽大厦2714','510600','020-87567159','020-87534872','020-87567159','','','sales@gsoft.com.cn','www.getsoft.com.cn','','',0,Null,Null,Null,8,1,'0','',Null,Null,Null,Null,Null,Null,'','','','')
Insert Into JB_CustInfo( CI_ID,own_id,CI_Code,CI_Name,CI_AID,CI_Type,CI_Abbr,Province_ID,City_ID,District_ID,Area_ID,GT_ID,Trade_ID,CK_ID,CS_ID,CI_Scale,CI_Fund,CI_Legal,CI_Addr,CI_PostCode,CI_Phone1,ci_phone2,CI_Fax,CI_Mobile,CI_Pager,CI_Email,CI_Web,CI_Bank,CI_Account,CI_Credit,CI_TotalSales,CI_Arrearage,CI_Turnover,Contact_ID,Emp_ID,CI_Forbid,CI_Desc,CI_Int01,CI_Int02,CI_Int03,CI_Dec01,CI_Dec02,CI_Dec03,CI_Char01,CI_Char02,CI_Char03,CI_Char04 ) Values(18,'fw001','CUST00010','华夏新达（广州）','HXXD','','',28,35,37,0,15,1,6,16,'',Null,'','广州天河北路233号中信广场1606室','516200','020-38771606','020-38771607','020-38771606','','','gzsales@hxxd.com','','','',0,Null,Null,Null,9,1,'0','',Null,Null,Null,Null,Null,Null,'','','','')
Insert Into JB_CustInfo( CI_ID,own_id,CI_Code,CI_Name,CI_AID,CI_Type,CI_Abbr,Province_ID,City_ID,District_ID,Area_ID,GT_ID,Trade_ID,CK_ID,CS_ID,CI_Scale,CI_Fund,CI_Legal,CI_Addr,CI_PostCode,CI_Phone1,ci_phone2,CI_Fax,CI_Mobile,CI_Pager,CI_Email,CI_Web,CI_Bank,CI_Account,CI_Credit,CI_TotalSales,CI_Arrearage,CI_Turnover,Contact_ID,Emp_ID,CI_Forbid,CI_Desc,CI_Int01,CI_Int02,CI_Int03,CI_Dec01,CI_Dec02,CI_Dec03,CI_Char01,CI_Char02,CI_Char03,CI_Char04 ) Values(19,'fw001','CUST00011','和利时科技公司','HTS','','',1,47,0,0,14,0,3,18,'中型企业',Null,'','北京海淀区西三旗建材城中路10号','','010-82922205','','010-82923987','','','erp@hollysys.com.cn','www.hollysys.com.cn','','',0,Null,Null,Null,10,1,'0','',Null,Null,Null,Null,Null,Null,'','','','')
Insert Into JB_CustInfo( CI_ID,own_id,CI_Code,CI_Name,CI_AID,CI_Type,CI_Abbr,Province_ID,City_ID,District_ID,Area_ID,GT_ID,Trade_ID,CK_ID,CS_ID,CI_Scale,CI_Fund,CI_Legal,CI_Addr,CI_PostCode,CI_Phone1,ci_phone2,CI_Fax,CI_Mobile,CI_Pager,CI_Email,CI_Web,CI_Bank,CI_Account,CI_Credit,CI_TotalSales,CI_Arrearage,CI_Turnover,Contact_ID,Emp_ID,CI_Forbid,CI_Desc,CI_Int01,CI_Int02,CI_Int03,CI_Dec01,CI_Dec02,CI_Dec03,CI_Char01,CI_Char02,CI_Char03,CI_Char04 ) Values(20,'fw001','CUST00012','汉康（上海）药业有限公司','HKYY','','',2,48,0,0,14,0,8,0,'',Null,'','上海市南丹东路238号金轩大厦17C','','021-64270620','021-64646574','021-64270620','','','net_up@cmmail.com','','','',0,Null,Null,Null,11,1,'0','',Null,Null,Null,Null,Null,Null,'','','','')
Insert Into JB_CustInfo( CI_ID,own_id,CI_Code,CI_Name,CI_AID,CI_Type,CI_Abbr,Province_ID,City_ID,District_ID,Area_ID,GT_ID,Trade_ID,CK_ID,CS_ID,CI_Scale,CI_Fund,CI_Legal,CI_Addr,CI_PostCode,CI_Phone1,ci_phone2,CI_Fax,CI_Mobile,CI_Pager,CI_Email,CI_Web,CI_Bank,CI_Account,CI_Credit,CI_TotalSales,CI_Arrearage,CI_Turnover,Contact_ID,Emp_ID,CI_Forbid,CI_Desc,CI_Int01,CI_Int02,CI_Int03,CI_Dec01,CI_Dec02,CI_Dec03,CI_Char01,CI_Char02,CI_Char03,CI_Char04 ) Values(21,'fw001','CUST00013','博通广告有限公司','BTGG','','',23,0,0,0,15,0,0,15,'',Null,'','南京建业路199号东沛大厦10层','','025-2336896','','','','','butone@pubne.com','www.fast.com.tw','','',0,Null,Null,Null,12,1,'0','',Null,Null,Null,Null,Null,Null,'','','','')
Insert Into JB_CustInfo( CI_ID,own_id,CI_Code,CI_Name,CI_AID,CI_Type,CI_Abbr,Province_ID,City_ID,District_ID,Area_ID,GT_ID,Trade_ID,CK_ID,CS_ID,CI_Scale,CI_Fund,CI_Legal,CI_Addr,CI_PostCode,CI_Phone1,ci_phone2,CI_Fax,CI_Mobile,CI_Pager,CI_Email,CI_Web,CI_Bank,CI_Account,CI_Credit,CI_TotalSales,CI_Arrearage,CI_Turnover,Contact_ID,Emp_ID,CI_Forbid,CI_Desc,CI_Int01,CI_Int02,CI_Int03,CI_Dec01,CI_Dec02,CI_Dec03,CI_Char01,CI_Char02,CI_Char03,CI_Char04 ) Values(22,'fw001','CUST00014','吉大工易有限公司','JDGY','','',6,0,0,0,14,0,0,0,'',Null,'','长春市同志路87号','','0431-5671405','','','','','webmaster@goeasy.net','www.goeasy.com.cn','','',0,Null,Null,Null,13,1,'0','',Null,Null,Null,Null,Null,Null,'','','','')
Insert Into JB_CustInfo( CI_ID,own_id,CI_Code,CI_Name,CI_AID,CI_Type,CI_Abbr,Province_ID,City_ID,District_ID,Area_ID,GT_ID,Trade_ID,CK_ID,CS_ID,CI_Scale,CI_Fund,CI_Legal,CI_Addr,CI_PostCode,CI_Phone1,ci_phone2,CI_Fax,CI_Mobile,CI_Pager,CI_Email,CI_Web,CI_Bank,CI_Account,CI_Credit,CI_TotalSales,CI_Arrearage,CI_Turnover,Contact_ID,Emp_ID,CI_Forbid,CI_Desc,CI_Int01,CI_Int02,CI_Int03,CI_Dec01,CI_Dec02,CI_Dec03,CI_Char01,CI_Char02,CI_Char03,CI_Char04 ) Values(23,'fw001','CUST00015','亿企星科技公司','YQX','','',3,0,0,0,16,0,0,0,'',Null,'','天津市南开区科研东路11号A座12楼','','022-23673423','','','','','market@qi-xing.com','','','',0,Null,Null,Null,14,1,'0','',Null,Null,Null,Null,Null,Null,'','','','')
Insert Into JB_CustInfo( CI_ID,own_id,CI_Code,CI_Name,CI_AID,CI_Type,CI_Abbr,Province_ID,City_ID,District_ID,Area_ID,GT_ID,Trade_ID,CK_ID,CS_ID,CI_Scale,CI_Fund,CI_Legal,CI_Addr,CI_PostCode,CI_Phone1,ci_phone2,CI_Fax,CI_Mobile,CI_Pager,CI_Email,CI_Web,CI_Bank,CI_Account,CI_Credit,CI_TotalSales,CI_Arrearage,CI_Turnover,Contact_ID,Emp_ID,CI_Forbid,CI_Desc,CI_Int01,CI_Int02,CI_Int03,CI_Dec01,CI_Dec02,CI_Dec03,CI_Char01,CI_Char02,CI_Char03,CI_Char04 ) Values(24,'fw001','CUST00016','博科工茂','BKGM','','',18,0,0,0,15,0,0,15,'',Null,'','西安火炬路3号楼10层C区','','029-2241059','029-2241009','029-2241001-7','','','syst@anyi.com.cn','www.bokesoft.com','','',0,Null,Null,Null,18,1,'0','',Null,Null,Null,Null,Null,Null,'','','','')
Insert Into JB_CustInfo( CI_ID,own_id,CI_Code,CI_Name,CI_AID,CI_Type,CI_Abbr,Province_ID,City_ID,District_ID,Area_ID,GT_ID,Trade_ID,CK_ID,CS_ID,CI_Scale,CI_Fund,CI_Legal,CI_Addr,CI_PostCode,CI_Phone1,ci_phone2,CI_Fax,CI_Mobile,CI_Pager,CI_Email,CI_Web,CI_Bank,CI_Account,CI_Credit,CI_TotalSales,CI_Arrearage,CI_Turnover,Contact_ID,Emp_ID,CI_Forbid,CI_Desc,CI_Int01,CI_Int02,CI_Int03,CI_Dec01,CI_Dec02,CI_Dec03,CI_Char01,CI_Char02,CI_Char03,CI_Char04 ) Values(25,'fw001','CUST00017','安易达贸易（重庆）','AYD','','',4,0,0,0,16,0,0,16,'',Null,'','重庆石桥铺渝州路33号12层','','023-66862227','','023-68602824','','','anyi@cta.cq.cn','','','',0,Null,Null,Null,17,1,'0','',Null,Null,Null,Null,Null,Null,'','','','')
Insert Into JB_CustInfo( CI_ID,own_id,CI_Code,CI_Name,CI_AID,CI_Type,CI_Abbr,Province_ID,City_ID,District_ID,Area_ID,GT_ID,Trade_ID,CK_ID,CS_ID,CI_Scale,CI_Fund,CI_Legal,CI_Addr,CI_PostCode,CI_Phone1,ci_phone2,CI_Fax,CI_Mobile,CI_Pager,CI_Email,CI_Web,CI_Bank,CI_Account,CI_Credit,CI_TotalSales,CI_Arrearage,CI_Turnover,Contact_ID,Emp_ID,CI_Forbid,CI_Desc,CI_Int01,CI_Int02,CI_Int03,CI_Dec01,CI_Dec02,CI_Dec03,CI_Char01,CI_Char02,CI_Char03,CI_Char04 ) Values(26,'fw001','CUST00018','艾亦讯集团','AYX','','',26,0,0,0,15,5,0,18,'',Null,'','湖北武昌珞狮路170号洪发大厦8楼 ','','027-87383297','','027-87383423','','','yhhe@phil.com.cn','','','',0,Null,Null,Null,19,1,'0','',Null,Null,Null,Null,Null,Null,'','','','')
Insert Into JB_CustInfo( CI_ID,own_id,CI_Code,CI_Name,CI_AID,CI_Type,CI_Abbr,Province_ID,City_ID,District_ID,Area_ID,GT_ID,Trade_ID,CK_ID,CS_ID,CI_Scale,CI_Fund,CI_Legal,CI_Addr,CI_PostCode,CI_Phone1,ci_phone2,CI_Fax,CI_Mobile,CI_Pager,CI_Email,CI_Web,CI_Bank,CI_Account,CI_Credit,CI_TotalSales,CI_Arrearage,CI_Turnover,Contact_ID,Emp_ID,CI_Forbid,CI_Desc,CI_Int01,CI_Int02,CI_Int03,CI_Dec01,CI_Dec02,CI_Dec03,CI_Char01,CI_Char02,CI_Char03,CI_Char04 ) Values(27,'fw001','CUST00019','厦门惠光照明有限公司','HGZM','','',30,0,0,0,15,0,0,17,'',Null,'','厦门火炬开发区科技村5座203室','','0592-5710060','','0592-5710060','','','fairkong@fakong.com','','','',0,Null,Null,Null,20,1,'0','',Null,Null,Null,Null,Null,Null,'','','','')
Insert Into JB_CustInfo( CI_ID,own_id,CI_Code,CI_Name,CI_AID,CI_Type,CI_Abbr,Province_ID,City_ID,District_ID,Area_ID,GT_ID,Trade_ID,CK_ID,CS_ID,CI_Scale,CI_Fund,CI_Legal,CI_Addr,CI_PostCode,CI_Phone1,ci_phone2,CI_Fax,CI_Mobile,CI_Pager,CI_Email,CI_Web,CI_Bank,CI_Account,CI_Credit,CI_TotalSales,CI_Arrearage,CI_Turnover,Contact_ID,Emp_ID,CI_Forbid,CI_Desc,CI_Int01,CI_Int02,CI_Int03,CI_Dec01,CI_Dec02,CI_Dec03,CI_Char01,CI_Char02,CI_Char03,CI_Char04 ) Values(28,'fw001','CUST00020','机械工业出版社','','','',1,47,Null,Null,15,1,Null,7,'',Null,'','北京市西城区百万庄大街22号','','','','','','','','','','',0,Null,Null,Null,0,1,'0','',Null,Null,Null,Null,Null,Null,'','','','')
GO

Insert Into JB_RivalInfo( ri_id,own_id,RI_Name,CK_ID,Area_ID,RI_Fund,RI_StaffNum,RI_Turnover,RI_Addr,RI_PostCode,RI_Phone,RI_Fax,RI_Email,RI_Desc ) Values(1,'Fw001','上海华东电脑有限公司',6,5,333,33,3333,'fsdafasdf','3333333','333333','33333333344','se@sdf.cod','fasfasdf""""""""""sdfsdsdfsd.sdf
ssfdfsdf')
Insert Into JB_RivalInfo( ri_id,own_id,RI_Name,CK_ID,Area_ID,RI_Fund,RI_StaffNum,RI_Turnover,RI_Addr,RI_PostCode,RI_Phone,RI_Fax,RI_Email,RI_Desc ) Values(2,'fw001','Oracle',3,Null,10000000,50,50000000,'Bei Jing','100018','010-654321','010-654321','','')
Insert Into JB_RivalInfo( ri_id,own_id,RI_Name,CK_ID,Area_ID,RI_Fund,RI_StaffNum,RI_Turnover,RI_Addr,RI_PostCode,RI_Phone,RI_Fax,RI_Email,RI_Desc ) Values(3,'fw001','北京同天软件公司',Null,Null,333,33,3333,'fsdafasdf','3333333','333333','3333','se@sdf.cod','fasfasdf""')
GO

Insert Into JB_RivalProd( own_id,RI_ID,RP_ID,RP_Name,RP_Type,RP_Unit,RP_Price,RP_Strength,RP_Weakness,RP_Tactic,RP_Memo ) Values('fw001',1,1,'CRM','fasdfdff','asdfasf',Null,'dfasdf','fasdfasdf','','dfasdfasdf')
Insert Into JB_RivalProd( own_id,RI_ID,RP_ID,RP_Name,RP_Type,RP_Unit,RP_Price,RP_Strength,RP_Weakness,RP_Tactic,RP_Memo ) Values('fw001',1,2,'SFA Software','dfdasf','套',12000,'asdf','dfas','','fasdfasdfds')
Insert Into JB_RivalProd( own_id,RI_ID,RP_ID,RP_Name,RP_Type,RP_Unit,RP_Price,RP_Strength,RP_Weakness,RP_Tactic,RP_Memo ) Values('fw001',2,6,'手提电脑','电脑类','台',3000,'very good','color','','I come back!')
Insert Into JB_RivalProd( own_id,RI_ID,RP_ID,RP_Name,RP_Type,RP_Unit,RP_Price,RP_Strength,RP_Weakness,RP_Tactic,RP_Memo ) Values('fw001',2,7,'手提电脑','电脑类','台',3000,'very good','color','','I come back!')
Insert Into JB_RivalProd( own_id,RI_ID,RP_ID,RP_Name,RP_Type,RP_Unit,RP_Price,RP_Strength,RP_Weakness,RP_Tactic,RP_Memo ) Values('fw001',2,9,'员工绩效评估软件','dfasfdasdf','asdfasdf',333,'dfasdfasdfa','sdfasdfasdf','','<%%><h1>chen</h1>')
Insert Into JB_RivalProd( own_id,RI_ID,RP_ID,RP_Name,RP_Type,RP_Unit,RP_Price,RP_Strength,RP_Weakness,RP_Tactic,RP_Memo ) Values('FW001',2,10,'工资管理系统','管理软件','套',20000,'','','','')
Insert Into JB_RivalProd( own_id,RI_ID,RP_ID,RP_Name,RP_Type,RP_Unit,RP_Price,RP_Strength,RP_Weakness,RP_Tactic,RP_Memo ) Values('fw001',3,11,'CRM软件','','套',18000,'','','','')
Insert Into JB_RivalProd( own_id,RI_ID,RP_ID,RP_Name,RP_Type,RP_Unit,RP_Price,RP_Strength,RP_Weakness,RP_Tactic,RP_Memo ) Values('fw001',3,12,'电子商务软件','','套',150000,'','','','')
Insert Into JB_RivalProd( own_id,RI_ID,RP_ID,RP_Name,RP_Type,RP_Unit,RP_Price,RP_Strength,RP_Weakness,RP_Tactic,RP_Memo ) Values('fw001',3,13,'CRM软件','','套',200000,'','','','')
Insert Into JB_RivalProd( own_id,RI_ID,RP_ID,RP_Name,RP_Type,RP_Unit,RP_Price,RP_Strength,RP_Weakness,RP_Tactic,RP_Memo ) Values('fw001',3,14,'dasdf','','',Null,'fasdfasdfasdf','','','')
Insert Into JB_RivalProd( own_id,RI_ID,RP_ID,RP_Name,RP_Type,RP_Unit,RP_Price,RP_Strength,RP_Weakness,RP_Tactic,RP_Memo ) Values('fw001',3,15,'Software','','',Null,'asdfasdf','asdfasfas','fasdfasdfasdf','asdfasdfasdfasdfasdfasdf')
Insert Into JB_RivalProd( own_id,RI_ID,RP_ID,RP_Name,RP_Type,RP_Unit,RP_Price,RP_Strength,RP_Weakness,RP_Tactic,RP_Memo ) Values('fw001',1,16,'SFA软件','软件','套',1200,'','','','备注说')
GO

Insert Into JC_ActionDef( rid,own_id,dept_id,ad_Name,ad_type ) Values(1,'Fw001','fw001','新建','market')
Insert Into JC_ActionDef( rid,own_id,dept_id,ad_Name,ad_type ) Values(3,'Fw001','fw001','电话','sales')
Insert Into JC_ActionDef( rid,own_id,dept_id,ad_Name,ad_type ) Values(4,'Fw001','fw001','邮件','sales')
Insert Into JC_ActionDef( rid,own_id,dept_id,ad_Name,ad_type ) Values(5,'Fw001','fw001','节日问候','care')
Insert Into JC_ActionDef( rid,own_id,dept_id,ad_Name,ad_type ) Values(6,'Fw001','fw001','发送礼函','care')
Insert Into JC_ActionDef( rid,own_id,dept_id,ad_Name,ad_type ) Values(7,'Fw001','fw001','组织培训','service')
Insert Into JC_ActionDef( rid,own_id,dept_id,ad_Name,ad_type ) Values(8,'Fw001','fw001','上门维修','service')
Insert Into JC_ActionDef( rid,own_id,dept_id,ad_Name,ad_type ) Values(58,'fw001','fw001','筹备','market')
Insert Into JC_ActionDef( rid,own_id,dept_id,ad_Name,ad_type ) Values(59,'fw001','fw001','执行中','market')
Insert Into JC_ActionDef( rid,own_id,dept_id,ad_Name,ad_type ) Values(60,'fw001','fw001','已放弃','market')
Insert Into JC_ActionDef( rid,own_id,dept_id,ad_Name,ad_type ) Values(61,'fw001','fw001','第二阶段','market')
Insert Into JC_ActionDef( rid,own_id,dept_id,ad_Name,ad_type ) Values(109,'fw001','','约会','sales')
Insert Into JC_ActionDef( rid,own_id,dept_id,ad_Name,ad_type ) Values(110,'fw001','','拜访','sales')
Insert Into JC_ActionDef( rid,own_id,dept_id,ad_Name,ad_type ) Values(111,'fw001','','会议','sales')
GO

Insert Into JC_ActResult( ar_id,own_id,ar_name ) Values(1,'fw001','销售机会促进')
Insert Into JC_ActResult( ar_id,own_id,ar_name ) Values(2,'fw001','促进客户关系')
Insert Into JC_ActResult( ar_id,own_id,ar_name ) Values(3,'fw001','客户需求明确')
Insert Into JC_ActResult( ar_id,own_id,ar_name ) Values(4,'fw001','解决客户困惑')
GO

Insert Into JC_ActType( at_id,own_id,at_name ) Values(1,'fw001','初次接触')
Insert Into JC_ActType( at_id,own_id,at_name ) Values(2,'fw001','关系维护')
Insert Into JC_ActType( at_id,own_id,at_name ) Values(3,'fw001','目标认证')
Insert Into JC_ActType( at_id,own_id,at_name ) Values(4,'fw001','需求评估')
Insert Into JC_ActType( at_id,own_id,at_name ) Values(5,'fw001','价值评估')
Insert Into JC_ActType( at_id,own_id,at_name ) Values(6,'fw001','商务谈判')
Insert Into JC_ActType( at_id,own_id,at_name ) Values(7,'fw001','订单确认')
GO

Insert Into JC_Area( area_id,own_id,area_code,area_name,area_rootid,area_baseid,levels,path,parentID ) Values(1,'fw001','BJ','北京',0,0,0,'-0-001',0)
Insert Into JC_Area( area_id,own_id,area_code,area_name,area_rootid,area_baseid,levels,path,parentID ) Values(2,'fw001','SH','上海',0,0,0,'-0-002',0)
Insert Into JC_Area( area_id,own_id,area_code,area_name,area_rootid,area_baseid,levels,path,parentID ) Values(3,'fw001','TJ','天津',0,0,0,'-0-003',0)
Insert Into JC_Area( area_id,own_id,area_code,area_name,area_rootid,area_baseid,levels,path,parentID ) Values(4,'fw001','CQ','重庆',0,0,0,'-0-004',0)
Insert Into JC_Area( area_id,own_id,area_code,area_name,area_rootid,area_baseid,levels,path,parentID ) Values(5,'fw001','HLJ','黑龙江',0,0,0,'-0-005',0)
Insert Into JC_Area( area_id,own_id,area_code,area_name,area_rootid,area_baseid,levels,path,parentID ) Values(6,'fw001','JL','吉林',0,0,0,'-0-006',0)
Insert Into JC_Area( area_id,own_id,area_code,area_name,area_rootid,area_baseid,levels,path,parentID ) Values(7,'fw001','LN','辽宁',0,0,0,'-0-007',0)
Insert Into JC_Area( area_id,own_id,area_code,area_name,area_rootid,area_baseid,levels,path,parentID ) Values(8,'fw001','HBHB','河北',0,0,0,'-0-008',0)
Insert Into JC_Area( area_id,own_id,area_code,area_name,area_rootid,area_baseid,levels,path,parentID ) Values(9,'fw001','HN','河南',0,0,0,'-0-009',0)
Insert Into JC_Area( area_id,own_id,area_code,area_name,area_rootid,area_baseid,levels,path,parentID ) Values(10,'fw001','HBSD','山东',0,0,0,'-0-010',0)
Insert Into JC_Area( area_id,own_id,area_code,area_name,area_rootid,area_baseid,levels,path,parentID ) Values(11,'fw001','SX','山西',0,0,0,'-0-011',0)
Insert Into JC_Area( area_id,own_id,area_code,area_name,area_rootid,area_baseid,levels,path,parentID ) Values(12,'fw001','GH','甘肃',0,0,0,'-0-012',0)
Insert Into JC_Area( area_id,own_id,area_code,area_name,area_rootid,area_baseid,levels,path,parentID ) Values(13,'fw001','NX','宁夏',0,0,0,'-0-013',0)
Insert Into JC_Area( area_id,own_id,area_code,area_name,area_rootid,area_baseid,levels,path,parentID ) Values(14,'fw001','QH','青海',0,0,0,'-0-014',0)
Insert Into JC_Area( area_id,own_id,area_code,area_name,area_rootid,area_baseid,levels,path,parentID ) Values(15,'fw001','XJ','新疆',0,0,0,'-0-015',0)
Insert Into JC_Area( area_id,own_id,area_code,area_name,area_rootid,area_baseid,levels,path,parentID ) Values(16,'fw001','XZ','西藏',0,0,0,'-0-016',0)
Insert Into JC_Area( area_id,own_id,area_code,area_name,area_rootid,area_baseid,levels,path,parentID ) Values(17,'fw001','AH','安徽',0,0,0,'-0-017',0)
Insert Into JC_Area( area_id,own_id,area_code,area_name,area_rootid,area_baseid,levels,path,parentID ) Values(18,'fw001','HBSX','陕西',0,0,0,'-0-018',0)
Insert Into JC_Area( area_id,own_id,area_code,area_name,area_rootid,area_baseid,levels,path,parentID ) Values(19,'fw001','SQ','四川',0,0,0,'-0-019',0)
Insert Into JC_Area( area_id,own_id,area_code,area_name,area_rootid,area_baseid,levels,path,parentID ) Values(20,'fw001','YN','云南',0,0,0,'-0-020',0)
Insert Into JC_Area( area_id,own_id,area_code,area_name,area_rootid,area_baseid,levels,path,parentID ) Values(21,'fw001','NMG','内蒙古',0,0,0,'-0-021',0)
Insert Into JC_Area( area_id,own_id,area_code,area_name,area_rootid,area_baseid,levels,path,parentID ) Values(22,'fw001','GUZ','贵州',0,0,0,'-0-022',0)
Insert Into JC_Area( area_id,own_id,area_code,area_name,area_rootid,area_baseid,levels,path,parentID ) Values(23,'fw001','JS','江苏',0,0,0,'-0-023',0)
Insert Into JC_Area( area_id,own_id,area_code,area_name,area_rootid,area_baseid,levels,path,parentID ) Values(24,'fw001','ZJ','浙江',0,0,0,'-0-024',0)
Insert Into JC_Area( area_id,own_id,area_code,area_name,area_rootid,area_baseid,levels,path,parentID ) Values(25,'fw001','JXI','江西',0,0,0,'-0-025',0)
Insert Into JC_Area( area_id,own_id,area_code,area_name,area_rootid,area_baseid,levels,path,parentID ) Values(26,'fw001','HUB','湖北',0,0,0,'-0-026',0)
Insert Into JC_Area( area_id,own_id,area_code,area_name,area_rootid,area_baseid,levels,path,parentID ) Values(27,'fw001','HUN','湖南',0,0,0,'-0-027',0)
Insert Into JC_Area( area_id,own_id,area_code,area_name,area_rootid,area_baseid,levels,path,parentID ) Values(28,'fw001','GD','广东',0,0,0,'-0-028',0)
Insert Into JC_Area( area_id,own_id,area_code,area_name,area_rootid,area_baseid,levels,path,parentID ) Values(29,'fw001','GX','广西',0,0,0,'-0-029',0)
Insert Into JC_Area( area_id,own_id,area_code,area_name,area_rootid,area_baseid,levels,path,parentID ) Values(30,'fw001','FJ','福建',0,0,0,'-0-030',0)
Insert Into JC_Area( area_id,own_id,area_code,area_name,area_rootid,area_baseid,levels,path,parentID ) Values(31,'fw001','HAN','海南',0,0,0,'-0-031',0)
Insert Into JC_Area( area_id,own_id,area_code,area_name,area_rootid,area_baseid,levels,path,parentID ) Values(32,'fw001','XG','香港',0,0,0,'-0-032',0)
Insert Into JC_Area( area_id,own_id,area_code,area_name,area_rootid,area_baseid,levels,path,parentID ) Values(33,'fw001','AM','澳门',0,0,0,'-0-033',0)
Insert Into JC_Area( area_id,own_id,area_code,area_name,area_rootid,area_baseid,levels,path,parentID ) Values(34,'fw001','TW','台湾',0,0,0,'-0-034',0)
Insert Into JC_Area( area_id,own_id,area_code,area_name,area_rootid,area_baseid,levels,path,parentID ) Values(35,'fw001','GDGZ','广州市',0,0,1,'-0-028-035',28)
Insert Into JC_Area( area_id,own_id,area_code,area_name,area_rootid,area_baseid,levels,path,parentID ) Values(36,'fw001','GDSZ','深圳市',0,0,1,'-0-028-036',28)
Insert Into JC_Area( area_id,own_id,area_code,area_name,area_rootid,area_baseid,levels,path,parentID ) Values(37,'fw001','GZTH','天河区',0,0,2,'-0-028-035-037',35)
Insert Into JC_Area( area_id,own_id,area_code,area_name,area_rootid,area_baseid,levels,path,parentID ) Values(38,'fw001','GZHZ','海珠区',0,0,2,'-0-028-035-038',35)
Insert Into JC_Area( area_id,own_id,area_code,area_name,area_rootid,area_baseid,levels,path,parentID ) Values(39,'fw001','GZDS','东山区',0,0,2,'-0-028-035-039',35)
Insert Into JC_Area( area_id,own_id,area_code,area_name,area_rootid,area_baseid,levels,path,parentID ) Values(40,'fw001','GZYS','越秀区',0,0,2,'-0-028-035-040',35)
Insert Into JC_Area( area_id,own_id,area_code,area_name,area_rootid,area_baseid,levels,path,parentID ) Values(41,'fw001','GZBY','白云区',0,0,2,'-0-028-035-041',35)
Insert Into JC_Area( area_id,own_id,area_code,area_name,area_rootid,area_baseid,levels,path,parentID ) Values(42,'fw001','GZLW','荔湾区',0,0,2,'-0-028-035-042',35)
Insert Into JC_Area( area_id,own_id,area_code,area_name,area_rootid,area_baseid,levels,path,parentID ) Values(43,'fw001','GZHP','黄埔区',0,0,2,'-0-028-035-043',35)
Insert Into JC_Area( area_id,own_id,area_code,area_name,area_rootid,area_baseid,levels,path,parentID ) Values(44,'fw001','GZPY','番禺区',0,0,2,'-0-028-035-044',35)
Insert Into JC_Area( area_id,own_id,area_code,area_name,area_rootid,area_baseid,levels,path,parentID ) Values(45,'fw001','GZFC','芳村区',0,0,2,'-0-028-035-045',35)
Insert Into JC_Area( area_id,own_id,area_code,area_name,area_rootid,area_baseid,levels,path,parentID ) Values(46,'fw001','GZHD','花都区',0,0,2,'-0-028-035-046',35)
Insert Into JC_Area( area_id,own_id,area_code,area_name,area_rootid,area_baseid,levels,path,parentID ) Values(47,'fw001','BJS','北京市',0,0,1,'-0-001-047',1)
Insert Into JC_Area( area_id,own_id,area_code,area_name,area_rootid,area_baseid,levels,path,parentID ) Values(48,'fw001','SHS','上海市',0,0,1,'-0-002-048',2)
Insert Into JC_Area( area_id,own_id,area_code,area_name,area_rootid,area_baseid,levels,path,parentID ) Values(49,'fw001','BJCY','朝阳区',0,0,2,'-0-001-047-049',47)
Insert Into JC_Area( area_id,own_id,area_code,area_name,area_rootid,area_baseid,levels,path,parentID ) Values(50,'fw001','BJHD','海淀区',0,0,2,'-0-001-047-050',47)
Insert Into JC_Area( area_id,own_id,area_code,area_name,area_rootid,area_baseid,levels,path,parentID ) Values(52,'fw001','SZFT','福田区',0,0,2,'-0-028-036-052',36)
Insert Into JC_Area( area_id,own_id,area_code,area_name,area_rootid,area_baseid,levels,path,parentID ) Values(53,'fw001','SZLH','罗湖区',0,0,2,'-0-028-036-053',36)
Insert Into JC_Area( area_id,own_id,area_code,area_name,area_rootid,area_baseid,levels,path,parentID ) Values(54,'fw001','HNCS','长沙市',0,0,1,'-0-027-054',27)
Insert Into JC_Area( area_id,own_id,area_code,area_name,area_rootid,area_baseid,levels,path,parentID ) Values(55,'fw001','SDJN','济南市',0,0,1,'-0-010-055',10)
Insert Into JC_Area( area_id,own_id,area_code,area_name,area_rootid,area_baseid,levels,path,parentID ) Values(56,'fw001','STQ','丰台区',0,0,2,'-0-001-047-056',47)
Insert Into JC_Area( area_id,own_id,area_code,area_name,area_rootid,area_baseid,levels,path,parentID ) Values(57,'fw001','SZNS','南山区',0,0,2,'-0-028-036-057',36)
Insert Into JC_Area( area_id,own_id,area_code,area_name,area_rootid,area_baseid,levels,path,parentID ) Values(58,'fw001','HNYY','岳阳市',0,0,1,'-0-027-058',27)
GO

Insert Into JC_Campaign( rid,own_id,cp_content ) Values(1,'Fw001','产品发布会')
Insert Into JC_Campaign( rid,own_id,cp_content ) Values(2,'Fw001','新闻发布会')
Insert Into JC_Campaign( rid,own_id,cp_content ) Values(3,'Fw001','产品展示会')
Insert Into JC_Campaign( rid,own_id,cp_content ) Values(4,'fw001','网络广告')
Insert Into JC_Campaign( rid,own_id,cp_content ) Values(5,'fw001','客户推介会')
GO

Insert Into JC_CustKind( ck_id,own_id,ck_name ) Values(3,'Fw001','三资企业')
Insert Into JC_CustKind( ck_id,own_id,ck_name ) Values(5,'Fw001','港、奥、台企业')
Insert Into JC_CustKind( ck_id,own_id,ck_name ) Values(6,'Fw001','股份制企业')
Insert Into JC_CustKind( ck_id,own_id,ck_name ) Values(7,'fw001','国有企业')
Insert Into JC_CustKind( ck_id,own_id,ck_name ) Values(8,'fw001','民营企业')
Insert Into JC_CustKind( ck_id,own_id,ck_name ) Values(9,'fw001','外资企业')
GO

Insert Into JC_EventType( et_id,own_id,et_name ) Values(1,'fw001','产品咨询')
Insert Into JC_EventType( et_id,own_id,et_name ) Values(2,'fw001','价格咨询')
Insert Into JC_EventType( et_id,own_id,et_name ) Values(3,'fw001','方案咨询')
Insert Into JC_EventType( et_id,own_id,et_name ) Values(4,'fw001','上门演示')
Insert Into JC_EventType( et_id,own_id,et_name ) Values(5,'fw001','发放资料')
Insert Into JC_EventType( et_id,own_id,et_name ) Values(6,'fw001','试用产品')
Insert Into JC_EventType( et_id,own_id,et_name ) Values(7,'fw001','参加培训')
Insert Into JC_EventType( et_id,own_id,et_name ) Values(8,'fw001','合作咨询')
Insert Into JC_EventType( et_id,own_id,et_name ) Values(9,'fw001','销售请求')
GO

Insert Into JC_ExpenseType( et_id,own_id,et_name ) Values(1,'fw001','住宿费')
Insert Into JC_ExpenseType( et_id,own_id,et_name ) Values(2,'fw001','飞机票')
Insert Into JC_ExpenseType( et_id,own_id,et_name ) Values(3,'fw001','餐费')
Insert Into JC_ExpenseType( et_id,own_id,et_name ) Values(4,'fw001','会务费')
Insert Into JC_ExpenseType( et_id,own_id,et_name ) Values(5,'fw001','赠品费')
Insert Into JC_ExpenseType( et_id,own_id,et_name ) Values(6,'fw001','娱乐费')
Insert Into JC_ExpenseType( et_id,own_id,et_name ) Values(7,'fw001','洗衣费')
Insert Into JC_ExpenseType( et_id,own_id,et_name ) Values(8,'fw001','代理费')
Insert Into JC_ExpenseType( et_id,own_id,et_name ) Values(9,'fw001','电话费')
Insert Into JC_ExpenseType( et_id,own_id,et_name ) Values(10,'fw001','传真费')
Insert Into JC_ExpenseType( et_id,own_id,et_name ) Values(11,'fw001','火车票')
Insert Into JC_ExpenseType( et_id,own_id,et_name ) Values(12,'fw001','出租车费')
Insert Into JC_ExpenseType( et_id,own_id,et_name ) Values(13,'fw001','汽车租赁费')
Insert Into JC_ExpenseType( et_id,own_id,et_name ) Values(14,'fw001','公共汽车费')
Insert Into JC_ExpenseType( et_id,own_id,et_name ) Values(15,'fw001','停车费')
Insert Into JC_ExpenseType( et_id,own_id,et_name ) Values(16,'fw001','通行费')
Insert Into JC_ExpenseType( et_id,own_id,et_name ) Values(17,'fw001','汽油费')
Insert Into JC_ExpenseType( et_id,own_id,et_name ) Values(18,'fw001','托运费')
Insert Into JC_ExpenseType( et_id,own_id,et_name ) Values(19,'fw001','其它')
GO

Insert Into JC_GradeType( rid,own_id,gt_name,gt_type ) Values(14,'fw001','潜在客户','cust')
Insert Into JC_GradeType( rid,own_id,gt_name,gt_type ) Values(15,'fw001','直接客户','cust')
Insert Into JC_GradeType( rid,own_id,gt_name,gt_type ) Values(16,'fw001','分销商','cust')
Insert Into JC_GradeType( rid,own_id,gt_name,gt_type ) Values(17,'fw001','商业伙伴','cust')
Insert Into JC_GradeType( rid,own_id,gt_name,gt_type ) Values(18,'fw001','零售商','cust')
Insert Into JC_GradeType( rid,own_id,gt_name,gt_type ) Values(19,'fw001','OEM','cust')
Insert Into JC_GradeType( rid,own_id,gt_name,gt_type ) Values(20,'fw001','消费者','cust')
GO

Insert Into JC_LostSales( rid,own_id,ls_content ) Values(1,'Fw001','报价过高')
Insert Into JC_LostSales( rid,own_id,ls_content ) Values(2,'Fw001','竞争对手提供更优惠条款')
Insert Into JC_LostSales( rid,own_id,ls_content ) Values(3,'Fw001','客户对产品质量不满意')
Insert Into JC_LostSales( rid,own_id,ls_content ) Values(4,'Fw001','客户对服务态度不满意')
Insert Into JC_LostSales( rid,own_id,ls_content ) Values(5,'Fw001','客户对付款方式不满意')
Insert Into JC_LostSales( rid,own_id,ls_content ) Values(6,'Fw001','客户对交货方式不满意')
GO

Insert Into JC_OpptPhase( op_id,own_id,op_name ) Values(1,'fw001','10%初始接触')
Insert Into JC_OpptPhase( op_id,own_id,op_name ) Values(2,'fw001','20%客户兴趣培养')
Insert Into JC_OpptPhase( op_id,own_id,op_name ) Values(3,'fw001','30%兴趣确认')
Insert Into JC_OpptPhase( op_id,own_id,op_name ) Values(4,'fw001','40%客户多方选择')
Insert Into JC_OpptPhase( op_id,own_id,op_name ) Values(5,'fw001','50%客户选择评估')
Insert Into JC_OpptPhase( op_id,own_id,op_name ) Values(6,'fw001','60%评估较好')
Insert Into JC_OpptPhase( op_id,own_id,op_name ) Values(7,'fw001','70%通过评估')
Insert Into JC_OpptPhase( op_id,own_id,op_name ) Values(8,'fw001','80%决定购买')
Insert Into JC_OpptPhase( op_id,own_id,op_name ) Values(9,'fw001','90%下定单')
Insert Into JC_OpptPhase( op_id,own_id,op_name ) Values(10,'fw001','100%完成')
GO

Insert Into JC_OpptStatus( os_id,own_id,os_name ) Values(1,'fw001','成功')
Insert Into JC_OpptStatus( os_id,own_id,os_name ) Values(2,'fw001','进行中')
Insert Into JC_OpptStatus( os_id,own_id,os_name ) Values(3,'fw001','延期')
Insert Into JC_OpptStatus( os_id,own_id,os_name ) Values(4,'fw001','丢失')
Insert Into JC_OpptStatus( os_id,own_id,os_name ) Values(5,'fw001','放弃')
Insert Into JC_OpptStatus( os_id,own_id,os_name ) Values(6,'fw001','关闭')
GO

Insert Into JC_OpptType( ot_id,own_id,ot_name ) Values(1,'fw001','普通销售')
Insert Into JC_OpptType( ot_id,own_id,ot_name ) Values(2,'fw001','重复销售')
Insert Into JC_OpptType( ot_id,own_id,ot_name ) Values(3,'fw001','多次销售')
Insert Into JC_OpptType( ot_id,own_id,ot_name ) Values(4,'fw001','升级销售')
GO

Insert Into JC_PayMode( pm_id,own_id,pm_name ) Values(1,'fw001','现金')
Insert Into JC_PayMode( pm_id,own_id,pm_name ) Values(2,'fw001','支票')
GO

Insert Into JC_Possible( rid,own_id,possible_scope,possible_max,possible_min ) Values(1,'fw001','0-10%',10,0)
Insert Into JC_Possible( rid,own_id,possible_scope,possible_max,possible_min ) Values(2,'fw001','10-20%',20,10)
Insert Into JC_Possible( rid,own_id,possible_scope,possible_max,possible_min ) Values(3,'fw001','20-30%',30,20)
Insert Into JC_Possible( rid,own_id,possible_scope,possible_max,possible_min ) Values(4,'fw001','30-40%',40,30)
Insert Into JC_Possible( rid,own_id,possible_scope,possible_max,possible_min ) Values(5,'fw001','40-50%',50,40)
Insert Into JC_Possible( rid,own_id,possible_scope,possible_max,possible_min ) Values(6,'fw001','50-60%',60,50)
Insert Into JC_Possible( rid,own_id,possible_scope,possible_max,possible_min ) Values(7,'fw001','60-70%',70,60)
Insert Into JC_Possible( rid,own_id,possible_scope,possible_max,possible_min ) Values(8,'fw001','70-80%',80,70)
Insert Into JC_Possible( rid,own_id,possible_scope,possible_max,possible_min ) Values(9,'fw001','80-90%',90,80)
Insert Into JC_Possible( rid,own_id,possible_scope,possible_max,possible_min ) Values(10,'fw001','90-100%',100,90)
GO

Insert Into JC_Progress( rid,own_id,prg_content ) Values(1,'fw001','会议')
Insert Into JC_Progress( rid,own_id,prg_content ) Values(2,'fw001','通知')
Insert Into JC_Progress( rid,own_id,prg_content ) Values(3,'fw001','电话')
Insert Into JC_Progress( rid,own_id,prg_content ) Values(4,'fw001','传真')
Insert Into JC_Progress( rid,own_id,prg_content ) Values(5,'fw001','电子邮件')
GO

Insert Into JC_Region( JR_ID,own_id,JR_Name ) Values(1,'fw001','华南地区')
Insert Into JC_Region( JR_ID,own_id,JR_Name ) Values(2,'fw001','华中地区')
Insert Into JC_Region( JR_ID,own_id,JR_Name ) Values(3,'fw001','华北地区')
Insert Into JC_Region( JR_ID,own_id,JR_Name ) Values(4,'fw001','西北地区')
GO

Insert Into JC_RequireType( rt_id,own_id,rt_name ) Values(1,'fw001','使用环境')
Insert Into JC_RequireType( rt_id,own_id,rt_name ) Values(2,'fw001','使用特点')
Insert Into JC_RequireType( rt_id,own_id,rt_name ) Values(3,'fw001','资源配置')
Insert Into JC_RequireType( rt_id,own_id,rt_name ) Values(4,'fw001','爱好兴趣')
GO

Insert Into JC_SourceType( rid,own_id,st_name,st_type ) Values(1,'Fw001','报刊宣传','sales')
Insert Into JC_SourceType( rid,own_id,st_name,st_type ) Values(2,'Fw001','电视广告','sales')
Insert Into JC_SourceType( rid,own_id,st_name,st_type ) Values(3,'Fw001','市场推销活动','sales')
Insert Into JC_SourceType( rid,own_id,st_name,st_type ) Values(5,'Fw001','网络广告','sales')
Insert Into JC_SourceType( rid,own_id,st_name,st_type ) Values(7,'Fw001','老客户','cust')
Insert Into JC_SourceType( rid,own_id,st_name,st_type ) Values(14,'fw001','电视','cust')
Insert Into JC_SourceType( rid,own_id,st_name,st_type ) Values(15,'fw001','产品发布会','cust')
Insert Into JC_SourceType( rid,own_id,st_name,st_type ) Values(16,'fw001','通过广告','cust')
Insert Into JC_SourceType( rid,own_id,st_name,st_type ) Values(17,'fw001','熟人介绍','cust')
Insert Into JC_SourceType( rid,own_id,st_name,st_type ) Values(18,'fw001','主动联系客户','cust')
Insert Into JC_SourceType( rid,own_id,st_name,st_type ) Values(19,'fw001','销售线索','sales')
Insert Into JC_SourceType( rid,own_id,st_name,st_type ) Values(20,'fw001','机会挖掘','sales')
Insert Into JC_SourceType( rid,own_id,st_name,st_type ) Values(21,'fw001','上级分配','sales')
Insert Into JC_SourceType( rid,own_id,st_name,st_type ) Values(22,'fw001','上门','sales')
Insert Into JC_SourceType( rid,own_id,st_name,st_type ) Values(23,'fw001','电话','sales')
Insert Into JC_SourceType( rid,own_id,st_name,st_type ) Values(24,'fw001','WEB/邮件','sales')
Insert Into JC_SourceType( rid,own_id,st_name,st_type ) Values(25,'fw001','机会成功','so')
Insert Into JC_SourceType( rid,own_id,st_name,st_type ) Values(26,'fw001','直接销售','so')
GO

Insert Into JC_TaskStatus( rid,own_id,ts_status,ts_type,ts_delete ) Values(6,'Fw001','新建','market','0')
Insert Into JC_TaskStatus( rid,own_id,ts_status,ts_type,ts_delete ) Values(9,'Fw001','分配','market','0')
Insert Into JC_TaskStatus( rid,own_id,ts_status,ts_type,ts_delete ) Values(11,'Fw001','新建','sales','0')
Insert Into JC_TaskStatus( rid,own_id,ts_status,ts_type,ts_delete ) Values(13,'Fw001','新建','care','0')
Insert Into JC_TaskStatus( rid,own_id,ts_status,ts_type,ts_delete ) Values(16,'Fw001','创建','sales','0')
Insert Into JC_TaskStatus( rid,own_id,ts_status,ts_type,ts_delete ) Values(17,'Fw001','分配','sales','0')
Insert Into JC_TaskStatus( rid,own_id,ts_status,ts_type,ts_delete ) Values(19,'Fw001','分配','care','0')
Insert Into JC_TaskStatus( rid,own_id,ts_status,ts_type,ts_delete ) Values(20,'Fw001','完成','care','0')
Insert Into JC_TaskStatus( rid,own_id,ts_status,ts_type,ts_delete ) Values(22,'Fw001','完成','sales','0')
Insert Into JC_TaskStatus( rid,own_id,ts_status,ts_type,ts_delete ) Values(23,'Fw001','失败','sales','0')
Insert Into JC_TaskStatus( rid,own_id,ts_status,ts_type,ts_delete ) Values(24,'Fw001','失败','service','0')
Insert Into JC_TaskStatus( rid,own_id,ts_status,ts_type,ts_delete ) Values(25,'Fw001','失败','care','0')
Insert Into JC_TaskStatus( rid,own_id,ts_status,ts_type,ts_delete ) Values(26,'Fw001','策划','care','0')
Insert Into JC_TaskStatus( rid,own_id,ts_status,ts_type,ts_delete ) Values(27,'Fw001','策划','service','0')
Insert Into JC_TaskStatus( rid,own_id,ts_status,ts_type,ts_delete ) Values(28,'Fw001','策划','sales','0')
Insert Into JC_TaskStatus( rid,own_id,ts_status,ts_type,ts_delete ) Values(29,'Fw001','策划','market','0')
Insert Into JC_TaskStatus( rid,own_id,ts_status,ts_type,ts_delete ) Values(430,'fw001','sdsdf','sell','1')
Insert Into JC_TaskStatus( rid,own_id,ts_status,ts_type,ts_delete ) Values(440,'Fw001','完成','market','0')
Insert Into JC_TaskStatus( rid,own_id,ts_status,ts_type,ts_delete ) Values(442,'fw001','新建','service','1')
Insert Into JC_TaskStatus( rid,own_id,ts_status,ts_type,ts_delete ) Values(443,'fw001','完成','service','1')
GO

Insert Into JC_Trade( trade_id,own_id,trade_name ) Values(1,'Fw001','计算机业')
Insert Into JC_Trade( trade_id,own_id,trade_name ) Values(2,'Fw001','制造业')
Insert Into JC_Trade( trade_id,own_id,trade_name ) Values(4,'Fw001','食品加工业')
Insert Into JC_Trade( trade_id,own_id,trade_name ) Values(5,'Fw001','电子行业')
Insert Into JC_Trade( trade_id,own_id,trade_name ) Values(6,'Fw001','纺织业')
Insert Into JC_Trade( trade_id,own_id,trade_name ) Values(7,'Fw001','化工行业')
Insert Into JC_Trade( trade_id,own_id,trade_name ) Values(8,'Fw001','政府部门')
Insert Into JC_Trade( trade_id,own_id,trade_name ) Values(9,'fw001','汽车业')
Insert Into JC_Trade( trade_id,own_id,trade_name ) Values(10,'fw001','酒店服务业')
Insert Into JC_Trade( trade_id,own_id,trade_name ) Values(11,'fw001','金融业')
Insert Into JC_Trade( trade_id,own_id,trade_name ) Values(12,'fw001','电信业')
Insert Into JC_Trade( trade_id,own_id,trade_name ) Values(13,'fw001','旅游业')
Insert Into JC_Trade( trade_id,own_id,trade_name ) Values(14,'fw001','零售业')
Insert Into JC_Trade( trade_id,own_id,trade_name ) Values(15,'fw001','其他行业')
Insert Into JC_Trade( trade_id,own_id,trade_name ) Values(16,'fw001','房地产业')
GO

Insert Into JC_TypeDef( td_id,own_id,td_name,td_type ) Values(1,'fw001','公司简介','info')
Insert Into JC_TypeDef( td_id,own_id,td_name,td_type ) Values(4,'fw001','营销知识','info')
Insert Into JC_TypeDef( td_id,own_id,td_name,td_type ) Values(5,'fw001','客服邮件模板','info')
Insert Into JC_TypeDef( td_id,own_id,td_name,td_type ) Values(6,'fw001','标准管理制度','doc')
Insert Into JC_TypeDef( td_id,own_id,td_name,td_type ) Values(8,'fw001','标准服务制度','doc')
Insert Into JC_TypeDef( td_id,own_id,td_name,td_type ) Values(9,'fw001','标准检核制度','doc')
GO

Insert Into JC_Unit( rid,own_id,unit_name,unit_spec ) Values(1,'Fw001','台','')
Insert Into JC_Unit( rid,own_id,unit_name,unit_spec ) Values(2,'Fw001','件','')
Insert Into JC_Unit( rid,own_id,unit_name,unit_spec ) Values(3,'Fw001','箱','')
Insert Into JC_Unit( rid,own_id,unit_name,unit_spec ) Values(4,'Fw001','套','')
Insert Into JC_Unit( rid,own_id,unit_name,unit_spec ) Values(5,'Fw001','张','')
Insert Into JC_Unit( rid,own_id,unit_name,unit_spec ) Values(6,'Fw001','斤','')
Insert Into JC_Unit( rid,own_id,unit_name,unit_spec ) Values(7,'fw001','支','')
GO

Insert Into JT_Owner( own_id,own_Name,own_Abbr,own_Addr,own_Email,own_Phone,own_Fax,own_PostCode,own_City,own_Province,own_Flag ) Values('fw001','富慧软件公司','fuwise','广州市','admin@fuwise.com','020-88888888','020-88888888','','','','1')
GO

Insert Into prg_expense( own_id,prg_id,cust_id,pe_expense,pe_type,pe_date,pe_checker,emp_id,pe_desc,pe_srctype ) Values('fw001',40,Null,33,2,'06/05/2002',1,1,'','market')
Insert Into prg_expense( own_id,prg_id,cust_id,pe_expense,pe_type,pe_date,pe_checker,emp_id,pe_desc,pe_srctype ) Values('fw001',43,Null,1000,1,'06/05/2002',1,1,'drgf','market')
Insert Into prg_expense( own_id,prg_id,cust_id,pe_expense,pe_type,pe_date,pe_checker,emp_id,pe_desc,pe_srctype ) Values('fw001',43,Null,2563,2,'06/12/2002',1,1,'dfd','market')
Insert Into prg_expense( own_id,prg_id,cust_id,pe_expense,pe_type,pe_date,pe_checker,emp_id,pe_desc,pe_srctype ) Values('fw001',44,Null,1200,1,'06/05/2002',1,1,'三天住宿。','market')
Insert Into prg_expense( own_id,prg_id,cust_id,pe_expense,pe_type,pe_date,pe_checker,emp_id,pe_desc,pe_srctype ) Values('fw001',44,Null,2000,2,'06/06/2002',1,1,'到北京的往返机票。','market')
Insert Into prg_expense( own_id,prg_id,cust_id,pe_expense,pe_type,pe_date,pe_checker,emp_id,pe_desc,pe_srctype ) Values('fw001',44,Null,2500,3,'06/05/2002',1,1,'请客户吃饭。','market')
Insert Into prg_expense( own_id,prg_id,cust_id,pe_expense,pe_type,pe_date,pe_checker,emp_id,pe_desc,pe_srctype ) Values('fw001',45,Null,1000,4,'06/04/2002',3,1,'ffd','market')
Insert Into prg_expense( own_id,prg_id,cust_id,pe_expense,pe_type,pe_date,pe_checker,emp_id,pe_desc,pe_srctype ) Values('fw001',45,Null,1450,2,'06/19/2002',1,1,'dff','market')
Insert Into prg_expense( own_id,prg_id,cust_id,pe_expense,pe_type,pe_date,pe_checker,emp_id,pe_desc,pe_srctype ) Values('fw001',45,Null,800,1,'06/03/2002',1,1,'fff','market')
Insert Into prg_expense( own_id,prg_id,cust_id,pe_expense,pe_type,pe_date,pe_checker,emp_id,pe_desc,pe_srctype ) Values('fw001',46,Null,3246.23,5,'06/12/2002',2,1,'','market')
Insert Into prg_expense( own_id,prg_id,cust_id,pe_expense,pe_type,pe_date,pe_checker,emp_id,pe_desc,pe_srctype ) Values('fw001',50,Null,1335,2,'06/05/2002',1,1,'','market')
Insert Into prg_expense( own_id,prg_id,cust_id,pe_expense,pe_type,pe_date,pe_checker,emp_id,pe_desc,pe_srctype ) Values('fw001',50,Null,2120,1,'06/04/2002',1,1,'','market')
Insert Into prg_expense( own_id,prg_id,cust_id,pe_expense,pe_type,pe_date,pe_checker,emp_id,pe_desc,pe_srctype ) Values('fw001',51,Null,1230,9,'06/04/2002',1,1,'','market')
Insert Into prg_expense( own_id,prg_id,cust_id,pe_expense,pe_type,pe_date,pe_checker,emp_id,pe_desc,pe_srctype ) Values('fw001',51,Null,325,11,'06/04/2002',1,1,'','market')
Insert Into prg_expense( own_id,prg_id,cust_id,pe_expense,pe_type,pe_date,pe_checker,emp_id,pe_desc,pe_srctype ) Values('fw001',52,Null,2343,1,'06/04/2002',1,1,'fgfg','market')
Insert Into prg_expense( own_id,prg_id,cust_id,pe_expense,pe_type,pe_date,pe_checker,emp_id,pe_desc,pe_srctype ) Values('fw001',52,Null,1351,2,'06/12/2002',1,1,'ff','market')
Insert Into prg_expense( own_id,prg_id,cust_id,pe_expense,pe_type,pe_date,pe_checker,emp_id,pe_desc,pe_srctype ) Values('fw001',52,Null,3434,3,'06/04/2002',1,1,'','market')
Insert Into prg_expense( own_id,prg_id,cust_id,pe_expense,pe_type,pe_date,pe_checker,emp_id,pe_desc,pe_srctype ) Values('fw001',53,Null,4234,4,'06/13/2002',1,1,'','market')
Insert Into prg_expense( own_id,prg_id,cust_id,pe_expense,pe_type,pe_date,pe_checker,emp_id,pe_desc,pe_srctype ) Values('fw001',53,Null,3433,5,'06/05/2002',1,1,'dsfdsf','market')
Insert Into prg_expense( own_id,prg_id,cust_id,pe_expense,pe_type,pe_date,pe_checker,emp_id,pe_desc,pe_srctype ) Values('fw001',53,Null,3455,3,'06/12/2002',1,1,'','market')
Insert Into prg_expense( own_id,prg_id,cust_id,pe_expense,pe_type,pe_date,pe_checker,emp_id,pe_desc,pe_srctype ) Values('fw001',53,Null,3456,6,'06/05/2002',1,1,'','market')
Insert Into prg_expense( own_id,prg_id,cust_id,pe_expense,pe_type,pe_date,pe_checker,emp_id,pe_desc,pe_srctype ) Values('fw001',53,Null,4546,2,'06/04/2002',1,1,'','market')
Insert Into prg_expense( own_id,prg_id,cust_id,pe_expense,pe_type,pe_date,pe_checker,emp_id,pe_desc,pe_srctype ) Values('fw001',54,Null,2343,3,'06/05/2002',1,1,'','market')
Insert Into prg_expense( own_id,prg_id,cust_id,pe_expense,pe_type,pe_date,pe_checker,emp_id,pe_desc,pe_srctype ) Values('fw001',54,Null,3433,5,'06/04/2002',1,1,'sdfds','market')
Insert Into prg_expense( own_id,prg_id,cust_id,pe_expense,pe_type,pe_date,pe_checker,emp_id,pe_desc,pe_srctype ) Values('fw001',55,Null,333,5,'06/12/2002',1,1,'343','market')
Insert Into prg_expense( own_id,prg_id,cust_id,pe_expense,pe_type,pe_date,pe_checker,emp_id,pe_desc,pe_srctype ) Values('fw001',55,Null,2342,8,'06/28/2002',1,1,'dfgfdg','market')
Insert Into prg_expense( own_id,prg_id,cust_id,pe_expense,pe_type,pe_date,pe_checker,emp_id,pe_desc,pe_srctype ) Values('fw001',70,Null,1233,1,'06/25/2002',1,1,'','market')
Insert Into prg_expense( own_id,prg_id,cust_id,pe_expense,pe_type,pe_date,pe_checker,emp_id,pe_desc,pe_srctype ) Values('fw001',70,Null,325.36,3,'06/26/2002',1,1,'','market')
Insert Into prg_expense( own_id,prg_id,cust_id,pe_expense,pe_type,pe_date,pe_checker,emp_id,pe_desc,pe_srctype ) Values('fw001',71,Null,1452,2,'06/25/2002',1,1,'','market')
Insert Into prg_expense( own_id,prg_id,cust_id,pe_expense,pe_type,pe_date,pe_checker,emp_id,pe_desc,pe_srctype ) Values('fw001',71,Null,1232.69,4,'06/27/2002',1,1,'','market')
Insert Into prg_expense( own_id,prg_id,cust_id,pe_expense,pe_type,pe_date,pe_checker,emp_id,pe_desc,pe_srctype ) Values('fw001',72,Null,962,9,'06/27/2002',1,1,'','market')
Insert Into prg_expense( own_id,prg_id,cust_id,pe_expense,pe_type,pe_date,pe_checker,emp_id,pe_desc,pe_srctype ) Values('fw001',72,Null,123.85,10,'06/25/2002',1,1,'','market')
Insert Into prg_expense( own_id,prg_id,cust_id,pe_expense,pe_type,pe_date,pe_checker,emp_id,pe_desc,pe_srctype ) Values('fw001',72,Null,365,19,'06/27/2002',1,1,'','market')
Insert Into prg_expense( own_id,prg_id,cust_id,pe_expense,pe_type,pe_date,pe_checker,emp_id,pe_desc,pe_srctype ) Values('fw001',70,Null,635.28,4,'06/17/2002',1,1,'','market')
Insert Into prg_expense( own_id,prg_id,cust_id,pe_expense,pe_type,pe_date,pe_checker,emp_id,pe_desc,pe_srctype ) Values('fw001',15,6,3453,2,'06/26/2002',1,1,'ffffff','sales')
Insert Into prg_expense( own_id,prg_id,cust_id,pe_expense,pe_type,pe_date,pe_checker,emp_id,pe_desc,pe_srctype ) Values('fw001',15,6,3000,3,'06/26/2002',1,1,'rterty','sales')
Insert Into prg_expense( own_id,prg_id,cust_id,pe_expense,pe_type,pe_date,pe_checker,emp_id,pe_desc,pe_srctype ) Values('fw001',15,6,4355,9,'06/26/2002',1,1,'fgdfg','sales')
Insert Into prg_expense( own_id,prg_id,cust_id,pe_expense,pe_type,pe_date,pe_checker,emp_id,pe_desc,pe_srctype ) Values('fw001',15,6,4554,4,'06/26/2002',1,1,'dgfdg','sales')
Insert Into prg_expense( own_id,prg_id,cust_id,pe_expense,pe_type,pe_date,pe_checker,emp_id,pe_desc,pe_srctype ) Values('fw001',74,18,123,7,'06/26/2002',1,1,'rrrrrr','market')
Insert Into prg_expense( own_id,prg_id,cust_id,pe_expense,pe_type,pe_date,pe_checker,emp_id,pe_desc,pe_srctype ) Values('fw001',74,18,453,8,'06/26/2002',1,1,'ertertr','market')
Insert Into prg_expense( own_id,prg_id,cust_id,pe_expense,pe_type,pe_date,pe_checker,emp_id,pe_desc,pe_srctype ) Values('fw001',60,26,343,3,'06/27/2002',1,1,'','market')
Insert Into prg_expense( own_id,prg_id,cust_id,pe_expense,pe_type,pe_date,pe_checker,emp_id,pe_desc,pe_srctype ) Values('fw001',74,18,3243,4,'06/27/2002',1,1,'ffsdd','market')
Insert Into prg_expense( own_id,prg_id,cust_id,pe_expense,pe_type,pe_date,pe_checker,emp_id,pe_desc,pe_srctype ) Values('fw001',74,18,334,4,'06/27/2002',1,1,'dsf','market')
Insert Into prg_expense( own_id,prg_id,cust_id,pe_expense,pe_type,pe_date,pe_checker,emp_id,pe_desc,pe_srctype ) Values('fw001',74,18,543,9,'06/27/2002',1,1,'dffs','market')
Insert Into prg_expense( own_id,prg_id,cust_id,pe_expense,pe_type,pe_date,pe_checker,emp_id,pe_desc,pe_srctype ) Values('fw001',74,18,332,9,'06/27/2002',1,1,'dfsddf','market')
Insert Into prg_expense( own_id,prg_id,cust_id,pe_expense,pe_type,pe_date,pe_checker,emp_id,pe_desc,pe_srctype ) Values('fw001',74,18,3432,10,'06/27/2002',1,1,'sdffgd','market')
Insert Into prg_expense( own_id,prg_id,cust_id,pe_expense,pe_type,pe_date,pe_checker,emp_id,pe_desc,pe_srctype ) Values('fw001',74,18,3455,14,'06/27/2002',1,1,'sdfd','market')
Insert Into prg_expense( own_id,prg_id,cust_id,pe_expense,pe_type,pe_date,pe_checker,emp_id,pe_desc,pe_srctype ) Values('fw001',74,18,343,6,'06/26/2002',1,1,'rtereryy','market')
Insert Into prg_expense( own_id,prg_id,cust_id,pe_expense,pe_type,pe_date,pe_checker,emp_id,pe_desc,pe_srctype ) Values('fw001',74,18,233,3,'06/26/2002',1,1,'df','market')
Insert Into prg_expense( own_id,prg_id,cust_id,pe_expense,pe_type,pe_date,pe_checker,emp_id,pe_desc,pe_srctype ) Values('fw001',74,18,343,18,'06/26/2002',1,1,'sdfgdfff','market')
Insert Into prg_expense( own_id,prg_id,cust_id,pe_expense,pe_type,pe_date,pe_checker,emp_id,pe_desc,pe_srctype ) Values('fw001',15,6,3455,6,'06/27/2002',1,1,'dfgg','sales')
Insert Into prg_expense( own_id,prg_id,cust_id,pe_expense,pe_type,pe_date,pe_checker,emp_id,pe_desc,pe_srctype ) Values('fw001',90,21,3333,3,'07/09/2002',1,1,'','market')
GO

Insert Into pub_bbsforum( Own_ID,BF_Type,Emp_ID,BF_levels,BF_Title,BF_Content,BF_Date,BF_Clickcount,BF_replycount,BF_imageid,BF_rootid,BF_baseid ) Values('fw001','1',1,'1','营销知识','   在日常的业务交往中，我们会发现越来越多的企业已经有了自己的网址，很多业务信息的沟通也普遍应用电子邮件，当你询问企业的负责人互联网有没有为企业带来效益时，一般都会得到肯定的回答，而且很多企业中已经有专门的电子商务部门或有专人负责利用互联网进行营销工作。互联网在企业中应用的热潮正好与.com公司的萧条形成鲜明的对比，互联网已经在企业的具体应用中发挥越来越大的作用。
   作为一种有效的营销工具，互联网有其自身的特点，如果说，企业已经或即将把互联网作为一种营销手段的话，那么就像其它的营销工具都有常用的方法和规律一样，互联网营销也应该具备一些常规的方法和规律，也会有一些特点的业务方式和管理手段。笔者在咨询工作中发现对互联网营销如何做，如何进行营销管理等具体问题上，尚没有形成定型的方法，导致企业虽然重视互联网营销但在具体操作中却经常无章可寻，无法有序地推进营销效果，使企业无法更深更好地挖掘互联网的营销价值，也使这方面的具体办事人员无法长期持久地体现工作的价值。笔者希望通过这个专栏可以对互联网营销在操作层面进行一些探索，希望自身的经验可以对企业中从事相关工作的朋友有些许作用，更希望以这个专栏为契机，与朋友们进行探讨，相互促进。

1、什么是互联网营销？

定义有很多版本，但为了使这个专栏更具操作价值，我们也权且把它定义得具备操作意义：凡利用互联网进行的营销工作，就可称其为互联网营销，营销中的诸多要素如：品牌、渠道、促销等要素都会在互联网营销中体现，而互联网营销更为营销各要素带来新的形式与内容。也就是说，在营销工作中利用了互联网，我们就称作在进行互联网营销。

2、互联网营销要实现什么目的？

正如任何营销的形式其最终目的都是给企业带来利润一样，互联网营销的根本目的也必须为企业带来利益，节约成本或者创造利润。

3、互联网营销的主要作用：

一般情况下互联网营销有以下5个主要作用： 

1）宣传广告：

2）新产品促（试）销

3）市场调查

4）网上直销

5）客户关系管理 

客户服务、销售与渠道管理等

对不同业务性质和业务规模的企业，互联网营销起到的作用也不同。 

4、互联网营销的主要工具有哪些？

电子邮件营销、企业网站营销、网上广告等是互联网营销的主要工具，企业中网络营销部门一般会依托这几种形式进行营销工作，而每一种工具都有其广阔的内涵和多层次的内容，如：网站营销，从简单的网页，到与内部系统相联的企业门户网站，到采用CRM系统的一对一营销网站，都是网站营销，而其具体的内容则有很大的差异。

5、现实的工作中存在哪些问题？

由于互联网营销无论从理论到实践都太新，都处于探索阶段，所以具体到企业的互联网营销实践都会表现出一些共性的问题。

1）作用不清，目的不明：很多企业在战略上对互联网的作用定位模糊，在互联网热潮中有很多企业进行了大型的投资项目，目前看来，大多数以失败告终，这之后又出现了谈网色变的情况，企业自身利用互联网的积极性受到了打击，这些在战略上的模糊定位，导致互联网营销在很多企业中的畸形状态。

2）任务不清、考核不明：我们在咨询工作中经常会看到这样的情况，企业的管理层没有办法给负责互联网营销的部门下达准确的任务，具体负责的部门也不能向企业提供很清晰的计划，对这个部门或负责的人员很难有一个量化的连续的考核指标，这些状况直接导致管理层对相应部门的不信任和执行人员的成功感不强。

3）互联网营销的潜力没有得到充分的挖掘：很多企业由于一开始实施互联网营销时遇到了各种问题，也有过高投入低产出的教训，则对互联网营销保持相当谨慎的态度，导致浅层次的较多尝试，深层次的应用较少，没能充分挖掘互联网营销的潜力。此外，还存在着互联网部门与其他部门难于信息沟通，对互联网营销的难于进行成本管理等问题。

总之，互联网营销无论从宏观和微观很多值得挖掘和优化的地方，笔者希在后续的文章中与对此感兴趣的朋友共同交流。
','06/09/2002 11:34:26',27,5,'',0,36)
Insert Into pub_bbsforum( Own_ID,BF_Type,Emp_ID,BF_levels,BF_Title,BF_Content,BF_Date,BF_Clickcount,BF_replycount,BF_imageid,BF_rootid,BF_baseid ) Values('fw001','1',1,'1.1','回复：营销知识','dfgdg','06/19/2002 10:45:03',1,1,'',36,36)
Insert Into pub_bbsforum( Own_ID,BF_Type,Emp_ID,BF_levels,BF_Title,BF_Content,BF_Date,BF_Clickcount,BF_replycount,BF_imageid,BF_rootid,BF_baseid ) Values('fw001','1',1,'1.1.1','回复：营销知识','dfgfdg','06/19/2002 10:45:09',4,0,'',146,36)
Insert Into pub_bbsforum( Own_ID,BF_Type,Emp_ID,BF_levels,BF_Title,BF_Content,BF_Date,BF_Clickcount,BF_replycount,BF_imageid,BF_rootid,BF_baseid ) Values('fw001','1',1,'1.2','回复：营销知识','dfgdfhhgff','07/03/2002 15:02:24',0,0,'',36,36)
GO

Insert Into Pub_BillCode( Own_id,BC_MaxID,BC_Type,BC_Prefix,BC_SerialLen,BC_Date,BC_HasDate,BC_AutoIncrease,BC_Use ) Values('fw001',0,'AREA','',3,'','0','1','1')
Insert Into Pub_BillCode( Own_id,BC_MaxID,BC_Type,BC_Prefix,BC_SerialLen,BC_Date,BC_HasDate,BC_AutoIncrease,BC_Use ) Values('fw001',0,'BP','BP',4,'','0','1','1')
Insert Into Pub_BillCode( Own_id,BC_MaxID,BC_Type,BC_Prefix,BC_SerialLen,BC_Date,BC_HasDate,BC_AutoIncrease,BC_Use ) Values('fw001',0,'CANDIDATE','CAND',4,'','0','1','1')
Insert Into Pub_BillCode( Own_id,BC_MaxID,BC_Type,BC_Prefix,BC_SerialLen,BC_Date,BC_HasDate,BC_AutoIncrease,BC_Use ) Values('Fw001',0,'CP-IP','CP-IP',4,'03/09/2002','1','1','1')
Insert Into Pub_BillCode( Own_id,BC_MaxID,BC_Type,BC_Prefix,BC_SerialLen,BC_Date,BC_HasDate,BC_AutoIncrease,BC_Use ) Values('Fw001',0,'CP-PD','CP-PD',4,'02/18/2002','1','1','1')
Insert Into Pub_BillCode( Own_id,BC_MaxID,BC_Type,BC_Prefix,BC_SerialLen,BC_Date,BC_HasDate,BC_AutoIncrease,BC_Use ) Values('fw001',26,'CUSTOMER','CUST',5,'01/17/2002','0','1','1')
Insert Into Pub_BillCode( Own_id,BC_MaxID,BC_Type,BC_Prefix,BC_SerialLen,BC_Date,BC_HasDate,BC_AutoIncrease,BC_Use ) Values('fw001',0,'DEPARTMENT','DEPT',4,'','0','1','1')
Insert Into Pub_BillCode( Own_id,BC_MaxID,BC_Type,BC_Prefix,BC_SerialLen,BC_Date,BC_HasDate,BC_AutoIncrease,BC_Use ) Values('fw001',0,'EMPLOYEE','EMP',4,'','0','1','1')
Insert Into Pub_BillCode( Own_id,BC_MaxID,BC_Type,BC_Prefix,BC_SerialLen,BC_Date,BC_HasDate,BC_AutoIncrease,BC_Use ) Values('Fw001',4,'FW-CP','FW-CP',4,'07/06/2002','1','1','1')
Insert Into Pub_BillCode( Own_id,BC_MaxID,BC_Type,BC_Prefix,BC_SerialLen,BC_Date,BC_HasDate,BC_AutoIncrease,BC_Use ) Values('Fw001',7,'FW-CS','FW-CS',4,'06/18/2002','1','1','1')
Insert Into Pub_BillCode( Own_id,BC_MaxID,BC_Type,BC_Prefix,BC_SerialLen,BC_Date,BC_HasDate,BC_AutoIncrease,BC_Use ) Values('Fw001',1,'FW-CT','FW-CT',4,'07/03/2002','1','1','1')
Insert Into Pub_BillCode( Own_id,BC_MaxID,BC_Type,BC_Prefix,BC_SerialLen,BC_Date,BC_HasDate,BC_AutoIncrease,BC_Use ) Values('Fw001',1,'FW-FB','FW-FB',4,'07/05/2002','1','1','1')
Insert Into Pub_BillCode( Own_id,BC_MaxID,BC_Type,BC_Prefix,BC_SerialLen,BC_Date,BC_HasDate,BC_AutoIncrease,BC_Use ) Values('Fw001',0,'FW-MC','FW-MC',4,'','1','1','1')
Insert Into Pub_BillCode( Own_id,BC_MaxID,BC_Type,BC_Prefix,BC_SerialLen,BC_Date,BC_HasDate,BC_AutoIncrease,BC_Use ) Values('Fw001',1,'FW-PRG','FW-PRG',4,'07/03/2002','1','1','1')
Insert Into Pub_BillCode( Own_id,BC_MaxID,BC_Type,BC_Prefix,BC_SerialLen,BC_Date,BC_HasDate,BC_AutoIncrease,BC_Use ) Values('FW001',1,'FW-SR','FW-SR',4,'07/08/2002','1','1','1')
Insert Into Pub_BillCode( Own_id,BC_MaxID,BC_Type,BC_Prefix,BC_SerialLen,BC_Date,BC_HasDate,BC_AutoIncrease,BC_Use ) Values('Fw001',1,'FW-TSK','FW-TSK',4,'07/03/2002','1','1','1')
Insert Into Pub_BillCode( Own_id,BC_MaxID,BC_Type,BC_Prefix,BC_SerialLen,BC_Date,BC_HasDate,BC_AutoIncrease,BC_Use ) Values('Fw001',0,'FX-CH','FX-CH',4,'12/20/2001','1','1','1')
Insert Into Pub_BillCode( Own_id,BC_MaxID,BC_Type,BC_Prefix,BC_SerialLen,BC_Date,BC_HasDate,BC_AutoIncrease,BC_Use ) Values('Fw001',0,'FX-CN','FX-CN',4,'01/25/2002','1','1','1')
Insert Into Pub_BillCode( Own_id,BC_MaxID,BC_Type,BC_Prefix,BC_SerialLen,BC_Date,BC_HasDate,BC_AutoIncrease,BC_Use ) Values('Fw001',1,'FX-CS','FX-CS',4,'01/17/2002','1','1','1')
Insert Into Pub_BillCode( Own_id,BC_MaxID,BC_Type,BC_Prefix,BC_SerialLen,BC_Date,BC_HasDate,BC_AutoIncrease,BC_Use ) Values('Fw001',2,'FX-PAY','FX-PAY',4,'01/17/2002','1','1','1')
Insert Into Pub_BillCode( Own_id,BC_MaxID,BC_Type,BC_Prefix,BC_SerialLen,BC_Date,BC_HasDate,BC_AutoIncrease,BC_Use ) Values('Fw001',0,'FX-PL','FX-PL',4,'01/25/2002','1','1','1')
Insert Into Pub_BillCode( Own_id,BC_MaxID,BC_Type,BC_Prefix,BC_SerialLen,BC_Date,BC_HasDate,BC_AutoIncrease,BC_Use ) Values('fw001',1,'FX-RS','FX-RS',4,'01/17/2002','1','1','1')
Insert Into Pub_BillCode( Own_id,BC_MaxID,BC_Type,BC_Prefix,BC_SerialLen,BC_Date,BC_HasDate,BC_AutoIncrease,BC_Use ) Values('Fw001',1,'FX-RTN','FX-RTN',4,'01/17/2002','1','1','1')
Insert Into Pub_BillCode( Own_id,BC_MaxID,BC_Type,BC_Prefix,BC_SerialLen,BC_Date,BC_HasDate,BC_AutoIncrease,BC_Use ) Values('Fw001',0,'FX-SO','FX-SO',4,'','1','1','1')
Insert Into Pub_BillCode( Own_id,BC_MaxID,BC_Type,BC_Prefix,BC_SerialLen,BC_Date,BC_HasDate,BC_AutoIncrease,BC_Use ) Values('Fw001',1,'JG-MP','JG-MP',4,'02/18/2002','1','1','1')
Insert Into Pub_BillCode( Own_id,BC_MaxID,BC_Type,BC_Prefix,BC_SerialLen,BC_Date,BC_HasDate,BC_AutoIncrease,BC_Use ) Values('Fw001',0,'KC-IS','KC-IS',4,'01/25/2002','1','1','1')
Insert Into Pub_BillCode( Own_id,BC_MaxID,BC_Type,BC_Prefix,BC_SerialLen,BC_Date,BC_HasDate,BC_AutoIncrease,BC_Use ) Values('Fw001',0,'KC-OS','KC-OS',4,'01/18/2002','1','1','1')
Insert Into Pub_BillCode( Own_id,BC_MaxID,BC_Type,BC_Prefix,BC_SerialLen,BC_Date,BC_HasDate,BC_AutoIncrease,BC_Use ) Values('Fw001',0,'KC-TS','KC-TS',4,'01/19/2002','1','1','1')
Insert Into Pub_BillCode( Own_id,BC_MaxID,BC_Type,BC_Prefix,BC_SerialLen,BC_Date,BC_HasDate,BC_AutoIncrease,BC_Use ) Values('fw001',0,'PRODUCT','',4,'','0','1','1')
Insert Into Pub_BillCode( Own_id,BC_MaxID,BC_Type,BC_Prefix,BC_SerialLen,BC_Date,BC_HasDate,BC_AutoIncrease,BC_Use ) Values('fw001',0,'STORE','STORE',4,'','0','1','1')
Insert Into Pub_BillCode( Own_id,BC_MaxID,BC_Type,BC_Prefix,BC_SerialLen,BC_Date,BC_HasDate,BC_AutoIncrease,BC_Use ) Values('Fw001',0,'XS-AP','XS-AP',4,'01/23/2002','1','1','1')
Insert Into Pub_BillCode( Own_id,BC_MaxID,BC_Type,BC_Prefix,BC_SerialLen,BC_Date,BC_HasDate,BC_AutoIncrease,BC_Use ) Values('Fw001',0,'XS-CS','XS-CS',4,'01/17/2002','1','1','1')
Insert Into Pub_BillCode( Own_id,BC_MaxID,BC_Type,BC_Prefix,BC_SerialLen,BC_Date,BC_HasDate,BC_AutoIncrease,BC_Use ) Values('fw001',0,'XS-GP','XS-GP',4,'01/23/2002','1','1','1')
Insert Into Pub_BillCode( Own_id,BC_MaxID,BC_Type,BC_Prefix,BC_SerialLen,BC_Date,BC_HasDate,BC_AutoIncrease,BC_Use ) Values('Fw001',0,'XS-LD','XS-LD',4,'02/03/2002','1','1','1')
Insert Into Pub_BillCode( Own_id,BC_MaxID,BC_Type,BC_Prefix,BC_SerialLen,BC_Date,BC_HasDate,BC_AutoIncrease,BC_Use ) Values('Fw001',0,'XS-PAY','XS-PAY',4,'01/25/2002','1','1','1')
Insert Into Pub_BillCode( Own_id,BC_MaxID,BC_Type,BC_Prefix,BC_SerialLen,BC_Date,BC_HasDate,BC_AutoIncrease,BC_Use ) Values('Fw001',0,'XS-PP','XS-PP',4,'01/28/2002','1','1','1')
Insert Into Pub_BillCode( Own_id,BC_MaxID,BC_Type,BC_Prefix,BC_SerialLen,BC_Date,BC_HasDate,BC_AutoIncrease,BC_Use ) Values('Fw001',0,'XS-PRG','XS-PRG',4,'07/18/2001','1','1','1')
Insert Into Pub_BillCode( Own_id,BC_MaxID,BC_Type,BC_Prefix,BC_SerialLen,BC_Date,BC_HasDate,BC_AutoIncrease,BC_Use ) Values('Fw001',8,'XS-QTN','XS-QP',4,'05/22/2002','1','1','1')
Insert Into Pub_BillCode( Own_id,BC_MaxID,BC_Type,BC_Prefix,BC_SerialLen,BC_Date,BC_HasDate,BC_AutoIncrease,BC_Use ) Values('Fw001',0,'XS-RTN','XS-RTN',4,'01/25/2002','1','1','1')
Insert Into Pub_BillCode( Own_id,BC_MaxID,BC_Type,BC_Prefix,BC_SerialLen,BC_Date,BC_HasDate,BC_AutoIncrease,BC_Use ) Values('Fw001',21,'XS-SO','XS-S0',5,'05/22/2002','1','1','1')
Insert Into Pub_BillCode( Own_id,BC_MaxID,BC_Type,BC_Prefix,BC_SerialLen,BC_Date,BC_HasDate,BC_AutoIncrease,BC_Use ) Values('fw001',0,'XS-SP','XS-SP',4,'01/27/2002','1','1','1')
Insert Into Pub_BillCode( Own_id,BC_MaxID,BC_Type,BC_Prefix,BC_SerialLen,BC_Date,BC_HasDate,BC_AutoIncrease,BC_Use ) Values('Fw001',0,'XS-TSK','XS-TSK',4,'01/28/2002','1','1','1')
Insert Into Pub_BillCode( Own_id,BC_MaxID,BC_Type,BC_Prefix,BC_SerialLen,BC_Date,BC_HasDate,BC_AutoIncrease,BC_Use ) Values('Fw001',0,'ZH-CG','ZH-CG',4,'','1','1','1')
Insert Into Pub_BillCode( Own_id,BC_MaxID,BC_Type,BC_Prefix,BC_SerialLen,BC_Date,BC_HasDate,BC_AutoIncrease,BC_Use ) Values('Fw001',0,'ZH-CO','ZH-CO',4,'01/18/2002','1','1','1')
Insert Into Pub_BillCode( Own_id,BC_MaxID,BC_Type,BC_Prefix,BC_SerialLen,BC_Date,BC_HasDate,BC_AutoIncrease,BC_Use ) Values('Fw001',0,'ZH-EP','ZH-EP',4,'01/24/2002','1','1','1')
Insert Into Pub_BillCode( Own_id,BC_MaxID,BC_Type,BC_Prefix,BC_SerialLen,BC_Date,BC_HasDate,BC_AutoIncrease,BC_Use ) Values('Fw001',0,'ZH-PL','ZH-PL',4,'02/23/2002','1','1','1')
Insert Into Pub_BillCode( Own_id,BC_MaxID,BC_Type,BC_Prefix,BC_SerialLen,BC_Date,BC_HasDate,BC_AutoIncrease,BC_Use ) Values('Fw001',2,'ZH-PRG','ZH-PRG',4,'07/04/2002','1','1','1')
Insert Into Pub_BillCode( Own_id,BC_MaxID,BC_Type,BC_Prefix,BC_SerialLen,BC_Date,BC_HasDate,BC_AutoIncrease,BC_Use ) Values('Fw001',0,'ZH-QP','ZH-QP',4,'02/06/2002','1','1','1')
Insert Into Pub_BillCode( Own_id,BC_MaxID,BC_Type,BC_Prefix,BC_SerialLen,BC_Date,BC_HasDate,BC_AutoIncrease,BC_Use ) Values('Fw001',0,'ZH-RTN','ZH-RTN',4,'01/24/2002','1','1','1')
Insert Into Pub_BillCode( Own_id,BC_MaxID,BC_Type,BC_Prefix,BC_SerialLen,BC_Date,BC_HasDate,BC_AutoIncrease,BC_Use ) Values('Fw001',1,'ZH-TSK','ZH-TSK',4,'07/09/2002','1','1','1')
Insert Into Pub_BillCode( Own_id,BC_MaxID,BC_Type,BC_Prefix,BC_SerialLen,BC_Date,BC_HasDate,BC_AutoIncrease,BC_Use ) Values('Fw001',0,'ZL-MS','ZL-MS',4,'02/19/2002','1','1','1')
Insert Into Pub_BillCode( Own_id,BC_MaxID,BC_Type,BC_Prefix,BC_SerialLen,BC_Date,BC_HasDate,BC_AutoIncrease,BC_Use ) Values('Fw001',0,'ZL-PL','ZL-PL',4,'02/20/2002','1','1','1')
Insert Into Pub_BillCode( Own_id,BC_MaxID,BC_Type,BC_Prefix,BC_SerialLen,BC_Date,BC_HasDate,BC_AutoIncrease,BC_Use ) Values('fw001',0,'ZL-SF','ZL-SF',4,'','1','1','1')
GO

Insert Into Pub_Calendar( own_id,Emp_id,Cal_Date,Cal_StartTime,Cal_EndTime,Cal_Subject,Cal_Location,Cal_Type,Task_ID,Cal_Desc,Cal_Remind ) Values('fw001',1,'12/20/2001','12/20/2001 8:45:00','12/20/2001 15:00:00','我想来你那','LODON','个人事务','ZH-CO-20011128-0004','磊',Null)
Insert Into Pub_Calendar( own_id,Emp_id,Cal_Date,Cal_StartTime,Cal_EndTime,Cal_Subject,Cal_Location,Cal_Type,Task_ID,Cal_Desc,Cal_Remind ) Values('fw001',1,'12/20/2001','12/20/2001 16:00:00','12/20/2001 18:00:00','ddf','dfd','个人事务','','',Null)
Insert Into Pub_Calendar( own_id,Emp_id,Cal_Date,Cal_StartTime,Cal_EndTime,Cal_Subject,Cal_Location,Cal_Type,Task_ID,Cal_Desc,Cal_Remind ) Values('fw001',1,'12/12/2001','12/12/2001 8:00:00','12/12/2001 15:30:00','ddfd','','处理公司事务','','',Null)
Insert Into Pub_Calendar( own_id,Emp_id,Cal_Date,Cal_StartTime,Cal_EndTime,Cal_Subject,Cal_Location,Cal_Type,Task_ID,Cal_Desc,Cal_Remind ) Values('fw001',1,'12/21/2001','12/21/2001 8:15:00','12/21/2001 10:00:00','dfdfd','','年度计划制定','C0006','',Null)
Insert Into Pub_Calendar( own_id,Emp_id,Cal_Date,Cal_StartTime,Cal_EndTime,Cal_Subject,Cal_Location,Cal_Type,Task_ID,Cal_Desc,Cal_Remind ) Values('fw001',1,'12/11/2001','12/11/2001 9:15:00','12/11/2001 14:15:00','rr','tttt','员工培训','C0001','yyyyyyyyyyyyyyy',Null)
Insert Into Pub_Calendar( own_id,Emp_id,Cal_Date,Cal_StartTime,Cal_EndTime,Cal_Subject,Cal_Location,Cal_Type,Task_ID,Cal_Desc,Cal_Remind ) Values('fw001',1,'01/15/2002','01/15/2002 9:15:00','01/15/2002 18:30:00','你好','','年度计划制定','','',Null)
Insert Into Pub_Calendar( own_id,Emp_id,Cal_Date,Cal_StartTime,Cal_EndTime,Cal_Subject,Cal_Location,Cal_Type,Task_ID,Cal_Desc,Cal_Remind ) Values('fw001',1,'01/17/2002','01/17/2002 18:30:00','','今天请人吃饭','通城国际大酒店','个人事务','','请公司各位同仁吃饭。',Null)
Insert Into Pub_Calendar( own_id,Emp_id,Cal_Date,Cal_StartTime,Cal_EndTime,Cal_Subject,Cal_Location,Cal_Type,Task_ID,Cal_Desc,Cal_Remind ) Values('fw001',1,'01/17/2002','01/17/2002 10:00:00','01/17/2002 11:45:00','今天公司举行新年茶话会','富慧公司','处理公司事务','','',Null)
Insert Into Pub_Calendar( own_id,Emp_id,Cal_Date,Cal_StartTime,Cal_EndTime,Cal_Subject,Cal_Location,Cal_Type,Task_ID,Cal_Desc,Cal_Remind ) Values('fw001',1,'01/17/2002','01/17/2002 14:00:00','01/17/2002 15:00:00','接待客户','公司','处理公司事务','','',3)
Insert Into Pub_Calendar( own_id,Emp_id,Cal_Date,Cal_StartTime,Cal_EndTime,Cal_Subject,Cal_Location,Cal_Type,Task_ID,Cal_Desc,Cal_Remind ) Values('fw001',1,'01/17/2002','01/17/2002 15:00:00','01/17/2002 15:30:00','查阅年度计划','','处理公司事务','','',Null)
Insert Into Pub_Calendar( own_id,Emp_id,Cal_Date,Cal_StartTime,Cal_EndTime,Cal_Subject,Cal_Location,Cal_Type,Task_ID,Cal_Desc,Cal_Remind ) Values('fw001',1,'01/17/2002','01/17/2002 15:30:00','01/17/2002 16:30:00','写年度销售计划','','年度计划制定','','',Null)
Insert Into Pub_Calendar( own_id,Emp_id,Cal_Date,Cal_StartTime,Cal_EndTime,Cal_Subject,Cal_Location,Cal_Type,Task_ID,Cal_Desc,Cal_Remind ) Values('fw001',1,'01/17/2002','01/17/2002 2:45:00','','参加','','个人事务','','',Null)
Insert Into Pub_Calendar( own_id,Emp_id,Cal_Date,Cal_StartTime,Cal_EndTime,Cal_Subject,Cal_Location,Cal_Type,Task_ID,Cal_Desc,Cal_Remind ) Values('fw001',1,'01/17/2002','01/17/2002 1:30:00','','参加生日晚会','','个人事务','','',Null)
Insert Into Pub_Calendar( own_id,Emp_id,Cal_Date,Cal_StartTime,Cal_EndTime,Cal_Subject,Cal_Location,Cal_Type,Task_ID,Cal_Desc,Cal_Remind ) Values('fw001',1,'01/25/2002','01/25/2002','','I go fishing','','个人事务','','',Null)
Insert Into Pub_Calendar( own_id,Emp_id,Cal_Date,Cal_StartTime,Cal_EndTime,Cal_Subject,Cal_Location,Cal_Type,Task_ID,Cal_Desc,Cal_Remind ) Values('fw001',1,'01/26/2002','01/26/2002','','dsf','dsfas','处理公司事务','4','',Null)
Insert Into Pub_Calendar( own_id,Emp_id,Cal_Date,Cal_StartTime,Cal_EndTime,Cal_Subject,Cal_Location,Cal_Type,Task_ID,Cal_Desc,Cal_Remind ) Values('fw001',1,'01/31/2002','01/31/2002 2:00:00','01/31/2002 2:00:00','dfas','dfasdf','处理公司事务','4','',Null)
Insert Into Pub_Calendar( own_id,Emp_id,Cal_Date,Cal_StartTime,Cal_EndTime,Cal_Subject,Cal_Location,Cal_Type,Task_ID,Cal_Desc,Cal_Remind ) Values('fw001',1,'02/01/2002','02/01/2002 1:15:00','02/01/2002 8:45:00','rdfd','rrr','处理公司事务','9','ggrhhhth',1)
Insert Into Pub_Calendar( own_id,Emp_id,Cal_Date,Cal_StartTime,Cal_EndTime,Cal_Subject,Cal_Location,Cal_Type,Task_ID,Cal_Desc,Cal_Remind ) Values('fw001',1,'02/01/2002','02/01/2002 20:30:00','02/01/2002 22:30:00','提高如果如果人','突然工人感','个人事务','9','提高如同工人提高突然',Null)
Insert Into Pub_Calendar( own_id,Emp_id,Cal_Date,Cal_StartTime,Cal_EndTime,Cal_Subject,Cal_Location,Cal_Type,Task_ID,Cal_Desc,Cal_Remind ) Values('fw001',1,'03/13/2002','03/13/2002','','aaaaa','','个人事务','','asdfasdfasdfasdf',Null)
Insert Into Pub_Calendar( own_id,Emp_id,Cal_Date,Cal_StartTime,Cal_EndTime,Cal_Subject,Cal_Location,Cal_Type,Task_ID,Cal_Desc,Cal_Remind ) Values('fw001',1,'03/13/2002','03/13/2002','','asdfasdfasdf','','个人事务','3','asdfasdfasdf',Null)
Insert Into Pub_Calendar( own_id,Emp_id,Cal_Date,Cal_StartTime,Cal_EndTime,Cal_Subject,Cal_Location,Cal_Type,Task_ID,Cal_Desc,Cal_Remind ) Values('fw001',1,'03/14/2002','03/14/2002','','asdfasdf','','处理公司事务','9','',Null)
Insert Into Pub_Calendar( own_id,Emp_id,Cal_Date,Cal_StartTime,Cal_EndTime,Cal_Subject,Cal_Location,Cal_Type,Task_ID,Cal_Desc,Cal_Remind ) Values('fw001',1,'03/18/2002','03/18/2002 9:30:00','03/18/2002 18:30:00','test','','处理公司事务','9','test',Null)
Insert Into Pub_Calendar( own_id,Emp_id,Cal_Date,Cal_StartTime,Cal_EndTime,Cal_Subject,Cal_Location,Cal_Type,Task_ID,Cal_Desc,Cal_Remind ) Values('fw001',1,'03/24/2002','03/24/2002','','aaa','','处理公司事务','','',Null)
Insert Into Pub_Calendar( own_id,Emp_id,Cal_Date,Cal_StartTime,Cal_EndTime,Cal_Subject,Cal_Location,Cal_Type,Task_ID,Cal_Desc,Cal_Remind ) Values('fw001',1,'03/31/2002','03/31/2002 2:30:00','','2343','dfdsf','公司例会','','sdfdsfsd',2)
Insert Into Pub_Calendar( own_id,Emp_id,Cal_Date,Cal_StartTime,Cal_EndTime,Cal_Subject,Cal_Location,Cal_Type,Task_ID,Cal_Desc,Cal_Remind ) Values('fw001',1,'03/21/2002','03/21/2002','','dfgdfg','sdfsd','公司例会','','sfsdfsdf',Null)
Insert Into Pub_Calendar( own_id,Emp_id,Cal_Date,Cal_StartTime,Cal_EndTime,Cal_Subject,Cal_Location,Cal_Type,Task_ID,Cal_Desc,Cal_Remind ) Values('fw001',1,'03/28/2002','03/28/2002 8:30:00','03/28/2002 12:00:00','电风扇的','士大夫大师傅','处理公司事务','','士大夫士大夫',5)
Insert Into Pub_Calendar( own_id,Emp_id,Cal_Date,Cal_StartTime,Cal_EndTime,Cal_Subject,Cal_Location,Cal_Type,Task_ID,Cal_Desc,Cal_Remind ) Values('fw001',1,'03/24/2002','03/24/2002 10:00:00','','fdsf','sdfdsf','个人事务','','sfsdf',Null)
Insert Into Pub_Calendar( own_id,Emp_id,Cal_Date,Cal_StartTime,Cal_EndTime,Cal_Subject,Cal_Location,Cal_Type,Task_ID,Cal_Desc,Cal_Remind ) Values('fw001',1,'03/21/2002','03/21/2002 10:30:00','','sdf','dfdsf','公司例会','','sdfsdf',Null)
Insert Into Pub_Calendar( own_id,Emp_id,Cal_Date,Cal_StartTime,Cal_EndTime,Cal_Subject,Cal_Location,Cal_Type,Task_ID,Cal_Desc,Cal_Remind ) Values('fw001',1,'03/28/2002','03/28/2002 9:00:00','','dfdsfsd','dff','个人事务','','sdfdsfs',Null)
Insert Into Pub_Calendar( own_id,Emp_id,Cal_Date,Cal_StartTime,Cal_EndTime,Cal_Subject,Cal_Location,Cal_Type,Task_ID,Cal_Desc,Cal_Remind ) Values('fw001',1,'03/30/2002','03/30/2002 9:15:00','03/30/2002 12:30:00','打网球','天河体育中心','个人事务','','',2)
Insert Into Pub_Calendar( own_id,Emp_id,Cal_Date,Cal_StartTime,Cal_EndTime,Cal_Subject,Cal_Location,Cal_Type,Task_ID,Cal_Desc,Cal_Remind ) Values('fw001',1,'04/01/2002','04/01/2002 9:30:00','','公司士大夫的','公司办公室','处理公司事务','','十分似的',4)
Insert Into Pub_Calendar( own_id,Emp_id,Cal_Date,Cal_StartTime,Cal_EndTime,Cal_Subject,Cal_Location,Cal_Type,Task_ID,Cal_Desc,Cal_Remind ) Values('fw001',1,'04/02/2002','04/02/2002 10:45:00','04/02/2002 18:45:00','大师傅大师傅','士大夫','处理公司事务','','士大夫',5)
Insert Into Pub_Calendar( own_id,Emp_id,Cal_Date,Cal_StartTime,Cal_EndTime,Cal_Subject,Cal_Location,Cal_Type,Task_ID,Cal_Desc,Cal_Remind ) Values('fw001',1,'03/29/2002','03/29/2002 10:00:00','03/29/2002 11:00:00','fffd','ddfsdf','个人事务','','wedfd',Null)
Insert Into Pub_Calendar( own_id,Emp_id,Cal_Date,Cal_StartTime,Cal_EndTime,Cal_Subject,Cal_Location,Cal_Type,Task_ID,Cal_Desc,Cal_Remind ) Values('fw001',1,'03/29/2002','03/29/2002 14:00:00','03/29/2002 17:00:00','dfgdf','dfgdfg','处理公司事务','','dfgdfg',Null)
Insert Into Pub_Calendar( own_id,Emp_id,Cal_Date,Cal_StartTime,Cal_EndTime,Cal_Subject,Cal_Location,Cal_Type,Task_ID,Cal_Desc,Cal_Remind ) Values('fw001',1,'04/15/2002','04/15/2002','','上门拜访客户','广州市','处理公司事务','','',4)
Insert Into Pub_Calendar( own_id,Emp_id,Cal_Date,Cal_StartTime,Cal_EndTime,Cal_Subject,Cal_Location,Cal_Type,Task_ID,Cal_Desc,Cal_Remind ) Values('fw001',1,'04/06/2002','04/06/2002','','sdfsd','sdfs','处理公司事务','','sdfsdf',3)
Insert Into Pub_Calendar( own_id,Emp_id,Cal_Date,Cal_StartTime,Cal_EndTime,Cal_Subject,Cal_Location,Cal_Type,Task_ID,Cal_Desc,Cal_Remind ) Values('fw001',1,'04/18/2002','04/18/2002 9:30:00','04/18/2002 12:00:00','企业营销知识讲座','广州','个人事务','','',4)
Insert Into Pub_Calendar( own_id,Emp_id,Cal_Date,Cal_StartTime,Cal_EndTime,Cal_Subject,Cal_Location,Cal_Type,Task_ID,Cal_Desc,Cal_Remind ) Values('fw001',1,'06/07/2002','06/07/2002 8:00:00','06/07/2002 22:00:00','sdfsd','sfsd','1','','sdfsd',3)
Insert Into Pub_Calendar( own_id,Emp_id,Cal_Date,Cal_StartTime,Cal_EndTime,Cal_Subject,Cal_Location,Cal_Type,Task_ID,Cal_Desc,Cal_Remind ) Values('fw001',1,'06/10/2002','06/10/2002 9:30:00','06/10/2002 18:00:00','士大夫是','士大夫似的','1','','士大夫似的法是士大夫  士大夫十分似的士大夫',Null)
Insert Into Pub_Calendar( own_id,Emp_id,Cal_Date,Cal_StartTime,Cal_EndTime,Cal_Subject,Cal_Location,Cal_Type,Task_ID,Cal_Desc,Cal_Remind ) Values('fw001',1,'06/28/2002','06/28/2002 11:30:00','','test','test','1','','test',1)
GO

Insert Into Pub_Event( pe_id,own_id,pe_subject,pe_type,pe_Addr,pe_startdate,pe_enddate,pe_content,pe_priority,emp_id,pe_empid,pe_baseid,pe_readed ) Values(2,'fw001','去广州大道办理',4,'','07/08/2002','07/08/2002','','普通',1,2,1,'1')
Insert Into Pub_Event( pe_id,own_id,pe_subject,pe_type,pe_Addr,pe_startdate,pe_enddate,pe_content,pe_priority,emp_id,pe_empid,pe_baseid,pe_readed ) Values(3,'fw001','去广州大道办理',4,'','07/08/2002','07/08/2002','','普通',1,3,1,'0')
Insert Into Pub_Event( pe_id,own_id,pe_subject,pe_type,pe_Addr,pe_startdate,pe_enddate,pe_content,pe_priority,emp_id,pe_empid,pe_baseid,pe_readed ) Values(4,'fw001','去广州大道办理',4,'','07/08/2002','07/08/2002','','普通',1,5,1,'0')
Insert Into Pub_Event( pe_id,own_id,pe_subject,pe_type,pe_Addr,pe_startdate,pe_enddate,pe_content,pe_priority,emp_id,pe_empid,pe_baseid,pe_readed ) Values(5,'fw001','去广州大道办理',4,'','07/08/2002','07/08/2002','','普通',1,9,1,'1')
Insert Into Pub_Event( pe_id,own_id,pe_subject,pe_type,pe_Addr,pe_startdate,pe_enddate,pe_content,pe_priority,emp_id,pe_empid,pe_baseid,pe_readed ) Values(6,'fw001','去广州大道办理',4,'','07/08/2002','07/08/2002','','普通',1,10,1,'0')
Insert Into Pub_Event( pe_id,own_id,pe_subject,pe_type,pe_Addr,pe_startdate,pe_enddate,pe_content,pe_priority,emp_id,pe_empid,pe_baseid,pe_readed ) Values(7,'fw001','去广州大道办理',4,'','07/08/2002','07/08/2002','','普通',1,12,1,'0')
Insert Into Pub_Event( pe_id,own_id,pe_subject,pe_type,pe_Addr,pe_startdate,pe_enddate,pe_content,pe_priority,emp_id,pe_empid,pe_baseid,pe_readed ) Values(8,'fw001','去广州大道办理',4,'','07/08/2002','07/08/2002','','普通',1,13,1,'0')
Insert Into Pub_Event( pe_id,own_id,pe_subject,pe_type,pe_Addr,pe_startdate,pe_enddate,pe_content,pe_priority,emp_id,pe_empid,pe_baseid,pe_readed ) Values(10,'fw001','tset',3,'','07/08/2002','07/08/2002','','缓慢',1,2,9,'0')
Insert Into Pub_Event( pe_id,own_id,pe_subject,pe_type,pe_Addr,pe_startdate,pe_enddate,pe_content,pe_priority,emp_id,pe_empid,pe_baseid,pe_readed ) Values(11,'fw001','tset',3,'','07/08/2002','07/08/2002','','缓慢',1,3,9,'0')
Insert Into Pub_Event( pe_id,own_id,pe_subject,pe_type,pe_Addr,pe_startdate,pe_enddate,pe_content,pe_priority,emp_id,pe_empid,pe_baseid,pe_readed ) Values(12,'fw001','tset',3,'','07/08/2002','07/08/2002','','缓慢',1,5,9,'0')
Insert Into Pub_Event( pe_id,own_id,pe_subject,pe_type,pe_Addr,pe_startdate,pe_enddate,pe_content,pe_priority,emp_id,pe_empid,pe_baseid,pe_readed ) Values(13,'fw001','公司每周例会',1,'公司会议室','07/09/2002','07/09/2002','','普通',1,1,13,'0')
Insert Into Pub_Event( pe_id,own_id,pe_subject,pe_type,pe_Addr,pe_startdate,pe_enddate,pe_content,pe_priority,emp_id,pe_empid,pe_baseid,pe_readed ) Values(14,'fw001','公司每周例会',1,'公司会议室','07/09/2002','07/09/2002','','普通',1,2,13,'0')
Insert Into Pub_Event( pe_id,own_id,pe_subject,pe_type,pe_Addr,pe_startdate,pe_enddate,pe_content,pe_priority,emp_id,pe_empid,pe_baseid,pe_readed ) Values(15,'fw001','公司每周例会',1,'公司会议室','07/09/2002','07/09/2002','','普通',1,3,13,'0')
Insert Into Pub_Event( pe_id,own_id,pe_subject,pe_type,pe_Addr,pe_startdate,pe_enddate,pe_content,pe_priority,emp_id,pe_empid,pe_baseid,pe_readed ) Values(16,'fw001','公司每周例会',1,'公司会议室','07/09/2002','07/09/2002','','普通',1,5,13,'0')
Insert Into Pub_Event( pe_id,own_id,pe_subject,pe_type,pe_Addr,pe_startdate,pe_enddate,pe_content,pe_priority,emp_id,pe_empid,pe_baseid,pe_readed ) Values(17,'fw001','公司每周例会',1,'公司会议室','07/09/2002','07/09/2002','','普通',1,9,13,'0')
Insert Into Pub_Event( pe_id,own_id,pe_subject,pe_type,pe_Addr,pe_startdate,pe_enddate,pe_content,pe_priority,emp_id,pe_empid,pe_baseid,pe_readed ) Values(18,'fw001','公司每周例会',1,'公司会议室','07/09/2002','07/09/2002','','普通',1,10,13,'0')
Insert Into Pub_Event( pe_id,own_id,pe_subject,pe_type,pe_Addr,pe_startdate,pe_enddate,pe_content,pe_priority,emp_id,pe_empid,pe_baseid,pe_readed ) Values(19,'fw001','公司每周例会',1,'公司会议室','07/09/2002','07/09/2002','','普通',1,12,13,'0')
Insert Into Pub_Event( pe_id,own_id,pe_subject,pe_type,pe_Addr,pe_startdate,pe_enddate,pe_content,pe_priority,emp_id,pe_empid,pe_baseid,pe_readed ) Values(20,'fw001','公司每周例会',1,'公司会议室','07/09/2002','07/09/2002','','普通',1,13,13,'0')
Insert Into Pub_Event( pe_id,own_id,pe_subject,pe_type,pe_Addr,pe_startdate,pe_enddate,pe_content,pe_priority,emp_id,pe_empid,pe_baseid,pe_readed ) Values(21,'fw001','公司每周例会',1,'公司会议室','07/09/2002','07/09/2002','','普通',1,14,13,'0')
Insert Into Pub_Event( pe_id,own_id,pe_subject,pe_type,pe_Addr,pe_startdate,pe_enddate,pe_content,pe_priority,emp_id,pe_empid,pe_baseid,pe_readed ) Values(22,'fw001','公司每周例会',1,'公司会议室','07/09/2002','07/09/2002','','普通',1,16,13,'0')
Insert Into Pub_Event( pe_id,own_id,pe_subject,pe_type,pe_Addr,pe_startdate,pe_enddate,pe_content,pe_priority,emp_id,pe_empid,pe_baseid,pe_readed ) Values(23,'fw001','公司每周例会',1,'公司会议室','07/09/2002','07/09/2002','','普通',1,17,13,'0')
GO

Insert Into Pub_Login( own_id,Login_Name,Login_Pwd,Login_Type,Login_Status,Emp_ID,Login_Forbid ) Values('fw001','admin','admin','','0',17,'0')
Insert Into Pub_Login( own_id,Login_Name,Login_Pwd,Login_Type,Login_Status,Emp_ID,Login_Forbid ) Values('fw001','gsh','888888','','0',14,'1')
Insert Into Pub_Login( own_id,Login_Name,Login_Pwd,Login_Type,Login_Status,Emp_ID,Login_Forbid ) Values('fw001','ljc','1234','','0',2,'0')
Insert Into Pub_Login( own_id,Login_Name,Login_Pwd,Login_Type,Login_Status,Emp_ID,Login_Forbid ) Values('fw001','qdf','888888','','0',12,'1')
Insert Into Pub_Login( own_id,Login_Name,Login_Pwd,Login_Type,Login_Status,Emp_ID,Login_Forbid ) Values('fw001','wyx','888888','','0',13,'1')
Insert Into Pub_Login( own_id,Login_Name,Login_Pwd,Login_Type,Login_Status,Emp_ID,Login_Forbid ) Values('fw001','wzm','1234','','0',16,'1')
Insert Into Pub_Login( own_id,Login_Name,Login_Pwd,Login_Type,Login_Status,Emp_ID,Login_Forbid ) Values('fw001','yb','888888','','0',15,'1')
Insert Into Pub_Login( own_id,Login_Name,Login_Pwd,Login_Type,Login_Status,Emp_ID,Login_Forbid ) Values('fw001','ZDQ','888888','','0',9,'0')
Insert Into Pub_Login( own_id,Login_Name,Login_Pwd,Login_Type,Login_Status,Emp_ID,Login_Forbid ) Values('fw001','demo','8888','','0',1,'0')
Insert Into Pub_Login( own_id,Login_Name,Login_Pwd,Login_Type,Login_Status,Emp_ID,Login_Forbid ) Values('fw001','zl','888888','','0',10,'0')
Insert Into Pub_Login( own_id,Login_Name,Login_Pwd,Login_Type,Login_Status,Emp_ID,Login_Forbid ) Values('fw001','zsh','1234','','0',3,'0')
Insert Into Pub_Login( own_id,Login_Name,Login_Pwd,Login_Type,Login_Status,Emp_ID,Login_Forbid ) Values('fw001','zxx','zxx','','0',5,'0')
GO

Insert Into Pub_MsgBoard( own_id,MB_Subject,MB_Time,MB_Content,Emp_ID,MB_Sender,MB_Read ) Values('fw001','sds','03/30/2002 10:02:51','xfdf',1,1,'1')
Insert Into Pub_MsgBoard( own_id,MB_Subject,MB_Time,MB_Content,Emp_ID,MB_Sender,MB_Read ) Values('fw001','bb','04/03/2002 22:10:47','',2,1,'0')
Insert Into Pub_MsgBoard( own_id,MB_Subject,MB_Time,MB_Content,Emp_ID,MB_Sender,MB_Read ) Values('fw001','sdfsd','04/06/2002 10:12:27','sdfdsf',2,1,'0')
Insert Into Pub_MsgBoard( own_id,MB_Subject,MB_Time,MB_Content,Emp_ID,MB_Sender,MB_Read ) Values('fw001','sdf','04/06/2002 10:12:37','sdf',1,1,'1')
Insert Into Pub_MsgBoard( own_id,MB_Subject,MB_Time,MB_Content,Emp_ID,MB_Sender,MB_Read ) Values('fw001','sdfsd','04/06/2002 10:12:44','sdfds',1,1,'1')
Insert Into Pub_MsgBoard( own_id,MB_Subject,MB_Time,MB_Content,Emp_ID,MB_Sender,MB_Read ) Values('fw001','test','04/06/2002 11:49:45','',2,1,'0')
Insert Into Pub_MsgBoard( own_id,MB_Subject,MB_Time,MB_Content,Emp_ID,MB_Sender,MB_Read ) Values('fw001','test','04/06/2002 11:49:45','',3,1,'1')
Insert Into Pub_MsgBoard( own_id,MB_Subject,MB_Time,MB_Content,Emp_ID,MB_Sender,MB_Read ) Values('fw001','xcfdx','04/06/2002 11:53:18','',2,1,'0')
Insert Into Pub_MsgBoard( own_id,MB_Subject,MB_Time,MB_Content,Emp_ID,MB_Sender,MB_Read ) Values('fw001','xcfdx','04/06/2002 11:53:18','',3,1,'0')
Insert Into Pub_MsgBoard( own_id,MB_Subject,MB_Time,MB_Content,Emp_ID,MB_Sender,MB_Read ) Values('fw001','sdfgd','04/06/2002 11:54:09','sdfsd',2,1,'0')
Insert Into Pub_MsgBoard( own_id,MB_Subject,MB_Time,MB_Content,Emp_ID,MB_Sender,MB_Read ) Values('fw001','dfg','04/06/2002 11:55:12','dfgdfg',2,1,'0')
Insert Into Pub_MsgBoard( own_id,MB_Subject,MB_Time,MB_Content,Emp_ID,MB_Sender,MB_Read ) Values('fw001','dfg','04/06/2002 11:55:12','dfgdfg',3,1,'0')
Insert Into Pub_MsgBoard( own_id,MB_Subject,MB_Time,MB_Content,Emp_ID,MB_Sender,MB_Read ) Values('fw001','sts','04/06/2002 11:57:33','fsdfsd',2,1,'0')
Insert Into Pub_MsgBoard( own_id,MB_Subject,MB_Time,MB_Content,Emp_ID,MB_Sender,MB_Read ) Values('fw001','sts','04/06/2002 11:57:33','fsdfsd',3,1,'0')
Insert Into Pub_MsgBoard( own_id,MB_Subject,MB_Time,MB_Content,Emp_ID,MB_Sender,MB_Read ) Values('fw001','打网球','04/14/2002 2:08:09','   跟客户进行一场网球友谊赛。',1,1,'1')
GO

Insert Into Pub_Pending( own_id,Emp_ID,PD_Status,PD_Subject,PD_TgtID,PD_TgtName,PD_Type,PD_Date,PD_FinDate,PD_TaskID,PD_Read ) Values('fw001',2,Null,'tset',10,'','event','07/08/2002','',Null,'0')
Insert Into Pub_Pending( own_id,Emp_ID,PD_Status,PD_Subject,PD_TgtID,PD_TgtName,PD_Type,PD_Date,PD_FinDate,PD_TaskID,PD_Read ) Values('fw001',3,Null,'tset',11,'','event','07/08/2002','',Null,'0')
Insert Into Pub_Pending( own_id,Emp_ID,PD_Status,PD_Subject,PD_TgtID,PD_TgtName,PD_Type,PD_Date,PD_FinDate,PD_TaskID,PD_Read ) Values('fw001',5,Null,'tset',12,'','event','07/08/2002','',Null,'0')
Insert Into Pub_Pending( own_id,Emp_ID,PD_Status,PD_Subject,PD_TgtID,PD_TgtName,PD_Type,PD_Date,PD_FinDate,PD_TaskID,PD_Read ) Values('fw001',1,Null,'公司每周例会',13,'','event','07/09/2002','',Null,'0')
Insert Into Pub_Pending( own_id,Emp_ID,PD_Status,PD_Subject,PD_TgtID,PD_TgtName,PD_Type,PD_Date,PD_FinDate,PD_TaskID,PD_Read ) Values('fw001',2,Null,'公司每周例会',14,'','event','07/09/2002','',Null,'0')
Insert Into Pub_Pending( own_id,Emp_ID,PD_Status,PD_Subject,PD_TgtID,PD_TgtName,PD_Type,PD_Date,PD_FinDate,PD_TaskID,PD_Read ) Values('fw001',3,Null,'公司每周例会',15,'','event','07/09/2002','',Null,'0')
Insert Into Pub_Pending( own_id,Emp_ID,PD_Status,PD_Subject,PD_TgtID,PD_TgtName,PD_Type,PD_Date,PD_FinDate,PD_TaskID,PD_Read ) Values('fw001',5,Null,'公司每周例会',16,'','event','07/09/2002','',Null,'0')
Insert Into Pub_Pending( own_id,Emp_ID,PD_Status,PD_Subject,PD_TgtID,PD_TgtName,PD_Type,PD_Date,PD_FinDate,PD_TaskID,PD_Read ) Values('fw001',9,Null,'公司每周例会',17,'','event','07/09/2002','',Null,'0')
Insert Into Pub_Pending( own_id,Emp_ID,PD_Status,PD_Subject,PD_TgtID,PD_TgtName,PD_Type,PD_Date,PD_FinDate,PD_TaskID,PD_Read ) Values('fw001',10,Null,'公司每周例会',18,'','event','07/09/2002','',Null,'0')
Insert Into Pub_Pending( own_id,Emp_ID,PD_Status,PD_Subject,PD_TgtID,PD_TgtName,PD_Type,PD_Date,PD_FinDate,PD_TaskID,PD_Read ) Values('fw001',12,Null,'公司每周例会',19,'','event','07/09/2002','',Null,'0')
Insert Into Pub_Pending( own_id,Emp_ID,PD_Status,PD_Subject,PD_TgtID,PD_TgtName,PD_Type,PD_Date,PD_FinDate,PD_TaskID,PD_Read ) Values('fw001',13,Null,'公司每周例会',20,'','event','07/09/2002','',Null,'0')
Insert Into Pub_Pending( own_id,Emp_ID,PD_Status,PD_Subject,PD_TgtID,PD_TgtName,PD_Type,PD_Date,PD_FinDate,PD_TaskID,PD_Read ) Values('fw001',14,Null,'公司每周例会',21,'','event','07/09/2002','',Null,'0')
Insert Into Pub_Pending( own_id,Emp_ID,PD_Status,PD_Subject,PD_TgtID,PD_TgtName,PD_Type,PD_Date,PD_FinDate,PD_TaskID,PD_Read ) Values('fw001',16,Null,'公司每周例会',22,'','event','07/09/2002','',Null,'0')
Insert Into Pub_Pending( own_id,Emp_ID,PD_Status,PD_Subject,PD_TgtID,PD_TgtName,PD_Type,PD_Date,PD_FinDate,PD_TaskID,PD_Read ) Values('fw001',17,Null,'公司每周例会',23,'','event','07/09/2002','',Null,'0')
GO

Insert Into Pub_Progress( prg_ID,own_id,Task_Id,Prg_Code,Prg_Type,prg_objID,prg_objType,prg_contactID,Prg_Executor,Prg_Subject,Prg_StartDate,Prg_EndDate,Prg_Action,Prg_CampType,Prg_Cost,Prg_Desc,prg_finish,prg_priority,prg_Result,Prg_Memo ) Values(17,'fw001',67,'XS-PRG-20010718-0003','sales     ',Null,'',Null,1,'efef','07/13/2001','07/13/2001',Null,Null,32423,'','0','',Null,'')
Insert Into Pub_Progress( prg_ID,own_id,Task_Id,Prg_Code,Prg_Type,prg_objID,prg_objType,prg_contactID,Prg_Executor,Prg_Subject,Prg_StartDate,Prg_EndDate,Prg_Action,Prg_CampType,Prg_Cost,Prg_Desc,prg_finish,prg_priority,prg_Result,Prg_Memo ) Values(44,'fw001',71,'ZH-PRG-20020617-0003','market    ',Null,'',Null,1,'第一阶段','06/07/2002','06/17/2002 15:15:00',1,1,5700,'','1','',Null,'')
Insert Into Pub_Progress( prg_ID,own_id,Task_Id,Prg_Code,Prg_Type,prg_objID,prg_objType,prg_contactID,Prg_Executor,Prg_Subject,Prg_StartDate,Prg_EndDate,Prg_Action,Prg_CampType,Prg_Cost,Prg_Desc,prg_finish,prg_priority,prg_Result,Prg_Memo ) Values(45,'fw001',71,'ZH-PRG-20020617-0004','market    ',Null,'',Null,1,'第二阶段','06/15/2002','06/17/2002 15:15:00',58,1,3250,'','1','',Null,'')
Insert Into Pub_Progress( prg_ID,own_id,Task_Id,Prg_Code,Prg_Type,prg_objID,prg_objType,prg_contactID,Prg_Executor,Prg_Subject,Prg_StartDate,Prg_EndDate,Prg_Action,Prg_CampType,Prg_Cost,Prg_Desc,prg_finish,prg_priority,prg_Result,Prg_Memo ) Values(46,'fw001',71,'ZH-PRG-20020617-0005','market    ',Null,'',Null,1,'第三阶段','06/06/2002','06/17/2002 15:15:00',61,3,3246.23,'','1','',Null,'')
Insert Into Pub_Progress( prg_ID,own_id,Task_Id,Prg_Code,Prg_Type,prg_objID,prg_objType,prg_contactID,Prg_Executor,Prg_Subject,Prg_StartDate,Prg_EndDate,Prg_Action,Prg_CampType,Prg_Cost,Prg_Desc,prg_finish,prg_priority,prg_Result,Prg_Memo ) Values(50,'fw001',72,'ZH-PRG-20020617-0006','market    ',Null,'',Null,2,'下电风扇的','06/07/2002','06/17/2002 17:17:00',1,1,3455,'','1','',Null,'')
Insert Into Pub_Progress( prg_ID,own_id,Task_Id,Prg_Code,Prg_Type,prg_objID,prg_objType,prg_contactID,Prg_Executor,Prg_Subject,Prg_StartDate,Prg_EndDate,Prg_Action,Prg_CampType,Prg_Cost,Prg_Desc,prg_finish,prg_priority,prg_Result,Prg_Memo ) Values(51,'fw001',72,'ZH-PRG-20020617-0007','market    ',Null,'',Null,3,'下士大夫','06/11/2002','06/17/2002 17:17:00',59,1,1555,'','1','',Null,'')
Insert Into Pub_Progress( prg_ID,own_id,Task_Id,Prg_Code,Prg_Type,prg_objID,prg_objType,prg_contactID,Prg_Executor,Prg_Subject,Prg_StartDate,Prg_EndDate,Prg_Action,Prg_CampType,Prg_Cost,Prg_Desc,prg_finish,prg_priority,prg_Result,Prg_Memo ) Values(52,'fw001',64,'ZH-PRG-20020617-0008','market    ',Null,'',Null,2,'sdfsdf','06/13/2002','06/17/2002 20:20:00',58,2,7128,'','1','',Null,'')
Insert Into Pub_Progress( prg_ID,own_id,Task_Id,Prg_Code,Prg_Type,prg_objID,prg_objType,prg_contactID,Prg_Executor,Prg_Subject,Prg_StartDate,Prg_EndDate,Prg_Action,Prg_CampType,Prg_Cost,Prg_Desc,prg_finish,prg_priority,prg_Result,Prg_Memo ) Values(53,'fw001',64,'ZH-PRG-20020617-0009','market    ',Null,'',Null,2,'sdfdsfs','06/07/2002','06/17/2002 20:20:00',1,2,19124,'dfdfg','1','',Null,'')
Insert Into Pub_Progress( prg_ID,own_id,Task_Id,Prg_Code,Prg_Type,prg_objID,prg_objType,prg_contactID,Prg_Executor,Prg_Subject,Prg_StartDate,Prg_EndDate,Prg_Action,Prg_CampType,Prg_Cost,Prg_Desc,prg_finish,prg_priority,prg_Result,Prg_Memo ) Values(54,'fw001',75,'ZH-PRG-20020618-0001','market    ',Null,'',Null,5,'dsfdsf','06/07/2002','06/18/2002 9:09:00',58,2,5776,'dsfd ','1','',Null,'')
Insert Into Pub_Progress( prg_ID,own_id,Task_Id,Prg_Code,Prg_Type,prg_objID,prg_objType,prg_contactID,Prg_Executor,Prg_Subject,Prg_StartDate,Prg_EndDate,Prg_Action,Prg_CampType,Prg_Cost,Prg_Desc,prg_finish,prg_priority,prg_Result,Prg_Memo ) Values(55,'fw001',75,'ZH-PRG-20020618-0002','market    ',Null,'',Null,3,'sdffdsfsd','06/11/2002','06/18/2002 9:09:00',59,4,2675,'','1','',Null,'')
Insert Into Pub_Progress( prg_ID,own_id,Task_Id,Prg_Code,Prg_Type,prg_objID,prg_objType,prg_contactID,Prg_Executor,Prg_Subject,Prg_StartDate,Prg_EndDate,Prg_Action,Prg_CampType,Prg_Cost,Prg_Desc,prg_finish,prg_priority,prg_Result,Prg_Memo ) Values(60,'fw001',74,'ZH-PRG-20020618-0003','market    ',Null,'',Null,1,'风格风格上犯得上','06/10/2002','',1,1,343,'','0','',Null,'')
Insert Into Pub_Progress( prg_ID,own_id,Task_Id,Prg_Code,Prg_Type,prg_objID,prg_objType,prg_contactID,Prg_Executor,Prg_Subject,Prg_StartDate,Prg_EndDate,Prg_Action,Prg_CampType,Prg_Cost,Prg_Desc,prg_finish,prg_priority,prg_Result,Prg_Memo ) Values(63,'fw001',82,'ZH-PRG-20020619-0001','market    ',Null,'',Null,2,'士大夫上水道法','06/08/2002','',59,1,0,'','0','',Null,'')
Insert Into Pub_Progress( prg_ID,own_id,Task_Id,Prg_Code,Prg_Type,prg_objID,prg_objType,prg_contactID,Prg_Executor,Prg_Subject,Prg_StartDate,Prg_EndDate,Prg_Action,Prg_CampType,Prg_Cost,Prg_Desc,prg_finish,prg_priority,prg_Result,Prg_Memo ) Values(64,'fw001',82,'ZH-PRG-20020619-0002','market    ',Null,'',Null,3,'电风扇地方','06/12/2002','',58,1,0,'','0','',Null,'')
Insert Into Pub_Progress( prg_ID,own_id,Task_Id,Prg_Code,Prg_Type,prg_objID,prg_objType,prg_contactID,Prg_Executor,Prg_Subject,Prg_StartDate,Prg_EndDate,Prg_Action,Prg_CampType,Prg_Cost,Prg_Desc,prg_finish,prg_priority,prg_Result,Prg_Memo ) Values(65,'fw001',82,'ZH-PRG-20020619-0003','market    ',Null,'',Null,1,'大师傅士大夫','06/14/2002','',59,3,0,'','0','',Null,'')
Insert Into Pub_Progress( prg_ID,own_id,Task_Id,Prg_Code,Prg_Type,prg_objID,prg_objType,prg_contactID,Prg_Executor,Prg_Subject,Prg_StartDate,Prg_EndDate,Prg_Action,Prg_CampType,Prg_Cost,Prg_Desc,prg_finish,prg_priority,prg_Result,Prg_Memo ) Values(66,'fw001',74,'ZH-PRG-20020619-0004','market    ',Null,'',Null,3,'豆腐干','06/14/2002','',1,4,0,'','0','',Null,'')
Insert Into Pub_Progress( prg_ID,own_id,Task_Id,Prg_Code,Prg_Type,prg_objID,prg_objType,prg_contactID,Prg_Executor,Prg_Subject,Prg_StartDate,Prg_EndDate,Prg_Action,Prg_CampType,Prg_Cost,Prg_Desc,prg_finish,prg_priority,prg_Result,Prg_Memo ) Values(67,'fw001',74,'ZH-PRG-20020619-0005','market    ',Null,'',Null,9,'大幅度十分的','06/17/2002','',59,5,0,'','0','',Null,'')
Insert Into Pub_Progress( prg_ID,own_id,Task_Id,Prg_Code,Prg_Type,prg_objID,prg_objType,prg_contactID,Prg_Executor,Prg_Subject,Prg_StartDate,Prg_EndDate,Prg_Action,Prg_CampType,Prg_Cost,Prg_Desc,prg_finish,prg_priority,prg_Result,Prg_Memo ) Values(69,'fw001',74,'ZH-PRG-20020619-0007','market    ',Null,'',Null,10,'电风扇的','06/13/2002','',58,1,0,'','0','',Null,'')
Insert Into Pub_Progress( prg_ID,own_id,Task_Id,Prg_Code,Prg_Type,prg_objID,prg_objType,prg_contactID,Prg_Executor,Prg_Subject,Prg_StartDate,Prg_EndDate,Prg_Action,Prg_CampType,Prg_Cost,Prg_Desc,prg_finish,prg_priority,prg_Result,Prg_Memo ) Values(70,'fw001',83,'ZH-PRG-20020619-0008','market    ',Null,'',Null,1,'统一体容易','06/15/2002','06/20/2002 10:10:00',58,1,2193.64,'','1','',Null,'')
Insert Into Pub_Progress( prg_ID,own_id,Task_Id,Prg_Code,Prg_Type,prg_objID,prg_objType,prg_contactID,Prg_Executor,Prg_Subject,Prg_StartDate,Prg_EndDate,Prg_Action,Prg_CampType,Prg_Cost,Prg_Desc,prg_finish,prg_priority,prg_Result,Prg_Memo ) Values(71,'fw001',83,'ZH-PRG-20020619-0009','market    ',Null,'',Null,2,'豆腐干豆腐干','06/12/2002','06/15/2002 16:16:00',59,2,2684.69,'','1','',Null,'')
Insert Into Pub_Progress( prg_ID,own_id,Task_Id,Prg_Code,Prg_Type,prg_objID,prg_objType,prg_contactID,Prg_Executor,Prg_Subject,Prg_StartDate,Prg_EndDate,Prg_Action,Prg_CampType,Prg_Cost,Prg_Desc,prg_finish,prg_priority,prg_Result,Prg_Memo ) Values(72,'fw001',83,'ZH-PRG-20020619-0010','market    ',Null,'',Null,3,'士大夫如同感','06/07/2002','06/19/2002 16:16:00',59,3,1450.85,'','1','',Null,'')
Insert Into Pub_Progress( prg_ID,own_id,Task_Id,Prg_Code,Prg_Type,prg_objID,prg_objType,prg_contactID,Prg_Executor,Prg_Subject,Prg_StartDate,Prg_EndDate,Prg_Action,Prg_CampType,Prg_Cost,Prg_Desc,prg_finish,prg_priority,prg_Result,Prg_Memo ) Values(73,'fw001',74,'ZH-PRG-20020620-0002','market    ',Null,'',Null,3,'ertret','06/20/2002','',58,5,0,'','0','',Null,'')
Insert Into Pub_Progress( prg_ID,own_id,Task_Id,Prg_Code,Prg_Type,prg_objID,prg_objType,prg_contactID,Prg_Executor,Prg_Subject,Prg_StartDate,Prg_EndDate,Prg_Action,Prg_CampType,Prg_Cost,Prg_Desc,prg_finish,prg_priority,prg_Result,Prg_Memo ) Values(74,'fw001',88,'ZH-PRG-20020620-0003','market    ',Null,'',Null,3,'sdfsdf','06/18/2002','',58,1,12834,'','0','',Null,'')
Insert Into Pub_Progress( prg_ID,own_id,Task_Id,Prg_Code,Prg_Type,prg_objID,prg_objType,prg_contactID,Prg_Executor,Prg_Subject,Prg_StartDate,Prg_EndDate,Prg_Action,Prg_CampType,Prg_Cost,Prg_Desc,prg_finish,prg_priority,prg_Result,Prg_Memo ) Values(81,'fw001',74,'ZH-PRG-20020626-0001','market    ',Null,'',Null,1,'wwwwwww','06/11/2002','',59,1,0,'','0','',Null,'')
Insert Into Pub_Progress( prg_ID,own_id,Task_Id,Prg_Code,Prg_Type,prg_objID,prg_objType,prg_contactID,Prg_Executor,Prg_Subject,Prg_StartDate,Prg_EndDate,Prg_Action,Prg_CampType,Prg_Cost,Prg_Desc,prg_finish,prg_priority,prg_Result,Prg_Memo ) Values(82,'fw001',82,'ZH-PRG-20020626-0002','market    ',Null,'',Null,5,'qqqqqqq','06/27/2002','',59,2,0,'','0','',Null,'')
Insert Into Pub_Progress( prg_ID,own_id,Task_Id,Prg_Code,Prg_Type,prg_objID,prg_objType,prg_contactID,Prg_Executor,Prg_Subject,Prg_StartDate,Prg_EndDate,Prg_Action,Prg_CampType,Prg_Cost,Prg_Desc,prg_finish,prg_priority,prg_Result,Prg_Memo ) Values(84,'fw001',74,'ZH-PRG-20020627-0002','market    ',Null,'',Null,3,'sfsdf','06/21/2002','',59,4,0,'','0','',Null,'')
Insert Into Pub_Progress( prg_ID,own_id,Task_Id,Prg_Code,Prg_Type,prg_objID,prg_objType,prg_contactID,Prg_Executor,Prg_Subject,Prg_StartDate,Prg_EndDate,Prg_Action,Prg_CampType,Prg_Cost,Prg_Desc,prg_finish,prg_priority,prg_Result,Prg_Memo ) Values(85,'fw001',74,'ZH-PRG-20020627-0003','market    ',Null,'',Null,3,'dsfee','06/11/2002','',1,3,0,'','0','',Null,'')
GO

Insert Into Pub_Task( Task_ID,own_id,Task_Code,Task_Subject,Task_ObjID,Task_Object,Task_ObjType,Task_Type,Task_Manager,Task_Status,Task_StartDate,Task_priority,Task_EndDate,Task_Budget,Task_Cost,Task_Flag,Task_Result,Task_Desc,Task_Source,Contact_ID ) Values(1,'fw001','ZH-TSK-20020709-0001','dddd',28,'机械工业出版社','客户','market',1,6,'07/09/2002','紧急','07/09/2002',0,0,'0','','',Null,0)
GO

Insert Into XS_ActExpense( own_id,act_id,ae_type,ae_expense,ae_date,emp_id,ae_checker,ae_memo ) Values('fw001',13,2,1234,'04/03/2002',1,1,'')
Insert Into XS_ActExpense( own_id,act_id,ae_type,ae_expense,ae_date,emp_id,ae_checker,ae_memo ) Values('fw001',13,1,250,'05/02/2002',1,1,'ddd')
GO

Insert Into XS_Activity( act_id,own_id,oppt_id,act_subject,cust_id,act_type,act_action,act_priority,act_createdate,act_start,act_end,act_duration,act_finish,act_result,act_expense,act_maker,act_executor,act_memo,act_closedesc,contact_id ) Values(13,'fw001',22,'洽谈购买电脑的意向',4,1,3,'普通','04/02/2002','04/02/2002 22:50:00','05/21/2002 18:18:00',0,'1',4,1484,1,3,'','',22)
Insert Into XS_Activity( act_id,own_id,oppt_id,act_subject,cust_id,act_type,act_action,act_priority,act_createdate,act_start,act_end,act_duration,act_finish,act_result,act_expense,act_maker,act_executor,act_memo,act_closedesc,contact_id ) Values(14,'fw001',20,'sdfdsf',3,2,3,'紧急','04/03/2002','04/03/2002 17:39:00','04/11/2002 21:21:00',0,'1',2,0,1,1,'sdfsdf','',5)
Insert Into XS_Activity( act_id,own_id,oppt_id,act_subject,cust_id,act_type,act_action,act_priority,act_createdate,act_start,act_end,act_duration,act_finish,act_result,act_expense,act_maker,act_executor,act_memo,act_closedesc,contact_id ) Values(15,'fw001',12,'dd',6,1,3,'','06/10/2002','06/10/2002 10:44:00','',0,'0',Null,18817,1,1,'','',0)
Insert Into XS_Activity( act_id,own_id,oppt_id,act_subject,cust_id,act_type,act_action,act_priority,act_createdate,act_start,act_end,act_duration,act_finish,act_result,act_expense,act_maker,act_executor,act_memo,act_closedesc,contact_id ) Values(16,'fw001',Null,'test10',28,1,3,'紧急','06/14/2002','06/14/2002 18:11:00','06/14/2002 18:11:00',Null,'1',2,0,1,1,'','',0)
GO

Insert Into XS_CustFunds( own_id,cust_id,cf_amountinit,cf_profitinit,cf_receiveinit,cf_amount,cf_profit,cf_receive ) Values('fw001',9,0,0,0,45000,0,0)
Insert Into XS_CustFunds( own_id,cust_id,cf_amountinit,cf_profitinit,cf_receiveinit,cf_amount,cf_profit,cf_receive ) Values('fw001',13,0,0,0,76515,0,4000)
GO

Insert Into XS_Opportunity( oppt_id,own_id,oppt_subject,cust_id,oppt_source,oppt_type,oppt_phase,phase_id,oppt_status,oppt_valuable,oppt_createdate,oppt_start,oppt_end,oppt_close,oppt_succeed,oppt_reason,oppt_closedate,oppt_closedesc,oppt_maker,oppt_manager,oppt_revenue,oppt_probability,oppt_memo ) Values(7,'fw001','Test',9,1,Null,2,1,2,'高价值','03/21/2002','03/21/2002','03/31/2002','1','1',Null,'03/31/2002','',1,5,0,10,'')
Insert Into XS_Opportunity( oppt_id,own_id,oppt_subject,cust_id,oppt_source,oppt_type,oppt_phase,phase_id,oppt_status,oppt_valuable,oppt_createdate,oppt_start,oppt_end,oppt_close,oppt_succeed,oppt_reason,oppt_closedate,oppt_closedesc,oppt_maker,oppt_manager,oppt_revenue,oppt_probability,oppt_memo ) Values(8,'fw001','购买打印机',5,5,Null,5,2,2,'价值一般','03/21/2002','03/21/2002','03/21/2002','0','0',Null,'','',1,5,1000,10,'')
Insert Into XS_Opportunity( oppt_id,own_id,oppt_subject,cust_id,oppt_source,oppt_type,oppt_phase,phase_id,oppt_status,oppt_valuable,oppt_createdate,oppt_start,oppt_end,oppt_close,oppt_succeed,oppt_reason,oppt_closedate,oppt_closedesc,oppt_maker,oppt_manager,oppt_revenue,oppt_probability,oppt_memo ) Values(9,'fw001','sdfasdfasdf',10,Null,Null,1,3,Null,'','03/21/2002','03/21/2002','03/27/2002','0','0',Null,'','',1,1,5000,0,'')
Insert Into XS_Opportunity( oppt_id,own_id,oppt_subject,cust_id,oppt_source,oppt_type,oppt_phase,phase_id,oppt_status,oppt_valuable,oppt_createdate,oppt_start,oppt_end,oppt_close,oppt_succeed,oppt_reason,oppt_closedate,oppt_closedesc,oppt_maker,oppt_manager,oppt_revenue,oppt_probability,oppt_memo ) Values(10,'fw001','企业扩大规模，需要购买一批新电脑。',5,5,1,1,6,Null,'价值一般','03/30/2002','03/30/2002','03/05/2002','1','1',Null,'06/28/2002','',1,1,105200,10,'')
Insert Into XS_Opportunity( oppt_id,own_id,oppt_subject,cust_id,oppt_source,oppt_type,oppt_phase,phase_id,oppt_status,oppt_valuable,oppt_createdate,oppt_start,oppt_end,oppt_close,oppt_succeed,oppt_reason,oppt_closedate,oppt_closedesc,oppt_maker,oppt_manager,oppt_revenue,oppt_probability,oppt_memo ) Values(12,'fw001','实现无纸化办公，需采购一批办公设备。',6,Null,Null,2,8,Null,'','03/30/2002','03/30/2002','03/21/2002','0','0',Null,'','',1,1,0,10,'')
Insert Into XS_Opportunity( oppt_id,own_id,oppt_subject,cust_id,oppt_source,oppt_type,oppt_phase,phase_id,oppt_status,oppt_valuable,oppt_createdate,oppt_start,oppt_end,oppt_close,oppt_succeed,oppt_reason,oppt_closedate,oppt_closedesc,oppt_maker,oppt_manager,oppt_revenue,oppt_probability,oppt_memo ) Values(13,'fw001','购买电脑',4,Null,Null,1,9,Null,'','04/02/2002','04/02/2002','04/25/2002','0','0',Null,'','',1,5,0,10,'')
Insert Into XS_Opportunity( oppt_id,own_id,oppt_subject,cust_id,oppt_source,oppt_type,oppt_phase,phase_id,oppt_status,oppt_valuable,oppt_createdate,oppt_start,oppt_end,oppt_close,oppt_succeed,oppt_reason,oppt_closedate,oppt_closedesc,oppt_maker,oppt_manager,oppt_revenue,oppt_probability,oppt_memo ) Values(19,'fw001','需购买一批网络设备及台式机',4,22,2,1,28,Null,'价值一般','04/02/2002','04/02/2002','04/02/2002','0','0',Null,'','',1,5,0,10,'')
Insert Into XS_Opportunity( oppt_id,own_id,oppt_subject,cust_id,oppt_source,oppt_type,oppt_phase,phase_id,oppt_status,oppt_valuable,oppt_createdate,oppt_start,oppt_end,oppt_close,oppt_succeed,oppt_reason,oppt_closedate,oppt_closedesc,oppt_maker,oppt_manager,oppt_revenue,oppt_probability,oppt_memo ) Values(20,'fw001','购买小型服务器',6,1,2,1,29,1,'','04/02/2002','04/02/2002','04/02/2002','0','0',Null,'','',1,10,0,10,'')
Insert Into XS_Opportunity( oppt_id,own_id,oppt_subject,cust_id,oppt_source,oppt_type,oppt_phase,phase_id,oppt_status,oppt_valuable,oppt_createdate,oppt_start,oppt_end,oppt_close,oppt_succeed,oppt_reason,oppt_closedate,oppt_closedesc,oppt_maker,oppt_manager,oppt_revenue,oppt_probability,oppt_memo ) Values(21,'fw001','aaaaaaaa',6,Null,Null,2,30,Null,'','04/02/2002','04/02/2002','04/11/2002','1','0',1,'04/02/2002','',1,Null,0,10,'')
Insert Into XS_Opportunity( oppt_id,own_id,oppt_subject,cust_id,oppt_source,oppt_type,oppt_phase,phase_id,oppt_status,oppt_valuable,oppt_createdate,oppt_start,oppt_end,oppt_close,oppt_succeed,oppt_reason,oppt_closedate,oppt_closedesc,oppt_maker,oppt_manager,oppt_revenue,oppt_probability,oppt_memo ) Values(22,'fw001','公司内部网络的建设',4,Null,Null,1,34,Null,'','04/02/2002','04/02/2002','04/10/2002','0','0',Null,'','',1,10,0,10,'')
Insert Into XS_Opportunity( oppt_id,own_id,oppt_subject,cust_id,oppt_source,oppt_type,oppt_phase,phase_id,oppt_status,oppt_valuable,oppt_createdate,oppt_start,oppt_end,oppt_close,oppt_succeed,oppt_reason,oppt_closedate,oppt_closedesc,oppt_maker,oppt_manager,oppt_revenue,oppt_probability,oppt_memo ) Values(24,'fw001','购买100台电脑',6,2,2,1,37,2,'高价值','04/03/2002','04/03/2002','04/17/2002','0','0',Null,'','',1,2,0,10,'')
Insert Into XS_Opportunity( oppt_id,own_id,oppt_subject,cust_id,oppt_source,oppt_type,oppt_phase,phase_id,oppt_status,oppt_valuable,oppt_createdate,oppt_start,oppt_end,oppt_close,oppt_succeed,oppt_reason,oppt_closedate,oppt_closedesc,oppt_maker,oppt_manager,oppt_revenue,oppt_probability,oppt_memo ) Values(25,'fw001','购买OA系统',14,19,1,1,38,2,'高价值','04/14/2002','04/10/2002','04/30/2002','0','0',Null,'','',5,5,500000,40,'华侨公司在今年上半年有实施OA系统的工作计划。已与该公司负责人进行初次接触。对我公司的办公软件系统产品很有兴趣。')
Insert Into XS_Opportunity( oppt_id,own_id,oppt_subject,cust_id,oppt_source,oppt_type,oppt_phase,phase_id,oppt_status,oppt_valuable,oppt_createdate,oppt_start,oppt_end,oppt_close,oppt_succeed,oppt_reason,oppt_closedate,oppt_closedesc,oppt_maker,oppt_manager,oppt_revenue,oppt_probability,oppt_memo ) Values(26,'fw001','test',21,Null,Null,1,40,Null,'','06/10/2002','06/10/2002','06/13/2002','1','1',Null,'06/25/2002','',1,1,0,10,'')
GO

Insert Into XS_OpptContact( own_id,oppt_id,contact_id,oc_main,oc_degree,oc_force,oc_tactic,oc_memo ) Values('fw001',20,5,'0','','','','')
Insert Into XS_OpptContact( own_id,oppt_id,contact_id,oc_main,oc_degree,oc_force,oc_tactic,oc_memo ) Values('fw001',12,11,'0','dfdsf','sdfsd','fsdfs','dsdfsdf')
Insert Into XS_OpptContact( own_id,oppt_id,contact_id,oc_main,oc_degree,oc_force,oc_tactic,oc_memo ) Values('fw001',13,7,'0','市场经理','有决策权','','')
Insert Into XS_OpptContact( own_id,oppt_id,contact_id,oc_main,oc_degree,oc_force,oc_tactic,oc_memo ) Values('fw001',19,5,'0','','','','')
Insert Into XS_OpptContact( own_id,oppt_id,contact_id,oc_main,oc_degree,oc_force,oc_tactic,oc_memo ) Values('fw001',22,5,'0','','','','')
Insert Into XS_OpptContact( own_id,oppt_id,contact_id,oc_main,oc_degree,oc_force,oc_tactic,oc_memo ) Values('fw001',24,7,'0','','','','')
Insert Into XS_OpptContact( own_id,oppt_id,contact_id,oc_main,oc_degree,oc_force,oc_tactic,oc_memo ) Values('fw001',26,23,'0','','','','')
GO

Insert Into XS_OpptEmp( own_id,oppt_id,emp_id ) Values('fw001',7,4)
Insert Into XS_OpptEmp( own_id,oppt_id,emp_id ) Values('fw001',7,5)
Insert Into XS_OpptEmp( own_id,oppt_id,emp_id ) Values('fw001',5,5)
Insert Into XS_OpptEmp( own_id,oppt_id,emp_id ) Values('fw001',5,4)
Insert Into XS_OpptEmp( own_id,oppt_id,emp_id ) Values('fw001',5,9)
Insert Into XS_OpptEmp( own_id,oppt_id,emp_id ) Values('fw001',5,10)
Insert Into XS_OpptEmp( own_id,oppt_id,emp_id ) Values('fw001',20,2)
Insert Into XS_OpptEmp( own_id,oppt_id,emp_id ) Values('fw001',20,1)
Insert Into XS_OpptEmp( own_id,oppt_id,emp_id ) Values('fw001',20,3)
Insert Into XS_OpptEmp( own_id,oppt_id,emp_id ) Values('fw001',20,9)
Insert Into XS_OpptEmp( own_id,oppt_id,emp_id ) Values('fw001',20,12)
GO

Insert Into XS_OpptPhase( phase_id,own_id,oppt_id,oppt_phase,phase_begin,phase_end ) Values(1,'fw001',7,1,'03/21/2002','03/21/2002')
Insert Into XS_OpptPhase( phase_id,own_id,oppt_id,oppt_phase,phase_begin,phase_end ) Values(2,'fw001',8,3,'03/21/2002','03/22/2002')
Insert Into XS_OpptPhase( phase_id,own_id,oppt_id,oppt_phase,phase_begin,phase_end ) Values(3,'fw001',9,1,'03/21/2002','')
Insert Into XS_OpptPhase( phase_id,own_id,oppt_id,oppt_phase,phase_begin,phase_end ) Values(4,'fw001',7,2,'03/21/2002','')
Insert Into XS_OpptPhase( phase_id,own_id,oppt_id,oppt_phase,phase_begin,phase_end ) Values(5,'fw001',8,5,'03/22/2002','')
Insert Into XS_OpptPhase( phase_id,own_id,oppt_id,oppt_phase,phase_begin,phase_end ) Values(6,'fw001',10,1,'03/30/2002','06/28/2002')
Insert Into XS_OpptPhase( phase_id,own_id,oppt_id,oppt_phase,phase_begin,phase_end ) Values(7,'fw001',11,1,'03/30/2002','')
Insert Into XS_OpptPhase( phase_id,own_id,oppt_id,oppt_phase,phase_begin,phase_end ) Values(8,'fw001',12,2,'03/30/2002','')
Insert Into XS_OpptPhase( phase_id,own_id,oppt_id,oppt_phase,phase_begin,phase_end ) Values(9,'fw001',13,1,'04/02/2002','')
Insert Into XS_OpptPhase( phase_id,own_id,oppt_id,oppt_phase,phase_begin,phase_end ) Values(10,'fw001',14,1,'04/02/2002','')
Insert Into XS_OpptPhase( phase_id,own_id,oppt_id,oppt_phase,phase_begin,phase_end ) Values(11,'fw001',14,1,'04/02/2002','')
Insert Into XS_OpptPhase( phase_id,own_id,oppt_id,oppt_phase,phase_begin,phase_end ) Values(12,'fw001',15,1,'04/02/2002','')
Insert Into XS_OpptPhase( phase_id,own_id,oppt_id,oppt_phase,phase_begin,phase_end ) Values(13,'fw001',16,1,'04/02/2002','')
Insert Into XS_OpptPhase( phase_id,own_id,oppt_id,oppt_phase,phase_begin,phase_end ) Values(14,'fw001',17,1,'04/02/2002','')
Insert Into XS_OpptPhase( phase_id,own_id,oppt_id,oppt_phase,phase_begin,phase_end ) Values(15,'fw001',18,1,'04/02/2002','')
Insert Into XS_OpptPhase( phase_id,own_id,oppt_id,oppt_phase,phase_begin,phase_end ) Values(16,'fw001',15,2,'04/02/2002','')
Insert Into XS_OpptPhase( phase_id,own_id,oppt_id,oppt_phase,phase_begin,phase_end ) Values(17,'fw001',16,1,'04/02/2002','')
Insert Into XS_OpptPhase( phase_id,own_id,oppt_id,oppt_phase,phase_begin,phase_end ) Values(18,'fw001',17,1,'04/02/2002','')
Insert Into XS_OpptPhase( phase_id,own_id,oppt_id,oppt_phase,phase_begin,phase_end ) Values(19,'fw001',17,1,'04/02/2002','')
Insert Into XS_OpptPhase( phase_id,own_id,oppt_id,oppt_phase,phase_begin,phase_end ) Values(20,'fw001',18,1,'04/02/2002','')
Insert Into XS_OpptPhase( phase_id,own_id,oppt_id,oppt_phase,phase_begin,phase_end ) Values(21,'fw001',18,1,'04/02/2002','')
Insert Into XS_OpptPhase( phase_id,own_id,oppt_id,oppt_phase,phase_begin,phase_end ) Values(22,'fw001',18,1,'04/02/2002','')
Insert Into XS_OpptPhase( phase_id,own_id,oppt_id,oppt_phase,phase_begin,phase_end ) Values(23,'fw001',19,1,'04/02/2002','')
Insert Into XS_OpptPhase( phase_id,own_id,oppt_id,oppt_phase,phase_begin,phase_end ) Values(24,'fw001',18,1,'04/02/2002','')
Insert Into XS_OpptPhase( phase_id,own_id,oppt_id,oppt_phase,phase_begin,phase_end ) Values(25,'fw001',19,2,'04/02/2002','')
Insert Into XS_OpptPhase( phase_id,own_id,oppt_id,oppt_phase,phase_begin,phase_end ) Values(26,'fw001',20,2,'04/02/2002','')
Insert Into XS_OpptPhase( phase_id,own_id,oppt_id,oppt_phase,phase_begin,phase_end ) Values(27,'fw001',21,1,'04/02/2002','')
Insert Into XS_OpptPhase( phase_id,own_id,oppt_id,oppt_phase,phase_begin,phase_end ) Values(28,'fw001',19,1,'04/02/2002','')
Insert Into XS_OpptPhase( phase_id,own_id,oppt_id,oppt_phase,phase_begin,phase_end ) Values(29,'fw001',20,1,'04/02/2002','')
Insert Into XS_OpptPhase( phase_id,own_id,oppt_id,oppt_phase,phase_begin,phase_end ) Values(30,'fw001',21,2,'04/02/2002','')
Insert Into XS_OpptPhase( phase_id,own_id,oppt_id,oppt_phase,phase_begin,phase_end ) Values(31,'fw001',22,1,'04/02/2002','')
Insert Into XS_OpptPhase( phase_id,own_id,oppt_id,oppt_phase,phase_begin,phase_end ) Values(32,'fw001',22,1,'04/02/2002','')
Insert Into XS_OpptPhase( phase_id,own_id,oppt_id,oppt_phase,phase_begin,phase_end ) Values(33,'fw001',22,1,'04/02/2002','')
Insert Into XS_OpptPhase( phase_id,own_id,oppt_id,oppt_phase,phase_begin,phase_end ) Values(34,'fw001',22,1,'04/02/2002','')
Insert Into XS_OpptPhase( phase_id,own_id,oppt_id,oppt_phase,phase_begin,phase_end ) Values(35,'fw001',23,2,'04/02/2002','')
Insert Into XS_OpptPhase( phase_id,own_id,oppt_id,oppt_phase,phase_begin,phase_end ) Values(36,'fw001',23,1,'04/03/2002','')
Insert Into XS_OpptPhase( phase_id,own_id,oppt_id,oppt_phase,phase_begin,phase_end ) Values(37,'fw001',24,1,'04/03/2002','')
Insert Into XS_OpptPhase( phase_id,own_id,oppt_id,oppt_phase,phase_begin,phase_end ) Values(38,'fw001',25,1,'04/14/2002','')
Insert Into XS_OpptPhase( phase_id,own_id,oppt_id,oppt_phase,phase_begin,phase_end ) Values(39,'fw001',26,1,'05/21/2002','')
Insert Into XS_OpptPhase( phase_id,own_id,oppt_id,oppt_phase,phase_begin,phase_end ) Values(40,'fw001',26,1,'06/10/2002','06/25/2002')
GO

Insert Into XS_OpptProd( own_id,oppt_id,prod_id,op_price,op_qty,op_amount,op_memo ) Values('fw001',1,13,100,200,20000,'Test')
Insert Into XS_OpptProd( own_id,oppt_id,prod_id,op_price,op_qty,op_amount,op_memo ) Values('fw001',1,14,2900,10,29000,'')
Insert Into XS_OpptProd( own_id,oppt_id,prod_id,op_price,op_qty,op_amount,op_memo ) Values('fw001',7,22,3000,2,6000,'asdfasdfa')
GO

Insert Into XS_OpptRival( own_id,oppt_id,ri_id,rp_id,or_main,or_strength,or_weakness,or_tactic,or_memo ) Values('fw001',5,5,14,'0','','','','')
Insert Into XS_OpptRival( own_id,oppt_id,ri_id,rp_id,or_main,or_strength,or_weakness,or_tactic,or_memo ) Values('fw001',7,3,14,'0','asdfasdf','asdfasdf','asdfas','test')
Insert Into XS_OpptRival( own_id,oppt_id,ri_id,rp_id,or_main,or_strength,or_weakness,or_tactic,or_memo ) Values('fw001',5,3,13,'1','产品比较成熟','销售渠道还不健全','','')
GO

Insert Into XS_Plan_D( own_id,plan_id,plan_object,plan_type,plan_year,plan_month1,plan_month2,plan_month3,plan_month4,plan_month5,plan_month6,plan_month7,plan_month8,plan_month9,plan_month10,plan_month11,plan_month12,plan_subtotal ) Values('fw001',1,1,'EMPLOYEE',2002,0,0,0,0,0,0,0,0,0,0,0,0,0)
Insert Into XS_Plan_D( own_id,plan_id,plan_object,plan_type,plan_year,plan_month1,plan_month2,plan_month3,plan_month4,plan_month5,plan_month6,plan_month7,plan_month8,plan_month9,plan_month10,plan_month11,plan_month12,plan_subtotal ) Values('fw001',1,2,'EMPLOYEE',2002,0,0,0,0,0,0,0,0,0,0,0,0,0)
Insert Into XS_Plan_D( own_id,plan_id,plan_object,plan_type,plan_year,plan_month1,plan_month2,plan_month3,plan_month4,plan_month5,plan_month6,plan_month7,plan_month8,plan_month9,plan_month10,plan_month11,plan_month12,plan_subtotal ) Values('fw001',1,3,'EMPLOYEE',2002,0,0,0,0,0,0,0,0,0,0,0,0,0)
Insert Into XS_Plan_D( own_id,plan_id,plan_object,plan_type,plan_year,plan_month1,plan_month2,plan_month3,plan_month4,plan_month5,plan_month6,plan_month7,plan_month8,plan_month9,plan_month10,plan_month11,plan_month12,plan_subtotal ) Values('fw001',1,4,'EMPLOYEE',2002,1,2,3,4,5,6,7,8,9,10,11,12,78)
Insert Into XS_Plan_D( own_id,plan_id,plan_object,plan_type,plan_year,plan_month1,plan_month2,plan_month3,plan_month4,plan_month5,plan_month6,plan_month7,plan_month8,plan_month9,plan_month10,plan_month11,plan_month12,plan_subtotal ) Values('fw001',1,5,'EMPLOYEE',2002,1,2,3,4,5,6,7,8,9,10,11,12,78)
Insert Into XS_Plan_D( own_id,plan_id,plan_object,plan_type,plan_year,plan_month1,plan_month2,plan_month3,plan_month4,plan_month5,plan_month6,plan_month7,plan_month8,plan_month9,plan_month10,plan_month11,plan_month12,plan_subtotal ) Values('fw001',2,15,'PRODUCT',2002,1,2,3,4,5,6,7,8,9,10,11,12,78)
Insert Into XS_Plan_D( own_id,plan_id,plan_object,plan_type,plan_year,plan_month1,plan_month2,plan_month3,plan_month4,plan_month5,plan_month6,plan_month7,plan_month8,plan_month9,plan_month10,plan_month11,plan_month12,plan_subtotal ) Values('fw001',2,22,'PRODUCT',2002,1,2,3,4,5,6,7,8,9,10,11,12,78)
Insert Into XS_Plan_D( own_id,plan_id,plan_object,plan_type,plan_year,plan_month1,plan_month2,plan_month3,plan_month4,plan_month5,plan_month6,plan_month7,plan_month8,plan_month9,plan_month10,plan_month11,plan_month12,plan_subtotal ) Values('fw001',2,23,'PRODUCT',2002,10,20,30,40,50,60,70,80,90,100,110,120,780)
Insert Into XS_Plan_D( own_id,plan_id,plan_object,plan_type,plan_year,plan_month1,plan_month2,plan_month3,plan_month4,plan_month5,plan_month6,plan_month7,plan_month8,plan_month9,plan_month10,plan_month11,plan_month12,plan_subtotal ) Values('fw001',2,24,'PRODUCT',2002,1,2,3,4,5,6,7,8,9,10,11,12,78)
Insert Into XS_Plan_D( own_id,plan_id,plan_object,plan_type,plan_year,plan_month1,plan_month2,plan_month3,plan_month4,plan_month5,plan_month6,plan_month7,plan_month8,plan_month9,plan_month10,plan_month11,plan_month12,plan_subtotal ) Values('fw001',3,4,'AREA',2002,0,0,0,0,0,0,0,0,0,0,0,0,0)
Insert Into XS_Plan_D( own_id,plan_id,plan_object,plan_type,plan_year,plan_month1,plan_month2,plan_month3,plan_month4,plan_month5,plan_month6,plan_month7,plan_month8,plan_month9,plan_month10,plan_month11,plan_month12,plan_subtotal ) Values('fw001',3,5,'AREA',2002,0,0,0,0,0,0,0,0,0,0,0,0,0)
Insert Into XS_Plan_D( own_id,plan_id,plan_object,plan_type,plan_year,plan_month1,plan_month2,plan_month3,plan_month4,plan_month5,plan_month6,plan_month7,plan_month8,plan_month9,plan_month10,plan_month11,plan_month12,plan_subtotal ) Values('fw001',3,35,'AREA',2002,1,2,3,4,5,6,7,8,9,10,11,12,78)
Insert Into XS_Plan_D( own_id,plan_id,plan_object,plan_type,plan_year,plan_month1,plan_month2,plan_month3,plan_month4,plan_month5,plan_month6,plan_month7,plan_month8,plan_month9,plan_month10,plan_month11,plan_month12,plan_subtotal ) Values('fw001',3,36,'AREA',2002,10,10,20,30,40,50,60,70,80,90,11,10,481)
Insert Into XS_Plan_D( own_id,plan_id,plan_object,plan_type,plan_year,plan_month1,plan_month2,plan_month3,plan_month4,plan_month5,plan_month6,plan_month7,plan_month8,plan_month9,plan_month10,plan_month11,plan_month12,plan_subtotal ) Values('fw001',3,47,'AREA',2002,0,0,0,0,0,0,0,0,0,0,0,0,0)
Insert Into XS_Plan_D( own_id,plan_id,plan_object,plan_type,plan_year,plan_month1,plan_month2,plan_month3,plan_month4,plan_month5,plan_month6,plan_month7,plan_month8,plan_month9,plan_month10,plan_month11,plan_month12,plan_subtotal ) Values('fw001',4,1,'EMPLOYEE',2003,0,0,0,0,0,0,0,0,0,0,0,0,0)
Insert Into XS_Plan_D( own_id,plan_id,plan_object,plan_type,plan_year,plan_month1,plan_month2,plan_month3,plan_month4,plan_month5,plan_month6,plan_month7,plan_month8,plan_month9,plan_month10,plan_month11,plan_month12,plan_subtotal ) Values('fw001',4,2,'EMPLOYEE',Null,101,10,20,30,100,0,0,0,0,0,0,0,261)
Insert Into XS_Plan_D( own_id,plan_id,plan_object,plan_type,plan_year,plan_month1,plan_month2,plan_month3,plan_month4,plan_month5,plan_month6,plan_month7,plan_month8,plan_month9,plan_month10,plan_month11,plan_month12,plan_subtotal ) Values('fw001',5,2,'PRODUCT',Null,0,0,0,0,0,0,0,0,0,0,0,0,0)
Insert Into XS_Plan_D( own_id,plan_id,plan_object,plan_type,plan_year,plan_month1,plan_month2,plan_month3,plan_month4,plan_month5,plan_month6,plan_month7,plan_month8,plan_month9,plan_month10,plan_month11,plan_month12,plan_subtotal ) Values('fw001',6,35,'AREA',2003,0,0,0,0,0,0,0,0,0,0,0,0,0)
Insert Into XS_Plan_D( own_id,plan_id,plan_object,plan_type,plan_year,plan_month1,plan_month2,plan_month3,plan_month4,plan_month5,plan_month6,plan_month7,plan_month8,plan_month9,plan_month10,plan_month11,plan_month12,plan_subtotal ) Values('fw001',6,59,'AREA',2003,0,0,0,0,0,0,0,0,0,0,0,0,0)
Insert Into XS_Plan_D( own_id,plan_id,plan_object,plan_type,plan_year,plan_month1,plan_month2,plan_month3,plan_month4,plan_month5,plan_month6,plan_month7,plan_month8,plan_month9,plan_month10,plan_month11,plan_month12,plan_subtotal ) Values('fw001',6,62,'AREA',2003,0,0,0,0,0,0,0,0,0,0,0,0,0)
Insert Into XS_Plan_D( own_id,plan_id,plan_object,plan_type,plan_year,plan_month1,plan_month2,plan_month3,plan_month4,plan_month5,plan_month6,plan_month7,plan_month8,plan_month9,plan_month10,plan_month11,plan_month12,plan_subtotal ) Values('fw001',6,63,'AREA',2003,0,0,0,0,0,0,0,0,0,0,0,0,0)
Insert Into XS_Plan_D( own_id,plan_id,plan_object,plan_type,plan_year,plan_month1,plan_month2,plan_month3,plan_month4,plan_month5,plan_month6,plan_month7,plan_month8,plan_month9,plan_month10,plan_month11,plan_month12,plan_subtotal ) Values('fw001',6,64,'AREA',2003,0,0,0,0,0,0,0,0,0,0,0,0,0)
Insert Into XS_Plan_D( own_id,plan_id,plan_object,plan_type,plan_year,plan_month1,plan_month2,plan_month3,plan_month4,plan_month5,plan_month6,plan_month7,plan_month8,plan_month9,plan_month10,plan_month11,plan_month12,plan_subtotal ) Values('fw001',6,65,'AREA',2003,0,0,0,0,0,0,0,0,0,0,0,0,0)
Insert Into XS_Plan_D( own_id,plan_id,plan_object,plan_type,plan_year,plan_month1,plan_month2,plan_month3,plan_month4,plan_month5,plan_month6,plan_month7,plan_month8,plan_month9,plan_month10,plan_month11,plan_month12,plan_subtotal ) Values('fw001',7,35,'AREA',2001,0,0,0,0,0,0,0,0,0,0,0,0,0)
Insert Into XS_Plan_D( own_id,plan_id,plan_object,plan_type,plan_year,plan_month1,plan_month2,plan_month3,plan_month4,plan_month5,plan_month6,plan_month7,plan_month8,plan_month9,plan_month10,plan_month11,plan_month12,plan_subtotal ) Values('fw001',7,39,'AREA',2001,0,0,0,0,0,0,0,0,0,0,0,0,0)
Insert Into XS_Plan_D( own_id,plan_id,plan_object,plan_type,plan_year,plan_month1,plan_month2,plan_month3,plan_month4,plan_month5,plan_month6,plan_month7,plan_month8,plan_month9,plan_month10,plan_month11,plan_month12,plan_subtotal ) Values('fw001',7,61,'AREA',2001,0,0,0,0,0,0,0,0,0,0,0,0,0)
Insert Into XS_Plan_D( own_id,plan_id,plan_object,plan_type,plan_year,plan_month1,plan_month2,plan_month3,plan_month4,plan_month5,plan_month6,plan_month7,plan_month8,plan_month9,plan_month10,plan_month11,plan_month12,plan_subtotal ) Values('fw001',8,1,'EMPLOYEE',Null,0,0,0,0,0,0,0,0,0,0,0,0,0)
Insert Into XS_Plan_D( own_id,plan_id,plan_object,plan_type,plan_year,plan_month1,plan_month2,plan_month3,plan_month4,plan_month5,plan_month6,plan_month7,plan_month8,plan_month9,plan_month10,plan_month11,plan_month12,plan_subtotal ) Values('fw001',8,4,'EMPLOYEE',1999,0,0,0,0,0,0,0,0,0,0,0,0,0)
Insert Into XS_Plan_D( own_id,plan_id,plan_object,plan_type,plan_year,plan_month1,plan_month2,plan_month3,plan_month4,plan_month5,plan_month6,plan_month7,plan_month8,plan_month9,plan_month10,plan_month11,plan_month12,plan_subtotal ) Values('fw001',8,5,'EMPLOYEE',Null,0,0,0,0,0,0,0,0,0,0,0,0,0)
Insert Into XS_Plan_D( own_id,plan_id,plan_object,plan_type,plan_year,plan_month1,plan_month2,plan_month3,plan_month4,plan_month5,plan_month6,plan_month7,plan_month8,plan_month9,plan_month10,plan_month11,plan_month12,plan_subtotal ) Values('fw001',9,1,'EMPLOYEE',2001,33,33,3,33,33,33,33,33,33,33,33,33,366)
Insert Into XS_Plan_D( own_id,plan_id,plan_object,plan_type,plan_year,plan_month1,plan_month2,plan_month3,plan_month4,plan_month5,plan_month6,plan_month7,plan_month8,plan_month9,plan_month10,plan_month11,plan_month12,plan_subtotal ) Values('fw001',9,2,'EMPLOYEE',2001,0,0,0,0,0,0,0,0,0,0,0,0,0)
Insert Into XS_Plan_D( own_id,plan_id,plan_object,plan_type,plan_year,plan_month1,plan_month2,plan_month3,plan_month4,plan_month5,plan_month6,plan_month7,plan_month8,plan_month9,plan_month10,plan_month11,plan_month12,plan_subtotal ) Values('fw001',9,3,'EMPLOYEE',2001,0,0,0,0,0,0,0,0,0,0,0,0,0)
Insert Into XS_Plan_D( own_id,plan_id,plan_object,plan_type,plan_year,plan_month1,plan_month2,plan_month3,plan_month4,plan_month5,plan_month6,plan_month7,plan_month8,plan_month9,plan_month10,plan_month11,plan_month12,plan_subtotal ) Values('fw001',9,4,'EMPLOYEE',2001,0,0,0,0,0,0,0,0,0,0,0,0,0)
Insert Into XS_Plan_D( own_id,plan_id,plan_object,plan_type,plan_year,plan_month1,plan_month2,plan_month3,plan_month4,plan_month5,plan_month6,plan_month7,plan_month8,plan_month9,plan_month10,plan_month11,plan_month12,plan_subtotal ) Values('fw001',9,5,'EMPLOYEE',2001,33,333,33,3,3,3,33,33,3,3,3,3,486)
Insert Into XS_Plan_D( own_id,plan_id,plan_object,plan_type,plan_year,plan_month1,plan_month2,plan_month3,plan_month4,plan_month5,plan_month6,plan_month7,plan_month8,plan_month9,plan_month10,plan_month11,plan_month12,plan_subtotal ) Values('fw001',11,2,'AREA',2005,0,0,0,0,0,0,0,0,0,0,0,0,0)
Insert Into XS_Plan_D( own_id,plan_id,plan_object,plan_type,plan_year,plan_month1,plan_month2,plan_month3,plan_month4,plan_month5,plan_month6,plan_month7,plan_month8,plan_month9,plan_month10,plan_month11,plan_month12,plan_subtotal ) Values('fw001',11,24,'AREA',2005,0,0,0,0,0,0,0,0,0,0,0,0,0)
Insert Into XS_Plan_D( own_id,plan_id,plan_object,plan_type,plan_year,plan_month1,plan_month2,plan_month3,plan_month4,plan_month5,plan_month6,plan_month7,plan_month8,plan_month9,plan_month10,plan_month11,plan_month12,plan_subtotal ) Values('fw001',11,25,'AREA',2005,0,0,0,0,0,0,0,0,0,0,0,0,0)
Insert Into XS_Plan_D( own_id,plan_id,plan_object,plan_type,plan_year,plan_month1,plan_month2,plan_month3,plan_month4,plan_month5,plan_month6,plan_month7,plan_month8,plan_month9,plan_month10,plan_month11,plan_month12,plan_subtotal ) Values('fw001',11,27,'AREA',2005,0,0,0,0,0,0,0,0,0,0,0,0,0)
Insert Into XS_Plan_D( own_id,plan_id,plan_object,plan_type,plan_year,plan_month1,plan_month2,plan_month3,plan_month4,plan_month5,plan_month6,plan_month7,plan_month8,plan_month9,plan_month10,plan_month11,plan_month12,plan_subtotal ) Values('fw001',11,28,'AREA',2005,0,0,0,0,0,0,0,0,0,0,0,0,0)
Insert Into XS_Plan_D( own_id,plan_id,plan_object,plan_type,plan_year,plan_month1,plan_month2,plan_month3,plan_month4,plan_month5,plan_month6,plan_month7,plan_month8,plan_month9,plan_month10,plan_month11,plan_month12,plan_subtotal ) Values('fw001',11,29,'AREA',2005,1,0,0,0,0,0,0,0,0,0,0,0,1)
Insert Into XS_Plan_D( own_id,plan_id,plan_object,plan_type,plan_year,plan_month1,plan_month2,plan_month3,plan_month4,plan_month5,plan_month6,plan_month7,plan_month8,plan_month9,plan_month10,plan_month11,plan_month12,plan_subtotal ) Values('fw001',11,30,'AREA',2005,0,0,0,0,0,0,0,0,0,0,0,0,0)
Insert Into XS_Plan_D( own_id,plan_id,plan_object,plan_type,plan_year,plan_month1,plan_month2,plan_month3,plan_month4,plan_month5,plan_month6,plan_month7,plan_month8,plan_month9,plan_month10,plan_month11,plan_month12,plan_subtotal ) Values('fw001',11,50,'AREA',2005,0,0,0,0,0,0,0,0,0,0,0,0,0)
Insert Into XS_Plan_D( own_id,plan_id,plan_object,plan_type,plan_year,plan_month1,plan_month2,plan_month3,plan_month4,plan_month5,plan_month6,plan_month7,plan_month8,plan_month9,plan_month10,plan_month11,plan_month12,plan_subtotal ) Values('fw001',13,50,'AREA',2007,0,0,0,0,0,0,0,0,0,0,0,0,0)
GO

Insert Into XS_Plan_H( plan_id,own_id,plan_code,plan_type,plan_subject,plan_year,plan_maker,plan_amount,plan_createdate,plan_memo ) Values(1,'fw001','Plan2002','EMPLOYEE','2002年度人员销售计划',2002,1,156,'01/29/2002','2002')
Insert Into XS_Plan_H( plan_id,own_id,plan_code,plan_type,plan_subject,plan_year,plan_maker,plan_amount,plan_createdate,plan_memo ) Values(2,'fw001','plan2002','PRODUCT','2002年度产品销售计划',2002,1,1014,'01/29/2002','')
Insert Into XS_Plan_H( plan_id,own_id,plan_code,plan_type,plan_subject,plan_year,plan_maker,plan_amount,plan_createdate,plan_memo ) Values(3,'fw001','plan2002','AREA','2002地区销售计划',2002,1,559,'01/29/2002','Test')
Insert Into XS_Plan_H( plan_id,own_id,plan_code,plan_type,plan_subject,plan_year,plan_maker,plan_amount,plan_createdate,plan_memo ) Values(4,'fw001','plan2003','EMPLOYEE','2003年人员销售计划',2003,1,261,'01/29/2002','')
Insert Into XS_Plan_H( plan_id,own_id,plan_code,plan_type,plan_subject,plan_year,plan_maker,plan_amount,plan_createdate,plan_memo ) Values(5,'fw001','plan2004','PRODUCT','sssss',2004,1,0,'01/29/2002','')
Insert Into XS_Plan_H( plan_id,own_id,plan_code,plan_type,plan_subject,plan_year,plan_maker,plan_amount,plan_createdate,plan_memo ) Values(6,'fw001','plan2003','AREA','2003年地区销售计划',2003,1,0,'01/29/2002','')
Insert Into XS_Plan_H( plan_id,own_id,plan_code,plan_type,plan_subject,plan_year,plan_maker,plan_amount,plan_createdate,plan_memo ) Values(7,'fw001','plan2001','AREA','2001年地区销售计划',2001,1,0,'02/01/2002','')
Insert Into XS_Plan_H( plan_id,own_id,plan_code,plan_type,plan_subject,plan_year,plan_maker,plan_amount,plan_createdate,plan_memo ) Values(8,'fw001','plan1999','EMPLOYEE','1999年人员销售计划',1999,1,0,'02/03/2002','')
Insert Into XS_Plan_H( plan_id,own_id,plan_code,plan_type,plan_subject,plan_year,plan_maker,plan_amount,plan_createdate,plan_memo ) Values(9,'fw001','plan2001','EMPLOYEE','2001年人员销售计划',2001,1,852,'03/11/2002','sadasd')
Insert Into XS_Plan_H( plan_id,own_id,plan_code,plan_type,plan_subject,plan_year,plan_maker,plan_amount,plan_createdate,plan_memo ) Values(11,'fw001','plan2005','AREA','地区销售计划',2005,1,1,'03/30/2002','')
Insert Into XS_Plan_H( plan_id,own_id,plan_code,plan_type,plan_subject,plan_year,plan_maker,plan_amount,plan_createdate,plan_memo ) Values(13,'fw001','','AREA','',2007,1,0,'05/23/2002','')
GO

Insert Into XS_QP_D( own_id,qp_id,prod_id,qp_discount,qp_taxrate,qp_price,qp_lastprice,qp_qty,qp_amount ) Values('fw001',1,10,100,0,Null,1000,10,10000)
Insert Into XS_QP_D( own_id,qp_id,prod_id,qp_discount,qp_taxrate,qp_price,qp_lastprice,qp_qty,qp_amount ) Values('fw001',1,11,100,0,Null,1200,10,12000)
Insert Into XS_QP_D( own_id,qp_id,prod_id,qp_discount,qp_taxrate,qp_price,qp_lastprice,qp_qty,qp_amount ) Values('fw001',2,18,100,0,Null,2200,10,22000)
Insert Into XS_QP_D( own_id,qp_id,prod_id,qp_discount,qp_taxrate,qp_price,qp_lastprice,qp_qty,qp_amount ) Values('fw001',2,24,100,0,Null,3500,10,35000)
GO

Insert Into XS_QP_H( qp_id,own_id,qp_code,cust_id,contact_id,oppt_id,qp_date,qp_createdate,qp_memo,qp_maker,qp_sales,qp_checker,qp_amount,qp_check,qp_close,qp_closedate ) Values(1,'fw001','XS-QP-20020414-0001',5,Null,Null,'04/01/2002','04/14/2002','',2,1,1,22000,'1','0','')
Insert Into XS_QP_H( qp_id,own_id,qp_code,cust_id,contact_id,oppt_id,qp_date,qp_createdate,qp_memo,qp_maker,qp_sales,qp_checker,qp_amount,qp_check,qp_close,qp_closedate ) Values(2,'fw001','XS-QP-20020414-0002',17,Null,Null,'04/10/2002','04/14/2002','',5,1,1,57000,'2','1','05/21/2002')
Insert Into XS_QP_H( qp_id,own_id,qp_code,cust_id,contact_id,oppt_id,qp_date,qp_createdate,qp_memo,qp_maker,qp_sales,qp_checker,qp_amount,qp_check,qp_close,qp_closedate ) Values(3,'fw001','XS-QP-20020521-0003',5,15,10,'05/21/2002','05/21/2002','',1,9,Null,0,'','0','')
Insert Into XS_QP_H( qp_id,own_id,qp_code,cust_id,contact_id,oppt_id,qp_date,qp_createdate,qp_memo,qp_maker,qp_sales,qp_checker,qp_amount,qp_check,qp_close,qp_closedate ) Values(4,'fw001','XS-QP-20020522-0001',4,0,0,'05/22/2002','05/22/2002','',1,10,Null,0,'','0','')
Insert Into XS_QP_H( qp_id,own_id,qp_code,cust_id,contact_id,oppt_id,qp_date,qp_createdate,qp_memo,qp_maker,qp_sales,qp_checker,qp_amount,qp_check,qp_close,qp_closedate ) Values(6,'fw001','XS-QP-20020522-0006',16,0,0,'05/22/2002','05/22/2002','',1,12,Null,0,'','1','06/25/2002')
GO

Insert Into XS_SO_D( own_id,so_id,prod_id,so_price,so_discount,so_taxrate,so_lastprice,so_qty,so_deliveryqty,so_amount,so_qp_id ) Values('fw001',1,10,Null,100,0,1000,10,5,10000,1)
Insert Into XS_SO_D( own_id,so_id,prod_id,so_price,so_discount,so_taxrate,so_lastprice,so_qty,so_deliveryqty,so_amount,so_qp_id ) Values('fw001',1,11,Null,100,0,1200,10,5,12000,1)
Insert Into XS_SO_D( own_id,so_id,prod_id,so_price,so_discount,so_taxrate,so_lastprice,so_qty,so_deliveryqty,so_amount,so_qp_id ) Values('fw001',4,12,Null,100,0,1400,10,0,14000,Null)
Insert Into XS_SO_D( own_id,so_id,prod_id,so_price,so_discount,so_taxrate,so_lastprice,so_qty,so_deliveryqty,so_amount,so_qp_id ) Values('fw001',4,18,Null,100,0,2200,10,0,22000,2)
Insert Into XS_SO_D( own_id,so_id,prod_id,so_price,so_discount,so_taxrate,so_lastprice,so_qty,so_deliveryqty,so_amount,so_qp_id ) Values('fw001',4,24,Null,100,0,3500,10,0,35000,2)
Insert Into XS_SO_D( own_id,so_id,prod_id,so_price,so_discount,so_taxrate,so_lastprice,so_qty,so_deliveryqty,so_amount,so_qp_id ) Values('fw001',11,33,Null,100,0,1500,10,0,15000,Null)
GO

Insert Into XS_SO_Delivery( so_id,prod_id,del_date,del_qty,del_operator,del_memo ) Values(1,10,'04/14/2002',5,1,'')
Insert Into XS_SO_Delivery( so_id,prod_id,del_date,del_qty,del_operator,del_memo ) Values(1,11,'04/14/2002',5,1,'')
GO

Insert Into XS_SO_H( so_id,own_id,so_code,cust_id,so_createdate,so_deliverydate,so_deliveryaddr,so_sales,contact_id,oppt_id,so_source,so_maker,so_checker,so_memo,so_check,so_amount,so_profit,so_paidamount,so_close,so_closedate ) Values(1,'fw001','XS-S0-20020414-00001',5,'04/08/2002','04/20/2002','',1,Null,0,26,1,1,'','1',22000,0,0,'1','04/25/2002')
Insert Into XS_SO_H( so_id,own_id,so_code,cust_id,so_createdate,so_deliverydate,so_deliveryaddr,so_sales,contact_id,oppt_id,so_source,so_maker,so_checker,so_memo,so_check,so_amount,so_profit,so_paidamount,so_close,so_closedate ) Values(3,'fw001','XS-S0-20020521-00003',4,'05/21/2002','','',10,22,22,0,1,Null,'','0',0,0,0,'0','')
Insert Into XS_SO_H( so_id,own_id,so_code,cust_id,so_createdate,so_deliverydate,so_deliveryaddr,so_sales,contact_id,oppt_id,so_source,so_maker,so_checker,so_memo,so_check,so_amount,so_profit,so_paidamount,so_close,so_closedate ) Values(4,'fw001','XS-S0-20020521-00004',17,'05/21/2002','','',2,Null,0,0,1,1,'','1',71000,0,0,'1','06/26/2002')
Insert Into XS_SO_H( so_id,own_id,so_code,cust_id,so_createdate,so_deliverydate,so_deliveryaddr,so_sales,contact_id,oppt_id,so_source,so_maker,so_checker,so_memo,so_check,so_amount,so_profit,so_paidamount,so_close,so_closedate ) Values(7,'fw001','XS-S0-20020522-00013',9,'05/22/2002','05/30/2002','sdfs',2,Null,0,0,1,1,'','2',0,0,0,'1','05/22/2002')
Insert Into XS_SO_H( so_id,own_id,so_code,cust_id,so_createdate,so_deliverydate,so_deliveryaddr,so_sales,contact_id,oppt_id,so_source,so_maker,so_checker,so_memo,so_check,so_amount,so_profit,so_paidamount,so_close,so_closedate ) Values(8,'fw001','XS-S0-20020522-00014',19,'05/22/2002','05/24/2002','',9,Null,0,0,1,Null,'','0',0,0,0,'0','')
Insert Into XS_SO_H( so_id,own_id,so_code,cust_id,so_createdate,so_deliverydate,so_deliveryaddr,so_sales,contact_id,oppt_id,so_source,so_maker,so_checker,so_memo,so_check,so_amount,so_profit,so_paidamount,so_close,so_closedate ) Values(10,'fw001','XS-S0-20020522-00016',13,'05/22/2002','05/24/2002','',3,Null,0,0,1,Null,'','0',0,0,0,'0','')
Insert Into XS_SO_H( so_id,own_id,so_code,cust_id,so_createdate,so_deliverydate,so_deliveryaddr,so_sales,contact_id,oppt_id,so_source,so_maker,so_checker,so_memo,so_check,so_amount,so_profit,so_paidamount,so_close,so_closedate ) Values(11,'fw001','XS-S0-20020522-00017',5,'05/22/2002','05/23/2002','',9,Null,8,0,1,1,'','1',15000,0,0,'1','06/25/2002')
GO

Insert Into XT_Approve( emp_id,doc_type ) Values(1,'QP')
Insert Into XT_Approve( emp_id,doc_type ) Values(1,'SO')
Insert Into XT_Approve( emp_id,doc_type ) Values(2,'QP')
Insert Into XT_Approve( emp_id,doc_type ) Values(2,'SO')
Insert Into XT_Approve( emp_id,doc_type ) Values(3,'SO')
Insert Into XT_Approve( emp_id,doc_type ) Values(5,'SO')
GO

Insert Into XT_Dept( Dept_ID,own_id,Dept_Code,Dept_Name,Dept_levels,Dept_parentid,Dept_path ) Values(2,'fw001','net','网络部',0,0,'-2-')
Insert Into XT_Dept( Dept_ID,own_id,Dept_Code,Dept_Name,Dept_levels,Dept_parentid,Dept_path ) Values(4,'fw001','Tech','技术部',0,0,'-4-')
Insert Into XT_Dept( Dept_ID,own_id,Dept_Code,Dept_Name,Dept_levels,Dept_parentid,Dept_path ) Values(5,'fw001','cust','客户服务部',0,0,'-5-')
Insert Into XT_Dept( Dept_ID,own_id,Dept_Code,Dept_Name,Dept_levels,Dept_parentid,Dept_path ) Values(6,'fw001','it','IT事业部',0,0,'-6-')
Insert Into XT_Dept( Dept_ID,own_id,Dept_Code,Dept_Name,Dept_levels,Dept_parentid,Dept_path ) Values(7,'fw001','wx','维修部',0,0,'-7-')
Insert Into XT_Dept( Dept_ID,own_id,Dept_Code,Dept_Name,Dept_levels,Dept_parentid,Dept_path ) Values(8,'fw001','tz','投资部',0,0,'-8-')
Insert Into XT_Dept( Dept_ID,own_id,Dept_Code,Dept_Name,Dept_levels,Dept_parentid,Dept_path ) Values(9,'fw001','sale','销售部',0,0,'-9-')
Insert Into XT_Dept( Dept_ID,own_id,Dept_Code,Dept_Name,Dept_levels,Dept_parentid,Dept_path ) Values(10,'fw001','bj','北京销售处',1,9,'-9-9-')
Insert Into XT_Dept( Dept_ID,own_id,Dept_Code,Dept_Name,Dept_levels,Dept_parentid,Dept_path ) Values(11,'fw001','sh','上海销售处',1,9,'-9-11-')
Insert Into XT_Dept( Dept_ID,own_id,Dept_Code,Dept_Name,Dept_levels,Dept_parentid,Dept_path ) Values(12,'fw001','cd','成都销售处',1,9,'-9-12-')
GO

Insert Into XT_Employee( Emp_ID,own_id,Emp_Code,Emp_Name,Emp_IdCard,Emp_Sex,Emp_Birthday,Emp_Native,Emp_Education,Dept_ID,Emp_Title,Emp_Ophone,Emp_Mobile,Emp_Hphone,Emp_Email,Emp_Role,Emp_Addr,Emp_Forbid,Emp_Picture,Emp_Memo ) Values(1,'Fw001','emp0003','张龙卿','450104197011204563','男','11/20/1970','','本科',9,'市场业务员','020-12345678','013923261554','021-85642317','zhang@fuwise.com','2','','0',Null,'')
Insert Into XT_Employee( Emp_ID,own_id,Emp_Code,Emp_Name,Emp_IdCard,Emp_Sex,Emp_Birthday,Emp_Native,Emp_Education,Dept_ID,Emp_Title,Emp_Ophone,Emp_Mobile,Emp_Hphone,Emp_Email,Emp_Role,Emp_Addr,Emp_Forbid,Emp_Picture,Emp_Memo ) Values(2,'Fw001','emp0002','李建成','450104197011204562','男','05/06/1972','','本科',5,'市场业务员','020-12345678','','','Ljc@china.com','4','','0',Null,'')
Insert Into XT_Employee( Emp_ID,own_id,Emp_Code,Emp_Name,Emp_IdCard,Emp_Sex,Emp_Birthday,Emp_Native,Emp_Education,Dept_ID,Emp_Title,Emp_Ophone,Emp_Mobile,Emp_Hphone,Emp_Email,Emp_Role,Emp_Addr,Emp_Forbid,Emp_Picture,Emp_Memo ) Values(3,'Fw001','emp0001','张声宏','246010819650103789','男','01/03/1965','','本科',2,'市场总监','020-12345678','','','coo@yahoo.com','1','','0',Null,'')
Insert Into XT_Employee( Emp_ID,own_id,Emp_Code,Emp_Name,Emp_IdCard,Emp_Sex,Emp_Birthday,Emp_Native,Emp_Education,Dept_ID,Emp_Title,Emp_Ophone,Emp_Mobile,Emp_Hphone,Emp_Email,Emp_Role,Emp_Addr,Emp_Forbid,Emp_Picture,Emp_Memo ) Values(5,'fw001','emp0006','周星星','','','10/02/2001','Hong Kong','',6,'Actor','020-85695694','123456','020-23569887','zhouxx@sina.com','4','Hong&nbsp;Kong','0',Null,'test''<aaa>')
Insert Into XT_Employee( Emp_ID,own_id,Emp_Code,Emp_Name,Emp_IdCard,Emp_Sex,Emp_Birthday,Emp_Native,Emp_Education,Dept_ID,Emp_Title,Emp_Ophone,Emp_Mobile,Emp_Hphone,Emp_Email,Emp_Role,Emp_Addr,Emp_Forbid,Emp_Picture,Emp_Memo ) Values(9,'fw001','emp0004','张大庆','','男','','','',4,'','020-87975632','','','zhangdq@fuwise.com','4','','0',Null,'')
Insert Into XT_Employee( Emp_ID,own_id,Emp_Code,Emp_Name,Emp_IdCard,Emp_Sex,Emp_Birthday,Emp_Native,Emp_Education,Dept_ID,Emp_Title,Emp_Ophone,Emp_Mobile,Emp_Hphone,Emp_Email,Emp_Role,Emp_Addr,Emp_Forbid,Emp_Picture,Emp_Memo ) Values(10,'fw001','emp0005','赵玲','','女','','','',9,'','020-85679471','','020-85698725','zhaol@21cn.com','4','','0',Null,'')
Insert Into XT_Employee( Emp_ID,own_id,Emp_Code,Emp_Name,Emp_IdCard,Emp_Sex,Emp_Birthday,Emp_Native,Emp_Education,Dept_ID,Emp_Title,Emp_Ophone,Emp_Mobile,Emp_Hphone,Emp_Email,Emp_Role,Emp_Addr,Emp_Forbid,Emp_Picture,Emp_Memo ) Values(12,'fw001','emp0007','钱东方','','','11/25/1976','','',8,'','020-85648221','53453453463','','qdfang@21cn.com','4','','0',Null,'')
Insert Into XT_Employee( Emp_ID,own_id,Emp_Code,Emp_Name,Emp_IdCard,Emp_Sex,Emp_Birthday,Emp_Native,Emp_Education,Dept_ID,Emp_Title,Emp_Ophone,Emp_Mobile,Emp_Hphone,Emp_Email,Emp_Role,Emp_Addr,Emp_Forbid,Emp_Picture,Emp_Memo ) Values(13,'fw001','emp0008','王印西','','','','','',6,'','020-85698712','','','wangyx@sina.com','4','','0',Null,'')
Insert Into XT_Employee( Emp_ID,own_id,Emp_Code,Emp_Name,Emp_IdCard,Emp_Sex,Emp_Birthday,Emp_Native,Emp_Education,Dept_ID,Emp_Title,Emp_Ophone,Emp_Mobile,Emp_Hphone,Emp_Email,Emp_Role,Emp_Addr,Emp_Forbid,Emp_Picture,Emp_Memo ) Values(14,'fw001','emp0009','葛世宏','','男','','','',5,'','020-84523698','','','shihong@sina.com','4','','0',Null,'')
Insert Into XT_Employee( Emp_ID,own_id,Emp_Code,Emp_Name,Emp_IdCard,Emp_Sex,Emp_Birthday,Emp_Native,Emp_Education,Dept_ID,Emp_Title,Emp_Ophone,Emp_Mobile,Emp_Hphone,Emp_Email,Emp_Role,Emp_Addr,Emp_Forbid,Emp_Picture,Emp_Memo ) Values(15,'fw001','emp0010','袁斌','','','','','',2,'','020-85629554','','','yuanb@yahoo.com','4','','1',3,'')
Insert Into XT_Employee( Emp_ID,own_id,Emp_Code,Emp_Name,Emp_IdCard,Emp_Sex,Emp_Birthday,Emp_Native,Emp_Education,Dept_ID,Emp_Title,Emp_Ophone,Emp_Mobile,Emp_Hphone,Emp_Email,Emp_Role,Emp_Addr,Emp_Forbid,Emp_Picture,Emp_Memo ) Values(16,'Fw001','emp0011','王作民','480504196004051233','男','04/05/1960','','',2,'CEO','020-12345678','','','ceo@sdiye.com','4','','0',Null,'')
Insert Into XT_Employee( Emp_ID,own_id,Emp_Code,Emp_Name,Emp_IdCard,Emp_Sex,Emp_Birthday,Emp_Native,Emp_Education,Dept_ID,Emp_Title,Emp_Ophone,Emp_Mobile,Emp_Hphone,Emp_Email,Emp_Role,Emp_Addr,Emp_Forbid,Emp_Picture,Emp_Memo ) Values(17,'fw001','emp0000','管理员','','男','','广东广州','硕士',2,'','020-87589585','13825684321','020-85469871','webmaster@micso.com','5','','0',13,'')
GO

Insert Into XT_Module( mod_id,mod_code,mod_name,mod_type,mod_seq,mod_parent,mod_level,mod_HaveSub,mod_read,mod_edit,mod_delete ) Values(1,'JC','基础设置','JC',1,0,0,'1','1','0','0')
Insert Into XT_Module( mod_id,mod_code,mod_name,mod_type,mod_seq,mod_parent,mod_level,mod_HaveSub,mod_read,mod_edit,mod_delete ) Values(2,'JC','客户设置','JC',2,1,1,'0','1','1','1')
Insert Into XT_Module( mod_id,mod_code,mod_name,mod_type,mod_seq,mod_parent,mod_level,mod_HaveSub,mod_read,mod_edit,mod_delete ) Values(3,'JC','销售设置','JC',3,1,1,'0','1','1','1')
Insert Into XT_Module( mod_id,mod_code,mod_name,mod_type,mod_seq,mod_parent,mod_level,mod_HaveSub,mod_read,mod_edit,mod_delete ) Values(4,'JC','服务设置','JC',4,1,1,'0','1','1','1')
Insert Into XT_Module( mod_id,mod_code,mod_name,mod_type,mod_seq,mod_parent,mod_level,mod_HaveSub,mod_read,mod_edit,mod_delete ) Values(5,'JC','市场设置','JC',5,1,1,'0','1','1','1')
Insert Into XT_Module( mod_id,mod_code,mod_name,mod_type,mod_seq,mod_parent,mod_level,mod_HaveSub,mod_read,mod_edit,mod_delete ) Values(6,'JC','地区设置','JC',6,1,1,'0','1','1','1')
Insert Into XT_Module( mod_id,mod_code,mod_name,mod_type,mod_seq,mod_parent,mod_level,mod_HaveSub,mod_read,mod_edit,mod_delete ) Values(7,'JC','区域设置','JC',7,1,1,'0','1','1','1')
Insert Into XT_Module( mod_id,mod_code,mod_name,mod_type,mod_seq,mod_parent,mod_level,mod_HaveSub,mod_read,mod_edit,mod_delete ) Values(8,'JC','其它设置','JC',8,1,1,'0','1','1','1')
Insert Into XT_Module( mod_id,mod_code,mod_name,mod_type,mod_seq,mod_parent,mod_level,mod_HaveSub,mod_read,mod_edit,mod_delete ) Values(9,'JC','编码规则','JC',9,1,1,'0','1','1','1')
Insert Into XT_Module( mod_id,mod_code,mod_name,mod_type,mod_seq,mod_parent,mod_level,mod_HaveSub,mod_read,mod_edit,mod_delete ) Values(10,'JC','节日定义','JC',10,1,1,'0','1','1','1')
Insert Into XT_Module( mod_id,mod_code,mod_name,mod_type,mod_seq,mod_parent,mod_level,mod_HaveSub,mod_read,mod_edit,mod_delete ) Values(11,'JB','基本信息','JB',1,0,0,'1','1','0','0')
Insert Into XT_Module( mod_id,mod_code,mod_name,mod_type,mod_seq,mod_parent,mod_level,mod_HaveSub,mod_read,mod_edit,mod_delete ) Values(12,'JB','客户资料','JB',2,11,1,'0','1','1','1')
Insert Into XT_Module( mod_id,mod_code,mod_name,mod_type,mod_seq,mod_parent,mod_level,mod_HaveSub,mod_read,mod_edit,mod_delete ) Values(13,'JB','客户分配','JB',3,11,1,'0','1','1','0')
Insert Into XT_Module( mod_id,mod_code,mod_name,mod_type,mod_seq,mod_parent,mod_level,mod_HaveSub,mod_read,mod_edit,mod_delete ) Values(14,'JB','联系人','JB',4,11,1,'0','1','1','1')
Insert Into XT_Module( mod_id,mod_code,mod_name,mod_type,mod_seq,mod_parent,mod_level,mod_HaveSub,mod_read,mod_edit,mod_delete ) Values(15,'JB','竞争对手','JB',5,11,1,'0','1','1','1')
Insert Into XT_Module( mod_id,mod_code,mod_name,mod_type,mod_seq,mod_parent,mod_level,mod_HaveSub,mod_read,mod_edit,mod_delete ) Values(16,'JB','产品类别','JB',6,11,1,'0','1','1','1')
Insert Into XT_Module( mod_id,mod_code,mod_name,mod_type,mod_seq,mod_parent,mod_level,mod_HaveSub,mod_read,mod_edit,mod_delete ) Values(17,'JB','产品信息','JB',7,11,1,'0','1','1','1')
Insert Into XT_Module( mod_id,mod_code,mod_name,mod_type,mod_seq,mod_parent,mod_level,mod_HaveSub,mod_read,mod_edit,mod_delete ) Values(18,'XS','销售管理','XS',1,0,0,'1','1','0','0')
Insert Into XT_Module( mod_id,mod_code,mod_name,mod_type,mod_seq,mod_parent,mod_level,mod_HaveSub,mod_read,mod_edit,mod_delete ) Values(19,'XS','人员计划','XS',2,18,1,'0','1','1','1')
Insert Into XT_Module( mod_id,mod_code,mod_name,mod_type,mod_seq,mod_parent,mod_level,mod_HaveSub,mod_read,mod_edit,mod_delete ) Values(20,'XS','产品计划','XS',3,18,1,'0','1','1','1')
Insert Into XT_Module( mod_id,mod_code,mod_name,mod_type,mod_seq,mod_parent,mod_level,mod_HaveSub,mod_read,mod_edit,mod_delete ) Values(21,'XS','地区计划','XS',4,18,1,'0','1','1','1')
Insert Into XT_Module( mod_id,mod_code,mod_name,mod_type,mod_seq,mod_parent,mod_level,mod_HaveSub,mod_read,mod_edit,mod_delete ) Values(22,'XS','销售机会','XS',5,18,1,'0','1','1','1')
Insert Into XT_Module( mod_id,mod_code,mod_name,mod_type,mod_seq,mod_parent,mod_level,mod_HaveSub,mod_read,mod_edit,mod_delete ) Values(23,'XS','机会分配','XS',6,18,1,'0','1','1','0')
Insert Into XT_Module( mod_id,mod_code,mod_name,mod_type,mod_seq,mod_parent,mod_level,mod_HaveSub,mod_read,mod_edit,mod_delete ) Values(24,'XS','销售进程','XS',7,18,1,'0','1','1','1')
Insert Into XT_Module( mod_id,mod_code,mod_name,mod_type,mod_seq,mod_parent,mod_level,mod_HaveSub,mod_read,mod_edit,mod_delete ) Values(25,'XS','报价单','XS',8,18,1,'0','1','1','1')
Insert Into XT_Module( mod_id,mod_code,mod_name,mod_type,mod_seq,mod_parent,mod_level,mod_HaveSub,mod_read,mod_edit,mod_delete ) Values(26,'XS','订单管理','XS',9,18,1,'0','1','1','1')
Insert Into XT_Module( mod_id,mod_code,mod_name,mod_type,mod_seq,mod_parent,mod_level,mod_HaveSub,mod_read,mod_edit,mod_delete ) Values(27,'FW','客户服务','FW',1,0,0,'1','1','0','0')
Insert Into XT_Module( mod_id,mod_code,mod_name,mod_type,mod_seq,mod_parent,mod_level,mod_HaveSub,mod_read,mod_edit,mod_delete ) Values(28,'FW','客户反馈','FW',2,27,1,'0','1','1','1')
Insert Into XT_Module( mod_id,mod_code,mod_name,mod_type,mod_seq,mod_parent,mod_level,mod_HaveSub,mod_read,mod_edit,mod_delete ) Values(29,'FW','服务任务','FW',3,27,1,'0','1','1','1')
Insert Into XT_Module( mod_id,mod_code,mod_name,mod_type,mod_seq,mod_parent,mod_level,mod_HaveSub,mod_read,mod_edit,mod_delete ) Values(30,'FW','服务进程','FW',4,27,1,'0','1','1','1')
Insert Into XT_Module( mod_id,mod_code,mod_name,mod_type,mod_seq,mod_parent,mod_level,mod_HaveSub,mod_read,mod_edit,mod_delete ) Values(31,'GH','客户关怀','GH',1,0,0,'1','1','0','0')
Insert Into XT_Module( mod_id,mod_code,mod_name,mod_type,mod_seq,mod_parent,mod_level,mod_HaveSub,mod_read,mod_edit,mod_delete ) Values(32,'GH','关怀任务','GH',2,31,1,'0','1','1','1')
Insert Into XT_Module( mod_id,mod_code,mod_name,mod_type,mod_seq,mod_parent,mod_level,mod_HaveSub,mod_read,mod_edit,mod_delete ) Values(33,'GH','关怀进程','GH',3,31,1,'0','1','1','1')
Insert Into XT_Module( mod_id,mod_code,mod_name,mod_type,mod_seq,mod_parent,mod_level,mod_HaveSub,mod_read,mod_edit,mod_delete ) Values(34,'GH','特别关怀','GH',4,31,1,'0','1','1','1')
Insert Into XT_Module( mod_id,mod_code,mod_name,mod_type,mod_seq,mod_parent,mod_level,mod_HaveSub,mod_read,mod_edit,mod_delete ) Values(35,'SC','市场活动','SC',1,0,0,'1','1','0','0')
Insert Into XT_Module( mod_id,mod_code,mod_name,mod_type,mod_seq,mod_parent,mod_level,mod_HaveSub,mod_read,mod_edit,mod_delete ) Values(36,'SC','市场项目管理','SC',2,35,1,'0','1','1','1')
Insert Into XT_Module( mod_id,mod_code,mod_name,mod_type,mod_seq,mod_parent,mod_level,mod_HaveSub,mod_read,mod_edit,mod_delete ) Values(37,'SC','市场活动管理','SC',3,35,1,'0','1','1','1')
Insert Into XT_Module( mod_id,mod_code,mod_name,mod_type,mod_seq,mod_parent,mod_level,mod_HaveSub,mod_read,mod_edit,mod_delete ) Values(38,'SJ','时间管理','SJ',1,0,0,'1','1','0','0')
Insert Into XT_Module( mod_id,mod_code,mod_name,mod_type,mod_seq,mod_parent,mod_level,mod_HaveSub,mod_read,mod_edit,mod_delete ) Values(39,'SJ','工作日程','SJ',2,38,1,'0','1','1','1')
Insert Into XT_Module( mod_id,mod_code,mod_name,mod_type,mod_seq,mod_parent,mod_level,mod_HaveSub,mod_read,mod_edit,mod_delete ) Values(40,'SJ','公告板','SJ',3,38,1,'0','1','1','1')
Insert Into XT_Module( mod_id,mod_code,mod_name,mod_type,mod_seq,mod_parent,mod_level,mod_HaveSub,mod_read,mod_edit,mod_delete ) Values(41,'SJ','事件安排','SJ',4,38,1,'0','1','1','1')
Insert Into XT_Module( mod_id,mod_code,mod_name,mod_type,mod_seq,mod_parent,mod_level,mod_HaveSub,mod_read,mod_edit,mod_delete ) Values(42,'SJ','备忘录','SJ',5,38,1,'0','1','1','1')
Insert Into XT_Module( mod_id,mod_code,mod_name,mod_type,mod_seq,mod_parent,mod_level,mod_HaveSub,mod_read,mod_edit,mod_delete ) Values(43,'ZS','知识管理','ZS',1,0,0,'1','1','0','0')
Insert Into XT_Module( mod_id,mod_code,mod_name,mod_type,mod_seq,mod_parent,mod_level,mod_HaveSub,mod_read,mod_edit,mod_delete ) Values(44,'ZS','文档管理','ZS',2,43,1,'0','1','1','1')
Insert Into XT_Module( mod_id,mod_code,mod_name,mod_type,mod_seq,mod_parent,mod_level,mod_HaveSub,mod_read,mod_edit,mod_delete ) Values(45,'ZS','知识库','ZS',3,43,1,'0','1','1','1')
Insert Into XT_Module( mod_id,mod_code,mod_name,mod_type,mod_seq,mod_parent,mod_level,mod_HaveSub,mod_read,mod_edit,mod_delete ) Values(46,'FX','分析决策','FX',1,0,0,'1','1','0','0')
Insert Into XT_Module( mod_id,mod_code,mod_name,mod_type,mod_seq,mod_parent,mod_level,mod_HaveSub,mod_read,mod_edit,mod_delete ) Values(47,'FX','销售分析','FX',2,46,1,'0','1','0','0')
Insert Into XT_Module( mod_id,mod_code,mod_name,mod_type,mod_seq,mod_parent,mod_level,mod_HaveSub,mod_read,mod_edit,mod_delete ) Values(48,'FX','服务分析','FX',3,46,1,'0','1','0','0')
Insert Into XT_Module( mod_id,mod_code,mod_name,mod_type,mod_seq,mod_parent,mod_level,mod_HaveSub,mod_read,mod_edit,mod_delete ) Values(49,'FX','费用分析','FX',4,46,1,'0','1','0','0')
Insert Into XT_Module( mod_id,mod_code,mod_name,mod_type,mod_seq,mod_parent,mod_level,mod_HaveSub,mod_read,mod_edit,mod_delete ) Values(50,'FX','市场分析','FX',5,46,1,'0','1','0','0')
Insert Into XT_Module( mod_id,mod_code,mod_name,mod_type,mod_seq,mod_parent,mod_level,mod_HaveSub,mod_read,mod_edit,mod_delete ) Values(51,'FX','客户分析','FX',6,46,1,'0','1','0','0')
Insert Into XT_Module( mod_id,mod_code,mod_name,mod_type,mod_seq,mod_parent,mod_level,mod_HaveSub,mod_read,mod_edit,mod_delete ) Values(52,'FX','员工分析','FX',7,46,1,'0','1','0','0')
Insert Into XT_Module( mod_id,mod_code,mod_name,mod_type,mod_seq,mod_parent,mod_level,mod_HaveSub,mod_read,mod_edit,mod_delete ) Values(53,'FX','产品分析','FX',8,46,1,'0','1','0','0')
Insert Into XT_Module( mod_id,mod_code,mod_name,mod_type,mod_seq,mod_parent,mod_level,mod_HaveSub,mod_read,mod_edit,mod_delete ) Values(54,'FX','考核分析','FX',9,46,1,'0','1','0','0')
Insert Into XT_Module( mod_id,mod_code,mod_name,mod_type,mod_seq,mod_parent,mod_level,mod_HaveSub,mod_read,mod_edit,mod_delete ) Values(55,'XT','系统设置','XT',1,0,0,'1','1','0','0')
Insert Into XT_Module( mod_id,mod_code,mod_name,mod_type,mod_seq,mod_parent,mod_level,mod_HaveSub,mod_read,mod_edit,mod_delete ) Values(56,'XT','部门设置','XT',2,55,1,'0','1','1','1')
Insert Into XT_Module( mod_id,mod_code,mod_name,mod_type,mod_seq,mod_parent,mod_level,mod_HaveSub,mod_read,mod_edit,mod_delete ) Values(57,'XT','职员设置','XT',3,55,1,'0','1','1','1')
Insert Into XT_Module( mod_id,mod_code,mod_name,mod_type,mod_seq,mod_parent,mod_level,mod_HaveSub,mod_read,mod_edit,mod_delete ) Values(58,'XT','角色定义','XT',4,55,1,'0','1','1','1')
Insert Into XT_Module( mod_id,mod_code,mod_name,mod_type,mod_seq,mod_parent,mod_level,mod_HaveSub,mod_read,mod_edit,mod_delete ) Values(59,'XT','审核权限','XT',5,55,1,'0','1','1','0')
Insert Into XT_Module( mod_id,mod_code,mod_name,mod_type,mod_seq,mod_parent,mod_level,mod_HaveSub,mod_read,mod_edit,mod_delete ) Values(60,'XT','操作日志','XT',6,55,1,'0','1','1','1')
GO

Insert Into XT_Role( role_id,own_id,role_name,role_right,role_desc,role_customer,role_contact,role_oppt,role_act,role_qp,role_so,role_service,role_care,role_market ) Values(1,'fw001','总经理','133333333313233331333323331333133313313333133111111111133323','','3','3','3','3','3','3','3','3','3')
Insert Into XT_Role( role_id,own_id,role_name,role_right,role_desc,role_customer,role_contact,role_oppt,role_act,role_qp,role_so,role_service,role_care,role_market ) Values(2,'fw001','销售总监','133333333313233331333323331333133313313333133111111111133323','','3','3','3','3','3','3','3','3','3')
Insert Into XT_Role( role_id,own_id,role_name,role_right,role_desc,role_customer,role_contact,role_oppt,role_act,role_qp,role_so,role_service,role_care,role_market ) Values(3,'fw001','销售经理','133333333313033331000303331333133313313333133000000000000000','','2','2','2','2','2','2','2','2','2')
Insert Into XT_Role( role_id,own_id,role_name,role_right,role_desc,role_customer,role_contact,role_oppt,role_act,role_qp,role_so,role_service,role_care,role_market ) Values(4,'fw001','销售业务员','000000000012022221000202221222122212213333122000000000000000','','1','1','1','1','1','1','1','1','1')
Insert Into XT_Role( role_id,own_id,role_name,role_right,role_desc,role_customer,role_contact,role_oppt,role_act,role_qp,role_so,role_service,role_care,role_market ) Values(5,'fw001','系统管理员','133333333300000000000000000000000000000000000000000000133323','Administrator Group','3','3','3','3','3','3','3','3','3')
GO

