20211130020237_sp-database.Designer.cs 130 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282
  1. // <auto-generated />
  2. using System;
  3. using Microsoft.EntityFrameworkCore;
  4. using Microsoft.EntityFrameworkCore.Infrastructure;
  5. using Microsoft.EntityFrameworkCore.Metadata;
  6. using Microsoft.EntityFrameworkCore.Migrations;
  7. using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
  8. using wispro.sp.api;
  9. namespace wispro.sp.api.Migrations
  10. {
  11. [DbContext(typeof(spDbContext))]
  12. [Migration("20211130020237_sp-database")]
  13. partial class spdatabase
  14. {
  15. protected override void BuildTargetModel(ModelBuilder modelBuilder)
  16. {
  17. #pragma warning disable 612, 618
  18. modelBuilder
  19. .HasAnnotation("Relational:MaxIdentifierLength", 128)
  20. .HasAnnotation("ProductVersion", "5.0.9")
  21. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  22. modelBuilder.Entity("wispro.sp.entity.AppealRecord", b =>
  23. {
  24. b.Property<int>("Id")
  25. .ValueGeneratedOnAdd()
  26. .HasColumnType("int")
  27. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  28. b.Property<DateTime>("CreateTime")
  29. .HasColumnType("datetime2");
  30. b.Property<int>("CreaterId")
  31. .HasColumnType("int");
  32. b.Property<int>("ItemId")
  33. .HasColumnType("int");
  34. b.Property<string>("Reason")
  35. .HasMaxLength(500)
  36. .HasColumnType("nvarchar(500)");
  37. b.Property<DateTime?>("ReviewTime")
  38. .HasColumnType("datetime2");
  39. b.Property<int?>("ReviewerId")
  40. .HasColumnType("int");
  41. b.Property<string>("ReviewerMemo")
  42. .HasColumnType("nvarchar(max)");
  43. b.Property<int>("State")
  44. .HasColumnType("int");
  45. b.Property<int>("TypeId")
  46. .HasColumnType("int");
  47. b.HasKey("Id");
  48. b.HasIndex("CreaterId");
  49. b.HasIndex("ItemId");
  50. b.HasIndex("ReviewerId");
  51. b.HasIndex("TypeId");
  52. b.ToTable("AppealRecord");
  53. });
  54. modelBuilder.Entity("wispro.sp.entity.AppealType", b =>
  55. {
  56. b.Property<int>("Id")
  57. .ValueGeneratedOnAdd()
  58. .HasColumnType("int")
  59. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  60. b.Property<string>("CanDoExpress")
  61. .HasMaxLength(500)
  62. .HasColumnType("nvarchar(500)");
  63. b.Property<string>("Name")
  64. .HasMaxLength(50)
  65. .HasColumnType("nvarchar(50)");
  66. b.Property<string>("ReviewerExpress")
  67. .HasMaxLength(500)
  68. .HasColumnType("nvarchar(500)");
  69. b.Property<int>("Type")
  70. .HasColumnType("int");
  71. b.HasKey("Id");
  72. b.ToTable("AppealType");
  73. b.HasData(
  74. new
  75. {
  76. Id = 1,
  77. CanDoExpress = "p.ItemStaffs.Count()>1",
  78. Name = "绩效点数分配比率",
  79. Type = 0
  80. },
  81. new
  82. {
  83. Id = 2,
  84. CanDoExpress = "p.DoItem==\"新申请\"",
  85. Name = "案件系数复核",
  86. ReviewerExpress = "p.Reviewer",
  87. Type = 0
  88. },
  89. new
  90. {
  91. Id = 3,
  92. CanDoExpress = "p.DoItem==\"新申请\"",
  93. Name = "处理事项系数复核",
  94. ReviewerExpress = "p.Reviewer",
  95. Type = 0
  96. },
  97. new
  98. {
  99. Id = 4,
  100. CanDoExpress = "",
  101. Name = "案件缺漏申诉",
  102. ReviewerExpress = "p.Reviewer",
  103. Type = 1
  104. },
  105. new
  106. {
  107. Id = 5,
  108. CanDoExpress = "p.isDanger()",
  109. Name = "案件严重超期说明",
  110. Type = 0
  111. },
  112. new
  113. {
  114. Id = 6,
  115. CanDoExpress = "p.DoItem==\"新申请\" || p.DoItem==\"翻译\"",
  116. Name = "按照翻译字数算绩效备注",
  117. Type = 0
  118. });
  119. });
  120. modelBuilder.Entity("wispro.sp.entity.AttachFile", b =>
  121. {
  122. b.Property<Guid>("Id")
  123. .ValueGeneratedOnAdd()
  124. .HasColumnType("uniqueidentifier");
  125. b.Property<int?>("AppealRecordId")
  126. .HasColumnType("int");
  127. b.Property<string>("Name")
  128. .HasMaxLength(200)
  129. .HasColumnType("nvarchar(200)");
  130. b.Property<string>("SavePath")
  131. .HasMaxLength(200)
  132. .HasColumnType("nvarchar(200)");
  133. b.Property<int?>("UploadUserId")
  134. .HasColumnType("int");
  135. b.HasKey("Id");
  136. b.HasIndex("AppealRecordId");
  137. b.HasIndex("UploadUserId");
  138. b.ToTable("AttachFile");
  139. });
  140. modelBuilder.Entity("wispro.sp.entity.BasePointRule", b =>
  141. {
  142. b.Property<int>("Id")
  143. .ValueGeneratedOnAdd()
  144. .HasColumnType("int")
  145. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  146. b.Property<string>("PointExpress")
  147. .HasMaxLength(100)
  148. .HasColumnType("nvarchar(100)");
  149. b.Property<int>("Priority")
  150. .HasColumnType("int");
  151. b.Property<string>("Rule")
  152. .HasMaxLength(1000)
  153. .HasColumnType("nvarchar(1000)");
  154. b.Property<string>("Type")
  155. .HasMaxLength(20)
  156. .HasColumnType("nvarchar(20)");
  157. b.HasKey("Id");
  158. b.ToTable("BasePointRule");
  159. b.HasData(
  160. new
  161. {
  162. Id = 1,
  163. PointExpress = "0",
  164. Priority = 136,
  165. Rule = "p.CaseNo.StartsWith(\"J\")",
  166. Type = "其它"
  167. },
  168. new
  169. {
  170. Id = 2,
  171. PointExpress = "0",
  172. Priority = 135,
  173. Rule = "p.AgentFeedbackMemo==\"已算绩效\"",
  174. Type = "其它"
  175. },
  176. new
  177. {
  178. Id = 3,
  179. PointExpress = "p.WordCount/1000*0.18",
  180. Priority = 134,
  181. Rule = "p.DoItem==\"翻译\" && p.AgentFeedbackMemo==\"中-德\"",
  182. Type = "其它"
  183. },
  184. new
  185. {
  186. Id = 4,
  187. PointExpress = "p.WordCount/1000*0.16",
  188. Priority = 133,
  189. Rule = "p.DoItem==\"翻译\" && p.AgentFeedbackMemo==\"中-英\"",
  190. Type = "其它"
  191. },
  192. new
  193. {
  194. Id = 5,
  195. PointExpress = "p.WordCount/1000*0.1",
  196. Priority = 132,
  197. Rule = "p.DoItem==\"翻译\" && p.AgentFeedbackMemo==\"英-中\"",
  198. Type = "其它"
  199. },
  200. new
  201. {
  202. Id = 6,
  203. PointExpress = "0.2",
  204. Priority = 131,
  205. Rule = "(p.DoItem==\"提交检索主题申明\" || p.DoItem==\"提交检索主题声明\") && p.CaseNo.StartsWith(\"PAEPO\")",
  206. Type = "其它"
  207. },
  208. new
  209. {
  210. Id = 7,
  211. PointExpress = "0",
  212. Priority = 130,
  213. Rule = "p.DoItem==\"请求优先审查\"",
  214. Type = "其它"
  215. },
  216. new
  217. {
  218. Id = 8,
  219. PointExpress = "0.2",
  220. Priority = 129,
  221. Rule = "p.ApplicationType==\"外观设计\" && p.DoItem==\"新申请\"",
  222. Type = "其它"
  223. },
  224. new
  225. {
  226. Id = 9,
  227. PointExpress = "0",
  228. Priority = 128,
  229. Rule = "p.DoItem==\"专利挖掘与布局\"",
  230. Type = "其它"
  231. },
  232. new
  233. {
  234. Id = 10,
  235. PointExpress = "0",
  236. Priority = 127,
  237. Rule = "p.DoItem==\"知识点总结\"",
  238. Type = "其它"
  239. },
  240. new
  241. {
  242. Id = 11,
  243. PointExpress = "0",
  244. Priority = 126,
  245. Rule = "p.DoItem==\"询问放弃或复审\"",
  246. Type = "其它"
  247. },
  248. new
  249. {
  250. Id = 12,
  251. PointExpress = "0",
  252. Priority = 125,
  253. Rule = "p.DoItem==\"申请时提交IDS\"",
  254. Type = "其它"
  255. },
  256. new
  257. {
  258. Id = 13,
  259. PointExpress = "0.1",
  260. Priority = 124,
  261. Rule = "p.DoItem==\"提交ids\" || p.DoItem==\"提交IDS\" ",
  262. Type = "其它"
  263. },
  264. new
  265. {
  266. Id = 14,
  267. PointExpress = "0",
  268. Priority = 123,
  269. Rule = "p.DoItem==\"技术确认\"",
  270. Type = "其它"
  271. },
  272. new
  273. {
  274. Id = 15,
  275. PointExpress = "0",
  276. Priority = 122,
  277. Rule = "p.DoItem==\"绘图\"",
  278. Type = "其它"
  279. },
  280. new
  281. {
  282. Id = 16,
  283. PointExpress = "0.2",
  284. Priority = 121,
  285. Rule = "p.DoItem==\"分案评估+分案\"",
  286. Type = "其它"
  287. },
  288. new
  289. {
  290. Id = 17,
  291. PointExpress = "0.1",
  292. Priority = 120,
  293. Rule = "p.DoItem==\"分案评估\"",
  294. Type = "其它"
  295. },
  296. new
  297. {
  298. Id = 18,
  299. PointExpress = "0.2",
  300. Priority = 119,
  301. Rule = "p.DoItem==\"电询\" && p.CaseNo.StartsWith(\"PAUS\")",
  302. Type = "其它"
  303. },
  304. new
  305. {
  306. Id = 19,
  307. PointExpress = "0.2",
  308. Priority = 118,
  309. Rule = "p.DoItem==\"电询\" && p.CaseNo.StartsWith(\"PAEPO\") ",
  310. Type = "其它"
  311. },
  312. new
  313. {
  314. Id = 20,
  315. PointExpress = "0",
  316. Priority = 117,
  317. Rule = "p.DoItem==\"电询\" && p.CaseNo.StartsWith(\"PACN\")",
  318. Type = "其它"
  319. },
  320. new
  321. {
  322. Id = 21,
  323. PointExpress = "0.1",
  324. Priority = 116,
  325. Rule = "p.DoItem==\"PPH\"",
  326. Type = "其它"
  327. },
  328. new
  329. {
  330. Id = 22,
  331. PointExpress = "0.2",
  332. Priority = 115,
  333. Rule = "p.DoItem==\"OA答辩校核\"",
  334. Type = "其它"
  335. },
  336. new
  337. {
  338. Id = 23,
  339. PointExpress = "0.2",
  340. Priority = 114,
  341. Rule = "p.DoItem==\"Election Action\"",
  342. Type = "其它"
  343. },
  344. new
  345. {
  346. Id = 24,
  347. PointExpress = "0.2",
  348. Priority = 113,
  349. Rule = "p.DoItem.Contains(\"补正\") && p.CaseNo.StartsWith(\"PAUS\")",
  350. Type = "其它"
  351. },
  352. new
  353. {
  354. Id = 25,
  355. PointExpress = "0.2",
  356. Priority = 112,
  357. Rule = "p.DoItem.Contains(\"补正\") && p.CaseNo.StartsWith(\"PAIN\")",
  358. Type = "其它"
  359. },
  360. new
  361. {
  362. Id = 26,
  363. PointExpress = "0.2",
  364. Priority = 111,
  365. Rule = "p.DoItem.Contains(\"补正\") && p.CaseNo.StartsWith(\"PAGB\")",
  366. Type = "其它"
  367. },
  368. new
  369. {
  370. Id = 27,
  371. PointExpress = "0.2",
  372. Priority = 110,
  373. Rule = "p.DoItem.Contains(\"补正\") && p.CaseNo.StartsWith(\"PAEPO\")",
  374. Type = "其它"
  375. },
  376. new
  377. {
  378. Id = 28,
  379. PointExpress = "0.2",
  380. Priority = 109,
  381. Rule = "p.DoItem.Contains(\"补正\") && p.CaseNo.StartsWith(\"PADE\")",
  382. Type = "其它"
  383. },
  384. new
  385. {
  386. Id = 29,
  387. PointExpress = "0",
  388. Priority = 108,
  389. Rule = "p.DoItem.Contains(\"补正\") && p.CaseNo.StartsWith(\"WOCN\")",
  390. Type = "其它"
  391. },
  392. new
  393. {
  394. Id = 30,
  395. PointExpress = "0",
  396. Priority = 107,
  397. Rule = "p.DoItem.Contains(\"补正\") && p.CaseNo.StartsWith(\"PCTCN\")",
  398. Type = "其它"
  399. },
  400. new
  401. {
  402. Id = 31,
  403. PointExpress = "0",
  404. Priority = 106,
  405. Rule = "p.DoItem.Contains(\"补正\") && p.CaseNo.StartsWith(\"PACN\")",
  406. Type = "其它"
  407. },
  408. new
  409. {
  410. Id = 32,
  411. PointExpress = "0.2",
  412. Priority = 105,
  413. Rule = "p.DoItem.Contains(\"补正\") && p.CaseNo.StartsWith(\"PAAU\")",
  414. Type = "其它"
  415. },
  416. new
  417. {
  418. Id = 33,
  419. PointExpress = "0.2",
  420. Priority = 104,
  421. Rule = "p.AgentFeedbackMemo==\"检索结案\"",
  422. Type = "其它"
  423. },
  424. new
  425. {
  426. Id = 34,
  427. PointExpress = "0",
  428. Priority = 103,
  429. Rule = "p.DoItem==\"内部检索\"",
  430. Type = "其它"
  431. },
  432. new
  433. {
  434. Id = 35,
  435. PointExpress = "0.2",
  436. Priority = 102,
  437. Rule = "p.DoItem==\"翻译校核\" && p.DoItemCoefficient==\"形式\" && p.AgentFeedbackMemo==\"外-内\"",
  438. Type = "其它"
  439. },
  440. new
  441. {
  442. Id = 36,
  443. PointExpress = "0.3",
  444. Priority = 101,
  445. Rule = "p.DoItem==\"翻译校核\" && p.DoItemCoefficient==\"形式\" && p.AgentFeedbackMemo==\"内-外\"",
  446. Type = "其它"
  447. },
  448. new
  449. {
  450. Id = 37,
  451. PointExpress = "0.5",
  452. Priority = 100,
  453. Rule = "p.DoItem==\"翻译校核\" && p.DoItemCoefficient==\"实质\" && p.AgentFeedbackMemo==\"外-内\"",
  454. Type = "其它"
  455. },
  456. new
  457. {
  458. Id = 38,
  459. PointExpress = "0.7",
  460. Priority = 99,
  461. Rule = "p.DoItem==\"翻译校核\" && p.DoItemCoefficient==\"实质\" && p.AgentFeedbackMemo==\"内-外\"",
  462. Type = "其它"
  463. },
  464. new
  465. {
  466. Id = 39,
  467. PointExpress = "0.2",
  468. Priority = 98,
  469. Rule = "p.DoItem==\"发明一次OA授权\" && p.ApplicationType==\"发明\"",
  470. Type = "其它"
  471. },
  472. new
  473. {
  474. Id = 40,
  475. PointExpress = "0",
  476. Priority = 97,
  477. Rule = "p.DoItem==\"处理审查意见\" && p.AgentFeedbackMemo==\"客户不进行答辩\"",
  478. Type = "OA"
  479. },
  480. new
  481. {
  482. Id = 41,
  483. PointExpress = "0",
  484. Priority = 96,
  485. Rule = "p.DoItem==\"处理审查意见\" && p.AgentFeedbackMemo==\"电询/补正\"",
  486. Type = "OA"
  487. },
  488. new
  489. {
  490. Id = 42,
  491. PointExpress = "0",
  492. Priority = 95,
  493. Rule = "p.DoItem==\"处理审查意见\" && p.ApplicationType==\"实用新型\" && p.AgentFeedbackMemo==\"不请款\"",
  494. Type = "OA"
  495. },
  496. new
  497. {
  498. Id = 43,
  499. PointExpress = "0",
  500. Priority = 94,
  501. Rule = "p.DoItem==\"意见陈述\" && p.ApplicationType==\"实用新型\" && p.AgentFeedbackMemo==\"不请款\"",
  502. Type = "OA"
  503. },
  504. new
  505. {
  506. Id = 44,
  507. PointExpress = "0",
  508. Priority = 93,
  509. Rule = "p.DoItem==\"请求复审\" && p.ApplicationType==\"实用新型\" && p.AgentFeedbackMemo==\"不请款\"",
  510. Type = "OA"
  511. },
  512. new
  513. {
  514. Id = 45,
  515. PointExpress = "0.14",
  516. Priority = 92,
  517. Rule = "p.DoItem==\"意见陈述\" && p.ApplicationType==\"实用新型\" && p.AgentFeedbackMemo==\"请款\"",
  518. Type = "OA"
  519. },
  520. new
  521. {
  522. Id = 46,
  523. PointExpress = "0.35",
  524. Priority = 91,
  525. Rule = "p.DoItem==\"请求复审\" && p.ApplicationType==\"实用新型\" && p.AgentFeedbackMemo==\"请款\"",
  526. Type = "OA"
  527. },
  528. new
  529. {
  530. Id = 47,
  531. PointExpress = "0.21",
  532. Priority = 90,
  533. Rule = "p.ApplicationType==\"实用新型\" && p.DoItemCoefficient==\"非实质\" && p.CaseStage==\"一通\" && p.AgentFeedbackMemo==\"请款\"",
  534. Type = "OA"
  535. },
  536. new
  537. {
  538. Id = 48,
  539. PointExpress = "0.35",
  540. Priority = 89,
  541. Rule = "p.ApplicationType==\"实用新型\" && p.DoItemCoefficient==\"实质\" && p.CaseStage==\"一通\" && p.AgentFeedbackMemo==\"请款\"",
  542. Type = "OA"
  543. },
  544. new
  545. {
  546. Id = 49,
  547. PointExpress = "0.14",
  548. Priority = 88,
  549. Rule = "p.ApplicationType==\"实用新型\" && p.DoItemCoefficient==\"形式\" && p.CaseStage==\"一通\" && p.AgentFeedbackMemo==\"请款\"",
  550. Type = "OA"
  551. },
  552. new
  553. {
  554. Id = 50,
  555. PointExpress = "0.14",
  556. Priority = 87,
  557. Rule = "p.ApplicationType==\"实用新型\" && p.DoItemCoefficient==\"实质\" && p.CaseStage==\"二通\" && p.AgentFeedbackMemo==\"请款\"",
  558. Type = "OA"
  559. },
  560. new
  561. {
  562. Id = 51,
  563. PointExpress = "0",
  564. Priority = 86,
  565. Rule = "p.ApplicationType==\"实用新型\" && p.DoItemCoefficient==\"实质\" && (p.CaseStage==\"三通\" || p.CaseStage==\"四通\" || p.CaseStage==\"五通\" || p.CaseStage==\"六通\" || p.CaseStage==\"七通\" || p.CaseStage==\"八通\") ",
  566. Type = "OA"
  567. },
  568. new
  569. {
  570. Id = 52,
  571. PointExpress = "0.2",
  572. Priority = 85,
  573. Rule = "p.DoItem==\"处理审查意见\" && p.ApplicationType==\"发明\" && p.DoItemCoefficient==\"形式\" && p.AgentFeedbackMemo==\"外所/他人首次转入OA\"",
  574. Type = "OA"
  575. },
  576. new
  577. {
  578. Id = 53,
  579. PointExpress = "0.5",
  580. Priority = 84,
  581. Rule = "p.DoItem==\"处理审查意见\" && p.ApplicationType==\"发明\" && p.DoItemCoefficient==\"实质\" && p.AgentFeedbackMemo==\"外所/他人首次转入OA\"",
  582. Type = "OA"
  583. },
  584. new
  585. {
  586. Id = 54,
  587. PointExpress = "0.3",
  588. Priority = 83,
  589. Rule = "p.DoItem==\"处理审查意见\" && p.ApplicationType==\"发明\" && p.DoItemCoefficient==\"非实质\" && p.AgentFeedbackMemo==\"外所/他人首次转入OA\"",
  590. Type = "OA"
  591. },
  592. new
  593. {
  594. Id = 55,
  595. PointExpress = "0",
  596. Priority = 82,
  597. Rule = "p.DoItem==\"处理审查意见\" && p.ApplicationType==\"发明\" && p.CaseNo.StartsWith(\"PCTCN\") && (p.CaseStage==\"三通\" || p.CaseStage==\"四通\" || p.CaseStage==\"五通\")",
  598. Type = "OA"
  599. },
  600. new
  601. {
  602. Id = 56,
  603. PointExpress = "0",
  604. Priority = 81,
  605. Rule = "p.DoItem==\"处理审查意见\" && p.ApplicationType==\"发明\" && p.CaseNo.StartsWith(\"PACN\") && (p.CaseStage==\"三通\" || p.CaseStage==\"四通\" || p.CaseStage==\"五通\")",
  606. Type = "OA"
  607. },
  608. new
  609. {
  610. Id = 57,
  611. PointExpress = "0.2",
  612. Priority = 80,
  613. Rule = "p.DoItem==\"处理审查意见\" && p.ApplicationType==\"发明\" && p.CaseNo.StartsWith(\"PCTCN\") && p.CaseStage==\"二通\"",
  614. Type = "OA"
  615. },
  616. new
  617. {
  618. Id = 58,
  619. PointExpress = "0.2",
  620. Priority = 79,
  621. Rule = "p.DoItem==\"处理审查意见\" && p.ApplicationType==\"发明\" && p.CaseNo.StartsWith(\"PACN\") && p.CaseStage==\"二通\"",
  622. Type = "OA"
  623. },
  624. new
  625. {
  626. Id = 59,
  627. PointExpress = "0.2",
  628. Priority = 78,
  629. Rule = "p.DoItem==\"处理审查意见\" && p.ApplicationType==\"发明\" && p.DoItemCoefficient==\"形式\" && p.CaseNo.StartsWith(\"PCTCN\") && p.CaseStage==\"一通\"",
  630. Type = "OA"
  631. },
  632. new
  633. {
  634. Id = 60,
  635. PointExpress = "0.5",
  636. Priority = 77,
  637. Rule = "p.DoItem==\"处理审查意见\" && p.ApplicationType==\"发明\" && p.DoItemCoefficient==\"实质\" && p.CaseNo.StartsWith(\"PCTCN\") && p.CaseStage==\"一通\"",
  638. Type = "OA"
  639. },
  640. new
  641. {
  642. Id = 61,
  643. PointExpress = "0.3",
  644. Priority = 76,
  645. Rule = "p.DoItem==\"处理审查意见\" && p.ApplicationType==\"发明\" && p.DoItemCoefficient==\"非实质\" && p.CaseNo.StartsWith(\"PCTCN\") && p.CaseStage==\"一通\"",
  646. Type = "OA"
  647. },
  648. new
  649. {
  650. Id = 62,
  651. PointExpress = "0.2",
  652. Priority = 75,
  653. Rule = "p.DoItem==\"处理审查意见\" && p.ApplicationType==\"发明\" && p.DoItemCoefficient==\"形式\" && p.CaseNo.StartsWith(\"PACN\") && p.CaseStage==\"一通\"",
  654. Type = "OA"
  655. },
  656. new
  657. {
  658. Id = 63,
  659. PointExpress = "0.5",
  660. Priority = 74,
  661. Rule = "p.DoItem==\"处理审查意见\" && p.ApplicationType==\"发明\" && p.DoItemCoefficient==\"实质\" && p.CaseNo.StartsWith(\"PACN\") && p.CaseStage==\"一通\"",
  662. Type = "OA"
  663. },
  664. new
  665. {
  666. Id = 64,
  667. PointExpress = "0.3",
  668. Priority = 73,
  669. Rule = "p.DoItem==\"处理审查意见\" && p.ApplicationType==\"发明\" && p.DoItemCoefficient==\"非实质\" && p.CaseNo.StartsWith(\"PACN\") && p.CaseStage==\"一通\"",
  670. Type = "OA"
  671. },
  672. new
  673. {
  674. Id = 65,
  675. PointExpress = "0.2",
  676. Priority = 72,
  677. Rule = "p.DoItem==\"意见陈述\" && p.ApplicationType==\"发明\" && p.CaseNo.StartsWith(\"PACN\") && p.CaseStage==\"复审\"",
  678. Type = "OA"
  679. },
  680. new
  681. {
  682. Id = 66,
  683. PointExpress = "0.5",
  684. Priority = 71,
  685. Rule = "p.DoItem==\"请求复审\" && p.ApplicationType==\"发明\"",
  686. Type = "OA"
  687. },
  688. new
  689. {
  690. Id = 67,
  691. PointExpress = "0.1",
  692. Priority = 70,
  693. Rule = "p.AgentFeedbackMemo==\"涉外OA不答辩,发报导函结案\"",
  694. Type = "其它"
  695. },
  696. new
  697. {
  698. Id = 68,
  699. PointExpress = "0.8",
  700. Priority = 69,
  701. Rule = "p.DoItem==\"处理审查意见\" && p.DoItemCoefficient==\"实质\" && p.AgentFeedbackMemo==\"客户未提供答辩点,撰写英文报导函\"",
  702. Type = "OA"
  703. },
  704. new
  705. {
  706. Id = 69,
  707. PointExpress = "0.5",
  708. Priority = 68,
  709. Rule = "p.DoItem==\"处理审查意见\" && p.DoItemCoefficient==\"实质\" && p.AgentFeedbackMemo==\"客户提供答辩点,撰写英文报导函\"",
  710. Type = "OA"
  711. },
  712. new
  713. {
  714. Id = 70,
  715. PointExpress = "0.2",
  716. Priority = 67,
  717. Rule = "p.DoItem==\"申復\" && p.DoItemCoefficient==\"形式\" && p.CaseNo.StartsWith(\"PATW\")",
  718. Type = "OA"
  719. },
  720. new
  721. {
  722. Id = 71,
  723. PointExpress = "0.5",
  724. Priority = 66,
  725. Rule = "p.DoItem==\"申復\" && p.DoItemCoefficient==\"实质\" && p.CaseNo.StartsWith(\"PATW\")",
  726. Type = "OA"
  727. },
  728. new
  729. {
  730. Id = 72,
  731. PointExpress = "0.2",
  732. Priority = 65,
  733. Rule = "p.DoItem==\"处理审查意见\" && p.DoItemCoefficient==\"形式\" && p.CaseNo.StartsWith(\"PAIN\")",
  734. Type = "OA"
  735. },
  736. new
  737. {
  738. Id = 73,
  739. PointExpress = "0.2",
  740. Priority = 64,
  741. Rule = "p.DoItem==\"处理审查意见\" && p.DoItemCoefficient==\"形式\" && p.CaseNo.StartsWith(\"PAGB\")",
  742. Type = "OA"
  743. },
  744. new
  745. {
  746. Id = 74,
  747. PointExpress = "0.2",
  748. Priority = 63,
  749. Rule = "p.DoItem==\"处理审查意见\" && p.DoItemCoefficient==\"形式\" && p.CaseNo.StartsWith(\"PAEPO\")",
  750. Type = "OA"
  751. },
  752. new
  753. {
  754. Id = 75,
  755. PointExpress = "0.3",
  756. Priority = 62,
  757. Rule = "p.DoItem==\"处理审查意见\" && p.DoItemCoefficient==\"形式\" && p.CaseNo.StartsWith(\"PADE\")",
  758. Type = "OA"
  759. },
  760. new
  761. {
  762. Id = 76,
  763. PointExpress = "0.2",
  764. Priority = 61,
  765. Rule = "p.DoItem==\"处理审查意见\" && p.DoItemCoefficient==\"形式\" && p.CaseNo.StartsWith(\"PAAU\")",
  766. Type = "OA"
  767. },
  768. new
  769. {
  770. Id = 77,
  771. PointExpress = "1.5",
  772. Priority = 60,
  773. Rule = "p.DoItem==\"处理审查意见\" && p.DoItemCoefficient==\"实质\" && p.CaseNo.StartsWith(\"PAIN\")",
  774. Type = "OA"
  775. },
  776. new
  777. {
  778. Id = 78,
  779. PointExpress = "1.5",
  780. Priority = 59,
  781. Rule = "p.DoItem==\"处理审查意见\" && p.DoItemCoefficient==\"实质\" && p.CaseNo.StartsWith(\"PAGB\")",
  782. Type = "OA"
  783. },
  784. new
  785. {
  786. Id = 79,
  787. PointExpress = "1.5",
  788. Priority = 58,
  789. Rule = "p.DoItem==\"处理审查意见\" && p.DoItemCoefficient==\"实质\" && p.CaseNo.StartsWith(\"PAEPO\")",
  790. Type = "OA"
  791. },
  792. new
  793. {
  794. Id = 80,
  795. PointExpress = "1.6",
  796. Priority = 57,
  797. Rule = "p.DoItem==\"处理审查意见\" && p.DoItemCoefficient==\"实质\" && p.CaseNo.StartsWith(\"PADE\")",
  798. Type = "OA"
  799. },
  800. new
  801. {
  802. Id = 81,
  803. PointExpress = "1.5",
  804. Priority = 56,
  805. Rule = "p.DoItem==\"处理审查意见\" && p.DoItemCoefficient==\"实质\" && p.CaseNo.StartsWith(\"PAAU\")",
  806. Type = "OA"
  807. },
  808. new
  809. {
  810. Id = 82,
  811. PointExpress = "0.2",
  812. Priority = 55,
  813. Rule = "p.DoItem==\"处理审查意见\" && p.DoItemCoefficient==\"形式\" && p.CaseNo.StartsWith(\"PAUS\")",
  814. Type = "OA"
  815. },
  816. new
  817. {
  818. Id = 83,
  819. PointExpress = "1.5",
  820. Priority = 54,
  821. Rule = "p.DoItem==\"处理审查意见\" && p.DoItemCoefficient==\"实质\" && p.CaseNo.StartsWith(\"PAUS\")",
  822. Type = "OA"
  823. },
  824. new
  825. {
  826. Id = 84,
  827. PointExpress = "1.5",
  828. Priority = 53,
  829. Rule = "p.DoItem==\"口审评估\" && p.DoItemCoefficient==\"实质\"",
  830. Type = "OA"
  831. },
  832. new
  833. {
  834. Id = 85,
  835. PointExpress = "0.2",
  836. Priority = 52,
  837. Rule = "p.DoItem==\"口审评估\" && p.DoItemCoefficient==\"形式\"",
  838. Type = "OA"
  839. },
  840. new
  841. {
  842. Id = 86,
  843. PointExpress = "0.2",
  844. Priority = 51,
  845. Rule = "p.DoItem==\"欧洲案答辩\" && p.DoItemCoefficient==\"形式\"",
  846. Type = "OA"
  847. },
  848. new
  849. {
  850. Id = 87,
  851. PointExpress = "1.5",
  852. Priority = 50,
  853. Rule = "p.DoItem==\"欧洲案答辩\" && p.DoItemCoefficient==\"实质\"",
  854. Type = "OA"
  855. },
  856. new
  857. {
  858. Id = 88,
  859. PointExpress = "0.2",
  860. Priority = 49,
  861. Rule = "p.DoItem==\"RCE\" && p.DoItemCoefficient==\"形式\"",
  862. Type = "OA"
  863. },
  864. new
  865. {
  866. Id = 89,
  867. PointExpress = "1.5",
  868. Priority = 48,
  869. Rule = "p.DoItem==\"RCE\" && p.DoItemCoefficient==\"实质\"",
  870. Type = "OA"
  871. },
  872. new
  873. {
  874. Id = 90,
  875. PointExpress = "0.2",
  876. Priority = 47,
  877. Rule = "p.DoItem==\"Non Final Action\" && p.DoItemCoefficient==\"形式\"",
  878. Type = "OA"
  879. },
  880. new
  881. {
  882. Id = 91,
  883. PointExpress = "1.5",
  884. Priority = 46,
  885. Rule = "p.DoItem==\"Non Final Action\" && p.DoItemCoefficient==\"实质\"",
  886. Type = "OA"
  887. },
  888. new
  889. {
  890. Id = 92,
  891. PointExpress = "0.1",
  892. Priority = 45,
  893. Rule = "p.DoItem==\"form 3-8(2)\" || p.DoItem==\"Form 3-8(2)\" || p.DoItem==\"Form 3-8(2)\"",
  894. Type = "OA"
  895. },
  896. new
  897. {
  898. Id = 93,
  899. PointExpress = "0.1",
  900. Priority = 44,
  901. Rule = "p.DoItem==\"form 3\"",
  902. Type = "OA"
  903. },
  904. new
  905. {
  906. Id = 94,
  907. PointExpress = "0.2",
  908. Priority = 43,
  909. Rule = "p.DoItem==\"Final Action\" && p.DoItemCoefficient==\"形式\"",
  910. Type = "OA"
  911. },
  912. new
  913. {
  914. Id = 95,
  915. PointExpress = "1.5",
  916. Priority = 42,
  917. Rule = "p.DoItem==\"Final Action\" && p.DoItemCoefficient==\"实质\"",
  918. Type = "OA"
  919. },
  920. new
  921. {
  922. Id = 96,
  923. PointExpress = "0.2",
  924. Priority = 41,
  925. Rule = "p.DoItem==\"Advisory Action\" && p.DoItemCoefficient==\"形式\"",
  926. Type = "OA"
  927. },
  928. new
  929. {
  930. Id = 97,
  931. PointExpress = "1.5",
  932. Priority = 40,
  933. Rule = "p.DoItem==\"Advisory Action\" && p.DoItemCoefficient==\"实质\"",
  934. Type = "OA"
  935. },
  936. new
  937. {
  938. Id = 98,
  939. PointExpress = "p.WordCount/1000*0.18",
  940. Priority = 39,
  941. Rule = "p.DoItem==\"新申请\" && p.AgentFeedbackMemo==\"中-德\" && p.WordCount !=null",
  942. Type = "其它"
  943. },
  944. new
  945. {
  946. Id = 99,
  947. PointExpress = "p.WordCount/1000*0.16",
  948. Priority = 38,
  949. Rule = "p.DoItem==\"新申请\" && p.AgentFeedbackMemo==\"中-英\" && p.WordCount !=null",
  950. Type = "其它"
  951. },
  952. new
  953. {
  954. Id = 100,
  955. PointExpress = "p.WordCount/1000*0.1",
  956. Priority = 37,
  957. Rule = "p.DoItem==\"新申请\" && p.AgentFeedbackMemo==\"英-中\" && p.WordCount !=null",
  958. Type = "其它"
  959. },
  960. new
  961. {
  962. Id = 101,
  963. PointExpress = "0",
  964. Priority = 36,
  965. Rule = "(p.ApplicationType==\"实用新型\" || p.ApplicationType==\"发明\") && p.CaseNo.StartsWith(\"PACN\") && p.AgentFeedbackMemo==\"客户不进行答辩\"",
  966. Type = "其它"
  967. },
  968. new
  969. {
  970. Id = 102,
  971. PointExpress = "1.26",
  972. Priority = 35,
  973. Rule = "p.CaseNo.StartsWith(\"PAUS\") && p.AgentFeedbackMemo==\"发文后客户原因取消申请,系统结案\"",
  974. Type = "新申请"
  975. },
  976. new
  977. {
  978. Id = 103,
  979. PointExpress = "1.33",
  980. Priority = 34,
  981. Rule = "p.CaseNo.StartsWith(\"PADE\") && p.AgentFeedbackMemo==\"发文后客户原因取消申请,系统结案\"",
  982. Type = "新申请"
  983. },
  984. new
  985. {
  986. Id = 104,
  987. PointExpress = "0.7",
  988. Priority = 33,
  989. Rule = "p.ApplicationType==\"发明\" && p.CaseNo.StartsWith(\"PACN\") && p.AgentFeedbackMemo==\"发文后客户取消申请\"",
  990. Type = "新申请"
  991. },
  992. new
  993. {
  994. Id = 105,
  995. PointExpress = "0.49",
  996. Priority = 32,
  997. Rule = "p.ApplicationType==\"实用新型\" && p.CaseNo.StartsWith(\"PACN\") && p.AgentFeedbackMemo==\"发文后客户取消申请\"",
  998. Type = "新申请"
  999. },
  1000. new
  1001. {
  1002. Id = 106,
  1003. PointExpress = "0",
  1004. Priority = 31,
  1005. Rule = "p.AgentFeedbackMemo==\"撰写中客户取消申请\"",
  1006. Type = "其它"
  1007. },
  1008. new
  1009. {
  1010. Id = 107,
  1011. PointExpress = "1.5",
  1012. Priority = 30,
  1013. Rule = "p.DoItem==\"新申请\" && p.ApplicationType==\"发明\" && p.CaseNo.StartsWith(\"PCTCN\") && p.AgentFeedbackMemo==\"外到内首次申请\"",
  1014. Type = "新申请"
  1015. },
  1016. new
  1017. {
  1018. Id = 108,
  1019. PointExpress = "0.1",
  1020. Priority = 29,
  1021. Rule = "p.DoItem==\"新申请\" && p.AgentFeedbackMemo==\"转格式\"",
  1022. Type = "其它"
  1023. },
  1024. new
  1025. {
  1026. Id = 109,
  1027. PointExpress = "1.5",
  1028. Priority = 28,
  1029. Rule = "p.DoItem==\"新申请\" && p.AgentFeedbackMemo==\"外-内首次申请\"",
  1030. Type = "新申请"
  1031. },
  1032. new
  1033. {
  1034. Id = 110,
  1035. PointExpress = "1",
  1036. Priority = 27,
  1037. Rule = "p.DoItem==\"新申请\" && p.AgentFeedbackMemo==\"首次中文案\"",
  1038. Type = "新申请"
  1039. },
  1040. new
  1041. {
  1042. Id = 111,
  1043. PointExpress = "0.7",
  1044. Priority = 26,
  1045. Rule = "p.DoItem==\"新申请\" && p.AgentFeedbackMemo==\"涉外实质改权\"",
  1046. Type = "新申请"
  1047. },
  1048. new
  1049. {
  1050. Id = 112,
  1051. PointExpress = "0.5",
  1052. Priority = 25,
  1053. Rule = "p.DoItem==\"新申请\" && p.AgentFeedbackMemo==\"改权+改说明书\"",
  1054. Type = "其它"
  1055. },
  1056. new
  1057. {
  1058. Id = 113,
  1059. PointExpress = "0.3",
  1060. Priority = 24,
  1061. Rule = "p.DoItem==\"新申请\" && p.AgentFeedbackMemo==\"改权\"",
  1062. Type = "其它"
  1063. },
  1064. new
  1065. {
  1066. Id = 114,
  1067. PointExpress = "1.8",
  1068. Priority = 23,
  1069. Rule = "p.DoItem==\"新申请\" && p.AgentFeedbackMemo==\"PCT首次英文案\"",
  1070. Type = "新申请"
  1071. },
  1072. new
  1073. {
  1074. Id = 115,
  1075. PointExpress = "0.2",
  1076. Priority = 22,
  1077. Rule = "p.AgentFeedbackMemo==\"我方转格式、复核\"",
  1078. Type = "其它"
  1079. },
  1080. new
  1081. {
  1082. Id = 116,
  1083. PointExpress = "0",
  1084. Priority = 21,
  1085. Rule = "p.AgentFeedbackMemo==\"我方代交\"",
  1086. Type = "其它"
  1087. },
  1088. new
  1089. {
  1090. Id = 117,
  1091. PointExpress = "0.5",
  1092. Priority = 20,
  1093. Rule = "p.CaseNo.StartsWith(\"PAUS\") && (p.CaseNo.EndsWith(\"-同套\") || p.CaseNo.EndsWith(\"CA\") || p.CaseNo.EndsWith(\"CIP\") || p.CaseNo.EndsWith(\"分案\")) ",
  1094. Type = "其它"
  1095. },
  1096. new
  1097. {
  1098. Id = 118,
  1099. PointExpress = "0.2",
  1100. Priority = 19,
  1101. Rule = "(p.CaseNo.StartsWith(\"PAMY \") || p.CaseNo.StartsWith(\"PADE\") || p.CaseNo.StartsWith(\"PAGB\") || p.CaseNo.StartsWith(\"PAIN\") || p.CaseNo.StartsWith(\"PAUS\") || p.CaseNo.StartsWith(\"PAEPO\") ) && p.AgentFeedbackMemo==\"同套\"",
  1102. Type = "其它"
  1103. },
  1104. new
  1105. {
  1106. Id = 119,
  1107. PointExpress = "0.3",
  1108. Priority = 18,
  1109. Rule = "p.DoItem==\"新申请\" && p.ApplicationType==\"发明\" && p.CaseNo.StartsWith(\"PACN\") && p.CaseNo.EndsWith(\"-分案\")",
  1110. Type = "其它"
  1111. },
  1112. new
  1113. {
  1114. Id = 120,
  1115. PointExpress = "1.8",
  1116. Priority = 17,
  1117. Rule = "p.DoItem==\"新申请\" && p.AgentFeedbackMemo==\"欧洲案首次\" && p.ApplicationType==\"发明\" && p.CaseNo.StartsWith(\"PAEPO\")",
  1118. Type = "新申请"
  1119. },
  1120. new
  1121. {
  1122. Id = 121,
  1123. PointExpress = "0.2",
  1124. Priority = 16,
  1125. Rule = "p.DoItem==\"新申请\" && p.CaseNo.StartsWith(\"PATW\") && p.AgentFeedbackMemo==\"大陆案转台湾案\"",
  1126. Type = "其它"
  1127. },
  1128. new
  1129. {
  1130. Id = 122,
  1131. PointExpress = "1",
  1132. Priority = 15,
  1133. Rule = "p.DoItem==\"新申请\" && p.ApplicationType==\"发明\" && p.CaseNo.StartsWith(\"PACN\") && p.AgentFeedbackMemo==\"同套大陆+台湾\"",
  1134. Type = "新申请"
  1135. },
  1136. new
  1137. {
  1138. Id = 123,
  1139. PointExpress = "0.2",
  1140. Priority = 14,
  1141. Rule = "p.DoItem==\"新申请\" && p.CaseNo.StartsWith(\"PACN\") && p.AgentFeedbackMemo==\"台湾案转大陆案\"",
  1142. Type = "其它"
  1143. },
  1144. new
  1145. {
  1146. Id = 124,
  1147. PointExpress = "0.1",
  1148. Priority = 13,
  1149. Rule = "p.DoItem==\"新申请\" && p.ApplicationType==\"实用新型\" && p.CaseNo.StartsWith(\"PATW\") && p.AgentFeedbackMemo==\"同套大陆+台湾\"",
  1150. Type = "其它"
  1151. },
  1152. new
  1153. {
  1154. Id = 125,
  1155. PointExpress = "0.7",
  1156. Priority = 12,
  1157. Rule = "p.DoItem==\"新申请\" && p.ApplicationType==\"实用新型\" && p.CaseNo.StartsWith(\"PACN\") && p.AgentFeedbackMemo==\"同套大陆+台湾\"",
  1158. Type = "新申请"
  1159. },
  1160. new
  1161. {
  1162. Id = 126,
  1163. PointExpress = "0.1",
  1164. Priority = 11,
  1165. Rule = "p.DoItem==\"新申请\" && p.ApplicationType==\"发明\" && p.CaseNo.StartsWith(\"PATW\") && p.AgentFeedbackMemo==\"同套大陆+台湾\"",
  1166. Type = "其它"
  1167. },
  1168. new
  1169. {
  1170. Id = 127,
  1171. PointExpress = "1.7",
  1172. Priority = 10,
  1173. Rule = "p.DoItem==\"新申请\" && p.ApplicationType==\"发明\" && p.CaseNo.StartsWith(\"PAUS\") && (p.Customer!=null && p.Customer.Name.Contains(\"OPPO\"))",
  1174. Type = "新申请"
  1175. },
  1176. new
  1177. {
  1178. Id = 128,
  1179. PointExpress = "1.8",
  1180. Priority = 9,
  1181. Rule = "p.DoItem==\"新申请\" && p.ApplicationType==\"发明\" && p.CaseNo.StartsWith(\"PAUS\")",
  1182. Type = "新申请"
  1183. },
  1184. new
  1185. {
  1186. Id = 129,
  1187. PointExpress = "1.8",
  1188. Priority = 8,
  1189. Rule = "p.DoItem==\"新申请\" && p.ApplicationType==\"发明\" && p.CaseNo.StartsWith(\"PAGB\")",
  1190. Type = "新申请"
  1191. },
  1192. new
  1193. {
  1194. Id = 130,
  1195. PointExpress = "0.2",
  1196. Priority = 7,
  1197. Rule = "p.DoItem==\"新申请\" && p.ApplicationType==\"发明\" && p.CaseNo.StartsWith(\"PAEPO\")",
  1198. Type = "其它"
  1199. },
  1200. new
  1201. {
  1202. Id = 131,
  1203. PointExpress = "1.9",
  1204. Priority = 6,
  1205. Rule = "p.DoItem==\"新申请\" && p.CaseNo.StartsWith(\"PADE\")",
  1206. Type = "新申请"
  1207. },
  1208. new
  1209. {
  1210. Id = 132,
  1211. PointExpress = "0.1",
  1212. Priority = 5,
  1213. Rule = "p.DoItem==\"新申请\" && p.ApplicationType==\"实用新型\" && p.CaseNo.StartsWith(\"PACN\") && p.CaseNo.EndsWith(\"-TS\")",
  1214. Type = "其它"
  1215. },
  1216. new
  1217. {
  1218. Id = 133,
  1219. PointExpress = "1",
  1220. Priority = 4,
  1221. Rule = "p.DoItem==\"新申请\" && p.ApplicationType==\"实用新型\" && p.CaseNo.StartsWith(\"PACN\") && (p.Customer!=null && p.Customer.Name.Contains(\"OPPO\"))",
  1222. Type = "新申请"
  1223. },
  1224. new
  1225. {
  1226. Id = 134,
  1227. PointExpress = "0.7",
  1228. Priority = 3,
  1229. Rule = "p.DoItem==\"新申请\" && p.ApplicationType==\"实用新型\" && p.CaseNo.StartsWith(\"PACN\")",
  1230. Type = "新申请"
  1231. },
  1232. new
  1233. {
  1234. Id = 135,
  1235. PointExpress = "1",
  1236. Priority = 2,
  1237. Rule = "p.DoItem==\"新申请\" && p.ApplicationType==\"发明\" && p.CaseNo.StartsWith(\"PACN\") && p.CaseNo.EndsWith(\"-TS\")",
  1238. Type = "新申请"
  1239. },
  1240. new
  1241. {
  1242. Id = 136,
  1243. PointExpress = "1",
  1244. Priority = 1,
  1245. Rule = "p.DoItem==\"新申请\" && p.ApplicationType==\"发明\" && p.CaseNo.StartsWith(\"PACN\")",
  1246. Type = "新申请"
  1247. },
  1248. new
  1249. {
  1250. Id = 137,
  1251. PointExpress = "0",
  1252. Priority = 250,
  1253. Rule = "p.CaseNo.StartsWith(\"S\")",
  1254. Type = "专案"
  1255. });
  1256. });
  1257. modelBuilder.Entity("wispro.sp.entity.CalMonth", b =>
  1258. {
  1259. b.Property<int>("Id")
  1260. .ValueGeneratedOnAdd()
  1261. .HasColumnType("int")
  1262. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  1263. b.Property<int>("Month")
  1264. .HasColumnType("int")
  1265. .HasColumnName("month");
  1266. b.Property<int>("Status")
  1267. .HasColumnType("int")
  1268. .HasColumnName("status");
  1269. b.Property<int>("Year")
  1270. .HasColumnType("int")
  1271. .HasColumnName("year");
  1272. b.HasKey("Id");
  1273. b.ToTable("CalMonth");
  1274. });
  1275. modelBuilder.Entity("wispro.sp.entity.CaseCeoffcient", b =>
  1276. {
  1277. b.Property<string>("Ceoffcient")
  1278. .HasColumnType("nvarchar(450)");
  1279. b.Property<double>("Value")
  1280. .HasColumnType("float");
  1281. b.HasKey("Ceoffcient");
  1282. b.ToTable("CaseCeofficient");
  1283. b.HasData(
  1284. new
  1285. {
  1286. Ceoffcient = "S",
  1287. Value = 2.5
  1288. },
  1289. new
  1290. {
  1291. Ceoffcient = "A",
  1292. Value = 1.5
  1293. },
  1294. new
  1295. {
  1296. Ceoffcient = "B",
  1297. Value = 1.0
  1298. },
  1299. new
  1300. {
  1301. Ceoffcient = "C",
  1302. Value = 0.69999999999999996
  1303. },
  1304. new
  1305. {
  1306. Ceoffcient = "D",
  1307. Value = 0.40000000000000002
  1308. });
  1309. });
  1310. modelBuilder.Entity("wispro.sp.entity.Customer", b =>
  1311. {
  1312. b.Property<int>("Id")
  1313. .ValueGeneratedOnAdd()
  1314. .HasColumnType("int")
  1315. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  1316. b.Property<string>("Address")
  1317. .HasMaxLength(500)
  1318. .HasColumnType("nvarchar(500)");
  1319. b.Property<string>("ContactMan")
  1320. .HasMaxLength(50)
  1321. .HasColumnType("nvarchar(50)");
  1322. b.Property<string>("Name")
  1323. .IsRequired()
  1324. .HasMaxLength(200)
  1325. .HasColumnType("nvarchar(200)");
  1326. b.Property<string>("Phone")
  1327. .HasMaxLength(50)
  1328. .HasColumnType("nvarchar(50)");
  1329. b.Property<int?>("ResponseManId")
  1330. .HasColumnType("int");
  1331. b.HasKey("Id");
  1332. b.HasIndex("ResponseManId");
  1333. b.ToTable("Customer");
  1334. });
  1335. modelBuilder.Entity("wispro.sp.entity.Department", b =>
  1336. {
  1337. b.Property<int>("Id")
  1338. .ValueGeneratedOnAdd()
  1339. .HasColumnType("int")
  1340. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  1341. b.Property<string>("Memo")
  1342. .HasColumnType("nvarchar(max)");
  1343. b.Property<string>("Name")
  1344. .HasColumnType("nvarchar(max)");
  1345. b.Property<string>("ancestors")
  1346. .HasColumnType("nvarchar(max)");
  1347. b.Property<int?>("order_num")
  1348. .HasColumnType("int");
  1349. b.Property<int?>("parentId")
  1350. .HasColumnType("int");
  1351. b.HasKey("Id");
  1352. b.ToTable("Department");
  1353. });
  1354. modelBuilder.Entity("wispro.sp.entity.DepartmentPosition", b =>
  1355. {
  1356. b.Property<int>("Id")
  1357. .ValueGeneratedOnAdd()
  1358. .HasColumnType("int")
  1359. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  1360. b.Property<int>("PositionId")
  1361. .HasColumnType("int");
  1362. b.Property<int>("StaffId")
  1363. .HasColumnType("int");
  1364. b.Property<int>("departmentId")
  1365. .HasColumnType("int");
  1366. b.HasKey("Id");
  1367. b.HasIndex("PositionId");
  1368. b.HasIndex("StaffId");
  1369. b.HasIndex("departmentId");
  1370. b.ToTable("DepartmentPosition");
  1371. });
  1372. modelBuilder.Entity("wispro.sp.entity.InputField", b =>
  1373. {
  1374. b.Property<int>("Id")
  1375. .ValueGeneratedOnAdd()
  1376. .HasColumnType("int")
  1377. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  1378. b.Property<int>("AppealState")
  1379. .HasColumnType("int");
  1380. b.Property<int>("AppealTypeId")
  1381. .HasColumnType("int");
  1382. b.Property<bool>("CanMuliSelect")
  1383. .HasColumnType("bit");
  1384. b.Property<string>("FieldName")
  1385. .HasMaxLength(50)
  1386. .HasColumnType("nvarchar(50)");
  1387. b.Property<string>("FieldType")
  1388. .HasMaxLength(50)
  1389. .HasColumnType("nvarchar(50)");
  1390. b.Property<string>("MapObjectField")
  1391. .HasMaxLength(50)
  1392. .HasColumnType("nvarchar(50)");
  1393. b.Property<string>("MapObjectFieldLabel")
  1394. .HasColumnType("nvarchar(max)");
  1395. b.Property<string>("MapSaveCondition")
  1396. .HasColumnType("nvarchar(max)");
  1397. b.Property<int?>("MaxSize")
  1398. .HasColumnType("int");
  1399. b.HasKey("Id");
  1400. b.HasIndex("AppealTypeId");
  1401. b.ToTable("InputField");
  1402. b.HasData(
  1403. new
  1404. {
  1405. Id = 1,
  1406. AppealState = 0,
  1407. AppealTypeId = 1,
  1408. CanMuliSelect = false,
  1409. FieldName = "分配比率",
  1410. FieldType = "System.Double",
  1411. MapObjectField = "ItemStaffs.PerformancePoint",
  1412. MapObjectFieldLabel = "ItemStaffs.DoPerson.Name"
  1413. },
  1414. new
  1415. {
  1416. Id = 3,
  1417. AppealState = 0,
  1418. AppealTypeId = 1,
  1419. CanMuliSelect = false,
  1420. FieldName = "原因",
  1421. FieldType = "System.String"
  1422. },
  1423. new
  1424. {
  1425. Id = 4,
  1426. AppealState = 1,
  1427. AppealTypeId = 1,
  1428. CanMuliSelect = false,
  1429. FieldName = "备注",
  1430. FieldType = "System.String"
  1431. },
  1432. new
  1433. {
  1434. Id = 5,
  1435. AppealState = 1,
  1436. AppealTypeId = 1,
  1437. CanMuliSelect = false,
  1438. FieldName = "审核意见",
  1439. FieldType = "System.String"
  1440. },
  1441. new
  1442. {
  1443. Id = 6,
  1444. AppealState = 0,
  1445. AppealTypeId = 2,
  1446. CanMuliSelect = false,
  1447. FieldName = "案件系数",
  1448. FieldType = "System.String",
  1449. MapObjectField = "CaseCoefficient"
  1450. },
  1451. new
  1452. {
  1453. Id = 9,
  1454. AppealState = 1,
  1455. AppealTypeId = 2,
  1456. CanMuliSelect = false,
  1457. FieldName = "备注",
  1458. FieldType = "System.String"
  1459. },
  1460. new
  1461. {
  1462. Id = 10,
  1463. AppealState = 1,
  1464. AppealTypeId = 2,
  1465. CanMuliSelect = false,
  1466. FieldName = "审核意见",
  1467. FieldType = "System.String"
  1468. },
  1469. new
  1470. {
  1471. Id = 11,
  1472. AppealState = 0,
  1473. AppealTypeId = 3,
  1474. CanMuliSelect = false,
  1475. FieldName = "处理事项系数",
  1476. FieldType = "System.String",
  1477. MapObjectField = "DoItemCoefficient"
  1478. },
  1479. new
  1480. {
  1481. Id = 12,
  1482. AppealState = 1,
  1483. AppealTypeId = 3,
  1484. CanMuliSelect = false,
  1485. FieldName = "备注",
  1486. FieldType = "System.String"
  1487. },
  1488. new
  1489. {
  1490. Id = 13,
  1491. AppealState = 1,
  1492. AppealTypeId = 3,
  1493. CanMuliSelect = false,
  1494. FieldName = "审核意见",
  1495. FieldType = "System.String"
  1496. },
  1497. new
  1498. {
  1499. Id = 14,
  1500. AppealState = 0,
  1501. AppealTypeId = 4,
  1502. CanMuliSelect = false,
  1503. FieldName = "我方文号",
  1504. FieldType = "System.String"
  1505. },
  1506. new
  1507. {
  1508. Id = 15,
  1509. AppealState = 0,
  1510. AppealTypeId = 4,
  1511. CanMuliSelect = false,
  1512. FieldName = "处理事项",
  1513. FieldType = "System.String"
  1514. },
  1515. new
  1516. {
  1517. Id = 16,
  1518. AppealState = 1,
  1519. AppealTypeId = 4,
  1520. CanMuliSelect = false,
  1521. FieldName = "备注",
  1522. FieldType = "System.String"
  1523. },
  1524. new
  1525. {
  1526. Id = 17,
  1527. AppealState = 1,
  1528. AppealTypeId = 4,
  1529. CanMuliSelect = false,
  1530. FieldName = "审核意见",
  1531. FieldType = "System.String"
  1532. },
  1533. new
  1534. {
  1535. Id = 18,
  1536. AppealState = 0,
  1537. AppealTypeId = 5,
  1538. CanMuliSelect = false,
  1539. FieldName = "超期说明",
  1540. FieldType = "System.String",
  1541. MapObjectField = "OverDueMemo"
  1542. },
  1543. new
  1544. {
  1545. Id = 21,
  1546. AppealState = 1,
  1547. AppealTypeId = 5,
  1548. CanMuliSelect = false,
  1549. FieldName = "审核意见",
  1550. FieldType = "System.String"
  1551. },
  1552. new
  1553. {
  1554. Id = 22,
  1555. AppealState = 1,
  1556. AppealTypeId = 5,
  1557. CanMuliSelect = false,
  1558. FieldName = "备注",
  1559. FieldType = "System.String"
  1560. },
  1561. new
  1562. {
  1563. Id = 19,
  1564. AppealState = 0,
  1565. AppealTypeId = 6,
  1566. CanMuliSelect = false,
  1567. FieldName = "翻译类型",
  1568. FieldType = "System.String",
  1569. MapObjectField = "AgentFeedbackMemo"
  1570. },
  1571. new
  1572. {
  1573. Id = 20,
  1574. AppealState = 0,
  1575. AppealTypeId = 6,
  1576. CanMuliSelect = false,
  1577. FieldName = "翻译字数",
  1578. FieldType = "System.Int32",
  1579. MapObjectField = "WordCount"
  1580. },
  1581. new
  1582. {
  1583. Id = 23,
  1584. AppealState = 1,
  1585. AppealTypeId = 6,
  1586. CanMuliSelect = false,
  1587. FieldName = "审核意见",
  1588. FieldType = "System.Int32"
  1589. },
  1590. new
  1591. {
  1592. Id = 24,
  1593. AppealState = 1,
  1594. AppealTypeId = 6,
  1595. CanMuliSelect = false,
  1596. FieldName = "翻译字数",
  1597. FieldType = "System.Int32",
  1598. MapObjectField = "WordCount"
  1599. });
  1600. });
  1601. modelBuilder.Entity("wispro.sp.entity.InputFieldValue", b =>
  1602. {
  1603. b.Property<int>("Id")
  1604. .ValueGeneratedOnAdd()
  1605. .HasColumnType("int")
  1606. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  1607. b.Property<int>("AppealRecordId")
  1608. .HasColumnType("int");
  1609. b.Property<int>("InputFieldId")
  1610. .HasColumnType("int");
  1611. b.Property<string>("Label")
  1612. .HasColumnType("nvarchar(max)");
  1613. b.Property<string>("Value")
  1614. .HasMaxLength(500)
  1615. .HasColumnType("nvarchar(500)");
  1616. b.Property<string>("mapExpress")
  1617. .HasColumnType("nvarchar(max)");
  1618. b.HasKey("Id");
  1619. b.HasIndex("AppealRecordId");
  1620. b.HasIndex("InputFieldId");
  1621. b.ToTable("InputFieldValue");
  1622. });
  1623. modelBuilder.Entity("wispro.sp.entity.ItemStaff", b =>
  1624. {
  1625. b.Property<int>("ItemId")
  1626. .HasColumnType("int");
  1627. b.Property<int>("DoPersonId")
  1628. .HasColumnType("int");
  1629. b.Property<double?>("PerformancePoint")
  1630. .HasColumnType("float");
  1631. b.HasKey("ItemId", "DoPersonId");
  1632. b.HasIndex("DoPersonId");
  1633. b.ToTable("ItemStaff");
  1634. });
  1635. modelBuilder.Entity("wispro.sp.entity.Message", b =>
  1636. {
  1637. b.Property<Guid>("Id")
  1638. .ValueGeneratedOnAdd()
  1639. .HasColumnType("uniqueidentifier");
  1640. b.Property<int>("FromId")
  1641. .HasColumnType("int");
  1642. b.Property<string>("MessageInfo")
  1643. .HasMaxLength(500)
  1644. .HasColumnType("nvarchar(500)");
  1645. b.Property<int>("Type")
  1646. .HasColumnType("int");
  1647. b.HasKey("Id");
  1648. b.HasIndex("FromId");
  1649. b.ToTable("Message");
  1650. });
  1651. modelBuilder.Entity("wispro.sp.entity.MessagePerformanceItem", b =>
  1652. {
  1653. b.Property<int>("ItemId")
  1654. .HasColumnType("int");
  1655. b.Property<Guid>("MessageId")
  1656. .HasColumnType("uniqueidentifier");
  1657. b.HasKey("ItemId", "MessageId");
  1658. b.HasIndex("MessageId");
  1659. b.ToTable("MessagePerformanceItems");
  1660. });
  1661. modelBuilder.Entity("wispro.sp.entity.MessageReadRecord", b =>
  1662. {
  1663. b.Property<Guid>("MessageId")
  1664. .HasColumnType("uniqueidentifier");
  1665. b.Property<int>("StaffId")
  1666. .HasColumnType("int");
  1667. b.Property<Guid?>("MessageId1")
  1668. .HasColumnType("uniqueidentifier");
  1669. b.Property<bool>("isReaded")
  1670. .HasColumnType("bit");
  1671. b.HasKey("MessageId", "StaffId");
  1672. b.HasIndex("MessageId1");
  1673. b.HasIndex("StaffId");
  1674. b.ToTable("MessageReadRecord");
  1675. });
  1676. modelBuilder.Entity("wispro.sp.entity.PerformanceItem", b =>
  1677. {
  1678. b.Property<int>("Id")
  1679. .ValueGeneratedOnAdd()
  1680. .HasColumnType("int")
  1681. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  1682. b.Property<string>("AgentFeedbackMemo")
  1683. .HasColumnType("nvarchar(max)");
  1684. b.Property<string>("ApplicationName")
  1685. .HasMaxLength(200)
  1686. .HasColumnType("nvarchar(200)");
  1687. b.Property<string>("ApplicationType")
  1688. .HasMaxLength(50)
  1689. .HasColumnType("nvarchar(50)");
  1690. b.Property<decimal?>("BasePoint")
  1691. .HasColumnType("numeric(18,2)");
  1692. b.Property<string>("BusinessType")
  1693. .HasMaxLength(50)
  1694. .HasColumnType("nvarchar(50)");
  1695. b.Property<int>("CalMonthId")
  1696. .HasColumnType("int");
  1697. b.Property<string>("CaseCoefficient")
  1698. .HasMaxLength(10)
  1699. .HasColumnType("nvarchar(10)");
  1700. b.Property<string>("CaseMemo")
  1701. .HasColumnType("nvarchar(max)");
  1702. b.Property<string>("CaseName")
  1703. .HasMaxLength(500)
  1704. .HasColumnType("nvarchar(500)");
  1705. b.Property<string>("CaseNo")
  1706. .HasMaxLength(50)
  1707. .HasColumnType("nvarchar(50)");
  1708. b.Property<string>("CaseStage")
  1709. .HasMaxLength(50)
  1710. .HasColumnType("nvarchar(50)");
  1711. b.Property<string>("CaseState")
  1712. .HasMaxLength(50)
  1713. .HasColumnType("nvarchar(50)");
  1714. b.Property<string>("CaseType")
  1715. .HasMaxLength(50)
  1716. .HasColumnType("nvarchar(50)");
  1717. b.Property<int?>("CustomerId")
  1718. .HasColumnType("int");
  1719. b.Property<DateTime?>("CustomerLimitDate")
  1720. .HasColumnType("date");
  1721. b.Property<string>("DoItem")
  1722. .HasMaxLength(50)
  1723. .HasColumnType("nvarchar(50)");
  1724. b.Property<string>("DoItemCoefficient")
  1725. .HasMaxLength(50)
  1726. .HasColumnType("nvarchar(50)");
  1727. b.Property<string>("DoItemMemo")
  1728. .HasMaxLength(500)
  1729. .HasColumnType("nvarchar(500)");
  1730. b.Property<string>("DoItemState")
  1731. .HasMaxLength(50)
  1732. .HasColumnType("nvarchar(50)");
  1733. b.Property<DateTime?>("EntrustingDate")
  1734. .HasColumnType("date");
  1735. b.Property<DateTime?>("FinalizationDate")
  1736. .HasColumnType("date");
  1737. b.Property<DateTime?>("FinishedDate")
  1738. .HasColumnType("date");
  1739. b.Property<DateTime?>("FirstDraftDate")
  1740. .HasColumnType("date");
  1741. b.Property<DateTime?>("InternalDate")
  1742. .HasColumnType("date");
  1743. b.Property<string>("OverDueMemo")
  1744. .HasMaxLength(100)
  1745. .HasColumnType("nvarchar(100)");
  1746. b.Property<int?>("PreOastaffId")
  1747. .HasColumnType("int")
  1748. .HasColumnName("PreOAStaffId");
  1749. b.Property<string>("ReturnCasseNo")
  1750. .HasColumnType("nvarchar(max)");
  1751. b.Property<DateTime?>("ReturnDate")
  1752. .HasColumnType("date");
  1753. b.Property<int?>("ReviewerId")
  1754. .HasColumnType("int");
  1755. b.Property<int?>("Status")
  1756. .HasColumnType("int");
  1757. b.Property<string>("Type")
  1758. .HasColumnType("nvarchar(max)");
  1759. b.Property<int?>("WordCount")
  1760. .HasColumnType("int");
  1761. b.HasKey("Id");
  1762. b.HasIndex("CalMonthId");
  1763. b.HasIndex("CustomerId");
  1764. b.HasIndex("PreOastaffId");
  1765. b.HasIndex("ReviewerId");
  1766. b.ToTable("PerformanceItem");
  1767. });
  1768. modelBuilder.Entity("wispro.sp.entity.Position", b =>
  1769. {
  1770. b.Property<int>("Id")
  1771. .ValueGeneratedOnAdd()
  1772. .HasColumnType("int")
  1773. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  1774. b.Property<string>("Memo")
  1775. .HasColumnType("nvarchar(max)");
  1776. b.Property<string>("Name")
  1777. .HasColumnType("nvarchar(max)");
  1778. b.HasKey("Id");
  1779. b.ToTable("Position");
  1780. });
  1781. modelBuilder.Entity("wispro.sp.entity.SelectValue", b =>
  1782. {
  1783. b.Property<int>("Id")
  1784. .ValueGeneratedOnAdd()
  1785. .HasColumnType("int")
  1786. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  1787. b.Property<int>("InputFieldId")
  1788. .HasColumnType("int");
  1789. b.Property<string>("Value")
  1790. .HasColumnType("nvarchar(max)");
  1791. b.HasKey("Id");
  1792. b.HasIndex("InputFieldId");
  1793. b.ToTable("SelectValue");
  1794. b.HasData(
  1795. new
  1796. {
  1797. Id = 1,
  1798. InputFieldId = 5,
  1799. Value = "同意"
  1800. },
  1801. new
  1802. {
  1803. Id = 2,
  1804. InputFieldId = 5,
  1805. Value = "拒绝"
  1806. },
  1807. new
  1808. {
  1809. Id = 3,
  1810. InputFieldId = 10,
  1811. Value = "同意"
  1812. },
  1813. new
  1814. {
  1815. Id = 4,
  1816. InputFieldId = 10,
  1817. Value = "拒绝"
  1818. },
  1819. new
  1820. {
  1821. Id = 5,
  1822. InputFieldId = 13,
  1823. Value = "同意"
  1824. },
  1825. new
  1826. {
  1827. Id = 6,
  1828. InputFieldId = 13,
  1829. Value = "拒绝"
  1830. },
  1831. new
  1832. {
  1833. Id = 7,
  1834. InputFieldId = 17,
  1835. Value = "同意"
  1836. },
  1837. new
  1838. {
  1839. Id = 8,
  1840. InputFieldId = 17,
  1841. Value = "拒绝"
  1842. },
  1843. new
  1844. {
  1845. Id = 9,
  1846. InputFieldId = 6,
  1847. Value = "S"
  1848. },
  1849. new
  1850. {
  1851. Id = 10,
  1852. InputFieldId = 6,
  1853. Value = "A"
  1854. },
  1855. new
  1856. {
  1857. Id = 11,
  1858. InputFieldId = 6,
  1859. Value = "B"
  1860. },
  1861. new
  1862. {
  1863. Id = 12,
  1864. InputFieldId = 6,
  1865. Value = "C"
  1866. },
  1867. new
  1868. {
  1869. Id = 13,
  1870. InputFieldId = 6,
  1871. Value = "D"
  1872. },
  1873. new
  1874. {
  1875. Id = 14,
  1876. InputFieldId = 11,
  1877. Value = "实质"
  1878. },
  1879. new
  1880. {
  1881. Id = 15,
  1882. InputFieldId = 11,
  1883. Value = "形式"
  1884. },
  1885. new
  1886. {
  1887. Id = 16,
  1888. InputFieldId = 19,
  1889. Value = "中-德"
  1890. },
  1891. new
  1892. {
  1893. Id = 17,
  1894. InputFieldId = 19,
  1895. Value = "中-英"
  1896. },
  1897. new
  1898. {
  1899. Id = 18,
  1900. InputFieldId = 19,
  1901. Value = "英-中"
  1902. },
  1903. new
  1904. {
  1905. Id = 19,
  1906. InputFieldId = 22,
  1907. Value = "同意"
  1908. },
  1909. new
  1910. {
  1911. Id = 20,
  1912. InputFieldId = 22,
  1913. Value = "拒绝"
  1914. });
  1915. });
  1916. modelBuilder.Entity("wispro.sp.entity.Staff", b =>
  1917. {
  1918. b.Property<int>("Id")
  1919. .ValueGeneratedOnAdd()
  1920. .HasColumnType("int")
  1921. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  1922. b.Property<string>("Account")
  1923. .IsRequired()
  1924. .HasMaxLength(50)
  1925. .HasColumnType("nvarchar(50)");
  1926. b.Property<string>("Department")
  1927. .HasMaxLength(50)
  1928. .HasColumnType("nvarchar(50)");
  1929. b.Property<DateTime?>("EntyDate")
  1930. .HasColumnType("date");
  1931. b.Property<bool>("IsCalPerformsnce")
  1932. .HasColumnType("bit")
  1933. .HasColumnName("isCalPerformsnce");
  1934. b.Property<bool>("IsOnJob")
  1935. .HasColumnType("bit");
  1936. b.Property<string>("Mail")
  1937. .HasColumnType("nvarchar(max)");
  1938. b.Property<string>("Memo")
  1939. .HasColumnType("nvarchar(max)");
  1940. b.Property<string>("Mobile")
  1941. .HasColumnType("nvarchar(max)");
  1942. b.Property<string>("Name")
  1943. .IsRequired()
  1944. .HasMaxLength(50)
  1945. .HasColumnType("nvarchar(50)");
  1946. b.Property<string>("Password")
  1947. .IsRequired()
  1948. .HasColumnType("nvarchar(max)");
  1949. b.Property<string>("Sex")
  1950. .HasColumnType("nvarchar(max)");
  1951. b.Property<int?>("StaffGradeId")
  1952. .HasColumnType("int");
  1953. b.Property<string>("Status")
  1954. .IsRequired()
  1955. .HasMaxLength(25)
  1956. .HasColumnType("nvarchar(25)");
  1957. b.Property<string>("Tel")
  1958. .HasColumnType("nvarchar(max)");
  1959. b.Property<string>("WorkPlace")
  1960. .HasMaxLength(50)
  1961. .HasColumnType("nvarchar(50)");
  1962. b.HasKey("Id");
  1963. b.HasIndex("StaffGradeId");
  1964. b.ToTable("Staff");
  1965. });
  1966. modelBuilder.Entity("wispro.sp.entity.StaffGrade", b =>
  1967. {
  1968. b.Property<int>("Id")
  1969. .ValueGeneratedOnAdd()
  1970. .HasColumnType("int")
  1971. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  1972. b.Property<double>("Coefficient")
  1973. .HasColumnType("float");
  1974. b.Property<string>("Grade")
  1975. .IsRequired()
  1976. .HasMaxLength(5)
  1977. .HasColumnType("nchar(5)")
  1978. .IsFixedLength(true);
  1979. b.HasKey("Id");
  1980. b.ToTable("StaffGrade");
  1981. b.HasData(
  1982. new
  1983. {
  1984. Id = 1,
  1985. Coefficient = 1.2,
  1986. Grade = "S级"
  1987. },
  1988. new
  1989. {
  1990. Id = 2,
  1991. Coefficient = 1.1000000000000001,
  1992. Grade = "A3级"
  1993. },
  1994. new
  1995. {
  1996. Id = 3,
  1997. Coefficient = 1.1000000000000001,
  1998. Grade = "A2级"
  1999. },
  2000. new
  2001. {
  2002. Id = 4,
  2003. Coefficient = 1.1000000000000001,
  2004. Grade = "A1级"
  2005. },
  2006. new
  2007. {
  2008. Id = 5,
  2009. Coefficient = 1.0,
  2010. Grade = "B3级"
  2011. },
  2012. new
  2013. {
  2014. Id = 6,
  2015. Coefficient = 1.0,
  2016. Grade = "B2级"
  2017. },
  2018. new
  2019. {
  2020. Id = 7,
  2021. Coefficient = 0.90000000000000002,
  2022. Grade = "B1级"
  2023. },
  2024. new
  2025. {
  2026. Id = 8,
  2027. Coefficient = 0.90000000000000002,
  2028. Grade = "C3级"
  2029. },
  2030. new
  2031. {
  2032. Id = 9,
  2033. Coefficient = 0.69999999999999996,
  2034. Grade = "C2级"
  2035. },
  2036. new
  2037. {
  2038. Id = 10,
  2039. Coefficient = 0.69999999999999996,
  2040. Grade = "C1级"
  2041. },
  2042. new
  2043. {
  2044. Id = 11,
  2045. Coefficient = 0.59999999999999998,
  2046. Grade = "D3级"
  2047. },
  2048. new
  2049. {
  2050. Id = 12,
  2051. Coefficient = 0.59999999999999998,
  2052. Grade = "D2级"
  2053. },
  2054. new
  2055. {
  2056. Id = 13,
  2057. Coefficient = 0.5,
  2058. Grade = "D1级"
  2059. },
  2060. new
  2061. {
  2062. Id = 14,
  2063. Coefficient = 1.1000000000000001,
  2064. Grade = "A级"
  2065. },
  2066. new
  2067. {
  2068. Id = 15,
  2069. Coefficient = 1.0,
  2070. Grade = "C级"
  2071. },
  2072. new
  2073. {
  2074. Id = 16,
  2075. Coefficient = 0.90000000000000002,
  2076. Grade = "D级"
  2077. });
  2078. });
  2079. modelBuilder.Entity("wispro.sp.entity.VerifyCoefficient", b =>
  2080. {
  2081. b.Property<int>("CheckerId")
  2082. .HasColumnType("int");
  2083. b.Property<int>("DoPersonId")
  2084. .HasColumnType("int");
  2085. b.Property<double>("Coefficient")
  2086. .HasColumnType("float");
  2087. b.HasKey("CheckerId", "DoPersonId");
  2088. b.HasIndex("DoPersonId");
  2089. b.ToTable("VerifyCoefficient");
  2090. b.HasData(
  2091. new
  2092. {
  2093. CheckerId = 1,
  2094. DoPersonId = 5,
  2095. Coefficient = 0.29999999999999999
  2096. },
  2097. new
  2098. {
  2099. CheckerId = 1,
  2100. DoPersonId = 6,
  2101. Coefficient = 0.29999999999999999
  2102. },
  2103. new
  2104. {
  2105. CheckerId = 1,
  2106. DoPersonId = 7,
  2107. Coefficient = 0.29999999999999999
  2108. },
  2109. new
  2110. {
  2111. CheckerId = 1,
  2112. DoPersonId = 8,
  2113. Coefficient = 0.29999999999999999
  2114. },
  2115. new
  2116. {
  2117. CheckerId = 1,
  2118. DoPersonId = 9,
  2119. Coefficient = 0.40000000000000002
  2120. },
  2121. new
  2122. {
  2123. CheckerId = 1,
  2124. DoPersonId = 10,
  2125. Coefficient = 0.40000000000000002
  2126. },
  2127. new
  2128. {
  2129. CheckerId = 1,
  2130. DoPersonId = 11,
  2131. Coefficient = 0.5
  2132. },
  2133. new
  2134. {
  2135. CheckerId = 1,
  2136. DoPersonId = 12,
  2137. Coefficient = 0.5
  2138. },
  2139. new
  2140. {
  2141. CheckerId = 1,
  2142. DoPersonId = 13,
  2143. Coefficient = 0.59999999999999998
  2144. },
  2145. new
  2146. {
  2147. CheckerId = 2,
  2148. DoPersonId = 5,
  2149. Coefficient = 0.20000000000000001
  2150. },
  2151. new
  2152. {
  2153. CheckerId = 2,
  2154. DoPersonId = 6,
  2155. Coefficient = 0.20000000000000001
  2156. },
  2157. new
  2158. {
  2159. CheckerId = 2,
  2160. DoPersonId = 7,
  2161. Coefficient = 0.20000000000000001
  2162. },
  2163. new
  2164. {
  2165. CheckerId = 2,
  2166. DoPersonId = 8,
  2167. Coefficient = 0.20000000000000001
  2168. },
  2169. new
  2170. {
  2171. CheckerId = 2,
  2172. DoPersonId = 9,
  2173. Coefficient = 0.29999999999999999
  2174. },
  2175. new
  2176. {
  2177. CheckerId = 2,
  2178. DoPersonId = 10,
  2179. Coefficient = 0.29999999999999999
  2180. },
  2181. new
  2182. {
  2183. CheckerId = 2,
  2184. DoPersonId = 11,
  2185. Coefficient = 0.40000000000000002
  2186. },
  2187. new
  2188. {
  2189. CheckerId = 2,
  2190. DoPersonId = 12,
  2191. Coefficient = 0.40000000000000002
  2192. },
  2193. new
  2194. {
  2195. CheckerId = 2,
  2196. DoPersonId = 13,
  2197. Coefficient = 0.5
  2198. },
  2199. new
  2200. {
  2201. CheckerId = 3,
  2202. DoPersonId = 5,
  2203. Coefficient = 0.20000000000000001
  2204. },
  2205. new
  2206. {
  2207. CheckerId = 3,
  2208. DoPersonId = 6,
  2209. Coefficient = 0.20000000000000001
  2210. },
  2211. new
  2212. {
  2213. CheckerId = 3,
  2214. DoPersonId = 7,
  2215. Coefficient = 0.20000000000000001
  2216. },
  2217. new
  2218. {
  2219. CheckerId = 3,
  2220. DoPersonId = 8,
  2221. Coefficient = 0.20000000000000001
  2222. },
  2223. new
  2224. {
  2225. CheckerId = 3,
  2226. DoPersonId = 9,
  2227. Coefficient = 0.29999999999999999
  2228. },
  2229. new
  2230. {
  2231. CheckerId = 3,
  2232. DoPersonId = 10,
  2233. Coefficient = 0.29999999999999999
  2234. },
  2235. new
  2236. {
  2237. CheckerId = 3,
  2238. DoPersonId = 11,
  2239. Coefficient = 0.40000000000000002
  2240. },
  2241. new
  2242. {
  2243. CheckerId = 3,
  2244. DoPersonId = 12,
  2245. Coefficient = 0.40000000000000002
  2246. },
  2247. new
  2248. {
  2249. CheckerId = 3,
  2250. DoPersonId = 13,
  2251. Coefficient = 0.5
  2252. },
  2253. new
  2254. {
  2255. CheckerId = 4,
  2256. DoPersonId = 5,
  2257. Coefficient = 0.20000000000000001
  2258. },
  2259. new
  2260. {
  2261. CheckerId = 4,
  2262. DoPersonId = 6,
  2263. Coefficient = 0.20000000000000001
  2264. },
  2265. new
  2266. {
  2267. CheckerId = 4,
  2268. DoPersonId = 7,
  2269. Coefficient = 0.20000000000000001
  2270. },
  2271. new
  2272. {
  2273. CheckerId = 4,
  2274. DoPersonId = 8,
  2275. Coefficient = 0.20000000000000001
  2276. },
  2277. new
  2278. {
  2279. CheckerId = 4,
  2280. DoPersonId = 9,
  2281. Coefficient = 0.29999999999999999
  2282. },
  2283. new
  2284. {
  2285. CheckerId = 4,
  2286. DoPersonId = 10,
  2287. Coefficient = 0.29999999999999999
  2288. },
  2289. new
  2290. {
  2291. CheckerId = 4,
  2292. DoPersonId = 11,
  2293. Coefficient = 0.40000000000000002
  2294. },
  2295. new
  2296. {
  2297. CheckerId = 4,
  2298. DoPersonId = 12,
  2299. Coefficient = 0.40000000000000002
  2300. },
  2301. new
  2302. {
  2303. CheckerId = 4,
  2304. DoPersonId = 13,
  2305. Coefficient = 0.5
  2306. },
  2307. new
  2308. {
  2309. CheckerId = 5,
  2310. DoPersonId = 5,
  2311. Coefficient = 0.20000000000000001
  2312. },
  2313. new
  2314. {
  2315. CheckerId = 5,
  2316. DoPersonId = 6,
  2317. Coefficient = 0.20000000000000001
  2318. },
  2319. new
  2320. {
  2321. CheckerId = 5,
  2322. DoPersonId = 7,
  2323. Coefficient = 0.20000000000000001
  2324. },
  2325. new
  2326. {
  2327. CheckerId = 5,
  2328. DoPersonId = 8,
  2329. Coefficient = 0.20000000000000001
  2330. },
  2331. new
  2332. {
  2333. CheckerId = 5,
  2334. DoPersonId = 9,
  2335. Coefficient = 0.29999999999999999
  2336. },
  2337. new
  2338. {
  2339. CheckerId = 5,
  2340. DoPersonId = 10,
  2341. Coefficient = 0.29999999999999999
  2342. },
  2343. new
  2344. {
  2345. CheckerId = 5,
  2346. DoPersonId = 11,
  2347. Coefficient = 0.40000000000000002
  2348. },
  2349. new
  2350. {
  2351. CheckerId = 5,
  2352. DoPersonId = 12,
  2353. Coefficient = 0.40000000000000002
  2354. },
  2355. new
  2356. {
  2357. CheckerId = 5,
  2358. DoPersonId = 13,
  2359. Coefficient = 0.5
  2360. },
  2361. new
  2362. {
  2363. CheckerId = 6,
  2364. DoPersonId = 5,
  2365. Coefficient = 0.20000000000000001
  2366. },
  2367. new
  2368. {
  2369. CheckerId = 6,
  2370. DoPersonId = 6,
  2371. Coefficient = 0.20000000000000001
  2372. },
  2373. new
  2374. {
  2375. CheckerId = 6,
  2376. DoPersonId = 7,
  2377. Coefficient = 0.20000000000000001
  2378. },
  2379. new
  2380. {
  2381. CheckerId = 6,
  2382. DoPersonId = 8,
  2383. Coefficient = 0.20000000000000001
  2384. },
  2385. new
  2386. {
  2387. CheckerId = 6,
  2388. DoPersonId = 9,
  2389. Coefficient = 0.29999999999999999
  2390. },
  2391. new
  2392. {
  2393. CheckerId = 6,
  2394. DoPersonId = 10,
  2395. Coefficient = 0.29999999999999999
  2396. },
  2397. new
  2398. {
  2399. CheckerId = 6,
  2400. DoPersonId = 11,
  2401. Coefficient = 0.40000000000000002
  2402. },
  2403. new
  2404. {
  2405. CheckerId = 6,
  2406. DoPersonId = 12,
  2407. Coefficient = 0.40000000000000002
  2408. },
  2409. new
  2410. {
  2411. CheckerId = 6,
  2412. DoPersonId = 13,
  2413. Coefficient = 0.5
  2414. });
  2415. });
  2416. modelBuilder.Entity("wispro.sp.entity.workflowDefine.Action", b =>
  2417. {
  2418. b.Property<int>("Id")
  2419. .ValueGeneratedOnAdd()
  2420. .HasColumnType("int")
  2421. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  2422. b.Property<string>("InputForm")
  2423. .HasColumnType("nvarchar(max)");
  2424. b.Property<string>("Name")
  2425. .HasColumnType("nvarchar(max)");
  2426. b.Property<string>("OnActionObjectType")
  2427. .HasColumnType("nvarchar(max)");
  2428. b.Property<int>("StepId")
  2429. .HasColumnType("int");
  2430. b.HasKey("Id");
  2431. b.HasIndex("StepId");
  2432. b.ToTable("Action");
  2433. });
  2434. modelBuilder.Entity("wispro.sp.entity.workflowDefine.InputValueSetting", b =>
  2435. {
  2436. b.Property<int>("Id")
  2437. .ValueGeneratedOnAdd()
  2438. .HasColumnType("int")
  2439. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  2440. b.Property<string>("DisplayName")
  2441. .HasColumnType("nvarchar(max)");
  2442. b.Property<string>("Options")
  2443. .HasColumnType("nvarchar(max)");
  2444. b.Property<int?>("ParentSettingId")
  2445. .HasColumnType("int");
  2446. b.Property<int>("actionId")
  2447. .HasColumnType("int");
  2448. b.Property<string>("bindField")
  2449. .HasColumnType("nvarchar(max)");
  2450. b.Property<string>("bindFieldSavetoObjectCondition")
  2451. .HasColumnType("nvarchar(max)");
  2452. b.Property<int>("valueType")
  2453. .HasColumnType("int");
  2454. b.HasKey("Id");
  2455. b.HasIndex("ParentSettingId");
  2456. b.HasIndex("actionId");
  2457. b.ToTable("InputValueSetting");
  2458. });
  2459. modelBuilder.Entity("wispro.sp.entity.workflowDefine.Step", b =>
  2460. {
  2461. b.Property<int>("Id")
  2462. .ValueGeneratedOnAdd()
  2463. .HasColumnType("int")
  2464. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  2465. b.Property<string>("Name")
  2466. .HasColumnType("nvarchar(max)");
  2467. b.Property<string>("defaultResponseSetting")
  2468. .HasColumnType("nvarchar(max)");
  2469. b.Property<int>("stepType")
  2470. .HasColumnType("int");
  2471. b.Property<int>("workflowId")
  2472. .HasColumnType("int");
  2473. b.HasKey("Id");
  2474. b.HasIndex("workflowId");
  2475. b.ToTable("Step");
  2476. });
  2477. modelBuilder.Entity("wispro.sp.entity.workflowDefine.TrasferCondition", b =>
  2478. {
  2479. b.Property<int>("Id")
  2480. .ValueGeneratedOnAdd()
  2481. .HasColumnType("int")
  2482. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  2483. b.Property<string>("Condition")
  2484. .HasColumnType("nvarchar(max)");
  2485. b.Property<int>("StepId")
  2486. .HasColumnType("int");
  2487. b.Property<int>("nextStepId")
  2488. .HasColumnType("int");
  2489. b.HasKey("Id");
  2490. b.HasIndex("StepId");
  2491. b.HasIndex("nextStepId");
  2492. b.ToTable("TrasferCondition");
  2493. });
  2494. modelBuilder.Entity("wispro.sp.entity.workflowDefine.Workflow", b =>
  2495. {
  2496. b.Property<int>("Id")
  2497. .ValueGeneratedOnAdd()
  2498. .HasColumnType("int")
  2499. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  2500. b.Property<string>("ContentObjectType")
  2501. .HasColumnType("nvarchar(max)");
  2502. b.Property<int>("EndStepId")
  2503. .HasColumnType("int");
  2504. b.Property<int>("InitActionId")
  2505. .HasColumnType("int");
  2506. b.Property<string>("Name")
  2507. .HasColumnType("nvarchar(max)");
  2508. b.HasKey("Id");
  2509. b.HasIndex("InitActionId");
  2510. b.ToTable("Workflow");
  2511. });
  2512. modelBuilder.Entity("wispro.sp.entity.workflowInstance.InputValue", b =>
  2513. {
  2514. b.Property<int>("Id")
  2515. .ValueGeneratedOnAdd()
  2516. .HasColumnType("int")
  2517. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  2518. b.Property<string>("value")
  2519. .HasColumnType("nvarchar(max)");
  2520. b.Property<int>("valueSettingId")
  2521. .HasColumnType("int");
  2522. b.Property<int>("workflowInstanceId")
  2523. .HasColumnType("int");
  2524. b.HasKey("Id");
  2525. b.HasIndex("valueSettingId");
  2526. b.HasIndex("workflowInstanceId");
  2527. b.ToTable("InputValue");
  2528. });
  2529. modelBuilder.Entity("wispro.sp.entity.workflowInstance.StepInstance", b =>
  2530. {
  2531. b.Property<int>("Id")
  2532. .ValueGeneratedOnAdd()
  2533. .HasColumnType("int")
  2534. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  2535. b.Property<int?>("PreviousStepId")
  2536. .HasColumnType("int");
  2537. b.Property<int>("stepId")
  2538. .HasColumnType("int");
  2539. b.Property<int>("workflowInstanceId")
  2540. .HasColumnType("int");
  2541. b.HasKey("Id");
  2542. b.HasIndex("stepId");
  2543. b.HasIndex("workflowInstanceId");
  2544. b.ToTable("StepInstance");
  2545. });
  2546. modelBuilder.Entity("wispro.sp.entity.workflowInstance.WorkflowInstance", b =>
  2547. {
  2548. b.Property<int>("Id")
  2549. .ValueGeneratedOnAdd()
  2550. .HasColumnType("int")
  2551. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  2552. b.Property<int>("ObjectId")
  2553. .HasColumnType("int");
  2554. b.Property<int>("workflowId")
  2555. .HasColumnType("int");
  2556. b.HasKey("Id");
  2557. b.HasIndex("workflowId");
  2558. b.ToTable("WorkflowInstance");
  2559. });
  2560. modelBuilder.Entity("wispro.sp.entity.AppealRecord", b =>
  2561. {
  2562. b.HasOne("wispro.sp.entity.Staff", "Creater")
  2563. .WithMany()
  2564. .HasForeignKey("CreaterId")
  2565. .OnDelete(DeleteBehavior.Cascade)
  2566. .IsRequired();
  2567. b.HasOne("wispro.sp.entity.PerformanceItem", "Item")
  2568. .WithMany()
  2569. .HasForeignKey("ItemId")
  2570. .OnDelete(DeleteBehavior.Cascade)
  2571. .IsRequired();
  2572. b.HasOne("wispro.sp.entity.Staff", "Reviewer")
  2573. .WithMany()
  2574. .HasForeignKey("ReviewerId")
  2575. .OnDelete(DeleteBehavior.NoAction);
  2576. b.HasOne("wispro.sp.entity.AppealType", "Type")
  2577. .WithMany()
  2578. .HasForeignKey("TypeId")
  2579. .OnDelete(DeleteBehavior.NoAction)
  2580. .IsRequired();
  2581. b.Navigation("Creater");
  2582. b.Navigation("Item");
  2583. b.Navigation("Reviewer");
  2584. b.Navigation("Type");
  2585. });
  2586. modelBuilder.Entity("wispro.sp.entity.AttachFile", b =>
  2587. {
  2588. b.HasOne("wispro.sp.entity.AppealRecord", "AppealRecord")
  2589. .WithMany("AttachFiles")
  2590. .HasForeignKey("AppealRecordId")
  2591. .HasConstraintName("FK_AttachFile_AppealRecord");
  2592. b.HasOne("wispro.sp.entity.Staff", "UploadUser")
  2593. .WithMany()
  2594. .HasForeignKey("UploadUserId")
  2595. .HasConstraintName("FK_AttachFile_UpdateUser")
  2596. .OnDelete(DeleteBehavior.NoAction);
  2597. b.Navigation("AppealRecord");
  2598. b.Navigation("UploadUser");
  2599. });
  2600. modelBuilder.Entity("wispro.sp.entity.Customer", b =>
  2601. {
  2602. b.HasOne("wispro.sp.entity.Staff", "ResponseMan")
  2603. .WithMany("Customers")
  2604. .HasForeignKey("ResponseManId")
  2605. .HasConstraintName("FK_Customer_Staff");
  2606. b.Navigation("ResponseMan");
  2607. });
  2608. modelBuilder.Entity("wispro.sp.entity.DepartmentPosition", b =>
  2609. {
  2610. b.HasOne("wispro.sp.entity.Position", "Position")
  2611. .WithMany()
  2612. .HasForeignKey("PositionId")
  2613. .OnDelete(DeleteBehavior.Cascade)
  2614. .IsRequired();
  2615. b.HasOne("wispro.sp.entity.Staff", "Staff")
  2616. .WithMany("Positions")
  2617. .HasForeignKey("StaffId")
  2618. .OnDelete(DeleteBehavior.Cascade)
  2619. .IsRequired();
  2620. b.HasOne("wispro.sp.entity.Department", "department")
  2621. .WithMany()
  2622. .HasForeignKey("departmentId")
  2623. .OnDelete(DeleteBehavior.Cascade)
  2624. .IsRequired();
  2625. b.Navigation("department");
  2626. b.Navigation("Position");
  2627. b.Navigation("Staff");
  2628. });
  2629. modelBuilder.Entity("wispro.sp.entity.InputField", b =>
  2630. {
  2631. b.HasOne("wispro.sp.entity.AppealType", "AppealType")
  2632. .WithMany()
  2633. .HasForeignKey("AppealTypeId")
  2634. .OnDelete(DeleteBehavior.Cascade)
  2635. .IsRequired();
  2636. b.Navigation("AppealType");
  2637. });
  2638. modelBuilder.Entity("wispro.sp.entity.InputFieldValue", b =>
  2639. {
  2640. b.HasOne("wispro.sp.entity.AppealRecord", "AppealRecord")
  2641. .WithMany()
  2642. .HasForeignKey("AppealRecordId")
  2643. .OnDelete(DeleteBehavior.Cascade)
  2644. .IsRequired();
  2645. b.HasOne("wispro.sp.entity.InputField", "InputField")
  2646. .WithMany()
  2647. .HasForeignKey("InputFieldId")
  2648. .OnDelete(DeleteBehavior.Cascade)
  2649. .IsRequired();
  2650. b.Navigation("AppealRecord");
  2651. b.Navigation("InputField");
  2652. });
  2653. modelBuilder.Entity("wispro.sp.entity.ItemStaff", b =>
  2654. {
  2655. b.HasOne("wispro.sp.entity.Staff", "DoPerson")
  2656. .WithMany("ItemStaffs")
  2657. .HasForeignKey("DoPersonId")
  2658. .HasConstraintName("FK_ItemStaff_Staff")
  2659. .IsRequired();
  2660. b.HasOne("wispro.sp.entity.PerformanceItem", "Item")
  2661. .WithMany("ItemStaffs")
  2662. .HasForeignKey("ItemId")
  2663. .HasConstraintName("FK_ItemStaff_PerformanceItem")
  2664. .IsRequired();
  2665. b.Navigation("DoPerson");
  2666. b.Navigation("Item");
  2667. });
  2668. modelBuilder.Entity("wispro.sp.entity.Message", b =>
  2669. {
  2670. b.HasOne("wispro.sp.entity.Staff", "From")
  2671. .WithMany()
  2672. .HasForeignKey("FromId")
  2673. .HasConstraintName("FK_From_Staff")
  2674. .IsRequired();
  2675. b.Navigation("From");
  2676. });
  2677. modelBuilder.Entity("wispro.sp.entity.MessagePerformanceItem", b =>
  2678. {
  2679. b.HasOne("wispro.sp.entity.PerformanceItem", "Item")
  2680. .WithMany()
  2681. .HasForeignKey("ItemId")
  2682. .HasConstraintName("FK_MessagePerformanceItem_Item")
  2683. .OnDelete(DeleteBehavior.Cascade)
  2684. .IsRequired();
  2685. b.HasOne("wispro.sp.entity.Message", "Message")
  2686. .WithMany("RelatedItem")
  2687. .HasForeignKey("MessageId")
  2688. .HasConstraintName("FK_MessagePerformanceItem_Message")
  2689. .OnDelete(DeleteBehavior.Cascade)
  2690. .IsRequired();
  2691. b.Navigation("Item");
  2692. b.Navigation("Message");
  2693. });
  2694. modelBuilder.Entity("wispro.sp.entity.MessageReadRecord", b =>
  2695. {
  2696. b.HasOne("wispro.sp.entity.Message", "Message")
  2697. .WithMany()
  2698. .HasForeignKey("MessageId")
  2699. .HasConstraintName("FK_MessageReadRecord_Message")
  2700. .IsRequired();
  2701. b.HasOne("wispro.sp.entity.Message", null)
  2702. .WithMany("To")
  2703. .HasForeignKey("MessageId1");
  2704. b.HasOne("wispro.sp.entity.Staff", "Staff")
  2705. .WithMany()
  2706. .HasForeignKey("StaffId")
  2707. .HasConstraintName("FK_MessageReadRecord_Staff")
  2708. .IsRequired();
  2709. b.Navigation("Message");
  2710. b.Navigation("Staff");
  2711. });
  2712. modelBuilder.Entity("wispro.sp.entity.PerformanceItem", b =>
  2713. {
  2714. b.HasOne("wispro.sp.entity.CalMonth", "CalMonth")
  2715. .WithMany("PerformanceItems")
  2716. .HasForeignKey("CalMonthId")
  2717. .HasConstraintName("FK_PerformanceItem_CalMonth")
  2718. .OnDelete(DeleteBehavior.Cascade)
  2719. .IsRequired();
  2720. b.HasOne("wispro.sp.entity.Customer", "Customer")
  2721. .WithMany("PerformanceItems")
  2722. .HasForeignKey("CustomerId")
  2723. .HasConstraintName("FK_PerformanceItem_Customer");
  2724. b.HasOne("wispro.sp.entity.Staff", "PreOastaff")
  2725. .WithMany()
  2726. .HasForeignKey("PreOastaffId")
  2727. .HasConstraintName("FK_PerformanceItem_Staff");
  2728. b.HasOne("wispro.sp.entity.Staff", "Reviewer")
  2729. .WithMany("ReviewerItems")
  2730. .HasForeignKey("ReviewerId")
  2731. .HasConstraintName("FK_PerformanceItem_Reviewer");
  2732. b.Navigation("CalMonth");
  2733. b.Navigation("Customer");
  2734. b.Navigation("PreOastaff");
  2735. b.Navigation("Reviewer");
  2736. });
  2737. modelBuilder.Entity("wispro.sp.entity.SelectValue", b =>
  2738. {
  2739. b.HasOne("wispro.sp.entity.InputField", "InputField")
  2740. .WithMany("SelectValues")
  2741. .HasForeignKey("InputFieldId")
  2742. .OnDelete(DeleteBehavior.Cascade)
  2743. .IsRequired();
  2744. b.Navigation("InputField");
  2745. });
  2746. modelBuilder.Entity("wispro.sp.entity.Staff", b =>
  2747. {
  2748. b.HasOne("wispro.sp.entity.StaffGrade", "StaffGrade")
  2749. .WithMany("Staff")
  2750. .HasForeignKey("StaffGradeId")
  2751. .HasConstraintName("FK_Staff_StaffGrade");
  2752. b.Navigation("StaffGrade");
  2753. });
  2754. modelBuilder.Entity("wispro.sp.entity.VerifyCoefficient", b =>
  2755. {
  2756. b.HasOne("wispro.sp.entity.StaffGrade", "Checker")
  2757. .WithMany("VerifyCoefficientCheckers")
  2758. .HasForeignKey("CheckerId")
  2759. .HasConstraintName("FK_VerifyCoefficient_StaffGrade")
  2760. .IsRequired();
  2761. b.HasOne("wispro.sp.entity.StaffGrade", "DoPerson")
  2762. .WithMany("VerifyCoefficientDoPeople")
  2763. .HasForeignKey("DoPersonId")
  2764. .HasConstraintName("FK_VerifyCoefficient_StaffGrade1")
  2765. .IsRequired();
  2766. b.Navigation("Checker");
  2767. b.Navigation("DoPerson");
  2768. });
  2769. modelBuilder.Entity("wispro.sp.entity.workflowDefine.Action", b =>
  2770. {
  2771. b.HasOne("wispro.sp.entity.workflowDefine.Step", "step")
  2772. .WithMany()
  2773. .HasForeignKey("StepId")
  2774. .OnDelete(DeleteBehavior.Cascade)
  2775. .IsRequired();
  2776. b.Navigation("step");
  2777. });
  2778. modelBuilder.Entity("wispro.sp.entity.workflowDefine.InputValueSetting", b =>
  2779. {
  2780. b.HasOne("wispro.sp.entity.workflowDefine.InputValueSetting", "ParentSetting")
  2781. .WithMany()
  2782. .HasForeignKey("ParentSettingId");
  2783. b.HasOne("wispro.sp.entity.workflowDefine.Action", "action")
  2784. .WithMany("inputValuesSettings")
  2785. .HasForeignKey("actionId")
  2786. .OnDelete(DeleteBehavior.NoAction)
  2787. .IsRequired();
  2788. b.Navigation("action");
  2789. b.Navigation("ParentSetting");
  2790. });
  2791. modelBuilder.Entity("wispro.sp.entity.workflowDefine.Step", b =>
  2792. {
  2793. b.HasOne("wispro.sp.entity.workflowDefine.Workflow", "workflow")
  2794. .WithMany()
  2795. .HasForeignKey("workflowId")
  2796. .OnDelete(DeleteBehavior.Cascade)
  2797. .IsRequired();
  2798. b.Navigation("workflow");
  2799. });
  2800. modelBuilder.Entity("wispro.sp.entity.workflowDefine.TrasferCondition", b =>
  2801. {
  2802. b.HasOne("wispro.sp.entity.workflowDefine.Step", "Step")
  2803. .WithMany()
  2804. .HasForeignKey("StepId")
  2805. .OnDelete(DeleteBehavior.NoAction)
  2806. .IsRequired();
  2807. b.HasOne("wispro.sp.entity.workflowDefine.Step", "nextStep")
  2808. .WithMany()
  2809. .HasForeignKey("nextStepId")
  2810. .OnDelete(DeleteBehavior.NoAction)
  2811. .IsRequired();
  2812. b.Navigation("nextStep");
  2813. b.Navigation("Step");
  2814. });
  2815. modelBuilder.Entity("wispro.sp.entity.workflowDefine.Workflow", b =>
  2816. {
  2817. b.HasOne("wispro.sp.entity.workflowDefine.Action", "InitAction")
  2818. .WithMany()
  2819. .HasForeignKey("InitActionId")
  2820. .OnDelete(DeleteBehavior.NoAction)
  2821. .IsRequired();
  2822. b.Navigation("InitAction");
  2823. });
  2824. modelBuilder.Entity("wispro.sp.entity.workflowInstance.InputValue", b =>
  2825. {
  2826. b.HasOne("wispro.sp.entity.workflowDefine.InputValueSetting", "valueSetting")
  2827. .WithMany()
  2828. .HasForeignKey("valueSettingId")
  2829. .OnDelete(DeleteBehavior.Cascade)
  2830. .IsRequired();
  2831. b.HasOne("wispro.sp.entity.workflowInstance.WorkflowInstance", "workflowInstance")
  2832. .WithMany()
  2833. .HasForeignKey("workflowInstanceId")
  2834. .OnDelete(DeleteBehavior.Cascade)
  2835. .IsRequired();
  2836. b.Navigation("valueSetting");
  2837. b.Navigation("workflowInstance");
  2838. });
  2839. modelBuilder.Entity("wispro.sp.entity.workflowInstance.StepInstance", b =>
  2840. {
  2841. b.HasOne("wispro.sp.entity.workflowDefine.Step", "Step")
  2842. .WithMany()
  2843. .HasForeignKey("stepId")
  2844. .OnDelete(DeleteBehavior.Cascade)
  2845. .IsRequired();
  2846. b.HasOne("wispro.sp.entity.workflowInstance.WorkflowInstance", "workflowInstance")
  2847. .WithMany()
  2848. .HasForeignKey("workflowInstanceId")
  2849. .OnDelete(DeleteBehavior.NoAction)
  2850. .IsRequired();
  2851. b.Navigation("Step");
  2852. b.Navigation("workflowInstance");
  2853. });
  2854. modelBuilder.Entity("wispro.sp.entity.workflowInstance.WorkflowInstance", b =>
  2855. {
  2856. b.HasOne("wispro.sp.entity.workflowDefine.Workflow", "workflow")
  2857. .WithMany()
  2858. .HasForeignKey("workflowId")
  2859. .OnDelete(DeleteBehavior.Cascade)
  2860. .IsRequired();
  2861. b.Navigation("workflow");
  2862. });
  2863. modelBuilder.Entity("wispro.sp.entity.AppealRecord", b =>
  2864. {
  2865. b.Navigation("AttachFiles");
  2866. });
  2867. modelBuilder.Entity("wispro.sp.entity.CalMonth", b =>
  2868. {
  2869. b.Navigation("PerformanceItems");
  2870. });
  2871. modelBuilder.Entity("wispro.sp.entity.Customer", b =>
  2872. {
  2873. b.Navigation("PerformanceItems");
  2874. });
  2875. modelBuilder.Entity("wispro.sp.entity.InputField", b =>
  2876. {
  2877. b.Navigation("SelectValues");
  2878. });
  2879. modelBuilder.Entity("wispro.sp.entity.Message", b =>
  2880. {
  2881. b.Navigation("RelatedItem");
  2882. b.Navigation("To");
  2883. });
  2884. modelBuilder.Entity("wispro.sp.entity.PerformanceItem", b =>
  2885. {
  2886. b.Navigation("ItemStaffs");
  2887. });
  2888. modelBuilder.Entity("wispro.sp.entity.Staff", b =>
  2889. {
  2890. b.Navigation("Customers");
  2891. b.Navigation("ItemStaffs");
  2892. b.Navigation("Positions");
  2893. b.Navigation("ReviewerItems");
  2894. });
  2895. modelBuilder.Entity("wispro.sp.entity.StaffGrade", b =>
  2896. {
  2897. b.Navigation("Staff");
  2898. b.Navigation("VerifyCoefficientCheckers");
  2899. b.Navigation("VerifyCoefficientDoPeople");
  2900. });
  2901. modelBuilder.Entity("wispro.sp.entity.workflowDefine.Action", b =>
  2902. {
  2903. b.Navigation("inputValuesSettings");
  2904. });
  2905. #pragma warning restore 612, 618
  2906. }
  2907. }
  2908. }