calculation.ts 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. // 计算选项
  2. export interface ICalcOption {
  3. calcMain: boolean;
  4. calcAdd: boolean;
  5. calcEst: boolean;
  6. }
  7. // 调价类型:
  8. export enum TenderKinds {
  9. COE_CALC, // 正向调价-按系数计算
  10. REVERSE_RATION, // 反向调价-调子目
  11. REVERSE_GLJ, // 反向调价-调工料机
  12. NULL, // 无需参数时,用作占位
  13. }
  14. // 调价设置
  15. export interface ITenderSetting {
  16. gljPriceTenderCoe: number; // 工料机单价调整系数
  17. tenderKind: TenderKinds;
  18. }
  19. export interface ICalcItem {
  20. ID: number;
  21. code: string;
  22. name: string;
  23. fieldName: string;
  24. dispExpr: string;
  25. dispExprUser?: string;
  26. expression: string;
  27. compiledExpr?: string;
  28. statement: string;
  29. feeRateID?: number;
  30. feeRate?: string;
  31. labourCoeID?: number;
  32. memo?: string;
  33. custom?: boolean;
  34. [key: string]: any;
  35. }
  36. export interface ICalcTemplate {
  37. ID: number;
  38. name: string;
  39. calcItems: ICalcItem[];
  40. [key: string]: any;
  41. }
  42. export interface IStdCalcProgram {
  43. ID: number;
  44. region: string;
  45. libName: string;
  46. displayName: string;
  47. compilationId: string;
  48. compilationName: string;
  49. templates: ICalcTemplate[];
  50. }
  51. export interface ICalcProgramFile {
  52. ID: string;
  53. projectID: string;
  54. name: string;
  55. libID: number;
  56. libName: string;
  57. programs: ICalcTemplate[];
  58. }