创建数据库CreateSQL.sql 141 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385
  1. USE [db]
  2. GO
  3. /****** 对象: Table [dbo].[burncdreg] 脚本日期: 01/19/2015 17:07:49 ******/
  4. SET ANSI_NULLS ON
  5. GO
  6. SET QUOTED_IDENTIFIER ON
  7. GO
  8. SET ANSI_PADDING ON
  9. GO
  10. CREATE TABLE [dbo].[burncdreg](
  11. [id] [nvarchar](50) NULL,
  12. [date] [nvarchar](50) NULL,
  13. [ren] [nvarchar](50) NULL,
  14. [remark] [nvarchar](50) NULL
  15. ) ON [PRIMARY]
  16. GO
  17. SET ANSI_PADDING OFF
  18. GO
  19. /****** 对象: Table [dbo].[childmsg] 脚本日期: 01/19/2015 17:07:50 ******/
  20. SET ANSI_NULLS ON
  21. GO
  22. SET QUOTED_IDENTIFIER ON
  23. GO
  24. SET ANSI_PADDING ON
  25. GO
  26. CREATE TABLE [dbo].[childmsg](
  27. [check] [nvarchar](50) NULL,
  28. [days] [nvarchar](50) NULL,
  29. [content] [nvarchar](max) NULL,
  30. [mode] [nvarchar](50) NULL
  31. ) ON [PRIMARY]
  32. GO
  33. SET ANSI_PADDING OFF
  34. GO
  35. /****** 对象: Table [dbo].[client] 脚本日期: 01/19/2015 17:07:53 ******/
  36. SET ANSI_NULLS ON
  37. GO
  38. SET QUOTED_IDENTIFIER ON
  39. GO
  40. CREATE TABLE [dbo].[client](
  41. [id] [nvarchar](50) NULL,
  42. [name1] [nvarchar](50) NULL,
  43. [name2] [nvarchar](50) NULL,
  44. [phone1] [nvarchar](50) NULL,
  45. [phone2] [nvarchar](50) NULL,
  46. [qq1] [nvarchar](50) NULL,
  47. [qq2] [nvarchar](50) NULL,
  48. [addr1] [nvarchar](50) NULL,
  49. [addr2] [nvarchar](50) NULL,
  50. [occupation1] [nvarchar](50) NULL,
  51. [occupation2] [nvarchar](50) NULL,
  52. [birthday1] [nvarchar](50) NULL,
  53. [birthday2] [nvarchar](50) NULL,
  54. [time3] [nvarchar](50) NULL,
  55. [area] [nvarchar](50) NULL,
  56. [area2] [nvarchar](50) NULL,
  57. [check1] [nvarchar](50) NULL,
  58. [check2] [nvarchar](50) NULL,
  59. [check3] [nvarchar](50) NULL,
  60. [sex] [nvarchar](50) NULL,
  61. [zodiac] [nvarchar](50) NULL,
  62. [photo] [image] NULL
  63. ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
  64. GO
  65. /****** 对象: Table [dbo].[client2] 脚本日期: 01/19/2015 17:07:55 ******/
  66. SET ANSI_NULLS ON
  67. GO
  68. SET QUOTED_IDENTIFIER ON
  69. GO
  70. SET ANSI_PADDING ON
  71. GO
  72. CREATE TABLE [dbo].[client2](
  73. [name] [nvarchar](50) NULL,
  74. [phone] [nvarchar](50) NULL,
  75. [qq] [nvarchar](50) NULL,
  76. [addr] [nvarchar](50) NULL,
  77. [from] [nvarchar](50) NULL,
  78. [reason] [nvarchar](50) NULL,
  79. [bz] [nvarchar](max) NULL,
  80. [pinyin] [nvarchar](50) NULL,
  81. [date] [nvarchar](50) NULL,
  82. [sex] [nvarchar](50) NULL,
  83. [id] [int] IDENTITY(1,1) NOT NULL,
  84. [ren] [nvarchar](50) NULL,
  85. [birthday] [nvarchar](50) NULL,
  86. [check1] [nvarchar](50) NULL,
  87. [area] [nvarchar](50) NULL,
  88. [name2] [nvarchar](50) NULL,
  89. [status] [nvarchar](50) NULL,
  90. [pinyin2] [nvarchar](50) NULL
  91. ) ON [PRIMARY]
  92. GO
  93. SET ANSI_PADDING OFF
  94. GO
  95. /****** 对象: Table [dbo].[client2phonerecord] 脚本日期: 01/19/2015 17:07:55 ******/
  96. SET ANSI_NULLS ON
  97. GO
  98. SET QUOTED_IDENTIFIER ON
  99. GO
  100. SET ANSI_PADDING ON
  101. GO
  102. CREATE TABLE [dbo].[client2phonerecord](
  103. [phone] [nvarchar](50) NULL,
  104. [datetime] [nvarchar](50) NULL
  105. ) ON [PRIMARY]
  106. GO
  107. SET ANSI_PADDING OFF
  108. GO
  109. /****** 对象: Table [dbo].[client2phonerecordout] 脚本日期: 01/19/2015 17:07:56 ******/
  110. SET ANSI_NULLS ON
  111. GO
  112. SET QUOTED_IDENTIFIER ON
  113. GO
  114. SET ANSI_PADDING ON
  115. GO
  116. CREATE TABLE [dbo].[client2phonerecordout](
  117. [phoneno] [nvarchar](50) NULL,
  118. [datetime] [nvarchar](50) NULL,
  119. [name] [nvarchar](50) NULL
  120. ) ON [PRIMARY]
  121. GO
  122. SET ANSI_PADDING OFF
  123. GO
  124. /****** 对象: Table [dbo].[client3] 脚本日期: 01/19/2015 17:07:59 ******/
  125. SET ANSI_NULLS ON
  126. GO
  127. SET QUOTED_IDENTIFIER ON
  128. GO
  129. SET ANSI_PADDING ON
  130. GO
  131. CREATE TABLE [dbo].[client3](
  132. [name] [nvarchar](50) NULL,
  133. [phone] [nvarchar](50) NULL,
  134. [qq] [nvarchar](50) NULL,
  135. [addr] [nvarchar](50) NULL,
  136. [bz] [nvarchar](max) NULL,
  137. [pinyin] [nvarchar](50) NULL,
  138. [date] [nvarchar](50) NULL,
  139. [sex] [nvarchar](50) NULL,
  140. [ren] [nvarchar](50) NULL,
  141. [id] [int] IDENTITY(1,1) NOT NULL,
  142. [dandate] [nvarchar](50) NULL,
  143. [name2] [nvarchar](50) NULL,
  144. [phone2] [nvarchar](50) NULL,
  145. [qq2] [nvarchar](50) NULL,
  146. [birthday] [nvarchar](50) NULL,
  147. [birthday2] [nvarchar](50) NULL,
  148. [time3] [nvarchar](50) NULL,
  149. [taoxiname] [nvarchar](50) NULL,
  150. [taoxijiage] [nvarchar](50) NULL,
  151. [check1] [nvarchar](50) NULL,
  152. [check2] [nvarchar](50) NULL,
  153. [check3] [nvarchar](50) NULL,
  154. [pinyin2] [nvarchar](50) NULL
  155. ) ON [PRIMARY]
  156. GO
  157. SET ANSI_PADDING OFF
  158. GO
  159. /****** 对象: Table [dbo].[client3phonerecord] 脚本日期: 01/19/2015 17:07:59 ******/
  160. SET ANSI_NULLS ON
  161. GO
  162. SET QUOTED_IDENTIFIER ON
  163. GO
  164. SET ANSI_PADDING ON
  165. GO
  166. CREATE TABLE [dbo].[client3phonerecord](
  167. [phone] [nvarchar](50) NULL,
  168. [datetime] [nvarchar](50) NULL
  169. ) ON [PRIMARY]
  170. GO
  171. SET ANSI_PADDING OFF
  172. GO
  173. /****** 对象: Table [dbo].[client3phonerecordout] 脚本日期: 01/19/2015 17:08:00 ******/
  174. SET ANSI_NULLS ON
  175. GO
  176. SET QUOTED_IDENTIFIER ON
  177. GO
  178. SET ANSI_PADDING ON
  179. GO
  180. CREATE TABLE [dbo].[client3phonerecordout](
  181. [phoneno] [nvarchar](50) NULL,
  182. [datetime] [nvarchar](50) NULL,
  183. [name] [nvarchar](50) NULL
  184. ) ON [PRIMARY]
  185. GO
  186. SET ANSI_PADDING OFF
  187. GO
  188. /****** 对象: Table [dbo].[clientfrom] 脚本日期: 01/19/2015 17:08:00 ******/
  189. SET ANSI_NULLS ON
  190. GO
  191. SET QUOTED_IDENTIFIER ON
  192. GO
  193. SET ANSI_PADDING ON
  194. GO
  195. CREATE TABLE [dbo].[clientfrom](
  196. [name] [nvarchar](50) NULL,
  197. [id] [int] IDENTITY(1,1) NOT NULL
  198. ) ON [PRIMARY]
  199. GO
  200. SET ANSI_PADDING OFF
  201. GO
  202. /****** 对象: Table [dbo].[clientreason] 脚本日期: 01/19/2015 17:08:01 ******/
  203. SET ANSI_NULLS ON
  204. GO
  205. SET QUOTED_IDENTIFIER ON
  206. GO
  207. SET ANSI_PADDING ON
  208. GO
  209. CREATE TABLE [dbo].[clientreason](
  210. [name] [nvarchar](50) NULL,
  211. [id] [int] IDENTITY(1,1) NOT NULL
  212. ) ON [PRIMARY]
  213. GO
  214. SET ANSI_PADDING OFF
  215. GO
  216. /****** 对象: Table [dbo].[digitalwork] 脚本日期: 01/19/2015 17:08:02 ******/
  217. SET ANSI_NULLS ON
  218. GO
  219. SET QUOTED_IDENTIFIER ON
  220. GO
  221. SET ANSI_PADDING ON
  222. GO
  223. CREATE TABLE [dbo].[digitalwork](
  224. [id] [nvarchar](50) NULL,
  225. [waiter1] [nvarchar](50) NULL,
  226. [waiter2] [nvarchar](50) NULL,
  227. [waiter3] [nvarchar](50) NULL,
  228. [date1] [nvarchar](50) NULL,
  229. [date2] [nvarchar](50) NULL,
  230. [date3] [nvarchar](50) NULL
  231. ) ON [PRIMARY]
  232. GO
  233. SET ANSI_PADDING OFF
  234. GO
  235. /****** 对象: Table [dbo].[dindan] 脚本日期: 01/19/2015 17:08:21 ******/
  236. SET ANSI_NULLS ON
  237. GO
  238. SET QUOTED_IDENTIFIER ON
  239. GO
  240. SET ANSI_PADDING ON
  241. GO
  242. CREATE TABLE [dbo].[dindan](
  243. [id] [nvarchar](50) NULL,
  244. [money1] [nvarchar](50) NULL,
  245. [money2] [nvarchar](50) NULL,
  246. [money3] [nvarchar](50) NULL,
  247. [name1] [nvarchar](50) NULL,
  248. [name2] [nvarchar](50) NULL,
  249. [taoxiid] [nvarchar](50) NULL,
  250. [taoxiname] [nvarchar](50) NULL,
  251. [taoxijiage] [nvarchar](50) NULL,
  252. [taoxizs] [nvarchar](50) NULL,
  253. [time1] [nvarchar](50) NULL,
  254. [time2] [nvarchar](50) NULL,
  255. [time3] [nvarchar](50) NULL,
  256. [bm] [nvarchar](50) NULL,
  257. [ren] [nvarchar](50) NULL,
  258. [discount] [nvarchar](50) NULL,
  259. [payed1] [nvarchar](50) NULL,
  260. [payed2] [nvarchar](50) NULL,
  261. [payed3] [nvarchar](50) NULL,
  262. [payed4] [nvarchar](50) NULL,
  263. [payed5] [nvarchar](50) NULL,
  264. [time4] [nvarchar](50) NULL,
  265. [time5] [nvarchar](50) NULL,
  266. [takezs] [nvarchar](50) NULL,
  267. [choosezs] [nvarchar](50) NULL,
  268. [status] [nvarchar](50) NULL,
  269. [clothescount2] [nvarchar](50) NULL,
  270. [outside2] [nvarchar](50) NULL,
  271. [style] [nvarchar](50) NULL,
  272. [payed3time] [nvarchar](50) NULL,
  273. [payed4ren] [nvarchar](50) NULL,
  274. [payed4time] [nvarchar](50) NULL,
  275. [status2] [nvarchar](50) NULL,
  276. [status3] [nvarchar](50) NULL,
  277. [waiter1] [nvarchar](50) NULL,
  278. [waiter2] [nvarchar](50) NULL,
  279. [waiter3] [nvarchar](50) NULL,
  280. [waiter4] [nvarchar](50) NULL,
  281. [bz] [nvarchar](max) NULL,
  282. [taketime] [nvarchar](50) NULL,
  283. [clothescount] [nvarchar](50) NULL,
  284. [outside] [nvarchar](50) NULL,
  285. [bz2] [nvarchar](max) NULL,
  286. [bz3] [nvarchar](max) NULL,
  287. [urgent] [nvarchar](50) NULL,
  288. [status4] [nvarchar](50) NULL,
  289. [status5] [nvarchar](50) NULL,
  290. [waiter5] [nvarchar](50) NULL,
  291. [waiter6] [nvarchar](50) NULL,
  292. [pinyin1] [nvarchar](50) NULL,
  293. [pinyin2] [nvarchar](50) NULL,
  294. [waiter7] [nvarchar](50) NULL,
  295. [status6] [nvarchar](50) NULL,
  296. [phone1] [nvarchar](50) NULL,
  297. [phone2] [nvarchar](50) NULL,
  298. [status7] [nvarchar](50) NULL,
  299. [memberno] [nvarchar](50) NULL,
  300. [waiter8] [nvarchar](50) NULL,
  301. [time6] [nvarchar](50) NULL,
  302. [status8] [nvarchar](50) NULL,
  303. [bruncount] [nvarchar](50) NULL,
  304. [tichenren1] [nvarchar](50) NULL,
  305. [tichenren2] [nvarchar](50) NULL,
  306. [tichenren3] [nvarchar](50) NULL,
  307. [tichenren4] [nvarchar](50) NULL,
  308. [tichenren5] [nvarchar](50) NULL,
  309. [send1] [nvarchar](50) NULL,
  310. [send2] [nvarchar](50) NULL,
  311. [send3] [nvarchar](50) NULL,
  312. [datetime4] [nvarchar](50) NULL,
  313. [datetime5] [nvarchar](50) NULL,
  314. [datetime6] [nvarchar](50) NULL,
  315. [waiter12] [nvarchar](50) NULL,
  316. [waiter22] [nvarchar](50) NULL,
  317. [waiter1rate] [nvarchar](50) NULL,
  318. [waiter2rate] [nvarchar](50) NULL,
  319. [waiter13] [nvarchar](50) NULL,
  320. [waiter14] [nvarchar](50) NULL,
  321. [waiter23] [nvarchar](50) NULL,
  322. [waiter24] [nvarchar](50) NULL,
  323. [waiter12rate] [nvarchar](50) NULL,
  324. [waiter13rate] [nvarchar](50) NULL,
  325. [waiter14rate] [nvarchar](50) NULL,
  326. [waiter22rate] [nvarchar](50) NULL,
  327. [waiter23rate] [nvarchar](50) NULL,
  328. [waiter24rate] [nvarchar](50) NULL,
  329. [ren2] [nvarchar](50) NULL,
  330. [renrate] [nvarchar](50) NULL,
  331. [ren2rate] [nvarchar](50) NULL,
  332. [txtype] [nvarchar](50) NULL,
  333. [delphotos] [nvarchar](max) NULL,
  334. [growthtxselname] [nvarchar](max) NULL,
  335. [delphotos2] [nvarchar](max) NULL,
  336. [designno] [nvarchar](max) NULL,
  337. [designreplaceno] [nvarchar](max) NULL,
  338. [size] [nvarchar](max) NULL,
  339. [dindantype] [nvarchar](50) NULL,
  340. [contractno1] [nvarchar](50) NULL,
  341. [contractno2] [nvarchar](50) NULL,
  342. [cfno] [nvarchar](50) NULL,
  343. [calldate] [nvarchar](50) NULL,
  344. [from] [nvarchar](50) NULL,
  345. [reason] [nvarchar](50) NULL,
  346. [time7] [nvarchar](50) NULL,
  347. [time8] [nvarchar](50) NULL,
  348. [time9] [nvarchar](50) NULL,
  349. [time10] [nvarchar](50) NULL,
  350. [authorize] [nvarchar](50) NULL,
  351. [discount2] [nvarchar](50) NULL,
  352. [authorize2] [nvarchar](50) NULL,
  353. [bz4] [nvarchar](max) NULL,
  354. [satisfaction1] [int] NULL,
  355. [satisfaction2] [int] NULL,
  356. [satisfaction3] [int] NULL,
  357. [satisfaction4] [int] NULL,
  358. [satisfaction5] [int] NULL,
  359. [satisfaction6] [int] NULL,
  360. [satisfaction7] [int] NULL,
  361. [bz5] [nvarchar](max) NULL,
  362. [send4] [int] NULL,
  363. [send5] [int] NULL,
  364. [waiter9] [nvarchar](120) NULL,
  365. [satisfaction8] [int] NULL,
  366. [VisitPeople1] [nvarchar](10) NULL,
  367. [VisitPeople2] [nvarchar](10) NULL,
  368. [VisitPeople3] [nvarchar](10) NULL,
  369. [VisitPeople4] [nvarchar](10) NULL,
  370. [VisitPeople5] [nvarchar](10) NULL,
  371. [VisitPeople6] [nvarchar](10) NULL,
  372. [VisitPeople7] [nvarchar](10) NULL,
  373. [VisitPeople8] [nvarchar](10) NULL,
  374. [VisitTime1] [nvarchar](20) NULL,
  375. [VisitTime2] [nvarchar](20) NULL,
  376. [VisitTime3] [nvarchar](20) NULL,
  377. [VisitTime4] [nvarchar](20) NULL,
  378. [VisitTime5] [nvarchar](20) NULL,
  379. [VisitTime6] [nvarchar](20) NULL,
  380. [VisitTime7] [nvarchar](20) NULL,
  381. [VisitTime8] [nvarchar](20) NULL,
  382. [curno] [nvarchar](50) NULL,
  383. [xplrr] [nvarchar](50) NULL,
  384. [xplrtime] [nvarchar](50) NULL
  385. ) ON [PRIMARY]
  386. GO
  387. SET ANSI_PADDING OFF
  388. GO
  389. /****** 对象: Table [dbo].[dindanbukuan] 脚本日期: 01/19/2015 17:08:23 ******/
  390. SET ANSI_NULLS ON
  391. GO
  392. SET QUOTED_IDENTIFIER ON
  393. GO
  394. SET ANSI_PADDING ON
  395. GO
  396. CREATE TABLE [dbo].[dindanbukuan](
  397. [autoid] [int] IDENTITY(1,1) NOT NULL,
  398. [id] [nvarchar](50) NULL,
  399. [money] [nvarchar](50) NULL,
  400. [ren] [nvarchar](50) NULL,
  401. [date] [nvarchar](50) NULL,
  402. [bz] [nvarchar](max) NULL,
  403. [kind] [nvarchar](50) NULL,
  404. [ren2] [nvarchar](50) NULL,
  405. [item] [nvarchar](max) NULL,
  406. [paytype] [nvarchar](50) NULL,
  407. [jdd] [nvarchar](50) NULL,
  408. [financecheck] [nvarchar](10) NULL,
  409. [discount] [nvarchar](50) NULL,
  410. [time] [nvarchar](50) NULL
  411. ) ON [PRIMARY]
  412. GO
  413. SET ANSI_PADDING OFF
  414. GO
  415. /****** 对象: Table [dbo].[dindanbukuan2] 脚本日期: 01/19/2015 17:08:24 ******/
  416. SET ANSI_NULLS ON
  417. GO
  418. SET QUOTED_IDENTIFIER ON
  419. GO
  420. SET ANSI_PADDING ON
  421. GO
  422. CREATE TABLE [dbo].[dindanbukuan2](
  423. [autoid] [int] IDENTITY(1,1) NOT NULL,
  424. [id] [nvarchar](50) NULL,
  425. [money] [nvarchar](50) NULL,
  426. [ren] [nvarchar](50) NULL,
  427. [date] [nvarchar](50) NULL,
  428. [bz] [nvarchar](500) NULL,
  429. [kind] [nvarchar](50) NULL,
  430. [ren2] [nvarchar](50) NULL
  431. ) ON [PRIMARY]
  432. GO
  433. SET ANSI_PADDING OFF
  434. GO
  435. /****** 对象: Table [dbo].[dindanjd] 脚本日期: 01/19/2015 17:08:26 ******/
  436. SET ANSI_NULLS ON
  437. GO
  438. SET QUOTED_IDENTIFIER ON
  439. GO
  440. SET ANSI_PADDING ON
  441. GO
  442. CREATE TABLE [dbo].[dindanjd](
  443. [id] [nvarchar](50) NULL,
  444. [name] [nvarchar](50) NULL,
  445. [date] [nvarchar](50) NULL,
  446. [time] [nvarchar](50) NULL,
  447. [waiter1] [nvarchar](50) NULL,
  448. [waiter2] [nvarchar](50) NULL,
  449. [status] [nvarchar](50) NULL,
  450. [waiter12] [nvarchar](50) NULL,
  451. [waiter22] [nvarchar](50) NULL,
  452. [bookingdate] [nvarchar](50) NULL,
  453. [dress] [nvarchar](150) NULL,
  454. [bz] [nvarchar](150) NULL,
  455. [clerk] [nvarchar](120) NULL,
  456. [inputtime] [nvarchar](50) NULL,
  457. [branch] [nvarchar](50) NULL
  458. ) ON [PRIMARY]
  459. GO
  460. SET ANSI_PADDING OFF
  461. GO
  462. /****** 对象: Table [dbo].[dindansp] 脚本日期: 01/19/2015 17:08:31 ******/
  463. SET ANSI_NULLS ON
  464. GO
  465. SET QUOTED_IDENTIFIER ON
  466. GO
  467. SET ANSI_PADDING ON
  468. GO
  469. CREATE TABLE [dbo].[dindansp](
  470. [id] [nvarchar](50) NULL,
  471. [spid] [nvarchar](50) NULL,
  472. [shuliang] [nvarchar](120) NULL,
  473. [kind] [nvarchar](10) NULL,
  474. [price] [nvarchar](50) NULL,
  475. [name] [nvarchar](50) NULL,
  476. [no] [nvarchar](max) NULL,
  477. [status1] [nvarchar](50) NULL,
  478. [status2] [nvarchar](50) NULL,
  479. [status3] [nvarchar](50) NULL,
  480. [status4] [nvarchar](50) NULL,
  481. [autoid] [int] IDENTITY(1,1) NOT NULL,
  482. [date1] [nvarchar](50) NULL,
  483. [date2] [nvarchar](50) NULL,
  484. [date3] [nvarchar](50) NULL,
  485. [date4] [nvarchar](50) NULL,
  486. [name1] [nvarchar](50) NULL,
  487. [name2] [nvarchar](50) NULL,
  488. [name3] [nvarchar](50) NULL,
  489. [name4] [nvarchar](50) NULL,
  490. [hqdate] [nvarchar](50) NULL,
  491. [hqtime] [nvarchar](50) NULL,
  492. [urgent] [nvarchar](50) NULL,
  493. [taketime] [nvarchar](50) NULL,
  494. [no2] [nvarchar](max) NULL,
  495. [growthtxname] [nvarchar](50) NULL,
  496. [status5] [nvarchar](50) NULL,
  497. [status6] [nvarchar](50) NULL,
  498. [date5] [nvarchar](50) NULL,
  499. [date6] [nvarchar](50) NULL,
  500. [name5] [nvarchar](50) NULL,
  501. [name6] [nvarchar](50) NULL,
  502. [ps] [nvarchar](50) NULL,
  503. [zs] [nvarchar](50) NULL,
  504. [ren1] [nvarchar](120) NULL,
  505. [ren2] [nvarchar](120) NULL,
  506. [hqstatus] [nvarchar](50) NULL,
  507. [bz] [nvarchar](200) NULL
  508. ) ON [PRIMARY]
  509. GO
  510. SET ANSI_PADDING OFF
  511. GO
  512. /****** 对象: Table [dbo].[dindansp2] 脚本日期: 01/19/2015 17:08:32 ******/
  513. SET ANSI_NULLS ON
  514. GO
  515. SET QUOTED_IDENTIFIER ON
  516. GO
  517. SET ANSI_PADDING ON
  518. GO
  519. CREATE TABLE [dbo].[dindansp2](
  520. [id] [nvarchar](50) NULL,
  521. [name] [nvarchar](50) NULL,
  522. [count] [nvarchar](50) NULL,
  523. [date] [nvarchar](50) NULL,
  524. [clerk] [nvarchar](50) NULL
  525. ) ON [PRIMARY]
  526. GO
  527. SET ANSI_PADDING OFF
  528. GO
  529. /****** 对象: Table [dbo].[dindansp3] 脚本日期: 01/19/2015 17:08:32 ******/
  530. SET ANSI_NULLS ON
  531. GO
  532. SET QUOTED_IDENTIFIER ON
  533. GO
  534. SET ANSI_PADDING ON
  535. GO
  536. CREATE TABLE [dbo].[dindansp3](
  537. [id] [nvarchar](50) NULL,
  538. [spid] [nvarchar](50) NULL,
  539. [name] [nvarchar](50) NULL,
  540. [count] [nvarchar](50) NULL
  541. ) ON [PRIMARY]
  542. GO
  543. SET ANSI_PADDING OFF
  544. GO
  545. /****** 对象: Table [dbo].[dressarea] 脚本日期: 01/19/2015 17:08:33 ******/
  546. SET ANSI_NULLS ON
  547. GO
  548. SET QUOTED_IDENTIFIER ON
  549. GO
  550. SET ANSI_PADDING ON
  551. GO
  552. CREATE TABLE [dbo].[dressarea](
  553. [name] [nvarchar](50) NULL,
  554. [id] [int] IDENTITY(1,1) NOT NULL
  555. ) ON [PRIMARY]
  556. GO
  557. SET ANSI_PADDING OFF
  558. GO
  559. /****** 对象: Table [dbo].[dresshire] 脚本日期: 01/19/2015 17:08:34 ******/
  560. SET ANSI_NULLS ON
  561. GO
  562. SET QUOTED_IDENTIFIER ON
  563. GO
  564. SET ANSI_PADDING ON
  565. GO
  566. CREATE TABLE [dbo].[dresshire](
  567. [money] [nvarchar](50) NULL,
  568. [money2] [nvarchar](50) NULL,
  569. [date] [nvarchar](50) NULL,
  570. [clerk] [nvarchar](50) NULL,
  571. [hireorsale] [nvarchar](50) NULL,
  572. [name] [nvarchar](50) NULL,
  573. [phone] [nvarchar](50) NULL,
  574. [id] [nvarchar](50) NULL,
  575. [remark] [nvarchar](max) NULL,
  576. [date1] [nvarchar](50) NULL,
  577. [date2] [nvarchar](50) NULL
  578. ) ON [PRIMARY]
  579. GO
  580. SET ANSI_PADDING OFF
  581. GO
  582. /****** 对象: Table [dbo].[dresshiredata] 脚本日期: 01/19/2015 17:08:35 ******/
  583. SET ANSI_NULLS ON
  584. GO
  585. SET QUOTED_IDENTIFIER ON
  586. GO
  587. SET ANSI_PADDING ON
  588. GO
  589. CREATE TABLE [dbo].[dresshiredata](
  590. [id] [nvarchar](50) NULL,
  591. [no] [nvarchar](50) NULL,
  592. [name] [nvarchar](50) NULL,
  593. [count] [nvarchar](50) NULL,
  594. [isreturn] [nvarchar](50) NULL,
  595. [returndate] [nvarchar](50) NULL,
  596. [clerk] [nvarchar](50) NULL,
  597. [hireorsale] [nvarchar](50) NULL,
  598. [date1] [nvarchar](50) NULL,
  599. [date2] [nvarchar](50) NULL
  600. ) ON [PRIMARY]
  601. GO
  602. SET ANSI_PADDING OFF
  603. GO
  604. /****** 对象: Table [dbo].[dressinfo] 脚本日期: 01/19/2015 17:08:37 ******/
  605. SET ANSI_NULLS ON
  606. GO
  607. SET QUOTED_IDENTIFIER ON
  608. GO
  609. SET ANSI_PADDING ON
  610. GO
  611. CREATE TABLE [dbo].[dressinfo](
  612. [type] [nvarchar](50) NULL,
  613. [no] [nvarchar](50) NULL,
  614. [name] [nvarchar](50) NULL,
  615. [count] [nvarchar](50) NULL,
  616. [price1] [nvarchar](50) NULL,
  617. [price2] [nvarchar](50) NULL,
  618. [date] [nvarchar](50) NULL,
  619. [hirecount] [nvarchar](50) NULL,
  620. [salecount] [nvarchar](50) NULL,
  621. [balance] [nvarchar](50) NULL,
  622. [remark] [nvarchar](max) NULL,
  623. [dressarea] [nvarchar](50) NULL,
  624. [washcount] [nvarchar](50) NULL,
  625. [type2] [nvarchar](50) NULL
  626. ) ON [PRIMARY]
  627. GO
  628. SET ANSI_PADDING OFF
  629. GO
  630. /****** 对象: Table [dbo].[dresstype] 脚本日期: 01/19/2015 17:08:38 ******/
  631. SET ANSI_NULLS ON
  632. GO
  633. SET QUOTED_IDENTIFIER ON
  634. GO
  635. SET ANSI_PADDING ON
  636. GO
  637. CREATE TABLE [dbo].[dresstype](
  638. [name] [nvarchar](50) NULL,
  639. [autoid] [int] IDENTITY(1,1) NOT NULL,
  640. [type] [nvarchar](50) NULL
  641. ) ON [PRIMARY]
  642. GO
  643. SET ANSI_PADDING OFF
  644. GO
  645. /****** 对象: Table [dbo].[employeephonerecord] 脚本日期: 01/19/2015 17:08:38 ******/
  646. SET ANSI_NULLS ON
  647. GO
  648. SET QUOTED_IDENTIFIER ON
  649. GO
  650. SET ANSI_PADDING ON
  651. GO
  652. CREATE TABLE [dbo].[employeephonerecord](
  653. [name] [nvarchar](50) NULL,
  654. [datetime] [nvarchar](50) NULL
  655. ) ON [PRIMARY]
  656. GO
  657. SET ANSI_PADDING OFF
  658. GO
  659. /****** 对象: Table [dbo].[employeephonerecordout] 脚本日期: 01/19/2015 17:08:38 ******/
  660. SET ANSI_NULLS ON
  661. GO
  662. SET QUOTED_IDENTIFIER ON
  663. GO
  664. SET ANSI_PADDING ON
  665. GO
  666. CREATE TABLE [dbo].[employeephonerecordout](
  667. [name] [nvarchar](50) NULL,
  668. [phoneno] [nvarchar](50) NULL,
  669. [datetime] [nvarchar](50) NULL
  670. ) ON [PRIMARY]
  671. GO
  672. SET ANSI_PADDING OFF
  673. GO
  674. /****** 对象: Table [dbo].[expendtype] 脚本日期: 01/19/2015 17:08:39 ******/
  675. SET ANSI_NULLS ON
  676. GO
  677. SET QUOTED_IDENTIFIER ON
  678. GO
  679. SET ANSI_PADDING ON
  680. GO
  681. CREATE TABLE [dbo].[expendtype](
  682. [name] [nvarchar](50) NULL,
  683. [id] [int] IDENTITY(1,1) NOT NULL
  684. ) ON [PRIMARY]
  685. GO
  686. SET ANSI_PADDING OFF
  687. GO
  688. /****** 对象: Table [dbo].[framesize] 脚本日期: 01/19/2015 17:08:40 ******/
  689. SET ANSI_NULLS ON
  690. GO
  691. SET QUOTED_IDENTIFIER ON
  692. GO
  693. SET ANSI_PADDING ON
  694. GO
  695. CREATE TABLE [dbo].[framesize](
  696. [name] [nvarchar](50) NULL,
  697. [width] [nvarchar](50) NULL,
  698. [height] [nvarchar](50) NULL
  699. ) ON [PRIMARY]
  700. GO
  701. SET ANSI_PADDING OFF
  702. GO
  703. /****** 对象: Table [dbo].[gongyingshang] 脚本日期: 01/19/2015 17:08:41 ******/
  704. SET ANSI_NULLS ON
  705. GO
  706. SET QUOTED_IDENTIFIER ON
  707. GO
  708. SET ANSI_PADDING ON
  709. GO
  710. CREATE TABLE [dbo].[gongyingshang](
  711. [gyid] [nvarchar](20) NULL,
  712. [gyname] [nvarchar](30) NULL,
  713. [addr] [nvarchar](30) NULL,
  714. [tel] [nvarchar](20) NULL,
  715. [fax] [nvarchar](8) NULL,
  716. [netaddress] [nvarchar](20) NULL,
  717. [bz] [nvarchar](max) NULL
  718. ) ON [PRIMARY]
  719. GO
  720. SET ANSI_PADDING OFF
  721. GO
  722. /****** 对象: Table [dbo].[growthtx] 脚本日期: 01/19/2015 17:08:42 ******/
  723. SET ANSI_NULLS ON
  724. GO
  725. SET QUOTED_IDENTIFIER ON
  726. GO
  727. SET ANSI_PADDING ON
  728. GO
  729. CREATE TABLE [dbo].[growthtx](
  730. [name] [nvarchar](50) NULL,
  731. [id] [int] IDENTITY(1,1) NOT NULL
  732. ) ON [PRIMARY]
  733. GO
  734. SET ANSI_PADDING OFF
  735. GO
  736. /****** 对象: Table [dbo].[gudingfeiyong] 脚本日期: 01/19/2015 17:08:43 ******/
  737. SET ANSI_NULLS ON
  738. GO
  739. SET QUOTED_IDENTIFIER ON
  740. GO
  741. SET ANSI_PADDING ON
  742. GO
  743. CREATE TABLE [dbo].[gudingfeiyong](
  744. [id] [int] IDENTITY(1,1) NOT NULL,
  745. [name] [nvarchar](50) NULL,
  746. [money] [nvarchar](50) NULL,
  747. [dat] [nvarchar](50) NULL,
  748. [bz] [nvarchar](max) NULL,
  749. [renyuan1] [nvarchar](50) NULL,
  750. [renyuan2] [nvarchar](50) NULL,
  751. [financecheck] [nvarchar](10) NULL,
  752. [time] [nvarchar](50) NULL,
  753. [photo] [image] NULL,
  754. [financecheck2] [nvarchar](50) NULL,
  755. [financecheck3] [nvarchar](50) NULL,
  756. [hasphoto] [nvarchar](50) NULL
  757. ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
  758. GO
  759. SET ANSI_PADDING OFF
  760. GO
  761. /****** 对象: Table [dbo].[gudingfeiyongxiangmu] 脚本日期: 01/19/2015 17:08:44 ******/
  762. SET ANSI_NULLS ON
  763. GO
  764. SET QUOTED_IDENTIFIER ON
  765. GO
  766. SET ANSI_PADDING ON
  767. GO
  768. CREATE TABLE [dbo].[gudingfeiyongxiangmu](
  769. [id] [int] IDENTITY(1,1) NOT NULL,
  770. [xiangmu] [nvarchar](20) NULL,
  771. PRIMARY KEY CLUSTERED
  772. (
  773. [id] ASC
  774. ) ON [PRIMARY]
  775. ) ON [PRIMARY]
  776. GO
  777. SET ANSI_PADDING OFF
  778. GO
  779. /****** 对象: Table [dbo].[historydb] 脚本日期: 01/19/2015 17:08:44 ******/
  780. SET ANSI_NULLS ON
  781. GO
  782. SET QUOTED_IDENTIFIER ON
  783. GO
  784. SET ANSI_PADDING ON
  785. GO
  786. CREATE TABLE [dbo].[historydb](
  787. [year] [nvarchar](50) NULL
  788. ) ON [PRIMARY]
  789. GO
  790. SET ANSI_PADDING OFF
  791. GO
  792. /****** 对象: Table [dbo].[insidemsg] 脚本日期: 01/19/2015 17:08:51 ******/
  793. SET ANSI_NULLS ON
  794. GO
  795. SET QUOTED_IDENTIFIER ON
  796. GO
  797. SET ANSI_PADDING ON
  798. GO
  799. CREATE TABLE [dbo].[insidemsg](
  800. [timestamp] [nvarchar](50) NULL,
  801. [content] [nvarchar](max) NULL,
  802. [sender] [nvarchar](50) NULL,
  803. [receiver] [nvarchar](max) NULL,
  804. [receiver2] [nvarchar](max) NULL,
  805. [file] [nvarchar](max) NULL,
  806. [files] [image] NULL
  807. ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
  808. GO
  809. SET ANSI_PADDING OFF
  810. GO
  811. /****** 对象: Table [dbo].[jd] 脚本日期: 01/19/2015 17:08:51 ******/
  812. SET ANSI_NULLS ON
  813. GO
  814. SET QUOTED_IDENTIFIER ON
  815. GO
  816. SET ANSI_PADDING ON
  817. GO
  818. CREATE TABLE [dbo].[jd](
  819. [name] [nvarchar](50) NULL,
  820. [id] [int] IDENTITY(1,1) NOT NULL
  821. ) ON [PRIMARY]
  822. GO
  823. SET ANSI_PADDING OFF
  824. GO
  825. /****** 对象: Table [dbo].[jdd] 脚本日期: 01/19/2015 17:08:51 ******/
  826. SET ANSI_NULLS ON
  827. GO
  828. SET QUOTED_IDENTIFIER ON
  829. GO
  830. SET ANSI_PADDING ON
  831. GO
  832. CREATE TABLE [dbo].[jdd](
  833. [name] [nvarchar](50) NULL,
  834. [id] [int] IDENTITY(1,1) NOT NULL
  835. ) ON [PRIMARY]
  836. GO
  837. SET ANSI_PADDING OFF
  838. GO
  839. /****** 对象: Table [dbo].[log] 脚本日期: 01/19/2015 17:08:52 ******/
  840. SET ANSI_NULLS ON
  841. GO
  842. SET QUOTED_IDENTIFIER ON
  843. GO
  844. SET ANSI_PADDING ON
  845. GO
  846. CREATE TABLE [dbo].[log](
  847. [date] [nvarchar](50) NULL,
  848. [datetime] [nvarchar](50) NULL,
  849. [content] [nvarchar](max) NULL
  850. ) ON [PRIMARY]
  851. GO
  852. SET ANSI_PADDING OFF
  853. GO
  854. /****** 对象: Table [dbo].[loginsign] 脚本日期: 01/19/2015 17:08:53 ******/
  855. SET ANSI_NULLS ON
  856. GO
  857. SET QUOTED_IDENTIFIER ON
  858. GO
  859. SET ANSI_PADDING ON
  860. GO
  861. CREATE TABLE [dbo].[loginsign](
  862. [name] [nvarchar](50) NULL,
  863. [date] [nvarchar](50) NULL,
  864. [type] [nvarchar](50) NULL,
  865. [cleck] [nvarchar](50) NULL,
  866. [id] [int] IDENTITY(1,1) NOT NULL
  867. ) ON [PRIMARY]
  868. GO
  869. SET ANSI_PADDING OFF
  870. GO
  871. /****** 对象: Table [dbo].[loninbanset] 脚本日期: 01/19/2015 17:08:54 ******/
  872. SET ANSI_NULLS ON
  873. GO
  874. SET QUOTED_IDENTIFIER ON
  875. GO
  876. SET ANSI_PADDING ON
  877. GO
  878. CREATE TABLE [dbo].[loninbanset](
  879. [weekname] [nvarchar](50) NULL,
  880. [name] [nvarchar](50) NULL,
  881. [banname1] [nvarchar](50) NULL,
  882. [banname2] [nvarchar](50) NULL,
  883. [banname3] [nvarchar](50) NULL,
  884. [banname4] [nvarchar](50) NULL,
  885. [banname5] [nvarchar](50) NULL,
  886. [banname6] [nvarchar](50) NULL,
  887. [banname7] [nvarchar](50) NULL
  888. ) ON [PRIMARY]
  889. GO
  890. SET ANSI_PADDING OFF
  891. GO
  892. /****** 对象: Table [dbo].[lonindata] 脚本日期: 01/19/2015 17:08:54 ******/
  893. SET ANSI_NULLS ON
  894. GO
  895. SET QUOTED_IDENTIFIER ON
  896. GO
  897. SET ANSI_PADDING ON
  898. GO
  899. CREATE TABLE [dbo].[lonindata](
  900. [no] [nvarchar](50) NULL,
  901. [datetime] [nvarchar](50) NULL
  902. ) ON [PRIMARY]
  903. GO
  904. SET ANSI_PADDING OFF
  905. GO
  906. /****** 对象: Table [dbo].[lonintimeset] 脚本日期: 01/19/2015 17:08:55 ******/
  907. SET ANSI_NULLS ON
  908. GO
  909. SET QUOTED_IDENTIFIER ON
  910. GO
  911. SET ANSI_PADDING ON
  912. GO
  913. CREATE TABLE [dbo].[lonintimeset](
  914. [name] [nvarchar](50) NULL,
  915. [time1] [nvarchar](50) NULL,
  916. [time2] [nvarchar](50) NULL,
  917. [time3] [nvarchar](50) NULL,
  918. [time4] [nvarchar](50) NULL
  919. ) ON [PRIMARY]
  920. GO
  921. SET ANSI_PADDING OFF
  922. GO
  923. /****** 对象: Table [dbo].[txlb2] 脚本日期: 01/19/2015 17:09:38 ******/
  924. SET ANSI_NULLS ON
  925. GO
  926. SET QUOTED_IDENTIFIER ON
  927. GO
  928. CREATE TABLE [dbo].[txlb2](
  929. [name] [nvarchar](50) NULL,
  930. [id] [int] IDENTITY(1,1) NOT NULL
  931. ) ON [PRIMARY]
  932. GO
  933. /****** 对象: Table [dbo].[membercard2] 脚本日期: 01/19/2015 17:08:55 ******/
  934. SET ANSI_NULLS ON
  935. GO
  936. SET QUOTED_IDENTIFIER ON
  937. GO
  938. SET ANSI_PADDING ON
  939. GO
  940. CREATE TABLE [dbo].[membercard2](
  941. [memberno] [nvarchar](50) NULL,
  942. [card2no] [nvarchar](50) NULL,
  943. [date] [nvarchar](50) NULL
  944. ) ON [PRIMARY]
  945. GO
  946. SET ANSI_PADDING OFF
  947. GO
  948. /****** 对象: Table [dbo].[sale2type] 脚本日期: 01/19/2015 17:09:20 ******/
  949. SET ANSI_NULLS ON
  950. GO
  951. SET QUOTED_IDENTIFIER ON
  952. GO
  953. CREATE TABLE [dbo].[sale2type](
  954. [name] [nvarchar](50) NULL,
  955. [id] [int] IDENTITY(1,1) NOT NULL
  956. ) ON [PRIMARY]
  957. GO
  958. /****** 对象: Table [dbo].[membercard2blue] 脚本日期: 01/19/2015 17:08:56 ******/
  959. SET ANSI_NULLS ON
  960. GO
  961. SET QUOTED_IDENTIFIER ON
  962. GO
  963. SET ANSI_PADDING ON
  964. GO
  965. CREATE TABLE [dbo].[membercard2blue](
  966. [memberno] [nvarchar](50) NULL,
  967. [card2no] [nvarchar](50) NULL,
  968. [date] [nvarchar](50) NULL
  969. ) ON [PRIMARY]
  970. GO
  971. SET ANSI_PADDING OFF
  972. GO
  973. /****** 对象: Table [dbo].[singleincomemoney] 脚本日期: 01/19/2015 17:09:30 ******/
  974. SET ANSI_NULLS ON
  975. GO
  976. SET QUOTED_IDENTIFIER ON
  977. GO
  978. CREATE TABLE [dbo].[singleincomemoney](
  979. [id] [nvarchar](50) NULL,
  980. [money] [nvarchar](50) NULL,
  981. [date] [nvarchar](50) NULL,
  982. [clerk] [nvarchar](50) NULL,
  983. [paytype] [nvarchar](50) NULL,
  984. [autoid] [int] IDENTITY(1,1) NOT NULL,
  985. [financecheck] [nvarchar](10) NULL,
  986. [time] [nvarchar](50) NULL,
  987. [jdd] [nvarchar](50) NULL
  988. ) ON [PRIMARY]
  989. GO
  990. /****** 对象: Table [dbo].[membercard3] 脚本日期: 01/19/2015 17:08:56 ******/
  991. SET ANSI_NULLS ON
  992. GO
  993. SET QUOTED_IDENTIFIER ON
  994. GO
  995. SET ANSI_PADDING ON
  996. GO
  997. CREATE TABLE [dbo].[membercard3](
  998. [memberno] [nvarchar](50) NULL,
  999. [card2no] [nvarchar](50) NULL,
  1000. [date] [nvarchar](50) NULL,
  1001. [balance] [nvarchar](50) NULL,
  1002. [psw] [nvarchar](50) NULL
  1003. ) ON [PRIMARY]
  1004. GO
  1005. SET ANSI_PADDING OFF
  1006. GO
  1007. /****** 对象: Table [dbo].[membercard3childusereg] 脚本日期: 01/19/2015 17:08:57 ******/
  1008. SET ANSI_NULLS ON
  1009. GO
  1010. SET QUOTED_IDENTIFIER ON
  1011. GO
  1012. SET ANSI_PADDING ON
  1013. GO
  1014. CREATE TABLE [dbo].[membercard3childusereg](
  1015. [memberno] [nvarchar](50) NULL,
  1016. [dindanid] [nvarchar](50) NULL,
  1017. [money] [nvarchar](50) NULL,
  1018. [date] [nvarchar](50) NULL,
  1019. [id] [int] IDENTITY(1,1) NOT NULL
  1020. ) ON [PRIMARY]
  1021. GO
  1022. SET ANSI_PADDING OFF
  1023. GO
  1024. /****** 对象: Table [dbo].[membercard3usereg] 脚本日期: 01/19/2015 17:08:58 ******/
  1025. SET ANSI_NULLS ON
  1026. GO
  1027. SET QUOTED_IDENTIFIER ON
  1028. GO
  1029. SET ANSI_PADDING ON
  1030. GO
  1031. CREATE TABLE [dbo].[membercard3usereg](
  1032. [memberno] [nvarchar](50) NULL,
  1033. [dindanid] [nvarchar](50) NULL,
  1034. [money] [nvarchar](50) NULL,
  1035. [date] [nvarchar](50) NULL,
  1036. [id] [int] IDENTITY(1,1) NOT NULL
  1037. ) ON [PRIMARY]
  1038. GO
  1039. SET ANSI_PADDING OFF
  1040. GO
  1041. /****** 对象: Table [dbo].[membermanage] 脚本日期: 01/19/2015 17:09:00 ******/
  1042. SET ANSI_NULLS ON
  1043. GO
  1044. SET QUOTED_IDENTIFIER ON
  1045. GO
  1046. SET ANSI_PADDING ON
  1047. GO
  1048. CREATE TABLE [dbo].[membermanage](
  1049. [memberno] [nvarchar](50) NULL,
  1050. [name] [nvarchar](50) NULL,
  1051. [date] [nvarchar](50) NULL,
  1052. [money] [nvarchar](50) NULL,
  1053. [autoid] [int] IDENTITY(1,1) NOT NULL,
  1054. [sex] [nvarchar](50) NULL,
  1055. [phone] [nvarchar](50) NULL,
  1056. [qq] [nvarchar](50) NULL,
  1057. [addr] [nvarchar](50) NULL,
  1058. [occupation] [nvarchar](50) NULL,
  1059. [birthday] [nvarchar](50) NULL,
  1060. [pinyin] [nvarchar](50) NULL,
  1061. [balance] [nvarchar](50) NULL,
  1062. [sendmark1] [nvarchar](max) NULL,
  1063. [sendmark2] [nvarchar](max) NULL,
  1064. [psw] [nvarchar](50) NULL,
  1065. [cardtype] [nvarchar](50) NULL,
  1066. [check1] [nvarchar](50) NULL,
  1067. [discount] [nvarchar](50) NULL
  1068. ) ON [PRIMARY]
  1069. GO
  1070. SET ANSI_PADDING OFF
  1071. GO
  1072. /****** 对象: Table [dbo].[membermanageblue] 脚本日期: 01/19/2015 17:09:02 ******/
  1073. SET ANSI_NULLS ON
  1074. GO
  1075. SET QUOTED_IDENTIFIER ON
  1076. GO
  1077. SET ANSI_PADDING ON
  1078. GO
  1079. CREATE TABLE [dbo].[membermanageblue](
  1080. [memberno] [nvarchar](50) NULL,
  1081. [name] [nvarchar](50) NULL,
  1082. [sex] [nvarchar](50) NULL,
  1083. [phone] [nvarchar](50) NULL,
  1084. [qq] [nvarchar](50) NULL,
  1085. [addr] [nvarchar](50) NULL,
  1086. [occupation] [nvarchar](50) NULL,
  1087. [birthday] [nvarchar](50) NULL,
  1088. [pinyin] [nvarchar](50) NULL,
  1089. [date] [nvarchar](50) NULL,
  1090. [money] [nvarchar](50) NULL,
  1091. [jiage] [nvarchar](50) NULL,
  1092. [autoid] [int] IDENTITY(1,1) NOT NULL,
  1093. [money2] [nvarchar](50) NULL,
  1094. [money3] [nvarchar](50) NULL
  1095. ) ON [PRIMARY]
  1096. GO
  1097. SET ANSI_PADDING OFF
  1098. GO
  1099. /****** 对象: Table [dbo].[memberreg] 脚本日期: 01/19/2015 17:09:03 ******/
  1100. SET ANSI_NULLS ON
  1101. GO
  1102. SET QUOTED_IDENTIFIER ON
  1103. GO
  1104. SET ANSI_PADDING ON
  1105. GO
  1106. CREATE TABLE [dbo].[memberreg](
  1107. [memberno] [nvarchar](50) NULL,
  1108. [dindanid] [nvarchar](50) NULL,
  1109. [money] [nvarchar](50) NULL,
  1110. [id] [int] IDENTITY(1,1) NOT NULL,
  1111. [date] [nvarchar](50) NULL,
  1112. [card2no] [nvarchar](50) NULL,
  1113. [type] [nvarchar](50) NULL,
  1114. [taoxi] [nvarchar](50) NULL,
  1115. [date2] [nvarchar](50) NULL
  1116. ) ON [PRIMARY]
  1117. GO
  1118. SET ANSI_PADDING OFF
  1119. GO
  1120. /****** 对象: Table [dbo].[memberreg2] 脚本日期: 01/19/2015 17:09:04 ******/
  1121. SET ANSI_NULLS ON
  1122. GO
  1123. SET QUOTED_IDENTIFIER ON
  1124. GO
  1125. SET ANSI_PADDING ON
  1126. GO
  1127. CREATE TABLE [dbo].[memberreg2](
  1128. [memberno] [nvarchar](50) NULL,
  1129. [dindanid] [nvarchar](50) NULL,
  1130. [money] [nvarchar](50) NULL,
  1131. [point] [nvarchar](50) NULL,
  1132. [date] [nvarchar](50) NULL,
  1133. [id] [int] IDENTITY(1,1) NOT NULL
  1134. ) ON [PRIMARY]
  1135. GO
  1136. SET ANSI_PADDING OFF
  1137. GO
  1138. /****** 对象: Table [dbo].[memberreg2blue] 脚本日期: 01/19/2015 17:09:05 ******/
  1139. SET ANSI_NULLS ON
  1140. GO
  1141. SET QUOTED_IDENTIFIER ON
  1142. GO
  1143. SET ANSI_PADDING ON
  1144. GO
  1145. CREATE TABLE [dbo].[memberreg2blue](
  1146. [memberno] [nvarchar](50) NULL,
  1147. [money] [nvarchar](50) NULL,
  1148. [date] [nvarchar](50) NULL
  1149. ) ON [PRIMARY]
  1150. GO
  1151. SET ANSI_PADDING OFF
  1152. GO
  1153. /****** 对象: Table [dbo].[memberreg3] 脚本日期: 01/19/2015 17:09:06 ******/
  1154. SET ANSI_NULLS ON
  1155. GO
  1156. SET QUOTED_IDENTIFIER ON
  1157. GO
  1158. SET ANSI_PADDING ON
  1159. GO
  1160. CREATE TABLE [dbo].[memberreg3](
  1161. [memberno] [nvarchar](50) NULL,
  1162. [money] [nvarchar](50) NULL,
  1163. [date] [nvarchar](50) NULL,
  1164. [clerk] [nvarchar](50) NULL,
  1165. [id] [int] IDENTITY(1,1) NOT NULL,
  1166. [financecheck] [nvarchar](50) NULL,
  1167. [moneytype] [nvarchar](50) NULL,
  1168. [time] [nvarchar](50) NULL,
  1169. [money2] [nvarchar](50) NULL
  1170. ) ON [PRIMARY]
  1171. GO
  1172. SET ANSI_PADDING OFF
  1173. GO
  1174. /****** 对象: Table [dbo].[memberreg4] 脚本日期: 01/19/2015 17:09:07 ******/
  1175. SET ANSI_NULLS ON
  1176. GO
  1177. SET QUOTED_IDENTIFIER ON
  1178. GO
  1179. SET ANSI_PADDING ON
  1180. GO
  1181. CREATE TABLE [dbo].[memberreg4](
  1182. [memberno] [nvarchar](50) NULL,
  1183. [money] [nvarchar](50) NULL,
  1184. [card2no] [nvarchar](50) NULL,
  1185. [date] [nvarchar](50) NULL,
  1186. [clerk] [nvarchar](50) NULL,
  1187. [id] [int] IDENTITY(1,1) NOT NULL
  1188. ) ON [PRIMARY]
  1189. GO
  1190. SET ANSI_PADDING OFF
  1191. GO
  1192. /****** 对象: Table [dbo].[memberregblue] 脚本日期: 01/19/2015 17:09:08 ******/
  1193. SET ANSI_NULLS ON
  1194. GO
  1195. SET QUOTED_IDENTIFIER ON
  1196. GO
  1197. SET ANSI_PADDING ON
  1198. GO
  1199. CREATE TABLE [dbo].[memberregblue](
  1200. [memberno] [nvarchar](50) NULL,
  1201. [dindanid] [nvarchar](50) NULL,
  1202. [money] [nvarchar](50) NULL,
  1203. [date] [nvarchar](50) NULL,
  1204. [card2no] [nvarchar](50) NULL,
  1205. [type] [nvarchar](50) NULL,
  1206. [taoxi] [nvarchar](50) NULL,
  1207. [date2] [nvarchar](50) NULL,
  1208. [id] [int] IDENTITY(1,1) NOT NULL
  1209. ) ON [PRIMARY]
  1210. GO
  1211. SET ANSI_PADDING OFF
  1212. GO
  1213. /****** 对象: Table [dbo].[misscallrecord] 脚本日期: 01/19/2015 17:09:09 ******/
  1214. SET ANSI_NULLS ON
  1215. GO
  1216. SET QUOTED_IDENTIFIER ON
  1217. GO
  1218. SET ANSI_PADDING ON
  1219. GO
  1220. CREATE TABLE [dbo].[misscallrecord](
  1221. [phone] [nvarchar](50) NULL,
  1222. [datetime] [nvarchar](50) NULL,
  1223. [name] [nvarchar](50) NULL,
  1224. [type] [nvarchar](50) NULL
  1225. ) ON [PRIMARY]
  1226. GO
  1227. SET ANSI_PADDING OFF
  1228. GO
  1229. /****** 对象: Table [dbo].[msgtemp] 脚本日期: 01/19/2015 17:09:10 ******/
  1230. SET ANSI_NULLS ON
  1231. GO
  1232. SET QUOTED_IDENTIFIER ON
  1233. GO
  1234. SET ANSI_PADDING ON
  1235. GO
  1236. CREATE TABLE [dbo].[msgtemp](
  1237. [title] [nvarchar](50) NULL,
  1238. [content] [nvarchar](max) NULL
  1239. ) ON [PRIMARY]
  1240. GO
  1241. SET ANSI_PADDING OFF
  1242. GO
  1243. /****** 对象: Table [dbo].[msgtemp2] 脚本日期: 01/19/2015 17:09:10 ******/
  1244. SET ANSI_NULLS ON
  1245. GO
  1246. SET QUOTED_IDENTIFIER ON
  1247. GO
  1248. SET ANSI_PADDING ON
  1249. GO
  1250. CREATE TABLE [dbo].[msgtemp2](
  1251. [name] [nvarchar](50) NULL,
  1252. [content1] [nvarchar](max) NULL,
  1253. [content2] [nvarchar](max) NULL,
  1254. [check1] [nvarchar](50) NULL,
  1255. [check2] [nvarchar](50) NULL,
  1256. [point] [nvarchar](50) NULL
  1257. ) ON [PRIMARY]
  1258. GO
  1259. SET ANSI_PADDING OFF
  1260. GO
  1261. /****** 对象: Table [dbo].[mywork] 脚本日期: 01/19/2015 17:09:12 ******/
  1262. SET ANSI_NULLS ON
  1263. GO
  1264. SET QUOTED_IDENTIFIER ON
  1265. GO
  1266. SET ANSI_PADDING ON
  1267. GO
  1268. CREATE TABLE [dbo].[mywork](
  1269. [id] [nvarchar](50) NULL,
  1270. [name] [nvarchar](50) NULL,
  1271. [datetime] [nvarchar](50) NULL,
  1272. [count1] [nvarchar](50) NULL,
  1273. [count2] [nvarchar](50) NULL,
  1274. [count3] [nvarchar](50) NULL,
  1275. [type] [nvarchar](50) NULL,
  1276. [inputdate] [nvarchar](50) NULL,
  1277. [inputren] [nvarchar](50) NULL
  1278. ) ON [PRIMARY]
  1279. GO
  1280. SET ANSI_PADDING OFF
  1281. GO
  1282. /****** 对象: Table [dbo].[path] 脚本日期: 01/19/2015 17:09:12 ******/
  1283. SET ANSI_NULLS ON
  1284. GO
  1285. SET QUOTED_IDENTIFIER ON
  1286. GO
  1287. SET ANSI_PADDING ON
  1288. GO
  1289. CREATE TABLE [dbo].[path](
  1290. [path1] [nvarchar](50) NULL,
  1291. [path2] [nvarchar](50) NULL,
  1292. [path3] [nvarchar](50) NULL,
  1293. [path4] [nvarchar](50) NULL,
  1294. [path5] [nvarchar](50) NULL
  1295. ) ON [PRIMARY]
  1296. GO
  1297. SET ANSI_PADDING OFF
  1298. GO
  1299. /****** 对象: Table [dbo].[phonerecord] 脚本日期: 01/19/2015 17:09:13 ******/
  1300. SET ANSI_NULLS ON
  1301. GO
  1302. SET QUOTED_IDENTIFIER ON
  1303. GO
  1304. SET ANSI_PADDING ON
  1305. GO
  1306. CREATE TABLE [dbo].[phonerecord](
  1307. [id] [nvarchar](50) NULL,
  1308. [phoneno] [nvarchar](50) NULL,
  1309. [datetime] [nvarchar](50) NULL
  1310. ) ON [PRIMARY]
  1311. GO
  1312. SET ANSI_PADDING OFF
  1313. GO
  1314. /****** 对象: Table [dbo].[phonerecordout] 脚本日期: 01/19/2015 17:09:13 ******/
  1315. SET ANSI_NULLS ON
  1316. GO
  1317. SET QUOTED_IDENTIFIER ON
  1318. GO
  1319. SET ANSI_PADDING ON
  1320. GO
  1321. CREATE TABLE [dbo].[phonerecordout](
  1322. [name] [nvarchar](50) NULL,
  1323. [phoneno] [nvarchar](50) NULL,
  1324. [datetime] [nvarchar](50) NULL
  1325. ) ON [PRIMARY]
  1326. GO
  1327. SET ANSI_PADDING OFF
  1328. GO
  1329. /****** 对象: Table [dbo].[photoprint] 脚本日期: 01/19/2015 17:09:15 ******/
  1330. SET ANSI_NULLS ON
  1331. GO
  1332. SET QUOTED_IDENTIFIER ON
  1333. GO
  1334. SET ANSI_PADDING ON
  1335. GO
  1336. CREATE TABLE [dbo].[photoprint](
  1337. [id] [nvarchar](50) NULL,
  1338. [name] [nvarchar](100) NULL,
  1339. [count] [nvarchar](50) NULL,
  1340. [status1] [nvarchar](50) NULL,
  1341. [status2] [nvarchar](50) NULL,
  1342. [time1] [nvarchar](50) NULL,
  1343. [time2] [nvarchar](50) NULL,
  1344. [area] [nvarchar](50) NULL,
  1345. [statusOfReWork] [nvarchar](50) NULL,
  1346. [timeOfReWork] [nvarchar](50) NULL
  1347. ) ON [PRIMARY]
  1348. GO
  1349. SET ANSI_PADDING OFF
  1350. GO
  1351. /****** 对象: Table [dbo].[renyuan] 脚本日期: 01/19/2015 17:09:18 ******/
  1352. SET ANSI_NULLS ON
  1353. GO
  1354. SET QUOTED_IDENTIFIER ON
  1355. GO
  1356. SET ANSI_PADDING ON
  1357. GO
  1358. CREATE TABLE [dbo].[renyuan](
  1359. [bm] [nvarchar](50) NULL,
  1360. [id] [nvarchar](50) NULL,
  1361. [name] [nvarchar](50) NULL,
  1362. [sex] [nvarchar](50) NULL,
  1363. [phone] [nvarchar](50) NULL,
  1364. [address] [nvarchar](50) NULL,
  1365. [bz] [nvarchar](max) NULL,
  1366. [base] [nvarchar](50) NULL,
  1367. [rate1] [nvarchar](50) NULL,
  1368. [rate2] [nvarchar](50) NULL,
  1369. [bz2] [nvarchar](max) NULL,
  1370. [address2] [nvarchar](50) NULL,
  1371. [idno] [nvarchar](50) NULL,
  1372. [marry] [nvarchar](50) NULL,
  1373. [dimission] [nvarchar](50) NULL,
  1374. [rate3] [nvarchar](50) NULL,
  1375. [rate4] [nvarchar](50) NULL,
  1376. [rate5] [nvarchar](50) NULL,
  1377. [loginno1] [nvarchar](50) NULL,
  1378. [loginno2] [nvarchar](50) NULL,
  1379. [photo] [image] NULL,
  1380. [level] [nvarchar](50) NULL
  1381. ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
  1382. GO
  1383. SET ANSI_PADDING OFF
  1384. GO
  1385. /****** 对象: Table [dbo].[salary] 脚本日期: 01/19/2015 17:09:19 ******/
  1386. SET ANSI_NULLS ON
  1387. GO
  1388. SET QUOTED_IDENTIFIER ON
  1389. GO
  1390. SET ANSI_PADDING ON
  1391. GO
  1392. CREATE TABLE [dbo].[salary](
  1393. [name] [nvarchar](50) NULL,
  1394. [year] [nvarchar](50) NULL,
  1395. [month] [nvarchar](50) NULL,
  1396. [money] [nvarchar](50) NULL
  1397. ) ON [PRIMARY]
  1398. GO
  1399. SET ANSI_PADDING OFF
  1400. GO
  1401. /****** 对象: Table [dbo].[rewards] 脚本日期: 01/19/2015 17:09:19 ******/
  1402. SET ANSI_NULLS ON
  1403. GO
  1404. SET QUOTED_IDENTIFIER ON
  1405. GO
  1406. SET ANSI_PADDING ON
  1407. GO
  1408. CREATE TABLE [dbo].[rewards](
  1409. [name] [nvarchar](50) NULL,
  1410. [type] [nvarchar](50) NULL,
  1411. [money] [nvarchar](50) NULL,
  1412. [execute] [nvarchar](50) NULL,
  1413. [date] [nvarchar](50) NULL,
  1414. [renyuan] [nvarchar](50) NULL,
  1415. [bz] [nvarchar](max) NULL,
  1416. [id] [int] IDENTITY(1,1) NOT NULL
  1417. ) ON [PRIMARY]
  1418. GO
  1419. SET ANSI_PADDING OFF
  1420. GO
  1421. /****** 对象: Table [dbo].[sendreg] 脚本日期: 01/19/2015 17:09:21 ******/
  1422. SET ANSI_NULLS ON
  1423. GO
  1424. SET QUOTED_IDENTIFIER ON
  1425. GO
  1426. SET ANSI_PADDING ON
  1427. GO
  1428. CREATE TABLE [dbo].[sendreg](
  1429. [timestamp] [nvarchar](50) NULL,
  1430. [msgcount] [nvarchar](50) NULL,
  1431. [log] [nvarchar](50) NULL,
  1432. [status] [nvarchar](50) NULL,
  1433. [issended] [nvarchar](50) NULL,
  1434. [isautosend] [nvarchar](50) NULL,
  1435. [phones] [nvarchar](max) NULL,
  1436. [content] [nvarchar](max) NULL,
  1437. [autoid] [int] IDENTITY(1,1) NOT NULL,
  1438. [ren] [nvarchar](50) NULL,
  1439. [msgtype] [nvarchar](10) NULL
  1440. ) ON [PRIMARY]
  1441. GO
  1442. SET ANSI_PADDING OFF
  1443. GO
  1444. /****** 对象: Table [dbo].[singleincome] 脚本日期: 01/19/2015 17:09:29 ******/
  1445. SET ANSI_NULLS ON
  1446. GO
  1447. SET QUOTED_IDENTIFIER ON
  1448. GO
  1449. SET ANSI_PADDING ON
  1450. GO
  1451. CREATE TABLE [dbo].[singleincome](
  1452. [id] [int] IDENTITY(1,1) NOT NULL,
  1453. [name] [nvarchar](50) NULL,
  1454. [money] [nvarchar](50) NULL,
  1455. [dat] [nvarchar](50) NULL,
  1456. [bz] [nvarchar](max) NULL,
  1457. [renyuan1] [nvarchar](50) NULL,
  1458. [renyuan2] [nvarchar](50) NULL,
  1459. [renyuan3] [nvarchar](50) NULL,
  1460. [sale2type] [nvarchar](50) NULL,
  1461. [paytype] [nvarchar](50) NULL,
  1462. [phone] [nvarchar](50) NULL,
  1463. [payed] [nvarchar](50) NULL,
  1464. [balance] [nvarchar](50) NULL,
  1465. [pinyin] [nvarchar](50) NULL,
  1466. [financecheck] [nvarchar](10) NULL,
  1467. [count] [nvarchar](50) NULL,
  1468. [time] [nvarchar](50) NULL
  1469. ) ON [PRIMARY]
  1470. GO
  1471. SET ANSI_PADDING OFF
  1472. GO
  1473. /****** 对象: Table [dbo].[storeinfo] 脚本日期: 01/19/2015 17:09:31 ******/
  1474. SET ANSI_NULLS ON
  1475. GO
  1476. SET QUOTED_IDENTIFIER ON
  1477. GO
  1478. SET ANSI_PADDING ON
  1479. GO
  1480. CREATE TABLE [dbo].[storeinfo](
  1481. [id] [nvarchar](50) NULL,
  1482. [type] [nvarchar](50) NULL,
  1483. [name] [nvarchar](50) NULL,
  1484. [count] [nvarchar](50) NULL,
  1485. [date] [nvarchar](50) NULL,
  1486. [clerk] [nvarchar](50) NULL,
  1487. [remark] [nvarchar](max) NULL
  1488. ) ON [PRIMARY]
  1489. GO
  1490. SET ANSI_PADDING OFF
  1491. GO
  1492. /****** 对象: Table [dbo].[storeinfo2] 脚本日期: 01/19/2015 17:09:32 ******/
  1493. SET ANSI_NULLS ON
  1494. GO
  1495. SET QUOTED_IDENTIFIER ON
  1496. GO
  1497. SET ANSI_PADDING ON
  1498. GO
  1499. CREATE TABLE [dbo].[storeinfo2](
  1500. [id] [nvarchar](50) NULL,
  1501. [type] [nvarchar](50) NULL,
  1502. [name] [nvarchar](50) NULL,
  1503. [count] [nvarchar](50) NULL,
  1504. [date] [nvarchar](50) NULL,
  1505. [clerk] [nvarchar](50) NULL,
  1506. [remark] [nvarchar](max) NULL
  1507. ) ON [PRIMARY]
  1508. GO
  1509. SET ANSI_PADDING OFF
  1510. GO
  1511. /****** 对象: Table [dbo].[taoxi] 脚本日期: 01/19/2015 17:09:33 ******/
  1512. SET ANSI_NULLS ON
  1513. GO
  1514. SET QUOTED_IDENTIFIER ON
  1515. GO
  1516. SET ANSI_PADDING ON
  1517. GO
  1518. CREATE TABLE [dbo].[taoxi](
  1519. [taoxiid] [nvarchar](50) NULL,
  1520. [taoxiname] [nvarchar](20) NULL,
  1521. [taoxijiage] [nvarchar](9) NULL,
  1522. [zs] [nvarchar](50) NULL,
  1523. [type] [nvarchar](50) NULL,
  1524. [show] [nvarchar](50) NULL
  1525. ) ON [PRIMARY]
  1526. GO
  1527. SET ANSI_PADDING OFF
  1528. GO
  1529. /****** 对象: Table [dbo].[taoxifg] 脚本日期: 01/19/2015 17:09:33 ******/
  1530. SET ANSI_NULLS ON
  1531. GO
  1532. SET QUOTED_IDENTIFIER ON
  1533. GO
  1534. SET ANSI_PADDING ON
  1535. GO
  1536. CREATE TABLE [dbo].[taoxifg](
  1537. [name] [nvarchar](50) NULL
  1538. ) ON [PRIMARY]
  1539. GO
  1540. SET ANSI_PADDING OFF
  1541. GO
  1542. /****** 对象: Table [dbo].[taoxishangpin1] 脚本日期: 01/19/2015 17:09:34 ******/
  1543. SET ANSI_NULLS ON
  1544. GO
  1545. SET QUOTED_IDENTIFIER ON
  1546. GO
  1547. SET ANSI_PADDING ON
  1548. GO
  1549. CREATE TABLE [dbo].[taoxishangpin1](
  1550. [id] [int] IDENTITY(1,1) NOT NULL,
  1551. [taoxiid] [nvarchar](20) NULL,
  1552. [spid1] [nvarchar](15) NULL,
  1553. [shuliang] [nvarchar](15) NULL,
  1554. PRIMARY KEY CLUSTERED
  1555. (
  1556. [id] ASC
  1557. ) ON [PRIMARY]
  1558. ) ON [PRIMARY]
  1559. GO
  1560. SET ANSI_PADDING OFF
  1561. GO
  1562. /****** 对象: Table [dbo].[taoxishangpin2] 脚本日期: 01/19/2015 17:09:35 ******/
  1563. SET ANSI_NULLS ON
  1564. GO
  1565. SET QUOTED_IDENTIFIER ON
  1566. GO
  1567. SET ANSI_PADDING ON
  1568. GO
  1569. CREATE TABLE [dbo].[taoxishangpin2](
  1570. [id] [int] IDENTITY(1,1) NOT NULL,
  1571. [taoxiid] [nvarchar](15) NULL,
  1572. [spid2] [nvarchar](15) NULL,
  1573. [shuliang] [nvarchar](15) NULL,
  1574. PRIMARY KEY CLUSTERED
  1575. (
  1576. [id] ASC
  1577. ) ON [PRIMARY]
  1578. ) ON [PRIMARY]
  1579. GO
  1580. SET ANSI_PADDING OFF
  1581. GO
  1582. /****** 对象: Table [dbo].[todaytake] 脚本日期: 01/19/2015 17:09:37 ******/
  1583. SET ANSI_NULLS ON
  1584. GO
  1585. SET QUOTED_IDENTIFIER ON
  1586. GO
  1587. SET ANSI_PADDING ON
  1588. GO
  1589. CREATE TABLE [dbo].[todaytake](
  1590. [name] [nvarchar](50) NULL,
  1591. [phone] [nvarchar](50) NULL,
  1592. [date] [nvarchar](50) NULL,
  1593. [time] [nvarchar](50) NULL,
  1594. [type] [nvarchar](50) NULL,
  1595. [price] [nvarchar](50) NULL,
  1596. [waiter1] [nvarchar](50) NULL,
  1597. [waiter2] [nvarchar](50) NULL,
  1598. [receptionist] [nvarchar](50) NULL,
  1599. [arrearage] [nvarchar](50) NULL,
  1600. [clerk] [nvarchar](50) NULL,
  1601. [remark] [nvarchar](max) NULL,
  1602. [timestamp] [nvarchar](50) NULL,
  1603. [content] [nvarchar](50) NULL,
  1604. [mode] [nvarchar](50) NULL,
  1605. [arrive] [nvarchar](50) NULL,
  1606. [id] [nvarchar](50) NULL
  1607. ) ON [PRIMARY]
  1608. GO
  1609. SET ANSI_PADDING OFF
  1610. GO
  1611. /****** 对象: Table [dbo].[txlb] 脚本日期: 01/19/2015 17:09:37 ******/
  1612. SET ANSI_NULLS ON
  1613. GO
  1614. SET QUOTED_IDENTIFIER ON
  1615. GO
  1616. SET ANSI_PADDING ON
  1617. GO
  1618. CREATE TABLE [dbo].[txlb](
  1619. [name] [nvarchar](50) NULL,
  1620. [id] [int] IDENTITY(1,1) NOT NULL
  1621. ) ON [PRIMARY]
  1622. GO
  1623. SET ANSI_PADDING OFF
  1624. GO
  1625. /****** 对象: Table [dbo].[unknownphonerecord] 脚本日期: 01/19/2015 17:09:38 ******/
  1626. SET ANSI_NULLS ON
  1627. GO
  1628. SET QUOTED_IDENTIFIER ON
  1629. GO
  1630. SET ANSI_PADDING ON
  1631. GO
  1632. CREATE TABLE [dbo].[unknownphonerecord](
  1633. [phone] [nvarchar](50) NULL,
  1634. [datetime] [nvarchar](50) NULL
  1635. ) ON [PRIMARY]
  1636. GO
  1637. SET ANSI_PADDING OFF
  1638. GO
  1639. /****** 对象: Table [dbo].[unknownphonerecordout] 脚本日期: 01/19/2015 17:09:38 ******/
  1640. SET ANSI_NULLS ON
  1641. GO
  1642. SET QUOTED_IDENTIFIER ON
  1643. GO
  1644. SET ANSI_PADDING ON
  1645. GO
  1646. CREATE TABLE [dbo].[unknownphonerecordout](
  1647. [phoneno] [nvarchar](50) NULL,
  1648. [datetime] [nvarchar](50) NULL
  1649. ) ON [PRIMARY]
  1650. GO
  1651. SET ANSI_PADDING OFF
  1652. GO
  1653. /****** 对象: Table [dbo].[update] 脚本日期: 01/19/2015 17:09:39 ******/
  1654. SET ANSI_NULLS ON
  1655. GO
  1656. SET QUOTED_IDENTIFIER ON
  1657. GO
  1658. CREATE TABLE [dbo].[update](
  1659. [data] [image] NULL,
  1660. [data2] [image] NULL,
  1661. [data3] [image] NULL,
  1662. [data4] [image] NULL,
  1663. [data5] [image] NULL,
  1664. [data6] [image] NULL,
  1665. [data7] [image] NULL,
  1666. [ocx] [image] NULL
  1667. ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
  1668. GO
  1669. /****** 对象: Table [dbo].[user] 脚本日期: 01/19/2015 17:09:41 ******/
  1670. SET ANSI_NULLS ON
  1671. GO
  1672. SET QUOTED_IDENTIFIER ON
  1673. GO
  1674. SET ANSI_PADDING ON
  1675. GO
  1676. CREATE TABLE [dbo].[user](
  1677. [account] [nvarchar](50) NULL,
  1678. [name] [nvarchar](50) NULL,
  1679. [psw] [nvarchar](50) NULL,
  1680. [rights] [nvarchar](80) NULL,
  1681. [rate1] [nvarchar](50) NULL,
  1682. [rate2] [nvarchar](50) NULL,
  1683. [base] [nvarchar](50) NULL,
  1684. [bz] [nvarchar](max) NULL,
  1685. [rights2] [nvarchar](max) NULL,
  1686. [discount] [nvarchar](50) NULL,
  1687. [discount2] [nvarchar](50) NULL
  1688. ) ON [PRIMARY]
  1689. GO
  1690. SET ANSI_PADDING OFF
  1691. GO
  1692. /****** 对象: Table [dbo].[version] 脚本日期: 01/19/2015 17:10:01 ******/
  1693. SET ANSI_NULLS ON
  1694. GO
  1695. SET QUOTED_IDENTIFIER ON
  1696. GO
  1697. CREATE TABLE [dbo].[version](
  1698. [version] [nvarchar](50) NULL,
  1699. [curdate] [nvarchar](50) NULL,
  1700. [check1] [nvarchar](50) NULL,
  1701. [check2] [nvarchar](50) NULL,
  1702. [check3] [nvarchar](50) NULL,
  1703. [check4] [nvarchar](50) NULL,
  1704. [edit1] [nvarchar](50) NULL,
  1705. [edit2] [nvarchar](50) NULL,
  1706. [edit3] [nvarchar](50) NULL,
  1707. [edit4] [nvarchar](50) NULL,
  1708. [info1] [nvarchar](50) NULL,
  1709. [info2] [nvarchar](50) NULL,
  1710. [info3] [nvarchar](50) NULL,
  1711. [info4] [nvarchar](50) NULL,
  1712. [info5] [nvarchar](50) NULL,
  1713. [bak1] [nvarchar](50) NULL,
  1714. [bak2] [nvarchar](50) NULL,
  1715. [bak3] [nvarchar](50) NULL,
  1716. [bak4] [nvarchar](50) NULL,
  1717. [bak5] [nvarchar](50) NULL,
  1718. [bak6] [nvarchar](50) NULL,
  1719. [baktime] [nvarchar](50) NULL,
  1720. [bakserver1] [nvarchar](50) NULL,
  1721. [bakserver2] [nvarchar](50) NULL,
  1722. [bakserver3] [nvarchar](50) NULL,
  1723. [bakserver4] [nvarchar](50) NULL,
  1724. [bakserver5] [nvarchar](50) NULL,
  1725. [msgaccount] [nvarchar](50) NULL,
  1726. [msgpsw] [nvarchar](50) NULL,
  1727. [msgused] [nvarchar](50) NULL,
  1728. [msgbalance] [nvarchar](50) NULL,
  1729. [msgcheck1] [nvarchar](50) NULL,
  1730. [msgcheck2] [nvarchar](50) NULL,
  1731. [msgdays1] [nvarchar](50) NULL,
  1732. [msgdays2] [nvarchar](50) NULL,
  1733. [msgcontent1] [nvarchar](max) NULL,
  1734. [msgcontent2] [nvarchar](max) NULL,
  1735. [remarks] [nvarchar](max) NULL,
  1736. [rate] [nvarchar](50) NULL,
  1737. [msgcheck3] [nvarchar](50) NULL,
  1738. [msgcontent3] [nvarchar](max) NULL,
  1739. [salarycheck1] [nvarchar](50) NULL,
  1740. [salarycheck2] [nvarchar](50) NULL,
  1741. [msgcheck4] [nvarchar](50) NULL,
  1742. [msgtime] [nvarchar](50) NULL,
  1743. [msgphones] [nvarchar](max) NULL,
  1744. [info6] [nvarchar](50) NULL,
  1745. [msgcompanyname] [nvarchar](50) NULL,
  1746. [msgphones2] [nvarchar](max) NULL,
  1747. [msgsendtype] [nvarchar](50) NULL,
  1748. [msgcontent5] [nvarchar](max) NULL,
  1749. [msgcheck5] [nvarchar](50) NULL,
  1750. [msgcontent6] [nvarchar](max) NULL,
  1751. [msgcheck6] [nvarchar](50) NULL,
  1752. [cardlength] [nvarchar](50) NULL,
  1753. [salarycheck3] [nvarchar](50) NULL,
  1754. [salarycheck4] [nvarchar](50) NULL,
  1755. [setcheck1] [nvarchar](50) NULL,
  1756. [setcheck2] [nvarchar](50) NULL,
  1757. [setcheck3] [nvarchar](50) NULL,
  1758. [setcheck4] [nvarchar](50) NULL,
  1759. [setcheck5] [nvarchar](50) NULL,
  1760. [printer1] [nvarchar](50) NULL,
  1761. [printer2] [nvarchar](50) NULL,
  1762. [printer3] [nvarchar](50) NULL,
  1763. [setprintstyle] [nvarchar](50) NULL,
  1764. [uploadcheck1] [nvarchar](50) NULL,
  1765. [uploadcheck2] [nvarchar](50) NULL,
  1766. [uploadcheck3] [nvarchar](50) NULL,
  1767. [uploadcheck4] [nvarchar](50) NULL,
  1768. [bak11] [nvarchar](50) NULL,
  1769. [bak22] [nvarchar](50) NULL,
  1770. [bak33] [nvarchar](50) NULL,
  1771. [bak44] [nvarchar](50) NULL,
  1772. [setprintstyle2] [nvarchar](50) NULL,
  1773. [setcheck10] [nvarchar](50) NULL,
  1774. [ziptype1] [nvarchar](50) NULL,
  1775. [ziptype2] [nvarchar](50) NULL,
  1776. [ziptype3] [nvarchar](50) NULL,
  1777. [ziptype4] [nvarchar](50) NULL,
  1778. [salaryset] [nvarchar](max) NULL,
  1779. [limitcount1] [nvarchar](50) NULL,
  1780. [limitcount2] [nvarchar](50) NULL,
  1781. [limitcount3] [nvarchar](50) NULL,
  1782. [rate2] [nvarchar](50) NULL,
  1783. [setcheck11] [nvarchar](50) NULL,
  1784. [setcheck12] [nvarchar](50) NULL,
  1785. [setprintstyle3] [nvarchar](50) NULL,
  1786. [msgcheck7] [nvarchar](50) NULL,
  1787. [msgcheck8] [nvarchar](50) NULL,
  1788. [msgcheck9] [nvarchar](50) NULL,
  1789. [msgcheck10] [nvarchar](50) NULL,
  1790. [msgcontent8] [nvarchar](max) NULL,
  1791. [msgcontent9] [nvarchar](max) NULL,
  1792. [msgcontent10] [nvarchar](max) NULL,
  1793. [setcheck13] [nvarchar](50) NULL,
  1794. [time1] [nvarchar](50) NULL,
  1795. [time2] [nvarchar](50) NULL,
  1796. [time3] [nvarchar](50) NULL,
  1797. [setcheck14] [nvarchar](50) NULL,
  1798. [setcheck15] [nvarchar](50) NULL,
  1799. [msgcheck11] [nvarchar](50) NULL,
  1800. [msgcheck12] [nvarchar](50) NULL,
  1801. [msgcheck13] [nvarchar](50) NULL,
  1802. [msgcheck14] [nvarchar](50) NULL,
  1803. [msgcontent11] [nvarchar](max) NULL,
  1804. [msgcontent12] [nvarchar](max) NULL,
  1805. [msgcontent13] [nvarchar](max) NULL,
  1806. [msgcontent14] [nvarchar](max) NULL,
  1807. [setcheck6] [nvarchar](50) NULL,
  1808. [msgcheck15] [nvarchar](50) NULL,
  1809. [msgcontent15] [nvarchar](max) NULL,
  1810. [logdays] [nvarchar](50) NULL,
  1811. [setcheck17] [nvarchar](50) NULL,
  1812. [setcheck18] [nvarchar](50) NULL,
  1813. [setcheck19] [nvarchar](50) NULL,
  1814. [uploadrule] [nvarchar](max) NULL,
  1815. [setcheck20] [nvarchar](50) NULL,
  1816. [cardnum] [nvarchar](50) NULL,
  1817. [cardscale] [nvarchar](500) NULL,
  1818. [info7] [nvarchar](120) NULL,
  1819. [setcheck21] [nvarchar](50) NULL,
  1820. [msgcheck16] [nvarchar](50) NULL,
  1821. [hospitalmsgcheck1] [nvarchar](50) NULL,
  1822. [hospitalmsgcheck2] [nvarchar](50) NULL,
  1823. [serialno] [nvarchar](50) NULL,
  1824. [serialno2] [nvarchar](50) NULL,
  1825. [msgcheck17] [nvarchar](50) NULL,
  1826. [msgcontent17] [nvarchar](max) NULL,
  1827. [setcheck22] [nvarchar](50) NULL,
  1828. [setcheck23] [nvarchar](50) NULL,
  1829. [info8] [nvarchar](120) NULL,
  1830. [setcheck24] [nvarchar](120) NULL,
  1831. [outtime] [nvarchar](120) NULL,
  1832. [info9] [nvarchar](120) NULL,
  1833. [reverse1] [nvarchar](50) NULL,
  1834. [reverse2] [nvarchar](50) NULL,
  1835. [reverse3] [nvarchar](50) NULL,
  1836. [reverse4] [nvarchar](50) NULL,
  1837. [reverse5] [nvarchar](50) NULL,
  1838. [photo] [image] NULL,
  1839. [delcheck1] [nvarchar](50) NULL,
  1840. [delcheck2] [nvarchar](50) NULL,
  1841. [delcheck3] [nvarchar](50) NULL,
  1842. [delcheck4] [nvarchar](50) NULL,
  1843. [deledit1] [nvarchar](50) NULL,
  1844. [deledit2] [nvarchar](50) NULL,
  1845. [deledit3] [nvarchar](50) NULL,
  1846. [deledit4] [nvarchar](50) NULL,
  1847. [alarmdays1] [nvarchar](50) NULL,
  1848. [alarmdays2] [nvarchar](50) NULL,
  1849. [alarmdays3] [nvarchar](50) NULL,
  1850. [alarmdays4] [nvarchar](50) NULL,
  1851. [alarmdays5] [nvarchar](50) NULL,
  1852. [alarmdays6] [nvarchar](50) NULL,
  1853. [msAccount] [nvarchar](12) NULL,
  1854. [msPassword] [nvarchar](16) NULL
  1855. ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
  1856. GO
  1857. /****** 对象: Table [dbo].[workrate] 脚本日期: 01/19/2015 17:10:02 ******/
  1858. SET ANSI_NULLS ON
  1859. GO
  1860. SET QUOTED_IDENTIFIER ON
  1861. GO
  1862. SET ANSI_PADDING ON
  1863. GO
  1864. CREATE TABLE [dbo].[workrate](
  1865. [type] [nvarchar](50) NULL,
  1866. [data1] [nvarchar](50) NULL,
  1867. [data2] [nvarchar](50) NULL,
  1868. [data3] [nvarchar](50) NULL,
  1869. [data4] [nvarchar](50) NULL,
  1870. [data5] [nvarchar](50) NULL,
  1871. [data6] [nvarchar](50) NULL
  1872. ) ON [PRIMARY]
  1873. GO
  1874. SET ANSI_PADDING OFF
  1875. GO
  1876. /****** 对象: Table [dbo].[worktype] 脚本日期: 01/19/2015 17:10:03 ******/
  1877. SET ANSI_NULLS ON
  1878. GO
  1879. SET QUOTED_IDENTIFIER ON
  1880. GO
  1881. SET ANSI_PADDING ON
  1882. GO
  1883. CREATE TABLE [dbo].[worktype](
  1884. [name] [nvarchar](50) NULL,
  1885. [id] [int] IDENTITY(1,1) NOT NULL
  1886. ) ON [PRIMARY]
  1887. GO
  1888. SET ANSI_PADDING OFF
  1889. GO
  1890. /****** 对象: Table [dbo].[hospitalclient] 脚本日期: 01/19/2015 17:08:49 ******/
  1891. SET ANSI_NULLS ON
  1892. GO
  1893. SET QUOTED_IDENTIFIER ON
  1894. GO
  1895. CREATE TABLE [dbo].[hospitalclient](
  1896. [id] [nvarchar](50) NULL,
  1897. [checkmsg] [nvarchar](50) NULL,
  1898. [name1] [nvarchar](50) NULL,
  1899. [name2] [nvarchar](50) NULL,
  1900. [food] [nvarchar](50) NULL,
  1901. [sex] [nvarchar](50) NULL,
  1902. [check1] [nvarchar](50) NULL,
  1903. [birthdaytype] [nvarchar](50) NULL,
  1904. [birthday] [nvarchar](50) NULL,
  1905. [pregnancydays] [nvarchar](50) NULL,
  1906. [qq] [nvarchar](50) NULL,
  1907. [date1] [nvarchar](50) NULL,
  1908. [from] [nvarchar](50) NULL,
  1909. [clerk] [nvarchar](50) NULL,
  1910. [type] [nvarchar](50) NULL,
  1911. [hospital] [nvarchar](50) NULL,
  1912. [remark] [nvarchar](50) NULL,
  1913. [phone1] [nvarchar](50) NULL,
  1914. [phone2] [nvarchar](50) NULL,
  1915. [phone3] [nvarchar](50) NULL,
  1916. [phone4] [nvarchar](50) NULL,
  1917. [phone5] [nvarchar](50) NULL,
  1918. [addr1] [nvarchar](50) NULL,
  1919. [addr2] [nvarchar](50) NULL,
  1920. [addr3] [nvarchar](50) NULL,
  1921. [post1] [nvarchar](50) NULL,
  1922. [post2] [nvarchar](50) NULL,
  1923. [post3] [nvarchar](50) NULL,
  1924. [pinyin1] [nvarchar](50) NULL,
  1925. [pinyin2] [nvarchar](50) NULL,
  1926. [inputdate] [nvarchar](50) NULL,
  1927. [inputer] [nvarchar](50) NULL
  1928. ) ON [PRIMARY]
  1929. GO
  1930. /****** 对象: Table [dbo].[businesstype] 脚本日期: 01/19/2015 17:07:49 ******/
  1931. SET ANSI_NULLS ON
  1932. GO
  1933. SET QUOTED_IDENTIFIER ON
  1934. GO
  1935. CREATE TABLE [dbo].[businesstype](
  1936. [name] [nvarchar](50) NULL,
  1937. [id] [int] IDENTITY(1,1) NOT NULL
  1938. ) ON [PRIMARY]
  1939. GO
  1940. /****** 对象: Table [dbo].[businessintention] 脚本日期: 01/19/2015 17:07:49 ******/
  1941. SET ANSI_NULLS ON
  1942. GO
  1943. SET QUOTED_IDENTIFIER ON
  1944. GO
  1945. CREATE TABLE [dbo].[businessintention](
  1946. [name] [nvarchar](50) NULL,
  1947. [id] [int] IDENTITY(1,1) NOT NULL
  1948. ) ON [PRIMARY]
  1949. GO
  1950. /****** 对象: Table [dbo].[clienttype] 脚本日期: 01/19/2015 17:08:01 ******/
  1951. SET ANSI_NULLS ON
  1952. GO
  1953. SET QUOTED_IDENTIFIER ON
  1954. GO
  1955. CREATE TABLE [dbo].[clienttype](
  1956. [name] [nvarchar](50) NULL,
  1957. [id] [int] IDENTITY(1,1) NOT NULL
  1958. ) ON [PRIMARY]
  1959. GO
  1960. /****** 对象: Table [dbo].[hospital] 脚本日期: 01/19/2015 17:08:44 ******/
  1961. SET ANSI_NULLS ON
  1962. GO
  1963. SET QUOTED_IDENTIFIER ON
  1964. GO
  1965. CREATE TABLE [dbo].[hospital](
  1966. [name] [nvarchar](50) NULL,
  1967. [id] [int] IDENTITY(1,1) NOT NULL
  1968. ) ON [PRIMARY]
  1969. GO
  1970. /****** 对象: Table [dbo].[hospitalclientcontactreg] 脚本日期: 01/19/2015 17:08:50 ******/
  1971. SET ANSI_NULLS ON
  1972. GO
  1973. SET QUOTED_IDENTIFIER ON
  1974. GO
  1975. CREATE TABLE [dbo].[hospitalclientcontactreg](
  1976. [id] [nvarchar](50) NULL,
  1977. [autoid] [int] IDENTITY(1,1) NOT NULL,
  1978. [businesstype] [nvarchar](50) NULL,
  1979. [businessintention] [nvarchar](50) NULL,
  1980. [bookingdate] [nvarchar](50) NULL,
  1981. [desaddr] [nvarchar](50) NULL,
  1982. [businessremark] [nvarchar](50) NULL,
  1983. [alarmcheck] [nvarchar](50) NULL,
  1984. [alarmdate] [nvarchar](50) NULL
  1985. ) ON [PRIMARY]
  1986. GO
  1987. /****** 对象: Table [dbo].[sendregdelay] 脚本日期: 01/19/2015 17:09:24 ******/
  1988. SET ANSI_NULLS ON
  1989. GO
  1990. SET QUOTED_IDENTIFIER ON
  1991. GO
  1992. CREATE TABLE [dbo].[sendregdelay](
  1993. [timestamp] [nvarchar](50) NULL,
  1994. [msgcount] [nvarchar](50) NULL,
  1995. [log] [nvarchar](50) NULL,
  1996. [status] [nvarchar](50) NULL,
  1997. [issended] [nvarchar](50) NULL,
  1998. [isautosend] [nvarchar](50) NULL,
  1999. [phones] [nvarchar](max) NULL,
  2000. [content] [nvarchar](max) NULL,
  2001. [autoid] [int] IDENTITY(1,1) NOT NULL,
  2002. [ren] [nvarchar](50) NULL,
  2003. [msgtype] [nvarchar](10) NULL
  2004. ) ON [PRIMARY]
  2005. GO
  2006. /****** 对象: Table [dbo].[fixedassets] 脚本日期: 01/19/2015 17:08:40 ******/
  2007. SET ANSI_NULLS ON
  2008. GO
  2009. SET QUOTED_IDENTIFIER ON
  2010. GO
  2011. CREATE TABLE [dbo].[fixedassets](
  2012. [name] [nvarchar](50) NULL,
  2013. [id] [int] IDENTITY(1,1) NOT NULL,
  2014. [count] [nvarchar](50) NULL,
  2015. [type] [nvarchar](50) NULL,
  2016. [clerk] [nvarchar](50) NULL,
  2017. [remark] [nvarchar](50) NULL,
  2018. [date] [nvarchar](50) NULL,
  2019. [photo] [image] NULL
  2020. ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
  2021. GO
  2022. /****** 对象: Table [dbo].[msgcode] 脚本日期: 01/19/2015 17:09:09 ******/
  2023. SET ANSI_NULLS ON
  2024. GO
  2025. SET QUOTED_IDENTIFIER ON
  2026. GO
  2027. CREATE TABLE [dbo].[msgcode](
  2028. [type] [nvarchar](50) NULL,
  2029. [code] [nvarchar](50) NULL,
  2030. [good] [nvarchar](50) NULL,
  2031. [medium] [nvarchar](50) NULL,
  2032. [bad] [nvarchar](50) NULL
  2033. ) ON [PRIMARY]
  2034. GO
  2035. /****** 对象: Table [dbo].[clientqequirement] 脚本日期: 01/19/2015 17:08:01 ******/
  2036. SET ANSI_NULLS ON
  2037. GO
  2038. SET QUOTED_IDENTIFIER ON
  2039. GO
  2040. CREATE TABLE [dbo].[clientqequirement](
  2041. [name] [nvarchar](50) NULL,
  2042. [id] [int] IDENTITY(1,1) NOT NULL
  2043. ) ON [PRIMARY]
  2044. GO
  2045. /****** 对象: Table [dbo].[clientcontract] 脚本日期: 01/19/2015 17:08:00 ******/
  2046. SET ANSI_NULLS ON
  2047. GO
  2048. SET QUOTED_IDENTIFIER ON
  2049. GO
  2050. CREATE TABLE [dbo].[clientcontract](
  2051. [id] [nvarchar](50) NULL,
  2052. [date] [nvarchar](50) NULL,
  2053. [photo] [image] NULL
  2054. ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
  2055. GO
  2056. /****** 对象: Table [dbo].[annualfee] 脚本日期: 01/19/2015 17:07:46 ******/
  2057. SET ANSI_NULLS ON
  2058. GO
  2059. SET QUOTED_IDENTIFIER ON
  2060. GO
  2061. CREATE TABLE [dbo].[annualfee](
  2062. [id] [nvarchar](50) NULL,
  2063. [year] [nvarchar](50) NULL,
  2064. [date] [nvarchar](50) NULL,
  2065. [clerk] [nvarchar](50) NULL
  2066. ) ON [PRIMARY]
  2067. GO
  2068. /****** 对象: Table [dbo].[area] 脚本日期: 01/19/2015 17:07:47 ******/
  2069. SET ANSI_NULLS ON
  2070. GO
  2071. SET QUOTED_IDENTIFIER ON
  2072. GO
  2073. SET ANSI_PADDING ON
  2074. GO
  2075. CREATE TABLE [dbo].[area](
  2076. [id] [nvarchar](50) NULL,
  2077. [name] [nvarchar](50) NULL
  2078. ) ON [PRIMARY]
  2079. GO
  2080. SET ANSI_PADDING OFF
  2081. GO
  2082. /****** 对象: Table [dbo].[bakstate] 脚本日期: 01/19/2015 17:07:47 ******/
  2083. SET ANSI_NULLS ON
  2084. GO
  2085. SET QUOTED_IDENTIFIER ON
  2086. GO
  2087. SET ANSI_PADDING ON
  2088. GO
  2089. CREATE TABLE [dbo].[bakstate](
  2090. [date] [nvarchar](50) NULL,
  2091. [photo] [nvarchar](50) NULL,
  2092. [info] [nvarchar](50) NULL
  2093. ) ON [PRIMARY]
  2094. GO
  2095. SET ANSI_PADDING OFF
  2096. GO
  2097. /****** 对象: Table [dbo].[baseexpendtype] 脚本日期: 01/19/2015 17:07:48 ******/
  2098. SET ANSI_NULLS ON
  2099. GO
  2100. SET QUOTED_IDENTIFIER ON
  2101. GO
  2102. SET ANSI_PADDING ON
  2103. GO
  2104. CREATE TABLE [dbo].[baseexpendtype](
  2105. [name] [nvarchar](50) NULL,
  2106. [id] [int] IDENTITY(1,1) NOT NULL
  2107. ) ON [PRIMARY]
  2108. GO
  2109. SET ANSI_PADDING OFF
  2110. GO
  2111. /****** 对象: Table [dbo].[bumen] 脚本日期: 01/19/2015 17:07:48 ******/
  2112. SET ANSI_NULLS ON
  2113. GO
  2114. SET QUOTED_IDENTIFIER ON
  2115. GO
  2116. SET ANSI_PADDING ON
  2117. GO
  2118. CREATE TABLE [dbo].[bumen](
  2119. [id] [int] IDENTITY(1,1) NOT NULL,
  2120. [name] [nvarchar](50) NULL,
  2121. PRIMARY KEY CLUSTERED
  2122. (
  2123. [id] ASC
  2124. ) ON [PRIMARY]
  2125. ) ON [PRIMARY]
  2126. GO
  2127. SET ANSI_PADDING OFF
  2128. GO
  2129. /****** 对象: Table [dbo].[sendreg2] 脚本日期: 01/19/2015 17:09:22 ******/
  2130. SET ANSI_NULLS ON
  2131. GO
  2132. SET QUOTED_IDENTIFIER ON
  2133. GO
  2134. SET ANSI_PADDING ON
  2135. GO
  2136. CREATE TABLE [dbo].[sendreg2](
  2137. [price] [nvarchar](50) NULL,
  2138. [yytime] [nvarchar](50) NULL,
  2139. [client] [nvarchar](50) NULL,
  2140. [type] [nvarchar](50) NULL,
  2141. [date] [nvarchar](50) NULL,
  2142. [phones] [nvarchar](max) NULL,
  2143. [content] [nvarchar](max) NULL,
  2144. [autoid] [int] IDENTITY(1,1) NOT NULL,
  2145. [ren] [nvarchar](50) NULL
  2146. ) ON [PRIMARY]
  2147. GO
  2148. SET ANSI_PADDING OFF
  2149. GO
  2150. /****** 对象: Table [dbo].[sendregcard] 脚本日期: 01/19/2015 17:09:23 ******/
  2151. SET ANSI_NULLS ON
  2152. GO
  2153. SET QUOTED_IDENTIFIER ON
  2154. GO
  2155. SET ANSI_PADDING ON
  2156. GO
  2157. CREATE TABLE [dbo].[sendregcard](
  2158. [timestamp] [nvarchar](50) NULL,
  2159. [phones] [nvarchar](50) NULL
  2160. ) ON [PRIMARY]
  2161. GO
  2162. SET ANSI_PADDING OFF
  2163. GO
  2164. /****** 对象: Table [dbo].[sendregreceive] 脚本日期: 01/19/2015 17:09:25 ******/
  2165. SET ANSI_NULLS ON
  2166. GO
  2167. SET QUOTED_IDENTIFIER ON
  2168. GO
  2169. SET ANSI_PADDING ON
  2170. GO
  2171. CREATE TABLE [dbo].[sendregreceive](
  2172. [timestamp] [nvarchar](50) NULL,
  2173. [phones] [nvarchar](200) NULL,
  2174. [content] [nvarchar](200) NULL,
  2175. [status] [nvarchar](200) NULL,
  2176. [getid] [nvarchar](50) NULL,
  2177. [id] [int] IDENTITY(1,1) NOT NULL
  2178. ) ON [PRIMARY]
  2179. GO
  2180. SET ANSI_PADDING OFF
  2181. GO
  2182. /****** 对象: Table [dbo].[shangpin] 脚本日期: 01/19/2015 17:09:26 ******/
  2183. SET ANSI_NULLS ON
  2184. GO
  2185. SET QUOTED_IDENTIFIER ON
  2186. GO
  2187. SET ANSI_PADDING ON
  2188. GO
  2189. CREATE TABLE [dbo].[shangpin](
  2190. [spid] [nvarchar](50) NOT NULL CONSTRAINT [DF_shangpin_spid] DEFAULT ('0'),
  2191. [spname] [nvarchar](50) NULL,
  2192. [spdanwei] [nvarchar](50) NULL,
  2193. [spjiaga1] [nvarchar](50) NULL,
  2194. [spjiage2] [nvarchar](50) NULL,
  2195. [splb] [nvarchar](50) NULL,
  2196. [spbz] [nvarchar](max) NULL,
  2197. [spjiage3] [nvarchar](50) NULL,
  2198. [hide] [nvarchar](10) NULL,
  2199. CONSTRAINT [PK_shangpin] PRIMARY KEY CLUSTERED
  2200. (
  2201. [spid] ASC
  2202. ) ON [PRIMARY]
  2203. ) ON [PRIMARY]
  2204. GO
  2205. SET ANSI_PADDING OFF
  2206. GO
  2207. /****** 对象: Table [dbo].[shangpinlb] 脚本日期: 01/19/2015 17:09:27 ******/
  2208. SET ANSI_NULLS ON
  2209. GO
  2210. SET QUOTED_IDENTIFIER ON
  2211. GO
  2212. SET ANSI_PADDING ON
  2213. GO
  2214. CREATE TABLE [dbo].[shangpinlb](
  2215. [id] [int] IDENTITY(1,1) NOT NULL,
  2216. [name] [nvarchar](50) NULL,
  2217. PRIMARY KEY CLUSTERED
  2218. (
  2219. [id] ASC
  2220. ) ON [PRIMARY]
  2221. ) ON [PRIMARY]
  2222. GO
  2223. SET ANSI_PADDING OFF
  2224. GO
  2225. /****** 对象: View [dbo].[takeview] 脚本日期: 01/19/2015 17:10:06 ******/
  2226. SET ANSI_NULLS ON
  2227. GO
  2228. SET QUOTED_IDENTIFIER ON
  2229. GO
  2230. create view [dbo].[takeview] as select dbo.dindan.name1, dbo.dindan.name2, dbo.dindan.ren, dbo.dindan.taoxiname, dbo.dindan.taoxijiage, dbo.dindan.phone1,dbo.dindan.phone2, dbo.dindan.curno, dbo.dindan.pinyin1,dbo.dindan.pinyin2, dbo.dindan.time3, dbo.dindan.time5, dbo.dindan.dindantype, dbo.dindanjd.id,dbo.dindanjd.name, dbo.dindanjd.date, dbo.dindanjd.time,dbo.dindanjd.waiter1, dbo.dindanjd.waiter2, dbo.dindanjd.status, dbo.dindanjd.waiter12,dbo.dindanjd.waiter22, dbo.dindanjd.bookingdate, dbo.dindanjd.dress,dbo.dindanjd.bz, dbo.dindanjd.clerk, dbo.dindanjd.inputtime, dbo.dindanjd.branch,dbo.dindan.status3, dbo.dindan.payed4, dbo.dindan.payed5, dbo.dindan.money1, dbo.client.birthday1, dbo.client.check1, dbo.client.sex from dbo.dindan INNER JOIN dbo.dindanjd ON dbo.dindan.id = dbo.dindanjd.id INNER JOIN dbo.client ON dbo.dindan.id = dbo.client.id
  2231. GO
  2232. /****** 对象: View [dbo].[hqview] 脚本日期: 01/19/2015 17:10:05 ******/
  2233. SET ANSI_NULLS ON
  2234. GO
  2235. SET QUOTED_IDENTIFIER ON
  2236. GO
  2237. create view [dbo].[hqview] as select dbo.dindan.id, dbo.dindan.name1, dbo.dindan.name2, dbo.dindan.phone1, dbo.dindan.phone2,dbo.dindan.time3, dbo.client.check3, dbo.dindan.ren,dbo.dindan.taoxiname, dbo.dindan.taoxijiage, dbo.dindansp.name, dbo.dindansp.hqdate,dbo.dindansp.hqtime,dbo.dindansp.ren1, dbo.dindansp.ren2, dbo.dindansp.kind,dbo.dindansp.hqstatus,dbo.dindansp.bz from dbo.dindan INNER JOIN dbo.client ON dbo.dindan.id = dbo.client.id INNER JOIN dbo.dindansp ON dbo.client.id = dbo.dindansp.id
  2238. GO
  2239. /****** 对象: View [dbo].[dindanclient] 脚本日期: 01/19/2015 17:10:04 ******/
  2240. SET ANSI_NULLS ON
  2241. GO
  2242. SET QUOTED_IDENTIFIER ON
  2243. GO
  2244. create view [dbo].[dindanclient] as select dbo.dindan.id, dbo.client.id AS Expr1, dbo.client.name1, dbo.client.name2,dbo.client.phone1, dbo.client.phone2, dbo.client.birthday1, dbo.client.birthday2,dbo.client.check1, dbo.client.check2, dbo.client.check3, dbo.dindan.time3, dbo.dindan.time1,dbo.dindan.taoxiname, dbo.dindan.taoxijiage, dbo.dindan.payed4 from dbo.dindan INNER JOIN dbo.client ON dbo.dindan.id = dbo.client.id
  2245. GO
  2246. /****** 对象: View [dbo].[msgview] 脚本日期: 01/19/2015 17:10:06 ******/
  2247. SET ANSI_NULLS ON
  2248. GO
  2249. SET QUOTED_IDENTIFIER ON
  2250. GO
  2251. create view [dbo].[msgview] as select dbo.sendregreceive.phones, dbo.dindan.id, dbo.dindan.name1, dbo.dindan.name2, dbo.sendregreceive.[content],dbo.sendregreceive.timestamp, dbo.dindan.time1,dbo.dindan.ren, dbo.dindan.waiter1, dbo.dindan.waiter2, dbo.dindan.waiter4,dbo.dindan.waiter5, dbo.dindan.waiter7, dbo.dindan.waiter3 from dbo.sendregreceive LEFT JOIN dbo.dindan ON dbo.sendregreceive.phones = dbo.dindan.phone1 OR dbo.sendregreceive.phones = dbo.dindan.phone2
  2252. GO
  2253. /****** 对象: View [dbo].[dindanbukuanview] 脚本日期: 01/19/2015 17:10:03 ******/
  2254. SET ANSI_NULLS ON
  2255. GO
  2256. SET QUOTED_IDENTIFIER ON
  2257. GO
  2258. create view [dbo].[dindanbukuanview] as select dbo.dindan.name1, dbo.dindan.name2, dbo.dindan.txtype, dbo.dindan.taoxiname,dbo.dindanbukuan.money, dbo.dindanbukuan.date, dbo.dindanbukuan.kind, dbo.dindanbukuan.ren,dbo.dindanbukuan.bz, dbo.dindanbukuan.id,dbo.dindanbukuan.paytype from dbo.dindan INNER JOIN dbo.dindanbukuan ON dbo.dindan.id = dbo.dindanbukuan.id
  2259. GO
  2260. /****** 对象: View [dbo].[dindanspview3] 脚本日期: 01/19/2015 17:10:04 ******/
  2261. SET ANSI_NULLS ON
  2262. GO
  2263. SET QUOTED_IDENTIFIER ON
  2264. GO
  2265. create view [dbo].[dindanspview3] as select dbo.dindan.id, dbo.dindan.name1, dbo.dindan.name2, dbo.dindan.ren, dbo.dindan.taoxijiage, dbo.dindan.payed4, dbo.dindansp.name, dbo.dindansp.shuliang,dbo.dindan.time1 from dbo.dindan INNER JOIN dbo.dindansp ON dbo.dindan.id = dbo.dindansp.id
  2266. GO
  2267. /****** 对象: View [dbo].[alarmview] 脚本日期: 01/19/2015 17:10:03 ******/
  2268. SET ANSI_NULLS ON
  2269. GO
  2270. SET QUOTED_IDENTIFIER ON
  2271. GO
  2272. create view [dbo].[alarmview] as select dbo.dindan.id, dbo.dindan.name1, dbo.dindan.name2,dbo.dindan.ren,dbo.dindan.time1,dindan.time2,dindan.time4,dbo.dindan.status,dbo.dindan.status2,dbo.dindan.status8,dbo.dindan.phone1,dbo.dindan.phone2,dbo.dindan.pinyin1,dbo.dindan.pinyin2,(SELECT count(*) FROM dbo.dindansp WHERE (kind<>'2' and name<>'入册' and name<>'入底' and status1 = '未完成') AND (id = dbo.dindan.id)) AS cot1,(SELECT count(*) FROM dbo.dindansp WHERE (kind<>'2' and name<>'入册' and name<>'入底' and status2 = '未取') AND (id = dbo.dindan.id)) AS cot2 FROM dbo.dindan
  2273. GO
  2274. /****** 对象: View [dbo].[annualfeeview] 脚本日期: 01/19/2015 17:10:03 ******/
  2275. SET ANSI_NULLS ON
  2276. GO
  2277. SET QUOTED_IDENTIFIER ON
  2278. GO
  2279. CREATE VIEW [dbo].[annualfeeview] AS SELECT dbo.dindan.name1, dbo.dindan.name2, dbo.dindan.time1, dbo.dindan.time2, dbo.dindan.ren, dbo.dindan.phone1, dbo.dindan.phone2, dbo.dindan.pinyin1, dbo.dindan.pinyin2, dbo.annualfee.year, dbo.annualfee.date, dbo.annualfee.clerk, dbo.dindan.id, dbo.dindan.bz, dbo.dindan.status5 FROM dbo.dindan LEFT OUTER JOIN dbo.annualfee ON dbo.dindan.id = dbo.annualfee.id
  2280. GO
  2281. /****** 对象: View [dbo].[dindanspview4] 脚本日期: 01/19/2015 17:10:04 ******/
  2282. SET ANSI_NULLS ON
  2283. GO
  2284. SET QUOTED_IDENTIFIER ON
  2285. GO
  2286. create view [dbo].[dindanspview4] as select dbo.dindan.id, dbo.dindan.name1, dbo.dindan.name2, dbo.dindan.ren, dbo.dindan.taoxijiage, dbo.dindan.payed4,dbo.dindanbukuan2.bz AS name, 1 AS shuliang,dbo.dindan.time1 from dbo.dindan INNER JOIN dbo.dindanbukuan2 ON dbo.dindan.id = dbo.dindanbukuan2.id
  2287. GO
  2288. /****** 对象: View [dbo].[dindanview] 脚本日期: 01/19/2015 17:10:05 ******/
  2289. SET ANSI_NULLS ON
  2290. GO
  2291. SET QUOTED_IDENTIFIER ON
  2292. GO
  2293. create view [dbo].[dindanview] as select *,(SELECT (case when exists(SELECT id FROM dbo.dindansp WHERE id = dbo.dindan.id and kind<>'5' and name<>'入册' and name<>'入底' and status1<>'OK') then '未完成' else 'OK' end)) AS STA from dbo.dindan
  2294. GO
  2295. /****** 对象: View [dbo].[dindanspview] 脚本日期: 01/19/2015 17:10:04 ******/
  2296. SET ANSI_NULLS ON
  2297. GO
  2298. SET QUOTED_IDENTIFIER ON
  2299. GO
  2300. create view [dbo].[dindanspview] as select dbo.dindan.id, dbo.dindan.name1,dbo.dindan.name2, dbo.dindan.status5,dbo.dindan.waiter4,dbo.dindan.urgent, dbo.dindan.time5, dbo.dindan.ren, dbo.dindan.phone1,dbo.dindan.phone2,dbo.dindan.pinyin1,dbo.dindan.pinyin2, dbo.dindan.taoxijiage, dbo.dindan.payed4, dbo.dindan.payed5, dbo.dindan.money1,dbo.dindan.status3,dbo.dindan.dindantype, dbo.dindansp.name, dbo.dindansp.status3 as status32,dbo.dindansp.status4, dbo.dindansp.status5 AS status52, dbo.dindansp.status6, dbo.dindansp.status1,dbo.dindansp.status2, dbo.dindansp.urgent as urgent2, dbo.dindansp.date4, dbo.dindansp.kind from dbo.dindan INNER JOIN dbo.dindansp ON dbo.dindan.id = dbo.dindansp.id
  2301. GO
  2302. /****** 对象: View [dbo].[photoprintview] 脚本日期: 01/19/2015 17:10:06 ******/
  2303. SET ANSI_NULLS ON
  2304. GO
  2305. SET QUOTED_IDENTIFIER ON
  2306. GO
  2307. create view [dbo].[photoprintview] AS SELECT dbo.dindan.id, dbo.dindan.name1, dbo.dindan.name2, dbo.dindan.ren, dbo.dindan.waiter4, dbo.photoprint.name, dbo.photoprint.count, dbo.photoprint.status1, dbo.photoprint.status2, dbo.photoprint.time1, dbo.photoprint.time2, dbo.photoprint.statusOfReWork,dbo.photoprint.timeOfReWork,dbo.photoprint.area, dbo.dindan.status5, dbo.dindan.urgent, dbo.dindan.time5, dbo.dindan.phone1, dbo.dindan.phone2, dbo.dindan.pinyin1, dbo.dindan.pinyin2, dbo.dindan.status3, dbo.dindan.dindantype FROM dbo.dindan LEFT OUTER JOIN dbo.photoprint ON dbo.dindan.id = dbo.photoprint.id
  2308. GO
  2309. /****** 对象: View [dbo].[dindanbukuanview2] 脚本日期: 01/19/2015 17:10:04 ******/
  2310. SET ANSI_NULLS ON
  2311. GO
  2312. SET QUOTED_IDENTIFIER ON
  2313. GO
  2314. create view [dbo].[dindanbukuanview2] as select dbo.dindan.name1, dbo.dindan.name2, dbo.dindanbukuan.autoid, dbo.dindanbukuan.id,dbo.dindanbukuan.money, dbo.dindanbukuan.ren, dbo.dindanbukuan.date, dbo.dindanbukuan.bz, dbo.dindanbukuan.kind,dbo.dindanbukuan.ren2, dbo.dindanbukuan.item, dbo.dindanbukuan.paytype, dbo.dindanbukuan.jdd, dbo.dindanbukuan.financecheck,dbo.dindanbukuan.discount, dbo.dindanbukuan.time from dbo.dindanbukuan INNER JOIN dbo.dindan ON dbo.dindanbukuan.id = dbo.dindan.id
  2315. GO
  2316. /****** 对象: View [dbo].[qjview] 脚本日期: 01/19/2015 17:10:06 ******/
  2317. SET ANSI_NULLS ON
  2318. GO
  2319. SET QUOTED_IDENTIFIER ON
  2320. GO
  2321. create view [dbo].[qjview] as select dbo.dindan.id, dbo.dindan.name2, dbo.dindan.name1, dbo.dindansp.name,dbo.dindansp.shuliang, dbo.dindansp.status4, dbo.dindansp.date2, dbo.dindansp.status1,dbo.dindansp.date3, dbo.dindansp.status3 from dbo.dindan INNER JOIN dbo.dindansp ON dbo.dindan.id = dbo.dindansp.id
  2322. GO
  2323. /****** 对象: View [dbo].[digitalview] 脚本日期: 01/19/2015 17:10:03 ******/
  2324. SET ANSI_NULLS ON
  2325. GO
  2326. SET QUOTED_IDENTIFIER ON
  2327. GO
  2328. CREATE VIEW [dbo].[digitalview] AS SELECT id, name1, name2, taoxiname, taoxijiage, waiter5, time8, waiter7, time9, waiter4, time10, status4, status6, status5, txtype, (SELECT SUM(CAST(money AS float)) AS Expr1 FROM dbo.dindanbukuan WHERE (bz = '选片二销') AND (id = dbo.dindan.id)) AS money2, (SELECT SUM(CONVERT(float, ps)) AS Expr2 FROM dbo.dindansp WHERE (id = dbo.dindan.id)) AS ps, (SELECT SUM(CONVERT(float, zs)) AS Expr3 FROM dbo.dindansp AS dindansp_1 WHERE (id = dbo.dindan.id)) AS zs FROM dbo.dindan
  2329. GO
  2330. /****** 对象: View [dbo].[dindanspview2] 脚本日期: 01/19/2015 17:10:04 ******/
  2331. SET ANSI_NULLS ON
  2332. GO
  2333. SET QUOTED_IDENTIFIER ON
  2334. GO
  2335. create view [dbo].[dindanspview2] as select dbo.shangpin.splb, dbo.dindansp.id, dbo.dindansp.spid, dbo.dindansp.shuliang, dbo.dindansp.kind, dbo.dindansp.price, dbo.dindansp.name, dbo.dindansp.no,dbo.dindansp.status1, dbo.dindansp.status2, dbo.dindansp.status3, dbo.dindansp.status4,dbo.dindansp.autoid, dbo.dindansp.date1, dbo.dindansp.date2,dbo.dindansp.date3, dbo.dindansp.date4, dbo.dindansp.name1,dbo.dindansp.name2,dbo.dindansp.name3, dbo.dindansp.name4, dbo.dindansp.hqdate,dbo.dindansp.hqtime, dbo.dindansp.urgent, dbo.dindansp.taketime, dbo.dindansp.no2,dbo.dindansp.status5, dbo.dindansp.status6, dbo.dindansp.date5,dbo.dindansp.date6, dbo.dindansp.name5, dbo.dindansp.name6,dbo.dindansp.growthtxname,dbo.dindansp.ps, dbo.dindansp.zs, dbo.dindansp.ren1,dbo.dindansp.ren2 from dbo.dindansp LEFT OUTER JOIN dbo.shangpin ON dbo.dindansp.spid = dbo.shangpin.spid
  2336. GO
  2337. /****** 对象: View [dbo].[dressview] 脚本日期: 01/19/2015 17:10:05 ******/
  2338. SET ANSI_NULLS ON
  2339. GO
  2340. SET QUOTED_IDENTIFIER ON
  2341. GO
  2342. create view [dbo].[dressview] as select dbo.dressinfo.no, dbo.dressinfo.name, dbo.dressinfo.count, dbo.dressinfo.salecount,dbo.dresshiredata.count AS count2, dbo.dresshiredata.isreturn,dbo.dresshiredata.hireorsale, dbo.dresshiredata.date1, dbo.dresshiredata.date2,dbo.dresshire.name AS clientname, dbo.dresshire.phone, dbo.dresshire.clerk,dbo.dresshire.date from dbo.dresshire INNER JOIN dbo.dresshiredata ON dbo.dresshire.id = dbo.dresshiredata.id RIGHT OUTER JOIN dbo.dressinfo ON dbo.dresshiredata.no = dbo.dressinfo.no
  2343. GO
  2344. /****** 对象: View [dbo].[memberview2] 脚本日期: 01/19/2015 17:10:05 ******/
  2345. SET ANSI_NULLS ON
  2346. GO
  2347. SET QUOTED_IDENTIFIER ON
  2348. GO
  2349. create view [dbo].[memberview2] as select dbo.membermanage.memberno, dbo.membermanage.name, dbo.membermanage.date,dbo.membermanage.money, dbo.membermanage.autoid,dbo.membermanage.sex, dbo.membermanage.phone, dbo.membermanage.qq,dbo.membermanage.addr, dbo.membermanage.occupation,dbo.membermanage.birthday, dbo.membermanage.pinyin, dbo.membermanage.balance,dbo.membermanage.sendmark1, dbo.membermanage.sendmark2,dbo.membermanage.psw, dbo.membermanage.cardtype,dbo.membermanage.check1,dbo.membermanage.discount, dbo.membercard2.card2no,dbo.membercard2.date AS card2date from dbo.membermanage LEFT OUTER JOIN dbo.membercard2 ON dbo.membermanage.memberno = dbo.membercard2.memberno
  2350. GO
  2351. /****** 对象: View [dbo].[singleincomemoneyview] 脚本日期: 01/19/2015 17:10:06 ******/
  2352. SET ANSI_NULLS ON
  2353. GO
  2354. SET QUOTED_IDENTIFIER ON
  2355. GO
  2356. create view [dbo].[singleincomemoneyview] as select dbo.singleincomemoney.*, dbo.singleincome.name, dbo.singleincome.sale2type,dbo.singleincome.renyuan3, dbo.singleincome.renyuan1 from dbo.singleincomemoney INNER JOIN dbo.singleincome ON dbo.singleincomemoney.id = dbo.singleincome.id
  2357. GO
  2358. /****** 对象: View [dbo].[memberview3] 脚本日期: 01/19/2015 17:10:06 ******/
  2359. SET ANSI_NULLS ON
  2360. GO
  2361. SET QUOTED_IDENTIFIER ON
  2362. GO
  2363. create view [dbo].[memberview3] as select dbo.membermanage.memberno, dbo.membermanage.name, dbo.membermanage.date,dbo.membermanage.money, dbo.membermanage.autoid,dbo.membermanage.sex, dbo.membermanage.phone, dbo.membermanage.qq,dbo.membermanage.addr, dbo.membermanage.occupation,dbo.membermanage.birthday, dbo.membermanage.pinyin, dbo.membermanage.balance,dbo.membermanage.sendmark1, dbo.membermanage.sendmark2,dbo.membermanage.psw, dbo.membermanage.cardtype,dbo.membermanage.check1, dbo.membermanage.discount, dbo.memberreg.card2no, dbo.memberreg.date2,dbo.memberreg.dindanid, dbo.memberreg.taoxi,dbo.memberreg.money AS card2money, dbo.memberreg.date as card2date, dbo.memberreg.type from dbo.membermanage LEFT OUTER JOIN dbo.memberreg ON dbo.membermanage.memberno = dbo.memberreg.memberno
  2364. GO
  2365. /****** 对象: View [dbo].[memberview] 脚本日期: 01/19/2015 17:10:05 ******/
  2366. SET ANSI_NULLS ON
  2367. GO
  2368. SET QUOTED_IDENTIFIER ON
  2369. GO
  2370. create view [dbo].[memberview] as select dbo.membermanage.name, dbo.memberreg3.memberno, dbo.memberreg3.money, dbo.memberreg3.date,dbo.memberreg3.clerk, dbo.memberreg3.id, dbo.memberreg3.financecheck, dbo.memberreg3.moneytype, dbo.memberreg3.time from dbo.memberreg3 INNER JOIN dbo.membermanage ON dbo.memberreg3.memberno = dbo.membermanage.memberno
  2371. GO
  2372. /****** 对象: View [dbo].[accountview] 脚本日期: 01/19/2015 17:10:03 ******/
  2373. SET ANSI_NULLS ON
  2374. GO
  2375. SET QUOTED_IDENTIFIER ON
  2376. GO
  2377. create view [dbo].[accountview] as select dbo.[user].account, dbo.[user].name, dbo.[user].psw, dbo.[user].rights, dbo.[user].rate1, dbo.[user].rate2,dbo.[user].base, dbo.[user].bz, dbo.[user].rights2,dbo.[user].discount, dbo.[user].discount2, dbo.renyuan.dimission, dbo.renyuan.[level],dbo.renyuan.bm from dbo.[user] LEFT OUTER JOIN dbo.renyuan ON dbo.[user].name = dbo.renyuan.name
  2378. GO
  2379. /****** 对象: View [dbo].[hospitalview] 脚本日期: 01/19/2015 17:10:05 ******/
  2380. SET ANSI_NULLS ON
  2381. GO
  2382. SET QUOTED_IDENTIFIER ON
  2383. GO
  2384. create view [dbo].[hospitalview] as select dbo.hospitalclient.id, dbo.hospitalclient.name1, dbo.hospitalclient.name2, dbo.hospitalclient.sex,'birthdaytype' = CASE hospitalclient.birthdaytype WHEN '1' THEN '预产期' ELSE '宝宝生日' END,dbo.hospitalclient.birthday,dbo.hospitalclient.[from], dbo.hospitalclient.phone1, dbo.hospitalclient.phone2, dbo.hospitalclient.qq, dbo.hospitalclient.inputdate, dbo.hospitalclient.inputer,dbo.hospitalclient.pinyin1, dbo.hospitalclient.pinyin2,dbo.hospitalclientcontactreg.businesstype, dbo.hospitalclientcontactreg.businessintention, dbo.hospitalclientcontactreg.bookingdate,dbo.hospitalclientcontactreg.desaddr, dbo.hospitalclientcontactreg.businessremark, dbo.hospitalclient.addr1, dbo.hospitalclient.addr2, dbo.hospitalclient.addr3,dbo.hospitalclient.type, dbo.hospitalclient.hospital, dbo.hospitalclient.clerk, dbo.hospitalclientcontactreg.alarmcheck,dbo.hospitalclientcontactreg.alarmdate from dbo.hospitalclient LEFT OUTER JOIN dbo.hospitalclientcontactreg ON dbo.hospitalclient.id = dbo.hospitalclientcontactreg.id
  2385. GO