SlmBaseMaterialEntity.cs 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.ComponentModel;
  6. using Core.Mes.Client.Comm.Attribute;
  7. using Newtonsoft.Json;
  8. namespace Core.StlMes.Client.SaleOrder
  9. {
  10. public class SlmBaseMaterialEntity
  11. {
  12. /// <summary>
  13. /// 物料编码
  14. /// </summary>
  15. private object materialNo;
  16. /// <summary>
  17. /// 物料描述
  18. /// </summary>
  19. private object materialDesc;
  20. /// <summary>
  21. /// 品名代码
  22. /// </summary>
  23. private object produccode;
  24. /// <summary>
  25. /// 品名描述
  26. /// </summary>
  27. private object producname;
  28. /// <summary>
  29. /// 品名简称
  30. /// </summary>
  31. private object producJx;
  32. /// <summary>
  33. /// 品名英语名称
  34. /// </summary>
  35. private object producEng;
  36. /// <summary>
  37. /// 标准类别代码
  38. /// </summary>
  39. private object stdStyle;
  40. /// <summary>
  41. /// 标准类别描述(PSL1....)
  42. /// </summary>
  43. private object stdStyleDesc;
  44. /// <summary>
  45. /// 钢级(牌号)代码
  46. /// </summary>
  47. private object steelcode;
  48. /// <summary>
  49. /// 钢级(牌号)名称
  50. /// </summary>
  51. private object steelname;
  52. /// <summary>
  53. /// 钢种代码(GZ0001)
  54. /// </summary>
  55. private object gradecode;
  56. /// <summary>
  57. /// 钢种名称
  58. /// </summary>
  59. private object gradename;
  60. /// <summary>
  61. /// 外径
  62. /// </summary>
  63. private object dimater;
  64. /// <summary>
  65. /// 壁厚
  66. /// </summary>
  67. private object height;
  68. /// <summary>
  69. /// 管坯规格代码(从产品规格表中取值)
  70. /// </summary>
  71. private object specCode;
  72. /// <summary>
  73. /// 管坯规格描述
  74. /// </summary>
  75. private object specName;
  76. /// <summary>
  77. /// 扣型代码
  78. /// </summary>
  79. private object modelCode;
  80. /// <summary>
  81. /// 扣型描述
  82. /// </summary>
  83. private object modelDesc;
  84. /// <summary>
  85. /// 允许外购
  86. /// </summary>
  87. private object outsrcAllow;
  88. /// <summary>
  89. /// 首次生产(对应物料缴库时改变首次生产标识)
  90. /// </summary>
  91. private object firstPrdc;
  92. /// <summary>
  93. /// 创建人
  94. /// </summary>
  95. private object createName;
  96. /// <summary>
  97. /// 创建时间
  98. /// </summary>
  99. private object createTime;
  100. /// <summary>
  101. /// 修改人
  102. /// </summary>
  103. private object updateName;
  104. /// <summary>
  105. /// 修改时间
  106. /// </summary>
  107. private object updateTime;
  108. /// <summary>
  109. /// 删除人
  110. /// </summary>
  111. private object deleteName;
  112. /// <summary>
  113. /// 删除时间
  114. /// </summary>
  115. private object deleteTime;
  116. /// <summary>
  117. /// 是否自动生成工艺文件(1:是 0:否)
  118. /// </summary>
  119. private string autoCraft = "";
  120. /// <summary>
  121. /// 物料大类
  122. /// </summary>
  123. private string materialTypeMax = "";
  124. /// <summary>
  125. /// 物料中类
  126. /// </summary>
  127. private string materialTypeMid = "";
  128. /// <summary>
  129. /// 物料小类
  130. /// </summary>
  131. private string materialTypeMin = "";
  132. /// <summary>
  133. /// 属性分类1
  134. /// </summary>
  135. private string propertyType1 = "";
  136. /// <summary>
  137. /// 属性分类2
  138. /// </summary>
  139. private string propertyType2 = "";
  140. /// <summary>
  141. /// TP系列
  142. /// </summary>
  143. private string tpSeries = "";
  144. /// <summary>
  145. /// 特殊扣型
  146. /// </summary>
  147. private string specialModel = "";
  148. /// <summary>
  149. /// 高端产品
  150. /// </summary>
  151. private string upmarketProduct = "";
  152. /// <summary>
  153. /// 高附加值产品
  154. /// </summary>
  155. private string highAdditionalProduct = "";
  156. /// <summary>
  157. /// 物料大类
  158. /// </summary>
  159. private string materialTypeMaxDesc = "";
  160. /// <summary>
  161. /// 物料中类
  162. /// </summary>
  163. private string materialTypeMidDesc = "";
  164. /// <summary>
  165. /// 物料小类
  166. /// </summary>
  167. private string materialTypeMinDesc = "";
  168. /// <summary>
  169. /// 属性分类1
  170. /// </summary>
  171. private string propertyType1Desc = "";
  172. /// <summary>
  173. /// 属性分类2
  174. /// </summary>
  175. private string propertyType2Desc = "";
  176. private string totalCost = "";
  177. public SlmBaseMaterialEntity()
  178. {
  179. materialNo = "";
  180. materialDesc = "";
  181. produccode = "";
  182. producname = "";
  183. producJx = "";
  184. producEng = "";
  185. stdStyle = "";
  186. stdStyleDesc = "";
  187. steelcode = "";
  188. steelname = "";
  189. gradecode = "";
  190. gradename = "";
  191. dimater = "";
  192. height = "";
  193. specCode = "";
  194. specName = "";
  195. modelCode = "";
  196. modelDesc = "";
  197. outsrcAllow = "";
  198. firstPrdc = "";
  199. createName = "";
  200. createTime = "";
  201. updateName = "";
  202. updateTime = "";
  203. deleteName = "";
  204. deleteTime = "";
  205. }
  206. /// <summary>
  207. /// 物料编码
  208. /// </summary>
  209. [Description("物料编码")]
  210. public object MaterialNo
  211. {
  212. get { return materialNo; }
  213. set
  214. {
  215. if (value == null)
  216. {
  217. materialNo = DBNull.Value;
  218. }
  219. else
  220. {
  221. materialNo = value;
  222. }
  223. }
  224. }
  225. /// <summary>
  226. /// 物料描述
  227. /// </summary>
  228. [Description("物料描述")]
  229. public object MaterialDesc
  230. {
  231. get { return materialDesc; }
  232. set
  233. {
  234. if (value == null)
  235. {
  236. materialDesc = DBNull.Value;
  237. }
  238. else
  239. {
  240. materialDesc = value;
  241. }
  242. }
  243. }
  244. /// <summary>
  245. /// 品名代码
  246. /// </summary>
  247. [Description("品名代码")]
  248. public object Produccode
  249. {
  250. get { return produccode; }
  251. set
  252. {
  253. if (value == null)
  254. {
  255. produccode = DBNull.Value;
  256. }
  257. else
  258. {
  259. produccode = value;
  260. }
  261. }
  262. }
  263. /// <summary>
  264. /// 品名描述
  265. /// </summary>
  266. [Description("品名描述")]
  267. public object Producname
  268. {
  269. get { return producname; }
  270. set
  271. {
  272. if (value == null)
  273. {
  274. producname = DBNull.Value;
  275. }
  276. else
  277. {
  278. producname = value;
  279. }
  280. }
  281. }
  282. /// <summary>
  283. /// 品名简称
  284. /// </summary>
  285. [Description("品名简称")]
  286. public object ProducJx
  287. {
  288. get { return producJx; }
  289. set
  290. {
  291. if (value == null)
  292. {
  293. producJx = DBNull.Value;
  294. }
  295. else
  296. {
  297. producJx = value;
  298. }
  299. }
  300. }
  301. /// <summary>
  302. /// 品名英语名称
  303. /// </summary>
  304. [Description("品名英语名称")]
  305. public object ProducEng
  306. {
  307. get { return producEng; }
  308. set
  309. {
  310. if (value == null)
  311. {
  312. producEng = DBNull.Value;
  313. }
  314. else
  315. {
  316. producEng = value;
  317. }
  318. }
  319. }
  320. /// <summary>
  321. /// 标准类别代码
  322. /// </summary>
  323. [Description("标准类别代码")]
  324. public object StdStyle
  325. {
  326. get { return stdStyle; }
  327. set
  328. {
  329. if (value == null)
  330. {
  331. stdStyle = DBNull.Value;
  332. }
  333. else
  334. {
  335. stdStyle = value;
  336. }
  337. }
  338. }
  339. /// <summary>
  340. /// 标准类别描述(PSL1....)
  341. /// </summary>
  342. [Description("标准类别描述")]
  343. public object StdStyleDesc
  344. {
  345. get { return stdStyleDesc; }
  346. set
  347. {
  348. if (value == null)
  349. {
  350. stdStyleDesc = DBNull.Value;
  351. }
  352. else
  353. {
  354. stdStyleDesc = value;
  355. }
  356. }
  357. }
  358. /// <summary>
  359. /// 钢级(牌号)代码
  360. /// </summary>
  361. [Description("钢级(牌号)代码")]
  362. public object Steelcode
  363. {
  364. get { return steelcode; }
  365. set
  366. {
  367. if (value == null)
  368. {
  369. steelcode = DBNull.Value;
  370. }
  371. else
  372. {
  373. steelcode = value;
  374. }
  375. }
  376. }
  377. /// <summary>
  378. /// 钢级(牌号)名称
  379. /// </summary>
  380. [Description("钢级(牌号)名称")]
  381. public object Steelname
  382. {
  383. get { return steelname; }
  384. set
  385. {
  386. if (value == null)
  387. {
  388. steelname = DBNull.Value;
  389. }
  390. else
  391. {
  392. steelname = value;
  393. }
  394. }
  395. }
  396. /// <summary>
  397. /// 钢种代码(GZ0001)
  398. /// </summary>
  399. [Description("钢种代码")]
  400. public object Gradecode
  401. {
  402. get { return gradecode; }
  403. set
  404. {
  405. if (value == null)
  406. {
  407. gradecode = DBNull.Value;
  408. }
  409. else
  410. {
  411. gradecode = value;
  412. }
  413. }
  414. }
  415. /// <summary>
  416. /// 钢种名称
  417. /// </summary>
  418. [Description("钢种名称")]
  419. public object Gradename
  420. {
  421. get { return gradename; }
  422. set
  423. {
  424. if (value == null)
  425. {
  426. gradename = DBNull.Value;
  427. }
  428. else
  429. {
  430. gradename = value;
  431. }
  432. }
  433. }
  434. /// <summary>
  435. /// 外径
  436. /// </summary>
  437. [Description("外径")]
  438. public object Dimater
  439. {
  440. get { return dimater; }
  441. set
  442. {
  443. if (value == null)
  444. {
  445. dimater = DBNull.Value;
  446. }
  447. else
  448. {
  449. dimater = value;
  450. }
  451. }
  452. }
  453. /// <summary>
  454. /// 壁厚
  455. /// </summary>
  456. [Description("壁厚")]
  457. public object Height
  458. {
  459. get { return height; }
  460. set
  461. {
  462. if (value == null)
  463. {
  464. height = DBNull.Value;
  465. }
  466. else
  467. {
  468. height = value;
  469. }
  470. }
  471. }
  472. /// <summary>
  473. /// 管坯规格代码(从产品规格表中取值)
  474. /// </summary>
  475. [Description("管坯规格代码")]
  476. public object SpecCode
  477. {
  478. get { return specCode; }
  479. set
  480. {
  481. if (value == null)
  482. {
  483. specCode = DBNull.Value;
  484. }
  485. else
  486. {
  487. specCode = value;
  488. }
  489. }
  490. }
  491. /// <summary>
  492. /// 管坯规格描述
  493. /// </summary>
  494. [Description("管坯规格描述")]
  495. public object SpecName
  496. {
  497. get { return specName; }
  498. set
  499. {
  500. if (value == null)
  501. {
  502. specName = DBNull.Value;
  503. }
  504. else
  505. {
  506. specName = value;
  507. }
  508. }
  509. }
  510. /// <summary>
  511. /// 扣型代码
  512. /// </summary>
  513. [Description("扣型代码")]
  514. public object ModelCode
  515. {
  516. get { return modelCode; }
  517. set
  518. {
  519. if (value == null)
  520. {
  521. modelCode = DBNull.Value;
  522. }
  523. else
  524. {
  525. modelCode = value;
  526. }
  527. }
  528. }
  529. /// <summary>
  530. /// 扣型描述
  531. /// </summary>
  532. [Description("扣型描述")]
  533. public object ModelDesc
  534. {
  535. get { return modelDesc; }
  536. set
  537. {
  538. if (value == null)
  539. {
  540. modelDesc = DBNull.Value;
  541. }
  542. else
  543. {
  544. modelDesc = value;
  545. }
  546. }
  547. }
  548. /// <summary>
  549. /// 允许外购
  550. /// </summary>
  551. [Description("允许外购")]
  552. public object OutsrcAllow
  553. {
  554. get { return outsrcAllow; }
  555. set
  556. {
  557. if (value == null)
  558. {
  559. outsrcAllow = DBNull.Value;
  560. }
  561. else
  562. {
  563. outsrcAllow = value;
  564. }
  565. }
  566. }
  567. /// <summary>
  568. /// 首次生产(对应物料缴库时改变首次生产标识)
  569. /// </summary>
  570. [Description("首次生产")]
  571. public object FirstPrdc
  572. {
  573. get { return firstPrdc; }
  574. set
  575. {
  576. if (value == null)
  577. {
  578. firstPrdc = DBNull.Value;
  579. }
  580. else
  581. {
  582. firstPrdc = value;
  583. }
  584. }
  585. }
  586. /// <summary>
  587. /// 创建人
  588. /// </summary>
  589. [Description("创建人")]
  590. public object CreateName
  591. {
  592. get { return createName; }
  593. set
  594. {
  595. if (value == null)
  596. {
  597. createName = DBNull.Value;
  598. }
  599. else
  600. {
  601. createName = value;
  602. }
  603. }
  604. }
  605. /// <summary>
  606. /// 创建时间
  607. /// </summary>
  608. [Description("创建时间")]
  609. public object CreateTime
  610. {
  611. get { return createTime; }
  612. set
  613. {
  614. if (value == null)
  615. {
  616. createTime = DBNull.Value;
  617. }
  618. else
  619. {
  620. createTime = value;
  621. }
  622. }
  623. }
  624. /// <summary>
  625. /// 修改人
  626. /// </summary>
  627. [Description("修改人")]
  628. public object UpdateName
  629. {
  630. get { return updateName; }
  631. set
  632. {
  633. if (value == null)
  634. {
  635. updateName = DBNull.Value;
  636. }
  637. else
  638. {
  639. updateName = value;
  640. }
  641. }
  642. }
  643. /// <summary>
  644. /// 修改时间
  645. /// </summary>
  646. [Description("修改时间")]
  647. public object UpdateTime
  648. {
  649. get { return updateTime; }
  650. set
  651. {
  652. if (value == null)
  653. {
  654. updateTime = DBNull.Value;
  655. }
  656. else
  657. {
  658. updateTime = value;
  659. }
  660. }
  661. }
  662. /// <summary>
  663. /// 删除人
  664. /// </summary>
  665. [Description("删除人")]
  666. public object DeleteName
  667. {
  668. get { return deleteName; }
  669. set
  670. {
  671. if (value == null)
  672. {
  673. deleteName = DBNull.Value;
  674. }
  675. else
  676. {
  677. deleteName = value;
  678. }
  679. }
  680. }
  681. /// <summary>
  682. /// 删除时间
  683. /// </summary>
  684. [Description("删除时间")]
  685. public object DeleteTime
  686. {
  687. get { return deleteTime; }
  688. set
  689. {
  690. if (value == null)
  691. {
  692. deleteTime = DBNull.Value;
  693. }
  694. else
  695. {
  696. deleteTime = value;
  697. }
  698. }
  699. }
  700. /// <summary>
  701. /// 是否自动生成工艺文件(1:是 0:否)
  702. /// </summary>
  703. [Description("是否自动生成工艺文件")]
  704. [Nullable(true)]
  705. [DataLength(1)]
  706. [JsonProperty("autoCraft")]
  707. public string AutoCraft
  708. {
  709. get { return autoCraft; }
  710. set { autoCraft = value; }
  711. }
  712. /// <summary>
  713. /// 物料大类
  714. /// </summary>
  715. [Description("物料大类")]
  716. [Nullable(true)]
  717. [DataLength(10)]
  718. [JsonProperty("materialTypeMax")]
  719. public string MaterialTypeMax
  720. {
  721. get { return materialTypeMax; }
  722. set { materialTypeMax = value; }
  723. }
  724. /// <summary>
  725. /// 物料中类
  726. /// </summary>
  727. [Description("物料中类")]
  728. [Nullable(true)]
  729. [DataLength(10)]
  730. [JsonProperty("materialTypeMid")]
  731. public string MaterialTypeMid
  732. {
  733. get { return materialTypeMid; }
  734. set { materialTypeMid = value; }
  735. }
  736. /// <summary>
  737. /// 物料小类
  738. /// </summary>
  739. [Description("物料小类")]
  740. [Nullable(true)]
  741. [DataLength(10)]
  742. [JsonProperty("materialTypeMin")]
  743. public string MaterialTypeMin
  744. {
  745. get { return materialTypeMin; }
  746. set { materialTypeMin = value; }
  747. }
  748. /// <summary>
  749. /// 属性分类1
  750. /// </summary>
  751. [Description("属性分类1")]
  752. [Nullable(true)]
  753. [DataLength(10)]
  754. [JsonProperty("propertyType1")]
  755. public string PropertyType1
  756. {
  757. get { return propertyType1; }
  758. set { propertyType1 = value; }
  759. }
  760. /// <summary>
  761. /// 属性分类2
  762. /// </summary>
  763. [Description("属性分类2")]
  764. [Nullable(true)]
  765. [DataLength(10)]
  766. [JsonProperty("propertyType2")]
  767. public string PropertyType2
  768. {
  769. get { return propertyType2; }
  770. set { propertyType2 = value; }
  771. }
  772. /// <summary>
  773. /// TP系列
  774. /// </summary>
  775. [Description("TP系列")]
  776. [Nullable(true)]
  777. [DataLength(1)]
  778. [JsonProperty("tpSeries")]
  779. public string TpSeries
  780. {
  781. get { return tpSeries; }
  782. set { tpSeries = value; }
  783. }
  784. /// <summary>
  785. /// 特殊扣型
  786. /// </summary>
  787. [Description("特殊扣型")]
  788. [Nullable(true)]
  789. [DataLength(1)]
  790. [JsonProperty("specialModel")]
  791. public string SpecialModel
  792. {
  793. get { return specialModel; }
  794. set { specialModel = value; }
  795. }
  796. /// <summary>
  797. /// 高端产品
  798. /// </summary>
  799. [Description("高端产品")]
  800. [Nullable(true)]
  801. [DataLength(1)]
  802. [JsonProperty("upmarketProduct")]
  803. public string UpmarketProduct
  804. {
  805. get { return upmarketProduct; }
  806. set { upmarketProduct = value; }
  807. }
  808. /// <summary>
  809. /// 高附加值产品
  810. /// </summary>
  811. [Description("高附加值产品")]
  812. [Nullable(true)]
  813. [DataLength(1)]
  814. [JsonProperty("highAdditionalProduct")]
  815. public string HighAdditionalProduct
  816. {
  817. get { return highAdditionalProduct; }
  818. set { highAdditionalProduct = value; }
  819. }
  820. /// <summary>
  821. /// 物料大类
  822. /// </summary>
  823. [Description("物料大类")]
  824. [Nullable(true)]
  825. [DataLength(100)]
  826. [JsonProperty("materialTypeMaxDesc")]
  827. public string MaterialTypeMaxDesc
  828. {
  829. get { return materialTypeMaxDesc; }
  830. set { materialTypeMaxDesc = value; }
  831. }
  832. /// <summary>
  833. /// 物料中类
  834. /// </summary>
  835. [Description("物料中类")]
  836. [Nullable(true)]
  837. [DataLength(100)]
  838. [JsonProperty("materialTypeMidDesc")]
  839. public string MaterialTypeMidDesc
  840. {
  841. get { return materialTypeMidDesc; }
  842. set { materialTypeMidDesc = value; }
  843. }
  844. /// <summary>
  845. /// 物料小类
  846. /// </summary>
  847. [Description("物料小类")]
  848. [Nullable(true)]
  849. [DataLength(100)]
  850. [JsonProperty("materialTypeMinDesc")]
  851. public string MaterialTypeMinDesc
  852. {
  853. get { return materialTypeMinDesc; }
  854. set { materialTypeMinDesc = value; }
  855. }
  856. /// <summary>
  857. /// 属性分类1
  858. /// </summary>
  859. [Description("属性分类1")]
  860. [Nullable(true)]
  861. [DataLength(100)]
  862. [JsonProperty("propertyType1Desc")]
  863. public string PropertyType1Desc
  864. {
  865. get { return propertyType1Desc; }
  866. set { propertyType1Desc = value; }
  867. }
  868. /// <summary>
  869. /// 属性分类2
  870. /// </summary>
  871. [Description("属性分类2")]
  872. [Nullable(true)]
  873. [DataLength(100)]
  874. [JsonProperty("propertyType2Desc")]
  875. public string PropertyType2Desc
  876. {
  877. get { return propertyType2Desc; }
  878. set { propertyType2Desc = value; }
  879. }
  880. /// <summary>
  881. /// 完全成本
  882. /// </summary>
  883. [Description("工序成本")]
  884. [Nullable(true)]
  885. [DataLength(100)]
  886. [JsonProperty("totalCost")]
  887. public string TotalCost
  888. {
  889. get { return totalCost; }
  890. set { totalCost = value; }
  891. }
  892. }
  893. }