行 1: using System;
行 2: using System.Collections.Generic;
行 3: using System.Linq;
行 4: using System.Web;
行 5: using Access;
行 6: using System.Runtime.InteropServices;
行 7:
行 8: namespace PDA
行 9: {
行 10: [System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential, Pack = 1)]
行 11: public class NMT_OrderInfo
行 12: {
行 13: public NMH NMH;
行 14: public ORDER_INFO Data;
行 15: }
行 16: [System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential, Pack = 1)]
行 17: public class NMT_DISHLOG_NEW
行 18: {
行 19: public NMH NMH;
行 20: public DISHLOG_INFO Data;
行 21: }
行 22: [System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential, Pack = 1)]
行 23: public class NMT_DISHLOG_INFO
行 24: {
行 25: public NMH NMH;
行 26: public DISHLOG_INFO Data;
行 27: }
行 28: [System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential, Pack = 1)]
行 29: public class NMT_DISHLOG_QUERY
行 30: {
行 31: public NMH NMH;
行 32: public DISHLOG_QUERY Data;
行 33: }
行 34: [System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential, Pack = 1)]
行 35: public class NMT_USER_INFO
行 36: {
行 37: public NMH NMH;
行 38: public USER_INFO Data;
行 39: }
行 40: [System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential, Pack = 1)]
行 41: public class NMT_INME
行 42: {
行 43: public NMH NMH;
行 44: public INME Data;
行 45: }
行 46: [System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential, Pack = 1)]
行 47: public class NMT_DISHLOG_DEL
行 48: {
行 49: public NMH NMH;
行 50: public UInt64 ID;
行 51: }
行 52: [System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential, Pack = 1)]
行 53: public struct NMT_ORDER_QUERY
行 54: {
行 55: public NMH NMH;
行 56: public ORDER_QUERY Data;
行 57: }
行 58:
行 59:
行 60:
行 61:
行 62:
行 63:
行 64:
行 65:
行 66:
行 67: public class PDADATA
行 68: {
行 69: public static INCM_LOGIN Get_INCM_LOGIN()
行 70: {
行 71: INCM_LOGIN login = new INCM_LOGIN();
行 72: login.szUsername = "web1";
行 73: login.szPassword = "web1";
行 74: NMH nmh = new NMH();
行 75: nmh.Size = (uint)Marshal.SizeOf(login);
行 76: nmh.Type = (uint)INCMC.INCMC_LOGIN;
行 77: login.nmh = nmh;
行 78: login.eUA = USER_AUTH.UA_WAITER;
行 79: return login;
行 80: }
行 81:
行 82: }
行 83: }
|