| | |
| | | [SugarColumn(ColumnName = "ITEM_NAME")] |
| | | public string? ItemName { get; set; } |
| | | |
| | | [SugarColumn(ColumnName = "DAA020")] |
| | | public string? Daa020 { get; set; } |
| | | [SugarColumn(ColumnName = "DAA020")] public string? Daa020 { get; set; } |
| | | } |
| | |
| | | public string? result { get; set; } |
| | | |
| | | public string? id { get; set; } |
| | | |
| | | /// <summary> |
| | | /// æç´¢æ¡ä»¶ï¼æ ¹æ®æ¤æ¡ä»¶çéä¾åºå ç©æç¼ç ç©æåç§°çæ°æ® |
| | | /// </summary> |
| | |
| | |  |
| | | using SqlSugar; |
| | | namespace MES.Service.Modes |
| | | { |
| | | using SqlSugar; |
| | | |
| | | namespace MES.Service.Modes; |
| | | |
| | | /// <summary> |
| | | /// ç¨æ·å¯¹åºçç©ææ£éªè¡¨ |
| | | ///</summary> |
| | |
| | | ///</summary> |
| | | [SugarColumn(ColumnName="ID" ,IsPrimaryKey = true )] |
| | | public decimal Id { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ç¨æ·id |
| | | ///</summary> |
| | | [SugarColumn(ColumnName="SID" )] |
| | | public decimal Sid { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ç©æid |
| | | ///</summary> |
| | |
| | | ///</summary> |
| | | [SugarColumn(ColumnName = "PID")] |
| | | public decimal PID { get; set; } |
| | | } |
| | | } |
| | |
| | | using SqlSugar; |
| | | |
| | | namespace MES.Service.Modes |
| | | { |
| | | namespace MES.Service.Modes; |
| | | |
| | | /// <summary> |
| | | /// ç¨æ·å¯¹åºçç©ææ£éªä¸»è¡¨ |
| | | ///</summary> |
| | |
| | | ///</summary> |
| | | [SugarColumn(ColumnName = "STATUS")] |
| | | public short? Status { get; set; } |
| | | } |
| | | } |
| | |
| | | public int Ftype { get; set; } |
| | | |
| | | [SugarColumn(IsIgnore = true)] public string? UserName { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ç©ææ è¯ï¼0ï¼é馿¬¡ã1ï¼é¦æ¬¡ï¼ |
| | | /// </summary> |
| | | [SugarColumn(IsIgnore = true)] public int? FIRST { get; set; } |
| | | [SugarColumn(IsIgnore = true)] |
| | | public int? FIRST { get; set; } |
| | | |
| | | /// <summary> |
| | | /// å建人 |
| | | /// </summary> |
| | | [SugarColumn(IsIgnore = true)] public string? CreateUserName { get; set; } |
| | | [SugarColumn(IsIgnore = true)] |
| | | public string? CreateUserName { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 䏿¬¡ä¸è¯æè¿° |
| | | /// </summary> |
| | | [SugarColumn(IsIgnore = true)] public string? NewFngDesc { get; set; } |
| | | [SugarColumn(IsIgnore = true)] |
| | | public string? NewFngDesc { get; set; } |
| | | } |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using SqlSugar; |
| | | using SqlSugar; |
| | | |
| | | namespace MES.Service.Modes |
| | | { |
| | | namespace MES.Service.Modes; |
| | | |
| | | /// <summary> |
| | | /// |
| | | ///</summary> |
| | | [SugarTable("MES_DEPT_USER")] |
| | | public class MesDeptUser |
| | |
| | | ///</summary> |
| | | [SugarColumn(ColumnName = "USER_NAME")] |
| | | public string UserName { get; set; } |
| | | } |
| | | } |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using SqlSugar; |
| | | using SqlSugar; |
| | | |
| | | namespace MES.Service.Modes |
| | | { |
| | | namespace MES.Service.Modes; |
| | | |
| | | /// <summary> |
| | | /// ç©ææåå
¥åºç³è¯·æ¡ç æç» |
| | | ///</summary> |
| | |
| | | ///</summary> |
| | | [SugarColumn(ColumnName = "MES_SCGD_GX_ID")] |
| | | public decimal? MesScgdGxId { get; set; } |
| | | } |
| | | } |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using SqlSugar; |
| | | using SqlSugar; |
| | | |
| | | namespace MES.Service.Modes |
| | | { |
| | | namespace MES.Service.Modes; |
| | | |
| | | /// <summary> |
| | | /// æ¥æå
¥åºæ£éªè¡¨å¤´ |
| | | ///</summary> |
| | |
| | | public class MesQaItemsDetect01 |
| | | { |
| | | /// <summary> |
| | | /// |
| | | ///</summary> |
| | | [SugarColumn(ColumnName = "ID", IsPrimaryKey = true)] |
| | | public decimal Id { get; set; } |
| | |
| | | public DateTime? Modify1Date { get; set; } |
| | | |
| | | /// <summary> |
| | | /// |
| | | ///</summary> |
| | | [SugarColumn(ColumnName = "FACTORY")] |
| | | public string Factory { get; set; } |
| | |
| | | public decimal? Fversion { get; set; } |
| | | |
| | | /// <summary> |
| | | /// |
| | | ///</summary> |
| | | [SugarColumn(ColumnName = "COMPANY")] |
| | | public string Company { get; set; } |
| | | |
| | | /// <summary> |
| | | /// |
| | | ///</summary> |
| | | [SugarColumn(ColumnName = "FSECOND_RESU")] |
| | | public string FsecondResu { get; set; } |
| | |
| | | ///</summary> |
| | | [SugarColumn(ColumnName = "SJ_NO")] |
| | | public string SjNo { get; set; } |
| | | } |
| | | } |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using SqlSugar; |
| | | using SqlSugar; |
| | | |
| | | namespace MES.Service.Modes |
| | | { |
| | | namespace MES.Service.Modes; |
| | | |
| | | /// <summary> |
| | | /// IQCæ£éª |
| | | ///</summary> |
| | |
| | | public class MesQaItemsDetectDetail12 |
| | | { |
| | | /// <summary> |
| | | /// |
| | | ///</summary> |
| | | [SugarColumn(ColumnName = "ID",OracleSequenceName = "SEQ_QM_ID", IsPrimaryKey = true)] |
| | | [SugarColumn(ColumnName = "ID", OracleSequenceName = "SEQ_QM_ID", |
| | | IsPrimaryKey = true)] |
| | | public decimal Id { get; set; } |
| | | |
| | | /// <summary> |
| | |
| | | public string? ItemBarcode { get; set; } |
| | | |
| | | /// <summary> |
| | | /// |
| | | ///</summary> |
| | | [SugarColumn(ColumnName = "RELEASE_NO")] |
| | | public string? ReleaseNo { get; set; } |
| | | |
| | | /// <summary> |
| | | /// |
| | | ///</summary> |
| | | [SugarColumn(ColumnName = "MAIN_ID")] |
| | | public decimal? MainId { get; set; } |
| | | |
| | | /// <summary> |
| | | /// |
| | | ///</summary> |
| | | [SugarColumn(ColumnName = "CREATE_DATE")] |
| | | public DateTime? CreateDate { get; set; } |
| | | |
| | | /// <summary> |
| | | /// |
| | | ///</summary> |
| | | [SugarColumn(ColumnName = "COMPANY")] |
| | | public string? Company { get; set; } |
| | | |
| | | /// <summary> |
| | | /// |
| | | ///</summary> |
| | | [SugarColumn(ColumnName = "FACTORY")] |
| | | public string? Factory { get; set; } |
| | | |
| | | /// <summary> |
| | | /// |
| | | ///</summary> |
| | | [SugarColumn(ColumnName = "FSTAND")] |
| | | public string? Fstand { get; set; } |
| | |
| | | public string? LastupdateBy { get; set; } |
| | | |
| | | /// <summary> |
| | | /// |
| | | ///</summary> |
| | | [SugarColumn(ColumnName = "CREATE_BY")] |
| | | public string? CreateBy { get; set; } |
| | | |
| | | [SugarColumn(IsIgnore = true)] public int? count { get; set; } |
| | | } |
| | | } |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using SqlSugar; |
| | | using SqlSugar; |
| | | |
| | | namespace MES.Service.Modes |
| | | { |
| | | namespace MES.Service.Modes; |
| | | |
| | | /// <summary> |
| | | /// æ¥ææ£éªä»è¡¨ |
| | | ///</summary> |
| | |
| | | public class MesQaItemsDetectDetail5 |
| | | { |
| | | /// <summary> |
| | | /// |
| | | ///</summary> |
| | | [SugarColumn(ColumnName = "ID", IsPrimaryKey = true)] |
| | | public decimal Id { get; set; } |
| | |
| | | public decimal? FenterQty { get; set; } |
| | | |
| | | /// <summary> |
| | | /// |
| | | ///</summary> |
| | | [SugarColumn(ColumnName = "RELEASE_NO")] |
| | | public string ReleaseNo { get; set; } |
| | | |
| | | /// <summary> |
| | | /// |
| | | ///</summary> |
| | | [SugarColumn(ColumnName = "COMPANY")] |
| | | public string Company { get; set; } |
| | | |
| | | /// <summary> |
| | | /// |
| | | ///</summary> |
| | | [SugarColumn(ColumnName = "FACTORY")] |
| | | public string Factory { get; set; } |
| | |
| | | public DateTime? LastupdateDate { get; set; } |
| | | |
| | | [SugarColumn(IsIgnore = true)] public int? Unqualified { get; set; } |
| | | } |
| | | } |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using SqlSugar; |
| | | using SqlSugar; |
| | | |
| | | namespace MES.Service.Modes |
| | | { |
| | | namespace MES.Service.Modes; |
| | | |
| | | /// <summary> |
| | | /// å·¥åæ¥å·¥ä¿¡æ¯è¡¨ |
| | | ///</summary> |
| | |
| | | public class MesScgdGx |
| | | { |
| | | /// <summary> |
| | | /// |
| | | ///</summary> |
| | | [SugarColumn(ColumnName = "ID", IsPrimaryKey = true)] |
| | | public decimal? Id { get; set; } |
| | |
| | | public string CreateCode { get; set; } |
| | | |
| | | /// <summary> |
| | | /// |
| | | ///</summary> |
| | | [SugarColumn(ColumnName = "CHECK_FLAG")] |
| | | public string CheckFlag { get; set; } |
| | | } |
| | | } |
| | |
| | | using SqlSugar; |
| | | |
| | | namespace MES.Service.Modes |
| | | { |
| | | namespace MES.Service.Modes; |
| | | |
| | | /// <summary> |
| | | /// 产线ä¸ç¨æ·å¯¹ç
§ |
| | | ///</summary> |
| | |
| | | ///</summary> |
| | | [SugarColumn(ColumnName = "FNAME")] |
| | | public string? FName { get; set; } |
| | | } |
| | | } |
| | |
| | | using SqlSugar; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using SqlSugar; |
| | | namespace MES.Service.Modes |
| | | { |
| | | |
| | | namespace MES.Service.Modes; |
| | | |
| | | [SugarTable("V_MES_QA_ITEMS_DETECT_01")] |
| | | public class VMesQaItemsDetect01 |
| | |
| | | [SugarColumn(ColumnName = "NEW_FNG_DESC")] |
| | | public string NewFngDesc { get; set; } |
| | | } |
| | | |
| | | } |
| | | |
| | |
| | | namespace MES.Service.Modes; |
| | | |
| | | /// <summary> |
| | | /// å·¥å表 |
| | | /// ä»»å¡å表 |
| | | /// </summary> |
| | | [SugarTable("WOMCAA")] |
| | | public class Womcaa |
| | | { |
| | | /// <summary> |
| | | /// èªå¢å SEQ_AOI |
| | | /// èªå¢å |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "ID", IsPrimaryKey = true, |
| | | OracleSequenceName = "SEQ_CAA")] |
| | | public decimal? Id { get; set; } |
| | | [SugarColumn(ColumnName = "ID", IsPrimaryKey = true)] |
| | | public decimal Id { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ERPID |
| | | /// ç产订åè¡å
ç |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "ERPID")] |
| | | public decimal? Erpid { get; set; } |
| | | |
| | | /// <summary> |
| | | /// åå· |
| | | /// åæ®ç¼å· |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "CAA001")] |
| | | public string? Caa001 { get; set; } |
| | | |
| | | /// <summary> |
| | | /// åæ®ç±»å 1ãç´æ¥å
¥åº-æ®éç产 SCDD03_SYS2ãç´æ¥å
¥åº-è¿å·¥ç产 SCDD04_SYS3ãå·¥åºæ±æ¥-æ®éç产 |
| | | /// SCDD01_SYS4ãå·¥åºæ±æ¥-è¿å·¥ç产 SCDD02_SYS |
| | | /// åæ®ç±»å |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "CAA004")] |
| | | public string? Caa004 { get; set; } |
| | | |
| | | /// <summary> |
| | | /// å¼åæ¥æ |
| | | /// 计åä¸è¾¾æ¥æ |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "CAA005")] |
| | | public string? Caa005 { get; set; } |
| | |
| | | public string? Caa011 { get; set; } |
| | | |
| | | /// <summary> |
| | | /// æ°é |
| | | /// 工忰é |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "CAA012")] |
| | | public decimal? Caa012 { get; set; } |
| | |
| | | public decimal? Caa017 { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ERPæºåID |
| | | /// ERPç产订åID |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "CAA018")] |
| | | public decimal? Caa018 { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ERPæºåè¡å· |
| | | /// ERPç产订ååºå· |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "CAA019")] |
| | | public string? Caa019 { get; set; } |
| | | public decimal? Caa019 { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ERPæºååå·(ä»»å¡åå·) |
| | | /// ERPç产订ååå· |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "CAA020")] |
| | | public string? Caa020 { get; set; } |
| | | |
| | | /// <summary> |
| | | /// å·¥ä½è½¦é´ |
| | | /// çäº§è½¦é´ |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "CAA021")] |
| | | public string? Caa021 { get; set; } |
| | |
| | | public decimal? Caa022 { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ç¶æ å®å·¥ï¼æªå®å·¥ |
| | | /// ä¸å¡ç¶æ |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "CAA023")] |
| | | public string? Caa023 { get; set; } |
| | |
| | | public string? SrcBillType { get; set; } |
| | | |
| | | /// <summary> |
| | | /// æºåç¼å· |
| | | /// æºåç¼ç |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "SRC_BILL_NO")] |
| | | public string? SrcBillNo { get; set; } |
| | |
| | | public string? SrcSplitBillno { get; set; } |
| | | |
| | | /// <summary> |
| | | /// å®¢æ· |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "F_ZSXG_KH")] |
| | | public string? F_ZSXG_KH { get; set; } |
| | | |
| | | /// <summary> |
| | | /// è¦è´§æ¥æ |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "F_ZJXF_YHRQ")] |
| | | public string? F_ZJXF_YHRQ { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ç产ç»ç» |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "PRD_ORG")] |
| | |
| | | /// ç»æ¡æ è¯ |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "JA_BS")] |
| | | public string? JaBs { get; set; } |
| | | public decimal? JaBs { get; set; } |
| | | |
| | | /// <summary> |
| | | /// æ§ç©æç¼ç |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "F_WWC_BASEPROPERTY")] |
| | | public string? FWwcBaseproperty { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 计åå®å·¥æºå¸¦æ¥æ |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "F_WWC_DATETIME")] |
| | | public DateTime? FWwcDatetime { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ç产å
¥åºæ¥æ |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "F_WWC_SCRKRQ")] |
| | | public DateTime? FWwcScrkrq { get; set; } |
| | | |
| | | /// <summary> |
| | | /// å·¥æ¶ |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "FGS")] |
| | | public decimal? Fgs { get; set; } |
| | | |
| | | /// <summary> |
| | | /// äº§çº¿äººæ° |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "F_WWC_DECIMAL")] |
| | | public decimal? FWwcDecimal { get; set; } |
| | | |
| | | /// <summary> |
| | | /// çº¿å« |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "F_WWC_XB")] |
| | | public string? FWwcXb { get; set; } |
| | | |
| | | /// <summary> |
| | | /// éå®å |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "F_WWC_BASE")] |
| | | public string? FWwcBase { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ä¿®æ¹æ è¯ |
| | |
| | | public decimal? IsXg { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 1ï¼æ°å¢ï¼2ï¼åæ´ |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "TYPEA")] |
| | | public string? Typea { get; set; } |
| | | |
| | | |
| | | /// <summary> |
| | | /// ç产éç¥å ï¼æ²å°æ°å¢ï¼ |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "WR_F_SCDD_SCTZD")] |
| | | public string? WR_F_SCDD_SCTZD { get; set; } |
| | | |
| | | /// <summary> |
| | | /// åå· ï¼æ²å°æ°å¢ï¼ |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "WR_F_SCDD_XH")] |
| | | public string? WR_F_SCDD_XH { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 夿³¨(表ä½) |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "BTBZ")] |
| | | public string? BTBZ { get; set; } |
| | | |
| | | |
| | | /// <summary> |
| | | /// 计å确认æ¶é´ï¼æ§è¡æ¥æï¼ --å§å¤ |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "PLANCONFIRMATION")] |
| | | public string? PLANCONFIRMATION { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ERPç产订åID --å§å¤ |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "FSUBID")] |
| | | public string? FSUBID { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ERPç产订ååºå· --å§å¤ |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "FSUBBILLNOSEQ")] |
| | | public string? FSUBBILLNOSEQ { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ERPç产订ååå· --å§å¤ |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "FSUBBILLNO")] |
| | | public string? FSUBBILLNO { get; set; } |
| | | |
| | | /// <summary> |
| | | /// éæ±æ¥æº --å§å¤ |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "FREQSRC")] |
| | | public string? FREQSRC { get; set; } |
| | | |
| | | /// <summary> |
| | | /// æºæå订åè¡å· --å§å¤ |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "SRCSPLITSEQ")] |
| | | public string? SRCSPLITSEQ { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ERPå§å¤è®¢ååå½å
ç -- å§å¤ |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "FSUBENTRYID")] |
| | | public string? FSUBENTRYID { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ERPå§å¤è®¢ååå½å
ç -- å§å¤ |
| | | /// å§å¤éè´è®¢å |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "FPURORDERNO")] |
| | | public string? FPURORDERNO { get; set; } |
| | | public string? Fpurorderno { get; set; } |
| | | |
| | | /// <summary> |
| | | /// éè´è®¢åè¡å· -- å§å¤ |
| | | /// å§å¤éè´è®¢åè¡å· |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "FPURORDERENTRYSEQ")] |
| | | public string? FPURORDERENTRYSEQ { get; set; } |
| | | public decimal? Fpurorderentryseq { get; set; } |
| | | |
| | | /// <summary> |
| | | /// åºæ¬åä½å
¥åºæ°é -- å§å¤ |
| | | /// å§å¤è®¢ååå½å
ç |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "FBASESTOCKINQTY")] |
| | | public decimal? FBASESTOCKINQTY { get; set; } |
| | | [SugarColumn(ColumnName = "FSUBENTRYID")] |
| | | public decimal? Fsubentryid { get; set; } |
| | | |
| | | /// <summary> |
| | | /// åºæ¬å使ªå
¥åºæ°é -- å§å¤ |
| | | /// å§å¤å
¥åºæ° |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "FBASENOSTOCKINQTY")] |
| | | public decimal? FBASENOSTOCKINQTY { get; set; } |
| | | [SugarColumn(ColumnName = "FSTOCKINQTY")] |
| | | public decimal? Fstockinqty { get; set; } |
| | | |
| | | /// <summary> |
| | | /// å
¥åºè´§ä¸» -- å§å¤ |
| | | /// å§å¤æªå
¥åºæ° |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "FINSTOCKOWNERID")] |
| | | public string? FINSTOCKOWNERID { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ç产éç¥å -- å§å¤ |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "F_WWDD_SCTZD")] |
| | | public string? F_WWDD_SCTZD { get; set; } |
| | | |
| | | /// <summary> |
| | | /// åå· -- å§å¤ |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "F_WWDD_XH")] |
| | | public string? F_WWDD_XH { get; set; } |
| | | |
| | | /// <summary> |
| | | /// BOM夿³¨ -- å§å¤ |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "F_XIFG_TEXT_TZK")] |
| | | public string? F_XIFG_TEXT_TZK { get; set; } |
| | | [SugarColumn(ColumnName = "FNOSTOCKINQTY")] |
| | | public decimal? Fnostockinqty { get; set; } |
| | | } |
| | |
| | | namespace MES.Service.Modes; |
| | | |
| | | /// <summary> |
| | | /// å·¥åå表 |
| | | /// ä»»å¡åç©æè¡¨ |
| | | /// </summary> |
| | | [SugarTable("WOMCAB")] |
| | | public class Womcab |
| | |
| | | /// <summary> |
| | | /// èªå¢å |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "ID", IsPrimaryKey = true, |
| | | OracleSequenceName = "SEQ_CAB")] |
| | | public decimal? Id { get; set; } |
| | | [SugarColumn(ColumnName = "ID", IsPrimaryKey = true)] |
| | | public decimal Id { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ERPID |
| | | /// çäº§ç¨ææ¸
åè¡å
ç |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "ERPID")] |
| | | public decimal? Erpid { get; set; } |
| | | |
| | | /// <summary> |
| | | /// åå· |
| | | /// å·¥ååå· |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "CAB001")] |
| | | public string? Cab001 { get; set; } |
| | |
| | | /// æ¯å¦æ¿æ |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "CAB014")] |
| | | public string? Cab014 { get; set; } |
| | | public decimal? Cab014 { get; set; } |
| | | |
| | | /// <summary> |
| | | /// PID |
| | | /// ç产订åè¡å
ç |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "PID")] |
| | | public decimal? Pid { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ERP头ID |
| | | /// ç产订åè¡å
ç |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "EID")] |
| | | public decimal? Eid { get; set; } |
| | |
| | | public string? IssueType { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ä¾åºç±»å |
| | | /// ä¾åºç±»å Céè´ Zèªå¶ Wå§å¤ |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "SUPPLY_TYPE")] |
| | | public string? SupplyType { get; set; } |
| | |
| | | /// åºå®æè |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "SCRAPQTY")] |
| | | public decimal? SCRAPQTY { get; set; } |
| | | public decimal? Scrapqty { get; set; } |
| | | |
| | | /// <summary> |
| | | /// å卿èç |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "SCRAPRATE")] |
| | | public decimal? SCRAPRATE { get; set; } |
| | | |
| | | public decimal? Scraprate { get; set; } |
| | | |
| | | /// <summary> |
| | | /// åºåæ°é |
| | | /// éå®è®¢åå· |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "Must_Qty")] |
| | | public decimal? MustQty { get; set; } |
| | | [SugarColumn(ColumnName = "SALES_ORDER")] |
| | | public string? SalesOrder { get; set; } |
| | | |
| | | /// <summary> |
| | | /// é¡¹æ¬¡å· |
| | | /// 鿱忮 |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "FREPLACEGROUP")] |
| | | public int? Freplacegroup { get; set; } |
| | | [SugarColumn(ColumnName = "F_WWC_TEXT1")] |
| | | public string? FWwcText1 { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ä½¿ç¨æ¯ä¾ï¼%ï¼ |
| | | /// 计åå®å·¥æ¥æ |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "USE_RATE")] |
| | | public decimal? UseRate { get; set; } |
| | | [SugarColumn(ColumnName = "F_WWC_DATE")] |
| | | public DateTime? FWwcDate { get; set; } |
| | | |
| | | /// <summary> |
| | | /// æ§ç©æç¼ç |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "F_WWC_BASEPROPERTY")] |
| | | public string? FWwcBaseproperty { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ä½¿ç¨æ¯ä¾ |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "FUSERATE")] |
| | | public decimal? Fuserate { get; set; } |
| | | |
| | | /// <summary> |
| | | /// å项类å 1æ åä»¶ 2è¿è¿ä»¶ 3æ¿ä»£ä»¶ |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "MATERIAL_TYPE")] |
| | | public string? MaterialType { get; set; } |
| | | |
| | | /// <summary> |
| | | /// Aï¼å建 Bï¼å®¡æ ¸ä¸ Cï¼å·²å®¡æ ¸ Dï¼éæ°å®¡æ ¸ Zï¼æå |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "TYPEB")] |
| | | public string? Typeb { get; set; } |
| | | |
| | | |
| | | /// <summary> |
| | | /// Aï¼å建 Bï¼å®¡æ ¸ä¸ Cï¼å·²å®¡æ ¸ Dï¼éæ°å®¡æ ¸ Zï¼æå |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "WR_F_XIFG_BASE_QTR")] |
| | | public string? WR_F_XIFG_Base_qtr { get; set; } |
| | | |
| | | /// <summary> |
| | | /// Aï¼å建 Bï¼å®¡æ ¸ä¸ Cï¼å·²å®¡æ ¸ Dï¼éæ°å®¡æ ¸ Zï¼æå |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "WR_F_XIFG_BASE_83G")] |
| | | public string? WR_F_XIFG_Base_83g { get; set; } |
| | | |
| | | |
| | | /////----å§å¤æ°å¢ |
| | | |
| | | /// <summary> |
| | | /// æ¯å¦åæè -- å§å¤æ°å¢ |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "FISGETSCRAP")] |
| | | public string? Fisgetscrap { get; set; } |
| | | |
| | | /// <summary> |
| | | /// æ¯å¦å
³é®ä»¶ -- å§å¤æ°å¢ |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "FISKEYCOMPONENT")] |
| | | public string? Fiskeycomponent { get; set; } |
| | | |
| | | /// <summary> |
| | | /// æ¨åºç»ç» -- å§å¤æ°å¢ |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "FSRCTRANSORGID")] |
| | | public string? Fsrctransorgid { get; set; } |
| | | |
| | | /// <summary> |
| | | /// æ¨åºä»åº -- å§å¤æ°å¢ |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "FSRCTRANSSTOCKID")] |
| | | public string? Fsrctransstockid { get; set; } |
| | | |
| | | /// <summary> |
| | | /// åºåç¶æ -- å§å¤æ°å¢ |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "FSTOCKSTATUSID")] |
| | | public string? Fstockstatusid { get; set; } |
| | | |
| | | /// <summary> |
| | | /// éæ±æ¥æ -- å§å¤æ°å¢ |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "FNEEDDATE")] |
| | | public DateTime? Fneeddate { get; set; } |
| | | |
| | | /// <summary> |
| | | /// é¢çç±»å -- å§å¤æ°å¢ |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "FRESERVETYPE")] |
| | | public string? Freservetype { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ç¨ææ¸
å夿³¨ -- å§å¤æ°å¢ |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "FMEMO")] |
| | | public string? Fmemo { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ERPç产订ååå½å
ç -- å§å¤æ°å¢ |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "ERP_PRODUCTION_ENTRY_CODE")] |
| | | public string? ErpProductionEntryCode { get; set; } |
| | | [SugarColumn(ColumnName = "FMATERIALTYPE")] |
| | | public decimal? Fmaterialtype { get; set; } |
| | | } |
| | |
| | | && s.OrgId == rohIn.FReceiveOrgId |
| | | && s.TableType == "MES_SUPPLIER").First(); |
| | | |
| | | if (mesLinkU9 != null) |
| | | { |
| | | mesRohIn.Supplier = mesLinkU9.MesId; |
| | | } |
| | | if (mesLinkU9 != null) mesRohIn.Supplier = mesLinkU9.MesId; |
| | | |
| | | mesRohIn.EbelnK3id = eid; |
| | | mesRohIn.BillNo = rohIn.FBillNo; |
| | |
| | | && x.OrgId == s.FReceiveOrgId |
| | | && x.TableType == "MES_ITEMS").First(); |
| | | |
| | | if (mesLinkU9 != null) |
| | | { |
| | | entity.ItemId = mesLinkU9.MesId; |
| | | } |
| | | if (mesLinkU9 != null) entity.ItemId = mesLinkU9.MesId; |
| | | |
| | | |
| | | var mesLinkU92 = Db.Queryable<MesLinkU9>() |
| | |
| | | && x.OrgId == s.FReceiveOrgId |
| | | && x.TableType == "MES_PROJECT").First(); |
| | | |
| | | if (mesLinkU92 != null) |
| | | { |
| | | entity.Project = mesLinkU92.MesId; |
| | | } |
| | | if (mesLinkU92 != null) entity.Project = mesLinkU92.MesId; |
| | | |
| | | return entity; |
| | | }).ToList(); |
| | |
| | | MesStaff entity) |
| | | { |
| | | var exists = db.Queryable<SysUser>().Any(u => u.Sid == sysUser.Sid); |
| | | if (!exists) |
| | | { |
| | | db.Insertable(sysUser).ExecuteCommand(); |
| | | } |
| | | if (!exists) db.Insertable(sysUser).ExecuteCommand(); |
| | | |
| | | db.Deleteable<MesStaff>() |
| | | .Where(s => s.Id == entity.Id) |
| | |
| | | Caa011 = erpDto.FPlanFinishDate, |
| | | //ParseDateTime(erpDto.FPlanFinishDate) ?? null, |
| | | |
| | | PLANCONFIRMATION = erpDto.PlanConfirmation, |
| | | //PLANCONFIRMATION = erpDto.PlanConfirmation, |
| | | StockInlimith = |
| | | erpDto |
| | | .FStockInLimitH, //Convert.ToDecimal(erpDto.FStockInLimitH), |
| | |
| | | Caa013 = erpDto.FBomId, |
| | | //SalesOrderNo = erpDto.F_UNW_XSDDH, |
| | | CreateType = erpDto.FCreateType, |
| | | FSUBID = erpDto.FSUBID, |
| | | FSUBBILLNOSEQ = erpDto.FSUBBILLNOSEQ, |
| | | FSUBBILLNO = erpDto.FSUBBILLNO, |
| | | //FSUBID = erpDto.FSUBID, |
| | | //FSUBBILLNOSEQ = erpDto.FSUBBILLNOSEQ, |
| | | //FSUBBILLNO = erpDto.FSUBBILLNO, |
| | | SrcBillType = erpDto.FSrcBillType, |
| | | SrcBillNo = erpDto.FSrcBillNo, |
| | | SrcBillentryseq = erpDto.FSrcBillEntrySeq, |
| | | FREQSRC = erpDto.FReqSrc, |
| | | //FREQSRC = erpDto.FReqSrc, |
| | | SaleOrderNo = erpDto.FSALEORDERNO, |
| | | SaleOrderEntryseq = erpDto.FSaleOrderEntrySeq, |
| | | ForceCloserid = erpDto.FFORCECLOSERID, |
| | | CloseType = erpDto.FCloseType, |
| | | SrcSplitBillno = erpDto.FDescription, |
| | | SRCSPLITSEQ = erpDto.SrcSplitSeq, |
| | | Erpid = Convert.ToDecimal(erpDto.FID), |
| | | FSUBENTRYID = erpDto.FSUBENTRYID, |
| | | FPURORDERNO = erpDto.FPurOrderNo, |
| | | FPURORDERENTRYSEQ = |
| | | erpDto |
| | | .FPurOrderEntrySeq, //Convert.ToInt32(erpDto.FPurOrderEntrySeq), |
| | | FBASESTOCKINQTY = Convert.ToDecimal(erpDto.FBaseStockInQty), |
| | | FBASENOSTOCKINQTY = Convert.ToDecimal(erpDto.FBaseNoStockInQty), |
| | | FINSTOCKOWNERID = erpDto.FInStockOwnerId, |
| | | //SRCSPLITSEQ = erpDto.SrcSplitSeq, |
| | | Erpid = Convert.ToDecimal(erpDto.FID) |
| | | //FSUBENTRYID = erpDto.FSUBENTRYID, |
| | | //FPURORDERNO = erpDto.FPurOrderNo, |
| | | //FPURORDERENTRYSEQ = |
| | | //erpDto |
| | | // .FPurOrderEntrySeq, //Convert.ToInt32(erpDto.FPurOrderEntrySeq), |
| | | //FBASESTOCKINQTY = Convert.ToDecimal(erpDto.FBaseStockInQty), |
| | | //FBASENOSTOCKINQTY = Convert.ToDecimal(erpDto.FBaseNoStockInQty), |
| | | //FINSTOCKOWNERID = erpDto.FInStockOwnerId, |
| | | //PlanConfirmation = erpDto.PlanConfirmation != null |
| | | // ? DateTime.ParseExact(erpDto.PlanConfirmation, |
| | | // "yyyy-MM-dd HH:mm:ss", null) |
| | | // : null, |
| | | Typea = erpDto.TypeA, |
| | | F_WWDD_SCTZD = erpDto.F_WWDD_SCTZD, |
| | | F_WWDD_XH = erpDto.F_WWDD_XH, |
| | | F_XIFG_TEXT_TZK = erpDto.F_XIFG_Text_tzk |
| | | // Typea = erpDto.TypeA, |
| | | // F_WWDD_SCTZD = erpDto.F_WWDD_SCTZD, |
| | | // F_WWDD_XH = erpDto.F_WWDD_XH, |
| | | // F_XIFG_TEXT_TZK = erpDto.F_XIFG_Text_tzk |
| | | }; |
| | | |
| | | var single = base.GetSingle(it => it.Erpid == entity.Erpid); |
| | |
| | | Cab001 = erpDto.FBillNo, |
| | | Cab002 = erpDto.FSEQ, //Convert.ToInt32(erpDto.FSEQ), |
| | | Cab003 = erpDto.FMaterialID2, |
| | | MustQty = Convert.ToDecimal(erpDto.FMustQty), |
| | | // MustQty = Convert.ToDecimal(erpDto.FMustQty), |
| | | Cab006 = Convert.ToDecimal(erpDto.FMustQty), |
| | | Cab007 = Convert.ToDecimal(erpDto.FPickedQty), |
| | | PositionNo = erpDto.FPositionNO, |
| | |
| | | Numerator = Convert.ToDecimal(erpDto.FNumerator), |
| | | Denominator = Convert.ToDecimal(erpDto.FDenominator), |
| | | Erpid = Convert.ToDecimal(erpDto.FPPOMENTRYID), |
| | | Eid = Convert.ToDecimal(erpDto.FPPOMID), |
| | | SCRAPQTY = Convert.ToDecimal(erpDto.FFixScrapQty), |
| | | SCRAPRATE = Convert.ToDecimal(erpDto.FScrapRate), |
| | | MaterialType = erpDto.FMaterialType, |
| | | //Unit2 = erpDto.FUnitID3, |
| | | Freplacegroup = Convert.ToInt32(erpDto.FReplaceGroup), |
| | | Eid = Convert.ToDecimal(erpDto.FPPOMID) |
| | | // SCRAPQTY = Convert.ToDecimal(erpDto.FFixScrapQty), |
| | | // SCRAPRATE = Convert.ToDecimal(erpDto.FScrapRate), |
| | | // MaterialType = erpDto.FMaterialType, |
| | | // //Unit2 = erpDto.FUnitID3, |
| | | // Freplacegroup = Convert.ToInt32(erpDto.FReplaceGroup), |
| | | //OwnerType = erpDto.FOwnerTypeId, |
| | | //Owner = erpDto.FOwnerID2, |
| | | |
| | | Fisgetscrap = erpDto.FISGETSCRAP, |
| | | Fiskeycomponent = erpDto.FISKEYCOMPONENT, |
| | | Fsrctransorgid = erpDto.FSRCTRANSORGID, |
| | | Fsrctransstockid = erpDto.FSRCTRANSSTOCKID, |
| | | Fstockstatusid = erpDto.FSTOCKSTATUSID, |
| | | Fneeddate = erpDto.FNEEDDATE != null |
| | | ? DateTime.ParseExact(erpDto.FNEEDDATE, |
| | | "yyyy-MM-dd HH:mm:ss", null) |
| | | : null, |
| | | Freservetype = erpDto.FRESERVETYPE, |
| | | Fmemo = erpDto.FMEMO, |
| | | Typeb = erpDto.TypeB, |
| | | ErpProductionEntryCode = erpDto.FSUBENTRYID |
| | | // Fisgetscrap = erpDto.FISGETSCRAP, |
| | | // Fiskeycomponent = erpDto.FISKEYCOMPONENT, |
| | | // Fsrctransorgid = erpDto.FSRCTRANSORGID, |
| | | // Fsrctransstockid = erpDto.FSRCTRANSSTOCKID, |
| | | // Fstockstatusid = erpDto.FSTOCKSTATUSID, |
| | | // Fneeddate = erpDto.FNEEDDATE != null |
| | | // ? DateTime.ParseExact(erpDto.FNEEDDATE, |
| | | // "yyyy-MM-dd HH:mm:ss", null) |
| | | // : null, |
| | | // Freservetype = erpDto.FRESERVETYPE, |
| | | // Fmemo = erpDto.FMEMO, |
| | | // Typeb = erpDto.TypeB, |
| | | // ErpProductionEntryCode = erpDto.FSUBENTRYID |
| | | }; |
| | | |
| | | var single = |
| | |
| | | using MES.Service.Dto.service; |
| | | using MES.Service.Modes; |
| | | using MES.Service.util; |
| | | using Microsoft.EntityFrameworkCore.Metadata.Internal; |
| | | using Newtonsoft.Json; |
| | | using SqlSugar; |
| | | using DbType = System.Data.DbType; |
| | | using System.Net.Http; |
| | | using System.Threading.Tasks; |
| | | |
| | | |
| | | |
| | | namespace MES.Service.service.QC; |
| | | |
| | | public class LljService |
| | | { |
| | | private static readonly HttpClient client = new(); |
| | | |
| | | public (List<LtsLlj> item, int TotalCount) GetPage(XJPageResult queryObj) |
| | | { |
| | | if (queryObj.createUser.IsNullOrEmpty()) |
| | | { |
| | | return ([], 0); |
| | | } |
| | | if (queryObj.createUser.IsNullOrEmpty()) return ([], 0); |
| | | |
| | | var db = SqlSugarHelper.GetInstance(); |
| | | |
| | |
| | | |
| | | //var itemIds = GetQaItem(db, queryObj.createUser); |
| | | |
| | | var pageList = db.Queryable<LtsLlj, IqcBefore, VMesQaItemsDetect01, SysUser, IqcBeforeFrom, SysUser>((a, b,d,e,f,g) => |
| | | var pageList = db |
| | | .Queryable<LtsLlj, IqcBefore, VMesQaItemsDetect01, SysUser, |
| | | IqcBeforeFrom, SysUser>((a, b, d, e, f, g) => |
| | | new JoinQueryInfos(JoinType.Left, a.ItemId == b.ItemId, |
| | | |
| | | JoinType.Inner, a.Id == d.Id, |
| | | JoinType.Left, a.CreateBy == e.Fcode, |
| | | JoinType.Left,f.Id==b.PID, |
| | |
| | | FIRST=d.First, |
| | | CreateUserName=e.Fname, |
| | | NewFngDesc=d.NewFngDesc |
| | | |
| | | }, true) |
| | | .ToPageList(queryObj.PageIndex, queryObj.Limit, ref totalCount); |
| | | |
| | |
| | | |
| | | mesQaIqcItem.ForEach(item => |
| | | { |
| | | string LEV = item.FcheckLevel switch |
| | | var LEV = item.FcheckLevel switch |
| | | { |
| | | null => "" // é»è®¤å¼ |
| | | , |
| | |
| | | throw new Exception(ex.Message); |
| | | } |
| | | } |
| | | /// <summary> |
| | | /// æå·å¾çº¸æ¥å£è¿å对象 |
| | | /// </summary> |
| | | public class ApiResponse |
| | | { |
| | | [JsonProperty("status")] |
| | | public int Status { get; set; } |
| | | [JsonProperty("message")] |
| | | public string Message { get; set; } |
| | | [JsonProperty("data")] |
| | | public string[] Data { get; set; } |
| | | [JsonProperty("totalCount")] |
| | | public int TotalCount { get; set; } |
| | | } |
| | | private static readonly HttpClient client = new HttpClient(); |
| | | |
| | | /// <summary> |
| | | /// ä»U9è·åæå·å¾çº¸å表 |
| | | /// </summary> |
| | |
| | | { |
| | | try |
| | | { |
| | | var requestUrl = $"https://erp.dream-maker.com/api/public/getFileUrlByU9No?u9No={Uri.EscapeDataString(U9No)}&type={Type}"; |
| | | var requestUrl = |
| | | $"https://erp.dream-maker.com/api/public/getFileUrlByU9No?u9No={Uri.EscapeDataString(U9No)}&type={Type}"; |
| | | var response = await client.GetAsync(requestUrl); |
| | | response.EnsureSuccessStatusCode(); // æ£æ¥HTTPç¶æç |
| | | var responseContent = await response.Content.ReadAsStringAsync(); |
| | | var result = JsonConvert.DeserializeObject<ApiResponse>(responseContent); |
| | | var result = |
| | | JsonConvert.DeserializeObject<ApiResponse>(responseContent); |
| | | |
| | | if (result.Status == 0 && result.Data != null) |
| | | { |
| | | return result.Data; |
| | | } |
| | | else |
| | | { |
| | | if (result.Status == 0 && result.Data != null) return result.Data; |
| | | |
| | | return null; |
| | | } |
| | | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | throw new Exception(ex.Message); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æå·å¾çº¸æ¥å£è¿å对象 |
| | | /// </summary> |
| | | public class ApiResponse |
| | | { |
| | | [JsonProperty("status")] public int Status { get; set; } |
| | | |
| | | [JsonProperty("message")] public string Message { get; set; } |
| | | |
| | | [JsonProperty("data")] public string[] Data { get; set; } |
| | | |
| | | [JsonProperty("totalCount")] public int TotalCount { get; set; } |
| | | } |
| | | } |
| | |
| | | .Where(o => o.Id == detail.Gid) |
| | | .First(); |
| | | |
| | | if (qsItemOqcReq == null) |
| | | { |
| | | throw new Exception("该æ£éªåä¸åå¨ï¼è¯·åå°å
¥åºæ£åè¡¨éæ°æ¥ç"); |
| | | } |
| | | if (qsItemOqcReq == null) throw new Exception("该æ£éªåä¸åå¨ï¼è¯·åå°å
¥åºæ£åè¡¨éæ°æ¥ç"); |
| | | |
| | | if (!string.IsNullOrEmpty(qsItemOqcReq.FcheckResu)) |
| | | { |
| | | throw new Exception("该æ£éªåå·²" + qsItemOqcReq.FcheckResu + "ï¼ä¸è¿è¡ä¿®æ¹ç»æ"); |
| | | } |
| | | |
| | | var oracle = SqlSugarHelper.UseTransactionWithOracle(db => |
| | | { |
| | |
| | | }) |
| | | .ToList(); |
| | | |
| | | if (oqcReqList.Count <= 0) |
| | | { |
| | | return; |
| | | } |
| | | if (oqcReqList.Count <= 0) return; |
| | | |
| | | var qsItemOqcReq = oqcReqList.First(); // è·å第ä¸ä¸ªå
ç´ |
| | | |
| | |
| | | .ExecuteCommand(); |
| | | |
| | | if (executeCommand > 0) |
| | | { |
| | | //womdaa å·²ç产é DAA011å åæ¡ç æ¥å·¥æ°é |
| | | db.Updateable<Womdaa>() |
| | | .SetColumns(b => b.Daa011 == b.Daa011 + sumQty) |
| | | .Where(b => b.Daa001 == qsItemOqcReq.Daa001) |
| | | .ExecuteCommand(); |
| | | } |
| | | } |
| | | else if ("ä¸åæ ¼".Equals(FcheckResu)) |
| | | { |
| | |
| | | .ExecuteCommand(); |
| | | |
| | | if (executeCommand > 0) |
| | | { |
| | | //womdaa å·²ç产é DAA011å åæ¡ç æ¥å·¥æ°é |
| | | db.Updateable<Womdaa>() |
| | | .SetColumns(b => b.Daa011 == b.Daa011 - sumQty) |
| | | .Where(b => b.Daa001 == qsItemOqcReq.Daa001) |
| | | .ExecuteCommand(); |
| | | } |
| | | } |
| | | } |
| | | |
| | |
| | | //å ç鿡件,æ ¹æ®ä¾åºåï¼ç©æç¼ç ï¼ç©æåç§°æç´¢ |
| | | //.WhereIF(queryObj.SearchValue!=null && queryObj.SearchValue!="", (a) => a.SuppName == queryObj.SearchValue|| a.ItemName == queryObj.SearchValue || a.ItemNo == queryObj.SearchValue ) |
| | | .WhereIF(queryObj.SearchValue != null && queryObj.SearchValue != "", |
| | | (a, b, c, ca, m, da, z) => b.ItemName.ToLower().Contains(queryObj.SearchValue.ToLower()) |
| | | || a.ItemNo.ToLower().Contains(queryObj.SearchValue.ToLower())) |
| | | (a, b, c, ca, m, da, z) => |
| | | b.ItemName.ToLower() |
| | | .Contains(queryObj.SearchValue.ToLower()) |
| | | || a.ItemNo.ToLower() |
| | | .Contains(queryObj.SearchValue.ToLower())) |
| | | .Select((a, b, c, ca, m, da, z) => new QsItemOqcReq |
| | | { |
| | | BillNo = a.BillNo, |
| | |
| | | ItemInId = m.ItemInId, |
| | | Daa015 = da.Daa015, |
| | | LineNo = c.LineNo, |
| | | Quantity = m.Quantity, |
| | | Quantity = m.Quantity |
| | | //Bgr = d.UserName |
| | | }) |
| | | .OrderBy(a => a.CreateDate, OrderByType.Desc) |
| | |
| | | .Where(o => o.Id == detail.Gid) |
| | | .First(); |
| | | |
| | | if (qsItemOqcReq == null) |
| | | { |
| | | throw new Exception("该æ£éªåä¸åå¨ï¼è¯·åå°å
¥åºæ£åè¡¨éæ°æ¥ç"); |
| | | } |
| | | if (qsItemOqcReq == null) throw new Exception("该æ£éªåä¸åå¨ï¼è¯·åå°å
¥åºæ£åè¡¨éæ°æ¥ç"); |
| | | |
| | | if (!string.IsNullOrEmpty(qsItemOqcReq.FcheckResu)) |
| | | { |
| | | throw new Exception("该æ£éªåå·²" + qsItemOqcReq.FcheckResu + "ï¼ä¸è¿è¡ä¿®æ¹ç»æ"); |
| | | } |
| | | |
| | | var withOracle = SqlSugarHelper.UseTransactionWithOracle(db => |
| | | { |
| | |
| | | private bool isRk(int? gid) |
| | | { |
| | | var db = SqlSugarHelper.GetInstance(); |
| | | return db.Queryable<QsItemOqcReq, MesInvItemIns, MesInvItemInCDetails2,MesInvItemStocks>( |
| | | return db |
| | | .Queryable<QsItemOqcReq, MesInvItemIns, MesInvItemInCDetails2, |
| | | MesInvItemStocks>( |
| | | (a, b, c,d) => new JoinQueryInfos( |
| | | JoinType.Inner, a.BillNo == b.BillNo, |
| | | JoinType.Inner, b.Id == c.ItemInId, |
¶Ô±ÈÐÂÎļþ |
| | |
| | | using MES.Service.DB; |
| | | using MES.Service.Dto.webApi; |
| | | using MES.Service.Modes; |
| | | using SqlSugar; |
| | | |
| | | namespace MES.Service.service; |
| | | |
| | | public class WomcaaManager : Repository<Womcaa> |
| | | { |
| | | private readonly WomcabManager _womcabManager = new(); |
| | | |
| | | public bool SaveList(List<ErpWOM> rohIns) |
| | | { |
| | | var result = rohIns.Select(Save).ToList(); |
| | | return result.All(b => b); |
| | | } |
| | | |
| | | public bool Save(ErpWOM wom) |
| | | { |
| | | var womErpCaa = wom.ErpCaa; |
| | | var mesWomcaa = MapErpCAAtoWomcaa(womErpCaa); |
| | | var mesWomcabs = |
| | | MapErpCABtoWomcab(wom.ErpCabs); |
| | | |
| | | return UseTransaction(db => |
| | | { |
| | | switch (womErpCaa.Type) |
| | | { |
| | | case "3": |
| | | return UpdateData(db, mesWomcaa, mesWomcabs) ? 1 : 0; |
| | | case "2": |
| | | case "4": |
| | | case "5": |
| | | return SaveOrUpdateData(db, mesWomcaa, mesWomcabs) |
| | | ? 1 |
| | | : 0; |
| | | default: |
| | | throw new NotImplementedException( |
| | | $"typeç±»å为{womErpCaa.Type}çä¸åå¨"); |
| | | } |
| | | }) > 0; |
| | | } |
| | | |
| | | private bool SaveOrUpdateData(SqlSugarScope db, Womcaa mesWomcaa, |
| | | List<Womcab> mesWomcabs) |
| | | { |
| | | if (mesWomcaa.Id != null) base.DeleteById(mesWomcaa.Id); |
| | | |
| | | if (mesWomcabs.Count > 0) |
| | | db.Deleteable<Womcab>() |
| | | .Where(s => s.Eid == mesWomcaa.Erpid).ExecuteCommand(); |
| | | |
| | | var orUpdate = db.Insertable(mesWomcaa) |
| | | .IgnoreColumns(true).ExecuteCommand() > 0; |
| | | |
| | | var baOrUpdate = db.Insertable(mesWomcabs).PageSize(1) |
| | | .IgnoreColumnsNull() |
| | | .ExecuteCommand() > 0; |
| | | |
| | | if (orUpdate && baOrUpdate) return true; |
| | | throw new NotImplementedException("æ´æ°å¤±è´¥"); |
| | | } |
| | | |
| | | private bool UpdateData(SqlSugarScope db, Womcaa mesWomcaa, |
| | | List<Womcab> mesWomcabs) |
| | | { |
| | | var decimals = mesWomcabs.Select(s => s.Id).ToArray(); |
| | | var update = base.DeleteById(mesWomcaa.Id); |
| | | var insertOrUpdate = db |
| | | .Deleteable<Womcab>().In(decimals) |
| | | .ExecuteCommand() > 0; |
| | | |
| | | if (update && insertOrUpdate) return true; |
| | | throw new NotImplementedException("æ´æ°å¤±è´¥"); |
| | | } |
| | | |
| | | private Womcaa MapErpCAAtoWomcaa(ErpCAA dto) |
| | | { |
| | | var entity = new Womcaa |
| | | { |
| | | Erpid = Convert.ToInt32(dto.Id), |
| | | Caa001 = dto.FBillNo, |
| | | Caa021 = dto.FWorkShopID, |
| | | RoutingId = dto.FRoutingId, |
| | | WorkShopId = dto.FREMWorkShopId, |
| | | DepotCode = dto.FStockId, |
| | | CreateDate = dto.FDate, |
| | | Caa004 = dto.FBillType, |
| | | Caa023 = dto.FStatus, |
| | | Caa006 = dto.FMaterialId, |
| | | Caa009 = dto.FUnitId, |
| | | Caa012 = !string.IsNullOrEmpty(dto.FQty) |
| | | ? Convert.ToDecimal(dto.FQty) |
| | | : null, |
| | | WorkGroupId = dto.FWorkGroupId, |
| | | PlanId = dto.FPlannerID, |
| | | Caa010 = dto.FPlanStartDate, |
| | | Caa011 = dto.FPlanFinishDate, |
| | | Caa005 = dto.FConveyDate, |
| | | StockInlimith = dto.FStockInLimitH, |
| | | StockInlimitl = dto.FStockInLimitL, |
| | | Mtono = dto.FMTONO, |
| | | Lot = dto.FLot, |
| | | Caa013 = dto.FBomId, |
| | | |
| | | CreateType = dto.FCreateType, |
| | | Caa018 = !string.IsNullOrEmpty(dto.PLAN_ID) |
| | | ? Convert.ToInt32(dto.PLAN_ID) |
| | | : null, |
| | | Caa019 = Convert.ToInt32(dto.PLAN_SEQ), |
| | | Caa020 = dto.PLAN_NUM, |
| | | SrcBillType = dto.FSrcBillType, |
| | | SrcBillNo = dto.FSrcBillNo, |
| | | SrcBillentryseq = dto.FSrcBillEntrySeq, |
| | | SaleOrderNo = dto.FSaleOrderNo, |
| | | SaleOrderEntryseq = dto.FSaleOrderEntrySeq, |
| | | ForceCloserid = dto.FForceCloserId, |
| | | CloseType = dto.FCloseType, |
| | | SrcSplitBillno = dto.FSrcSplitBillNo, |
| | | Caa016 = dto.FDescription, |
| | | //BTBZ = dto.BTBZ, |
| | | PrdOrg = dto.FPrdOrgId, |
| | | TrustOrg = dto.FEnTrustOrgId |
| | | //Typea = dto.TypeA |
| | | }; |
| | | |
| | | |
| | | var single = base.GetSingle(it => it.Erpid == entity.Erpid); |
| | | if (single != null) entity.Id = single.Id; |
| | | |
| | | return entity; |
| | | } |
| | | |
| | | private List<Womcab> MapErpCABtoWomcab(List<ErpCAB> dtoList) |
| | | { |
| | | var womcabList = new List<Womcab>(); |
| | | |
| | | foreach (var dto in dtoList) |
| | | { |
| | | var womcab = new Womcab |
| | | { |
| | | Erpid = Convert.ToDecimal(dto.ID), |
| | | Cab001 = dto.FBillNo, |
| | | Cab002 = dto.FSeq, |
| | | Cab003 = dto.FMaterialID, |
| | | Cab006 = Convert.ToDecimal(dto.FNeedQty), |
| | | //MustQty = Convert.ToDecimal(dto.FMustQty), |
| | | Cab007 = Convert.ToDecimal(dto.FPickedQty), |
| | | PositionNo = dto.FPositionNO, |
| | | SupplyOrganization = dto.FChildSupplyOrgId, |
| | | IssuingOrganization = dto.FSupplyOrg, |
| | | OwnerId = dto.FOwnerID, |
| | | Mtono = dto.FMTONO, |
| | | Lot = dto.FLot, |
| | | DepotCode = dto.FStockID, |
| | | IssueType = dto.FIssueType, |
| | | Cab009 = dto.FUnitID, |
| | | SupplyType = dto.FSupplyType, |
| | | Cab012 = Convert.ToDecimal(dto.FStdQty), |
| | | // Freplacegroup = Convert.ToInt32(dto.FReplaceGroup), |
| | | // UseRate = Convert.ToDecimal(dto.FUseRate), |
| | | // MaterialType = dto.FMaterialType, |
| | | Cab014 = Convert.ToInt32(dto.FIsKeyItem), |
| | | Numerator = Convert.ToDecimal(dto.FNumerator), |
| | | Denominator = Convert.ToDecimal(dto.FDenominator), |
| | | Pid = Convert.ToDecimal(dto.FID), |
| | | Eid = Convert.ToDecimal(dto.FID) |
| | | // SCRAPQTY = Convert.ToDecimal(dto.FFixScrapQty), |
| | | // SCRAPRATE = Convert.ToDecimal(dto.FScrapRate), |
| | | // Typeb = dto.TypeB, |
| | | // WR_F_XIFG_Base_qtr = dto.F_XIFG_Base_qtr, |
| | | // WR_F_XIFG_Base_83g = dto.F_XIFG_Base_83g |
| | | }; |
| | | |
| | | var entity = Db.Queryable<Womcab>() |
| | | .Where(s => s.Erpid == womcab.Erpid).Single(); |
| | | if (entity != null) womcab.Id = entity.Id; |
| | | |
| | | womcabList.Add(womcab); |
| | | } |
| | | |
| | | return womcabList; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | using MES.Service.DB; |
| | | using MES.Service.Modes; |
| | | |
| | | namespace MES.Service.service; |
| | | |
| | | public class WomcabManager : Repository<Womcab> |
| | | { |
| | | } |