spDbContext.cs 44 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627
  1. using Microsoft.EntityFrameworkCore;
  2. using Microsoft.Extensions.Configuration;
  3. using System.Configuration;
  4. using wispro.sp.entity;
  5. namespace wispro.sp.api
  6. {
  7. public partial class spDbContext : DbContext
  8. {
  9. public spDbContext()
  10. {
  11. }
  12. public spDbContext(DbContextOptions<spDbContext> options)
  13. : base(options)
  14. {
  15. }
  16. public virtual DbSet<CalMonth> CalMonths { get; set; }
  17. public virtual DbSet<Customer> Customers { get; set; }
  18. public virtual DbSet<ItemStaff> ItemStaffs { get; set; }
  19. public virtual DbSet<PerformanceItem> PerformanceItems { get; set; }
  20. public virtual DbSet<StaffGrade> StaffGrades { get; set; }
  21. public virtual DbSet<VerifyCoefficient> VerifyCoefficients { get; set; }
  22. public virtual DbSet<Staff> Staffs { get; set; }
  23. public virtual DbSet<Message> Messages { get; set; }
  24. public virtual DbSet<MessageReadRecord> MessageReadRecords { get;set;}
  25. public virtual DbSet<MessagePerformanceItem> MessagePerformanceItems { get; set; }
  26. public virtual DbSet<AttachFile> AttachFiles { get; set; }
  27. public virtual DbSet<BasePointRule> BasePointRules { get; set; }
  28. public virtual DbSet<InputField> InputFields { get; set; }
  29. public virtual DbSet<InputFieldValue> InputFieldValues { get; set; }
  30. public virtual DbSet<AppealType> AppealTypes { get; set; }
  31. public virtual DbSet<AppealRecord> AppealRecords { get; set; }
  32. protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
  33. {
  34. if (!optionsBuilder.IsConfigured)
  35. {
  36. optionsBuilder.UseSqlServer(utility.ConfigHelper.GetSectionValue("ConnectionStrings:DefaultConnect"));// "Data Source=(local);Initial Catalog=spDB;User ID=sa;Password=Lqftiu807005");// Configuration.GetConnectionString("DefaultConnect"));
  37. //ConfigurationManager.AppSettings["ValidAudience"]
  38. }
  39. }
  40. protected override void OnModelCreating(ModelBuilder modelBuilder)
  41. {
  42. modelBuilder.Entity<BasePointRule>(entity=> {
  43. entity.ToTable("BasePointRule");
  44. entity.Property(e => e.PointExpress).HasMaxLength(100);
  45. entity.Property(e => e.Rule).HasMaxLength(1000);
  46. entity.Property(e => e.Type).HasMaxLength(20);
  47. });
  48. modelBuilder.Entity<CalMonth>(entity =>
  49. {
  50. entity.ToTable("CalMonth");
  51. entity.Property(e => e.Year).HasColumnName("year");
  52. entity.Property(e => e.Month).HasColumnName("month");
  53. entity.Property(e => e.Status).HasColumnName("status");
  54. }
  55. ) ;
  56. modelBuilder.Entity<Customer>(entity =>
  57. {
  58. entity.ToTable("Customer");
  59. entity.Property(e => e.Address).HasMaxLength(500);
  60. entity.Property(e => e.ContactMan).HasMaxLength(50);
  61. entity.Property(e => e.Name)
  62. .IsRequired()
  63. .HasMaxLength(200);
  64. entity.Property(e => e.Phone).HasMaxLength(50);
  65. entity.HasOne(d => d.ResponseMan)
  66. .WithMany(p => p.Customers)
  67. .HasForeignKey(d => d.ResponseManId)
  68. .HasConstraintName("FK_Customer_Staff");
  69. });
  70. modelBuilder.Entity<ItemStaff>(entity =>
  71. {
  72. entity.HasKey(e => new { e.ItemId, e.DoPersonId });
  73. entity.ToTable("ItemStaff");
  74. entity.Property(e => e.PerformancePoint);//.HasColumnType("numeric(18, 2)");
  75. entity.HasOne(d => d.DoPerson)
  76. .WithMany(p => p.ItemStaffs)
  77. .HasForeignKey(d => d.DoPersonId)
  78. .OnDelete(DeleteBehavior.ClientSetNull)
  79. .HasConstraintName("FK_ItemStaff_Staff");
  80. entity.HasOne(d => d.Item)
  81. .WithMany(p => p.ItemStaffs)
  82. .HasForeignKey(d => d.ItemId)
  83. .OnDelete(DeleteBehavior.ClientSetNull)
  84. .HasConstraintName("FK_ItemStaff_PerformanceItem");
  85. });
  86. modelBuilder.Entity<PerformanceItem>(entity =>
  87. {
  88. entity.ToTable("PerformanceItem");
  89. entity.Property(e => e.ApplicationName).HasMaxLength(200);
  90. entity.Property(e => e.ApplicationType).HasMaxLength(50);
  91. entity.Property(e => e.BasePoint).HasColumnType("numeric(18, 2)");
  92. entity.Property(e => e.BusinessType).HasMaxLength(50);
  93. entity.Property(e => e.CaseCoefficient).HasMaxLength(10);
  94. entity.Property(e => e.CaseName).HasMaxLength(500);
  95. entity.Property(e => e.CaseNo).HasMaxLength(50);
  96. entity.Property(e => e.CaseStage).HasMaxLength(50);
  97. entity.Property(e => e.CaseState).HasMaxLength(50);
  98. entity.Property(e => e.CaseType).HasMaxLength(50);
  99. entity.Property(e => e.EntrustingDate).HasColumnType("date");
  100. entity.Property(e => e.CustomerLimitDate).HasColumnType("date");
  101. entity.Property(e => e.DoItem).HasMaxLength(50);
  102. entity.Property(e => e.DoItemCoefficient).HasMaxLength(50);
  103. entity.Property(e => e.DoItemMemo).HasMaxLength(500);
  104. entity.Property(e => e.DoItemState).HasMaxLength(50);
  105. entity.Property(e => e.FinalizationDate).HasColumnType("date");
  106. entity.Property(e => e.FinishedDate).HasColumnType("date");
  107. entity.Property(e => e.FirstDraftDate).HasColumnType("date");
  108. entity.Property(e => e.InternalDate).HasColumnType("date");
  109. entity.Property(e => e.OverDueMemo).HasMaxLength(100);
  110. entity.Property(e => e.PreOastaffId).HasColumnName("PreOAStaffId");
  111. entity.Property(e => e.ReturnDate).HasColumnType("date");
  112. entity.HasOne(d => d.Customer)
  113. .WithMany(p => p.PerformanceItems)
  114. .HasForeignKey(d => d.CustomerId)
  115. .HasConstraintName("FK_PerformanceItem_Customer");
  116. entity.HasOne(d => d.PreOastaff)
  117. .WithMany()
  118. .HasForeignKey(d => d.PreOastaffId)
  119. .HasConstraintName("FK_PerformanceItem_Staff");
  120. entity.HasOne(d => d.Reviewer)
  121. .WithMany(p => p.ReviewerItems)
  122. .HasForeignKey(d => d.ReviewerId)
  123. .HasConstraintName("FK_PerformanceItem_Reviewer");
  124. entity.HasOne(d => d.CalMonth)
  125. .WithMany(p => p.PerformanceItems)
  126. .HasForeignKey(d => d.CalMonthId)
  127. .HasConstraintName("FK_PerformanceItem_CalMonth");
  128. });
  129. modelBuilder.Entity<StaffGrade>(entity =>
  130. {
  131. entity.ToTable("StaffGrade");
  132. entity.Property(e => e.Coefficient);//.HasColumnType("numeric(18, 2)");
  133. entity.Property(e => e.Grade)
  134. .IsRequired()
  135. .HasMaxLength(5)
  136. .IsFixedLength(true);
  137. });
  138. modelBuilder.Entity<VerifyCoefficient>(entity =>
  139. {
  140. entity.HasKey(e => new { e.CheckerId, e.DoPersonId });
  141. entity.ToTable("VerifyCoefficient");
  142. entity.Property(e => e.Coefficient);//.HasColumnType("numeric(18, 2)");
  143. entity.HasOne(d => d.Checker)
  144. .WithMany(p => p.VerifyCoefficientCheckers)
  145. .HasForeignKey(d => d.CheckerId)
  146. .OnDelete(DeleteBehavior.ClientSetNull)
  147. .HasConstraintName("FK_VerifyCoefficient_StaffGrade");
  148. entity.HasOne(d => d.DoPerson)
  149. .WithMany(p => p.VerifyCoefficientDoPeople)
  150. .HasForeignKey(d => d.DoPersonId)
  151. .OnDelete(DeleteBehavior.ClientSetNull)
  152. .HasConstraintName("FK_VerifyCoefficient_StaffGrade1");
  153. });
  154. modelBuilder.Entity<Staff>(entity =>
  155. {
  156. entity.ToTable("Staff");
  157. //entity.Property(e => e.Id).ValueGeneratedNever();
  158. entity.Property(e => e.Account)
  159. .IsRequired()
  160. .HasMaxLength(50);
  161. entity.Property(e => e.Department).HasMaxLength(50);
  162. entity.Property(e => e.EntyDate).HasColumnType("date");
  163. entity.Property(e => e.IsCalPerformsnce).HasColumnName("isCalPerformsnce");
  164. entity.Property(e => e.Name)
  165. .IsRequired()
  166. .HasMaxLength(50);
  167. entity.Property(e => e.Password).IsRequired();
  168. entity.Property(e => e.Status)
  169. .IsRequired()
  170. .HasMaxLength(25);
  171. entity.Property(e => e.WorkPlace).HasMaxLength(50);
  172. entity.HasOne(d => d.StaffGrade)
  173. .WithMany(p => p.Staff)
  174. .HasForeignKey(d => d.StaffGradeId)
  175. .OnDelete(DeleteBehavior.ClientSetNull)
  176. .HasConstraintName("FK_Staff_StaffGrade");
  177. });
  178. modelBuilder.Entity<Message>(entity =>
  179. {
  180. //entity.HasKey(e => e.Id);
  181. entity.ToTable("Message");
  182. entity.Property(e => e.Type);
  183. entity.Property(e => e.MessageInfo).HasMaxLength(500);
  184. entity.HasOne(d => d.From)
  185. .WithMany()
  186. .HasForeignKey(d => d.FromId)
  187. .OnDelete(DeleteBehavior.ClientSetNull)
  188. .HasConstraintName("FK_From_Staff");
  189. });
  190. modelBuilder.Entity<MessageReadRecord>(entity =>
  191. {
  192. entity.HasKey(e => new { e.MessageId,e.StaffId});
  193. entity.ToTable("MessageReadRecord");
  194. entity.Property(e => e.isReaded);
  195. entity.HasOne(d => d.Staff)
  196. .WithMany()
  197. .HasForeignKey(d => d.StaffId)
  198. .OnDelete(DeleteBehavior.ClientSetNull)
  199. .HasConstraintName("FK_MessageReadRecord_Staff");
  200. entity.HasOne(d => d.Message)
  201. .WithMany()
  202. .HasForeignKey(d => d.MessageId)
  203. .OnDelete(DeleteBehavior.ClientSetNull)
  204. .HasConstraintName("FK_MessageReadRecord_Message");
  205. });
  206. modelBuilder.Entity<MessagePerformanceItem>( entity =>
  207. {
  208. entity.HasKey(e=> new { e.ItemId,e.MessageId});
  209. entity.HasOne(d => d.Message)
  210. .WithMany(m => m.RelatedItem)
  211. .HasForeignKey(d => d.MessageId)
  212. .HasConstraintName("FK_MessagePerformanceItem_Message");
  213. entity.HasOne(d => d.Item )
  214. .WithMany()
  215. .HasForeignKey(d => d.ItemId)
  216. .HasConstraintName("FK_MessagePerformanceItem_Item");
  217. });
  218. modelBuilder.Entity<AttachFile>(entity =>
  219. {
  220. entity.ToTable("AttachFile");
  221. entity.Property(e=>e.Name).HasMaxLength(200);
  222. entity.Property(e => e.SavePath).HasMaxLength(200);
  223. entity.HasOne(d => d.UploadUser)
  224. .WithMany()
  225. .HasForeignKey(d => d.UploadUserId)
  226. .HasConstraintName("FK_AttachFile_UpdateUser")
  227. .OnDelete(DeleteBehavior.NoAction);
  228. entity.HasOne(d => d.AppealRecord)
  229. .WithMany()
  230. .HasForeignKey(d => d.AppealRecordId)
  231. .HasConstraintName("FK_AttachFile_AppealRecord");
  232. });
  233. modelBuilder.Entity<AppealType>(entity =>
  234. {
  235. entity.ToTable("AppealType");
  236. entity.Property(e => e.Name).HasMaxLength(50);
  237. entity.Property(e => e.ReviewerExpress).HasMaxLength(500);
  238. entity.Property(e => e.CanDoExpress).HasMaxLength(500);
  239. });
  240. modelBuilder.Entity<AppealRecord>(entity =>
  241. {
  242. entity.ToTable("AppealRecord");
  243. entity.Property(e => e.Reason).HasMaxLength(500);
  244. entity.HasOne(d => d.Creater)
  245. .WithMany()
  246. .HasForeignKey(d => d.CreaterId);
  247. entity.HasOne(d => d.Reviewer)
  248. .WithMany().OnDelete(DeleteBehavior.NoAction)
  249. .HasForeignKey(d => d.ReviewerId);
  250. entity.HasOne(d => d.Type)
  251. .WithMany()
  252. .OnDelete(DeleteBehavior.NoAction)
  253. .HasForeignKey(d => d.TypeId);
  254. }) ;
  255. modelBuilder.Entity<InputField>(entity=> {
  256. entity.ToTable("InputField");
  257. entity.Property(e=>e.FieldName).HasMaxLength(50);
  258. entity.Property(e => e.FieldType).HasMaxLength(50);
  259. entity.Property(e => e.FieldValue).HasMaxLength(500);
  260. entity.Property(e => e.MapObjectField).HasMaxLength(50);
  261. entity.HasOne(d => d.AppealType)
  262. .WithMany()
  263. .HasForeignKey(d=>d.AppealTypeId);
  264. //entity.HasKey(d=>new { d.AppealTypeId,d.AppealState});
  265. });
  266. modelBuilder.Entity<InputFieldValue>(entity => {
  267. entity.ToTable("InputFieldValue");
  268. entity.Property(e => e.Value).HasMaxLength(500);
  269. entity.HasOne(d => d.InputField)
  270. .WithMany()
  271. .HasForeignKey(d => d.InputFieldId);
  272. entity.HasOne(d => d.AppealRecord)
  273. .WithMany()
  274. .HasForeignKey(d => d.AppealRecordId);
  275. //entity.HasKey(d=>new { d.AppealRecordId,d.InputFieldId});
  276. });
  277. modelBuilder.Entity<StaffGrade>().HasData(
  278. new StaffGrade[]
  279. {
  280. new StaffGrade() {Id=1, Grade = "S级", Coefficient = 1.2},
  281. new StaffGrade() {Id=2, Grade = "A3级", Coefficient = 1.1},
  282. new StaffGrade() {Id =3, Grade = "A2级", Coefficient = 1.1},
  283. new StaffGrade() {Id=4, Grade = "A1级", Coefficient = 1.1},
  284. new StaffGrade() {Id=5, Grade = "B3级", Coefficient = 1.0},
  285. new StaffGrade() {Id=6, Grade = "B2级", Coefficient = 1.0},
  286. new StaffGrade() {Id=7, Grade = "B1级", Coefficient = 0.9},
  287. new StaffGrade() {Id=8, Grade = "C3级", Coefficient = 0.9},
  288. new StaffGrade() {Id=9, Grade = "C2级", Coefficient = 0.7},
  289. new StaffGrade() {Id= 10, Grade = "C1级", Coefficient = 0.7},
  290. new StaffGrade() {Id=11, Grade = "D3级", Coefficient = 0.6},
  291. new StaffGrade() {Id=12, Grade = "D2级", Coefficient = 0.6},
  292. new StaffGrade() {Id=13, Grade = "D1级", Coefficient = 0.5},
  293. new StaffGrade() {Id=14, Grade = "A级", Coefficient = 1.1},
  294. new StaffGrade() {Id=15, Grade = "C级", Coefficient = 1.0},
  295. new StaffGrade() {Id=16, Grade = "D级", Coefficient = 0.9}
  296. });
  297. modelBuilder.Entity<VerifyCoefficient>().HasData(
  298. new VerifyCoefficient[]
  299. {
  300. new VerifyCoefficient() { CheckerId = 1, DoPersonId =5, Coefficient =0.3},
  301. new VerifyCoefficient() { CheckerId = 1, DoPersonId =6, Coefficient =0.3},
  302. new VerifyCoefficient() { CheckerId = 1, DoPersonId =7, Coefficient =0.3},
  303. new VerifyCoefficient() { CheckerId = 1, DoPersonId =8, Coefficient =0.3},
  304. new VerifyCoefficient() { CheckerId = 1, DoPersonId =9, Coefficient =0.4},
  305. new VerifyCoefficient() { CheckerId = 1, DoPersonId =10, Coefficient =0.4},
  306. new VerifyCoefficient() { CheckerId = 1, DoPersonId =11, Coefficient =0.5},
  307. new VerifyCoefficient() { CheckerId = 1, DoPersonId =12, Coefficient =0.5},
  308. new VerifyCoefficient() { CheckerId = 1, DoPersonId =13, Coefficient =0.6},
  309. new VerifyCoefficient() { CheckerId = 2, DoPersonId =5, Coefficient =0.2},
  310. new VerifyCoefficient() { CheckerId = 2, DoPersonId =6, Coefficient =0.2},
  311. new VerifyCoefficient() { CheckerId = 2, DoPersonId =7, Coefficient =0.2},
  312. new VerifyCoefficient() { CheckerId = 2, DoPersonId =8, Coefficient =0.2},
  313. new VerifyCoefficient() { CheckerId = 2, DoPersonId =9, Coefficient =0.3},
  314. new VerifyCoefficient() { CheckerId = 2, DoPersonId =10, Coefficient =0.3},
  315. new VerifyCoefficient() { CheckerId = 2, DoPersonId =11, Coefficient =0.4},
  316. new VerifyCoefficient() { CheckerId = 2, DoPersonId =12, Coefficient =0.4},
  317. new VerifyCoefficient() { CheckerId = 2, DoPersonId =13, Coefficient =0.5},
  318. new VerifyCoefficient() { CheckerId = 3, DoPersonId =5, Coefficient =0.2},
  319. new VerifyCoefficient() { CheckerId = 3, DoPersonId =6, Coefficient =0.2},
  320. new VerifyCoefficient() { CheckerId = 3, DoPersonId =7, Coefficient =0.2},
  321. new VerifyCoefficient() { CheckerId = 3, DoPersonId =8, Coefficient =0.2},
  322. new VerifyCoefficient() { CheckerId = 3, DoPersonId =9, Coefficient =0.3},
  323. new VerifyCoefficient() { CheckerId = 3, DoPersonId =10, Coefficient =0.3},
  324. new VerifyCoefficient() { CheckerId = 3, DoPersonId =11, Coefficient =0.4},
  325. new VerifyCoefficient() { CheckerId = 3, DoPersonId =12, Coefficient =0.4},
  326. new VerifyCoefficient() { CheckerId = 3, DoPersonId =13, Coefficient =0.5},
  327. new VerifyCoefficient() { CheckerId = 4, DoPersonId =5, Coefficient =0.2},
  328. new VerifyCoefficient() { CheckerId = 4, DoPersonId =6, Coefficient =0.2},
  329. new VerifyCoefficient() { CheckerId = 4, DoPersonId =7, Coefficient =0.2},
  330. new VerifyCoefficient() { CheckerId = 4, DoPersonId =8, Coefficient =0.2},
  331. new VerifyCoefficient() { CheckerId = 4, DoPersonId =9, Coefficient =0.3},
  332. new VerifyCoefficient() { CheckerId = 4, DoPersonId =10, Coefficient =0.3},
  333. new VerifyCoefficient() { CheckerId = 4, DoPersonId =11, Coefficient =0.4},
  334. new VerifyCoefficient() { CheckerId = 4, DoPersonId =12, Coefficient =0.4},
  335. new VerifyCoefficient() { CheckerId = 4, DoPersonId =13, Coefficient =0.5},
  336. new VerifyCoefficient() { CheckerId = 5, DoPersonId =5, Coefficient =0.2},
  337. new VerifyCoefficient() { CheckerId = 5, DoPersonId =6, Coefficient =0.2},
  338. new VerifyCoefficient() { CheckerId = 5, DoPersonId =7, Coefficient =0.2},
  339. new VerifyCoefficient() { CheckerId = 5, DoPersonId =8, Coefficient =0.2},
  340. new VerifyCoefficient() { CheckerId = 5, DoPersonId =9, Coefficient =0.3},
  341. new VerifyCoefficient() { CheckerId = 5, DoPersonId =10, Coefficient =0.3},
  342. new VerifyCoefficient() { CheckerId = 5, DoPersonId =11, Coefficient =0.4},
  343. new VerifyCoefficient() { CheckerId = 5, DoPersonId =12, Coefficient =0.4},
  344. new VerifyCoefficient() { CheckerId = 5, DoPersonId =13, Coefficient =0.5},
  345. new VerifyCoefficient() { CheckerId = 6, DoPersonId =5, Coefficient =0.2},
  346. new VerifyCoefficient() { CheckerId = 6, DoPersonId =6, Coefficient =0.2},
  347. new VerifyCoefficient() { CheckerId = 6, DoPersonId =7, Coefficient =0.2},
  348. new VerifyCoefficient() { CheckerId = 6, DoPersonId =8, Coefficient =0.2},
  349. new VerifyCoefficient() { CheckerId = 6, DoPersonId =9, Coefficient =0.3},
  350. new VerifyCoefficient() { CheckerId = 6, DoPersonId =10, Coefficient =0.3},
  351. new VerifyCoefficient() { CheckerId = 6, DoPersonId =11, Coefficient =0.4},
  352. new VerifyCoefficient() { CheckerId = 6, DoPersonId =12, Coefficient =0.4},
  353. new VerifyCoefficient() { CheckerId = 6, DoPersonId =13, Coefficient =0.5}
  354. }
  355. );
  356. BasePointRule[] rules = new BasePointRule[]
  357. {
  358. new BasePointRule(){Rule="p.DoItem==\"发明一次OA授权\" && p.ApplicationType==\"发明\"",PointExpress="0.2",Type="一次OA授权",Priority=1},
  359. new BasePointRule(){Rule="p.ApplicationType==\"实用新型\" && p.CaseNo.StartsWith(\"PACN\") && p.AgentFeedbackMemo==\"发文后客户取消申请\"",PointExpress="0.49",Type="新申请",Priority=2},
  360. new BasePointRule(){Rule="p.ApplicationType==\"发明\" && p.CaseNo.StartsWith(\"PACN\") && p.AgentFeedbackMemo==\"发文后客户取消申请\"",PointExpress="0.7",Type="新申请",Priority=3},
  361. new BasePointRule(){Rule="p.CaseNo.StartsWith(\"PADE\")  && p.AgentFeedbackMemo==\"发文后客户原因取消申请,系统结案\"",PointExpress="1.33",Type="新申请",Priority=4},
  362. new BasePointRule(){Rule="p.CaseNo.StartsWith(\"PAUS\")  && p.AgentFeedbackMemo==\"发文后客户原因取消申请,系统结案\"",PointExpress="1.26",Type="新申请",Priority=5},
  363. new BasePointRule(){Rule="p.DoItem==\"新申请\" && p.AgentFeedbackMemo==\"PCT首次英文案\"",PointExpress="1.8",Type="新申请",Priority=6},
  364. new BasePointRule(){Rule="p.DoItem==\"新申请\" && p.AgentFeedbackMemo==\"涉外实质改权\"",PointExpress="0.7",Type="新申请",Priority=7},
  365. new BasePointRule(){Rule="p.DoItem==\"新申请\" && p.AgentFeedbackMemo==\"首次中文案\"",PointExpress="1",Type="新申请",Priority=8},
  366. new BasePointRule(){Rule="p.DoItem==\"新申请\" && p.AgentFeedbackMemo==\"外-内首次申请\"",PointExpress="1.5",Type="新申请",Priority=9},
  367. new BasePointRule(){Rule="p.DoItem==\"新申请\" && p.ApplicationType==\"实用新型\" && p.CaseNo.StartsWith(\"PACN\") && p.AgentFeedbackMemo==\"同套大陆+台湾\"",PointExpress="0.7",Type="新申请",Priority=10},
  368. new BasePointRule(){Rule="p.DoItem==\"新申请\" && p.ApplicationType==\"发明\"  && p.CaseNo.StartsWith(\"PACN\") && p.AgentFeedbackMemo==\"同套大陆+台湾\"",PointExpress="1",Type="新申请",Priority=11},
  369. new BasePointRule(){Rule="p.DoItem==\"新申请\" && p.AgentFeedbackMemo==\"欧洲案首次\" && p.ApplicationType==\"发明\" &&  p.CaseNo.StartsWith(\"PAEPO\")",PointExpress="1.8",Type="新申请",Priority=12},
  370. new BasePointRule(){Rule="p.DoItem==\"新申请\"  && p.ApplicationType==\"发明\" &&  p.CaseNo.StartsWith(\"PACN\") && p.CaseNo.EndsWith(\"-TS\")",PointExpress="1",Type="新申请",Priority=13},
  371. new BasePointRule(){Rule="p.DoItem==\"新申请\" && p.ApplicationType==\"发明\" && p.CaseNo.StartsWith(\"PACN\")",PointExpress="1",Type="新申请",Priority=14},
  372. new BasePointRule(){Rule="p.DoItem==\"新申请\" && p.ApplicationType==\"实用新型\" &&  p.CaseNo.StartsWith(\"PACN\")",PointExpress="0.7",Type="新申请",Priority=15},
  373. new BasePointRule(){Rule="p.DoItem==\"新申请\" && p.ApplicationType==\"实用新型\" &&  p.CaseNo.StartsWith(\"PACN\") && p.Customer.Name.Contains(\"OPPO\")",PointExpress="1",Type="新申请",Priority=16},
  374. new BasePointRule(){Rule="p.DoItem==\"新申请\" && p.ApplicationType==\"发明\" &&  p.CaseNo.StartsWith(\"PADE\")",PointExpress="1.9",Type="新申请",Priority=17},
  375. new BasePointRule(){Rule="p.DoItem==\"新申请\" && p.ApplicationType==\"实用新型\" &&  p.CaseNo.StartsWith(\"PADE\")",PointExpress="1.9",Type="新申请",Priority=18},
  376. new BasePointRule(){Rule="p.DoItem==\"新申请\" && p.ApplicationType==\"发明\" &&  p.CaseNo.StartsWith(\"PAGB\")",PointExpress="1.8",Type="新申请",Priority=19},
  377. new BasePointRule(){Rule="p.DoItem==\"新申请\" && p.ApplicationType==\"发明\" &&  p.CaseNo.StartsWith(\"PAUS\")",PointExpress="1.8",Type="新申请",Priority=20},
  378. new BasePointRule(){Rule="p.DoItem==\"新申请\" && p.ApplicationType==\"发明\" &&  p.CaseNo.StartsWith(\"PAUS\") && p.Customer.Name.Contains(\"OPPO\")",PointExpress="1.7",Type="新申请",Priority=21},
  379. new BasePointRule(){Rule="p.DoItem==\"新申请\" && p.ApplicationType==\"发明\" &&  p.CaseNo.StartsWith(\"PCTCN\")",PointExpress="1.5",Type="新申请",Priority=22},
  380. new BasePointRule(){Rule="p.DoItem==\"新申请\" && p.AgentFeedbackMemo==\"英-中\" && p.WordCount !=null",PointExpress="p.WordCount/1000*0.1",Type="其它",Priority=23},
  381. new BasePointRule(){Rule="p.DoItem==\"新申请\" && p.AgentFeedbackMemo==\"中-英\" && p.WordCount !=null",PointExpress="p.WordCount/1000*0.16",Type="其它",Priority=24},
  382. new BasePointRule(){Rule="p.DoItem==\"新申请\" && p.AgentFeedbackMemo==\"中-德\" && p.WordCount !=null",PointExpress="p.WordCount/1000*0.18",Type="其它",Priority=25},
  383. new BasePointRule(){Rule="p.AgentFeedbackMemo==\"检索结案\"",PointExpress="0.2",Type="其它",Priority=26},
  384. new BasePointRule(){Rule="p.AgentFeedbackMemo==\"撰写中客户取消申请\"",PointExpress="0",Type="其它",Priority=27},
  385. new BasePointRule(){Rule="p.AgentFeedbackMemo==\"我方代交\"",PointExpress="0",Type="其它",Priority=28},
  386. new BasePointRule(){Rule="p.AgentFeedbackMemo==\"我方转格式、复核\"",PointExpress="0.2",Type="其它",Priority=29},
  387. new BasePointRule(){Rule="p.DoItem==\"新申请\" && p.AgentFeedbackMemo==\"改权\"",PointExpress="0.3",Type="其它",Priority=30},
  388. new BasePointRule(){Rule="p.DoItem==\"新申请\" && p.AgentFeedbackMemo==\"改权+改说明书\"",PointExpress="0.5",Type="其它",Priority=31},
  389. new BasePointRule(){Rule="p.DoItem==\"新申请\" && p.AgentFeedbackMemo==\"转格式\"",PointExpress="0.1",Type="其它",Priority=32},
  390. new BasePointRule(){Rule="p.DoItem==\"新申请\" && p.ApplicationType==\"发明\"  && p.CaseNo.StartsWith(\"PATW\") && p.AgentFeedbackMemo==\"同套大陆+台湾\"",PointExpress="0.1",Type="其它",Priority=33},
  391. new BasePointRule(){Rule="p.DoItem==\"新申请\" && p.ApplicationType==\"实用新型\" && p.CaseNo.StartsWith(\"PATW\") && p.AgentFeedbackMemo==\"同套大陆+台湾\"",PointExpress="0.1",Type="其它",Priority=34},
  392. new BasePointRule(){Rule="p.DoItem==\"新申请\" && p.CaseNo.StartsWith(\"PACN\") && p.AgentFeedbackMemo==\"台湾案转大陆案\"",PointExpress="0.2",Type="其它",Priority=35},
  393. new BasePointRule(){Rule="p.DoItem==\"新申请\" && p.CaseNo.StartsWith(\"PATW\") && p.AgentFeedbackMemo==\"大陆案转台湾案\"",PointExpress="0.2",Type="其它",Priority=36},
  394. new BasePointRule(){Rule="p.DoItem==\"新申请\" && p.ApplicationType==\"发明\" &&  p.CaseNo.StartsWith(\"PACN\") && p.CaseNo.EndsWith(\"-分案\")",PointExpress="0.3",Type="其它",Priority=37},
  395. new BasePointRule(){Rule="p.CaseNo.StartsWith(\"PAUS\") && (p.CaseNo.EndsWith(\"-同套\") || p.CaseNo.EndsWith(\"CA\") || p.CaseNo.EndsWith(\"CIP\") || p.CaseNo.EndsWith(\"分案\"))",PointExpress="0.5",Type="其它",Priority=38},
  396. new BasePointRule(){Rule="p.DoItem==\"新申请\" && p.ApplicationType==\"实用新型\" &&  p.CaseNo.StartsWith(\"PACN\") && p.CaseNo.EndsWith(\"-TS\")",PointExpress="0.1",Type="其它",Priority=39},
  397. new BasePointRule(){Rule="p.DoItem==\"新申请\" && p.ApplicationType==\"发明\" &&  p.CaseNo.StartsWith(\"PAEPO\")",PointExpress="0.2",Type="其它",Priority=40},
  398. new BasePointRule(){Rule="(p.ApplicationType==\"实用新型\" || p.ApplicationType==\"发明\") && p.CaseNo.StartsWith(\"PACN\") && p.AgentFeedbackMemo==\"客户不进行答辩\"",PointExpress="0",Type="其它",Priority=41},
  399. new BasePointRule(){Rule="p.AgentFeedbackMemo==\"涉外OA不答辩,发报导函结案\"",PointExpress="0.1",Type="其它",Priority=42},
  400. new BasePointRule(){Rule="p.ApplicationType==\"外观设计\"",PointExpress="0.2",Type="其它",Priority=43},
  401. new BasePointRule(){Rule="p.DoItem==\"翻译校核\" && p.DoItemCoefficient==\"实质\" && p.AgentFeedbackMemo==\"内-外\"",PointExpress="0.7",Type="其它",Priority=44},
  402. new BasePointRule(){Rule="p.DoItem==\"翻译校核\" && p.DoItemCoefficient==\"实质\" && p.AgentFeedbackMemo==\"外-内\"",PointExpress="0.5",Type="其它",Priority=45},
  403. new BasePointRule(){Rule="p.DoItem==\"翻译校核\" && p.DoItemCoefficient==\"形式\" && p.AgentFeedbackMemo==\"内-外\"",PointExpress="0.3",Type="其它",Priority=46},
  404. new BasePointRule(){Rule="p.DoItem==\"翻译校核\" && p.DoItemCoefficient==\"形式\" && p.AgentFeedbackMemo==\"外-内\"",PointExpress="0.2",Type="其它",Priority=47},
  405. new BasePointRule(){Rule="p.AgentFeedbackMemo==\"检索结案\"",PointExpress="0.2",Type="其它",Priority=48},
  406. new BasePointRule(){Rule="p.DoItem==\"内部检索\"",PointExpress="0",Type="其它",Priority=49},
  407. new BasePointRule(){Rule="p.DoItem.Contains(\"补正\")  && p.CaseNo.StartsWith(\"PAAU\")",PointExpress="0.2",Type="其它",Priority=50},
  408. new BasePointRule(){Rule="p.DoItem.Contains(\"补正\")  && p.CaseNo.StartsWith(\"PACN\")",PointExpress="0",Type="其它",Priority=51},
  409. new BasePointRule(){Rule="p.DoItem.Contains(\"补正\")  && p.CaseNo.StartsWith(\"PCTCN\")",PointExpress="0",Type="其它",Priority=52},
  410. new BasePointRule(){Rule="p.DoItem.Contains(\"补正\")  && p.CaseNo.StartsWith(\"WOCN\")",PointExpress="0",Type="其它",Priority=53},
  411. new BasePointRule(){Rule="p.DoItem.Contains(\"补正\")  && p.CaseNo.StartsWith(\"PADE\")",PointExpress="0.2",Type="其它",Priority=54},
  412. new BasePointRule(){Rule="p.DoItem.Contains(\"补正\")  && p.CaseNo.StartsWith(\"PAEPO\")",PointExpress="0.2",Type="其它",Priority=55},
  413. new BasePointRule(){Rule="p.DoItem.Contains(\"补正\")  && p.CaseNo.StartsWith(\"PAGB\")",PointExpress="0.2",Type="其它",Priority=56},
  414. new BasePointRule(){Rule="p.DoItem.Contains(\"补正\")  && p.CaseNo.StartsWith(\"PAIN\")",PointExpress="0.2",Type="其它",Priority=57},
  415. new BasePointRule(){Rule="p.DoItem.Contains(\"补正\")  && p.CaseNo.StartsWith(\"PAUS\")",PointExpress="0.2",Type="其它",Priority=58},
  416. new BasePointRule(){Rule="p.DoItem==\"Election Action\"",PointExpress="0.2",Type="其它",Priority=59},
  417. new BasePointRule(){Rule="p.DoItem==\"OA答辩校核\"",PointExpress="0.2",Type="其它",Priority=60},
  418. new BasePointRule(){Rule="p.DoItem==\"PPH\"",PointExpress="0.1",Type="其它",Priority=61},
  419. new BasePointRule(){Rule="p.DoItem==\"电询\"  && p.CaseNo.StartsWith(\"PACN\")",PointExpress="0",Type="其它",Priority=62},
  420. new BasePointRule(){Rule="p.DoItem==\"电询\"  && p.CaseNo.StartsWith(\"PAEPO\")",PointExpress="0.2",Type="其它",Priority=63},
  421. new BasePointRule(){Rule="p.DoItem==\"电询\"  && p.CaseNo.StartsWith(\"PAUS\")",PointExpress="0.2",Type="其它",Priority=64},
  422. new BasePointRule(){Rule="p.DoItem==\"分案评估\"",PointExpress="0.1",Type="其它",Priority=65},
  423. new BasePointRule(){Rule="p.DoItem==\"分案评估+分案\"",PointExpress="0.2",Type="其它",Priority=66},
  424. new BasePointRule(){Rule="p.DoItem==\"绘图\"",PointExpress="0",Type="其它",Priority=67},
  425. new BasePointRule(){Rule="p.DoItem==\"技术确认\"",PointExpress="0",Type="其它",Priority=68},
  426. new BasePointRule(){Rule="p.DoItem==\"提交ids\"",PointExpress="0.1",Type="其它",Priority=69},
  427. new BasePointRule(){Rule="p.DoItem==\"询问放弃或复审\"",PointExpress="0",Type="其它",Priority=70},
  428. new BasePointRule(){Rule="p.DoItem==\"知识点总结\"",PointExpress="0",Type="其它",Priority=71},
  429. new BasePointRule(){Rule="p.DoItem==\"专利挖掘与布局\"",PointExpress="0",Type="其它",Priority=72},
  430. new BasePointRule(){Rule="p.ApplicationType==\"外观设计\"",PointExpress="0.2",Type="其它",Priority=73},
  431. new BasePointRule(){Rule="p.DoItem==\"请求优先审查\"",PointExpress="0",Type="其它",Priority=74},
  432. new BasePointRule(){Rule="p.DoItem==\"翻译\" && p.AgentFeedbackMemo==\"英-中\"",PointExpress="p.WordCount/1000*0.1",Type="其它",Priority=75},
  433. new BasePointRule(){Rule="p.DoItem==\"翻译\" && p.AgentFeedbackMemo==\"中-英\"",PointExpress="p.WordCount/1000*0.16",Type="其它",Priority=76},
  434. new BasePointRule(){Rule="p.DoItem==\"翻译\" && p.AgentFeedbackMemo==\"中-德\"",PointExpress="p.WordCount/1000*0.18",Type="其它",Priority=77},
  435. new BasePointRule(){Rule="p.DoItem==\"处理审查意见\" && p.ApplicationType==\"实用新型\"  && p.AgentFeedbackMemo==\"不请款\"",PointExpress="0",Type="OA",Priority=78},
  436. new BasePointRule(){Rule="p.ApplicationType==\"实用新型\"  && p.DoItemCoefficient==\"实质\" && (p.CaseStage==\"三通\" || p.CaseStage==\"四通\" || p.CaseStage==\"五通\" || p.CaseStage==\"六通\" || p.CaseStage==\"七通\" || p.CaseStage==\"八通\")",PointExpress="0",Type="OA",Priority=79},
  437. new BasePointRule(){Rule="p.ApplicationType==\"实用新型\"  && p.DoItemCoefficient==\"实质\" && p.CaseStage==\"二通\" && p.AgentFeedbackMemo==\"请款\"",PointExpress="0.14",Type="OA",Priority=80},
  438. new BasePointRule(){Rule="p.ApplicationType==\"实用新型\"  && p.DoItemCoefficient==\"实质\" && p.CaseStage==\"一通\" && p.AgentFeedbackMemo==\"请款\"",PointExpress="0.35",Type="OA",Priority=81},
  439. new BasePointRule(){Rule="p.DoItem==\"请求复审\" && p.ApplicationType==\"实用新型\"  && p.AgentFeedbackMemo==\"请款\"",PointExpress="0.35",Type="OA",Priority=82},
  440. new BasePointRule(){Rule="p.DoItem==\"处理审查意见\" && p.ApplicationType==\"发明\" && p.DoItemCoefficient==\"非实质\"  && p.AgentFeedbackMemo==\"外所/他人首次转入OA\"",PointExpress="0.3",Type="OA",Priority=83},
  441. new BasePointRule(){Rule="p.DoItem==\"处理审查意见\" && p.ApplicationType==\"发明\" && p.DoItemCoefficient==\"实质\" && p.AgentFeedbackMemo==\"外所/他人首次转入OA\"",PointExpress="0.5",Type="OA",Priority=84},
  442. new BasePointRule(){Rule="p.DoItem==\"处理审查意见\" && p.ApplicationType==\"发明\" && p.DoItemCoefficient==\"形式\" && p.AgentFeedbackMemo==\"外所/他人首次转入OA\"",PointExpress="0.2",Type="OA",Priority=85},
  443. new BasePointRule(){Rule="p.DoItem==\"处理审查意见\" && p.DoItemCoefficient==\"实质\" && p.AgentFeedbackMemo==\"客户提供答辩点,撰写英文报导函\"",PointExpress="0.5",Type="OA",Priority=86},
  444. new BasePointRule(){Rule="p.DoItem==\"处理审查意见\" && p.DoItemCoefficient==\"实质\" && p.AgentFeedbackMemo==\"客户未提供答辩点,撰写英文报导函\"",PointExpress="0.8",Type="OA",Priority=87},
  445. new BasePointRule(){Rule="p.DoItem==\"Advisory Action\" && p.DoItemCoefficient==\"实质\"",PointExpress="1.5",Type="OA",Priority=88},
  446. new BasePointRule(){Rule="p.DoItem==\"Advisory Action\" && p.DoItemCoefficient==\"形式\"",PointExpress="0.2",Type="OA",Priority=89},
  447. new BasePointRule(){Rule="p.DoItem==\"Final Action\" && p.DoItemCoefficient==\"实质\"",PointExpress="1.5",Type="OA",Priority=90},
  448. new BasePointRule(){Rule="p.DoItem==\"Final Action\" && p.DoItemCoefficient==\"形式\"",PointExpress="0.2",Type="OA",Priority=91},
  449. new BasePointRule(){Rule="p.DoItem==\"form 3\"",PointExpress="0.1",Type="OA",Priority=92},
  450. new BasePointRule(){Rule="p.DoItem==\"form 3-8(2)\" ||  p.DoItem==\"Form 3-8(2)\"",PointExpress="0.1",Type="OA",Priority=93},
  451. new BasePointRule(){Rule="p.DoItem==\"Non Final Action\" && p.DoItemCoefficient==\"实质\"",PointExpress="1.5",Type="OA",Priority=94},
  452. new BasePointRule(){Rule="p.DoItem==\"Non Final Action\" && p.DoItemCoefficient==\"形式\"",PointExpress="0.2",Type="OA",Priority=95},
  453. new BasePointRule(){Rule="p.DoItem==\"RCE\" && p.DoItemCoefficient==\"实质\"",PointExpress="1.5",Type="OA",Priority=96},
  454. new BasePointRule(){Rule="p.DoItem==\"RCE\" && p.DoItemCoefficient==\"形式\"",PointExpress="0.2",Type="OA",Priority=97},
  455. new BasePointRule(){Rule="p.DoItem==\"欧洲案答辩\" && p.DoItemCoefficient==\"实质\"",PointExpress="1.5",Type="OA",Priority=98},
  456. new BasePointRule(){Rule="p.DoItem==\"欧洲案答辩\" && p.DoItemCoefficient==\"形式\"",PointExpress="0.2",Type="OA",Priority=99},
  457. new BasePointRule(){Rule="p.DoItem==\"口审评估\" && p.DoItemCoefficient==\"非实质\"",PointExpress="0.2",Type="OA",Priority=100},
  458. new BasePointRule(){Rule="p.DoItem==\"口审评估\" && p.DoItemCoefficient==\"实质\"",PointExpress="1.5",Type="OA",Priority=101},
  459. new BasePointRule(){Rule="p.DoItem==\"处理审查意见\" && p.DoItemCoefficient==\"实质\" && p.CaseNo.StartsWith(\"PAUS\")",PointExpress="1.5",Type="OA",Priority=102},
  460. new BasePointRule(){Rule="p.DoItem==\"处理审查意见\" && p.DoItemCoefficient==\"形式\" && p.CaseNo.StartsWith(\"PAUS\")",PointExpress="0.2",Type="OA",Priority=103},
  461. new BasePointRule(){Rule="p.DoItem==\"处理审查意见\" && p.DoItemCoefficient==\"实质\" && p.CaseNo.StartsWith(\"PAAU\")",PointExpress="1.5",Type="OA",Priority=104},
  462. new BasePointRule(){Rule="p.DoItem==\"处理审查意见\" && p.DoItemCoefficient==\"实质\" && p.CaseNo.StartsWith(\"PADE\")",PointExpress="1.6",Type="OA",Priority=105},
  463. new BasePointRule(){Rule="p.DoItem==\"处理审查意见\" && p.DoItemCoefficient==\"实质\" && p.CaseNo.StartsWith(\"PAEPO\")",PointExpress="1.5",Type="OA",Priority=106},
  464. new BasePointRule(){Rule="p.DoItem==\"处理审查意见\" && p.DoItemCoefficient==\"实质\" && p.CaseNo.StartsWith(\"PAGB\")",PointExpress="1.5",Type="OA",Priority=107},
  465. new BasePointRule(){Rule="p.DoItem==\"处理审查意见\" && p.DoItemCoefficient==\"实质\" && p.CaseNo.StartsWith(\"PAIN\")",PointExpress="1.5",Type="OA",Priority=108},
  466. new BasePointRule(){Rule="p.DoItem==\"处理审查意见\" && p.DoItemCoefficient==\"形式\" && p.CaseNo.StartsWith(\"PAAU\")",PointExpress="0.2",Type="OA",Priority=109},
  467. new BasePointRule(){Rule="p.DoItem==\"处理审查意见\" && p.DoItemCoefficient==\"形式\" && p.CaseNo.StartsWith(\"PADE\")",PointExpress="0.3",Type="OA",Priority=110},
  468. new BasePointRule(){Rule="p.DoItem==\"处理审查意见\" && p.DoItemCoefficient==\"形式\" && p.CaseNo.StartsWith(\"PAEPO\")",PointExpress="0.2",Type="OA",Priority=111},
  469. new BasePointRule(){Rule="p.DoItem==\"处理审查意见\" && p.DoItemCoefficient==\"形式\" && p.CaseNo.StartsWith(\"PAGB\")",PointExpress="0.2",Type="OA",Priority=112},
  470. new BasePointRule(){Rule="p.DoItem==\"处理审查意见\" && p.DoItemCoefficient==\"形式\" && p.CaseNo.StartsWith(\"PAIN\")",PointExpress="0.2",Type="OA",Priority=113},
  471. new BasePointRule(){Rule="p.DoItem==\"申復\" && p.DoItemCoefficient==\"实质\" && p.CaseNo.StartsWith(\"PATW\")",PointExpress="0.5",Type="OA",Priority=114},
  472. new BasePointRule(){Rule="p.DoItem==\"申復\" && p.DoItemCoefficient==\"形式\" && p.CaseNo.StartsWith(\"PATW\")",PointExpress="0.2",Type="OA",Priority=115},
  473. new BasePointRule(){Rule="p.DoItem==\"请求复审\" && p.ApplicationType==\"发明\" && p.CaseNo.StartsWith(\"PACN\")",PointExpress="0.5",Type="OA",Priority=116},
  474. new BasePointRule(){Rule="p.DoItem==\"意见陈述\" && p.ApplicationType==\"发明\" && p.CaseNo.StartsWith(\"PACN\") && p.CaseStage==\"复审\"",PointExpress="0.2",Type="OA",Priority=117},
  475. new BasePointRule(){Rule="p.DoItem==\"处理审查意见\" && p.ApplicationType==\"发明\" &&  p.DoItemCoefficient==\"非实质\" && p.CaseNo.StartsWith(\"PACN\") && p.CaseStage==\"一通\"",PointExpress="0.3",Type="OA",Priority=118},
  476. new BasePointRule(){Rule="p.DoItem==\"处理审查意见\" && p.ApplicationType==\"发明\" &&  p.DoItemCoefficient==\"实质\" && p.CaseNo.StartsWith(\"PACN\")  && p.CaseStage==\"一通\"",PointExpress="0.5",Type="OA",Priority=119},
  477. new BasePointRule(){Rule="p.DoItem==\"处理审查意见\" && p.ApplicationType==\"发明\" &&  p.DoItemCoefficient==\"形式\" && p.CaseNo.StartsWith(\"PACN\") && p.CaseStage==\"一通\"",PointExpress="0.2",Type="OA",Priority=120},
  478. new BasePointRule(){Rule="p.DoItem==\"处理审查意见\" && p.ApplicationType==\"发明\" &&  p.DoItemCoefficient==\"非实质\" && p.CaseNo.StartsWith(\"PCTCN\") && p.CaseStage==\"一通\"",PointExpress="0.3",Type="OA",Priority=121},
  479. new BasePointRule(){Rule="p.DoItem==\"处理审查意见\" && p.ApplicationType==\"发明\" &&  p.DoItemCoefficient==\"实质\" && p.CaseNo.StartsWith(\"PCTCN\")  && p.CaseStage==\"一通\"",PointExpress="0.5",Type="OA",Priority=122},
  480. new BasePointRule(){Rule="p.DoItem==\"处理审查意见\" && p.ApplicationType==\"发明\" &&  p.DoItemCoefficient==\"形式\" && p.CaseNo.StartsWith(\"PCTCN\") && p.CaseStage==\"一通\"",PointExpress="0.2",Type="OA",Priority=123},
  481. new BasePointRule(){Rule="p.DoItem==\"处理审查意见\" && p.ApplicationType==\"发明\" &&  p.CaseNo.StartsWith(\"PACN\") && p.CaseStage==\"二通\"",PointExpress="0.2",Type="OA",Priority=124},
  482. new BasePointRule(){Rule="p.DoItem==\"处理审查意见\" && p.ApplicationType==\"发明\" &&  p.CaseNo.StartsWith(\"PCTCN\") && p.CaseStage==\"二通\"",PointExpress="0.2",Type="OA",Priority=125},
  483. new BasePointRule(){Rule="p.DoItem==\"处理审查意见\" && p.ApplicationType==\"发明\" && p.CaseNo.StartsWith(\"PACN\") &&  (p.CaseStage==\"三通\" || p.CaseStage==\"四通\" || p.CaseStage==\"五通\")",PointExpress="0",Type="OA",Priority=126},
  484. new BasePointRule(){Rule="p.DoItem==\"处理审查意见\" && p.ApplicationType==\"发明\" && p.CaseNo.StartsWith(\"PCTCN\") &&  (p.CaseStage==\"三通\" || p.CaseStage==\"四通\" || p.CaseStage==\"五通\")",PointExpress="0",Type="OA",Priority=127},
  485. new BasePointRule(){Rule="p.AgentFeedbackMemo==\"已核算绩效\"",PointExpress="0",Type="其它",Priority=128},
  486. };
  487. for(int i = 0; i < rules.Length ; i++)
  488. {
  489. rules[i].Id = i+1;
  490. }
  491. modelBuilder.Entity<BasePointRule>().HasData(rules);
  492. OnModelCreatingPartial(modelBuilder);
  493. }
  494. partial void OnModelCreatingPartial(ModelBuilder modelBuilder);
  495. }
  496. }