• 大小: 1.38MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-10-13
  • 语言: C#
  • 标签: windows  mobile6.5  c#2008  

资源简介

包含基本的入库、出库管理、库存、查询等功能,并具有读写rfid卡的模块。 数据库:Sql server 2000,在db目录下 开发工具:c# 2008

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using Microsoft.WindowsCE.Forms;

namespace redline
{
    public partial class baseForm : Form
    {
        private CustomMessageHandler Agent;

        public baseForm()
        {
            InitializeComponent();
            this.Agent = new CustomMessageHandler(this);
            
        }

        private void BarCodeForm_Load(object sender EventArgs e)
        {
            if (!RequestNotifications())
            {
                MessageBox.Show(“Fail to request BarCode module messages !“);
            }
        }

        /// 
        /// 重载这个函数实现当接收到条码内容时的处理过程
        /// 

        /// Data
        public virtual void RespondOnBarCodeReceived( string BarCode )
        {
        }

        public bool RequestNotifications()
        {
            return DevLibLite.DevLibRequestNotifications(Agent.Hwnd 0);
        }

        public bool StopNotifications()
        {
            return DevLibLite.DevLibStopNotifications(Agent.Hwnd);
        }



        private void BarCodeForm_Closed(object sender EventArgs e)
        {
            if ( ! StopNotifications() )
            {
                MessageBox.Show(“Fail to stop BarCode module messages !“);
            }
        }
    }

    public class CustomMessageHandler : MessageWindow
    {
        // Assign integers to messages.
        // Note that custom Window messages start at WM_USER = 0x400.
        public const int WM_USER        = 0x0400;
        public const int WM_BARCODE     = WM_USER + 13;

        // Create an instance of the form.
        private baseForm FrmMaster;

        public CustomMessageHandler()
        {
        }
        // Save a reference to the form so it can
        // be notified when messages are received.
        public CustomMessageHandler(baseForm Frm)
        {
            this.FrmMaster = Frm;
        }

        // Override the default WndProc behavior to examine messages.
        protected override void WndProc(ref Message msg)
        {
            if ( msg.Msg == WM_BARCODE )
            {
                uint nLen = (uint)msg.LParam;
                string BarCode = DevLibLite.ReadBarCode(nLen);
                this.FrmMaster.RespondOnBarCodeReceived(BarCode);
                msg.Result = IntPtr.Zero;
            }
            else
            {
                base.WndProc(ref msg);
            }
        }
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        262  2013-02-22 18:39  SmartDeviceProject2\SmartDeviceCab2\Debug\CabWiz.log

     文件    1726388  2013-02-22 18:39  SmartDeviceProject2\SmartDeviceCab2\Debug\SmartDeviceCab2.CAB

     文件      26190  2013-02-22 18:39  SmartDeviceProject2\SmartDeviceCab2\Debug\SmartDeviceCab2.inf

     文件      82404  2013-02-25 08:26  SmartDeviceProject2\SmartDeviceCab2\SmartDeviceCab2.vddproj

     文件      13864  2007-10-10 18:45  SmartDeviceProject2\SmartDeviceCab2\手动依赖项\CustomMarshalers.dll

     文件         81  2007-09-14 10:51  SmartDeviceProject2\SmartDeviceCab2\手动依赖项\CustomMarshalers.xml

     文件      18000  2007-10-10 18:45  SmartDeviceProject2\SmartDeviceCab2\手动依赖项\Microsoft.ServiceModel.Channels.Mail.dll

     文件      14448  2007-10-10 18:45  SmartDeviceProject2\SmartDeviceCab2\手动依赖项\Microsoft.ServiceModel.Channels.Mail.WindowsMobile.dll

     文件        167  2007-09-24 18:09  SmartDeviceProject2\SmartDeviceCab2\手动依赖项\Microsoft.ServiceModel.Channels.Mail.WindowsMobile.xml

     文件        153  2007-09-24 18:09  SmartDeviceProject2\SmartDeviceCab2\手动依赖项\Microsoft.ServiceModel.Channels.Mail.xml

     文件     349744  2007-10-10 18:46  SmartDeviceProject2\SmartDeviceCab2\手动依赖项\Microsoft.VisualBasic.dll

     文件         86  2007-09-14 10:51  SmartDeviceProject2\SmartDeviceCab2\手动依赖项\Microsoft.VisualBasic.xml

     文件      23608  2007-10-10 18:46  SmartDeviceProject2\SmartDeviceCab2\手动依赖项\Microsoft.Windowsce.Forms.dll

     文件         95  2007-09-14 10:51  SmartDeviceProject2\SmartDeviceCab2\手动依赖项\Microsoft.Windowsce.Forms.xml

     文件      99904  2007-10-10 18:46  SmartDeviceProject2\SmartDeviceCab2\手动依赖项\Microsoft.WindowsMobile.DirectX.dll

     文件        116  2007-09-14 10:51  SmartDeviceProject2\SmartDeviceCab2\手动依赖项\Microsoft.WindowsMobile.DirectX.xml

     文件     214552  2007-10-10 18:45  SmartDeviceProject2\SmartDeviceCab2\手动依赖项\mscorlib.dll

     文件         78  2007-09-14 10:51  SmartDeviceProject2\SmartDeviceCab2\手动依赖项\mscorlib.xml

     文件      38424  2007-10-10 18:46  SmartDeviceProject2\SmartDeviceCab2\手动依赖项\System.Core.dll

     文件        128  2007-09-24 18:09  SmartDeviceProject2\SmartDeviceCab2\手动依赖项\System.Core.xml

     文件      16960  2007-10-10 18:46  SmartDeviceProject2\SmartDeviceCab2\手动依赖项\System.Data.DataSetExtensions.dll

     文件        146  2007-09-24 18:09  SmartDeviceProject2\SmartDeviceCab2\手动依赖项\System.Data.DataSetExtensions.xml

     文件     124440  2007-10-10 18:46  SmartDeviceProject2\SmartDeviceCab2\手动依赖项\System.Data.dll

     文件         79  2007-09-14 10:51  SmartDeviceProject2\SmartDeviceCab2\手动依赖项\System.Data.xml

     文件     112144  2007-10-10 18:45  SmartDeviceProject2\SmartDeviceCab2\手动依赖项\System.dll

     文件      46624  2007-10-10 18:45  SmartDeviceProject2\SmartDeviceCab2\手动依赖项\System.Drawing.dll

     文件         84  2007-09-14 10:51  SmartDeviceProject2\SmartDeviceCab2\手动依赖项\System.Drawing.xml

     文件      42536  2007-10-10 18:46  SmartDeviceProject2\SmartDeviceCab2\手动依赖项\System.Messaging.dll

     文件         81  2007-09-14 10:51  SmartDeviceProject2\SmartDeviceCab2\手动依赖项\System.Messaging.xml

     文件      15904  2007-10-10 18:46  SmartDeviceProject2\SmartDeviceCab2\手动依赖项\System.Net.Irda.dll

............此处省略145个文件信息

评论

共有 条评论