| | |
| | | let timer = setTimeout(() => { |
| | | this.loading = false; |
| | | clearTimeout(timer); |
| | | }, 500); |
| | | }, 1500); |
| | | }, |
| | | }, |
| | | }; |
| | |
| | | autoplay |
| | | preload="auto" |
| | | muted |
| | | @click="unmuteVideo" |
| | | @click="handleVideoClick" |
| | | > |
| | | æ¨çæµè§å¨ä¸æ¯æè§é¢ææ¾ã |
| | | </video> |
| | | <div v-if="isMuted" class="mute-hint" @click="unmuteVideo"> |
| | | <span>ç¹å»åæ¶éé³ï¼5ç§åèªå¨ææ¾å£°é³ï¼</span> |
| | | <div v-if="showUnmuteButton" class="unmute-button" @click="unmuteVideo"> |
| | | <span>ð ç¹å»åæ¶éé³</span> |
| | | </div> |
| | | </dv-border-box-13> |
| | | </div> |
| | |
| | | export default { |
| | | data() { |
| | | return { |
| | | isMuted: false, |
| | | unmuteTimeout: null // åå¨å®æ¶å¨ä»¥ä¾¿æ¸
ç |
| | | showUnmuteButton: true, // æ¾ç¤ºåæ¶éé³æé® |
| | | hasUserInteracted: false, // è®°å½ç¨æ·æ¯å¦å·²äº¤äº |
| | | wasPlaying: false // è®°å½è§£é¤éé³åçææ¾ç¶æ |
| | | }; |
| | | }, |
| | | mounted() { |
| | | this.initVideo(); |
| | | this.adjustVideoSize(); |
| | | window.addEventListener('resize', this.adjustVideoSize); |
| | | |
| | | // 5ç§åèªå¨åæ¶éé³ |
| | | this.unmuteTimeout = setTimeout(() => { |
| | | this.unmuteVideo(); |
| | | }, 5000); |
| | | }, |
| | | beforeDestroy() { |
| | | window.removeEventListener('resize', this.adjustVideoSize); |
| | | if (this.unmuteTimeout) { |
| | | clearTimeout(this.unmuteTimeout); // æ¸
é¤å®æ¶å¨é¿å
å
åæ³æ¼ |
| | | const video = this.$refs.videoPlayer; |
| | | if (video) { |
| | | video.removeEventListener('error', this.handleVideoError); |
| | | } |
| | | }, |
| | | methods: { |
| | | initVideo() { |
| | | async initVideo() { |
| | | const video = this.$refs.videoPlayer; |
| | | if (video) { |
| | | video.addEventListener('ended', () => { |
| | | video.currentTime = 0; |
| | | video.play(); |
| | | }); |
| | | // ç¡®ä¿è§é¢ä»¥éé³ç¶æå¼å§ |
| | | video.muted = true; |
| | | |
| | | // æ·»å é误çå¬ |
| | | video.addEventListener('error', this.handleVideoError); |
| | | |
| | | // å°è¯èªå¨ææ¾ï¼éé³ç¶æä¸é常å
è®¸ï¼ |
| | | try { |
| | | await video.play(); |
| | | this.wasPlaying = true; |
| | | } catch (error) { |
| | | console.log('èªå¨ææ¾è¢«é»æ¢:', error); |
| | | } |
| | | } |
| | | document.addEventListener('click', this.unmuteVideo, { once: true }); |
| | | }, |
| | | unmuteVideo() { |
| | | |
| | | handleVideoClick() { |
| | | if (!this.hasUserInteracted) { |
| | | this.hasUserInteracted = true; |
| | | // ç¨æ·ç¬¬ä¸æ¬¡ç¹å»è§é¢æ¶å°è¯è§£é¤éé³ |
| | | this.unmuteVideo(); |
| | | } |
| | | }, |
| | | |
| | | async unmuteVideo() { |
| | | const video = this.$refs.videoPlayer; |
| | | if (video) { |
| | | if (!video) return; |
| | | |
| | | // è®°å½å½åææ¾ç¶æ |
| | | this.wasPlaying = !video.paused; |
| | | |
| | | try { |
| | | // å
ç¡®ä¿è§é¢å¨ææ¾ |
| | | if (this.wasPlaying) { |
| | | await video.play(); |
| | | } |
| | | |
| | | // è§£é¤éé³ |
| | | video.muted = false; |
| | | video.volume = 1.0; |
| | | this.isMuted = false; |
| | | |
| | | // éèåæ¶éé³æé® |
| | | this.showUnmuteButton = false; |
| | | } catch (error) { |
| | | console.error('è§£é¤éé³å¤±è´¥:', error); |
| | | // æ¾ç¤ºæç¤ºï¼åç¥ç¨æ·éè¦äº¤äºæè½ææ¾å£°é³ |
| | | this.showUnmuteButton = true; |
| | | } |
| | | }, |
| | | |
| | | handleVideoError(e) { |
| | | const video = e.target; |
| | | console.error('è§é¢é误:', video.error); |
| | | }, |
| | | |
| | | adjustVideoSize() { |
| | | const video = this.$refs.videoPlayer; |
| | | if (video) { |
| | |
| | | </script> |
| | | |
| | | <style scoped> |
| | | /* æ ·å¼ä¿æä¸å */ |
| | | .centermap { |
| | | width: 100%; |
| | | height: 100%; |
| | |
| | | width: 100%; |
| | | height: 100%; |
| | | object-fit: cover; |
| | | cursor: pointer; |
| | | } |
| | | |
| | | .mute-hint { |
| | | .unmute-button { |
| | | position: absolute; |
| | | top: 50%; |
| | | left: 50%; |
| | | transform: translate(-50%, -50%); |
| | | background: rgba(0,0,0,0.7); |
| | | bottom: 20px; |
| | | right: 20px; |
| | | background: rgba(0, 0, 0, 0.7); |
| | | color: white; |
| | | padding: 10px 20px; |
| | | border-radius: 5px; |
| | | padding: 8px 16px; |
| | | border-radius: 20px; |
| | | cursor: pointer; |
| | | z-index: 10; |
| | | font-size: 14px; |
| | | display: flex; |
| | | align-items: center; |
| | | gap: 8px; |
| | | transition: all 0.3s ease; |
| | | |
| | | &:hover { |
| | | background: rgba(0, 0, 0, 0.9); |
| | | } |
| | | } |
| | | </style> |
| | |
| | | }, |
| | | methods: { |
| | | fetchData() { |
| | | axios.post("http://127.0.0.1:5000/api/LocationInfo/LocationStatus", null) |
| | | axios.post("http://172.21.1.139:5000/api/LocationInfo/LocationStatus", null) |
| | | .then((response) => { |
| | | this.tableData = []; |
| | | response.forEach(item => { |
| | |
| | | }, |
| | | methods: { |
| | | fetchData() { |
| | | axios.post("http://127.0.0.1:5000/api/Dt_WheelsStock/InventoryStatistics", null) |
| | | axios.post("http://172.21.1.139:5000/api/Dt_WheelsStock/InventoryStatistics", null) |
| | | .then((response) => { |
| | | this.tableData = []; |
| | | response.forEach(item => { |
| | |
| | | //"ConnectionString": "HTI6FB1H05Krd07mNm9yBCNhofW6edA5zLs9TY~MNthRYW3kn0qKbMIsGp~3yyPDF1YZUCPBQx8U0Jfk4PH~ajNFXVIwlH85M3F~v_qKYQ3CeAz3q1mLVDn8O5uWt1~3Ut2V3KRkEwYHvW2oMDN~QIDXPxDgXN0R2oTIhc9dNu7QNaLEknblqmHhjaNSSpERdDVZIgHnMKejU_SL49tralBkZmDNi0hmkbL~837j1NWe37u9fJKmv91QPb~16JsuI9uu0EvNZ06g6PuZfOSAeFH9GMMIZiketdcJG3tHelo=", |
| | | //"ConnectionString": "Data Source=127.0.0.1;Initial Catalog=WIDESEA_WCS2F08;User ID=sa;Password=P@ssw0rd;Integrated Security=False;Connect Timeout=30;Encrypt=False;TrustServerCertificate=True;ApplicationIntent=ReadWrite;MultiSubnetFailover=True", |
| | | //"ConnectionString": "Data Source=192.168.20.251;Initial Catalog=WIDESEA_WCSDB;User ID=sa;Password=123456@gy;Integrated Security=False;Connect Timeout=30;Encrypt=False;TrustServerCertificate=False;ApplicationIntent=ReadWrite;MultiSubnetFailover=False", |
| | | |
| | | "ConnectionString": "Data Source=.;Initial Catalog=ZCLDY_WIDESEAWCS;User ID=sa;Password=123456;Integrated Security=False;Connect Timeout=30;Encrypt=False;TrustServerCertificate=False;ApplicationIntent=ReadWrite;MultiSubnetFailover=False", |
| | | //"ConnectionString": "Data Source=.;Initial Catalog=ZCLDY_WIDESEAWCS;User ID=sa;Password=123456;Integrated Security=False;Connect Timeout=30;Encrypt=False;TrustServerCertificate=False;ApplicationIntent=ReadWrite;MultiSubnetFailover=False", |
| | | "ConnectionString": "Data Source=.\\LIULEI;Initial Catalog=MX_LDY_WCS;User ID=sa;Password=123456;Integrated Security=False;Connect Timeout=30;Encrypt=False;TrustServerCertificate=False;ApplicationIntent=ReadWrite;MultiSubnetFailover=False", |
| | | //"ConnectionString": "Data Source=.\\LIULEI;Initial Catalog=MX_LDY_WCS;User ID=sa;Password=123456;Integrated Security=False;Connect Timeout=30;Encrypt=False;TrustServerCertificate=False;ApplicationIntent=ReadWrite;MultiSubnetFailover=False", |
| | | //"ConnectionString": "Data Source=127.0.0.1;Initial Catalog=WIDESEA_WCS2F08;User ID=sa;Password=P@ssw0rd;Integrated Security=False;Connect Timeout=30;Encrypt=False;TrustServerCertificate=True;ApplicationIntent=ReadWrite;MultiSubnetFailover=True", |
| | | //"ConnectionString": "Data Source=192.168.20.251;Initial Catalog=WIDESEA_WCSDB;User ID=sa;Password=123456@gy;Integrated Security=False;Connect Timeout=30;Encrypt=False;TrustServerCertificate=False;ApplicationIntent=ReadWrite;MultiSubnetFailover=False", |
| | | //"ConnectionString": "Data Source=192.168.5.251;Initial Catalog=WIDESEAWCS_TEST;User ID=sa;Password=P@ssw0rd;Integrated Security=False;Connect Timeout=30;Encrypt=False;TrustServerCertificate=False;ApplicationIntent=ReadWrite;MultiSubnetFailover=False", |
| | | "ConnectionString": "Data Source=172.21.1.139;Initial Catalog=WIDESEA_WCSDB;User ID=sa;Password=Admin123;Integrated Security=False;Connect Timeout=30;Encrypt=False;TrustServerCertificate=False;ApplicationIntent=ReadWrite;MultiSubnetFailover=False", |
| | | |
| | | //"ConnectionString": "Data Source=172.21.1.139;Initial Catalog=WIDESEA_WCSDB;User ID=sa;Password=Admin123;Integrated Security=False;Connect Timeout=30;Encrypt=False;TrustServerCertificate=False;ApplicationIntent=ReadWrite;MultiSubnetFailover=False", |
| | | //è·¨å |
| | | "Cors": { |
| | | "PolicyName": "CorsIpAccess", //çç¥åç§° |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | //读åç³è¯·ï¼ç»agvä¸åä»»å¡ |
| | | public WebResponseContent GetAGVTaskdistribution(string TargetAddress) |
| | | { |
| | | |
| | |
| | | var wmsIpAddress = wmsBase + completeTask; |
| | | var taskDto = new RequestTaskDto() |
| | | { |
| | | RequestType = "999", |
| | | Position = TargetAddress, |
| | | }; |
| | | |
| | |
| | | else |
| | | { |
| | | conveyorLine.SetValue(ConveyorLineDBName.ResponState, 2, stationInfo.stationChildCode); |
| | | Console.Out.WriteLine($"读åå°è¾é线ç³è¯·,ç³è¯·æ¡ç ï¼{command.Number}ï¼æªæ¾å°,åå
¥ç³è¯ä¿¡æ
éï¼2"); |
| | | Console.Out.WriteLine($"读åå°è¾é线ç³è¯·,ç³è¯·æ¡ç ï¼{command.Number}ï¼æªæ¾å°ä»»å¡ï¼ç³è¯·ä¸ä¸å°å为ï¼{stationInfo.stationChildCode},åå
¥ç³è¯ä¿¡æ
éï¼2"); |
| | | } |
| | | //_taskService.UpdatePosition(task.TaskNum, stationInfo.stationChildCode); |
| | | } |
| | | |
| | | #region è½¦è½´çº¿äº¤äº |
| | |
| | | /// <param name="ProtocalDetailValue">线ä½å½åbool读ååç§»å°å</param> |
| | | public void RequestTakeCZ(CommonConveyorLine conveyorLine, ConveyorLineTaskCommand command, Dt_StationManager stationInfo) |
| | | { |
| | | |
| | | WebResponseContent content = _taskService.UpdateAxleCurrentStatue(command.Number); |
| | | if (content.Status) |
| | | { |
| | |
| | | <el-button class="bun1" type="danger" v-if="item.stationStatus === '0'" |
| | | v-on:click="selectss(1)">1å·åè£
æº</el-button> |
| | | <p> |
| | | 2å·åè£
æº : |
| | | 1å·åè£
æº : |
| | | <el-tag type="success" v-if="item.stationStatus === '1'">å¯ç¨</el-tag> |
| | | <el-tag type="danger" v-if="item.stationStatus === '0'">ç¦ç¨</el-tag> |
| | | </p> |
| | |
| | | <el-button class="bun2" type="danger" v-if="item.stationStatus === '0'" |
| | | v-on:click="selectss(2)">2å·åè£
æº</el-button> |
| | | <p> |
| | | 1å·åè£
æº : |
| | | 2å·åè£
æº : |
| | | <el-tag type="success" v-if="item.stationStatus === '1'">å¯ç¨</el-tag> |
| | | <el-tag type="danger" v-if="item.stationStatus === '0'">ç¦ç¨</el-tag> |
| | | </p> |
| | |
| | | const editFormFields = ref({ "locationStatus": "" }); |
| | | const editFormOptions = ref([ |
| | | [ |
| | | { "title": "è´§ä½ç¶æ", "field": "locationStatus", "type": "select", dataKey: "LocationState", data: [] }, |
| | | { "title": "æ¯å¦ç¦ç¨", "field": "enalbeStatus", "type": "select", dataKey: "EnalbeStatus", data: [] }, |
| | | { "title": "è´§ä½ç¶æ", "field": "locationStatus", "type": "select", dataKey: "LocationState", data: [] }, |
| | | { "title": "æ¯å¦ç¦ç¨", "field": "enalbeStatus", "type": "select", dataKey: "EnalbeStatus", data: [] }, |
| | | ] |
| | | ]); |
| | | const searchFormFields = ref({ "LocationID": "",roadWayNO:"","column":"","row":"","layer":"" }); |
| | | const searchFormFields = ref({ |
| | | locationCode:"", |
| | | locationStatus:"", |
| | | roadWayNO:"", |
| | | column:"", |
| | | enalbeStatus:"", |
| | | depth:"", |
| | | }); |
| | | const searchFormOptions = ref([ |
| | | [ |
| | | { "title": "è´§ä½ç¼å·", "field": "locationCode", type: "text" }, |
| | |
| | | { "title": "å··éç¼å·", "field": "roadWayNO", type: "text" }, |
| | | ], |
| | | [ |
| | | { "title": "è¡", "field": "row", type: "int" }, |
| | | { "title": "å", "field": "column", type: "int" }, |
| | | { "title": "å±", "field": "layer", type: "int" }, |
| | | { "title": "è¡", "field": "row", type: "text" }, |
| | | { "title": "å", "field": "column", type: "text" }, |
| | | { "title": "å±", "field": "layer", type: "text" }, |
| | | ], |
| | | [ |
| | | { "title": "æ¯å¦ç¦ç¨", "field": "enalbeStatus", "type": "select", dataKey: "EnalbeStatus", data: [] }, |
| | |
| | | const columns = ref([{ field: 'id', title: 'è´§ä½ID', type: 'int', width: 110, hidden: true, readonly: true, require: true, align: 'left' }, |
| | | { field: 'locationCode', title: 'è´§ä½ç¼å·', type: 'string', width: 110, require: true, align: 'left' }, |
| | | { field: 'locationName', title: 'è´§ä½åç§°', type: 'string', width: 120, align: 'left' }, |
| | | { field: 'roadwayNo', title: 'å··éå·', type: 'string', width: 110, require: true, align: 'left'}, |
| | | { field: 'roadwayNo', title: 'å··éå·', type: 'string', width: 110, require: true, align: 'left' }, |
| | | { field: 'row', title: 'è¡', type: 'int', width: 70, align: 'left' }, |
| | | { field: 'column', title: 'å', type: 'int', width: 70, align: 'left' }, |
| | | { field: 'layer', title: 'å±', type: 'int', width: 70, align: 'left' }, |
| | | { field: 'depth', title: '深度', type: 'string', width: 110, align: 'left' }, |
| | | { field: 'scNo', title: '对åºå åæºå·', type: 'string', width: 110, align: 'left', hidden: true }, |
| | | { field: 'locationType', title: 'è´§ä½ç±»å', type: 'int', width: 110, align: 'left',bind: { key: "LocationType", data: [] } }, |
| | | { field: 'locationType', title: 'è´§ä½ç±»å', type: 'int', width: 110, align: 'left', bind: { key: "LocationType", data: [] } }, |
| | | { field: 'locationStatus', title: 'è´§ä½ç¶æ', type: 'int', width: 110, align: 'left', bind: { key: "LocationState", data: [] } }, |
| | | { field: 'enalbeStatus', title: 'æ¯å¦ç¦ç¨', type: 'int', width: 75, align: 'left', bind: { key: "EnalbeStatus", data: [] }}, |
| | | { field: 'enalbeStatus', title: 'æ¯å¦ç¦ç¨', type: 'int', width: 75, align: 'left', bind: { key: "EnalbeStatus", data: [] } }, |
| | | // { field: 'isLocked', title: 'æ¯å¦éå®', type: 'bool', width: 110, align: 'left', bind: { key: "IsLocked", data: [] } }, |
| | | { field: 'locationDesc', title: 'è´§ä½æè¿°', type: 'string', width: 110, align: 'left', hidden: true }, |
| | | { field: 'remark', title: '夿³¨', type: 'string', width: 110, align: 'left' ,bind: { key: "AllowStatus", data: [] }}, |
| | | { field: 'remark', title: '夿³¨', type: 'string', width: 110, align: 'left', bind: { key: "AllowStatus", data: [] } }, |
| | | { field: 'creater', title: 'å建人', type: 'string', sort: true, width: 110, align: 'left' }, |
| | | { field: 'createDate', title: 'å建æ¶é´', type: 'datetime', sort: true, width: 150, align: 'left', sort: true }, |
| | | { field: 'modifier', title: 'ä¿®æ¹äºº', type: 'string', sort: true, width: 100, align: 'left' }, |
| | | { field: 'modifyDate', title: 'ä¿®æ¹æ¶é´', type: 'datetime', sort: true, width: 150, align: 'left', sort: true }, |
| | | ]); |
| | | ]); |
| | | const detail = ref({ |
| | | cnName: "#detailCnName", |
| | | table: "#detailTable", |
| | |
| | | *Authorï¼jxx |
| | | *Contactï¼283591387@qq.com |
| | | *代ç ç±æ¡æ¶çæ,任使´æ¹é½å¯è½å¯¼è´è¢«ä»£ç çæå¨è¦ç |
| | | *ä¸å¡è¯·å¨@/extension/widesea_wms/basicinfo/Dt_AreaInfo.jsæ¤å¤ç¼å |
| | | *ä¸å¡è¯·å¨@/extension/widesea_wms/basicinfo/Dt_LocationInfo.jsæ¤å¤ç¼å |
| | | --> |
| | | <template> |
| | | <view-grid ref="grid" :columns="columns" :detail="detail" :editFormFields="editFormFields" |
| | |
| | | export default defineComponent({ |
| | | setup() { |
| | | const table = ref({ |
| | | key: 'Id', |
| | | key: 'id', |
| | | footer: "Foots", |
| | | cnName: '车å管ç', |
| | | name: 'basicinfo/Dt_Traintype', |
| | |
| | | sortName: "id" |
| | | }); |
| | | const editFormFields = ref({ |
| | | "traintype_code": "", |
| | | "traintype_name": "" |
| | | traintype_code:"", |
| | | traintype_name:"" |
| | | }); |
| | | const editFormOptions = ref([ |
| | | [ |
| | |
| | | { "title": "车ååç§°", "field": "traintype_name", type: "text" }, |
| | | ] |
| | | ]); |
| | | const searchFormFields = ref({}); |
| | | const searchFormFields = ref({ |
| | | "traintype_code": "", |
| | | "traintype_name": "" |
| | | }); |
| | | const searchFormOptions = ref([ |
| | | [ |
| | | { "title": "车å代ç ", "field": "traintype_code", type: "text" }, |
| | | { "title": "车ååç§°", "field": "traintype_name", type: "text" }, |
| | | { "title": "车å代ç ", "field": "traintype_code", type: "like" }, |
| | | { "title": "车ååç§°", "field": "traintype_name", type: "like" }, |
| | | ] |
| | | ]); |
| | | const columns = ref([{ field: 'ID', title: '主é®', type: 'int', sort: true, hidden: true, width: 110, readonly: true, require: true, align: 'left' }, |
| | | const columns = ref([{ field: 'id', title: '主é®', type: 'int', sort: true, hidden: true, width: 110, readonly: true, require: true, align: 'left' }, |
| | | { field: 'traintype_code', title: '车å代ç ', type: 'string', sort: true, width: 90, align: 'left',}, |
| | | { field: 'traintype_name', title: '车ååç§°', type: 'int', sort: true, width: 90, align: 'left' }, |
| | | { field: 'traintype_des', title: 'æè¿°', type: 'int', sort: true, width: 200, align: 'left' }, |
| | |
| | | const searchFormFields = ref({}); |
| | | const searchFormOptions = ref([ |
| | | [ |
| | | { "title": "è´§ä½ç¼å·", "field": "locationCode", type: "text" }, |
| | | { "title": "è´§ä½ç¼å·", "field": "locationCode", type: "like" }, |
| | | { "title": "åå¨åè´§ä½ç¶æ", "field": "BeforeStatus", "type": "select", dataKey: "LocationState", data: [] }, |
| | | { "title": "åå¨åè´§ä½ç¶æ", "field": "AfterStatus", "type": "select", dataKey: "LocationState", data: [] }, |
| | | { "title": "åå¨ç±»å", "field": "changeType", type: "select", dataKey: "StatusChangeType", data: [] }, |
| | |
| | | wheels_mttype:"", |
| | | wheelsProps:"", |
| | | wheels_level:"", |
| | | creater:"", |
| | | createDate:"", |
| | | }); |
| | | const searchFormOptions = ref([ |
| | | [ |
| | |
| | | ], |
| | | [ |
| | | { "title": "ç级", "field": "wheels_level", type: "text" }, |
| | | { "title": "å建æ¶é´", "field": "creater", type: "datetime" }, |
| | | { "title": "å建æ¶é´", "field": "createDate", type: "datetime" }, |
| | | ] |
| | | ]); |
| | | const columns = ref([ |
| | |
| | | wheels_mttype:"", |
| | | wheelsProps:"", |
| | | wheels_level:"", |
| | | creater:"", |
| | | createDate:"", |
| | | }); |
| | | const searchFormOptions = ref([ |
| | | [ |
| | |
| | | ], |
| | | [ |
| | | { "title": "ç级", "field": "wheels_level", type: "text" }, |
| | | { "title": "å建æ¶é´", "field": "creater", type: "datetime" }, |
| | | { "title": "å建æ¶é´", "field": "createDate", type: "datetime" }, |
| | | ] |
| | | ]); |
| | | const columns = ref([ |
| | |
| | | }); |
| | | const searchFormOptions = ref([ |
| | | [ |
| | | { "title": "车轮æ¡ç ", "field": "Wheels_code", type: "text" }, |
| | | { "title": "车轮æ¡ç ", "field": "Wheels_code", type: "like" }, |
| | | { "title": "车å", "field": "Wheels_CarType", type: "select", dataKey: "traintype_names", data: [] }, |
| | | //{ "title": "åºåç±»å", "field": "StockType", type: "select", dataKey: "GroupType", data: [] }, |
| | | { "title": "è½®å", "field": "wheels_ldxh", type: "text" }, |
| | |
| | | |
| | | { field: 'wheels_ljz', title: 'è½®å¾å¼', type: 'string', sort: true, width: 100, align: 'left' }, |
| | | { field: 'wheels_ygljz', title: 'é¢ä¼°è½®å¾å¼', type: 'string', sort: true, width: 100, align: 'left' }, |
| | | { field: 'wheels_Statue', title: 'åæç¶æ', type: 'int', sort: true, width: 100, align: 'left' }, |
| | | { field: 'wheels_DateDet', title: 'å½ååºå天æ°', type: 'int', sort: true, width: 100, align: 'left' }, |
| | | { field: 'wheels_InDate', title: 'å
¥åºæ¥æ', type: 'string',width: 100, align: 'left' }, |
| | | { field: 'creater', title: 'å建人', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'createDate', title: 'å建æ¶é´', type: 'datetime', sort: true, width: 100, align: 'left' }, |
| | |
| | | LinqExpressionType expressionType = searchParametersList[i].DisplayType.GetLinqCondition(); |
| | | if (expressionType == LinqExpressionType.Equal) |
| | | { |
| | | where += $"{searchParametersList[i].Name} {HtmlElementType.Equal} '{results[j].Item3}'"; |
| | | if(searchParametersList[i].Name == "column") |
| | | { |
| | | where += $"[{searchParametersList[i].Name}] {HtmlElementType.Equal} '{results[j].Item3}'"; |
| | | } |
| | | else |
| | | { |
| | | where += $"{searchParametersList[i].Name} {HtmlElementType.Equal} '{results[j].Item3}'"; |
| | | } |
| | | |
| | | } |
| | | else if (expressionType == LinqExpressionType.ThanOrEqual) |
| | | { |
| | |
| | | /// <returns></returns> |
| | | public virtual PageGridData<TEntity> QueryPage(string where, int pageIndex, int pageSize, Dictionary<string, OrderByType> orderBy) |
| | | { |
| | | List<OrderByModel> orderByModels = new List<OrderByModel>(); |
| | | foreach (var item in orderBy) |
| | | try |
| | | { |
| | | OrderByModel orderByModel = new OrderByModel() |
| | | List<OrderByModel> orderByModels = new List<OrderByModel>(); |
| | | foreach (var item in orderBy) |
| | | { |
| | | FieldName = item.Key, |
| | | OrderByType = item.Value |
| | | }; |
| | | orderByModels.Add(orderByModel); |
| | | } |
| | | int totalCount = 0; |
| | | List<TEntity> list = _db.Queryable<TEntity>() |
| | | .WhereIF(!string.IsNullOrEmpty(where), where).OrderBy(orderByModels).IncludesAllFirstLayer().ToPageList(pageIndex, pageSize, ref totalCount); |
| | | OrderByModel orderByModel = new OrderByModel() |
| | | { |
| | | FieldName = item.Key, |
| | | OrderByType = item.Value |
| | | }; |
| | | orderByModels.Add(orderByModel); |
| | | } |
| | | int totalCount = 0; |
| | | List<TEntity> list = _db.Queryable<TEntity>() |
| | | .WhereIF(!string.IsNullOrEmpty(where), where).OrderBy(orderByModels).IncludesAllFirstLayer().ToPageList(pageIndex, pageSize, ref totalCount); |
| | | |
| | | return new PageGridData<TEntity>(totalCount, list); |
| | | |
| | | return new PageGridData<TEntity>(totalCount, list); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | |
| | | throw; |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | |
| | | public const string TempHour = "TempHour"; |
| | | |
| | | public const string InventoryMarket = "InventoryMarket"; |
| | | |
| | | /// <summary> |
| | | /// 请æ±wcsï¼åå
¥è¾é线åé¦ |
| | | /// </summary> |
| | |
| | | Dt_WheelsStock_Old GetSelectionWheels(List<Dt_WheelsStock_Old> wheelsStocks, Dt_SelectionStandards selectionStandards, Dt_CZInfo_mes CZInfo_Mes, string wheelsPosition, string newOrOld, string wheelsProps); |
| | | |
| | | WebResponseContent InventoryStatistics(); |
| | | WebResponseContent UpdateInventoryStatue(); |
| | | |
| | | |
| | | } |
| | |
| | | /// è´§ä½å |
| | | /// </summary> |
| | | [SugarColumn(IsNullable = false, ColumnDescription = "è´§ä½å")] |
| | | public int Column { get; set; } |
| | | public int Column{ get; set; } |
| | | |
| | | /// <summary> |
| | | /// è´§ä½å± |
| | |
| | | using AngleSharp.Text; |
| | | using Magicodes.ExporterAndImporter.Core; |
| | | using SqlSugar; |
| | | using System; |
| | | using System.Collections.Generic; |
| | |
| | | /// <summary> |
| | | /// ä¸»é® |
| | | /// </summary> |
| | | [ExporterHeader(DisplayName = "主é®", IsIgnore = true)] |
| | | [SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnDescription = "主é®")] |
| | | public int Wheels_ID { get; set; } |
| | | |
| | | /// <summary> |
| | | /// è½¦è½®å· |
| | | /// </summary> |
| | | [ExporterHeader(DisplayName = "车轮æ¡ç ")] |
| | | [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "车轮æ¡ç ")] |
| | | public string Wheels_code { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ç±»å« (车轮/ å¶å¨ç) |
| | | /// </summary> |
| | | [ExporterHeader(DisplayName = "车轮", IsIgnore = true)] |
| | | [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "ç±»å«(车轮/å¶å¨ç)")] |
| | | public string Wheels_Type { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ç¶æ 1-å建 2-å
¥åº 3-宿 4-å é¤ |
| | | /// </summary> |
| | | [ExporterHeader(DisplayName = "ç¶æ", IsIgnore = true)] |
| | | [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "ç¶æ")] |
| | | public string Wheels_CurrentStatue { get; set; } |
| | | /// <summary> |
| | |
| | | /// <summary> |
| | | /// 车轮æ¡ç |
| | | /// </summary> |
| | | [ExporterHeader(DisplayName = "车轮æ¡ç ",IsIgnore =true)] |
| | | [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "车轮æ¡ç ")] |
| | | public string Wheels_Num { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 轮对æ¡ç |
| | | /// </summary> |
| | | [ExporterHeader(DisplayName = "轮对æ¡ç ")] |
| | | [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "轮对æ¡ç ")] |
| | | public string Wheels_ldtm { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 车å |
| | | /// </summary> |
| | | [ExporterHeader(DisplayName = "车å")] |
| | | [SugarColumn(IsNullable = false, Length = 20, ColumnDescription = "车å")] |
| | | public string Wheels_CarType { get; set; } |
| | | |
| | | /// <summary> |
| | | /// é
å±å± |
| | | /// </summary> |
| | | [ExporterHeader(DisplayName = "é
å±å±")] |
| | | [SugarColumn(IsNullable = false, Length = 20, ColumnDescription = "é
å±å±")] |
| | | public string Wheels_psj { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 车ç»å· |
| | | /// </summary> |
| | | [ExporterHeader(DisplayName = "车ç»å·")] |
| | | [SugarColumn(IsNullable = false, Length = 20, ColumnDescription = "车ç»å·")] |
| | | public string Wheels_CarNo { get; set; } |
| | | |
| | | /// <summary> |
| | | /// è½®å¯¹å· |
| | | /// </summary> |
| | | [ExporterHeader(DisplayName = "轮对å·")] |
| | | [SugarColumn(IsNullable = false, Length = 20, ColumnDescription = "轮对å·")] |
| | | public string Wheels_ldh { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 轮对åå· |
| | | /// </summary> |
| | | [ExporterHeader(DisplayName = "轮对åå·")] |
| | | [SugarColumn(IsNullable = false, Length = 20, ColumnDescription = "轮对åå·")] |
| | | public string Wheels_ldxh { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 卿屿§Mï¼å¨,Tï¼æ M/Tï¼å¨æéç¨ |
| | | /// </summary> |
| | | [ExporterHeader(DisplayName = "卿屿§")] |
| | | [SugarColumn(IsNullable = false, Length = 20, ColumnDescription = "卿屿§")] |
| | | public string Wheels_mttype { get; set; } |
| | | |
| | | /// <summary> |
| | | /// æ°æ§å±æ§ 1ï¼æ§ 0 ï¼æ° |
| | | /// </summary> |
| | | [ExporterHeader(DisplayName = "æ°æ§å±æ§ 0 : æ° / 1 : æ§ ")] |
| | | [SugarColumn(IsNullable = false, Length = 20, ColumnDescription = "æ°æ§ç±»å")] |
| | | public string Wheels_NewOrOld { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 屿§ |
| | | /// </summary> |
| | | [ExporterHeader(DisplayName = "è½¦è½®å±æ§")] |
| | | [SugarColumn(IsNullable = false, Length = 20, ColumnDescription = "è½¦è½®å±æ§")] |
| | | public string WheelsProps { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ç级 |
| | | /// </summary> |
| | | [ExporterHeader(DisplayName = "ç级")] |
| | | [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "ç级")] |
| | | public string Wheels_level { get; set; } |
| | | |
| | | /// <summary> |
| | | /// æ¯åaçé¢åå¼ |
| | | /// </summary> |
| | | [ExporterHeader(DisplayName = "æ¯åaçé¢åå¼")] |
| | | [SugarColumn(IsNullable = false, Length = 20, ColumnDescription = "æ¯åaçé¢åå¼")] |
| | | public string Wheels_gkzja { get; set; } |
| | | /// <summary> |
| | | /// æ¯åbçé¢åå¼ |
| | | /// </summary> |
| | | [ExporterHeader(DisplayName = "æ¯åbçé¢åå¼")] |
| | | [SugarColumn(IsNullable = false, Length = 20, ColumnDescription = "æ¯åbçé¢åå¼")] |
| | | public string Wheels_gkzjb { get; set; } |
| | | /// <summary> |
| | | /// æ¯åcçé¢åå¼ |
| | | /// </summary> |
| | | [ExporterHeader(DisplayName = "æ¯åcçé¢åå¼")] |
| | | [SugarColumn(IsNullable = false, Length = 20, ColumnDescription = "æ¯åcçé¢åå¼")] |
| | | public string Wheels_gkzjc { get; set; } |
| | | |
| | | /// <summary> |
| | | /// æ¯ååå¼ |
| | | /// </summary> |
| | | [ExporterHeader(DisplayName = "æ¯ååå¼")] |
| | | [SugarColumn(IsNullable = false, Length = 20, ColumnDescription = "æ¯ååå¼")] |
| | | public string Wheels_gkcc { get; set; } |
| | | |
| | | /// <summary> |
| | | /// è½®å¾å¼ |
| | | /// </summary> |
| | | [ExporterHeader(DisplayName = "è½®å¾å¼")] |
| | | [SugarColumn(IsNullable = false, Length = 20, ColumnDescription = "è½®å¾å¼")] |
| | | public string Wheels_ljz { get; set; } |
| | | |
| | | /// <summary> |
| | | /// é¢ä¼°è½®å¾å¼ |
| | | /// </summary> |
| | | [ExporterHeader(DisplayName = "é¢ä¼°è½®å¾å¼")] |
| | | [SugarColumn(IsNullable = false, Length = 20, ColumnDescription = "é¢ä¼°è½®å¾å¼")] |
| | | public string Wheels_ygljz { get; set; } |
| | | |
| | | /// <summary> |
| | | /// å
¥åºæ¥æ |
| | | /// </summary> |
| | | [ExporterHeader(DisplayName = "å
¥åºæ¥æ")] |
| | | [SugarColumn(IsNullable = false, Length = 20, ColumnDescription = "å
¥åºæ¥æ")] |
| | | public string Wheels_InDate { get; set; } |
| | | |
| | | /// <summary> |
| | | /// è½®ç¼ |
| | | /// </summary> |
| | | [ExporterHeader(DisplayName = "è½®ç¼")] |
| | | [SugarColumn(IsNullable = false, Length = 20, ColumnDescription = "è½®ç¼")] |
| | | public string Wheels_LYH { get; set; } |
| | | } |
| | |
| | | using SqlSugar; |
| | | using Magicodes.ExporterAndImporter.Core; |
| | | using SqlSugar; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | |
| | | |
| | | namespace WIDESEA_Model.Models |
| | | { |
| | | [SugarTable(nameof(Dt_InZdp_mes_hty), "MESå¶å¨çåå²ä¿¡æ¯")] |
| | | [SugarTable(nameof(Dt_InWheels_mes_hty), "MESå¶å¨çåå²ä¿¡æ¯")] |
| | | |
| | | public class Dt_InZdp_mes_hty : Dt_InZdp_mes |
| | | public class Dt_InWheels_mes_hty : Dt_InWheels_mes |
| | | { |
| | | /// <summary> |
| | | /// 宿æ¶é´ |
| | | /// </summary> |
| | | [ExporterHeader(DisplayName = "宿æ¶é´", IsIgnore = true)] |
| | | [SugarColumn(IsNullable = false, Length = 20, ColumnDescription = "宿æ¶é´")] |
| | | public DateTime? FinishDate { get; set; } = DateTime.Now; |
| | | |
| | | /// <summary> |
| | | /// 宿æ¹å¼ |
| | | /// </summary> |
| | | [ExporterHeader(DisplayName = "宿æ¹å¼", IsIgnore =true)] |
| | | [SugarColumn(IsNullable = false, Length = 20, ColumnDescription = "宿æ¹å¼")] |
| | | public int OperateType { get; set; } |
| | | } |
| | |
| | | [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "è½®ç¼")] |
| | | public string Wheels_LYH { get; set; } |
| | | |
| | | |
| | | /// <summary> |
| | | /// åæç¶æ ï¼0表示æ£å¸¸ 1表示è¶
æï¼ |
| | | /// </summary> |
| | | [ImporterHeader(Name = "åæç¶æ")] |
| | | [ExporterHeader(DisplayName = "åæç¶æ")] |
| | | [SugarColumn(IsNullable = false, ColumnDescription = "åæç¶æ")] |
| | | public int Wheels_Statue { get; set; } |
| | | |
| | | /// <summary> |
| | | /// å½ååºåå¤©æ° |
| | | /// </summary> |
| | | [ImporterHeader(Name = "å½ååºå天æ°")] |
| | | [ExporterHeader(DisplayName = "å½ååºå天æ°")] |
| | | [SugarColumn(IsNullable = false, ColumnDescription = "å½ååºå天æ°")] |
| | | public int Wheels_DateDet { get; set; } = 0; |
| | | |
| | | } |
| | | } |
| | |
| | | WebResponseContent content = new WebResponseContent(); |
| | | try |
| | | { |
| | | if (input.RequestType == "999") |
| | | { |
| | | int CZInfotli = _task_CZInfoRepository.QueryData(x => x.CurrentStatue == "3").Count(); |
| | | if (CZInfotli == 0) |
| | | { |
| | | return content.Error($"没æèªå¨åè½´ä»»å¡ï¼æ èªå¨ä»»å¡"); |
| | | } |
| | | } |
| | | |
| | | if (string.IsNullOrEmpty(input.Position)) { return content.Error($"agvä»»å¡ä¸åç³è¯·ç®æ å°å为空ï¼ï¼ï¼è¯·æ£æ¥"); } |
| | | |
| | | //æ¥æ¾å½åå¨è½¦è½´çº¿æ«ç«¯éè¦agvæ¬è¿ç车轴 |
| | | |
| | | List<Dt_CZInfo_mes> CZInfotlist = _task_CZInfoRepository.QueryData(x => x.CurrentStatue == "3" || x.CurrentStatue == "4" || x.CurrentStatue == "5" || x.CurrentStatue == "13"); |
| | | List<Dt_CZInfo_mes> CZInfotlist = _task_CZInfoRepository.QueryData(x => x.CurrentStatue == "3" /*|| x.CurrentStatue == "4" || x.CurrentStatue == "5"*/ || x.CurrentStatue == "13"); |
| | | |
| | | if (CZInfotlist.Count >= 2) { return content.Error($"å·²æagv任塿£å¨è¿è¡ä¸ï¼ä¸å失败ï¼ï¼ï¼"); } |
| | | |
| | |
| | | //agvåæ°è°å |
| | | genAgvSchedulingTask schedulingTask = new genAgvSchedulingTask |
| | | { |
| | | reqCode = Guid.NewGuid().ToString().Replace("-", ""), |
| | | reqCode = $"{DateTime.Now:yyyyMMddHHmmss}", |
| | | clientCode = "WMS", |
| | | taskTyp = "BY", |
| | | ctnrTyp = "1", |
| | |
| | | catch (Exception ex) |
| | | { |
| | | LogFactory.GetLog("ä¸åAGVä»»å¡").Error(true, ex.Message); |
| | | return content.Error($"请æ±å¼å¸¸ï¼{ex.Message}"); |
| | | return content.Error($"ä¸å任塿¥å£å¼å¸¸ï¼{ex.Message}"); |
| | | } |
| | | } |
| | | } |
| | |
| | | public partial class ToAPPService |
| | | { |
| | | /// <summary> |
| | | /// ä¿åè½¦è½´æ°æ® |
| | | /// ä¿åè½¦è½´æ°æ®ï¼è½¦è½®éé
ï¼ |
| | | /// </summary> |
| | | /// <param name="saveModel"></param> |
| | | /// <returns></returns> |
| | |
| | | |
| | | string wheelsProps = CheckTaskChangeHelper.CheckTaskwheelsProps(wxrw); |
| | | |
| | | Dt_SelectionStandards selectionStandards = _SelectionStandardsRepository.QueryFirst(x => x.CarType== Cartype && x.mttype == mttype && x.neworold == newOrOld && level.Contains(x.gkdj)); |
| | | Dt_SelectionStandards selectionStandards = _SelectionStandardsRepository.QueryFirst(x => x.CarType.Contains(Cartype) && x.mttype == mttype && x.neworold == newOrOld && level.Contains(x.gkdj)); |
| | | if (selectionStandards == null) throw new Exception($"æ¤è½¦å{Cartype}çéé
æ åå¼å¸¸,è¯·æ ¸å¯¹éé
æ åä¿¡æ¯!"); |
| | | |
| | | Dt_CZInfo_mes CZInfo_Mes = new Dt_CZInfo_mes |
| | |
| | | |
| | | |
| | | |
| | | inf2o.ZPH = "20231021-0019/25103295 0011"; |
| | | /*inf2o.ZPH = "20231021-0019/25103295 0011"; |
| | | inf2o.CHEXING = "CRH1A"; |
| | | inf2o.NEWOLD = "æ§"; |
| | | inf2o.POS = "ä¸é´"; |
| | |
| | | inf2o.GKJZ = "0.22"; |
| | | inf2o.LSCSYMH = "0.42"; |
| | | inf2o.LMCSYMH = "0.031"; |
| | | inf2o.RKSJ = DateTime.Now.ToString(); |
| | | inf2o.RKSJ = DateTime.Now.ToString();*/ |
| | | |
| | | |
| | | |
| | |
| | | using Autofac.Core; |
| | | using NetTaste; |
| | | using AngleSharp.Io; |
| | | using WIDESEA_IRepository; |
| | | using WIDESEA_Core.Const; |
| | | using WIDESEA_IServices; |
| | | |
| | | namespace WIDESEA_StorageBasicService; |
| | | |
| | |
| | | private readonly IDt_WheelsStock_htyRepository _WheelsStock_HtyRepository; |
| | | private readonly IDt_SelectionStandardsRepository _SelectionStandardsRepository; |
| | | private readonly IToZYService _toZYService; |
| | | public Dt_WheelsStockService(IDt_WheelsStockRepository BaseDal, IDt_WheelsStock_htyRepository WheelsStock_HtyRepository, IDt_SelectionStandardsRepository selectionStandardsRepository, IToZYService toZYService) : base(BaseDal) |
| | | private readonly ISys_ConfigService _sys_ConfigService; |
| | | public Dt_WheelsStockService(IDt_WheelsStockRepository BaseDal, IDt_WheelsStock_htyRepository WheelsStock_HtyRepository, IDt_SelectionStandardsRepository selectionStandardsRepository, IToZYService toZYService, ISys_ConfigService ISys_ConfigService) : base(BaseDal) |
| | | { |
| | | _SelectionStandardsRepository = selectionStandardsRepository; |
| | | _WheelsStock_HtyRepository = WheelsStock_HtyRepository; |
| | | _toZYService = toZYService; |
| | | _sys_ConfigService = ISys_ConfigService; |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | |
| | | //è·å车å |
| | | List<string> Wheels_CarTypeList = stockInfos.Select(x => x.Wheels_CarType).Distinct().ToList(); |
| | | List<WheelGroupInfo> groupedData = new List<WheelGroupInfo>(); |
| | | |
| | | foreach (var CarType in Wheels_CarTypeList) |
| | | { |
| | | content.Data = stockInfos.Where(x => x.Wheels_CarType == CarType).GroupBy(w => w.Wheels_ldxh) |
| | | .Select(typeGroup => new |
| | | var kd = stockInfos.Where(x => x.Wheels_CarType == CarType).GroupBy(w => w.Wheels_ldxh) |
| | | .Select(typeGroup => new WheelGroupInfo |
| | | { |
| | | Wheels_CarType = CarType, //车å |
| | | Wheels_ldxh = typeGroup.Key, |
| | | Count = typeGroup.Count(), |
| | | |
| | | }).ToList(); |
| | | |
| | | groupedData.AddRange(kd); |
| | | } |
| | | content.Data = groupedData; |
| | | return content; |
| | | } |
| | | |
| | | |
| | | public class WheelGroupInfo |
| | | { |
| | | public string Wheels_CarType { get; set; } |
| | | public string Wheels_ldxh { get; set; } |
| | | public int Count { get; set; } |
| | | |
| | | } |
| | | |
| | | |
| | | public WebResponseContent UpdateInventoryStatue() |
| | | { |
| | | WebResponseContent content = new WebResponseContent(); |
| | | try |
| | | { |
| | | |
| | | List<Dt_WheelsStock> groupedData = new List<Dt_WheelsStock>(); |
| | | |
| | | var hourpara = _sys_ConfigService.GetByConfigKey(CateGoryConst.CONFIG_SYS_Parameters, SysConfigConst.InventoryMarket); |
| | | int hour = hourpara.ConfigValue.ObjToInt(); //è·å设置ç颿æ¶é´ |
| | | |
| | | List<Dt_WheelsStock> WheelsList = BaseDal.QueryData(); //è·åå
¨é¨è½¦è½®ä¿¡æ¯ |
| | | |
| | | foreach (var item in WheelsList) |
| | | { |
| | | TimeSpan timeDifference = DateTime.Today - item.CreateDate.Date; |
| | | item.Wheels_DateDet = (int)timeDifference.TotalDays; |
| | | |
| | | if (item.Wheels_DateDet >= hour) |
| | | { |
| | | item.Wheels_Statue = 1; |
| | | } |
| | | else |
| | | { |
| | | item.Wheels_Statue = 0; |
| | | } |
| | | groupedData.Add(item); |
| | | } |
| | | |
| | | BaseDal.UpdateData(groupedData); |
| | | |
| | | return content.OK(); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | return content.Error(ex.Message); |
| | | throw; |
| | | } |
| | | } |
| | | } |
| | |
| | | using WIDESEA_Core.Const; |
| | | using WIDESEA_DTO.WMS; |
| | | using WIDESEA_IServices; |
| | | using WIDESEA_IStorageBasicRepository; |
| | | using WIDESEA_IStoragIntegrationServices; |
| | | using WIDESEA_Model.Models; |
| | | using WIDESEA_StorageBasicRepository; |
| | |
| | | private readonly IDt_InWheels_mes_htyRepository _InWheels_Mes_HtyRepository; |
| | | private readonly IDt_CacheInfoRepository _CacheInfoRepository; |
| | | private readonly IDt_OutWheels_htyRepository _OutWheels_HtyRepository; |
| | | private readonly IDt_OutZdp_htyRepository _Dt_OutZdp_htyRepository; |
| | | private readonly IDt_InZdp_mesRepository _InZdp_MesRepository; |
| | | private readonly IDt_InZdp_mes_htyRepository _InZdp_Mes_HtyRepository; |
| | | private readonly IDt_ZdpStockRepository _ZdpStockRepository; |
| | | private readonly IDt_ZdpStock_htyRepository _ZdpStock_HtyRepository; |
| | | |
| | | |
| | | public Dt_TaskService(IDt_TaskRepository BaseDal, |
| | | IUnitOfWorkManage unitOfWorkManage, |
| | |
| | | IDt_InZdp_mesRepository inZdp_MesRepository, |
| | | IDt_InZdp_mes_htyRepository inZdp_Mes_HtyRepository, |
| | | IDt_ZdpStockRepository zdpStockRepository, |
| | | IDt_ZdpStock_htyRepository dt_ZdpStock_HtyRepository) : base(BaseDal) |
| | | IDt_ZdpStock_htyRepository dt_ZdpStock_HtyRepository, |
| | | IDt_OutZdp_htyRepository dt_OutZdp_HtyRepository) : base(BaseDal) |
| | | |
| | | { |
| | | _unitOfWorkManage = unitOfWorkManage; |
| | |
| | | _InZdp_Mes_HtyRepository = inZdp_Mes_HtyRepository; |
| | | _ZdpStockRepository = zdpStockRepository; |
| | | _ZdpStock_HtyRepository = dt_ZdpStock_HtyRepository; |
| | | _Dt_OutZdp_htyRepository = dt_OutZdp_HtyRepository; |
| | | } |
| | | |
| | | #region å¤é¨æ¥å£æ¹æ³ |
| | |
| | | //var isTaskUpdated = await BaseDal.DeleteDataByIdAsync(task.TaskId); //å é¤ä»»å¡ |
| | | var isTaskAdd = await _task_HtyRepository.AddDataAsync(taskHty) > 0; //å å
¥åå²ä»»å¡ |
| | | var isStockHtyAdd = await _ZdpStock_HtyRepository.AddDataAsync(stockInfo_Hty); //å å
¥åå²åºå |
| | | |
| | | var isoutZDPHtyAdd = await _Dt_OutZdp_htyRepository.AddDataAsync(Outwheels_hty); //æ·»å 车轮åºåºä¿¡æ¯ |
| | | }); |
| | | |
| | | return content.OK("ä»»å¡å®ææå", task.Remark); |
| | |
| | | .editorconfig = .editorconfig |
| | | EndProjectSection |
| | | EndProject |
| | | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WIDESEA_StoragIntegrationServices", "WIDESEA_StoragIntegrationServices\WIDESEA_StoragIntegrationServices.csproj", "{55326F38-372A-4606-B7FB-8C01BBAEC4FC}" |
| | | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WIDESEA_StoragIntegrationServices", "WIDESEA_StoragIntegrationServices\WIDESEA_StoragIntegrationServices.csproj", "{55326F38-372A-4606-B7FB-8C01BBAEC4FC}" |
| | | EndProject |
| | | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WIDESEA_IStoragIntegrationServices", "WIDESEA_IStoragIntegrationServices\WIDESEA_IStoragIntegrationServices.csproj", "{94D572FA-810E-4897-B673-AF988FD4019E}" |
| | | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WIDESEA_IStoragIntegrationServices", "WIDESEA_IStoragIntegrationServices\WIDESEA_IStoragIntegrationServices.csproj", "{94D572FA-810E-4897-B673-AF988FD4019E}" |
| | | EndProject |
| | | Global |
| | | GlobalSection(SolutionConfigurationPlatforms) = preSolution |
| | |
| | | { |
| | | return Service.InventoryStatistics(); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æ´æ°åºåå
¥åºæ¶é´ |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | [HttpPost, AllowAnonymous, Route("UpdateInventoryStatue")] |
| | | public WebResponseContent UpdateInventoryStatue() |
| | | { |
| | | return Service.UpdateInventoryStatue(); |
| | | } |
| | | } |
| | |
| | | //"ConnectionString": "HTI6FB1H05Krd07mNm9yBCNhofW6edA5zLs9TY~MNthRYW3kn0qKbMIsGp~3yyPDF1YZUCPBQx8U0Jfk4PH~ajNFXVIwlH85M3F~v_qKYQ3CeAz3q1mLVDn8O5uWt1~3Ut2V3KRkEwYHvW2oMDN~QIDXPxDgXN0R2oTIhc9dNu7QNaLEknblqmHhjaNSSpERdDVZIgHnMKejU_SL49tralBkZmDNi0hmkbL~837j1NWe37u9fJKmv91QPb~16JsuI9uu0EvNZ06g6PuZfOSAeFH9GMMIZiketdcJG3tHelo=", |
| | | //"ConnectionString": "Data Source=192.168.5.251;Initial Catalog=WIDESEA_WMSDB_BBMain;User ID=sa;Password=P@ssw0rd;Integrated Security=False;Connect Timeout=30;Encrypt=False;TrustServerCertificate=False;ApplicationIntent=ReadWrite;MultiSubnetFailover=False", |
| | | //"ConnectionString": "Data Source=.;Initial Catalog=ZCLDY_WIDESEAWMS;User ID=sa;Password=123456;Integrated Security=False;Connect Timeout=30;Encrypt=False;TrustServerCertificate=False;ApplicationIntent=ReadWrite;MultiSubnetFailover=False", |
| | | "ConnectionString": "Data Source=.\\LIULEI;Initial Catalog=MX_LDY_WMS;User ID=sa;Password=123456;Integrated Security=False;Connect Timeout=30;Encrypt=False;TrustServerCertificate=False;ApplicationIntent=ReadWrite;MultiSubnetFailover=False", |
| | | //"ConnectionString": "Data Source=.\\LIULEI;Initial Catalog=MX_LDY_WMS;User ID=sa;Password=123456;Integrated Security=False;Connect Timeout=30;Encrypt=False;TrustServerCertificate=False;ApplicationIntent=ReadWrite;MultiSubnetFailover=False", |
| | | //"ConnectionString": "Data Source=192.168.20.251;Initial Catalog=WIDESEA_WMSDB;User ID=sa;Password=123456@gy;Integrated Security=False;Connect Timeout=30;Encrypt=False;TrustServerCertificate=False;ApplicationIntent=ReadWrite;MultiSubnetFailover=False", |
| | | //"ConnectionStringWCS": "Data Source=192.168.5.251;Initial Catalog=WIDESEAWCS_TEST;User ID=sa;Password=P@ssw0rd;Integrated Security=False;Connect Timeout=30;Encrypt=False;TrustServerCertificate=False;ApplicationIntent=ReadWrite;MultiSubnetFailover=False", |
| | | "ConnectionStringWCS": "Data Source=.;Initial Catalog=ZCLDY_WIDESEAWCS;User ID=sa;Password=123456;Integrated Security=False;Connect Timeout=30;Encrypt=False;TrustServerCertificate=False;ApplicationIntent=ReadWrite;MultiSubnetFailover=False", |