This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
This is a PDA (Personal Digital Assistant) web application for the LongWei MES (Manufacturing Execution System). It's built as an ASP.NET Web Forms application targeting .NET Framework 4.8, designed for mobile/PDA devices used in manufacturing environments.
The application handles various manufacturing operations including:
- Material receiving/shipping (收货/发货)
- Production reporting (生产报工)
- Quality control inspections (质量检验)
- Barcode scanning and printing
- Bluetooth device integration
Mst.master
- provides common layout and referencesApp_Code/
(e.g., Utility.cs
)Web.config
for app settings, Scripts/config.js
for API endpointsScripts/config.js
(currently localhost:5204/api/
)192.168.0.51:8081/
)loginGuid
and loginAccount
Vue.prototype.AxiosHttp
for standardized API calls/H5/ - Main application pages (.aspx files)
/H5/Js/ - Page-specific JavaScript/Vue.js files
/Scripts/ - Shared JavaScript libraries and config
/Images/ - Static assets and CSS
/App_Code/ - Server-side utility classes
/audio/ - Sound files for success/error feedback
GsPdaApp.sln
in Visual StudioWeb.config
(debug="true"
)Web.config
- Server configuration, compilation settingsScripts/config.js
- API endpoints, global Vue.js extensionsMst.master
- Common page layout and script references.aspx
page has corresponding .aspx.cs
(C#) and .js
(Vue.js) filesvm
, mounted to #app
elementthis.AxiosHttp(method, url, params)
wrapperthis.CHECKLOGIN()
or this.GetLoginInfor()
this.GoBack()
for consistent back navigation/Images/Style.css
var vm = new Vue({
el: '#app',
data: function() {
return {
isLoading: false,
// page-specific data
}
},
mounted() {
this.CHECKLOGIN(); // Verify user authentication
// initialization logic
},
methods: {
// page-specific methods
}
});
// Standard API call pattern
this.AxiosHttp('get', 'endpoint', params).then(res => {
if (res.success) {
// handle success
this.$playSound('success');
} else {
// handle error
this.$playSound('error');
this.$toast.fail(res.message);
}
});
this.$playSound('success')
(plays /audio/OK.wav
)this.$playSound('error')
(plays /audio/NG.wav
)uni.webView.postMessage()
Vue.prototype.sendPrintMessage
/H5/Bluetooth/
directoryBluetoothConfig.xml
/UserLogin.aspx
loginGuid
, loginAccount
)CHECKLOGIN()
method on each page