spDbContextModelSnapshot.cs 95 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329
  1. // <auto-generated />
  2. using System;
  3. using Microsoft.EntityFrameworkCore;
  4. using Microsoft.EntityFrameworkCore.Infrastructure;
  5. using Microsoft.EntityFrameworkCore.Metadata;
  6. using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
  7. using wispro.sp.api;
  8. namespace wispro.sp.api.Migrations
  9. {
  10. [DbContext(typeof(spDbContext))]
  11. partial class spDbContextModelSnapshot : ModelSnapshot
  12. {
  13. protected override void BuildModel(ModelBuilder modelBuilder)
  14. {
  15. #pragma warning disable 612, 618
  16. modelBuilder
  17. .HasAnnotation("Relational:MaxIdentifierLength", 128)
  18. .HasAnnotation("ProductVersion", "5.0.9")
  19. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  20. modelBuilder.Entity("wispro.sp.entity.AppealRecord", b =>
  21. {
  22. b.Property<int>("Id")
  23. .ValueGeneratedOnAdd()
  24. .HasColumnType("int")
  25. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  26. b.Property<DateTime>("CreateTime")
  27. .HasColumnType("datetime2");
  28. b.Property<int>("CreaterId")
  29. .HasColumnType("int");
  30. b.Property<string>("Reason")
  31. .HasMaxLength(500)
  32. .HasColumnType("nvarchar(500)");
  33. b.Property<DateTime?>("ReviewTime")
  34. .HasColumnType("datetime2");
  35. b.Property<int>("ReviewerId")
  36. .HasColumnType("int");
  37. b.Property<string>("ReviewerMemo")
  38. .HasColumnType("nvarchar(max)");
  39. b.Property<int>("State")
  40. .HasColumnType("int");
  41. b.Property<int>("TypeId")
  42. .HasColumnType("int");
  43. b.HasKey("Id");
  44. b.HasIndex("CreaterId");
  45. b.HasIndex("ReviewerId");
  46. b.HasIndex("TypeId");
  47. b.ToTable("AppealRecord");
  48. });
  49. modelBuilder.Entity("wispro.sp.entity.AppealType", b =>
  50. {
  51. b.Property<int>("Id")
  52. .ValueGeneratedOnAdd()
  53. .HasColumnType("int")
  54. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  55. b.Property<string>("CanDoExpress")
  56. .HasMaxLength(500)
  57. .HasColumnType("nvarchar(500)");
  58. b.Property<string>("Name")
  59. .HasMaxLength(50)
  60. .HasColumnType("nvarchar(50)");
  61. b.Property<string>("ReviewerExpress")
  62. .HasMaxLength(500)
  63. .HasColumnType("nvarchar(500)");
  64. b.HasKey("Id");
  65. b.ToTable("AppealType");
  66. });
  67. modelBuilder.Entity("wispro.sp.entity.AttachFile", b =>
  68. {
  69. b.Property<Guid>("Id")
  70. .ValueGeneratedOnAdd()
  71. .HasColumnType("uniqueidentifier");
  72. b.Property<int>("AppealRecordId")
  73. .HasColumnType("int");
  74. b.Property<int?>("AppealRecordId1")
  75. .HasColumnType("int");
  76. b.Property<string>("Name")
  77. .HasMaxLength(200)
  78. .HasColumnType("nvarchar(200)");
  79. b.Property<string>("SavePath")
  80. .HasMaxLength(200)
  81. .HasColumnType("nvarchar(200)");
  82. b.Property<int>("UploadUserId")
  83. .HasColumnType("int");
  84. b.HasKey("Id");
  85. b.HasIndex("AppealRecordId");
  86. b.HasIndex("AppealRecordId1");
  87. b.HasIndex("UploadUserId");
  88. b.ToTable("AttachFile");
  89. });
  90. modelBuilder.Entity("wispro.sp.entity.BasePointRule", b =>
  91. {
  92. b.Property<int>("Id")
  93. .ValueGeneratedOnAdd()
  94. .HasColumnType("int")
  95. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  96. b.Property<string>("PointExpress")
  97. .HasMaxLength(100)
  98. .HasColumnType("nvarchar(100)");
  99. b.Property<int>("Priority")
  100. .HasColumnType("int");
  101. b.Property<string>("Rule")
  102. .HasMaxLength(1000)
  103. .HasColumnType("nvarchar(1000)");
  104. b.Property<string>("Type")
  105. .HasMaxLength(20)
  106. .HasColumnType("nvarchar(20)");
  107. b.HasKey("Id");
  108. b.ToTable("BasePointRule");
  109. b.HasData(
  110. new
  111. {
  112. Id = 1,
  113. PointExpress = "0.2",
  114. Priority = 1,
  115. Rule = "p.ApplicationType==\"外观设计\"",
  116. Type = "新申请"
  117. },
  118. new
  119. {
  120. Id = 2,
  121. PointExpress = "0.2",
  122. Priority = 2,
  123. Rule = "p.AgentFeedbackMemo==\"检索结案\"",
  124. Type = "新申请"
  125. },
  126. new
  127. {
  128. Id = 3,
  129. PointExpress = "0.0",
  130. Priority = 3,
  131. Rule = "p.AgentFeedbackMemo==\"撰写中客户取消申请\"",
  132. Type = "新申请"
  133. },
  134. new
  135. {
  136. Id = 4,
  137. PointExpress = "0.49",
  138. Priority = 4,
  139. Rule = "p.ApplicationType==\"实用新型\" && p.CaseNo.StartsWith(\"PACN\") && p.AgentFeedbackMemo==\"发文后客户取消申请\"",
  140. Type = "新申请"
  141. },
  142. new
  143. {
  144. Id = 5,
  145. PointExpress = "0.7",
  146. Priority = 5,
  147. Rule = "p.ApplicationType==\"发明\" && p.CaseNo.StartsWith(\"PACN\") && p.AgentFeedbackMemo==\"发文后客户取消申请\"",
  148. Type = "新申请"
  149. },
  150. new
  151. {
  152. Id = 6,
  153. PointExpress = "1.33",
  154. Priority = 6,
  155. Rule = "p.CaseNo.StartsWith(\"PADE\") && p.AgentFeedbackMemo==\"发文后客户原因取消申请,系统结案\"",
  156. Type = "新申请"
  157. },
  158. new
  159. {
  160. Id = 7,
  161. PointExpress = "1.26",
  162. Priority = 7,
  163. Rule = "p.CaseNo.StartsWith(\"PAUS\") && p.AgentFeedbackMemo==\"发文后客户原因取消申请,系统结案\"",
  164. Type = "新申请"
  165. },
  166. new
  167. {
  168. Id = 8,
  169. PointExpress = "0.0",
  170. Priority = 8,
  171. Rule = "p.AgentFeedbackMemo==\"我方代交\"",
  172. Type = "新申请"
  173. },
  174. new
  175. {
  176. Id = 9,
  177. PointExpress = "0.2",
  178. Priority = 9,
  179. Rule = "p.AgentFeedbackMemo==\"我方转格式、复核\"",
  180. Type = "新申请"
  181. },
  182. new
  183. {
  184. Id = 10,
  185. PointExpress = "1.8",
  186. Priority = 10,
  187. Rule = "p.DoItem==\"新申请\" && p.AgentFeedbackMemo==\"PCT首次英文案\"",
  188. Type = "新申请"
  189. },
  190. new
  191. {
  192. Id = 11,
  193. PointExpress = "0.3",
  194. Priority = 11,
  195. Rule = "p.DoItem==\"新申请\" && p.AgentFeedbackMemo==\"改权\"",
  196. Type = "新申请"
  197. },
  198. new
  199. {
  200. Id = 12,
  201. PointExpress = "0.5",
  202. Priority = 12,
  203. Rule = "p.DoItem==\"新申请\" && p.AgentFeedbackMemo==\"改权+改说明书\"",
  204. Type = "新申请"
  205. },
  206. new
  207. {
  208. Id = 13,
  209. PointExpress = "0.7",
  210. Priority = 13,
  211. Rule = "p.DoItem==\"新申请\" && p.AgentFeedbackMemo==\"涉外实质改权\"",
  212. Type = "新申请"
  213. },
  214. new
  215. {
  216. Id = 14,
  217. PointExpress = "1.0",
  218. Priority = 14,
  219. Rule = "p.DoItem==\"新申请\" && p.AgentFeedbackMemo==\"首次中文案\"",
  220. Type = "新申请"
  221. },
  222. new
  223. {
  224. Id = 15,
  225. PointExpress = "1.5",
  226. Priority = 15,
  227. Rule = "p.DoItem==\"新申请\" && p.AgentFeedbackMemo==\"外-内首次申请\"",
  228. Type = "新申请"
  229. },
  230. new
  231. {
  232. Id = 16,
  233. PointExpress = "0.1",
  234. Priority = 16,
  235. Rule = "p.DoItem==\"新申请\" && p.AgentFeedbackMemo==\"转格式\"",
  236. Type = "新申请"
  237. },
  238. new
  239. {
  240. Id = 17,
  241. PointExpress = "0.1",
  242. Priority = 17,
  243. Rule = "p.DoItem==\"新申请\" && p.ApplicationType==\"发明\" && p.CaseNo.StartsWith(\"PATW\") && p.AgentFeedbackMemo==\"同套大陆+台湾\"",
  244. Type = "新申请"
  245. },
  246. new
  247. {
  248. Id = 18,
  249. PointExpress = "0.7",
  250. Priority = 18,
  251. Rule = "p.DoItem==\"新申请\" && p.ApplicationType==\"实用新型\" && p.CaseNo.StartsWith(\"PACN\") && p.AgentFeedbackMemo==\"同套大陆+台湾\"",
  252. Type = "新申请"
  253. },
  254. new
  255. {
  256. Id = 19,
  257. PointExpress = "0.1",
  258. Priority = 19,
  259. Rule = "p.DoItem==\"新申请\" && p.ApplicationType==\"实用新型\" && p.CaseNo.StartsWith(\"PATW\") && p.AgentFeedbackMemo==\"同套大陆+台湾\"",
  260. Type = "新申请"
  261. },
  262. new
  263. {
  264. Id = 20,
  265. PointExpress = "0.2",
  266. Priority = 20,
  267. Rule = "p.DoItem==\"新申请\" && p.CaseNo.StartsWith(\"PACN\") && p.AgentFeedbackMemo==\"台湾案转大陆案\"",
  268. Type = "新申请"
  269. },
  270. new
  271. {
  272. Id = 21,
  273. PointExpress = "1.0",
  274. Priority = 21,
  275. Rule = "p.DoItem==\"新申请\" && p.ApplicationType==\"发明\" && p.CaseNo.StartsWith(\"PACN\") && p.AgentFeedbackMemo==\"同套大陆+台湾\"",
  276. Type = "新申请"
  277. },
  278. new
  279. {
  280. Id = 22,
  281. PointExpress = "0.2",
  282. Priority = 22,
  283. Rule = "p.DoItem==\"新申请\" && p.CaseNo.StartsWith(\"PATW\") && p.AgentFeedbackMemo==\"大陆案转台湾案\"",
  284. Type = "新申请"
  285. },
  286. new
  287. {
  288. Id = 23,
  289. PointExpress = "1.8",
  290. Priority = 23,
  291. Rule = "p.DoItem==\"新申请\" && p.ApplicationType==\"发明\" && p.CaseNo.StartsWith(\"PAEPO\")",
  292. Type = "新申请"
  293. },
  294. new
  295. {
  296. Id = 24,
  297. PointExpress = "0.3",
  298. Priority = 24,
  299. Rule = "p.DoItem==\"新申请\" && p.ApplicationType==\"发明\" && p.CaseNo.StartsWith(\"PACN\") && p.CaseNo.EndsWith(\"-分案\")",
  300. Type = "新申请"
  301. },
  302. new
  303. {
  304. Id = 25,
  305. PointExpress = "0.5",
  306. Priority = 25,
  307. Rule = "p.CaseNo.StartsWith(\"PAUS\") && (p.CaseNo.EndsWith(\"-同套\") || p.CaseNo.EndsWith(\"CA\") || p.CaseNo.EndsWith(\"CIP\") || p.CaseNo.EndsWith(\"分案\")) ",
  308. Type = "新申请"
  309. },
  310. new
  311. {
  312. Id = 26,
  313. PointExpress = "1.0",
  314. Priority = 26,
  315. Rule = "p.DoItem==\"新申请\" && p.ApplicationType==\"发明\" && p.CaseNo.StartsWith(\"PACN\") && p.CaseNo.EndsWith(\"-TS\")",
  316. Type = "新申请"
  317. },
  318. new
  319. {
  320. Id = 27,
  321. PointExpress = "0.1",
  322. Priority = 27,
  323. Rule = "p.DoItem==\"新申请\" && p.ApplicationType==\"实用新型\" && p.CaseNo.StartsWith(\"PACN\") && p.CaseNo.EndsWith(\"-TS\")",
  324. Type = "新申请"
  325. },
  326. new
  327. {
  328. Id = 28,
  329. PointExpress = "1.0",
  330. Priority = 28,
  331. Rule = "p.DoItem==\"新申请\" && p.ApplicationType==\"发明\" && p.CaseNo.StartsWith(\"PACN\")",
  332. Type = "新申请"
  333. },
  334. new
  335. {
  336. Id = 29,
  337. PointExpress = "1.0",
  338. Priority = 30,
  339. Rule = "p.DoItem==\"新申请\" && p.ApplicationType==\"实用新型\" && p.CaseNo.StartsWith(\"PACN\") && p.Customer.Name.Contains(\"OPPO\")",
  340. Type = "新申请"
  341. },
  342. new
  343. {
  344. Id = 30,
  345. PointExpress = "0.7",
  346. Priority = 29,
  347. Rule = "p.DoItem==\"新申请\" && p.ApplicationType==\"实用新型\" && p.CaseNo.StartsWith(\"PACN\")",
  348. Type = "新申请"
  349. },
  350. new
  351. {
  352. Id = 31,
  353. PointExpress = "1.9",
  354. Priority = 31,
  355. Rule = "p.DoItem==\"新申请\" && p.ApplicationType==\"发明\" && p.CaseNo.StartsWith(\"PADE\")",
  356. Type = "新申请"
  357. },
  358. new
  359. {
  360. Id = 32,
  361. PointExpress = "1.9",
  362. Priority = 32,
  363. Rule = "p.DoItem==\"新申请\" && p.ApplicationType==\"实用新型\" && p.CaseNo.StartsWith(\"PADE\")",
  364. Type = "新申请"
  365. },
  366. new
  367. {
  368. Id = 33,
  369. PointExpress = "0.2",
  370. Priority = 33,
  371. Rule = "p.DoItem==\"新申请\" && p.ApplicationType==\"发明\" && p.CaseNo.StartsWith(\"PAEPO\")",
  372. Type = "新申请"
  373. },
  374. new
  375. {
  376. Id = 34,
  377. PointExpress = "1.8",
  378. Priority = 34,
  379. Rule = "p.DoItem==\"新申请\" && p.ApplicationType==\"发明\" && p.CaseNo.StartsWith(\"PAGB\")",
  380. Type = "新申请"
  381. },
  382. new
  383. {
  384. Id = 35,
  385. PointExpress = "1.7",
  386. Priority = 36,
  387. Rule = "p.DoItem==\"新申请\" && p.ApplicationType==\"发明\" && p.CaseNo.StartsWith(\"PAUS\") && p.Customer.Name.Contains(\"OPPO\")",
  388. Type = "新申请"
  389. },
  390. new
  391. {
  392. Id = 36,
  393. PointExpress = "1.8",
  394. Priority = 35,
  395. Rule = "p.DoItem==\"新申请\" && p.ApplicationType==\"发明\" && p.CaseNo.StartsWith(\"PAUS\")",
  396. Type = "新申请"
  397. },
  398. new
  399. {
  400. Id = 37,
  401. PointExpress = "1.5",
  402. Priority = 37,
  403. Rule = "p.DoItem==\"新申请\" && p.ApplicationType==\"发明\" && p.CaseNo.StartsWith(\"PCTCN\")",
  404. Type = "新申请"
  405. },
  406. new
  407. {
  408. Id = 38,
  409. PointExpress = "0.0",
  410. Priority = 38,
  411. Rule = "(p.ApplicationType==\"实用新型\" || p.ApplicationType==\"发明\") && p.CaseNo.StartsWith(\"PACN\") && p.AgentFeedbackMemo==\"客户不进行答辩\"",
  412. Type = "新申请"
  413. },
  414. new
  415. {
  416. Id = 39,
  417. PointExpress = "p.WordCount/1000*0.1",
  418. Priority = 39,
  419. Rule = "p.DoItem==\"新申请\") && p.AgentFeedbackMemo==\"英-中\" && p.WordCount !=null",
  420. Type = "新申请"
  421. },
  422. new
  423. {
  424. Id = 40,
  425. PointExpress = "p.WordCount/1000*0.16",
  426. Priority = 40,
  427. Rule = "p.DoItem==\"新申请\") && p.AgentFeedbackMemo==\"中-英\" && p.WordCount !=null",
  428. Type = "新申请"
  429. },
  430. new
  431. {
  432. Id = 41,
  433. PointExpress = "p.WordCount/1000*0.18",
  434. Priority = 41,
  435. Rule = "p.DoItem==\"新申请\") && p.AgentFeedbackMemo==\"中-德\" && p.WordCount !=null",
  436. Type = "新申请"
  437. },
  438. new
  439. {
  440. Id = 42,
  441. PointExpress = "0.1",
  442. Priority = 42,
  443. Rule = "p.AgentFeedbackMemo==\"涉外OA不答辩,发报导函结案\"",
  444. Type = "OA"
  445. },
  446. new
  447. {
  448. Id = 43,
  449. PointExpress = "0.2",
  450. Priority = 43,
  451. Rule = "p.ApplicationType==\"外观设计\"",
  452. Type = "OA"
  453. },
  454. new
  455. {
  456. Id = 44,
  457. PointExpress = "0.0",
  458. Priority = 44,
  459. Rule = "p.DoItem==\"处理审查意见\" && p.ApplicationType==\"实用新型\" && p.AgentFeedbackMemo==\"不请款\"",
  460. Type = "OA"
  461. },
  462. new
  463. {
  464. Id = 45,
  465. PointExpress = "0.0",
  466. Priority = 45,
  467. Rule = "p.ApplicationType==\"实用新型\" && p.DoItemCoefficient==\"实质\" && (p.CaseStage==\"三通\" || p.CaseStage==\"四通\" || p.CaseStage==\"五通\" || p.CaseStage==\"六通\" || p.CaseStage==\"七通\" || p.CaseStage==\"八通\") ",
  468. Type = "OA"
  469. },
  470. new
  471. {
  472. Id = 46,
  473. PointExpress = "0.14",
  474. Priority = 46,
  475. Rule = "p.ApplicationType==\"实用新型\" && p.DoItemCoefficient==\"实质\" && p.CaseStage==\"二通\" && p.AgentFeedbackMemo==\"请款\"",
  476. Type = "OA"
  477. },
  478. new
  479. {
  480. Id = 47,
  481. PointExpress = "0.35",
  482. Priority = 47,
  483. Rule = "p.ApplicationType==\"实用新型\" && p.DoItemCoefficient==\"实质\" && p.CaseStage==\"一通\" && p.AgentFeedbackMemo==\"请款\"",
  484. Type = "OA"
  485. },
  486. new
  487. {
  488. Id = 48,
  489. PointExpress = "0.35",
  490. Priority = 48,
  491. Rule = "p.DoItem==\"请求复审\" && p.ApplicationType==\"实用新型\" && p.AgentFeedbackMemo==\"请款\"",
  492. Type = "OA"
  493. },
  494. new
  495. {
  496. Id = 49,
  497. PointExpress = "0.3",
  498. Priority = 49,
  499. Rule = "p.DoItem==\"处理审查意见\" && p.ApplicationType==\"发明\" && p.DoItemCoefficient==\"非实质\" && p.AgentFeedbackMemo==\"外所/他人首次转入OA\"",
  500. Type = "OA"
  501. },
  502. new
  503. {
  504. Id = 50,
  505. PointExpress = "0.5",
  506. Priority = 50,
  507. Rule = "p.DoItem==\"处理审查意见\" && p.ApplicationType==\"发明\" && p.DoItemCoefficient==\"实质\" && p.AgentFeedbackMemo==\"外所/他人首次转入OA\"",
  508. Type = "OA"
  509. },
  510. new
  511. {
  512. Id = 51,
  513. PointExpress = "0.2",
  514. Priority = 51,
  515. Rule = "p.DoItem==\"处理审查意见\" && p.ApplicationType==\"发明\" && p.DoItemCoefficient==\"形式\" && p.AgentFeedbackMemo==\"外所/他人首次转入OA\"",
  516. Type = "OA"
  517. },
  518. new
  519. {
  520. Id = 52,
  521. PointExpress = "0.5",
  522. Priority = 52,
  523. Rule = "p.DoItem==\"处理审查意见\" && p.DoItemCoefficient==\"实质\" && p.AgentFeedbackMemo==\"客户提供答辩点,撰写英文报导函\"",
  524. Type = "OA"
  525. },
  526. new
  527. {
  528. Id = 53,
  529. PointExpress = "0.8",
  530. Priority = 53,
  531. Rule = "p.DoItem==\"处理审查意见\" && p.DoItemCoefficient==\"实质\" && p.AgentFeedbackMemo==\"客户未提供答辩点,撰写英文报导函\"",
  532. Type = "OA"
  533. },
  534. new
  535. {
  536. Id = 54,
  537. PointExpress = "1.5",
  538. Priority = 54,
  539. Rule = "p.DoItem==\"Advisory Action\" && p.DoItemCoefficient==\"实质\"",
  540. Type = "OA"
  541. },
  542. new
  543. {
  544. Id = 55,
  545. PointExpress = "0.2",
  546. Priority = 55,
  547. Rule = "p.DoItem==\"Advisory Action\" && p.DoItemCoefficient==\"形式\"",
  548. Type = "OA"
  549. },
  550. new
  551. {
  552. Id = 56,
  553. PointExpress = "1.5",
  554. Priority = 56,
  555. Rule = "p.DoItem==\"Final Action\" && p.DoItemCoefficient==\"实质\"",
  556. Type = "OA"
  557. },
  558. new
  559. {
  560. Id = 57,
  561. PointExpress = "0.2",
  562. Priority = 57,
  563. Rule = "p.DoItem==\"Final Action\" && p.DoItemCoefficient==\"形式\"",
  564. Type = "OA"
  565. },
  566. new
  567. {
  568. Id = 58,
  569. PointExpress = "0.1",
  570. Priority = 58,
  571. Rule = "p.DoItem==\"form 3\"",
  572. Type = "OA"
  573. },
  574. new
  575. {
  576. Id = 59,
  577. PointExpress = "0.1",
  578. Priority = 59,
  579. Rule = "p.DoItem==\"form 3-8(2)\" || p.DoItem==\"Form 3-8(2)\"",
  580. Type = "OA"
  581. },
  582. new
  583. {
  584. Id = 60,
  585. PointExpress = "1.5",
  586. Priority = 60,
  587. Rule = "p.DoItem==\"Non Final Action\" && p.DoItemCoefficient==\"实质\"",
  588. Type = "OA"
  589. },
  590. new
  591. {
  592. Id = 61,
  593. PointExpress = "0.2",
  594. Priority = 61,
  595. Rule = "p.DoItem==\"Non Final Action\" && p.DoItemCoefficient==\"形式\"",
  596. Type = "OA"
  597. },
  598. new
  599. {
  600. Id = 62,
  601. PointExpress = "1.5",
  602. Priority = 62,
  603. Rule = "p.DoItem==\"RCE\" && p.DoItemCoefficient==\"实质\"",
  604. Type = "OA"
  605. },
  606. new
  607. {
  608. Id = 63,
  609. PointExpress = "0.2",
  610. Priority = 63,
  611. Rule = "p.DoItem==\"RCE\" && p.DoItemCoefficient==\"形式\"",
  612. Type = "OA"
  613. },
  614. new
  615. {
  616. Id = 64,
  617. PointExpress = "1.5",
  618. Priority = 64,
  619. Rule = "p.DoItem==\"欧洲案答辩\" && p.DoItemCoefficient==\"实质\"",
  620. Type = "OA"
  621. },
  622. new
  623. {
  624. Id = 65,
  625. PointExpress = "0.2",
  626. Priority = 65,
  627. Rule = "p.DoItem==\"欧洲案答辩\" && p.DoItemCoefficient==\"形式\"",
  628. Type = "OA"
  629. },
  630. new
  631. {
  632. Id = 66,
  633. PointExpress = "0.2",
  634. Priority = 66,
  635. Rule = "p.DoItem==\"口审评估\" && p.DoItemCoefficient==\"非实质\"",
  636. Type = "OA"
  637. },
  638. new
  639. {
  640. Id = 67,
  641. PointExpress = "1.5",
  642. Priority = 67,
  643. Rule = "p.DoItem==\"口审评估\" && p.DoItemCoefficient==\"实质\"",
  644. Type = "OA"
  645. },
  646. new
  647. {
  648. Id = 68,
  649. PointExpress = "1.5",
  650. Priority = 68,
  651. Rule = "p.DoItem==\"处理审查意见\" && p.DoItemCoefficient==\"实质\" && p.CaseNo.StartsWith(\"PAUS\")",
  652. Type = "OA"
  653. },
  654. new
  655. {
  656. Id = 69,
  657. PointExpress = "0.2",
  658. Priority = 69,
  659. Rule = "p.DoItem==\"处理审查意见\" && p.DoItemCoefficient==\"形式\" && p.CaseNo.StartsWith(\"PAUS\")",
  660. Type = "OA"
  661. },
  662. new
  663. {
  664. Id = 70,
  665. PointExpress = "1.5",
  666. Priority = 70,
  667. Rule = "p.DoItem==\"处理审查意见\" && p.DoItemCoefficient==\"实质\" && p.CaseNo.StartsWith(\"PAAU\")",
  668. Type = "OA"
  669. },
  670. new
  671. {
  672. Id = 71,
  673. PointExpress = "1.6",
  674. Priority = 71,
  675. Rule = "p.DoItem==\"处理审查意见\" && p.DoItemCoefficient==\"实质\" && p.CaseNo.StartsWith(\"PADE\")",
  676. Type = "OA"
  677. },
  678. new
  679. {
  680. Id = 72,
  681. PointExpress = "1.5",
  682. Priority = 72,
  683. Rule = "p.DoItem==\"处理审查意见\" && p.DoItemCoefficient==\"实质\" && p.CaseNo.StartsWith(\"PAEPO\")",
  684. Type = "OA"
  685. },
  686. new
  687. {
  688. Id = 73,
  689. PointExpress = "1.5",
  690. Priority = 73,
  691. Rule = "p.DoItem==\"处理审查意见\" && p.DoItemCoefficient==\"实质\" && p.CaseNo.StartsWith(\"PAGB\")",
  692. Type = "OA"
  693. },
  694. new
  695. {
  696. Id = 74,
  697. PointExpress = "1.5",
  698. Priority = 74,
  699. Rule = "p.DoItem==\"处理审查意见\" && p.DoItemCoefficient==\"实质\" && p.CaseNo.StartsWith(\"PAIN\")",
  700. Type = "OA"
  701. },
  702. new
  703. {
  704. Id = 75,
  705. PointExpress = "0.2",
  706. Priority = 75,
  707. Rule = "p.DoItem==\"处理审查意见\" && p.DoItemCoefficient==\"形式\" && p.CaseNo.StartsWith(\"PAAU\")",
  708. Type = "OA"
  709. },
  710. new
  711. {
  712. Id = 76,
  713. PointExpress = "0.3",
  714. Priority = 76,
  715. Rule = "p.DoItem==\"处理审查意见\" && p.DoItemCoefficient==\"形式\" && p.CaseNo.StartsWith(\"PADE\")",
  716. Type = "OA"
  717. },
  718. new
  719. {
  720. Id = 77,
  721. PointExpress = "0.2",
  722. Priority = 77,
  723. Rule = "p.DoItem==\"处理审查意见\" && p.DoItemCoefficient==\"形式\" && p.CaseNo.StartsWith(\"PAEPO\")",
  724. Type = "OA"
  725. },
  726. new
  727. {
  728. Id = 78,
  729. PointExpress = "0.2",
  730. Priority = 78,
  731. Rule = "p.DoItem==\"处理审查意见\" && p.DoItemCoefficient==\"形式\" && p.CaseNo.StartsWith(\"PAGB\")",
  732. Type = "OA"
  733. },
  734. new
  735. {
  736. Id = 79,
  737. PointExpress = "0.2",
  738. Priority = 79,
  739. Rule = "p.DoItem==\"处理审查意见\" && p.DoItemCoefficient==\"形式\" && p.CaseNo.StartsWith(\"PAIN\")",
  740. Type = "OA"
  741. },
  742. new
  743. {
  744. Id = 80,
  745. PointExpress = "0.5",
  746. Priority = 80,
  747. Rule = "p.DoItem==\"申復\" && p.DoItemCoefficient==\"实质\" && p.CaseNo.StartsWith(\"PATW\")",
  748. Type = "OA"
  749. },
  750. new
  751. {
  752. Id = 81,
  753. PointExpress = "0.2",
  754. Priority = 81,
  755. Rule = "p.DoItem==\"申復\" && p.DoItemCoefficient==\"形式\" && p.CaseNo.StartsWith(\"PATW\")",
  756. Type = "OA"
  757. },
  758. new
  759. {
  760. Id = 82,
  761. PointExpress = "0.5",
  762. Priority = 82,
  763. Rule = "p.DoItem==\"请求复审\" && p.ApplicationType==\"发明\" && p.CaseNo.StartsWith(\"PACN\")",
  764. Type = "OA"
  765. },
  766. new
  767. {
  768. Id = 83,
  769. PointExpress = "0.2",
  770. Priority = 83,
  771. Rule = "p.DoItem==\"意见陈述\" && p.ApplicationType==\"发明\" && p.CaseNo.StartsWith(\"PACN\") && p.CaseStage==\"复审\"",
  772. Type = "OA"
  773. },
  774. new
  775. {
  776. Id = 84,
  777. PointExpress = "0.3",
  778. Priority = 84,
  779. Rule = "p.DoItem==\"处理审查意见\" && p.ApplicationType==\"发明\" && p.DoItemCoefficient==\"非实质\" && p.CaseNo.StartsWith(\"PACN\") && p.CaseStage==\"一通\"",
  780. Type = "OA"
  781. },
  782. new
  783. {
  784. Id = 85,
  785. PointExpress = "0.5",
  786. Priority = 85,
  787. Rule = "p.DoItem==\"处理审查意见\" && p.ApplicationType==\"发明\" && p.DoItemCoefficient==\"实质\" && p.CaseNo.StartsWith(\"PACN\") && p.CaseStage==\"一通\"",
  788. Type = "OA"
  789. },
  790. new
  791. {
  792. Id = 86,
  793. PointExpress = "0.2",
  794. Priority = 86,
  795. Rule = "p.DoItem==\"处理审查意见\" && p.ApplicationType==\"发明\" && p.DoItemCoefficient==\"形式\" && p.CaseNo.StartsWith(\"PACN\") && p.CaseStage==\"一通\"",
  796. Type = "OA"
  797. },
  798. new
  799. {
  800. Id = 87,
  801. PointExpress = "0.3",
  802. Priority = 87,
  803. Rule = "p.DoItem==\"处理审查意见\" && p.ApplicationType==\"发明\" && p.DoItemCoefficient==\"非实质\" && p.CaseNo.StartsWith(\"PCTCN\") && p.CaseStage==\"一通\"",
  804. Type = "OA"
  805. },
  806. new
  807. {
  808. Id = 88,
  809. PointExpress = "0.5",
  810. Priority = 88,
  811. Rule = "p.DoItem==\"处理审查意见\" && p.ApplicationType==\"发明\" && p.DoItemCoefficient==\"实质\" && p.CaseNo.StartsWith(\"PCTCN\") && p.CaseStage==\"一通\"",
  812. Type = "OA"
  813. },
  814. new
  815. {
  816. Id = 89,
  817. PointExpress = "0.2",
  818. Priority = 89,
  819. Rule = "p.DoItem==\"处理审查意见\" && p.ApplicationType==\"发明\" && p.DoItemCoefficient==\"形式\" && p.CaseNo.StartsWith(\"PCTCN\") && p.CaseStage==\"一通\"",
  820. Type = "OA"
  821. },
  822. new
  823. {
  824. Id = 90,
  825. PointExpress = "0.2",
  826. Priority = 90,
  827. Rule = "p.DoItem==\"处理审查意见\" && p.ApplicationType==\"发明\" && p.CaseNo.StartsWith(\"PACN\") && p.CaseStage==\"二通\"",
  828. Type = "OA"
  829. },
  830. new
  831. {
  832. Id = 91,
  833. PointExpress = "0.2",
  834. Priority = 91,
  835. Rule = "p.DoItem==\"处理审查意见\" && p.ApplicationType==\"发明\" && p.CaseNo.StartsWith(\"PCTCN\") && p.CaseStage==\"二通\"",
  836. Type = "OA"
  837. },
  838. new
  839. {
  840. Id = 92,
  841. PointExpress = "0.0",
  842. Priority = 92,
  843. Rule = "p.DoItem==\"处理审查意见\" && p.ApplicationType==\"发明\" && p.CaseNo.StartsWith(\"PACN\") && (p.CaseStage==\"三通\" || p.CaseStage==\"四通\" || p.CaseStage==\"五通\")",
  844. Type = "OA"
  845. },
  846. new
  847. {
  848. Id = 93,
  849. PointExpress = "0.0",
  850. Priority = 93,
  851. Rule = "p.DoItem==\"处理审查意见\" && p.ApplicationType==\"发明\" && p.CaseNo.StartsWith(\"PCTCN\") && (p.CaseStage==\"三通\" || p.CaseStage==\"四通\" || p.CaseStage==\"五通\")",
  852. Type = "OA"
  853. },
  854. new
  855. {
  856. Id = 94,
  857. PointExpress = "0.2",
  858. Priority = 94,
  859. Rule = "p.DoItem==\"发明一次OA授权\" && p.ApplicationType==\"发明\"",
  860. Type = "一次OA授权"
  861. },
  862. new
  863. {
  864. Id = 95,
  865. PointExpress = "0.7",
  866. Priority = 95,
  867. Rule = "p.DoItem==\"翻译校核\" && p.DoItemCoefficient==\"实质\" && p.AgentFeedbackMemo==\"内-外\"",
  868. Type = "其它"
  869. },
  870. new
  871. {
  872. Id = 96,
  873. PointExpress = "0.5",
  874. Priority = 96,
  875. Rule = "p.DoItem==\"翻译校核\" && p.DoItemCoefficient==\"实质\" && p.AgentFeedbackMemo==\"外-内\"",
  876. Type = "其它"
  877. },
  878. new
  879. {
  880. Id = 97,
  881. PointExpress = "0.3",
  882. Priority = 97,
  883. Rule = "p.DoItem==\"翻译校核\" && p.DoItemCoefficient==\"形式\" && p.AgentFeedbackMemo==\"内-外\"",
  884. Type = "其它"
  885. },
  886. new
  887. {
  888. Id = 98,
  889. PointExpress = "0.2",
  890. Priority = 98,
  891. Rule = "p.DoItem==\"翻译校核\" && p.DoItemCoefficient==\"形式\" && p.AgentFeedbackMemo==\"外-内\"",
  892. Type = "其它"
  893. },
  894. new
  895. {
  896. Id = 99,
  897. PointExpress = "0.1",
  898. Priority = 99,
  899. Rule = "p.AgentFeedbackMemo==\"检索结案\"",
  900. Type = "其它"
  901. },
  902. new
  903. {
  904. Id = 100,
  905. PointExpress = "0.0",
  906. Priority = 100,
  907. Rule = "p.DoItem==\"内部检索\"",
  908. Type = "其它"
  909. },
  910. new
  911. {
  912. Id = 101,
  913. PointExpress = "0.2",
  914. Priority = 101,
  915. Rule = "p.DoItem.Contains(\"补正\") && p.CaseNo.StartsWith(\"PAAU\")",
  916. Type = "其它"
  917. },
  918. new
  919. {
  920. Id = 102,
  921. PointExpress = "0.0",
  922. Priority = 102,
  923. Rule = "p.DoItem.Contains(\"补正\") && p.CaseNo.StartsWith(\"PACN\")",
  924. Type = "其它"
  925. },
  926. new
  927. {
  928. Id = 103,
  929. PointExpress = "0.0",
  930. Priority = 103,
  931. Rule = "p.DoItem.Contains(\"补正\") && p.CaseNo.StartsWith(\"PCTCN\")",
  932. Type = "其它"
  933. },
  934. new
  935. {
  936. Id = 104,
  937. PointExpress = "0.0",
  938. Priority = 104,
  939. Rule = "p.DoItem.Contains(\"补正\") && p.CaseNo.StartsWith(\"WOCN\")",
  940. Type = "其它"
  941. },
  942. new
  943. {
  944. Id = 105,
  945. PointExpress = "0.2",
  946. Priority = 105,
  947. Rule = "p.DoItem.Contains(\"补正\") && p.CaseNo.StartsWith(\"PADE\")",
  948. Type = "其它"
  949. },
  950. new
  951. {
  952. Id = 106,
  953. PointExpress = "0.2",
  954. Priority = 106,
  955. Rule = "p.DoItem.Contains(\"补正\") && p.CaseNo.StartsWith(\"PAEPO\")",
  956. Type = "其它"
  957. },
  958. new
  959. {
  960. Id = 107,
  961. PointExpress = "0.2",
  962. Priority = 107,
  963. Rule = "p.DoItem.Contains(\"补正\") && p.CaseNo.StartsWith(\"PAGB\")",
  964. Type = "其它"
  965. },
  966. new
  967. {
  968. Id = 108,
  969. PointExpress = "0.2",
  970. Priority = 108,
  971. Rule = "p.DoItem.Contains(\"补正\") && p.CaseNo.StartsWith(\"PAIN\")",
  972. Type = "其它"
  973. },
  974. new
  975. {
  976. Id = 109,
  977. PointExpress = "0.2",
  978. Priority = 109,
  979. Rule = "p.DoItem.Contains(\"补正\") && p.CaseNo.StartsWith(\"PAUS\")",
  980. Type = "其它"
  981. },
  982. new
  983. {
  984. Id = 110,
  985. PointExpress = "0.2",
  986. Priority = 110,
  987. Rule = "p.DoItem==\"Election Action\"",
  988. Type = "其它"
  989. },
  990. new
  991. {
  992. Id = 111,
  993. PointExpress = "0.2",
  994. Priority = 111,
  995. Rule = "p.DoItem==\"OA答辩校核\"",
  996. Type = "其它"
  997. },
  998. new
  999. {
  1000. Id = 112,
  1001. PointExpress = "0.1",
  1002. Priority = 112,
  1003. Rule = "p.DoItem==\"PPH\"",
  1004. Type = "其它"
  1005. },
  1006. new
  1007. {
  1008. Id = 113,
  1009. PointExpress = "0.0",
  1010. Priority = 113,
  1011. Rule = "p.DoItem==\"电询\" && p.CaseNo.StartsWith(\"PACN\")",
  1012. Type = "其它"
  1013. },
  1014. new
  1015. {
  1016. Id = 114,
  1017. PointExpress = "0.2",
  1018. Priority = 114,
  1019. Rule = "p.DoItem==\"电询\" && p.CaseNo.StartsWith(\"PAEPO\") ",
  1020. Type = "其它"
  1021. },
  1022. new
  1023. {
  1024. Id = 115,
  1025. PointExpress = "0.2",
  1026. Priority = 115,
  1027. Rule = "p.DoItem==\"电询\" && p.CaseNo.StartsWith(\"PAUS\")",
  1028. Type = "其它"
  1029. },
  1030. new
  1031. {
  1032. Id = 116,
  1033. PointExpress = "0.1",
  1034. Priority = 116,
  1035. Rule = "p.DoItem==\"分案评估\"",
  1036. Type = "其它"
  1037. },
  1038. new
  1039. {
  1040. Id = 117,
  1041. PointExpress = "0.2",
  1042. Priority = 117,
  1043. Rule = "p.DoItem==\"分案评估+分案\"",
  1044. Type = "其它"
  1045. },
  1046. new
  1047. {
  1048. Id = 118,
  1049. PointExpress = "0.0",
  1050. Priority = 118,
  1051. Rule = "p.DoItem==\"绘图\"",
  1052. Type = "其它"
  1053. },
  1054. new
  1055. {
  1056. Id = 119,
  1057. PointExpress = "0.0",
  1058. Priority = 119,
  1059. Rule = "p.DoItem==\"技术确认\"",
  1060. Type = "其它"
  1061. },
  1062. new
  1063. {
  1064. Id = 120,
  1065. PointExpress = "0.1",
  1066. Priority = 120,
  1067. Rule = "p.DoItem==\"提交ids\"",
  1068. Type = "其它"
  1069. },
  1070. new
  1071. {
  1072. Id = 121,
  1073. PointExpress = "0.0",
  1074. Priority = 121,
  1075. Rule = "p.DoItem==\"询问放弃或复审\"",
  1076. Type = "其它"
  1077. },
  1078. new
  1079. {
  1080. Id = 122,
  1081. PointExpress = "0.0",
  1082. Priority = 122,
  1083. Rule = "p.DoItem==\"知识点总结\"",
  1084. Type = "其它"
  1085. },
  1086. new
  1087. {
  1088. Id = 123,
  1089. PointExpress = "0.0",
  1090. Priority = 123,
  1091. Rule = "p.DoItem==\"专利挖掘与布局\"",
  1092. Type = "其它"
  1093. },
  1094. new
  1095. {
  1096. Id = 124,
  1097. PointExpress = "0.2",
  1098. Priority = 124,
  1099. Rule = "p.ApplicationType==\"外观设计\"",
  1100. Type = "其它"
  1101. },
  1102. new
  1103. {
  1104. Id = 125,
  1105. PointExpress = "0.0",
  1106. Priority = 125,
  1107. Rule = "p.DoItem==\"提交ids\"",
  1108. Type = "其它"
  1109. },
  1110. new
  1111. {
  1112. Id = 126,
  1113. PointExpress = "0.0",
  1114. Priority = 126,
  1115. Rule = "p.DoItem==\"请求优先审查\"",
  1116. Type = "其它"
  1117. },
  1118. new
  1119. {
  1120. Id = 127,
  1121. PointExpress = "p.WordCount/1000*0.1",
  1122. Priority = 127,
  1123. Rule = "p.DoItem==\"翻译\") && p.AgentFeedbackMemo==\"英-中\"",
  1124. Type = "其它"
  1125. },
  1126. new
  1127. {
  1128. Id = 128,
  1129. PointExpress = "p.WordCount/1000*0.16",
  1130. Priority = 128,
  1131. Rule = "p.DoItem==\"翻译\") && p.AgentFeedbackMemo==\"中-英\"",
  1132. Type = "其它"
  1133. },
  1134. new
  1135. {
  1136. Id = 129,
  1137. PointExpress = "p.WordCount/1000*0.18",
  1138. Priority = 129,
  1139. Rule = "p.DoItem==\"翻译\") && p.AgentFeedbackMemo==\"中-德\"",
  1140. Type = "其它"
  1141. },
  1142. new
  1143. {
  1144. Id = 130,
  1145. PointExpress = "0.0",
  1146. Priority = 130,
  1147. Rule = "p.AgentFeedbackMemo==\"已核算绩效\"",
  1148. Type = "其它"
  1149. });
  1150. });
  1151. modelBuilder.Entity("wispro.sp.entity.CalMonth", b =>
  1152. {
  1153. b.Property<int>("Id")
  1154. .ValueGeneratedOnAdd()
  1155. .HasColumnType("int")
  1156. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  1157. b.Property<int>("Month")
  1158. .HasColumnType("int")
  1159. .HasColumnName("month");
  1160. b.Property<int>("Status")
  1161. .HasColumnType("int")
  1162. .HasColumnName("status");
  1163. b.Property<int>("Year")
  1164. .HasColumnType("int")
  1165. .HasColumnName("year");
  1166. b.HasKey("Id");
  1167. b.ToTable("CalMonth");
  1168. });
  1169. modelBuilder.Entity("wispro.sp.entity.Customer", b =>
  1170. {
  1171. b.Property<int>("Id")
  1172. .ValueGeneratedOnAdd()
  1173. .HasColumnType("int")
  1174. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  1175. b.Property<string>("Address")
  1176. .HasMaxLength(500)
  1177. .HasColumnType("nvarchar(500)");
  1178. b.Property<string>("ContactMan")
  1179. .HasMaxLength(50)
  1180. .HasColumnType("nvarchar(50)");
  1181. b.Property<string>("Name")
  1182. .IsRequired()
  1183. .HasMaxLength(200)
  1184. .HasColumnType("nvarchar(200)");
  1185. b.Property<string>("Phone")
  1186. .HasMaxLength(50)
  1187. .HasColumnType("nvarchar(50)");
  1188. b.Property<int?>("ResponseManId")
  1189. .HasColumnType("int");
  1190. b.HasKey("Id");
  1191. b.HasIndex("ResponseManId");
  1192. b.ToTable("Customer");
  1193. });
  1194. modelBuilder.Entity("wispro.sp.entity.InputField", b =>
  1195. {
  1196. b.Property<int>("Id")
  1197. .ValueGeneratedOnAdd()
  1198. .HasColumnType("int")
  1199. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  1200. b.Property<int>("AppealState")
  1201. .HasColumnType("int");
  1202. b.Property<int>("AppealTypeId")
  1203. .HasColumnType("int");
  1204. b.Property<string>("FieldName")
  1205. .HasMaxLength(50)
  1206. .HasColumnType("nvarchar(50)");
  1207. b.Property<string>("FieldType")
  1208. .HasMaxLength(50)
  1209. .HasColumnType("nvarchar(50)");
  1210. b.Property<string>("FieldValue")
  1211. .HasMaxLength(500)
  1212. .HasColumnType("nvarchar(500)");
  1213. b.Property<string>("MapObjectField")
  1214. .HasMaxLength(50)
  1215. .HasColumnType("nvarchar(50)");
  1216. b.HasKey("Id");
  1217. b.HasIndex("AppealTypeId");
  1218. b.ToTable("InputField");
  1219. });
  1220. modelBuilder.Entity("wispro.sp.entity.InputFieldValue", b =>
  1221. {
  1222. b.Property<int>("Id")
  1223. .ValueGeneratedOnAdd()
  1224. .HasColumnType("int")
  1225. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  1226. b.Property<int>("AppealRecordId")
  1227. .HasColumnType("int");
  1228. b.Property<int>("InputFieldId")
  1229. .HasColumnType("int");
  1230. b.Property<string>("Value")
  1231. .HasMaxLength(500)
  1232. .HasColumnType("nvarchar(500)");
  1233. b.HasKey("Id");
  1234. b.HasIndex("AppealRecordId");
  1235. b.HasIndex("InputFieldId");
  1236. b.ToTable("InputFieldValue");
  1237. });
  1238. modelBuilder.Entity("wispro.sp.entity.ItemStaff", b =>
  1239. {
  1240. b.Property<int>("ItemId")
  1241. .HasColumnType("int");
  1242. b.Property<int>("DoPersonId")
  1243. .HasColumnType("int");
  1244. b.Property<double?>("PerformancePoint")
  1245. .HasColumnType("float");
  1246. b.HasKey("ItemId", "DoPersonId");
  1247. b.HasIndex("DoPersonId");
  1248. b.ToTable("ItemStaff");
  1249. });
  1250. modelBuilder.Entity("wispro.sp.entity.Message", b =>
  1251. {
  1252. b.Property<Guid>("Id")
  1253. .ValueGeneratedOnAdd()
  1254. .HasColumnType("uniqueidentifier");
  1255. b.Property<int>("FromId")
  1256. .HasColumnType("int");
  1257. b.Property<string>("MessageInfo")
  1258. .HasMaxLength(500)
  1259. .HasColumnType("nvarchar(500)");
  1260. b.Property<int>("Type")
  1261. .HasColumnType("int");
  1262. b.HasKey("Id");
  1263. b.HasIndex("FromId");
  1264. b.ToTable("Message");
  1265. });
  1266. modelBuilder.Entity("wispro.sp.entity.MessagePerformanceItem", b =>
  1267. {
  1268. b.Property<int>("ItemId")
  1269. .HasColumnType("int");
  1270. b.Property<Guid>("MessageId")
  1271. .HasColumnType("uniqueidentifier");
  1272. b.HasKey("ItemId", "MessageId");
  1273. b.HasIndex("MessageId");
  1274. b.ToTable("MessagePerformanceItems");
  1275. });
  1276. modelBuilder.Entity("wispro.sp.entity.MessageReadRecord", b =>
  1277. {
  1278. b.Property<Guid>("MessageId")
  1279. .HasColumnType("uniqueidentifier");
  1280. b.Property<int>("StaffId")
  1281. .HasColumnType("int");
  1282. b.Property<Guid?>("MessageId1")
  1283. .HasColumnType("uniqueidentifier");
  1284. b.Property<bool>("isReaded")
  1285. .HasColumnType("bit");
  1286. b.HasKey("MessageId", "StaffId");
  1287. b.HasIndex("MessageId1");
  1288. b.HasIndex("StaffId");
  1289. b.ToTable("MessageReadRecord");
  1290. });
  1291. modelBuilder.Entity("wispro.sp.entity.PerformanceItem", b =>
  1292. {
  1293. b.Property<int>("Id")
  1294. .ValueGeneratedOnAdd()
  1295. .HasColumnType("int")
  1296. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  1297. b.Property<string>("AgentFeedbackMemo")
  1298. .HasColumnType("nvarchar(max)");
  1299. b.Property<string>("ApplicationName")
  1300. .HasMaxLength(200)
  1301. .HasColumnType("nvarchar(200)");
  1302. b.Property<string>("ApplicationType")
  1303. .HasMaxLength(50)
  1304. .HasColumnType("nvarchar(50)");
  1305. b.Property<decimal?>("BasePoint")
  1306. .HasColumnType("numeric(18,2)");
  1307. b.Property<string>("BusinessType")
  1308. .HasMaxLength(50)
  1309. .HasColumnType("nvarchar(50)");
  1310. b.Property<int>("CalMonthId")
  1311. .HasColumnType("int");
  1312. b.Property<string>("CaseCoefficient")
  1313. .HasMaxLength(10)
  1314. .HasColumnType("nvarchar(10)");
  1315. b.Property<string>("CaseMemo")
  1316. .HasColumnType("nvarchar(max)");
  1317. b.Property<string>("CaseName")
  1318. .HasMaxLength(500)
  1319. .HasColumnType("nvarchar(500)");
  1320. b.Property<string>("CaseNo")
  1321. .HasMaxLength(50)
  1322. .HasColumnType("nvarchar(50)");
  1323. b.Property<string>("CaseStage")
  1324. .HasMaxLength(50)
  1325. .HasColumnType("nvarchar(50)");
  1326. b.Property<string>("CaseState")
  1327. .HasMaxLength(50)
  1328. .HasColumnType("nvarchar(50)");
  1329. b.Property<string>("CaseType")
  1330. .HasMaxLength(50)
  1331. .HasColumnType("nvarchar(50)");
  1332. b.Property<int?>("CustomerId")
  1333. .HasColumnType("int");
  1334. b.Property<DateTime?>("CustomerLimitDate")
  1335. .HasColumnType("date");
  1336. b.Property<string>("DoItem")
  1337. .HasMaxLength(50)
  1338. .HasColumnType("nvarchar(50)");
  1339. b.Property<string>("DoItemCoefficient")
  1340. .HasMaxLength(50)
  1341. .HasColumnType("nvarchar(50)");
  1342. b.Property<string>("DoItemMemo")
  1343. .HasMaxLength(500)
  1344. .HasColumnType("nvarchar(500)");
  1345. b.Property<string>("DoItemState")
  1346. .HasMaxLength(50)
  1347. .HasColumnType("nvarchar(50)");
  1348. b.Property<DateTime?>("EntrustingDate")
  1349. .HasColumnType("date");
  1350. b.Property<DateTime?>("FinalizationDate")
  1351. .HasColumnType("date");
  1352. b.Property<DateTime?>("FinishedDate")
  1353. .HasColumnType("date");
  1354. b.Property<DateTime?>("FirstDraftDate")
  1355. .HasColumnType("date");
  1356. b.Property<DateTime?>("InternalDate")
  1357. .HasColumnType("date");
  1358. b.Property<string>("OverDueMemo")
  1359. .HasMaxLength(100)
  1360. .HasColumnType("nvarchar(100)");
  1361. b.Property<int?>("PreOastaffId")
  1362. .HasColumnType("int")
  1363. .HasColumnName("PreOAStaffId");
  1364. b.Property<string>("ReturnCasseNo")
  1365. .HasColumnType("nvarchar(max)");
  1366. b.Property<DateTime?>("ReturnDate")
  1367. .HasColumnType("date");
  1368. b.Property<int?>("ReviewerId")
  1369. .HasColumnType("int");
  1370. b.Property<int?>("Status")
  1371. .HasColumnType("int");
  1372. b.Property<string>("Type")
  1373. .HasColumnType("nvarchar(max)");
  1374. b.Property<int?>("WordCount")
  1375. .HasColumnType("int");
  1376. b.HasKey("Id");
  1377. b.HasIndex("CalMonthId");
  1378. b.HasIndex("CustomerId");
  1379. b.HasIndex("PreOastaffId");
  1380. b.HasIndex("ReviewerId");
  1381. b.ToTable("PerformanceItem");
  1382. });
  1383. modelBuilder.Entity("wispro.sp.entity.Staff", b =>
  1384. {
  1385. b.Property<int>("Id")
  1386. .ValueGeneratedOnAdd()
  1387. .HasColumnType("int")
  1388. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  1389. b.Property<string>("Account")
  1390. .IsRequired()
  1391. .HasMaxLength(50)
  1392. .HasColumnType("nvarchar(50)");
  1393. b.Property<string>("Department")
  1394. .HasMaxLength(50)
  1395. .HasColumnType("nvarchar(50)");
  1396. b.Property<DateTime?>("EntyDate")
  1397. .HasColumnType("date");
  1398. b.Property<bool>("IsCalPerformsnce")
  1399. .HasColumnType("bit")
  1400. .HasColumnName("isCalPerformsnce");
  1401. b.Property<bool>("IsOnJob")
  1402. .HasColumnType("bit");
  1403. b.Property<string>("Mail")
  1404. .HasColumnType("nvarchar(max)");
  1405. b.Property<string>("Memo")
  1406. .HasColumnType("nvarchar(max)");
  1407. b.Property<string>("Mobile")
  1408. .HasColumnType("nvarchar(max)");
  1409. b.Property<string>("Name")
  1410. .IsRequired()
  1411. .HasMaxLength(50)
  1412. .HasColumnType("nvarchar(50)");
  1413. b.Property<string>("Password")
  1414. .IsRequired()
  1415. .HasColumnType("nvarchar(max)");
  1416. b.Property<string>("Sex")
  1417. .HasColumnType("nvarchar(max)");
  1418. b.Property<int?>("StaffGradeId")
  1419. .HasColumnType("int");
  1420. b.Property<string>("Status")
  1421. .IsRequired()
  1422. .HasMaxLength(25)
  1423. .HasColumnType("nvarchar(25)");
  1424. b.Property<string>("Tel")
  1425. .HasColumnType("nvarchar(max)");
  1426. b.Property<string>("WorkPlace")
  1427. .HasMaxLength(50)
  1428. .HasColumnType("nvarchar(50)");
  1429. b.HasKey("Id");
  1430. b.HasIndex("StaffGradeId");
  1431. b.ToTable("Staff");
  1432. });
  1433. modelBuilder.Entity("wispro.sp.entity.StaffGrade", b =>
  1434. {
  1435. b.Property<int>("Id")
  1436. .ValueGeneratedOnAdd()
  1437. .HasColumnType("int")
  1438. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  1439. b.Property<double>("Coefficient")
  1440. .HasColumnType("float");
  1441. b.Property<string>("Grade")
  1442. .IsRequired()
  1443. .HasMaxLength(5)
  1444. .HasColumnType("nchar(5)")
  1445. .IsFixedLength(true);
  1446. b.HasKey("Id");
  1447. b.ToTable("StaffGrade");
  1448. b.HasData(
  1449. new
  1450. {
  1451. Id = 1,
  1452. Coefficient = 1.2,
  1453. Grade = "S级"
  1454. },
  1455. new
  1456. {
  1457. Id = 2,
  1458. Coefficient = 1.1000000000000001,
  1459. Grade = "A3级"
  1460. },
  1461. new
  1462. {
  1463. Id = 3,
  1464. Coefficient = 1.1000000000000001,
  1465. Grade = "A2级"
  1466. },
  1467. new
  1468. {
  1469. Id = 4,
  1470. Coefficient = 1.1000000000000001,
  1471. Grade = "A1级"
  1472. },
  1473. new
  1474. {
  1475. Id = 5,
  1476. Coefficient = 1.0,
  1477. Grade = "B3级"
  1478. },
  1479. new
  1480. {
  1481. Id = 6,
  1482. Coefficient = 1.0,
  1483. Grade = "B2级"
  1484. },
  1485. new
  1486. {
  1487. Id = 7,
  1488. Coefficient = 0.90000000000000002,
  1489. Grade = "B1级"
  1490. },
  1491. new
  1492. {
  1493. Id = 8,
  1494. Coefficient = 0.90000000000000002,
  1495. Grade = "C3级"
  1496. },
  1497. new
  1498. {
  1499. Id = 9,
  1500. Coefficient = 0.69999999999999996,
  1501. Grade = "C2级"
  1502. },
  1503. new
  1504. {
  1505. Id = 10,
  1506. Coefficient = 0.69999999999999996,
  1507. Grade = "C1级"
  1508. },
  1509. new
  1510. {
  1511. Id = 11,
  1512. Coefficient = 0.59999999999999998,
  1513. Grade = "D3级"
  1514. },
  1515. new
  1516. {
  1517. Id = 12,
  1518. Coefficient = 0.59999999999999998,
  1519. Grade = "D2级"
  1520. },
  1521. new
  1522. {
  1523. Id = 13,
  1524. Coefficient = 0.5,
  1525. Grade = "D1级"
  1526. },
  1527. new
  1528. {
  1529. Id = 14,
  1530. Coefficient = 1.1000000000000001,
  1531. Grade = "A级"
  1532. },
  1533. new
  1534. {
  1535. Id = 15,
  1536. Coefficient = 1.0,
  1537. Grade = "C级"
  1538. },
  1539. new
  1540. {
  1541. Id = 16,
  1542. Coefficient = 0.90000000000000002,
  1543. Grade = "D级"
  1544. });
  1545. });
  1546. modelBuilder.Entity("wispro.sp.entity.VerifyCoefficient", b =>
  1547. {
  1548. b.Property<int>("CheckerId")
  1549. .HasColumnType("int");
  1550. b.Property<int>("DoPersonId")
  1551. .HasColumnType("int");
  1552. b.Property<double>("Coefficient")
  1553. .HasColumnType("float");
  1554. b.HasKey("CheckerId", "DoPersonId");
  1555. b.HasIndex("DoPersonId");
  1556. b.ToTable("VerifyCoefficient");
  1557. b.HasData(
  1558. new
  1559. {
  1560. CheckerId = 1,
  1561. DoPersonId = 5,
  1562. Coefficient = 0.29999999999999999
  1563. },
  1564. new
  1565. {
  1566. CheckerId = 1,
  1567. DoPersonId = 6,
  1568. Coefficient = 0.29999999999999999
  1569. },
  1570. new
  1571. {
  1572. CheckerId = 1,
  1573. DoPersonId = 7,
  1574. Coefficient = 0.29999999999999999
  1575. },
  1576. new
  1577. {
  1578. CheckerId = 1,
  1579. DoPersonId = 8,
  1580. Coefficient = 0.29999999999999999
  1581. },
  1582. new
  1583. {
  1584. CheckerId = 1,
  1585. DoPersonId = 9,
  1586. Coefficient = 0.40000000000000002
  1587. },
  1588. new
  1589. {
  1590. CheckerId = 1,
  1591. DoPersonId = 10,
  1592. Coefficient = 0.40000000000000002
  1593. },
  1594. new
  1595. {
  1596. CheckerId = 1,
  1597. DoPersonId = 11,
  1598. Coefficient = 0.5
  1599. },
  1600. new
  1601. {
  1602. CheckerId = 1,
  1603. DoPersonId = 12,
  1604. Coefficient = 0.5
  1605. },
  1606. new
  1607. {
  1608. CheckerId = 1,
  1609. DoPersonId = 13,
  1610. Coefficient = 0.59999999999999998
  1611. },
  1612. new
  1613. {
  1614. CheckerId = 2,
  1615. DoPersonId = 5,
  1616. Coefficient = 0.20000000000000001
  1617. },
  1618. new
  1619. {
  1620. CheckerId = 2,
  1621. DoPersonId = 6,
  1622. Coefficient = 0.20000000000000001
  1623. },
  1624. new
  1625. {
  1626. CheckerId = 2,
  1627. DoPersonId = 7,
  1628. Coefficient = 0.20000000000000001
  1629. },
  1630. new
  1631. {
  1632. CheckerId = 2,
  1633. DoPersonId = 8,
  1634. Coefficient = 0.20000000000000001
  1635. },
  1636. new
  1637. {
  1638. CheckerId = 2,
  1639. DoPersonId = 9,
  1640. Coefficient = 0.29999999999999999
  1641. },
  1642. new
  1643. {
  1644. CheckerId = 2,
  1645. DoPersonId = 10,
  1646. Coefficient = 0.29999999999999999
  1647. },
  1648. new
  1649. {
  1650. CheckerId = 2,
  1651. DoPersonId = 11,
  1652. Coefficient = 0.40000000000000002
  1653. },
  1654. new
  1655. {
  1656. CheckerId = 2,
  1657. DoPersonId = 12,
  1658. Coefficient = 0.40000000000000002
  1659. },
  1660. new
  1661. {
  1662. CheckerId = 2,
  1663. DoPersonId = 13,
  1664. Coefficient = 0.5
  1665. },
  1666. new
  1667. {
  1668. CheckerId = 3,
  1669. DoPersonId = 5,
  1670. Coefficient = 0.20000000000000001
  1671. },
  1672. new
  1673. {
  1674. CheckerId = 3,
  1675. DoPersonId = 6,
  1676. Coefficient = 0.20000000000000001
  1677. },
  1678. new
  1679. {
  1680. CheckerId = 3,
  1681. DoPersonId = 7,
  1682. Coefficient = 0.20000000000000001
  1683. },
  1684. new
  1685. {
  1686. CheckerId = 3,
  1687. DoPersonId = 8,
  1688. Coefficient = 0.20000000000000001
  1689. },
  1690. new
  1691. {
  1692. CheckerId = 3,
  1693. DoPersonId = 9,
  1694. Coefficient = 0.29999999999999999
  1695. },
  1696. new
  1697. {
  1698. CheckerId = 3,
  1699. DoPersonId = 10,
  1700. Coefficient = 0.29999999999999999
  1701. },
  1702. new
  1703. {
  1704. CheckerId = 3,
  1705. DoPersonId = 11,
  1706. Coefficient = 0.40000000000000002
  1707. },
  1708. new
  1709. {
  1710. CheckerId = 3,
  1711. DoPersonId = 12,
  1712. Coefficient = 0.40000000000000002
  1713. },
  1714. new
  1715. {
  1716. CheckerId = 3,
  1717. DoPersonId = 13,
  1718. Coefficient = 0.5
  1719. },
  1720. new
  1721. {
  1722. CheckerId = 4,
  1723. DoPersonId = 5,
  1724. Coefficient = 0.20000000000000001
  1725. },
  1726. new
  1727. {
  1728. CheckerId = 4,
  1729. DoPersonId = 6,
  1730. Coefficient = 0.20000000000000001
  1731. },
  1732. new
  1733. {
  1734. CheckerId = 4,
  1735. DoPersonId = 7,
  1736. Coefficient = 0.20000000000000001
  1737. },
  1738. new
  1739. {
  1740. CheckerId = 4,
  1741. DoPersonId = 8,
  1742. Coefficient = 0.20000000000000001
  1743. },
  1744. new
  1745. {
  1746. CheckerId = 4,
  1747. DoPersonId = 9,
  1748. Coefficient = 0.29999999999999999
  1749. },
  1750. new
  1751. {
  1752. CheckerId = 4,
  1753. DoPersonId = 10,
  1754. Coefficient = 0.29999999999999999
  1755. },
  1756. new
  1757. {
  1758. CheckerId = 4,
  1759. DoPersonId = 11,
  1760. Coefficient = 0.40000000000000002
  1761. },
  1762. new
  1763. {
  1764. CheckerId = 4,
  1765. DoPersonId = 12,
  1766. Coefficient = 0.40000000000000002
  1767. },
  1768. new
  1769. {
  1770. CheckerId = 4,
  1771. DoPersonId = 13,
  1772. Coefficient = 0.5
  1773. },
  1774. new
  1775. {
  1776. CheckerId = 5,
  1777. DoPersonId = 5,
  1778. Coefficient = 0.20000000000000001
  1779. },
  1780. new
  1781. {
  1782. CheckerId = 5,
  1783. DoPersonId = 6,
  1784. Coefficient = 0.20000000000000001
  1785. },
  1786. new
  1787. {
  1788. CheckerId = 5,
  1789. DoPersonId = 7,
  1790. Coefficient = 0.20000000000000001
  1791. },
  1792. new
  1793. {
  1794. CheckerId = 5,
  1795. DoPersonId = 8,
  1796. Coefficient = 0.20000000000000001
  1797. },
  1798. new
  1799. {
  1800. CheckerId = 5,
  1801. DoPersonId = 9,
  1802. Coefficient = 0.29999999999999999
  1803. },
  1804. new
  1805. {
  1806. CheckerId = 5,
  1807. DoPersonId = 10,
  1808. Coefficient = 0.29999999999999999
  1809. },
  1810. new
  1811. {
  1812. CheckerId = 5,
  1813. DoPersonId = 11,
  1814. Coefficient = 0.40000000000000002
  1815. },
  1816. new
  1817. {
  1818. CheckerId = 5,
  1819. DoPersonId = 12,
  1820. Coefficient = 0.40000000000000002
  1821. },
  1822. new
  1823. {
  1824. CheckerId = 5,
  1825. DoPersonId = 13,
  1826. Coefficient = 0.5
  1827. },
  1828. new
  1829. {
  1830. CheckerId = 6,
  1831. DoPersonId = 5,
  1832. Coefficient = 0.20000000000000001
  1833. },
  1834. new
  1835. {
  1836. CheckerId = 6,
  1837. DoPersonId = 6,
  1838. Coefficient = 0.20000000000000001
  1839. },
  1840. new
  1841. {
  1842. CheckerId = 6,
  1843. DoPersonId = 7,
  1844. Coefficient = 0.20000000000000001
  1845. },
  1846. new
  1847. {
  1848. CheckerId = 6,
  1849. DoPersonId = 8,
  1850. Coefficient = 0.20000000000000001
  1851. },
  1852. new
  1853. {
  1854. CheckerId = 6,
  1855. DoPersonId = 9,
  1856. Coefficient = 0.29999999999999999
  1857. },
  1858. new
  1859. {
  1860. CheckerId = 6,
  1861. DoPersonId = 10,
  1862. Coefficient = 0.29999999999999999
  1863. },
  1864. new
  1865. {
  1866. CheckerId = 6,
  1867. DoPersonId = 11,
  1868. Coefficient = 0.40000000000000002
  1869. },
  1870. new
  1871. {
  1872. CheckerId = 6,
  1873. DoPersonId = 12,
  1874. Coefficient = 0.40000000000000002
  1875. },
  1876. new
  1877. {
  1878. CheckerId = 6,
  1879. DoPersonId = 13,
  1880. Coefficient = 0.5
  1881. });
  1882. });
  1883. modelBuilder.Entity("wispro.sp.entity.AppealRecord", b =>
  1884. {
  1885. b.HasOne("wispro.sp.entity.Staff", "Creater")
  1886. .WithMany()
  1887. .HasForeignKey("CreaterId")
  1888. .OnDelete(DeleteBehavior.Cascade)
  1889. .IsRequired();
  1890. b.HasOne("wispro.sp.entity.Staff", "Reviewer")
  1891. .WithMany()
  1892. .HasForeignKey("ReviewerId")
  1893. .OnDelete(DeleteBehavior.NoAction)
  1894. .IsRequired();
  1895. b.HasOne("wispro.sp.entity.AppealType", "Type")
  1896. .WithMany()
  1897. .HasForeignKey("TypeId")
  1898. .OnDelete(DeleteBehavior.NoAction)
  1899. .IsRequired();
  1900. b.Navigation("Creater");
  1901. b.Navigation("Reviewer");
  1902. b.Navigation("Type");
  1903. });
  1904. modelBuilder.Entity("wispro.sp.entity.AttachFile", b =>
  1905. {
  1906. b.HasOne("wispro.sp.entity.AppealRecord", "AppealRecord")
  1907. .WithMany()
  1908. .HasForeignKey("AppealRecordId")
  1909. .HasConstraintName("FK_AttachFile_AppealRecord")
  1910. .OnDelete(DeleteBehavior.Cascade)
  1911. .IsRequired();
  1912. b.HasOne("wispro.sp.entity.AppealRecord", null)
  1913. .WithMany("AttachFiles")
  1914. .HasForeignKey("AppealRecordId1");
  1915. b.HasOne("wispro.sp.entity.Staff", "UploadUser")
  1916. .WithMany()
  1917. .HasForeignKey("UploadUserId")
  1918. .HasConstraintName("FK_AttachFile_UpdateUser")
  1919. .OnDelete(DeleteBehavior.NoAction)
  1920. .IsRequired();
  1921. b.Navigation("AppealRecord");
  1922. b.Navigation("UploadUser");
  1923. });
  1924. modelBuilder.Entity("wispro.sp.entity.Customer", b =>
  1925. {
  1926. b.HasOne("wispro.sp.entity.Staff", "ResponseMan")
  1927. .WithMany("Customers")
  1928. .HasForeignKey("ResponseManId")
  1929. .HasConstraintName("FK_Customer_Staff");
  1930. b.Navigation("ResponseMan");
  1931. });
  1932. modelBuilder.Entity("wispro.sp.entity.InputField", b =>
  1933. {
  1934. b.HasOne("wispro.sp.entity.AppealType", "AppealType")
  1935. .WithMany()
  1936. .HasForeignKey("AppealTypeId")
  1937. .OnDelete(DeleteBehavior.Cascade)
  1938. .IsRequired();
  1939. b.Navigation("AppealType");
  1940. });
  1941. modelBuilder.Entity("wispro.sp.entity.InputFieldValue", b =>
  1942. {
  1943. b.HasOne("wispro.sp.entity.AppealRecord", "AppealRecord")
  1944. .WithMany()
  1945. .HasForeignKey("AppealRecordId")
  1946. .OnDelete(DeleteBehavior.Cascade)
  1947. .IsRequired();
  1948. b.HasOne("wispro.sp.entity.InputField", "InputField")
  1949. .WithMany()
  1950. .HasForeignKey("InputFieldId")
  1951. .OnDelete(DeleteBehavior.Cascade)
  1952. .IsRequired();
  1953. b.Navigation("AppealRecord");
  1954. b.Navigation("InputField");
  1955. });
  1956. modelBuilder.Entity("wispro.sp.entity.ItemStaff", b =>
  1957. {
  1958. b.HasOne("wispro.sp.entity.Staff", "DoPerson")
  1959. .WithMany("ItemStaffs")
  1960. .HasForeignKey("DoPersonId")
  1961. .HasConstraintName("FK_ItemStaff_Staff")
  1962. .IsRequired();
  1963. b.HasOne("wispro.sp.entity.PerformanceItem", "Item")
  1964. .WithMany("ItemStaffs")
  1965. .HasForeignKey("ItemId")
  1966. .HasConstraintName("FK_ItemStaff_PerformanceItem")
  1967. .IsRequired();
  1968. b.Navigation("DoPerson");
  1969. b.Navigation("Item");
  1970. });
  1971. modelBuilder.Entity("wispro.sp.entity.Message", b =>
  1972. {
  1973. b.HasOne("wispro.sp.entity.Staff", "From")
  1974. .WithMany()
  1975. .HasForeignKey("FromId")
  1976. .HasConstraintName("FK_From_Staff")
  1977. .IsRequired();
  1978. b.Navigation("From");
  1979. });
  1980. modelBuilder.Entity("wispro.sp.entity.MessagePerformanceItem", b =>
  1981. {
  1982. b.HasOne("wispro.sp.entity.PerformanceItem", "Item")
  1983. .WithMany()
  1984. .HasForeignKey("ItemId")
  1985. .HasConstraintName("FK_MessagePerformanceItem_Item")
  1986. .OnDelete(DeleteBehavior.Cascade)
  1987. .IsRequired();
  1988. b.HasOne("wispro.sp.entity.Message", "Message")
  1989. .WithMany("RelatedItem")
  1990. .HasForeignKey("MessageId")
  1991. .HasConstraintName("FK_MessagePerformanceItem_Message")
  1992. .OnDelete(DeleteBehavior.Cascade)
  1993. .IsRequired();
  1994. b.Navigation("Item");
  1995. b.Navigation("Message");
  1996. });
  1997. modelBuilder.Entity("wispro.sp.entity.MessageReadRecord", b =>
  1998. {
  1999. b.HasOne("wispro.sp.entity.Message", "Message")
  2000. .WithMany()
  2001. .HasForeignKey("MessageId")
  2002. .HasConstraintName("FK_MessageReadRecord_Message")
  2003. .IsRequired();
  2004. b.HasOne("wispro.sp.entity.Message", null)
  2005. .WithMany("To")
  2006. .HasForeignKey("MessageId1");
  2007. b.HasOne("wispro.sp.entity.Staff", "Staff")
  2008. .WithMany()
  2009. .HasForeignKey("StaffId")
  2010. .HasConstraintName("FK_MessageReadRecord_Staff")
  2011. .IsRequired();
  2012. b.Navigation("Message");
  2013. b.Navigation("Staff");
  2014. });
  2015. modelBuilder.Entity("wispro.sp.entity.PerformanceItem", b =>
  2016. {
  2017. b.HasOne("wispro.sp.entity.CalMonth", "CalMonth")
  2018. .WithMany("PerformanceItems")
  2019. .HasForeignKey("CalMonthId")
  2020. .HasConstraintName("FK_PerformanceItem_CalMonth")
  2021. .OnDelete(DeleteBehavior.Cascade)
  2022. .IsRequired();
  2023. b.HasOne("wispro.sp.entity.Customer", "Customer")
  2024. .WithMany("PerformanceItems")
  2025. .HasForeignKey("CustomerId")
  2026. .HasConstraintName("FK_PerformanceItem_Customer");
  2027. b.HasOne("wispro.sp.entity.Staff", "PreOastaff")
  2028. .WithMany()
  2029. .HasForeignKey("PreOastaffId")
  2030. .HasConstraintName("FK_PerformanceItem_Staff");
  2031. b.HasOne("wispro.sp.entity.Staff", "Reviewer")
  2032. .WithMany("ReviewerItems")
  2033. .HasForeignKey("ReviewerId")
  2034. .HasConstraintName("FK_PerformanceItem_Reviewer");
  2035. b.Navigation("CalMonth");
  2036. b.Navigation("Customer");
  2037. b.Navigation("PreOastaff");
  2038. b.Navigation("Reviewer");
  2039. });
  2040. modelBuilder.Entity("wispro.sp.entity.Staff", b =>
  2041. {
  2042. b.HasOne("wispro.sp.entity.StaffGrade", "StaffGrade")
  2043. .WithMany("Staff")
  2044. .HasForeignKey("StaffGradeId")
  2045. .HasConstraintName("FK_Staff_StaffGrade");
  2046. b.Navigation("StaffGrade");
  2047. });
  2048. modelBuilder.Entity("wispro.sp.entity.VerifyCoefficient", b =>
  2049. {
  2050. b.HasOne("wispro.sp.entity.StaffGrade", "Checker")
  2051. .WithMany("VerifyCoefficientCheckers")
  2052. .HasForeignKey("CheckerId")
  2053. .HasConstraintName("FK_VerifyCoefficient_StaffGrade")
  2054. .IsRequired();
  2055. b.HasOne("wispro.sp.entity.StaffGrade", "DoPerson")
  2056. .WithMany("VerifyCoefficientDoPeople")
  2057. .HasForeignKey("DoPersonId")
  2058. .HasConstraintName("FK_VerifyCoefficient_StaffGrade1")
  2059. .IsRequired();
  2060. b.Navigation("Checker");
  2061. b.Navigation("DoPerson");
  2062. });
  2063. modelBuilder.Entity("wispro.sp.entity.AppealRecord", b =>
  2064. {
  2065. b.Navigation("AttachFiles");
  2066. });
  2067. modelBuilder.Entity("wispro.sp.entity.CalMonth", b =>
  2068. {
  2069. b.Navigation("PerformanceItems");
  2070. });
  2071. modelBuilder.Entity("wispro.sp.entity.Customer", b =>
  2072. {
  2073. b.Navigation("PerformanceItems");
  2074. });
  2075. modelBuilder.Entity("wispro.sp.entity.Message", b =>
  2076. {
  2077. b.Navigation("RelatedItem");
  2078. b.Navigation("To");
  2079. });
  2080. modelBuilder.Entity("wispro.sp.entity.PerformanceItem", b =>
  2081. {
  2082. b.Navigation("ItemStaffs");
  2083. });
  2084. modelBuilder.Entity("wispro.sp.entity.Staff", b =>
  2085. {
  2086. b.Navigation("Customers");
  2087. b.Navigation("ItemStaffs");
  2088. b.Navigation("ReviewerItems");
  2089. });
  2090. modelBuilder.Entity("wispro.sp.entity.StaffGrade", b =>
  2091. {
  2092. b.Navigation("Staff");
  2093. b.Navigation("VerifyCoefficientCheckers");
  2094. b.Navigation("VerifyCoefficientDoPeople");
  2095. });
  2096. #pragma warning restore 612, 618
  2097. }
  2098. }
  2099. }