| ¶Ô±ÈÐÂÎļþ |
| | |
| | | using System.Dynamic; |
| | | using Microsoft.AspNetCore.Mvc; |
| | | using NewPdaSqlServer.Dto.service; |
| | | using NewPdaSqlServer.entity; |
| | | using NewPdaSqlServer.service.Warehouse; |
| | | using NewPdaSqlServer.util; |
| | | |
| | | namespace NewPdaSqlServer.Controllers.Warehouse; |
| | | |
| | | [ApiController] |
| | | [Route("api/[controller]")] |
| | | public class WomdaaController : ControllerBase |
| | | { |
| | | private readonly WomdaaManager m = new(); |
| | | |
| | | #region çäº§é¢æ |
| | | |
| | | //GetProductionPickDaa001 |
| | | /// <summary> |
| | | /// æ¨¡ç³æ¥è¯¢å·¥åå·å¹¶è¿å |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | [HttpPost("GetProductionPickDaa001")] |
| | | public ResponseResult GetProductionPickDaa001(WarehouseQuery query) |
| | | { |
| | | try |
| | | { |
| | | dynamic resultInfos = new ExpandoObject(); |
| | | resultInfos.tbBillList = m.GetProductionPickDaa001(query); |
| | | return new ResponseResult |
| | | { |
| | | status = 0, |
| | | message = "OK", |
| | | data = resultInfos |
| | | }; |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | return ResponseResult.ResponseError(ex); |
| | | } |
| | | } |
| | | |
| | | //GetItemsByDaa001 |
| | | /// <summary> |
| | | /// æ ¹æ®å·¥åå·è·å代é¢ç©ææç» |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | [HttpPost("GetItemsByDaa001")] |
| | | public ResponseResult GetItemsByDaa001(WarehouseQuery query) |
| | | { |
| | | try |
| | | { |
| | | dynamic resultInfos = new ExpandoObject(); |
| | | resultInfos.tbBillList = m.GetItemsByDaa001(query); |
| | | return new ResponseResult |
| | | { |
| | | status = 0, |
| | | message = "OK", |
| | | data = resultInfos |
| | | }; |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | return ResponseResult.ResponseError(ex); |
| | | } |
| | | } |
| | | |
| | | //ScanCode |
| | | [HttpPost("ScanCode")] |
| | | public ResponseResult ScanCode(WarehouseQuery query) |
| | | { |
| | | try |
| | | { |
| | | dynamic resultInfos = new ExpandoObject(); |
| | | resultInfos.tbBillList = m.ScanCode(query); |
| | | return new ResponseResult |
| | | { |
| | | status = 0, |
| | | message = "OK", |
| | | data = resultInfos |
| | | }; |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | return ResponseResult.ResponseError(ex); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// è·åææ |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | [HttpPost("GetList")] |
| | | public ResponseResult GetList() |
| | | { |
| | | try |
| | | { |
| | | dynamic resultInfos = new ExpandoObject(); |
| | | resultInfos.tbBillList = m.GetList(); |
| | | return new ResponseResult |
| | | { |
| | | status = 0, |
| | | message = "OK", |
| | | data = resultInfos |
| | | }; |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | return ResponseResult.ResponseError(ex); |
| | | } |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// æ ¹æ®ä¸»é®è·å |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | [HttpPost("GetById")] |
| | | public ResponseResult GetById(int id) |
| | | { |
| | | try |
| | | { |
| | | dynamic resultInfos = new ExpandoObject(); |
| | | resultInfos.tbBillList = m.GetById(id); |
| | | return new ResponseResult |
| | | { |
| | | status = 0, |
| | | message = "OK", |
| | | data = resultInfos |
| | | }; |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | return ResponseResult.ResponseError(ex); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æ ¹æ®ä¸»é®å é¤ |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | [HttpPost("DeleteByIds")] |
| | | public ResponseResult DeleteByIds([FromBody] object[] ids) |
| | | { |
| | | try |
| | | { |
| | | dynamic resultInfos = new ExpandoObject(); |
| | | resultInfos.tbBillList = m.DeleteByIds(ids); |
| | | return new ResponseResult |
| | | { |
| | | status = 0, |
| | | message = "OK", |
| | | data = resultInfos |
| | | }; |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | return ResponseResult.ResponseError(ex); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æ·»å |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | [HttpPost("Insert")] |
| | | public ResponseResult Add([FromBody] Womdaa data) |
| | | { |
| | | try |
| | | { |
| | | dynamic resultInfos = new ExpandoObject(); |
| | | resultInfos.tbBillList = m.Insert(data); |
| | | return new ResponseResult |
| | | { |
| | | status = 0, |
| | | message = "OK", |
| | | data = resultInfos |
| | | }; |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | return ResponseResult.ResponseError(ex); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æ·»å è¿åèªå¢ |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | [HttpPost("InsertReturnIdentity")] |
| | | public ResponseResult InsertReturnIdentity([FromBody] Womdaa data) |
| | | { |
| | | try |
| | | { |
| | | dynamic resultInfos = new ExpandoObject(); |
| | | resultInfos.tbBillList = m.InsertReturnIdentity(data); |
| | | return new ResponseResult |
| | | { |
| | | status = 0, |
| | | message = "OK", |
| | | data = resultInfos |
| | | }; |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | return ResponseResult.ResponseError(ex); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// ä¿®æ¹ |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | [HttpPost("Update")] |
| | | public ResponseResult Update([FromBody] Womdaa data) |
| | | { |
| | | try |
| | | { |
| | | dynamic resultInfos = new ExpandoObject(); |
| | | resultInfos.tbBillList = m.Update(data); |
| | | return new ResponseResult |
| | | { |
| | | status = 0, |
| | | message = "OK", |
| | | data = resultInfos |
| | | }; |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | return ResponseResult.ResponseError(ex); |
| | | } |
| | | } |
| | | |
| | | #endregion |
| | | } |
| | |
| | |  |
| | | |
| | | using NewPdaSqlServer.entity; |
| | | using NewPdaSqlServer.entity; |
| | | |
| | | namespace NewPdaSqlServer.Dto.service; |
| | | |
| | | public class ProductionPickDto |
| | | { |
| | | public string? ItemModel { get; set; } |
| | | public string? PlanNo { get; set; } |
| | | public string? daa001 { get; set; } |
| | | |
| | | public string? barcodeNum { get; set; } |
| | | |
| | | public string? splitNum { get; set; } |
| | | |
| | | public string? barcode { get; set; } |
| | | |
| | | public List<Womdab>? totals { get; set; } |
| | | |
| | |
| | | using SqlSugar; |
| | | |
| | | namespace NewPdaSqlServer.entity |
| | | { |
| | | namespace NewPdaSqlServer.entity; |
| | | |
| | | /// <summary> |
| | | /// |
| | | ///</summary> |
| | | [SugarTable("MES_FILE")] |
| | | public class MesFile |
| | |
| | | /// æä»¶æ é¢ |
| | | ///</summary> |
| | | [SugarColumn(ColumnName="file_Title" )] |
| | | public string FileTitle { get; set; } |
| | | public string? FileTitle { get; set; } |
| | | |
| | | /// <summary> |
| | | /// æä»¶ç±»å |
| | | ///</summary> |
| | | [SugarColumn(ColumnName="file_Type" )] |
| | | public string FileType { get; set; } |
| | | public string? FileType { get; set; } |
| | | |
| | | /// <summary> |
| | | /// æä»¶è·¯å¾ |
| | | ///</summary> |
| | | [SugarColumn(ColumnName="url_Path" )] |
| | | public string UrlPath { get; set; } |
| | | public string? UrlPath { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ä¸ä¼ è
|
| | | ///</summary> |
| | | [SugarColumn(ColumnName="create_by" )] |
| | | public string CreateBy { get; set; } |
| | | public string? CreateBy { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ä¸ä¼ æ¶é´ |
| | | ///</summary> |
| | | [SugarColumn(ColumnName="create_date" )] |
| | | public DateTime? CreateDate { get; set; } |
| | | } |
| | | } |
| | |
| | | public class MesInvItemOutCDetails |
| | | { |
| | | /// <summary> |
| | | /// |
| | | /// é»è®¤å¼: (newid()) |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "guid", IsPrimaryKey = true)] |
| | |
| | | /// ç©ææ¡ç |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "ITEM_BARCODE")] |
| | | public string? ItemBarcode { get; set; } |
| | | public string ItemBarcode { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 客æ·ç©æç¼ç ï¼æ æ¡ç æå·¥å½å
¥ï¼ææ¡ç 为åä½åæ®µï¼ |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "C_ITEM_CODE")] |
| | | public string? CItemCode { get; set; } |
| | | public string CItemCode { get; set; } |
| | | |
| | | /// <summary> |
| | | /// æ¬å¸ç©æç¼ç ï¼æ æ¡ç æå·¥å½å
¥ï¼ææ¡ç 为åä½åæ®µï¼ |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "ITEM_NO")] |
| | | public string? ItemNo { get; set; } |
| | | public string ItemNo { get; set; } |
| | | |
| | | /// <summary> |
| | | /// åå®¶æ¹æ¬¡ |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "LOT_NO")] |
| | | public string? LotNo { get; set; } |
| | | public string LotNo { get; set; } |
| | | |
| | | /// <summary> |
| | | /// æ°éï¼æ æ¡ç æå·¥å½å
¥ï¼ææ¡ç 为åä½åæ®µï¼ |
| | |
| | | /// å建人 |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "CREATE_BY")] |
| | | public string? CreateBy { get; set; } |
| | | public string CreateBy { get; set; } |
| | | |
| | | /// <summary> |
| | | /// å建æ¶é´ |
| | |
| | | /// æåæ´æ°äºº |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "LASTUPDATE_BY")] |
| | | public string? LastupdateBy { get; set; } |
| | | public string LastupdateBy { get; set; } |
| | | |
| | | /// <summary> |
| | | /// æåæ´æ°æ¶é´ |
| | |
| | | /// 客æ·ç¼ç |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "CUST_NO")] |
| | | public string? CustNo { get; set; } |
| | | public string CustNo { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ä»åºç¼ç |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "DEPOT_CODE")] |
| | | public string? DepotCode { get; set; } |
| | | public string DepotCode { get; set; } |
| | | |
| | | /// <summary> |
| | | /// è´§ä½ç¼ç |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "DEPOT_SECTION_CODE")] |
| | | public string? DepotSectionCode { get; set; } |
| | | public string DepotSectionCode { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 夿³¨ |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "REMARK")] |
| | | public string? Remark { get; set; } |
| | | public string Remark { get; set; } |
| | | |
| | | /// <summary> |
| | | /// å
æ£æ è¯(0-å¦ï¼1-æ¯) |
| | |
| | | /// æææ¹æ¬¡ |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "PRD_LOT_NO")] |
| | | public string? PrdLotNo { get; set; } |
| | | public string PrdLotNo { get; set; } |
| | | |
| | | /// <summary> |
| | | /// æ¯å¦åæ¥æ¶æ£æ¥ |
| | |
| | | /// å·¥åç¼å· |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "FACTORY")] |
| | | public string? Factory { get; set; } |
| | | public string Factory { get; set; } |
| | | |
| | | /// <summary> |
| | | /// å
¬å¸ç¼å· |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "COMPANY")] |
| | | public string? Company { get; set; } |
| | | public string Company { get; set; } |
| | | |
| | | /// <summary> |
| | | /// åç产工å |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "TASK_NOY")] |
| | | public string? TaskNoy { get; set; } |
| | | public string TaskNoy { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ç®±å· |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "BOX_NO")] |
| | | public string? BoxNo { get; set; } |
| | | public string BoxNo { get; set; } |
| | | |
| | | /// <summary> |
| | | /// å
è£
æ¹æ¬¡ |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "TASK_PACK")] |
| | | public string? TaskPack { get; set; } |
| | | public string TaskPack { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 塿¿ |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "KB_NO")] |
| | | public string? KbNo { get; set; } |
| | | public string KbNo { get; set; } |
| | | |
| | | /// <summary> |
| | | /// æ¿å |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "BOARD_STYLE")] |
| | | public string? BoardStyle { get; set; } |
| | | public string BoardStyle { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ç产工å |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "TASK_NO")] |
| | | public string? TaskNo { get; set; } |
| | | public string TaskNo { get; set; } |
| | | |
| | | /// <summary> |
| | | /// å·¥åå· |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "WORK_NO")] |
| | | public string? WorkNo { get; set; } |
| | | public string WorkNo { get; set; } |
| | | |
| | | /// <summary> |
| | | /// å·¥ä½çº¿ |
| | |
| | | /// ä¾åºåç¼å· |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "SUPP_NO")] |
| | | public string? SuppNo { get; set; } |
| | | public string SuppNo { get; set; } |
| | | |
| | | /// <summary> |
| | | /// éè´åå· |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "PBILL_NO")] |
| | | public string? PbillNo { get; set; } |
| | | public string PbillNo { get; set; } |
| | | |
| | | /// <summary> |
| | | /// æ¶å°æ°é |
| | |
| | | /// æ¶è´§äºº |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "RCV_BY")] |
| | | public string? RcvBy { get; set; } |
| | | public string RcvBy { get; set; } |
| | | |
| | | /// <summary> |
| | | /// æ¶è´§é¨å |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "RCV_PART")] |
| | | public string? RcvPart { get; set; } |
| | | public string RcvPart { get; set; } |
| | | |
| | | /// <summary> |
| | | /// å
¥åºç¼å· |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "RK_NO")] |
| | | public string? RkNo { get; set; } |
| | | public string RkNo { get; set; } |
| | | |
| | | /// <summary> |
| | | /// éè´è®¢åID |
| | |
| | | public long? ItemId { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 夿å ID |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "DABID")] |
| | | public long? Dabid { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ä»åºid |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "depot_id")] |
| | | public int? DepotId { get; set; } |
| | | |
| | | /// <summary> |
| | | /// å·¥åæç»è¡id |
| | | ///</summary> |
| | | [SugarColumn(ColumnName = "DABID")] |
| | | public Guid? Dabid { get; set; } |
| | | |
| | | [SugarColumn(IsIgnore = true)] public string? DepotName { get; set; } |
| | | [SugarColumn(IsIgnore = true)] public string? ItemName { get; set; } |
| | | [SugarColumn(IsIgnore = true)] public string? ItemModel { get; set; } |
| | |
| | | public string Icoimg { get; set; } |
| | | |
| | | /// <summary> |
| | | /// |
| | | ///</summary> |
| | | [SugarColumn(ColumnName = "PAGE_GROUP")] |
| | | public string PageGroup { get; set; } |
| | | |
| | | /// <summary> |
| | | /// |
| | | ///</summary> |
| | | [SugarColumn(ColumnName = "PAGE_IDX")] |
| | | public int? PageIdx { get; set; } |
| | | |
| | | /// <summary> |
| | | /// |
| | | ///</summary> |
| | | [SugarColumn(ColumnName = "PAGE_STATUS")] |
| | | public bool? PageStatus { get; set; } |
| | |
| | | public string DepotCode { get; set; } |
| | | |
| | | /// <summary> |
| | | /// åææ¹å¼ |
| | | /// åææ¹å¼ 1ãç´æ¥é¢æï¼2ãç´æ¥åå²ï¼3ãè°æ¨é¢æï¼4ãè°æ¨å°å²ï¼7ãä¸åæ |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "ISSUE_TYPE")] |
| | | public string IssueType { get; set; } |
| | |
| | | public class Womdab |
| | | { |
| | | /// <summary> |
| | | /// |
| | | /// é»è®¤å¼: (newid()) |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "guid", IsPrimaryKey = true)] |
| | | public Guid Guid { get; set; } |
| | | |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "daaGuid")] |
| | | public Guid? DaaGuid { get; set; } |
| | |
| | | /// å·¥ååå· |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "dab001")] |
| | | public string Dab001 { get; set; } |
| | | public string? Dab001 { get; set; } |
| | | |
| | | /// <summary> |
| | | /// åºå· |
| | |
| | | /// ææç¼ç |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "dab003")] |
| | | public string Dab003 { get; set; } |
| | | public string? Dab003 { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ææåç§° |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "dab004")] |
| | | public string Dab004 { get; set; } |
| | | public string? Dab004 { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ææè§æ ¼ |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "dab005")] |
| | | public string Dab005 { get; set; } |
| | | public string? Dab005 { get; set; } |
| | | |
| | | /// <summary> |
| | | /// éé¢ç¨é |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "dab006")] |
| | | public int? Dab006 { get; set; } |
| | | public decimal? Dab006 { get; set; } |
| | | |
| | | /// <summary> |
| | | /// å·²é¢ç¨é |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "dab007")] |
| | | public int? Dab007 { get; set; } |
| | | public decimal? Dab007 { get; set; } |
| | | |
| | | /// <summary> |
| | | /// å·¥èº |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "dab008")] |
| | | public string Dab008 { get; set; } |
| | | public string? Dab008 { get; set; } |
| | | |
| | | /// <summary> |
| | | /// åä½ |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "dab009")] |
| | | public string Dab009 { get; set; } |
| | | public string? Dab009 { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ææç±»å |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "dab010")] |
| | | public string Dab010 { get; set; } |
| | | public string? Dab010 { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 主æ |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "dab011")] |
| | | public string Dab011 { get; set; } |
| | | public string? Dab011 { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ç»æç¨é |
| | |
| | | /// æ¯å¦æ¿æ |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "dab014")] |
| | | public string Dab014 { get; set; } |
| | | public string? Dab014 { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ç¹ä½ |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "dab015")] |
| | | public string Dab015 { get; set; } |
| | | public string? Dab015 { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ææåå· |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "dab016")] |
| | | public string Dab016 { get; set; } |
| | | public string? Dab016 { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ä»åºç¼ç |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "dab017")] |
| | | public string Dab017 { get; set; } |
| | | public string? Dab017 { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ä»åºåç§° |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "dab018")] |
| | | public string Dab018 { get; set; } |
| | | public string? Dab018 { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 颿æ¹å¼ |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "dab019")] |
| | | public string Dab019 { get; set; } |
| | | public string? Dab019 { get; set; } |
| | | |
| | | /// <summary> |
| | | /// åºå®æè |
| | |
| | | /// é»è®¤å¼: ((0)) |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "dab020")] |
| | | public int? Dab020 { get; set; } |
| | | public decimal? Dab020 { get; set; } |
| | | |
| | | /// <summary> |
| | | /// è¡¥é¢æ°é |
| | | /// é»è®¤å¼: ((0)) |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "dab021")] |
| | | public int? Dab021 { get; set; } |
| | | public decimal? Dab021 { get; set; } |
| | | |
| | | /// <summary> |
| | | /// éææ°é |
| | | /// é»è®¤å¼: ((0)) |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "dab022")] |
| | | public int? Dab022 { get; set; } |
| | | public decimal? Dab022 { get; set; } |
| | | |
| | | /// <summary> |
| | | /// è¶
颿°é |
| | | /// é»è®¤å¼: ((0)) |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "dab023")] |
| | | public int? Dab023 { get; set; } |
| | | public decimal? Dab023 { get; set; } |
| | | |
| | | /// <summary> |
| | | /// è¯åéæ |
| | |
| | | /// åå¹¶åå· |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "hb_no")] |
| | | public string HbNo { get; set; } |
| | | public string? HbNo { get; set; } |
| | | |
| | | |
| | | // å¨ææ·»å ç屿§ |
| | | [SugarColumn(IsIgnore = true)] public decimal? wNum { get; set; } |
| | |
| | | using NewPdaSqlServer.DB; |
| | | using System.Data; |
| | | using System.Data.SqlClient; |
| | | using NewPdaSqlServer.DB; |
| | | using NewPdaSqlServer.Dto.service; |
| | | using NewPdaSqlServer.entity; |
| | | using SqlSugar; |
| | |
| | | //æ ¹æ®å·¥åå·è¿å产ååå·åå¾
é¢ç©æ |
| | | public ProductionPickDto GetItemsByDaa001(WarehouseQuery query) |
| | | { |
| | | return getDaa001(query); |
| | | } |
| | | |
| | | public ProductionPickDto ScanCode(WarehouseQuery query) |
| | | { |
| | | string _strMsg = ""; |
| | | string _intSum = ""; |
| | | using (var conn = new SqlConnection(DbHelperSQL.strConn)) |
| | | { |
| | | using (var cmd =new SqlCommand("[prc_sys_role_set_menuOrAction]", conn)) |
| | | { |
| | | try |
| | | { |
| | | conn.Open(); |
| | | cmd.CommandType = CommandType.StoredProcedure; |
| | | SqlParameter[] parameters = |
| | | { |
| | | new("@outMsg", SqlDbType.NVarChar, 300), |
| | | new("@outSum", SqlDbType.NVarChar, 300), |
| | | new("@barcode_num", SqlDbType.NVarChar, 300), |
| | | new("@split_num", SqlDbType.NVarChar, 300), |
| | | new("@c_User", query.userName), |
| | | new("@p_biLL_no", query.daa001), |
| | | new("@p_item_barcode", query.barcode) |
| | | }; |
| | | parameters[0].Direction = ParameterDirection.Output; |
| | | parameters[1].Direction = ParameterDirection.Output; |
| | | parameters[2].Direction = ParameterDirection.Output; |
| | | parameters[3].Direction = ParameterDirection.Output; |
| | | foreach (var parameter in parameters) |
| | | cmd.Parameters.Add(parameter); |
| | | cmd.ExecuteNonQuery(); |
| | | _strMsg = parameters[0].Value.ToString(); |
| | | _intSum = parameters[1].Value.ToString(); |
| | | |
| | | var barcodeNum = parameters[2].Value.ToString(); |
| | | var splitNum = parameters[3].Value.ToString(); |
| | | |
| | | var result = Convert.ToInt32(_intSum); |
| | | if (result <= 0) |
| | | { |
| | | throw new Exception(_strMsg); |
| | | } |
| | | |
| | | var dto = new ProductionPickDto |
| | | { |
| | | daa001 = query.daa001, |
| | | barcodeNum = barcodeNum, |
| | | splitNum = splitNum, |
| | | barcode = query.barcode |
| | | }; |
| | | |
| | | return dto; |
| | | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | throw new Exception(ex.Message); |
| | | } |
| | | finally |
| | | { |
| | | conn.Close(); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | private ProductionPickDto getDaa001(WarehouseQuery query) |
| | | { |
| | | if (string.IsNullOrEmpty(query.daa001)) throw new Exception("å·¥åå·ä¸ºç©º"); |
| | | |
| | | var womdaa = Db.Queryable<Womdaa, MesItems>((a, i) => |
| | |
| | | .Where((a, i) => a.Daa001 == query.daa001) |
| | | .Select((a, i) => new |
| | | { |
| | | i.ItemModel |
| | | a.Daa001,a.CaaGuid |
| | | }).First(); |
| | | |
| | | if (womdaa?.ItemModel == null) throw new Exception("å·¥åå·ä¸åå¨"); |
| | | if (womdaa?.Daa001 == null) throw new Exception("å·¥åå·ä¸åå¨"); |
| | | |
| | | var womdabs = Db.Queryable<Womdaa, Womdab, MesItems>((a, b, c) => |
| | | var womdabs = Db.Queryable<Womdaa, Womdab, MesItems, Womcab>( |
| | | (a, b, c, d) => |
| | | new JoinQueryInfos( |
| | | JoinType.Left, |
| | | a.Id == b.Pid, |
| | | a.Guid == b.DaaGuid, |
| | | JoinType.Inner, |
| | | c.Id.ToString() == |
| | | b.Dab003 |
| | | b.Dab003, |
| | | JoinType.Inner, b.Erpid == d.Erpid |
| | | )) |
| | | .Where((a, b, c) => |
| | | a.Daa001 == query.daa001) |
| | | .Select((a, b, c) => new Womdab |
| | | .Where((a, b, c, d) => |
| | | a.Daa001 == query.daa001 && d.IssueType == "1") |
| | | .Select((a, b, c, d) => new Womdab |
| | | { |
| | | Pid = b.Pid, |
| | | Dab003 = b.Dab003, |
| | |
| | | |
| | | var list = womdabs.Where(s=>s.wNum > 0).ToList(); |
| | | |
| | | var mesInvItemOutCDetailsList = Db |
| | | .Queryable<MesInvItemOutCDetails, MesItems, MesDepots> |
| | | ((a, b, c) => |
| | | new JoinQueryInfos( |
| | | JoinType.Inner,a.ItemId == b.Id, |
| | | JoinType.Inner,c.DepotId == a.DepotId |
| | | )) |
| | | .Where((a, b, c) => a.WorkNo == query.daa001) |
| | | .Select((a, b, c)=> new MesInvItemOutCDetails |
| | | { |
| | | ItemName = b.ItemName, |
| | | ItemNo = b.ItemNo, |
| | | ItemId = a.ItemId, |
| | | DepotId = a.DepotId, |
| | | WorkNo = a.WorkNo, |
| | | DepotName = c.DepotName, |
| | | Quantity = a.Quantity, |
| | | }) |
| | | .ToList(); |
| | | |
| | | var womcaa = Db.Queryable<Womcaa>().Where(s=>s.Guid == womdaa.CaaGuid).First(); |
| | | |
| | | var dto = new ProductionPickDto |
| | | { |
| | | ItemModel = womdaa.ItemModel, |
| | | daa001 = womdaa.Daa001, |
| | | PlanNo = womcaa.Caa020, |
| | | totals = womdabs, |
| | | daisao = list |
| | | daisao = list, |
| | | yisao = mesInvItemOutCDetailsList |
| | | }; |
| | | |
| | | |
| | | return dto; |
| | | } |
| | |
| | | |
| | | public List<dynamic> getUserMenu(string name) |
| | | { |
| | | var sql = ""; |
| | | |
| | | var pageViewList = Db.Queryable<MesSysPageview>() |
| | | .Where(s => s.PageStatus == true) |
| | | .OrderBy(s => s.PageIdx) |
| | |
| | | var mesFile = Db.Queryable<MesFile>() |
| | | .Where(s => s.ParentGuid == pageView.Guid).First(); |
| | | |
| | | var icoimg = ""; |
| | | if (mesFile != null) |
| | | icoimg = "http://192.168.1.145:81/upload/" + |
| | | mesFile.UrlPath; |
| | | |
| | | groupObj.child.Add(new MesSysPageview |
| | | { |
| | | Guid = pageView.Guid, |
| | | PageView = pageView.PageView, |
| | | Path = pageView.Path, |
| | | Icoimg = "http://192.168.1.145:81/upload/" + |
| | | mesFile.UrlPath, |
| | | Icoimg = icoimg, |
| | | PageGroup = pageView.PageGroup, |
| | | PageIdx = pageView.PageIdx, |
| | | PageStatus = pageView.PageStatus |