¶Ô±ÈÐÂÎļþ |
| | |
| | | /***************************************************************************************** |
| | | ** Author:jxx 2022 |
| | | ** QQ:283591387 |
| | | **宿´ææ¡£è§ï¼http://v2.volcore.xyz/document/api ã代ç çæé¡µé¢ViewGridã |
| | | **常ç¨ç¤ºä¾è§ï¼http://v2.volcore.xyz/document/vueDev |
| | | **åå°æä½è§ï¼http://v2.volcore.xyz/document/netCoreDev |
| | | *****************************************************************************************/ |
| | | //æ¤jsæä»¶æ¯ç¨æ¥èªå®ä¹æ©å±ä¸å¡ä»£ç ï¼å¯ä»¥æ©å±ä¸äºèªå®ä¹é¡µé¢æè
éæ°é
ç½®çæç代ç |
| | | |
| | | let extension = { |
| | | components: { |
| | | //æ¥è¯¢ç颿©å±ç»ä»¶ |
| | | gridHeader: '', |
| | | gridBody: '', |
| | | gridFooter: '', |
| | | //æ°å»ºãç¼è¾å¼¹åºæ¡æ©å±ç»ä»¶ |
| | | modelHeader: '', |
| | | modelBody: '', |
| | | modelFooter: '' |
| | | }, |
| | | tableAction: '', //æå®æå¼ 表çæé(è¿éå¡«å表å,é»è®¤ä¸ç¨å¡«å) |
| | | buttons: { view: [], box: [], detail: [] }, //æ©å±çæé® |
| | | methods: { |
| | | //ä¸é¢è¿äºæ¹æ³å¯ä»¥ä¿çä¹å¯ä»¥å é¤ |
| | | onInit() { //æ¡æ¶åå§åé
ç½®åï¼ |
| | | //示ä¾ï¼å¨æé®çæå颿·»å ä¸ä¸ªæé® |
| | | // this.buttons.unshift({ //ä¹å¯ä»¥ç¨pushæè
spliceæ¹æ³æ¥ä¿®æ¹buttonsæ°ç» |
| | | // name: 'æé®', //æé®åç§° |
| | | // icon: 'el-icon-document', //æé®å¾æ vue2çæ¬è§iviewææ¡£iconï¼vue3çæ¬è§element uiææ¡£icon(注æä¸æ¯element pulsææ¡£) |
| | | // type: 'primary', //æé®æ ·å¼vue2çæ¬è§iviewææ¡£buttonï¼vue3çæ¬è§element uiææ¡£button |
| | | // onClick: function () { |
| | | // this.$Message.success('ç¹å»äºæé®'); |
| | | // } |
| | | // }); |
| | | let OutsorcingBtn = this.buttons.find(r => r.name == "åºåºå¤å"); |
| | | if(null!=OutsorcingBtn){ |
| | | OutsorcingBtn.onClick = function (){ |
| | | let rows = this.$refs.table.getSelected(); |
| | | if (rows.length == 0) return this.$error("è¯·éæ©å·¥å!"); |
| | | let addkeys = rows.map(x => { |
| | | return x[this.table.key]; |
| | | }); |
| | | if (!addkeys || addkeys.Length == 0) return this.$error("æªè·åå°å·¥å!"); |
| | | this.$confirm("æ¯å¦ç¡®è®¤è¦åºåºå¤åï¼","æç¤º",{ |
| | | // iconClass:"el-icon-success",//el-icon-removeèªå®ä¹å¾æ æ ·å¼ |
| | | confirmButtonText:"确认",//确认æé®æåæ´æ¢ |
| | | cancelButtonText:"åæ¶",//åæ¶æé®æåæ´æ¢ |
| | | // cancelBtn:"åæ¶",//åæ¶æé®æåæ´æ¢ |
| | | showClose: true,//æ¯å¦æ¾ç¤ºå³ä¸è§å
³éæé® |
| | | type: "warning",//æç¤ºç±»å success:æå/info:ä¿¡æ¯/warning:è¦å/error:æ¥é |
| | | }).then(()=>{ |
| | | let params = { |
| | | MainData: null, |
| | | DetailData: null, |
| | | DelKeys: addkeys |
| | | } |
| | | this.http.post("/api/dt_mes_head/OutsorcingWorkOrder", params, "æ£å¨å¤çå·¥å....").then(x => { |
| | | if (!x.status) return this.$error(x.message); |
| | | this.$success("å¤çå·¥åæå!"); |
| | | this.refresh(); |
| | | }); |
| | | }) |
| | | |
| | | } |
| | | } |
| | | |
| | | //示ä¾ï¼è®¾ç½®ä¿®æ¹æ°å»ºãç¼è¾å¼¹åºæ¡å段æ ç¾çé¿åº¦ |
| | | // this.boxOptions.labelWidth = 150; |
| | | }, |
| | | onInited() { |
| | | //æ¡æ¶åå§åé
ç½®å |
| | | //妿è¦é
ç½®æç»è¡¨,卿¤æ¹æ³æä½ |
| | | //this.detailOptions.columns.forEach(column=>{ }); |
| | | }, |
| | | searchBefore(param) { |
| | | //ç颿¥è¯¢å,å¯ä»¥ç»param.wheresæ·»å æ¥è¯¢åæ° |
| | | //è¿åfalseï¼åä¸ä¼æ§è¡æ¥è¯¢ |
| | | return true; |
| | | }, |
| | | searchAfter(result) { |
| | | //æ¥è¯¢åï¼resultè¿åçæ¥è¯¢æ°æ®,å¯ä»¥å¨æ¾ç¤ºå°è¡¨æ ¼åå¤çè¡¨æ ¼çå¼ |
| | | return true; |
| | | }, |
| | | addBefore(formData) { |
| | | //æ°å»ºä¿ååformData为对象ï¼å
æ¬æç»è¡¨ï¼å¯ä»¥ç»ç»è¡¨å设置å¼ï¼èªå·±è¾åºçformDataçå¼ |
| | | return true; |
| | | }, |
| | | updateBefore(formData) { |
| | | //ç¼è¾ä¿ååformData为对象ï¼å
æ¬æç»è¡¨ãå é¤è¡çId |
| | | return true; |
| | | }, |
| | | rowClick({ row, column, event }) { |
| | | //æ¥è¯¢çé¢ç¹å»è¡äºä»¶ |
| | | // this.$refs.table.$refs.table.toggleRowSelection(row); //åå»è¡æ¶éä¸å½åè¡; |
| | | }, |
| | | modelOpenAfter(row) { |
| | | //ç¹å»ç¼è¾ãæ°å»ºæé®å¼¹åºæ¡åï¼å¯ä»¥å¨æ¤å¤åé»è¾ï¼å¦ï¼ä»åå°è·åæ°æ® |
| | | //(1)夿æ¯ç¼è¾è¿æ¯æ°å»ºæä½ï¼ this.currentAction=='Add'; |
| | | //(2)ç»å¼¹åºæ¡è®¾ç½®é»è®¤å¼ |
| | | //(3)this.editFormFields.åæ®µ='xxx'; |
| | | //妿éè¦ç»ä¸ææ¡è®¾ç½®é»è®¤å¼ï¼è¯·éåthis.editFormOptionsæ¾å°å段é
置对åºdata屿§çkeyå¼ |
| | | //ç䏿就æè¾åºçï¼console.log(this.editFormOptions) |
| | | } |
| | | } |
| | | }; |
| | | export default extension; |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /***************************************************************************************** |
| | | ** Author:jxx 2022 |
| | | ** QQ:283591387 |
| | | **宿´ææ¡£è§ï¼http://v2.volcore.xyz/document/api ã代ç çæé¡µé¢ViewGridã |
| | | **常ç¨ç¤ºä¾è§ï¼http://v2.volcore.xyz/document/vueDev |
| | | **åå°æä½è§ï¼http://v2.volcore.xyz/document/netCoreDev |
| | | *****************************************************************************************/ |
| | | //æ¤jsæä»¶æ¯ç¨æ¥èªå®ä¹æ©å±ä¸å¡ä»£ç ï¼å¯ä»¥æ©å±ä¸äºèªå®ä¹é¡µé¢æè
éæ°é
ç½®çæç代ç |
| | | |
| | | let extension = { |
| | | components: { |
| | | //æ¥è¯¢ç颿©å±ç»ä»¶ |
| | | gridHeader: '', |
| | | gridBody: '', |
| | | gridFooter: '', |
| | | //æ°å»ºãç¼è¾å¼¹åºæ¡æ©å±ç»ä»¶ |
| | | modelHeader: '', |
| | | modelBody: '', |
| | | modelFooter: '' |
| | | }, |
| | | tableAction: '', //æå®æå¼ 表çæé(è¿éå¡«å表å,é»è®¤ä¸ç¨å¡«å) |
| | | buttons: { view: [], box: [], detail: [] }, //æ©å±çæé® |
| | | methods: { |
| | | //ä¸é¢è¿äºæ¹æ³å¯ä»¥ä¿çä¹å¯ä»¥å é¤ |
| | | onInit() { //æ¡æ¶åå§åé
ç½®åï¼ |
| | | //示ä¾ï¼å¨æé®çæå颿·»å ä¸ä¸ªæé® |
| | | // this.buttons.unshift({ //ä¹å¯ä»¥ç¨pushæè
spliceæ¹æ³æ¥ä¿®æ¹buttonsæ°ç» |
| | | // name: 'æé®', //æé®åç§° |
| | | // icon: 'el-icon-document', //æé®å¾æ vue2çæ¬è§iviewææ¡£iconï¼vue3çæ¬è§element uiææ¡£icon(注æä¸æ¯element pulsææ¡£) |
| | | // type: 'primary', //æé®æ ·å¼vue2çæ¬è§iviewææ¡£buttonï¼vue3çæ¬è§element uiææ¡£button |
| | | // onClick: function () { |
| | | // this.$Message.success('ç¹å»äºæé®'); |
| | | // } |
| | | // }); |
| | | |
| | | //示ä¾ï¼è®¾ç½®ä¿®æ¹æ°å»ºãç¼è¾å¼¹åºæ¡å段æ ç¾çé¿åº¦ |
| | | // this.boxOptions.labelWidth = 150; |
| | | }, |
| | | onInited() { |
| | | //æ¡æ¶åå§åé
ç½®å |
| | | //妿è¦é
ç½®æç»è¡¨,卿¤æ¹æ³æä½ |
| | | //this.detailOptions.columns.forEach(column=>{ }); |
| | | }, |
| | | searchBefore(param) { |
| | | //ç颿¥è¯¢å,å¯ä»¥ç»param.wheresæ·»å æ¥è¯¢åæ° |
| | | //è¿åfalseï¼åä¸ä¼æ§è¡æ¥è¯¢ |
| | | return true; |
| | | }, |
| | | searchAfter(result) { |
| | | //æ¥è¯¢åï¼resultè¿åçæ¥è¯¢æ°æ®,å¯ä»¥å¨æ¾ç¤ºå°è¡¨æ ¼åå¤çè¡¨æ ¼çå¼ |
| | | return true; |
| | | }, |
| | | addBefore(formData) { |
| | | //æ°å»ºä¿ååformData为对象ï¼å
æ¬æç»è¡¨ï¼å¯ä»¥ç»ç»è¡¨å设置å¼ï¼èªå·±è¾åºçformDataçå¼ |
| | | return true; |
| | | }, |
| | | updateBefore(formData) { |
| | | //ç¼è¾ä¿ååformData为对象ï¼å
æ¬æç»è¡¨ãå é¤è¡çId |
| | | return true; |
| | | }, |
| | | rowClick({ row, column, event }) { |
| | | //æ¥è¯¢çé¢ç¹å»è¡äºä»¶ |
| | | // this.$refs.table.$refs.table.toggleRowSelection(row); //åå»è¡æ¶éä¸å½åè¡; |
| | | }, |
| | | modelOpenAfter(row) { |
| | | //ç¹å»ç¼è¾ãæ°å»ºæé®å¼¹åºæ¡åï¼å¯ä»¥å¨æ¤å¤åé»è¾ï¼å¦ï¼ä»åå°è·åæ°æ® |
| | | //(1)夿æ¯ç¼è¾è¿æ¯æ°å»ºæä½ï¼ this.currentAction=='Add'; |
| | | //(2)ç»å¼¹åºæ¡è®¾ç½®é»è®¤å¼ |
| | | //(3)this.editFormFields.åæ®µ='xxx'; |
| | | //妿éè¦ç»ä¸ææ¡è®¾ç½®é»è®¤å¼ï¼è¯·éåthis.editFormOptionsæ¾å°å段é
置对åºdata屿§çkeyå¼ |
| | | //ç䏿就æè¾åºçï¼console.log(this.editFormOptions) |
| | | } |
| | | } |
| | | }; |
| | | export default extension; |
| | |
| | | path: '/dt_management_time', |
| | | name: 'dt_management_time', |
| | | component: () => import('@/views/widesea_wcs/wcs/dt_management_time.vue') |
| | | } ,{ |
| | | path: '/VV_Workinfo', |
| | | name: 'VV_Workinfo', |
| | | component: () => import('@/views/widesea_wcs/tomes/VV_Workinfo.vue') |
| | | } ,{ |
| | | path: '/VV_Workinfo_hty', |
| | | name: 'VV_Workinfo_hty', |
| | | component: () => import('@/views/widesea_wcs/tomes/VV_Workinfo_hty.vue') |
| | | }] |
| | | |
| | | export default viewgird |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <!-- |
| | | *Authorï¼jxx |
| | | *Contactï¼283591387@qq.com |
| | | *代ç ç±æ¡æ¶çæ,任使´æ¹é½å¯è½å¯¼è´è¢«ä»£ç çæå¨è¦ç |
| | | *ä¸å¡è¯·å¨@/extension/widesea_wcs/tomes/VV_Workinfo.jsæ¤å¤ç¼å |
| | | --> |
| | | <template> |
| | | <view-grid ref="grid" |
| | | :columns="columns" |
| | | :detail="detail" |
| | | :editFormFields="editFormFields" |
| | | :editFormOptions="editFormOptions" |
| | | :searchFormFields="searchFormFields" |
| | | :searchFormOptions="searchFormOptions" |
| | | :table="table" |
| | | :extend="extend"> |
| | | </view-grid> |
| | | </template> |
| | | <script> |
| | | import extend from "@/extension/widesea_wcs/tomes/VV_Workinfo.js"; |
| | | import { ref, defineComponent } from "vue"; |
| | | export default defineComponent({ |
| | | setup() { |
| | | const table = ref({ |
| | | key: 'mes_id', |
| | | footer: "Foots", |
| | | cnName: 'å·¥åä¿¡æ¯', |
| | | name: 'tomes/VV_Workinfo', |
| | | url: "/VV_Workinfo/", |
| | | sortName: "workOrder" |
| | | }); |
| | | const editFormFields = ref({"stackNoRange":""}); |
| | | const editFormOptions = ref([[{"title":"æå
æ°é","field":"stackNoRange","type":"number"}]]); |
| | | const searchFormFields = ref({"workOrder":"","jobID":"","drawingNo":"","productName":"","productDesc":"","processCode":"","heatID":"","billetID":"","SN":""}); |
| | | const searchFormOptions = ref([[{"title":"å¾å·","field":"drawingNo","type":"like"},{"title":"å·¥ä½ä»¤å·","field":"workOrder","type":"like"},{"title":"å·¥åç¼å·","field":"jobID","type":"like"}],[{"title":"产ååç§°","field":"productName","type":"like"},{"title":"ç代å·","field":"heatID","type":"like"},{"title":"é¢å¯å·","field":"billetID","type":"like"}],[{"title":"车轮SNå·","field":"SN","type":"like"},{"dataKey":"WorkTypes","data":[],"title":"å·¥åç±»å","field":"processCode","type":"select"},{"title":"å建æ¶é´","field":"CreateTime","type":"date"}]]); |
| | | const columns = ref([{field:'workOrder',title:'å·¥ä½ä»¤å·',type:'string',sort:true,width:120,align:'left',sort:true}, |
| | | {field:'jobID',title:'å·¥åç¼å·',type:'string',sort:true,width:120,align:'left'}, |
| | | {field:'materialCode',title:'ç©æç¼ç ',hidden:true,type:'string',width:110,align:'left'}, |
| | | {field:'drawingNo',title:'å¾å·',type:'string',sort:true,width:110,align:'left'}, |
| | | {field:'productName',title:'产ååç§°',type:'string',width:120,align:'left'}, |
| | | {field:'heatID',title:'ç代å·',type:'string',sort:true,width:110,align:'left'}, |
| | | {field:'billetID',title:'é¢å¯å·',type:'int',sort:true,width:90,align:'left'}, |
| | | {field:'SN',title:'车轮SNå·',type:'string',sort:true,width:120,align:'left'}, |
| | | {field:'processCode',title:'å·¥åç±»å',type:'string',bind:{ key:'WorkTypes',data:[]},width:110,align:'left'}, |
| | | {field:'area',title:'æå®åºåº',type:'string',width:110,align:'left'}, |
| | | {field:'drawingNoVer',title:'ææ¯ç¶æ',type:'string',sort:true,width:110,align:'left'}, |
| | | {field:'quantity',title:'è®¡åæ°é',type:'int',width:80,hidden:true,require:true,align:'left'}, |
| | | {field:'typeID',title:'è½®å代ç ',type:'string',width:110,hidden:true,align:'left'}, |
| | | {field:'stackNoRange',title:'æå
æ°é',type:'int',sort:true,width:110,align:'left'}, |
| | | {field:'skip_op_1',title:'è§è§æ£æµ1',bind:{ key:'skip_op_Status',data:[]},type:'bool',width:110,align:'left'}, |
| | | {field:'skip_op_2',title:'è§è§æ£æµ2',bind:{ key:'skip_op_Status',data:[]},type:'bool',width:110,align:'left'}, |
| | | {field:'skip_op_3',title:'å·é²éæ¶²',bind:{ key:'skip_op_Status',data:[]},type:'bool',width:110,align:'left'}, |
| | | {field:'maxDiameterDiff',title:'è½®å¾åå·®',type:'decimal',width:110,hidden:true,align:'left'}, |
| | | {field:'expectedStartTime',title:'计åå¼å§æ¶é´',type:'datetime',sort:true,width:150,align:'left',sort:true}, |
| | | {field:'expectedFinishTime',title:'计å宿æ¶é´',type:'datetime',sort:true,width:150,align:'left',sort:true}, |
| | | {field:'CreateTime',title:'å建æ¶é´',type:'datetime',sort:true,width:150,align:'left',sort:true}, |
| | | {field:'creator',title:'å建è
',type:'string',width:120,align:'left'}, |
| | | {field:'finishNum',title:'宿æ°é',type:'int',sort:true,width:80,hidden:true,align:'left'}, |
| | | {field:'heatBatchID',title:'çå¤çæ¹æ¬¡',hidden:true,type:'string',width:110,align:'left'}, |
| | | {field:'Status',title:'å·¥åç¶æ',type:'string',width:110,align:'left'}, |
| | | {field:'FinishTime',title:'宿æ¶é´',type:'datetime',sort:true,width:150,align:'left',sort:true}, |
| | | {field:'mes_id',title:'å·¥å头表ID',type:'guid',width:110,hidden:true,require:true,align:'left'}, |
| | | {field:'productDesc',title:'产åæè¿°',type:'string',width:220,align:'left'} |
| | | ]); |
| | | const detail = ref({ |
| | | cnName: "#detailCnName", |
| | | table: "#detailTable", |
| | | columns: [], |
| | | sortName: "", |
| | | key: "" |
| | | }); |
| | | return { |
| | | table, |
| | | extend, |
| | | editFormFields, |
| | | editFormOptions, |
| | | searchFormFields, |
| | | searchFormOptions, |
| | | columns, |
| | | detail, |
| | | }; |
| | | }, |
| | | }); |
| | | </script> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <!-- |
| | | *Authorï¼jxx |
| | | *Contactï¼283591387@qq.com |
| | | *代ç ç±æ¡æ¶çæ,任使´æ¹é½å¯è½å¯¼è´è¢«ä»£ç çæå¨è¦ç |
| | | *ä¸å¡è¯·å¨@/extension/widesea_wcs/tomes/VV_Workinfo_hty.jsæ¤å¤ç¼å |
| | | --> |
| | | <template> |
| | | <view-grid ref="grid" |
| | | :columns="columns" |
| | | :detail="detail" |
| | | :editFormFields="editFormFields" |
| | | :editFormOptions="editFormOptions" |
| | | :searchFormFields="searchFormFields" |
| | | :searchFormOptions="searchFormOptions" |
| | | :table="table" |
| | | :extend="extend"> |
| | | </view-grid> |
| | | </template> |
| | | <script> |
| | | import extend from "@/extension/widesea_wcs/tomes/VV_Workinfo_hty.js"; |
| | | import { ref, defineComponent } from "vue"; |
| | | export default defineComponent({ |
| | | setup() { |
| | | const table = ref({ |
| | | key: 'mes_id', |
| | | footer: "Foots", |
| | | cnName: 'å·¥ååå²ä¿¡æ¯', |
| | | name: 'tomes/VV_Workinfo_hty', |
| | | url: "/VV_Workinfo_hty/", |
| | | sortName: "FinishTime" |
| | | }); |
| | | const editFormFields = ref({}); |
| | | const editFormOptions = ref([]); |
| | | const searchFormFields = ref({"workOrder":"","jobID":"","drawingNo":"","productName":"","heatID":"","billetID":"","SN":"","processCode":"","CreateTime":"","FinishTime":"","operatetype":"","productDesc":""}); |
| | | const searchFormOptions = ref([[{"title":"å¾å·","field":"drawingNo","type":"like"},{"title":"å·¥ä½ä»¤å·","field":"workOrder","type":"like"},{"title":"å·¥åç¼å·","field":"jobID","type":"like"}],[{"title":"产ååç§°","field":"productName","type":"like"},{"title":"ç代å·","field":"heatID","type":"like"},{"title":"é¢å¯å·","field":"billetID","type":"like"}],[{"title":"车轮SNå·","field":"SN","type":"like"},{"dataKey":"WorkTypes","data":[],"title":"å·¥åç±»å","field":"processCode","type":"select"},{"dataKey":"WorkOperateTypes","data":[],"title":"æä½ç±»å","field":"operatetype","type":"select"}],[{"title":"å建æ¶é´","field":"CreateTime","type":"date"},{"title":"宿æ¶é´","field":"FinishTime","type":"date"},{"title":"产åæè¿°","field":"productDesc","type":"like"}]]); |
| | | const columns = ref([{field:'mes_id',title:'å·¥å头表ID',type:'guid',width:110,require:true,align:'left',sort:true}, |
| | | {field:'workOrder',title:'å·¥ä½ä»¤å·',type:'string',width:110,align:'left'}, |
| | | {field:'jobID',title:'å·¥åç¼å·',type:'string',width:110,align:'left'}, |
| | | {field:'materialCode',title:'ç©æç¼ç ',type:'string',width:110,align:'left'}, |
| | | {field:'drawingNo',title:'å¾å·',type:'string',width:110,align:'left'}, |
| | | {field:'productName',title:'产ååç§°',type:'string',width:110,align:'left'}, |
| | | {field:'heatID',title:'ç代å·',type:'string',width:110,align:'left'}, |
| | | {field:'billetID',title:'é¢å¯å·',type:'int',width:110,align:'left'}, |
| | | {field:'SN',title:'车轮SNå·',type:'string',width:110,align:'left'}, |
| | | {field:'processCode',title:'å·¥åç±»å',type:'string',bind:{ key:'WorkTypes',data:[]},width:110,align:'left'}, |
| | | {field:'area',title:'æå®åºåº',type:'string',width:110,align:'left'}, |
| | | {field:'drawingNoVer',title:'ææ¯ç¶æ',type:'string',width:110,align:'left'}, |
| | | {field:'quantity',title:'è®¡åæ°é',type:'int',width:110,require:true,align:'left'}, |
| | | {field:'typeID',title:'è½®å代ç ',type:'string',width:110,align:'left'}, |
| | | {field:'stackNoRange',title:'æå
æ°é',type:'int',width:110,align:'left'}, |
| | | {field:'skip_op_1',title:'è§è§æ£æµ1',type:'bool',bind:{ key:'skip_op_Status',data:[]},width:110,align:'left'}, |
| | | {field:'skip_op_2',title:'è§è§æ£æµ2',type:'bool',bind:{ key:'skip_op_Status',data:[]},width:110,align:'left'}, |
| | | {field:'skip_op_3',title:'å·é²éæ¶²',type:'bool',bind:{ key:'skip_op_Status',data:[]},width:110,align:'left'}, |
| | | {field:'maxDiameterDiff',title:'è½®å¾åå·®',type:'decimal',width:110,align:'left'}, |
| | | {field:'expectedStartTime',title:'计åå¼å§æ¶é´',type:'datetime',width:150,align:'left',sort:true}, |
| | | {field:'expectedFinishTime',title:'计å宿æ¶é´',type:'datetime',width:150,align:'left',sort:true}, |
| | | {field:'CreateTime',title:'å建æ¶é´',type:'datetime',sort:true,width:150,align:'left',sort:true}, |
| | | {field:'creator',title:'å建è
',type:'string',width:100,align:'left'}, |
| | | {field:'finishNum',title:'宿æ°é',type:'int',width:110,align:'left'}, |
| | | {field:'heatBatchID',title:'çå¤çæ¹æ¬¡',type:'string',width:110,align:'left'}, |
| | | {field:'Status',title:'å·¥åç¶æ',type:'string',width:110,align:'left'}, |
| | | {field:'FinishTime',title:'宿æ¶é´',type:'datetime',sort:true,width:150,align:'left',sort:true}, |
| | | {field:'operatetype',title:'æä½ç±»å',type:'string',bind:{ key:'WorkOperateTypes',data:[]},width:110,align:'left'}, |
| | | {field:'compeletor',title:'æä½è
',type:'string',width:110,align:'left'}, |
| | | {field:'productDesc',title:'产åæè¿°',type:'string',width:180,align:'left'}]); |
| | | const detail = ref({ |
| | | cnName: "#detailCnName", |
| | | table: "#detailTable", |
| | | columns: [], |
| | | sortName: "", |
| | | key: "" |
| | | }); |
| | | return { |
| | | table, |
| | | extend, |
| | | editFormFields, |
| | | editFormOptions, |
| | | searchFormFields, |
| | | searchFormOptions, |
| | | columns, |
| | | detail, |
| | | }; |
| | | }, |
| | | }); |
| | | </script> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | *代ç ç±æ¡æ¶çæ,任使´æ¹é½å¯è½å¯¼è´è¢«ä»£ç çæå¨è¦ç |
| | | *å¦ææ°æ®åºå段åçååï¼è¯·å¨ä»£ç çå¨éæ°çææ¤Model |
| | | */ |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.ComponentModel.DataAnnotations; |
| | | using System.ComponentModel.DataAnnotations.Schema; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using WIDESEA_Entity.SystemModels; |
| | | |
| | | namespace WIDESEA_Entity.DomainModels |
| | | { |
| | | [Entity(TableCnName = "å·¥åä¿¡æ¯",TableName = "VV_Workinfo")] |
| | | public partial class VV_Workinfo:BaseEntity |
| | | { |
| | | /// <summary> |
| | | ///å·¥ä½ä»¤å· |
| | | /// </summary> |
| | | [Display(Name ="å·¥ä½ä»¤å·")] |
| | | [MaxLength(50)] |
| | | [Column(TypeName="nvarchar(50)")] |
| | | public string workOrder { get; set; } |
| | | |
| | | /// <summary> |
| | | ///å·¥åç¼å· |
| | | /// </summary> |
| | | [Display(Name ="å·¥åç¼å·")] |
| | | [MaxLength(40)] |
| | | [Column(TypeName="nvarchar(40)")] |
| | | public string jobID { get; set; } |
| | | |
| | | /// <summary> |
| | | ///ç©æç¼ç |
| | | /// </summary> |
| | | [Display(Name ="ç©æç¼ç ")] |
| | | [MaxLength(20)] |
| | | [Column(TypeName="nvarchar(20)")] |
| | | public string materialCode { get; set; } |
| | | |
| | | /// <summary> |
| | | ///å¾å· |
| | | /// </summary> |
| | | [Display(Name ="å¾å·")] |
| | | [MaxLength(20)] |
| | | [Column(TypeName="nvarchar(20)")] |
| | | public string drawingNo { get; set; } |
| | | |
| | | /// <summary> |
| | | ///ææ¯ç¶æ |
| | | /// </summary> |
| | | [Display(Name ="ææ¯ç¶æ")] |
| | | [MaxLength(10)] |
| | | [Column(TypeName="nvarchar(10)")] |
| | | public string drawingNoVer { get; set; } |
| | | |
| | | /// <summary> |
| | | ///产ååç§° |
| | | /// </summary> |
| | | [Display(Name ="产ååç§°")] |
| | | [MaxLength(40)] |
| | | [Column(TypeName="nvarchar(40)")] |
| | | public string productName { get; set; } |
| | | |
| | | /// <summary> |
| | | ///产åæè¿° |
| | | /// </summary> |
| | | [Display(Name ="产åæè¿°")] |
| | | [MaxLength(200)] |
| | | [Column(TypeName="nvarchar(200)")] |
| | | public string productDesc { get; set; } |
| | | |
| | | /// <summary> |
| | | ///è®¡åæ°é |
| | | /// </summary> |
| | | [Display(Name ="è®¡åæ°é")] |
| | | [Column(TypeName="int")] |
| | | //[Required(AllowEmptyStrings=false)] |
| | | public int quantity { get; set; } |
| | | |
| | | /// <summary> |
| | | ///è½®å代ç |
| | | /// </summary> |
| | | [Display(Name ="è½®å代ç ")] |
| | | [MaxLength(20)] |
| | | [Column(TypeName="nvarchar(20)")] |
| | | public string typeID { get; set; } |
| | | |
| | | /// <summary> |
| | | ///æå
æ°é |
| | | /// </summary> |
| | | [Display(Name ="æå
æ°é")] |
| | | [Column(TypeName="int")] |
| | | [Editable(true)] |
| | | public int? stackNoRange { get; set; } |
| | | |
| | | /// <summary> |
| | | ///è½®å¾åå·® |
| | | /// </summary> |
| | | [Display(Name ="è½®å¾åå·®")] |
| | | [DisplayFormat(DataFormatString="18,2")] |
| | | [Column(TypeName="decimal")] |
| | | public decimal? maxDiameterDiff { get; set; } |
| | | |
| | | /// <summary> |
| | | ///计åå¼å§æ¶é´ |
| | | /// </summary> |
| | | [Display(Name ="计åå¼å§æ¶é´")] |
| | | [Column(TypeName="datetime")] |
| | | public DateTime? expectedStartTime { get; set; } |
| | | |
| | | /// <summary> |
| | | ///计å宿æ¶é´ |
| | | /// </summary> |
| | | [Display(Name ="计å宿æ¶é´")] |
| | | [Column(TypeName="datetime")] |
| | | public DateTime? expectedFinishTime { get; set; } |
| | | |
| | | /// <summary> |
| | | ///å建æ¶é´ |
| | | /// </summary> |
| | | [Display(Name ="å建æ¶é´")] |
| | | [Column(TypeName="datetime")] |
| | | public DateTime? CreateTime { get; set; } |
| | | |
| | | /// <summary> |
| | | ///å建è
|
| | | /// </summary> |
| | | [Display(Name ="å建è
")] |
| | | [MaxLength(40)] |
| | | [Column(TypeName="nvarchar(40)")] |
| | | public string creator { get; set; } |
| | | |
| | | /// <summary> |
| | | ///å·¥åç±»å |
| | | /// </summary> |
| | | [Display(Name ="å·¥åç±»å")] |
| | | [MaxLength(20)] |
| | | [Column(TypeName="nvarchar(20)")] |
| | | public string processCode { get; set; } |
| | | |
| | | /// <summary> |
| | | ///æå®åºåº |
| | | /// </summary> |
| | | [Display(Name ="æå®åºåº")] |
| | | [MaxLength(15)] |
| | | [Column(TypeName="nvarchar(15)")] |
| | | public string area { get; set; } |
| | | |
| | | /// <summary> |
| | | ///宿æ°é |
| | | /// </summary> |
| | | [Display(Name ="宿æ°é")] |
| | | [Column(TypeName="int")] |
| | | public int? finishNum { get; set; } |
| | | |
| | | /// <summary> |
| | | ///è§è§æ£æµ1 |
| | | /// </summary> |
| | | [Display(Name ="è§è§æ£æµ1")] |
| | | [Column(TypeName="bit")] |
| | | public bool? skip_op_1 { get; set; } |
| | | |
| | | /// <summary> |
| | | ///è§è§æ£æµ2 |
| | | /// </summary> |
| | | [Display(Name ="è§è§æ£æµ2")] |
| | | [Column(TypeName="bit")] |
| | | public bool? skip_op_2 { get; set; } |
| | | |
| | | /// <summary> |
| | | ///å·é²éæ¶² |
| | | /// </summary> |
| | | [Display(Name ="å·é²éæ¶²")] |
| | | [Column(TypeName="bit")] |
| | | public bool? skip_op_3 { get; set; } |
| | | |
| | | /// <summary> |
| | | ///çä»£å· |
| | | /// </summary> |
| | | [Display(Name ="ç代å·")] |
| | | [MaxLength(20)] |
| | | [Column(TypeName="nvarchar(20)")] |
| | | public string heatID { get; set; } |
| | | |
| | | /// <summary> |
| | | ///é¢å¯å· |
| | | /// </summary> |
| | | [Display(Name ="é¢å¯å·")] |
| | | [Column(TypeName="int")] |
| | | public int? billetID { get; set; } |
| | | |
| | | /// <summary> |
| | | ///车轮SNå· |
| | | /// </summary> |
| | | [Display(Name ="车轮SNå·")] |
| | | [MaxLength(50)] |
| | | [Column(TypeName="nvarchar(50)")] |
| | | public string SN { get; set; } |
| | | |
| | | /// <summary> |
| | | ///çå¤çæ¹æ¬¡ |
| | | /// </summary> |
| | | [Display(Name ="çå¤çæ¹æ¬¡")] |
| | | [MaxLength(30)] |
| | | [Column(TypeName="nvarchar(30)")] |
| | | public string heatBatchID { get; set; } |
| | | |
| | | /// <summary> |
| | | ///å·¥åç¶æ |
| | | /// </summary> |
| | | [Display(Name ="å·¥åç¶æ")] |
| | | [MaxLength(20)] |
| | | [Column(TypeName="nvarchar(20)")] |
| | | public string Status { get; set; } |
| | | |
| | | /// <summary> |
| | | ///宿æ¶é´ |
| | | /// </summary> |
| | | [Display(Name ="宿æ¶é´")] |
| | | [Column(TypeName="datetime")] |
| | | public DateTime? FinishTime { get; set; } |
| | | |
| | | /// <summary> |
| | | ///å·¥å头表ID |
| | | /// </summary> |
| | | [Key] |
| | | [Display(Name ="å·¥å头表ID")] |
| | | [Column(TypeName="uniqueidentifier")] |
| | | [Required(AllowEmptyStrings=false)] |
| | | public Guid mes_id { get; set; } |
| | | |
| | | |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | *代ç ç±æ¡æ¶çæ,任使´æ¹é½å¯è½å¯¼è´è¢«ä»£ç çæå¨è¦ç |
| | | *å¦ææ°æ®åºå段åçååï¼è¯·å¨ä»£ç çå¨éæ°çææ¤Model |
| | | */ |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.ComponentModel.DataAnnotations; |
| | | using System.ComponentModel.DataAnnotations.Schema; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using WIDESEA_Entity.SystemModels; |
| | | |
| | | namespace WIDESEA_Entity.DomainModels |
| | | { |
| | | [Entity(TableCnName = "å·¥ååå²ä¿¡æ¯", TableName = "VV_Workinfo_hty")] |
| | | public partial class VV_Workinfo_hty : BaseEntity |
| | | { |
| | | /// <summary> |
| | | ///å·¥å头表ID |
| | | /// </summary> |
| | | [Key] |
| | | [Display(Name = "å·¥å头表ID")] |
| | | [Column(TypeName = "uniqueidentifier")] |
| | | [Editable(true)] |
| | | [Required(AllowEmptyStrings = false)] |
| | | public Guid mes_id { get; set; } |
| | | |
| | | /// <summary> |
| | | ///å·¥ä½ä»¤å· |
| | | /// </summary> |
| | | [Display(Name = "å·¥ä½ä»¤å·")] |
| | | [MaxLength(50)] |
| | | [Column(TypeName = "nvarchar(50)")] |
| | | [Editable(true)] |
| | | public string workOrder { get; set; } |
| | | |
| | | /// <summary> |
| | | ///å·¥åç¼å· |
| | | /// </summary> |
| | | [Display(Name = "å·¥åç¼å·")] |
| | | [MaxLength(40)] |
| | | [Column(TypeName = "nvarchar(40)")] |
| | | [Editable(true)] |
| | | public string jobID { get; set; } |
| | | |
| | | /// <summary> |
| | | ///ç©æç¼ç |
| | | /// </summary> |
| | | [Display(Name = "ç©æç¼ç ")] |
| | | [MaxLength(20)] |
| | | [Column(TypeName = "nvarchar(20)")] |
| | | [Editable(true)] |
| | | public string materialCode { get; set; } |
| | | |
| | | /// <summary> |
| | | ///å¾å· |
| | | /// </summary> |
| | | [Display(Name = "å¾å·")] |
| | | [MaxLength(20)] |
| | | [Column(TypeName = "nvarchar(20)")] |
| | | [Editable(true)] |
| | | public string drawingNo { get; set; } |
| | | |
| | | /// <summary> |
| | | ///产ååç§° |
| | | /// </summary> |
| | | [Display(Name = "产ååç§°")] |
| | | [MaxLength(40)] |
| | | [Column(TypeName = "nvarchar(40)")] |
| | | [Editable(true)] |
| | | public string productName { get; set; } |
| | | |
| | | /// <summary> |
| | | ///çä»£å· |
| | | /// </summary> |
| | | [Display(Name = "ç代å·")] |
| | | [MaxLength(20)] |
| | | [Column(TypeName = "nvarchar(20)")] |
| | | [Editable(true)] |
| | | public string heatID { get; set; } |
| | | |
| | | /// <summary> |
| | | ///é¢å¯å· |
| | | /// </summary> |
| | | [Display(Name = "é¢å¯å·")] |
| | | [Column(TypeName = "int")] |
| | | [Editable(true)] |
| | | public int? billetID { get; set; } |
| | | |
| | | /// <summary> |
| | | ///车轮SNå· |
| | | /// </summary> |
| | | [Display(Name = "车轮SNå·")] |
| | | [MaxLength(50)] |
| | | [Column(TypeName = "nvarchar(50)")] |
| | | [Editable(true)] |
| | | public string SN { get; set; } |
| | | |
| | | /// <summary> |
| | | ///å·¥åç±»å |
| | | /// </summary> |
| | | [Display(Name = "å·¥åç±»å")] |
| | | [MaxLength(20)] |
| | | [Column(TypeName = "nvarchar(20)")] |
| | | [Editable(true)] |
| | | public string processCode { get; set; } |
| | | |
| | | /// <summary> |
| | | ///æå®åºåº |
| | | /// </summary> |
| | | [Display(Name = "æå®åºåº")] |
| | | [MaxLength(15)] |
| | | [Column(TypeName = "nvarchar(15)")] |
| | | [Editable(true)] |
| | | public string area { get; set; } |
| | | |
| | | /// <summary> |
| | | ///ææ¯ç¶æ |
| | | /// </summary> |
| | | [Display(Name = "ææ¯ç¶æ")] |
| | | [MaxLength(10)] |
| | | [Column(TypeName = "nvarchar(10)")] |
| | | [Editable(true)] |
| | | public string drawingNoVer { get; set; } |
| | | |
| | | /// <summary> |
| | | ///è®¡åæ°é |
| | | /// </summary> |
| | | [Display(Name = "è®¡åæ°é")] |
| | | [Column(TypeName = "int")] |
| | | [Editable(true)] |
| | | public int quantity { get; set; } |
| | | |
| | | /// <summary> |
| | | ///è½®å代ç |
| | | /// </summary> |
| | | [Display(Name = "è½®å代ç ")] |
| | | [MaxLength(20)] |
| | | [Column(TypeName = "nvarchar(20)")] |
| | | [Editable(true)] |
| | | public string typeID { get; set; } |
| | | |
| | | /// <summary> |
| | | ///æå
æ°é |
| | | /// </summary> |
| | | [Display(Name = "æå
æ°é")] |
| | | [Column(TypeName = "int")] |
| | | [Editable(true)] |
| | | public int? stackNoRange { get; set; } |
| | | |
| | | /// <summary> |
| | | ///è§è§æ£æµ1 |
| | | /// </summary> |
| | | [Display(Name = "è§è§æ£æµ1")] |
| | | [Column(TypeName = "bit")] |
| | | [Editable(true)] |
| | | public bool? skip_op_1 { get; set; } |
| | | |
| | | /// <summary> |
| | | ///è§è§æ£æµ2 |
| | | /// </summary> |
| | | [Display(Name = "è§è§æ£æµ2")] |
| | | [Column(TypeName = "bit")] |
| | | [Editable(true)] |
| | | public bool? skip_op_2 { get; set; } |
| | | |
| | | /// <summary> |
| | | ///å·é²éæ¶² |
| | | /// </summary> |
| | | [Display(Name = "å·é²éæ¶²")] |
| | | [Column(TypeName = "bit")] |
| | | [Editable(true)] |
| | | public bool? skip_op_3 { get; set; } |
| | | |
| | | /// <summary> |
| | | ///è½®å¾åå·® |
| | | /// </summary> |
| | | [Display(Name = "è½®å¾åå·®")] |
| | | [DisplayFormat(DataFormatString = "18,2")] |
| | | [Column(TypeName = "decimal")] |
| | | [Editable(true)] |
| | | public decimal? maxDiameterDiff { get; set; } |
| | | |
| | | /// <summary> |
| | | ///计åå¼å§æ¶é´ |
| | | /// </summary> |
| | | [Display(Name = "计åå¼å§æ¶é´")] |
| | | [Column(TypeName = "datetime")] |
| | | [Editable(true)] |
| | | public DateTime? expectedStartTime { get; set; } |
| | | |
| | | /// <summary> |
| | | ///计å宿æ¶é´ |
| | | /// </summary> |
| | | [Display(Name = "计å宿æ¶é´")] |
| | | [Column(TypeName = "datetime")] |
| | | [Editable(true)] |
| | | public DateTime? expectedFinishTime { get; set; } |
| | | |
| | | /// <summary> |
| | | ///å建æ¶é´ |
| | | /// </summary> |
| | | [Display(Name = "å建æ¶é´")] |
| | | [Column(TypeName = "datetime")] |
| | | [Editable(true)] |
| | | public DateTime? CreateTime { get; set; } |
| | | |
| | | /// <summary> |
| | | ///å建è
|
| | | /// </summary> |
| | | [Display(Name = "å建è
")] |
| | | [MaxLength(40)] |
| | | [Column(TypeName = "nvarchar(40)")] |
| | | [Editable(true)] |
| | | public string creator { get; set; } |
| | | |
| | | /// <summary> |
| | | ///宿æ°é |
| | | /// </summary> |
| | | [Display(Name = "宿æ°é")] |
| | | [Column(TypeName = "int")] |
| | | [Editable(true)] |
| | | public int? finishNum { get; set; } |
| | | |
| | | /// <summary> |
| | | ///çå¤çæ¹æ¬¡ |
| | | /// </summary> |
| | | [Display(Name = "çå¤çæ¹æ¬¡")] |
| | | [MaxLength(30)] |
| | | [Column(TypeName = "nvarchar(30)")] |
| | | [Editable(true)] |
| | | public string heatBatchID { get; set; } |
| | | |
| | | /// <summary> |
| | | ///å·¥åç¶æ |
| | | /// </summary> |
| | | [Display(Name = "å·¥åç¶æ")] |
| | | [MaxLength(20)] |
| | | [Column(TypeName = "nvarchar(20)")] |
| | | [Editable(true)] |
| | | public string Status { get; set; } |
| | | |
| | | /// <summary> |
| | | ///宿æ¶é´ |
| | | /// </summary> |
| | | [Display(Name = "宿æ¶é´")] |
| | | [Column(TypeName = "datetime")] |
| | | [Editable(true)] |
| | | public DateTime? FinishTime { get; set; } |
| | | |
| | | /// <summary> |
| | | ///æä½ç±»å |
| | | /// </summary> |
| | | [Display(Name = "æä½ç±»å")] |
| | | [MaxLength(10)] |
| | | [Column(TypeName = "nvarchar(10)")] |
| | | [Editable(true)] |
| | | public string operatetype { get; set; } |
| | | |
| | | /// <summary> |
| | | ///æä½è
|
| | | /// </summary> |
| | | [Display(Name = "æä½è
")] |
| | | [MaxLength(20)] |
| | | [Column(TypeName = "nvarchar(20)")] |
| | | [Editable(true)] |
| | | public string compeletor { get; set; } |
| | | |
| | | /// <summary> |
| | | ///产åæè¿° |
| | | /// </summary> |
| | | [Display(Name = "产åæè¿°")] |
| | | [MaxLength(200)] |
| | | [Column(TypeName = "nvarchar(200)")] |
| | | [Editable(true)] |
| | | public string productDesc { get; set; } |
| | | |
| | | |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | *代ç ç±æ¡æ¶çæ,任使´æ¹é½å¯è½å¯¼è´è¢«ä»£ç çæå¨è¦ç |
| | | *å¦ææ°æ®åºå段åçååï¼è¯·å¨ä»£ç çå¨éæ°çææ¤Model |
| | | */ |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.ComponentModel.DataAnnotations; |
| | | using System.ComponentModel.DataAnnotations.Schema; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using WIDESEA_Entity.SystemModels; |
| | | |
| | | namespace WIDESEA_Entity.DomainModels |
| | | { |
| | | |
| | | public partial class VV_Workinfo |
| | | { |
| | | //æ¤å¤é
ç½®åæ®µ(åæ®µé
ç½®è§æ¤modelçå¦ä¸ä¸ªpartial),å¦æè¡¨ä¸æ²¡ææ¤å段请å ä¸ [NotMapped]屿§ï¼å¦åä¼å¼å¸¸ |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | *代ç ç±æ¡æ¶çæ,任使´æ¹é½å¯è½å¯¼è´è¢«ä»£ç çæå¨è¦ç |
| | | *å¦ææ°æ®åºå段åçååï¼è¯·å¨ä»£ç çå¨éæ°çææ¤Model |
| | | */ |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.ComponentModel.DataAnnotations; |
| | | using System.ComponentModel.DataAnnotations.Schema; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using WIDESEA_Entity.SystemModels; |
| | | |
| | | namespace WIDESEA_Entity.DomainModels |
| | | { |
| | | |
| | | public partial class VV_Workinfo_hty |
| | | { |
| | | //æ¤å¤é
ç½®åæ®µ(åæ®µé
ç½®è§æ¤modelçå¦ä¸ä¸ªpartial),å¦æè¡¨ä¸æ²¡ææ¤å段请å ä¸ [NotMapped]屿§ï¼å¦åä¼å¼å¸¸ |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | using WIDESEA_Entity.MappingConfiguration; |
| | | using WIDESEA_Entity.DomainModels; |
| | | using Microsoft.EntityFrameworkCore.Metadata.Builders; |
| | | |
| | | namespace WIDESEA_Entity.MappingConfiguration |
| | | { |
| | | public class VV_WorkinfoMapConfig : EntityMappingConfiguration<VV_Workinfo> |
| | | { |
| | | public override void Map(EntityTypeBuilder<VV_Workinfo> |
| | | builderTable) |
| | | { |
| | | //b.Property(x => x.StorageName).HasMaxLength(45); |
| | | } |
| | | } |
| | | } |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | using WIDESEA_Entity.MappingConfiguration; |
| | | using WIDESEA_Entity.DomainModels; |
| | | using Microsoft.EntityFrameworkCore.Metadata.Builders; |
| | | |
| | | namespace WIDESEA_Entity.MappingConfiguration |
| | | { |
| | | public class VV_Workinfo_htyMapConfig : EntityMappingConfiguration<VV_Workinfo_hty> |
| | | { |
| | | public override void Map(EntityTypeBuilder<VV_Workinfo_hty> |
| | | builderTable) |
| | | { |
| | | //b.Property(x => x.StorageName).HasMaxLength(45); |
| | | } |
| | | } |
| | | } |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | *代ç ç±æ¡æ¶çæ,任使´æ¹é½å¯è½å¯¼è´è¢«ä»£ç çæå¨è¦ç |
| | | *Repositoryæä¾æ°æ®åºæä½ï¼å¦æè¦å¢å æ°æ®åºæä½è¯·å¨å½åç®å½ä¸Partialæä»¶å¤¹IVV_WorkinfoRepositoryç¼åæ¥å£ |
| | | */ |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using WIDESEA_Core.BaseProvider; |
| | | using WIDESEA_Entity.DomainModels; |
| | | using WIDESEA_Core.Extensions.AutofacManager; |
| | | namespace WIDESEA_WCS.IRepositories |
| | | { |
| | | public partial interface IVV_WorkinfoRepository : IDependency,IRepository<VV_Workinfo> |
| | | { |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | *代ç ç±æ¡æ¶çæ,任使´æ¹é½å¯è½å¯¼è´è¢«ä»£ç çæå¨è¦ç |
| | | *Repositoryæä¾æ°æ®åºæä½ï¼å¦æè¦å¢å æ°æ®åºæä½è¯·å¨å½åç®å½ä¸Partialæä»¶å¤¹IVV_Workinfo_htyRepositoryç¼åæ¥å£ |
| | | */ |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using WIDESEA_Core.BaseProvider; |
| | | using WIDESEA_Entity.DomainModels; |
| | | using WIDESEA_Core.Extensions.AutofacManager; |
| | | namespace WIDESEA_WCS.IRepositories |
| | | { |
| | | public partial interface IVV_Workinfo_htyRepository : IDependency,IRepository<VV_Workinfo_hty> |
| | | { |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | *代ç ç±æ¡æ¶çæ,任使´æ¹é½å¯è½å¯¼è´è¢«ä»£ç çæå¨è¦ç |
| | | */ |
| | | using WIDESEA_Core.BaseProvider; |
| | | using WIDESEA_Entity.DomainModels; |
| | | |
| | | namespace WIDESEA_WCS.IServices |
| | | { |
| | | public partial interface IVV_WorkinfoService : IService<VV_Workinfo> |
| | | { |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | *代ç ç±æ¡æ¶çæ,任使´æ¹é½å¯è½å¯¼è´è¢«ä»£ç çæå¨è¦ç |
| | | */ |
| | | using WIDESEA_Core.BaseProvider; |
| | | using WIDESEA_Entity.DomainModels; |
| | | |
| | | namespace WIDESEA_WCS.IServices |
| | | { |
| | | public partial interface IVV_Workinfo_htyService : IService<VV_Workinfo_hty> |
| | | { |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | *ææå
³äºVV_Workinfoç±»çä¸å¡ä»£ç æ¥å£åºå¨æ¤å¤ç¼å |
| | | */ |
| | | using WIDESEA_Core.BaseProvider; |
| | | using WIDESEA_Entity.DomainModels; |
| | | using WIDESEA_Core.Utilities; |
| | | using System.Linq.Expressions; |
| | | namespace WIDESEA_WCS.IServices |
| | | { |
| | | public partial interface IVV_WorkinfoService |
| | | { |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | *ææå
³äºVV_Workinfo_htyç±»çä¸å¡ä»£ç æ¥å£åºå¨æ¤å¤ç¼å |
| | | */ |
| | | using WIDESEA_Core.BaseProvider; |
| | | using WIDESEA_Entity.DomainModels; |
| | | using WIDESEA_Core.Utilities; |
| | | using System.Linq.Expressions; |
| | | namespace WIDESEA_WCS.IServices |
| | | { |
| | | public partial interface IVV_Workinfo_htyService |
| | | { |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | *代ç ç±æ¡æ¶çæ,任使´æ¹é½å¯è½å¯¼è´è¢«ä»£ç çæå¨è¦ç |
| | | *Repositoryæä¾æ°æ®åºæä½ï¼å¦æè¦å¢å æ°æ®åºæä½è¯·å¨å½åç®å½ä¸Partialæä»¶å¤¹VV_WorkinfoRepositoryç¼å代ç |
| | | */ |
| | | using WIDESEA_WCS.IRepositories; |
| | | using WIDESEA_Core.BaseProvider; |
| | | using WIDESEA_Core.EFDbContext; |
| | | using WIDESEA_Core.Extensions.AutofacManager; |
| | | using WIDESEA_Entity.DomainModels; |
| | | |
| | | namespace WIDESEA_WCS.Repositories |
| | | { |
| | | public partial class VV_WorkinfoRepository : RepositoryBase<VV_Workinfo> , IVV_WorkinfoRepository |
| | | { |
| | | public VV_WorkinfoRepository(VOLContext dbContext) |
| | | : base(dbContext) |
| | | { |
| | | |
| | | } |
| | | public static IVV_WorkinfoRepository Instance |
| | | { |
| | | get { return AutofacContainerModule.GetService<IVV_WorkinfoRepository>(); } } |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | *代ç ç±æ¡æ¶çæ,任使´æ¹é½å¯è½å¯¼è´è¢«ä»£ç çæå¨è¦ç |
| | | *Repositoryæä¾æ°æ®åºæä½ï¼å¦æè¦å¢å æ°æ®åºæä½è¯·å¨å½åç®å½ä¸Partialæä»¶å¤¹VV_Workinfo_htyRepositoryç¼å代ç |
| | | */ |
| | | using WIDESEA_WCS.IRepositories; |
| | | using WIDESEA_Core.BaseProvider; |
| | | using WIDESEA_Core.EFDbContext; |
| | | using WIDESEA_Core.Extensions.AutofacManager; |
| | | using WIDESEA_Entity.DomainModels; |
| | | |
| | | namespace WIDESEA_WCS.Repositories |
| | | { |
| | | public partial class VV_Workinfo_htyRepository : RepositoryBase<VV_Workinfo_hty> , IVV_Workinfo_htyRepository |
| | | { |
| | | public VV_Workinfo_htyRepository(VOLContext dbContext) |
| | | : base(dbContext) |
| | | { |
| | | |
| | | } |
| | | public static IVV_Workinfo_htyRepository Instance |
| | | { |
| | | get { return AutofacContainerModule.GetService<IVV_Workinfo_htyRepository>(); } } |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | *ææå
³äºVV_Workinfoç±»çä¸å¡ä»£ç åºå¨æ¤å¤ç¼å |
| | | *å¯ä½¿ç¨repository.è°ç¨å¸¸ç¨æ¹æ³ï¼è·åEF/Dapperçä¿¡æ¯ |
| | | *妿éè¦äºå¡è¯·ä½¿ç¨repository.DbContextBeginTransaction |
| | | *ä¹å¯ä½¿ç¨DBServerProvider.æå¨è·åæ°æ®åºç¸å
³ä¿¡æ¯ |
| | | *ç¨æ·ä¿¡æ¯ãæéãè§è²ç使ç¨UserContext.Currentæä½ |
| | | *VV_WorkinfoService对å¢ãå ãæ¹æ¥ã导å
¥ã导åºãå®¡æ ¸ä¸å¡ä»£ç æ©å±åç
§ServiceFunFilter |
| | | */ |
| | | using WIDESEA_Core.BaseProvider; |
| | | using WIDESEA_Core.Extensions.AutofacManager; |
| | | using WIDESEA_Entity.DomainModels; |
| | | using System.Linq; |
| | | using WIDESEA_Core.Utilities; |
| | | using System.Linq.Expressions; |
| | | using WIDESEA_Core.Extensions; |
| | | using Microsoft.EntityFrameworkCore; |
| | | using Microsoft.Extensions.DependencyInjection; |
| | | using Microsoft.AspNetCore.Http; |
| | | using WIDESEA_WCS.IRepositories; |
| | | |
| | | namespace WIDESEA_WCS.Services |
| | | { |
| | | public partial class VV_WorkinfoService |
| | | { |
| | | private readonly IHttpContextAccessor _httpContextAccessor; |
| | | private readonly IVV_WorkinfoRepository _repository;//è®¿é®æ°æ®åº |
| | | |
| | | [ActivatorUtilitiesConstructor] |
| | | public VV_WorkinfoService( |
| | | IVV_WorkinfoRepository dbRepository, |
| | | IHttpContextAccessor httpContextAccessor |
| | | ) |
| | | : base(dbRepository) |
| | | { |
| | | _httpContextAccessor = httpContextAccessor; |
| | | _repository = dbRepository; |
| | | //å¤ç§æ·ä¼ç¨å°è¿init代ç ï¼å
¶ä»æ
åµå¯ä»¥ä¸ç¨ |
| | | //base.Init(dbRepository); |
| | | } |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | *ææå
³äºVV_Workinfo_htyç±»çä¸å¡ä»£ç åºå¨æ¤å¤ç¼å |
| | | *å¯ä½¿ç¨repository.è°ç¨å¸¸ç¨æ¹æ³ï¼è·åEF/Dapperçä¿¡æ¯ |
| | | *妿éè¦äºå¡è¯·ä½¿ç¨repository.DbContextBeginTransaction |
| | | *ä¹å¯ä½¿ç¨DBServerProvider.æå¨è·åæ°æ®åºç¸å
³ä¿¡æ¯ |
| | | *ç¨æ·ä¿¡æ¯ãæéãè§è²ç使ç¨UserContext.Currentæä½ |
| | | *VV_Workinfo_htyService对å¢ãå ãæ¹æ¥ã导å
¥ã导åºãå®¡æ ¸ä¸å¡ä»£ç æ©å±åç
§ServiceFunFilter |
| | | */ |
| | | using WIDESEA_Core.BaseProvider; |
| | | using WIDESEA_Core.Extensions.AutofacManager; |
| | | using WIDESEA_Entity.DomainModels; |
| | | using System.Linq; |
| | | using WIDESEA_Core.Utilities; |
| | | using System.Linq.Expressions; |
| | | using WIDESEA_Core.Extensions; |
| | | using Microsoft.EntityFrameworkCore; |
| | | using Microsoft.Extensions.DependencyInjection; |
| | | using Microsoft.AspNetCore.Http; |
| | | using WIDESEA_WCS.IRepositories; |
| | | |
| | | namespace WIDESEA_WCS.Services |
| | | { |
| | | public partial class VV_Workinfo_htyService |
| | | { |
| | | private readonly IHttpContextAccessor _httpContextAccessor; |
| | | private readonly IVV_Workinfo_htyRepository _repository;//è®¿é®æ°æ®åº |
| | | |
| | | [ActivatorUtilitiesConstructor] |
| | | public VV_Workinfo_htyService( |
| | | IVV_Workinfo_htyRepository dbRepository, |
| | | IHttpContextAccessor httpContextAccessor |
| | | ) |
| | | : base(dbRepository) |
| | | { |
| | | _httpContextAccessor = httpContextAccessor; |
| | | _repository = dbRepository; |
| | | //å¤ç§æ·ä¼ç¨å°è¿init代ç ï¼å
¶ä»æ
åµå¯ä»¥ä¸ç¨ |
| | | //base.Init(dbRepository); |
| | | } |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | *Authorï¼jxx |
| | | *Contactï¼283591387@qq.com |
| | | *代ç ç±æ¡æ¶çæ,æ¤å¤ä»»ä½æ´æ¹é½å¯è½å¯¼è´è¢«ä»£ç çæå¨è¦ç |
| | | *ææä¸å¡ç¼åå
¨é¨åºå¨Partialæä»¶å¤¹ä¸VV_WorkinfoServiceä¸IVV_WorkinfoServiceä¸ç¼å |
| | | */ |
| | | using WIDESEA_WCS.IRepositories; |
| | | using WIDESEA_WCS.IServices; |
| | | using WIDESEA_Core.BaseProvider; |
| | | using WIDESEA_Core.Extensions.AutofacManager; |
| | | using WIDESEA_Entity.DomainModels; |
| | | |
| | | namespace WIDESEA_WCS.Services |
| | | { |
| | | public partial class VV_WorkinfoService : ServiceBase<VV_Workinfo, IVV_WorkinfoRepository> |
| | | , IVV_WorkinfoService, IDependency |
| | | { |
| | | public VV_WorkinfoService(IVV_WorkinfoRepository repository) |
| | | : base(repository) |
| | | { |
| | | Init(repository); |
| | | } |
| | | public static IVV_WorkinfoService Instance |
| | | { |
| | | get { return AutofacContainerModule.GetService<IVV_WorkinfoService>(); } } |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | *Authorï¼jxx |
| | | *Contactï¼283591387@qq.com |
| | | *代ç ç±æ¡æ¶çæ,æ¤å¤ä»»ä½æ´æ¹é½å¯è½å¯¼è´è¢«ä»£ç çæå¨è¦ç |
| | | *ææä¸å¡ç¼åå
¨é¨åºå¨Partialæä»¶å¤¹ä¸VV_Workinfo_htyServiceä¸IVV_Workinfo_htyServiceä¸ç¼å |
| | | */ |
| | | using WIDESEA_WCS.IRepositories; |
| | | using WIDESEA_WCS.IServices; |
| | | using WIDESEA_Core.BaseProvider; |
| | | using WIDESEA_Core.Extensions.AutofacManager; |
| | | using WIDESEA_Entity.DomainModels; |
| | | |
| | | namespace WIDESEA_WCS.Services |
| | | { |
| | | public partial class VV_Workinfo_htyService : ServiceBase<VV_Workinfo_hty, IVV_Workinfo_htyRepository> |
| | | , IVV_Workinfo_htyService, IDependency |
| | | { |
| | | public VV_Workinfo_htyService(IVV_Workinfo_htyRepository repository) |
| | | : base(repository) |
| | | { |
| | | Init(repository); |
| | | } |
| | | public static IVV_Workinfo_htyService Instance |
| | | { |
| | | get { return AutofacContainerModule.GetService<IVV_Workinfo_htyService>(); } } |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | *æ¥å£ç¼åå¤... |
| | | *妿æ¥å£éè¦åActionçæééªè¯ï¼è¯·å¨Actionä¸ä½¿ç¨å±æ§ |
| | | *å¦: [ApiActionPermission("VV_Workinfo",Enums.ActionPermissionOptions.Search)] |
| | | */ |
| | | using Microsoft.AspNetCore.Mvc; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Threading.Tasks; |
| | | using Microsoft.Extensions.DependencyInjection; |
| | | using Microsoft.AspNetCore.Http; |
| | | using WIDESEA_Entity.DomainModels; |
| | | using WIDESEA_WCS.IServices; |
| | | |
| | | namespace WIDESEA_WCS.Controllers |
| | | { |
| | | public partial class VV_WorkinfoController |
| | | { |
| | | private readonly IVV_WorkinfoService _service;//访é®ä¸å¡ä»£ç |
| | | private readonly IHttpContextAccessor _httpContextAccessor; |
| | | |
| | | [ActivatorUtilitiesConstructor] |
| | | public VV_WorkinfoController( |
| | | IVV_WorkinfoService service, |
| | | IHttpContextAccessor httpContextAccessor |
| | | ) |
| | | : base(service) |
| | | { |
| | | _service = service; |
| | | _httpContextAccessor = httpContextAccessor; |
| | | } |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | *æ¥å£ç¼åå¤... |
| | | *妿æ¥å£éè¦åActionçæééªè¯ï¼è¯·å¨Actionä¸ä½¿ç¨å±æ§ |
| | | *å¦: [ApiActionPermission("VV_Workinfo_hty",Enums.ActionPermissionOptions.Search)] |
| | | */ |
| | | using Microsoft.AspNetCore.Mvc; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Threading.Tasks; |
| | | using Microsoft.Extensions.DependencyInjection; |
| | | using Microsoft.AspNetCore.Http; |
| | | using WIDESEA_Entity.DomainModels; |
| | | using WIDESEA_WCS.IServices; |
| | | |
| | | namespace WIDESEA_WCS.Controllers |
| | | { |
| | | public partial class VV_Workinfo_htyController |
| | | { |
| | | private readonly IVV_Workinfo_htyService _service;//访é®ä¸å¡ä»£ç |
| | | private readonly IHttpContextAccessor _httpContextAccessor; |
| | | |
| | | [ActivatorUtilitiesConstructor] |
| | | public VV_Workinfo_htyController( |
| | | IVV_Workinfo_htyService service, |
| | | IHttpContextAccessor httpContextAccessor |
| | | ) |
| | | : base(service) |
| | | { |
| | | _service = service; |
| | | _httpContextAccessor = httpContextAccessor; |
| | | } |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | *代ç ç±æ¡æ¶çæ,任使´æ¹é½å¯è½å¯¼è´è¢«ä»£ç çæå¨è¦ç |
| | | *妿è¦å¢å æ¹æ³è¯·å¨å½åç®å½ä¸Partialæä»¶å¤¹VV_WorkinfoControllerç¼å |
| | | */ |
| | | using Microsoft.AspNetCore.Mvc; |
| | | using WIDESEA_Core.Controllers.Basic; |
| | | using WIDESEA_Entity.AttributeManager; |
| | | using WIDESEA_WCS.IServices; |
| | | namespace WIDESEA_WCS.Controllers |
| | | { |
| | | [Route("api/VV_Workinfo")] |
| | | [PermissionTable(Name = "VV_Workinfo")] |
| | | public partial class VV_WorkinfoController : ApiBaseController<IVV_WorkinfoService> |
| | | { |
| | | public VV_WorkinfoController(IVV_WorkinfoService service) |
| | | : base(service) |
| | | { |
| | | } |
| | | } |
| | | } |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | *代ç ç±æ¡æ¶çæ,任使´æ¹é½å¯è½å¯¼è´è¢«ä»£ç çæå¨è¦ç |
| | | *妿è¦å¢å æ¹æ³è¯·å¨å½åç®å½ä¸Partialæä»¶å¤¹VV_Workinfo_htyControllerç¼å |
| | | */ |
| | | using Microsoft.AspNetCore.Mvc; |
| | | using WIDESEA_Core.Controllers.Basic; |
| | | using WIDESEA_Entity.AttributeManager; |
| | | using WIDESEA_WCS.IServices; |
| | | namespace WIDESEA_WCS.Controllers |
| | | { |
| | | [Route("api/VV_Workinfo_hty")] |
| | | [PermissionTable(Name = "VV_Workinfo_hty")] |
| | | public partial class VV_Workinfo_htyController : ApiBaseController<IVV_Workinfo_htyService> |
| | | { |
| | | public VV_Workinfo_htyController(IVV_Workinfo_htyService service) |
| | | : base(service) |
| | | { |
| | | } |
| | | } |
| | | } |
| | | |