| | |
| | | { |
| | | "type":"rack", |
| | | "id":"rack4", |
| | | "top":737, |
| | | "left":419, |
| | | "top":549, |
| | | "left":412, |
| | | "width":846, |
| | | "height":24, |
| | | "height":20, |
| | | "minBayNo":2, |
| | | "maxBayNo":31 |
| | | }, |
| | | { |
| | | "type":"rack", |
| | | "id":"rack1", |
| | | "top":855, |
| | | "left":419, |
| | | "top":642, |
| | | "left":413, |
| | | "width":846, |
| | | "height":24, |
| | | "height":20, |
| | | "minBayNo":2, |
| | | "maxBayNo":31 |
| | | }, |
| | | { |
| | | "type":"rack", |
| | | "id":"rack2", |
| | | "top":827, |
| | | "left":419, |
| | | "top":619, |
| | | "left":413, |
| | | "width":846, |
| | | "height":24, |
| | | "height":20, |
| | | "minBayNo":2, |
| | | "maxBayNo":31 |
| | | }, |
| | | { |
| | | "type":"rack", |
| | | "id":"rack3", |
| | | "top":765, |
| | | "left":419, |
| | | "top":571, |
| | | "left":412, |
| | | "width":846, |
| | | "height":24, |
| | | "height":20, |
| | | "minBayNo":2, |
| | | "maxBayNo":31 |
| | | }, |
| | | { |
| | | "type":"rack", |
| | | "id":"rack8", |
| | | "top":561, |
| | | "left":419, |
| | | "top":435, |
| | | "left":412, |
| | | "width":846, |
| | | "height":24, |
| | | "height":20, |
| | | "minBayNo":2, |
| | | "maxBayNo":31 |
| | | }, |
| | | { |
| | | "type":"rack", |
| | | "id":"rack5", |
| | | "top":679, |
| | | "left":419, |
| | | "top":527, |
| | | "left":412, |
| | | "width":846, |
| | | "height":24, |
| | | "height":20, |
| | | "minBayNo":2, |
| | | "maxBayNo":31 |
| | | }, |
| | | { |
| | | "type":"rack", |
| | | "id":"rack6", |
| | | "top":651, |
| | | "left":419, |
| | | "top":505, |
| | | "left":412, |
| | | "width":846, |
| | | "height":24, |
| | | "height":20, |
| | | "minBayNo":2, |
| | | "maxBayNo":31 |
| | | }, |
| | | { |
| | | "type":"rack", |
| | | "id":"rack7", |
| | | "top":589, |
| | | "left":419, |
| | | "top":457, |
| | | "left":412, |
| | | "width":846, |
| | | "height":24, |
| | | "height":20, |
| | | "minBayNo":2, |
| | | "maxBayNo":31 |
| | | }, |
| | | { |
| | | "type":"rack", |
| | | "id":"rack12", |
| | | "top":415, |
| | | "left":419, |
| | | "top":322, |
| | | "left":412, |
| | | "width":846, |
| | | "height":24, |
| | | "height":20, |
| | | "minBayNo":2, |
| | | "maxBayNo":31 |
| | | }, |
| | | { |
| | | "type":"rack", |
| | | "id":"rack9", |
| | | "top":533, |
| | | "left":419, |
| | | "top":413, |
| | | "left":412, |
| | | "width":846, |
| | | "height":24, |
| | | "height":20, |
| | | "minBayNo":2, |
| | | "maxBayNo":31 |
| | | }, |
| | | { |
| | | "type":"rack", |
| | | "id":"rack10", |
| | | "top":505, |
| | | "left":419, |
| | | "top":391, |
| | | "left":412, |
| | | "width":846, |
| | | "height":24, |
| | | "height":20, |
| | | "minBayNo":2, |
| | | "maxBayNo":31 |
| | | }, |
| | | { |
| | | "type":"rack", |
| | | "id":"rack11", |
| | | "top":443, |
| | | "left":419, |
| | | "top":344, |
| | | "left":412, |
| | | "width":846, |
| | | "height":24, |
| | | "minBayNo":2, |
| | | "maxBayNo":31 |
| | | }, |
| | | { |
| | | "type":"rack", |
| | | "id":"rack13", |
| | | "top":387, |
| | | "left":419, |
| | | "width":846, |
| | | "height":24, |
| | | "minBayNo":2, |
| | | "maxBayNo":31 |
| | | }, |
| | | { |
| | | "type":"rack", |
| | | "id":"rack14", |
| | | "top":359, |
| | | "left":419, |
| | | "width":846, |
| | | "height":24, |
| | | "height":20, |
| | | "minBayNo":2, |
| | | "maxBayNo":31 |
| | | }, |
| | | { |
| | | "type":"rack", |
| | | "id":"rack16", |
| | | "top":269, |
| | | "left":419, |
| | | "top":206, |
| | | "left":412, |
| | | "width":846, |
| | | "height":24, |
| | | "height":20, |
| | | "minBayNo":2, |
| | | "maxBayNo":31 |
| | | }, |
| | | { |
| | | "type":"rack", |
| | | "id":"rack13", |
| | | "top":300, |
| | | "left":412, |
| | | "width":846, |
| | | "height":20, |
| | | "minBayNo":2, |
| | | "maxBayNo":31 |
| | | }, |
| | | { |
| | | "type":"rack", |
| | | "id":"rack15", |
| | | "top":297, |
| | | "left":419, |
| | | "top":228, |
| | | "left":412, |
| | | "width":846, |
| | | "height":24, |
| | | "height":20, |
| | | "minBayNo":2, |
| | | "maxBayNo":31 |
| | | }, |
| | | { |
| | | "type":"rack", |
| | | "id":"rack14", |
| | | "top":278, |
| | | "left":412, |
| | | "width":846, |
| | | "height":20, |
| | | "minBayNo":2, |
| | | "maxBayNo":31 |
| | | } |
| | |
| | | "type":"rackDescs", |
| | | "id":"lb_desc16", |
| | | "text":"#1", |
| | | "top":881, |
| | | "left":1181, |
| | | "top":664, |
| | | "left":1228, |
| | | "width":30, |
| | | "height":23 |
| | | }, |
| | |
| | | "type":"rackDescs", |
| | | "id":"lb_desc1", |
| | | "text":"#16", |
| | | "top":244, |
| | | "left":1157, |
| | | "top":181, |
| | | "left":1217, |
| | | "width":41, |
| | | "height":23 |
| | | } |
| | |
| | | "type":"crane", |
| | | "id":"crn-4", |
| | | "text":"4", |
| | | "top":326, |
| | | "left":508, |
| | | "top":252, |
| | | "left":501, |
| | | "width":93, |
| | | "height":22 |
| | | }, |
| | |
| | | "type":"track", |
| | | "id":"lb_track1", |
| | | "text":"", |
| | | "top":806, |
| | | "left":301, |
| | | "width":1004, |
| | | "top":605, |
| | | "left":332, |
| | | "width":971, |
| | | "height":2 |
| | | }, |
| | | { |
| | | "type":"crane", |
| | | "id":"crn-3", |
| | | "text":"3", |
| | | "top":475, |
| | | "left":508, |
| | | "top":367, |
| | | "left":512, |
| | | "width":93, |
| | | "height":22 |
| | | }, |
| | |
| | | "type":"track", |
| | | "id":"lb_track2", |
| | | "text":"", |
| | | "top":630, |
| | | "left":301, |
| | | "width":1004, |
| | | "top":489, |
| | | "left":332, |
| | | "width":972, |
| | | "height":2 |
| | | }, |
| | | { |
| | | "type":"crane", |
| | | "id":"crn-2", |
| | | "text":"2", |
| | | "top":618, |
| | | "left":508, |
| | | "top":481, |
| | | "left":501, |
| | | "width":93, |
| | | "height":22 |
| | | }, |
| | |
| | | "type":"track", |
| | | "id":"lb_track5", |
| | | "text":"", |
| | | "top":484, |
| | | "left":301, |
| | | "width":1004, |
| | | "top":376, |
| | | "left":333, |
| | | "width":974, |
| | | "height":2 |
| | | }, |
| | | { |
| | | "type":"track", |
| | | "id":"lb_track4", |
| | | "text":"", |
| | | "top":260, |
| | | "left":335, |
| | | "width":975, |
| | | "height":2 |
| | | }, |
| | | { |
| | | "type":"crane", |
| | | "id":"crn-1", |
| | | "text":"1", |
| | | "top":796, |
| | | "left":508, |
| | | "top":595, |
| | | "left":501, |
| | | "width":93, |
| | | "height":22 |
| | | }, |
| | | { |
| | | "type":"track", |
| | | "id":"lb_track4", |
| | | "text":"", |
| | | "top":338, |
| | | "left":301, |
| | | "width":1004, |
| | | "height":2 |
| | | } |
| | | ], |
| | | "areas":[ |
| | |
| | | "type":"Control_floor", |
| | | "id":"tabControl_floor1", |
| | | "text":"楼å±", |
| | | "top":67, |
| | | "left":156, |
| | | "width":1493, |
| | | "height":1048, |
| | | "top":68, |
| | | "left":80, |
| | | "width":1275, |
| | | "height":910, |
| | | "floors":[ |
| | | { |
| | | "type":"floor", |
| | |
| | | "text":"1F", |
| | | "top":4, |
| | | "left":22, |
| | | "width":1467, |
| | | "height":1040, |
| | | "width":1249, |
| | | "height":902, |
| | | "stns":[ |
| | | { |
| | | "type":"track", |
| | | "id":"lb_trCart21", |
| | | "text":"", |
| | | "top":129, |
| | | "left":232, |
| | | "width":10, |
| | | "height":775 |
| | | "top":93, |
| | | "left":243, |
| | | "width":6, |
| | | "height":569 |
| | | }, |
| | | { |
| | | "type":"track", |
| | | "id":"lb_trCart22", |
| | | "text":"", |
| | | "top":129, |
| | | "left":270, |
| | | "width":10, |
| | | "height":775 |
| | | "top":93, |
| | | "left":297, |
| | | "width":6, |
| | | "height":569 |
| | | }, |
| | | { |
| | | "type":"stn", |
| | | "id":"site-016", |
| | | "text":"016", |
| | | "top":505, |
| | | "left":217, |
| | | "top":457, |
| | | "left":239, |
| | | "width":69, |
| | | "height":24 |
| | | "height":20 |
| | | }, |
| | | { |
| | | "type":"stn", |
| | | "id":"site-015", |
| | | "text":"015", |
| | | "top":129, |
| | | "left":314, |
| | | "top":93, |
| | | "left":310, |
| | | "width":100, |
| | | "height":24 |
| | | "height":20 |
| | | }, |
| | | { |
| | | "type":"stn", |
| | | "id":"site-014", |
| | | "text":"014", |
| | | "top":129, |
| | | "left":420, |
| | | "top":93, |
| | | "left":413, |
| | | "width":92, |
| | | "height":24 |
| | | "height":20 |
| | | }, |
| | | { |
| | | "type":"stn", |
| | | "id":"site-013", |
| | | "text":"013", |
| | | "top":154, |
| | | "left":420, |
| | | "top":115, |
| | | "left":413, |
| | | "width":92, |
| | | "height":24 |
| | | "height":20 |
| | | }, |
| | | { |
| | | "type":"stn", |
| | | "id":"site-012", |
| | | "text":"012", |
| | | "top":179, |
| | | "left":420, |
| | | "top":138, |
| | | "left":413, |
| | | "width":92, |
| | | "height":38 |
| | | "height":20 |
| | | }, |
| | | { |
| | | "type":"stn", |
| | | "id":"site-011", |
| | | "text":"011", |
| | | "top":218, |
| | | "left":420, |
| | | "top":160, |
| | | "left":413, |
| | | "width":92, |
| | | "height":24 |
| | | "height":20 |
| | | }, |
| | | { |
| | | "type":"stn", |
| | | "id":"site-010", |
| | | "text":"010", |
| | | "top":243, |
| | | "left":420, |
| | | "top":183, |
| | | "left":413, |
| | | "width":92, |
| | | "height":24 |
| | | "height":20 |
| | | }, |
| | | { |
| | | "type":"stn", |
| | | "id":"site-009", |
| | | "text":"009", |
| | | "top":243, |
| | | "left":314, |
| | | "top":183, |
| | | "left":310, |
| | | "width":100, |
| | | "height":24 |
| | | "height":20 |
| | | }, |
| | | { |
| | | "type":"stn", |
| | | "id":"site-008", |
| | | "text":"008", |
| | | "top":297, |
| | | "left":314, |
| | | "top":228, |
| | | "left":310, |
| | | "width":100, |
| | | "height":24 |
| | | "height":20 |
| | | }, |
| | | { |
| | | "type":"stn", |
| | | "id":"site-007", |
| | | "text":"007", |
| | | "top":362, |
| | | "left":314, |
| | | "top":278, |
| | | "left":311, |
| | | "width":100, |
| | | "height":24 |
| | | "height":20 |
| | | }, |
| | | { |
| | | "type":"stn", |
| | | "id":"site-006", |
| | | "text":"006", |
| | | "top":443, |
| | | "left":314, |
| | | "top":344, |
| | | "left":311, |
| | | "width":100, |
| | | "height":24 |
| | | "height":20 |
| | | }, |
| | | { |
| | | "type":"stn", |
| | | "id":"site-005", |
| | | "text":"005", |
| | | "top":505, |
| | | "left":314, |
| | | "top":391, |
| | | "left":311, |
| | | "width":100, |
| | | "height":24 |
| | | "height":20 |
| | | }, |
| | | { |
| | | "type":"stn", |
| | | "id":"site-004", |
| | | "text":"004", |
| | | "top":589, |
| | | "left":314, |
| | | "top":457, |
| | | "left":311, |
| | | "width":100, |
| | | "height":24 |
| | | "height":20 |
| | | }, |
| | | { |
| | | "type":"stn", |
| | | "id":"site-003", |
| | | "text":"003", |
| | | "top":651, |
| | | "left":314, |
| | | "top":505, |
| | | "left":311, |
| | | "width":100, |
| | | "height":24 |
| | | "height":20 |
| | | }, |
| | | { |
| | | "type":"stn", |
| | | "id":"site-002", |
| | | "text":"002", |
| | | "top":765, |
| | | "left":314, |
| | | "top":571, |
| | | "left":311, |
| | | "width":100, |
| | | "height":24 |
| | | "height":20 |
| | | }, |
| | | { |
| | | "type":"stn", |
| | | "id":"site-001", |
| | | "text":"001", |
| | | "top":827, |
| | | "left":314, |
| | | "top":619, |
| | | "left":311, |
| | | "width":100, |
| | | "height":24 |
| | | "height":20 |
| | | } |
| | | ] |
| | | } |
| New file |
| | |
| | |  |
| | | Microsoft Visual Studio Solution File, Format Version 12.00 |
| | | # Visual Studio 2012 |
| | | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WCS", "WCS\WCS.csproj", "{9E1CF5D3-6566-4636-AE12-C837971242CA}" |
| | | EndProject |
| | | Global |
| | | GlobalSection(SolutionConfigurationPlatforms) = preSolution |
| | | Debug|Any CPU = Debug|Any CPU |
| | | Release|Any CPU = Release|Any CPU |
| | | EndGlobalSection |
| | | GlobalSection(ProjectConfigurationPlatforms) = postSolution |
| | | {9E1CF5D3-6566-4636-AE12-C837971242CA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU |
| | | {9E1CF5D3-6566-4636-AE12-C837971242CA}.Debug|Any CPU.Build.0 = Debug|Any CPU |
| | | {9E1CF5D3-6566-4636-AE12-C837971242CA}.Release|Any CPU.ActiveCfg = Release|Any CPU |
| | | {9E1CF5D3-6566-4636-AE12-C837971242CA}.Release|Any CPU.Build.0 = Release|Any CPU |
| | | EndGlobalSection |
| | | GlobalSection(SolutionProperties) = preSolution |
| | | HideSolutionNode = FALSE |
| | | EndGlobalSection |
| | | EndGlobal |
| New file |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading; |
| | | using System.Windows.Forms; |
| | | using System.Net; |
| | | using System.Net.Sockets; |
| | | using DevComponents.DotNetBar; |
| | | |
| | | namespace WCS |
| | | { |
| | | /// <summary> |
| | | /// æ¡ç çº¿ç¨ |
| | | /// </summary> |
| | | class BarcodeThread |
| | | { |
| | | #region ç»é¢ä¸åæ¥æ¾ç¤ºæ§ä»¶ |
| | | public ListBox barcodedisplay; |
| | | public LabelX lb_barcode; |
| | | delegate void displayresponse(string text); |
| | | delegate void SetTextCallback(string barcode); |
| | | #endregion |
| | | |
| | | Thread trd = null; |
| | | string barcodeip = ""; |
| | | int barcodeno = 0; |
| | | int portno = 0; |
| | | |
| | | //int i = 1; |
| | | //int scaleno = 0; |
| | | main form1; |
| | | |
| | | private IPEndPoint ServerInfo; |
| | | private Socket socket; |
| | | private Byte[] MsgBuffer = new Byte[65535]; |
| | | private Byte[] MsgSend = new Byte[65535]; |
| | | |
| | | public BarcodeThread(int barcode_no, string barcode_ip, int port, main f) |
| | | { |
| | | try |
| | | { |
| | | barcodeno = barcode_no; |
| | | barcodeip = barcode_ip; |
| | | this.portno = port; |
| | | form1 = f; |
| | | //MsgBuffer = new Byte[65535]; |
| | | //MsgSend = new Byte[65535]; |
| | | |
| | | trd = new Thread(new ThreadStart(this.ThreadTask)); |
| | | trd.IsBackground = true; |
| | | trd.Start(); |
| | | } |
| | | catch (Exception em) |
| | | { |
| | | Common.WriteLogFile("WcsError", "BarcodeThread/BarcodeThread--æ¡ç 线ç¨å¯å¨åºé:" + em.Message); |
| | | } |
| | | } |
| | | |
| | | #region socketè¿æ¥ |
| | | /// <summary> |
| | | /// socketè¿æ¥WMSæå¡å¨ |
| | | /// </summary> |
| | | private void SocketConnect() |
| | | { |
| | | ServerInfo = new IPEndPoint(IPAddress.Parse(barcodeip), portno); |
| | | try |
| | | { |
| | | socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); |
| | | socket.Connect(ServerInfo); |
| | | //Int32 bytes = socket.Receive(MsgBuffer, MsgBuffer.Length, SocketFlags.None); |
| | | //StringBuilder buff = new StringBuilder(); |
| | | //String receiveData = Encoding.UTF8.GetString(MsgBuffer, 0, bytes); |
| | | //socket.Send(Encoding.Unicode.GetBytes("socket connectï¼")); |
| | | //RecevieData = "s"; |
| | | //socket.BeginReceive(MsgBuffer, 0, MsgBuffer.Length, 0, new AsyncCallback(ReceiveCallBack), null); |
| | | |
| | | DisplayInfo("ã" + DateTime.Now.ToString() + "ãè¯»åæ¡ç æ°æ®..."); |
| | | |
| | | } |
| | | catch (Exception em) |
| | | { |
| | | DisplayInfo("ã" + DateTime.Now.ToString() + "ãæ¡ç è¿æ¥å¤±è´¥ï¼" + em.Message); |
| | | Common.WriteLogFile("WcsError", "BarcodeThread/SocketConnect--æ¡ç è¿æ¥å¤±è´¥:" + em.Message); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// socketéæ°è¿æ¥WMSæå¡å¨ |
| | | /// </summary> |
| | | private void SocketReConnect() |
| | | { |
| | | if (socket.Connected) |
| | | { |
| | | socket.Close(); |
| | | } |
| | | Thread.Sleep(100); |
| | | SocketConnect(); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 夿socketæ¯å¦å·²è¿æ¥ |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | private bool checkSocket() |
| | | { |
| | | bool ret = true; |
| | | bool isConnected = false; |
| | | bool isRead = false; |
| | | bool isWrite = false; |
| | | bool isError = false; |
| | | int avalSize = 0; |
| | | try |
| | | { |
| | | isConnected = socket.Connected; |
| | | isRead = socket.Poll(50, SelectMode.SelectRead); |
| | | avalSize = socket.Available; |
| | | isWrite = socket.Poll(50, SelectMode.SelectWrite); |
| | | isError = socket.Poll(50, SelectMode.SelectError); |
| | | if (isConnected == false || isError == true || (isRead == true && avalSize == 0)) |
| | | { |
| | | ret = false; |
| | | } |
| | | } |
| | | catch (Exception em) |
| | | { |
| | | Common.WriteLogFile("WcsError", "BarcodeThread/checkSocket--夿æ¡ç æ¯å¦è¿æ¥å¤±è´¥:" + em.Message); |
| | | ret = false; |
| | | } |
| | | return ret; |
| | | } |
| | | #endregion |
| | | |
| | | /// <summary> |
| | | /// è·åæ¡ç æ«æå¨æ°æ®å¹¶è§£æ |
| | | /// </summary> |
| | | private void GetBarcodeData() |
| | | { |
| | | string dataValue = "P", s_RecStr = ""; |
| | | double d_RecStr = 0; |
| | | try |
| | | { |
| | | if (checkSocket() == false) |
| | | { |
| | | //è°ç¨éè¿ |
| | | //Common.gs_barcode_data[barcodeno - 1] = ""; |
| | | //DisplayInfo("ã" + DateTime.Now.ToString() + "ãæ¡ç è¿æ¥å·²æå¼ï¼éè¿..."); |
| | | SocketReConnect(); |
| | | return; |
| | | } |
| | | |
| | | MsgSend = Encoding.UTF8.GetBytes(dataValue); |
| | | if (socket.Connected) |
| | | { |
| | | // å主æºåéæ°æ®. |
| | | socket.Send(MsgSend, MsgSend.Length, SocketFlags.None); |
| | | //socket.Send(MsgSend); |
| | | //DisplayInfo("åéä¿¡æ¯ï¼" + dataValue); |
| | | //RecevieData = ""; |
| | | // æ¥æ¶ä¸»æºåºç |
| | | socket.ReceiveTimeout = 60000; |
| | | Int32 bytes = socket.Receive(MsgBuffer, MsgBuffer.Length, SocketFlags.None); |
| | | StringBuilder buff = new StringBuilder(); |
| | | if (bytes > 0) |
| | | { |
| | | // å°ç¼å²çåèæ°ç»ï¼è£
æ¢ä¸ºå符串. |
| | | // String receiveData = Encoding.ASCII.GetString(MsgBuffer, 0, bytes); |
| | | s_RecStr = Encoding.ASCII.GetString(MsgBuffer, 0, bytes); |
| | | s_RecStr = s_RecStr.Trim(''); |
| | | if (s_RecStr.IndexOf("NOREAD") >= 0)// || (s_RecStr.Length < 7 && s_RecStr.Length > 0)) |
| | | { |
| | | //Common.gs_barcode_data[barcodeno - 1] = ""; |
| | | DisplayInfo("ã" + DateTime.Now.ToString() + "ãæ¡ç è¿åä¿¡æ¯ï¼" + s_RecStr); |
| | | return; |
| | | } |
| | | if (s_RecStr.Length < 7) |
| | | { |
| | | return; |
| | | } |
| | | s_RecStr = s_RecStr.Substring(0, 7); |
| | | Common.gs_barcode_data[barcodeno - 1] = s_RecStr; |
| | | //DisplayBarcode(Common.gs_barcode_data[barcodeno - 1]); |
| | | DisplayInfo("ã" + DateTime.Now.ToString() + "ã" + Common.gs_barcode_data[barcodeno - 1]); |
| | | //DisplayInfo("æ¶å°æ¶æ¯ï¼" + receiveData); |
| | | // AnalysisReceive(receiveData); //è§£ææ¶å°çæ°æ® |
| | | // å å
¥å符串ç¼å |
| | | //buff.Append(str); |
| | | // 忬¡æ¥åï¼ççåé¢è¿ææ²¡ææ°æ®. |
| | | } |
| | | } |
| | | else |
| | | { |
| | | //Common.gs_barcode_data[barcodeno - 1] = ""; |
| | | DisplayInfo("ã" + DateTime.Now.ToString() + "ãæ¡ç è¿æ¥å·²æå¼ï¼æ æ³è¯»åæ°æ®ï¼"); |
| | | } |
| | | return; |
| | | } |
| | | catch(Exception em) |
| | | { |
| | | Common.WriteLogFile("WcsError", "BarcodeThread/GetBarcodeData--è¯»åæ¡ç æ°æ®å¤±è´¥:" + em.Message); |
| | | //Common.gs_barcode_data[barcodeno - 1] = ""; |
| | | //DisplayInfo("ã" + DateTime.Now.ToString() + "ãæ«æè¶
æ¶:" + t.Message); |
| | | //Thread.Sleep(400); |
| | | return; |
| | | } |
| | | } |
| | | |
| | | #region é讯åé¦åæ¥æ¾ç¤º |
| | | /// <summary> |
| | | /// æ¾ç¤ºæ¡ç éè®¯ä¿¡æ¯ |
| | | /// </summary> |
| | | /// <param name="text"></param> |
| | | private void DisplayInfo(string text) |
| | | { |
| | | if (barcodedisplay == null) |
| | | { |
| | | return; |
| | | } |
| | | if (barcodedisplay.InvokeRequired) |
| | | { |
| | | try |
| | | { |
| | | displayresponse d = new displayresponse(DisplayInfo); |
| | | barcodedisplay.Invoke(d, new object[] { text }); |
| | | } |
| | | catch (Exception em) |
| | | { |
| | | Common.WriteLogFile("WcsError", "BarcodeThread/DisplayInfo--忥æ¾ç¤ºæ¡ç é讯信æ¯å¤±è´¥:" + em.Message); |
| | | } |
| | | } |
| | | else |
| | | { |
| | | if (barcodedisplay.Items.Count > 12) |
| | | { |
| | | barcodedisplay.Items.Clear(); |
| | | } |
| | | barcodedisplay.Items.Add(text); |
| | | } |
| | | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æ¾ç¤ºæ¡ç å· |
| | | /// </summary> |
| | | /// <param name="text"></param> |
| | | private void DisplayBarcode(string barcode) |
| | | { |
| | | if (lb_barcode == null) |
| | | { |
| | | return; |
| | | } |
| | | if (lb_barcode.InvokeRequired) |
| | | { |
| | | try |
| | | { |
| | | SetTextCallback d = new SetTextCallback(DisplayBarcode); |
| | | lb_barcode.Invoke(d, new object[] { barcode }); |
| | | } |
| | | catch (Exception em) |
| | | { |
| | | Common.WriteLogFile("WcsError", "BarcodeThread/DisplayBarcode--忥æ¾ç¤ºæ¡ç å·å¤±è´¥:" + em.Message); |
| | | } |
| | | } |
| | | else |
| | | { |
| | | lb_barcode.Text = barcode; |
| | | } |
| | | |
| | | } |
| | | #endregion |
| | | |
| | | /// <summary> |
| | | /// æ¡ç ä¸»çº¿ç¨ |
| | | /// </summary> |
| | | private void ThreadTask() |
| | | { |
| | | SocketConnect(); |
| | | while (true) |
| | | { |
| | | GetBarcodeData(); |
| | | Thread.Sleep(Common.ci_BarcodetimeInterval); |
| | | } |
| | | } |
| | | |
| | | } |
| | | } |
| New file |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.ComponentModel; |
| | | using System.Data; |
| | | using System.Drawing; |
| | | using System.Text; |
| | | using System.Windows.Forms; |
| | | using System.Runtime.InteropServices; |
| | | using System.Data.SqlClient; |
| | | using System.Collections; |
| | | using System.IO; |
| | | using com.force.json; |
| | | using System.Net; |
| | | using System.Net.NetworkInformation; |
| | | using Oracle.ManagedDataAccess.Client; |
| | | |
| | | namespace WCS |
| | | { |
| | | public class Common |
| | | { |
| | | /// <summary> |
| | | /// ç³»ç»è·¯å¾ |
| | | /// </summary> |
| | | public static string filepath = System.Reflection.Assembly.GetExecutingAssembly().Location; |
| | | //public static string exepath = Application.ExecutablePath; |
| | | //public static string path = filepath.Substring(0, filepath.LastIndexOf('\\')); |
| | | |
| | | /// <summary> |
| | | /// ç³»ç»é
ç½®æä»¶ |
| | | /// </summary> |
| | | public static string sysinipath = filepath.Substring(0, filepath.LastIndexOf('\\')) + "\\System.ini"; |
| | | //public static string cmdinipath = filepath.Substring(0, filepath.LastIndexOf('\\')) + "\\Command.ini"; |
| | | //public static string inipath = filepath.Substring(0, filepath.LastIndexOf('\\')) + "\\labels\\"; |
| | | //public static string pbdpath = filepath.Substring(0, filepath.LastIndexOf('\\')) + "\\report.pbd"; |
| | | |
| | | /// <summary> |
| | | /// å
¬å¸åç§° |
| | | /// </summary> |
| | | public static string gs_companyName = ""; |
| | | |
| | | /// <summary> |
| | | /// ç³»ç»å¾çè·¯å¾ |
| | | /// </summary> |
| | | public static string picpath = filepath.Substring(0, filepath.LastIndexOf('\\')) + "\\image\\"; |
| | | |
| | | /// <summary> |
| | | /// ç³»ç»ä¿¡å·ï¼å¼¹åºæç¤ºæ¡åæ ¹æ®éæ©ä¼ å¼å主çªå£,åæèèçªå£é´ä¼ å |
| | | /// </summary> |
| | | public static bool sysinfo = false; |
| | | //public static bool logout = false; |
| | | //public static bool sameinfo = false; |
| | | |
| | | /// <summary> |
| | | /// ASRSæ°æ®åºè¿æ¥å符串 |
| | | /// </summary> |
| | | public static string sqlcon = "Initial Catalog=klsasrs2;Persist Security Info=True;User ID=sa;Password=sa@123;"; |
| | | //public static string sqlcon = "Initial Catalog=jsasrs;Persist Security Info=True;User ID=;Password=klsasrs@zy;"; |
| | | |
| | | /// <summary> |
| | | /// ERPæ°æ®åºè¿æ¥å符串 |
| | | /// </summary> |
| | | public static string erpcon = "Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=dm01db01-vip.dssyebs.com)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME = PROD)));User Id=HSTORE;Password=HSTORE;"; |
| | | |
| | | /// <summary> |
| | | /// æ°æ®åºæå¡å¨IP |
| | | /// </summary> |
| | | public static string serverIp = "127.0.0.1"; |
| | | |
| | | /// <summary> |
| | | /// WMSæ¥å£ |
| | | /// </summary> |
| | | public static string HttpUrl = ""; |
| | | |
| | | //public static string servername = "."; |
| | | //public static string login = "asrs"; |
| | | //public static string psw = "asrs"; |
| | | //public static int crnwriteadd = 80; |
| | | /// <summary> |
| | | /// å®ä¹FORMçªä½f1 |
| | | /// </summary> |
| | | public static Form f1 = null; |
| | | |
| | | /// <summary> |
| | | /// å åæºæ°é |
| | | /// </summary> |
| | | public static int ci_crn_count = 3; |
| | | /// <summary> |
| | | /// ç«ç¹æ°é |
| | | /// </summary> |
| | | public static int ci_sta_count = 36; |
| | | /// <summary> |
| | | /// PLCæ°é |
| | | /// </summary> |
| | | public static int ci_plc_count = 1; |
| | | /// <summary> |
| | | /// ç£
秤æ°é |
| | | /// </summary> |
| | | public static int ci_scale_count = 1; |
| | | /// <summary> |
| | | /// æ¡ç æ«æå¨æ°é |
| | | /// </summary> |
| | | public static int ci_barcode_count = 1; |
| | | /// <summary> |
| | | /// LEDæ¾ç¤ºå± |
| | | /// </summary> |
| | | public static int ci_led_count = 5; |
| | | |
| | | /// <summary> |
| | | /// å°è½¦æ°é |
| | | /// </summary> |
| | | public static int ci_rgv_count = 0; |
| | | |
| | | /// <summary> |
| | | /// WCSæå¡å¨Socket IP |
| | | /// </summary> |
| | | public static string gs_wcs_ip = ""; |
| | | /// <summary> |
| | | /// WCSæå¡å¨Socketç«¯å£ |
| | | /// </summary> |
| | | public static int gs_wcs_port = 10001; |
| | | |
| | | //public static int ci_plc_error_count = 7;// 91; |
| | | |
| | | /// <summary> |
| | | /// ç«ç¹éè¯¯æ° |
| | | /// </summary> |
| | | public static int ci_plcerrcount = 100; |
| | | public static string[] plcerr;// = new string[ci_plcerrcount]; |
| | | public static string[] gs_PlcErrDesc;// = new string[ci_plcerrcount]; |
| | | //public static int ci_plcerrrecord = 30; |
| | | //public static int[] gi_plc_err = new int[ci_plcerrrecord]; |
| | | /// <summary> |
| | | /// S7åæ°æ®å°è¥¿é¨åPLCäºéæ å¿ï¼å䏿¶é´åªå
许ä¸ä¸ªåå
¥ |
| | | /// </summary> |
| | | public static bool writeFlag = true; |
| | | |
| | | /// <summary> |
| | | /// ç£
秤ééä¸é |
| | | /// </summary> |
| | | public static double ci_scale_maxwt = 1000; |
| | | /// <summary> |
| | | /// ç£
秤ééä¸é |
| | | /// </summary> |
| | | public static double ci_scale_minwt = 30; |
| | | |
| | | /// <summary> |
| | | /// å åæºå
¥åºç«ç«ç¹ç¼å·æ°ç» |
| | | /// </summary> |
| | | public static int[] crn_inStns = new int[8] { 104,106,117,120,124,131,133,136 }; |
| | | |
| | | /// <summary> |
| | | /// å åæºåºåºç«ç«ç¹ç¼å·æ°ç» |
| | | /// </summary> |
| | | public static int[] crn_outStns = new int[4] { 101,110, 113,127 }; |
| | | |
| | | //public static bool[] plctag = new bool[2]; |
| | | //public static bool[] stasts = new bool[16]; |
| | | //public static bool[] stasts1 = new bool[4]; |
| | | //public static int[] gi_wrkno_pick = new int[5]; |
| | | //public static string[] gi_sts=new string[4]; |
| | | |
| | | #region 常éå®ä¹åº |
| | | //å åæºå
é¨ç¶æåæ°ç¶æå |
| | | public static long ch_crn_sdms = 1; //æå¨æ¨¡å¼ |
| | | public static long ch_crn_zdms = 2; //èªå¨æ¨¡å¼ |
| | | public static long ch_crn_dnms = 4; //çµèæ¨¡å¼ |
| | | public static long ch_crn_sdz = 8; //æå¨ä¸ |
| | | public static long ch_crn_zdz = 16; //èªå¨ä¸ |
| | | public static long ch_crn_dnmsz = 32; //çµè模å¼ä¸ |
| | | public static long ch_crn_jt = 64; //æ¥å |
| | | public static long ch_crn_yc = 128; //å¼å¸¸ |
| | | public static long ch_crn_dndmz = 256; //çµèå¾
å½ä¸ |
| | | public static long ch_crn_dnmljs = 512; //çµèå½ä»¤æ£ç¡®æ¥æ¶ |
| | | public static long ch_crn_rkz = 1024; //å
¥åºä¸ |
| | | public static long ch_crn_ckz = 2048; //åºåºä¸ |
| | | public static long ch_crn_kdkz = 4096; //åºå¯¹åºä¸ |
| | | public static long ch_crn_zdzz = 8192; //ç«å¯¹ç«ä¸ |
| | | public static long ch_crn_yxz = 16384; //ç§»è¡ä¸ |
| | | public static long ch_crn_dcqhjd = 32768; //å åæºåè´§é¶æ®µ |
| | | |
| | | // {CRN STATUS2} |
| | | public static long ch_crn_dcfhjd = 1; //å åæºæ¾è´§é¶æ®µ |
| | | public static long ch_crn_dckx = 2; //å åæºç©ºé² |
| | | public static long ch_crn_zxyddw = 4; //èµ°è¡åç¹å®ä½ |
| | | public static long ch_crn_sjyddw = 8; //åéåç¹å®ä½ |
| | | public static long ch_crn_zxzdw = 16; //èµ°è¡å¨å®ä½ |
| | | public static long ch_crn_cyzzj = 32; //åçå¨ä¸é´ |
| | | public static long ch_crn_cyzzd = 64; //åçå¨å·¦ç«¯ |
| | | public static long ch_crn_cyzyd = 128; //åçå¨å³ç«¯ |
| | | public static long ch_crn_sjsdw = 256; //åéä¸å®ä½ |
| | | public static long ch_crn_sjxdw = 512; //åéä¸å®ä½ |
| | | public static long ch_crn_plcdlbz = 1024; //plcçµåä¸è¶³ |
| | | public static long ch_crn_sjtycyw = 2048; //åéå°æç© |
| | | |
| | | //public static bool[] gl_crn_status = new bool[ci_crn_count]; |
| | | |
| | | //plcç¶æå |
| | | public static int ch_d1 = 1; |
| | | public static int ch_d2 = 2; |
| | | public static int ch_d3 = 4; |
| | | public static int ch_d4 = 8; |
| | | public static int ch_d5 = 16; |
| | | public static int ch_d6 = 32; |
| | | public static int ch_d7 = 64; |
| | | public static int ch_d8 = 128; |
| | | public static int ch_d9 = 256; |
| | | public static int ch_d10 = 512; |
| | | public static long ch_d11 = 1024; |
| | | public static long ch_d12 = 2048; |
| | | public static long ch_d13 = 4096; |
| | | public static long ch_d14 = 8192; |
| | | public static long ch_d15 = 16384; |
| | | public static long ch_d16 = 32768; |
| | | |
| | | //å åæºå·¥ä½æ¨¡å¼ |
| | | /// <summary> |
| | | /// æå¨æ¨¡å¼ |
| | | /// </summary> |
| | | public static int ci_CRN_MANUAL = 1; |
| | | /// <summary> |
| | | /// èªå¨æ¨¡å¼ |
| | | /// </summary> |
| | | public static int ci_CRN_AUTO = 2; |
| | | /// <summary> |
| | | /// è¿çº¿æ¨¡å¼ |
| | | /// </summary> |
| | | public static int ci_CRN_ONLINE = 3; |
| | | |
| | | //å åæºioç¶æ |
| | | public static int ci_CRN_LINK = 1; |
| | | public static int ci_CRN_RESET = 2; |
| | | public static int ci_CRN_CLEAR = 3; |
| | | public static int ci_CRN_HOME = 4; |
| | | public static int ci_CRN_STN = 5; |
| | | public static int ci_CRN_SHELF = 6; |
| | | public static int ci_CRN_INQUIRY = 7; |
| | | public static int ci_CRN_STORE = 7; |
| | | public static int ci_CRN_RETRIEVE = 8; |
| | | public static int ci_CRN_MOVE = 10; |
| | | public static int ci_CRN_STNTOSTN = 11; |
| | | public static int ci_CRN_LOCTOLOC = 12; |
| | | |
| | | //å åæºç¶æ |
| | | /// <summary> |
| | | /// åå§å |
| | | /// </summary> |
| | | public static int ci_CRN_STS_INIT = -1; |
| | | /// <summary> |
| | | /// 空é²ï¼æ ä»»å¡ |
| | | /// </summary> |
| | | public static int ci_CRN_STS_IDLE = 0; |
| | | /// <summary> |
| | | /// åè´§å®ä½ä¸ |
| | | /// </summary> |
| | | public static int ci_CRN_STS_FETCH_MOVING = 1; |
| | | /// <summary> |
| | | /// åè´§ä¸ |
| | | /// </summary> |
| | | public static int ci_CRN_STS_FETCH = 2; |
| | | /// <summary> |
| | | /// åè´§å®æï¼æ¾è´§å®ä½ä¸ |
| | | /// </summary> |
| | | public static int ci_CRN_STS_RELEASE_MOVING = 3; |
| | | /// <summary> |
| | | /// æ¾è´§ä¸ |
| | | /// </summary> |
| | | public static int ci_CRN_STS_RELEASE = 4; |
| | | /// <summary> |
| | | /// ååç¹ä¸ |
| | | /// </summary> |
| | | public static int ci_CRN_STS_HP = 5; |
| | | /// <summary> |
| | | /// å»ååç¹ä¸ |
| | | /// </summary> |
| | | public static int ci_CRN_STS_OHP = 6; |
| | | /// <summary> |
| | | /// åºä½ç§»è½¬ä¸ |
| | | /// </summary> |
| | | public static int ci_CRN_STS_LOC_MOVE = 7; |
| | | /// <summary> |
| | | /// ä»»å¡å®æï¼çå¾
WCS确认 |
| | | /// </summary> |
| | | public static int ci_CRN_STS_TASK_FINISH = 90; |
| | | |
| | | //public static int ci_CRN_SETTING = 0; |
| | | //public static int ci_CRN_STS_IDLE = 1; |
| | | public static int ci_CRN_STS_STORE_MOVE = 2; //{ STORE COMMAND } |
| | | public static int ci_CRN_STS_RETRIEVE_MOVE = 3; //{ RETRIEVE COMMAND } |
| | | public static int ci_CRN_STS_MOVING = 4; //{ MOVE COMMAND } |
| | | public static int ci_CRN_STS_STORE_OK = 5; |
| | | public static int ci_CRN_STS_RETRIEVE_OK = 6; |
| | | public static int ci_CRN_STS_MOVING_OK = 7; |
| | | public static int ci_CRN_STS_ERROR = 8; |
| | | public static int ci_CRN_STS_ERROR_IDLE = 9; |
| | | //public static int ci_CRN_STS_OHP = 10; |
| | | public static int ci_CRN_STS_STOP = 11; |
| | | public static int ci_CRN_STS_STNCHG_MOVE = 12; |
| | | public static int ci_CRN_STS_STNCHG_OK = 13; |
| | | public static int ci_CRN_STS_LOCATION_MOVE = 14; |
| | | public static int ci_CRN_STS_LOCATION_MOVE_OK = 16; |
| | | public static int ci_CRN_STS_HP_POSITION = 15; ///20061007 |
| | | |
| | | //å·¥ä½ç¶æ |
| | | public static int ci_WRK_STORE_SETDATA = 1; |
| | | public static int ci_WRK_STORE_SETPLC = 2; |
| | | public static int ci_WRK_STORE_SETCRN = 3; |
| | | public static int ci_WRK_STORE_OK = 4; |
| | | public static int ci_WRK_STORE_UPDDB = 5; |
| | | public static int ci_WRK_STORE_exit = 6; |
| | | public static int ci_WRK_STNMOVE_OK = 7; |
| | | |
| | | public static int ci_WRK_RETRIEVE_SETDATA = 11; |
| | | public static int ci_WRK_RETRIEVE_SETCRN = 12; |
| | | public static int ci_WRK_RETRIEVE_OK = 14; |
| | | public static int ci_WRK_RETRIEVE_UPDDB = 15; |
| | | |
| | | public static int ci_plc_MAX = 10; //PLCæå¤§éåæ° |
| | | |
| | | //plcå·¥ä½å½ä»¤ç±»å |
| | | public static int ci_PLC_SETID = 1; |
| | | public static int ci_PLC_SETDEST = 2; |
| | | public static int ci_PLC_SETIDDEST = 3; |
| | | |
| | | //COMUCATION I/O BUFFER SIZE |
| | | public static int ci_crn_MAXBUFSIZE = 4096; |
| | | public static int ci_barcode_MAXBUFSIZE = 4096; |
| | | //public static int ci_MAXINCOUNT = 35; |
| | | //public static int ci_MAXOUTCOUNT = 50; |
| | | |
| | | /// <summary> |
| | | /// CRANE SLEEP TIME |
| | | /// </summary> |
| | | public static int ci_CRNtimeInterval = 300; |
| | | /// <summary> |
| | | /// PLC SLEEP TIME |
| | | /// </summary> |
| | | public static int ci_PLCtimeInterval = 300; |
| | | /// <summary> |
| | | /// Barcode Scanner SLEEP TIME |
| | | /// </summary> |
| | | public static int ci_BarcodetimeInterval = 200; |
| | | /// <summary> |
| | | /// LED SLEEP TIME |
| | | /// </summary> |
| | | public static int ci_LedtimeInterval = 200; |
| | | |
| | | /// <summary> |
| | | /// ç³»ç»è¿è¡ä¸ |
| | | /// </summary> |
| | | public static int ch_CMD_START = 1; |
| | | /// <summary> |
| | | /// ç³»ç»æåä¸ |
| | | /// </summary> |
| | | public static int ch_CMD_PAUSE = 10; |
| | | /// <summary> |
| | | /// ç³»ç»å
³éä¸ |
| | | /// </summary> |
| | | public static int ch_CMD_CLOSE = 100; |
| | | #endregion |
| | | |
| | | //-------------------------------------------------------------åéå®ä¹--------------------------------------------------------------------------- |
| | | /// <summary> |
| | | /// ä¸åå åæºå½ä»¤åï¼çå¾
ä¸ä¸ªå¨æï¼å夿å åæºæ¯å¦ç©ºé² |
| | | /// </summary> |
| | | public static int gi_cycle_flag = 0; |
| | | |
| | | /// <summary> |
| | | /// å åæºIP |
| | | /// </summary> |
| | | public static string[] gs_crn_ip = new string[ci_crn_count]; |
| | | /// <summary> |
| | | /// PLCè¾é设å¤IP |
| | | /// </summary> |
| | | public static string[] gs_plc_ip = new string[ci_plc_count]; |
| | | /// <summary> |
| | | /// ç£
秤端å£å·ï¼ä¸²å£ |
| | | /// </summary> |
| | | public static int[] gi_scale_port = new int[ci_scale_count]; |
| | | /// <summary> |
| | | /// ç£
秤设å¤IP |
| | | /// </summary> |
| | | public static string[] gs_scale_ip = new string[ci_scale_count]; |
| | | /// <summary> |
| | | /// æ¡ç 设å¤ä¸²å£ç«¯å£ |
| | | /// </summary> |
| | | public static int[] gs_barcode_port = new int[ci_barcode_count]; |
| | | /// <summary> |
| | | /// æ¡ç 设å¤IP |
| | | /// </summary> |
| | | public static string[] gs_barcode_ip = new string[ci_barcode_count]; |
| | | /// <summary> |
| | | /// æ¡ç 设å¤IP |
| | | /// </summary> |
| | | public static string[] gs_led_ip = new string[ci_led_count]; |
| | | /// <summary> |
| | | /// ç£
ç§¤ç§°éæ°æ® |
| | | /// </summary> |
| | | public static double[] gd_gross_wt = new double[ci_scale_count]; |
| | | /// <summary> |
| | | /// æ¡ç æ«ææ°æ® |
| | | /// </summary> |
| | | public static string[] gs_barcode_data = new string[ci_barcode_count]; |
| | | /// <summary> |
| | | /// LEDå¾
åéæ°æ® |
| | | /// </summary> |
| | | public static string[] gs_led_data = new string[ci_led_count]; |
| | | public static string[] gs_led_data_pre = new string[ci_led_count]; |
| | | |
| | | ///// <summary> |
| | | ///// LEDé¡µæ° |
| | | ///// </summary> |
| | | //public static int[] gi_led_Pages = new int[ci_led_count]; |
| | | |
| | | /// <summary> |
| | | /// LED页ç |
| | | /// </summary> |
| | | public static int[] gi_led_PageNumber = new int[ci_led_count]; |
| | | |
| | | /// <summary> |
| | | /// LEDæ¾ç¤ºå½å页ç |
| | | /// </summary> |
| | | public static int[] gi_led_CurPageNumber = new int[ci_led_count]; |
| | | |
| | | /// <summary> |
| | | /// LEDæ¾ç¤ºå¾ªç¯æ¬¡æ° |
| | | /// </summary> |
| | | public static int[] gi_led_Counts = new int[ci_led_count]; |
| | | |
| | | ///// <summary> |
| | | ///// LEDæ¾ç¤ºææ |
| | | ///// </summary> |
| | | //public static int[] gi_led_ShowStyle = new int[ci_led_count]; |
| | | |
| | | /// <summary> |
| | | /// å°è½¦ä½ç½® |
| | | /// </summary> |
| | | public static int[] gi_RGVPos = new int[ci_rgv_count]; |
| | | |
| | | /// <summary> |
| | | /// æ«æè¶
æ¶æ¶é´å¤æ |
| | | /// </summary> |
| | | public static double gd_scanTimeout = 4; |
| | | |
| | | ///// <summary> |
| | | ///// PLC工使¨¡å¼ï¼0--å
¥åºï¼1--åºåº |
| | | ///// </summary> |
| | | //public static int gi_PLCModel = 0; |
| | | ///// <summary> |
| | | ///// PLCæå·¥å®æåºåºä¿¡å·ï¼å·¥ä½æ¡£å°12->14 |
| | | ///// </summary> |
| | | //public static int gi_PLCClear = 0; |
| | | |
| | | /// <summary> |
| | | /// 1å·ç«æ¡ç æ«æå¤æææ²¡ææ«å°ï¼è®¡æ¶å¤æ |
| | | /// </summary> |
| | | public static DateTime barcodeTime = DateTime.Now; |
| | | public static int barcodeFlag = 0; |
| | | //public static string gs_barcode = ""; |
| | | |
| | | #region LEDåæ° |
| | | /// <summary> |
| | | /// æ¾ç¤ºå±å®½åº¦ |
| | | /// </summary> |
| | | public static int SCREEN_WIDTH = 96; |
| | | /// <summary> |
| | | /// æ¾ç¤ºå±é«åº¦ |
| | | /// </summary> |
| | | public static int SCREEN_HEIGHT = 48; |
| | | public static int CONTROLLER_TYPE = 850; //æ§å¶å¨ç±»å |
| | | public static int SCREEN_TYPE = 1; //æ¾ç¤ºå±ç±»å |
| | | public static int SCREEN_PIXELMODE = 1; //ç¹éµç±»å |
| | | public static int SCREEN_DATADA = 0; //æ°æ®ææ§ |
| | | public static int SCREEN_DATAOE = 0; //OEææ§ |
| | | public static int SCREEN_ROWORDER = 0; //è¡åºæ¨¡å¼ |
| | | public static int SCREEN_FREQPAR = 0; //æ«æç¹é¢ |
| | | |
| | | public static string SCREEN_COMM = "COM1"; //ä¸²å£ |
| | | public static int SCREEN_BAUD = 57600; //䏲壿³¢ç¹ç |
| | | public static string SCREEN_STATUSFILE = "C:\\ScreenStatus.ini"; //æ¾ç¤ºå±ç¶æä¿åæä»¶ |
| | | |
| | | public static int SCREEN_SENDMODE = 2; //é讯模å¼,0:ä¸²å£ 2:ç½ç» 4:wifi |
| | | public const int SENDALLPROGRAM = 41456; //åéææèç®ä¿¡æ¯ã |
| | | /// <summary> |
| | | /// åéæ°æ®ç»æ§å¶å¡æ¶äºæ¥ä½ç¨ï¼æ¯æ¬¡åªè½åé䏿¡è¿å» |
| | | /// </summary> |
| | | public static bool m_bSendBusy = false; |
| | | #endregion |
| | | |
| | | //public static string barrec = ""; |
| | | public static int[] areamode = new int[4]; |
| | | //public static bool insesheettag = false; |
| | | //public static string[] gs_barcode_tmp = new string[5]; |
| | | public static string[] crncmd = new string[ci_crn_count]; |
| | | public static int[] crnwrkno = new int[ci_crn_count]; |
| | | //public static int[] pickquereseq = new int[12]; |
| | | //public static int bk = 1; |
| | | |
| | | public static Form form1 = null; |
| | | public static Form form2 = null; |
| | | //public static bool stnmove = true; |
| | | //public static bool crnmove = true; |
| | | //public static bool crnallow = true; |
| | | |
| | | public static int gi_Online_Flag = 10; |
| | | public static bool[] gb_crn_status = new bool[ci_crn_count]; |
| | | //public static int gi_wrkfileh = 0; |
| | | public static string[] gs_crnlastio = new string[ci_crn_count]; |
| | | public static int[] gi_crnstn = new int[ci_crn_count]; |
| | | public static string[] gs_crn_data_pre = new string[ci_crn_count]; |
| | | public static int[] gi_crn_wrkno = new int[ci_crn_count]; |
| | | public static string[] gs_crn_err_pre = new string[ci_crn_count]; |
| | | //public static int[] clrled = new int[10]; |
| | | public static int gi_buffer_count = 16; |
| | | public static int gi_trolleypos_count = 2; |
| | | //public static int[] stnbuffer = new int[gi_buffer_count];// |
| | | public static int[] trolleypos = new int[gi_trolleypos_count];//2个ï¼14ï¼29 |
| | | //public static int[] ci_stnbuffer = new int[gi_buffer_count]; |
| | | public static int[] gi_stabuffer = new int[gi_buffer_count]; |
| | | //public static int[] gi_crn_actsts = new int[ci_crn_count]; |
| | | public static int[] gi_stn_iotype = new int[ci_sta_count]; |
| | | |
| | | public static int[] g_ari_staion = new int[ci_sta_count]; |
| | | public static string[] g_ars_staion_name = new string[ci_sta_count]; |
| | | public static int[] g_ari_staion_plc_no = new int[ci_sta_count]; |
| | | public static Control[] g_ari_staion_Component_seq = new Control[ci_sta_count]; |
| | | public static int[] g_ari_station_idaddr = new int[ci_sta_count]; |
| | | public static int[] g_ari_station_stsaddr = new int[ci_sta_count]; |
| | | public static int[] g_ari_station_destaddr = new int[ci_sta_count]; |
| | | public static string[] gs_plc_data_pre = new string[ci_sta_count]; |
| | | public static int[] gi_crn_iotype = new int[ci_crn_count]; |
| | | public static int[] gi_loctype = new int[ci_sta_count]; |
| | | |
| | | //å åæºåé |
| | | //public static string[,] crnstsvalue = new string[ci_crn_count, 33]; |
| | | public static string[] crnerrlist = new string[ci_crn_count]; |
| | | //public static string[] crnip = new string[ci_crn_count]; |
| | | |
| | | public static int[] crn_i_crnno = new int[ci_crn_count]; |
| | | public static int[] crn_i_crn_sts = new int[ci_crn_count]; |
| | | |
| | | /// <summary> |
| | | /// å åæºå½ä»¤ |
| | | /// </summary> |
| | | public static string[] gs_crncmd = new string[ci_crn_count]; |
| | | public static string[] crn_s_commandstr = new string[ci_crn_count]; |
| | | public static int[] crn_i_kind = new int[ci_crn_count]; |
| | | public static int[] crn_i_Wrkno = new int[ci_crn_count]; |
| | | public static int[] crn_i_fstn = new int[ci_crn_count]; |
| | | public static int[] crn_i_tstn = new int[ci_crn_count]; |
| | | public static string[] crn_s_Flocno = new string[ci_crn_count]; |
| | | public static string[] crn_s_Tlocno = new string[ci_crn_count]; |
| | | public static int[] crn_i_Errcod = new int[ci_crn_count]; |
| | | public static bool[] gi_Yanshi_Flag = new bool[ci_crn_count]; |
| | | /// <summary> |
| | | /// æ¯å¦å¨åç¹ï¼1=åç¹ |
| | | /// </summary> |
| | | public static int[] crn_i_onHP = new int[ci_crn_count]; |
| | | |
| | | ////////////////////---------------------------å åæºåé表-------------------------- |
| | | #region å åæº(CRN)ç¶æä¿¡æ¯ |
| | | /// <summary> |
| | | /// å åæºå·¥ä½æ¨¡å¼ï¼0 = 离线模å¼ï¼1=æå¨æ¨¡å¼ä¸ï¼2=èªå¨æ¨¡å¼ä¸,3=çµèè¿çº¿æ¨¡å¼ä¸ |
| | | /// </summary> |
| | | public static int[] Mode = new int[ci_crn_count]; |
| | | |
| | | /// <summary> |
| | | /// å åæºå½åä»»å¡å· |
| | | /// </summary> |
| | | public static int[] TaskNo = new int[ci_crn_count]; |
| | | |
| | | /// <summary> |
| | | /// SRMå·¥ä½1å½å任塿§è¡ç¶æï¼0=空é²ï¼1=åè´§å®ä½ä¸ï¼2=åè´§ä¸ï¼3=åè´§å®æï¼æ¾è´§å®ä½ä¸ï¼ |
| | | /// 4=æ¾è´§ä¸ï¼5=ååç¹ä¸ï¼6=å»ååç¹ä¸ï¼7=åºä½ç§»è½¬ï¼90=ä»»å¡å®æ,WCSæªç¡®è®¤ï¼99=æ¥è¦ |
| | | /// </summary> |
| | | public static int[] CrnState = new int[ci_crn_count]; |
| | | |
| | | ///// <summary> |
| | | ///// å åæºå½ååå· |
| | | ///// </summary> |
| | | //public static int[] CurBay = new int[ci_crn_count]; |
| | | |
| | | ///// <summary> |
| | | ///// å åæºå½åå±å· |
| | | ///// </summary> |
| | | //public static int[] CurLev = new int[ci_crn_count]; |
| | | |
| | | /// <summary> |
| | | /// å åæºå½åè´§åä½ç½®ï¼0=è´§ååä½ï¼1=è´§åå¨å·¦ä¾§ï¼2=è´§åå¨å³ä¾§ |
| | | /// </summary> |
| | | public static int[] ForkPos = new int[ci_crn_count]; |
| | | |
| | | /// <summary> |
| | | /// å åæºå½å载货å°å®ä½ä½ç½®ï¼1=ä¸å®ä½ï¼2=ä¸å®ä½ï¼0=ä¸å¨å®ä½ |
| | | /// </summary> |
| | | public static int[] LiftPos = new int[ci_crn_count]; |
| | | |
| | | /// <summary> |
| | | /// å åæºèµ°è¡å®ä½ä½ç½®ï¼1=å¨å®ä½ï¼0=ä¸å¨å®ä½ |
| | | /// </summary> |
| | | public static int[] WalkPos = new int[ci_crn_count]; |
| | | |
| | | /// <summary> |
| | | /// =1 å åæºä»»å¡å®æä¿¡å· |
| | | /// </summary> |
| | | public static int[] TaskFinish = new int[ci_crn_count]; |
| | | |
| | | /// <summary> |
| | | /// SRMå·¥ä½1ä»»å¡å®æå¤çæ è®°,鲿¢éå¤å¤çãé»è®¤ä¸º0ï¼timer1æ ¹æ®F1TaskFinishå¤ç工使¡£ç¶æåèµå¼1 |
| | | /// å åæºçº¿ç¨ä¸ä¸å确认信æ¯åï¼é置为0 |
| | | /// </summary> |
| | | public static int[] TaskFlag = new int[ci_crn_count]; |
| | | |
| | | /// <summary> |
| | | /// =1 å åæºè½½è´§å°æè´§ |
| | | /// </summary> |
| | | public static int[] Loaded = new int[ci_crn_count]; |
| | | |
| | | /// <summary> |
| | | /// å åæºå¼å¸¸ç |
| | | /// </summary> |
| | | public static int[] AlarmCode = new int[ci_crn_count]; |
| | | |
| | | /// <summary> |
| | | /// å åæºèµ°è¡é度(m/min) |
| | | /// </summary> |
| | | public static float[] WalkSpeed = new float[ci_crn_count]; |
| | | |
| | | /// <summary> |
| | | /// å åæºåéé度(m/min) |
| | | /// </summary> |
| | | public static float[] LiftSpeed = new float[ci_crn_count]; |
| | | |
| | | /// <summary> |
| | | /// å åæºåçé度(m/min) |
| | | /// </summary> |
| | | public static float[] ForkSpeed = new float[ci_crn_count]; |
| | | |
| | | /// <summary> |
| | | /// å åæºç´¯è®¡èµ°è¡è·ç¦»(km) |
| | | /// </summary> |
| | | public static float[] XDistance = new float[ci_crn_count]; |
| | | |
| | | /// <summary> |
| | | /// å åæºç´¯è®¡åéè·ç¦»(km) |
| | | /// </summary> |
| | | public static float[] YDistance = new float[ci_crn_count]; |
| | | |
| | | /// <summary> |
| | | /// å åæºç´¯è®¡èµ°è¡æ¶é¿(H) |
| | | /// </summary> |
| | | public static float[] XDuration = new float[ci_crn_count]; |
| | | |
| | | /// <summary> |
| | | /// å åæºç´¯è®¡åéæ¶é¿(H) |
| | | /// </summary> |
| | | public static float[] YDuration = new float[ci_crn_count]; |
| | | |
| | | ///// <summary> |
| | | ///// 1=SRMå¤äºæ¥è¦ç¶æ |
| | | ///// </summary> |
| | | //public static int[] AlarmStatus = new int[ci_crn_count]; |
| | | |
| | | |
| | | ///// <summary> |
| | | ///// SRMå·¥ä½1å½åè´§åä½ç½®ï¼[1ï¼å·¦è¿ï¼2ï¼ä¸ä½ï¼3ï¼å³è¿,4ï¼å·¦è¿ï¼5ï¼å³è¿] |
| | | ///// </summary> |
| | | //public static int[] F1PosZ = new int[ci_crn_count]; |
| | | |
| | | ///// <summary> |
| | | ///// SRMå½åååæ ï¼åä½mm |
| | | ///// </summary> |
| | | //public static double[] PosXmm = new double[ci_crn_count]; |
| | | |
| | | ///// <summary> |
| | | ///// SRMå½åå±åæ ï¼åä½mm |
| | | ///// </summary> |
| | | //public static double[] PosYmm = new double[ci_crn_count]; |
| | | |
| | | ///// <summary> |
| | | ///// SRMå·¥ä½1å½åè´§ååæ ï¼åä½mm |
| | | ///// </summary> |
| | | //public static double[] F1PosZmm = new double[ci_crn_count]; |
| | | |
| | | ///// <summary> |
| | | ///// SRMå·¥ä½2å½å任塿§è¡ç¶æï¼0=ä½ç½®ï¼1=空é²ï¼2=æ£æ¥ä»»å¡æ°æ®ï¼3=å®ä½å°åè´§ä½ï¼7=åè´§å®æï¼ |
| | | ///// 8=çå¾
è°åº¦æå
许ï¼9=ç§»å¨å°æ¾è´§ä½ç½®ï¼10=æ¾è´§ä¸ï¼13=æ¬è¿å®æï¼14=空载é¿è®©ï¼15=æ£æ¥ä»»å¡æ°æ® |
| | | ///// 20=æ£æ¥æºä½ç½®ï¼21=æ£æ¥ç®æ ä½ç½®ï¼50=ç§»å¨ä»»å¡ï¼98=ä»»å¡å®æ,WCSæªç¡®è®¤ï¼99=æ¥è¦ |
| | | ///// </summary> |
| | | //public static int[] F2State = new int[ci_crn_count]; |
| | | |
| | | #endregion |
| | | |
| | | #region å åæºç¶æåå®ä¹ |
| | | /// <summary> |
| | | /// æå¨æ¨¡å¼ |
| | | /// </summary> |
| | | public static bool[] crn_sdms = new bool[ci_crn_count]; |
| | | /// <summary> |
| | | /// èªå¨æ¨¡å¼ |
| | | /// </summary> |
| | | public static bool[] crn_zdms = new bool[ci_crn_count]; |
| | | /// <summary> |
| | | /// çµèæ¨¡å¼ |
| | | /// </summary> |
| | | public static bool[] crn_dnms = new bool[ci_crn_count]; |
| | | /// <summary> |
| | | /// æå¨ä¸ |
| | | /// </summary> |
| | | public static bool[] crn_sdz = new bool[ci_crn_count]; |
| | | /// <summary> |
| | | /// èªå¨ä¸ |
| | | /// </summary> |
| | | public static bool[] crn_zdz = new bool[ci_crn_count]; |
| | | /// <summary> |
| | | /// çµè模å¼ä¸ |
| | | /// </summary> |
| | | public static bool[] crn_dnmsz = new bool[ci_crn_count]; |
| | | /// <summary> |
| | | /// æ¥å |
| | | /// </summary> |
| | | public static bool[] crn_jt = new bool[ci_crn_count]; |
| | | /// <summary> |
| | | /// å¼å¸¸ |
| | | /// </summary> |
| | | public static bool[] crn_yc = new bool[ci_crn_count]; |
| | | /// <summary> |
| | | /// ä¿ç |
| | | /// </summary> |
| | | public static bool[] crn_dndmz = new bool[ci_crn_count]; |
| | | /// <summary> |
| | | /// ä»»å¡å®æ |
| | | /// </summary> |
| | | public static bool[] crn_dnmljs = new bool[ci_crn_count]; |
| | | /// <summary> |
| | | /// å
¥åºä¸ |
| | | /// </summary> |
| | | public static bool[] crn_rkz = new bool[ci_crn_count]; |
| | | /// <summary> |
| | | /// åºåºä¸ |
| | | /// </summary> |
| | | public static bool[] crn_ckz = new bool[ci_crn_count]; |
| | | /// <summary> |
| | | /// åºå°åº |
| | | /// </summary> |
| | | public static bool[] crn_kdkz = new bool[ci_crn_count]; |
| | | /// <summary> |
| | | /// ç«å°ç« |
| | | /// </summary> |
| | | public static bool[] crn_zdzz = new bool[ci_crn_count]; |
| | | /// <summary> |
| | | /// å»åç¹ |
| | | /// </summary> |
| | | public static bool[] crn_yxz = new bool[ci_crn_count]; |
| | | /// <summary> |
| | | /// å»ååç¹ |
| | | /// </summary> |
| | | public static bool[] crn_dcqhjd = new bool[ci_crn_count]; |
| | | /// <summary> |
| | | /// æ¾è´§é¶æ®µ |
| | | /// </summary> |
| | | public static bool[] crn_dcfhjd = new bool[ci_crn_count]; |
| | | /// <summary> |
| | | /// åè½¦ç©ºé² |
| | | /// </summary> |
| | | public static bool[] crn_dckx = new bool[ci_crn_count]; |
| | | /// <summary> |
| | | /// èµ°è¡åç¹å®ä½ |
| | | /// </summary> |
| | | public static bool[] crn_zxyddw = new bool[ci_crn_count]; |
| | | /// <summary> |
| | | /// åéåç¹å®ä½ |
| | | /// </summary> |
| | | public static bool[] crn_sjyddw = new bool[ci_crn_count]; |
| | | /// <summary> |
| | | /// èµ°è¡å¨å®ä½ |
| | | /// </summary> |
| | | public static bool[] crn_zxzdw = new bool[ci_crn_count]; |
| | | /// <summary> |
| | | /// åçå¨ä¸é´ |
| | | /// </summary> |
| | | public static bool[] crn_cyzzj = new bool[ci_crn_count]; |
| | | /// <summary> |
| | | /// åçå¨å·¦ç«¯ |
| | | /// </summary> |
| | | public static bool[] crn_cyzzd = new bool[ci_crn_count]; |
| | | /// <summary> |
| | | /// åçå¨å³ç«¯ |
| | | /// </summary> |
| | | public static bool[] crn_cyzyd = new bool[ci_crn_count]; |
| | | /// <summary> |
| | | /// åéä¸å®ä½ |
| | | /// </summary> |
| | | public static bool[] crn_sjsdw = new bool[ci_crn_count]; |
| | | /// <summary> |
| | | /// åéä¸å®ä½ |
| | | /// </summary> |
| | | public static bool[] crn_sjxdw = new bool[ci_crn_count]; |
| | | /// <summary> |
| | | /// ä¿ç |
| | | /// </summary> |
| | | public static bool[] crn_plcdlbz = new bool[ci_crn_count]; |
| | | /// <summary> |
| | | /// åéå°æç© |
| | | /// </summary> |
| | | public static bool[] crn_sjtycyw = new bool[ci_crn_count]; |
| | | /// <summary> |
| | | /// å½åææ° |
| | | /// </summary> |
| | | public static int[] crn_dqps = new int[ci_crn_count]; |
| | | /// <summary> |
| | | /// å½å屿° |
| | | /// </summary> |
| | | public static int[] crn_dqcs = new int[ci_crn_count]; |
| | | /// <summary> |
| | | /// èµ°è¡éå°è·ç¦» |
| | | /// </summary> |
| | | public static double[] crn_zxlsz = new double[ci_crn_count]; |
| | | /// <summary> |
| | | /// åééå°è·ç¦» |
| | | /// </summary> |
| | | public static double[] crn_sjlsz = new double[ci_crn_count]; |
| | | public static int[] crn_dnmlyc = new int[ci_crn_count]; |
| | | /// <summary> |
| | | /// 设å¤å¼å¸¸ç |
| | | /// </summary> |
| | | public static int[] crn_ycmm = new int[ci_crn_count]; |
| | | public static int[] crn_yczm = new int[ci_crn_count]; |
| | | |
| | | //public static int[] crn_zxlsz1 = new int[ci_crn_count]; |
| | | //public static int[] crn_zxlsz2 = new int[ci_crn_count]; |
| | | //public static int[] crn_sjlsz1 = new int[ci_crn_count]; |
| | | //public static int[] crn_sjlsz2 = new int[ci_crn_count]; |
| | | #endregion |
| | | |
| | | public static string[] crncmdtext = new string[ci_crn_count]; |
| | | //å®ä¹plcåé |
| | | //public struct sta |
| | | //{ |
| | | public static int PlcMaxQuereCount = 10;//plcæå¤§éåå卿°é |
| | | public static string[,] s_cmd = new string[4, PlcMaxQuereCount]; |
| | | //public static Queue<string> PlcAQueue = new Queue<string>(); |
| | | //public static Queue<string> PlcBQueue = new Queue<string>(); |
| | | |
| | | public static string[,] plc_s_dev_no = new string[ci_plc_count, ci_sta_count]; |
| | | public static string[,] plc_s_type_mk = new string[ci_plc_count, ci_sta_count]; |
| | | public static string[,] plc_s_term_mk = new string[ci_plc_count, ci_sta_count]; |
| | | public static int[,] plc_i_status = new int[ci_plc_count, ci_sta_count]; |
| | | public static int[,] plc_i_plc_no = new int[ci_plc_count, ci_sta_count]; |
| | | public static int[,] plc_i_Wrk_no = new int[ci_plc_count, ci_sta_count]; |
| | | public static int[,] plc_i_ctn_type = new int[ci_plc_count, ci_sta_count]; |
| | | public static int[,] plc_i_pakmk = new int[ci_plc_count, ci_sta_count]; |
| | | public static int[,] plc_i_buff_count = new int[ci_plc_count, ci_sta_count]; |
| | | public static string[,] plc_s_stn_status = new string[ci_plc_count, ci_sta_count]; |
| | | public static string[,] plc_s_from_stn = new string[ci_plc_count, ci_sta_count]; |
| | | public static string[,] plc_s_next_stn = new string[ci_plc_count, ci_sta_count]; |
| | | public static string[,] plc_s_t_station = new string[ci_plc_count, ci_sta_count]; |
| | | public static string[,] plc_s_autoing = new string[ci_plc_count, ci_sta_count]; |
| | | public static string[,] plc_s_loading = new string[ci_plc_count, ci_sta_count]; |
| | | /// <summary> |
| | | /// å¯å
¥ |
| | | /// </summary> |
| | | public static string[,] plc_s_canining = new string[ci_plc_count, ci_sta_count]; |
| | | /// <summary> |
| | | /// å¯åº |
| | | /// </summary> |
| | | public static string[,] plc_s_canouting = new string[ci_plc_count, ci_sta_count]; |
| | | /// <summary> |
| | | /// 空æ¿ä¿¡å· |
| | | /// </summary> |
| | | public static string[,] plc_s_inreq1 = new string[ci_plc_count, ci_sta_count]; |
| | | /// <summary> |
| | | /// 满æä¿¡å· |
| | | /// </summary> |
| | | public static string[,] plc_s_inreq2 = new string[ci_plc_count, ci_sta_count]; |
| | | /// <summary> |
| | | /// è´§ç©ç±»å |
| | | /// </summary> |
| | | public static string[,] plc_s_loctype = new string[ci_plc_count, ci_sta_count]; |
| | | /// <summary> |
| | | /// æ¥è¦ |
| | | /// </summary> |
| | | public static string[,] plc_s_error = new string[ci_plc_count, ci_sta_count]; |
| | | public static string[,] plc_s_modeallow = new string[ci_plc_count, ci_sta_count]; |
| | | |
| | | //public static string[] s_plc_err_count1 = new string[ci_plcerrcount]; |
| | | //public static string[] s_plc_err_count2 = new string[ci_plcerrcount]; |
| | | |
| | | //public struct fieldds//åæ®µæè¿° |
| | | //{ |
| | | // public int index; |
| | | // public string dataname; |
| | | // public string datadesc; |
| | | //} |
| | | |
| | | |
| | | //public Common() |
| | | //{ |
| | | //} |
| | | |
| | | //public static string Proc_GetNum(string str) |
| | | //{ |
| | | // string result = ""; |
| | | // try |
| | | // { |
| | | // for (int i = 0; i < str.Length; i++) |
| | | // { |
| | | // if (str[i] == '0' || str[i] == '1' || str[i] == '2' || str[i] == '3' || str[i] == '4' || str[i] == '6' || str[i] == '7' || str[i] == '8' || str[i] == '9') |
| | | // { |
| | | // result = result.Trim() + str[i]; |
| | | // } |
| | | // } |
| | | // } |
| | | // catch (Exception t) |
| | | // { |
| | | |
| | | // } |
| | | // return result; |
| | | //} |
| | | |
| | | /// <summary> |
| | | /// å¢å plcå½ä»¤éå |
| | | /// </summary> |
| | | /// <param name="plcno">plcå·</param> |
| | | /// <param name="cmd">æä»¤</param> |
| | | public static void AddPlcQuereCmd(int plcno, string cmd) |
| | | { |
| | | if (cmd == "") { return; }; |
| | | for (int j = PlcMaxQuereCount - 1; j >= 0; j--) |
| | | { |
| | | if (s_cmd[plcno, j] == "" || s_cmd[plcno, j] == null) |
| | | { |
| | | s_cmd[plcno, j] = cmd; |
| | | break; |
| | | } |
| | | } |
| | | AdjPlcQuere(plcno); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// å¾å°plcæä»¤éåçæ°é |
| | | /// </summary> |
| | | /// <param name="plcno">plcå·</param> |
| | | /// <returns>éåçæ°é</returns> |
| | | public static int GetPlcQuereCount(int plcno) |
| | | { |
| | | int count = 0; |
| | | for (int i = 0; i < ci_plc_MAX; i++) |
| | | { |
| | | if (s_cmd[plcno, i] != "" && s_cmd[plcno, i] != null) |
| | | { |
| | | count++; |
| | | } |
| | | } |
| | | return count; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// ä»plcéåä¸åæå
è¿çä¸ç¬æä»¤ |
| | | /// </summary> |
| | | /// <param name="plcno">plcå·</param> |
| | | /// <returns>å¯¹åºæå
è¿çæä»¤</returns> |
| | | public static string GetPlcQuereCmd(int plcno) |
| | | { |
| | | string cmd = ""; |
| | | for (int i = 0; i < PlcMaxQuereCount; i++) |
| | | { |
| | | if (s_cmd[plcno, i] != "" && s_cmd[plcno, i] != null) |
| | | { |
| | | cmd = s_cmd[plcno, i]; |
| | | s_cmd[plcno, i] = ""; |
| | | break; |
| | | } |
| | | } |
| | | AdjPlcQuere(plcno); |
| | | return cmd; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// è°æ´éååå¨ |
| | | /// </summary> |
| | | /// <param name="plcno">plcå·</param> |
| | | public static void AdjPlcQuere(int plcno) |
| | | { |
| | | string s_tmep1 = "", s_tmep2 = ""; |
| | | for (int j = PlcMaxQuereCount - 1; j >= 0; j--) |
| | | { |
| | | s_tmep1 = s_cmd[plcno, j]; |
| | | if (j > 0) |
| | | { |
| | | s_tmep2 = s_cmd[plcno, j - 1]; |
| | | if (s_tmep1 != "" && s_tmep2 == "") |
| | | { |
| | | s_cmd[plcno, j - 1] = s_tmep1; |
| | | s_cmd[plcno, j] = ""; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æ ¹æ®å åæºç¶æå¼å¾å°ç¶æåç§° |
| | | /// </summary> |
| | | /// <param name="i_sts">å åæºç¶æå¼</param> |
| | | /// <returns>å åæºç¶æ</returns> |
| | | public static string GetCrnStsName(int i_sts) |
| | | { |
| | | string crnstsname = ""; |
| | | switch (i_sts) |
| | | { |
| | | case -1: |
| | | crnstsname = "åå§å"; |
| | | break; |
| | | case 0: |
| | | crnstsname = "空é²"; |
| | | break; |
| | | case 1: |
| | | crnstsname = "åè´§å®ä½ä¸"; |
| | | break; |
| | | case 2: |
| | | crnstsname = "åè´§ä¸"; |
| | | break; |
| | | case 3: |
| | | crnstsname = "åè´§å®æï¼æ¾è´§å®ä½ä¸"; |
| | | break; |
| | | case 4: |
| | | crnstsname = "æ¾è´§ä¸"; |
| | | break; |
| | | case 5: |
| | | crnstsname = "ååç¹ä¸"; |
| | | break; |
| | | case 6: |
| | | crnstsname = "å»ååç¹ä¸"; |
| | | break; |
| | | case 7: |
| | | crnstsname = "åºä½ç§»è½¬"; |
| | | break; |
| | | case 90: |
| | | crnstsname = "ä»»å¡å®æï¼WCSæªç¡®è®¤"; |
| | | break; |
| | | case 99: |
| | | crnstsname = "æ¥è¦"; |
| | | break; |
| | | default: |
| | | crnstsname = "æªç¥"; |
| | | break; |
| | | } |
| | | return crnstsname; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// ç«ç¹åå§åï¼PLC读åå°åå®ä¹ |
| | | /// </summary> |
| | | public static void InitSta() |
| | | { |
| | | int i; |
| | | for (i = 1; i <= ci_sta_count; i++) |
| | | { |
| | | //ç«ç¹å· |
| | | g_ari_staion[i - 1] = i + 100; |
| | | g_ars_staion_name[i - 1] = (i + 100).ToString(); |
| | | g_ari_staion_plc_no[i - 1] = 1; |
| | | //å·¥ä½å· ç®æ åºä½ ç¶æ |
| | | g_ari_station_idaddr[i - 1] = (i - 1) * 4; //å·¥ä½å·å°å |
| | | g_ari_station_destaddr[i - 1] = (i - 1) * 4 + 2; //ç®æ ç«å°å |
| | | g_ari_station_stsaddr[i - 1] = i + 149; //ç¶æä½å°å |
| | | |
| | | //else if (i > 5 && i <= 10) |
| | | //{ |
| | | // g_ari_staion[i - 1] = i + 194; |
| | | // g_ars_staion_name[i - 1] = (i + 194).ToString(); |
| | | // g_ari_staion_plc_no[i - 1] = 1; |
| | | |
| | | // g_ari_station_idaddr[i - 1] = (i - 1) * 4; |
| | | // g_ari_station_destaddr[i - 1] = (i - 1) * 4 + 2; |
| | | // g_ari_station_stsaddr[i - 1] = i + 59; |
| | | //} |
| | | |
| | | //åå§åç«ç¹ä¸å个å¼çæ°æ®ã |
| | | plc_s_dev_no[g_ari_staion_plc_no[i - 1] - 1, i - 1] = g_ari_staion[i - 1].ToString(); |
| | | plc_s_autoing[g_ari_staion_plc_no[i - 1] - 1, i - 1] = "N"; |
| | | plc_s_loading[g_ari_staion_plc_no[i - 1] - 1, i - 1] = "N"; |
| | | plc_s_canining[g_ari_staion_plc_no[i - 1] - 1, i - 1] = "N"; |
| | | plc_s_canouting[g_ari_staion_plc_no[i - 1] - 1, i - 1] = "N"; |
| | | plc_s_inreq1[g_ari_staion_plc_no[i - 1] - 1, i - 1] = "N"; |
| | | plc_s_inreq2[g_ari_staion_plc_no[i - 1] - 1, i - 1] = "N"; |
| | | plc_s_loctype[g_ari_staion_plc_no[i - 1] - 1, i - 1] = "N"; |
| | | plc_s_error[g_ari_staion_plc_no[i - 1] - 1, i - 1] = "N"; |
| | | plc_i_buff_count[g_ari_staion_plc_no[i - 1] - 1, i - 1] = 0; |
| | | plc_i_Wrk_no[g_ari_staion_plc_no[i - 1] - 1, i - 1] = 0; |
| | | plc_s_stn_status[g_ari_staion_plc_no[i - 1] - 1, i - 1] = "N"; |
| | | plc_s_next_stn[g_ari_staion_plc_no[i - 1] - 1, i - 1] = "0"; |
| | | plc_i_pakmk[g_ari_staion_plc_no[i - 1] - 1, i - 1] = 0; |
| | | |
| | | gi_stn_iotype[i - 1] = 0; //åå§åç«ç¹åºå
¥å½¢æ |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// å åæºåå§å |
| | | /// </summary> |
| | | public static void InitCrn() |
| | | { |
| | | int i; |
| | | for (i = 1; i <= ci_crn_count; i++) |
| | | { |
| | | crn_i_crnno[i - 1] = i; |
| | | //crn_i_crn_sts[i - 1] = ci_CRN_SETTING; |
| | | gs_crncmd[i - 1] = ""; |
| | | crn_i_kind[i - 1] = 0; |
| | | crn_i_Wrkno[i - 1] = 0; |
| | | crn_i_fstn[i - 1] = 0; |
| | | crn_i_tstn[i - 1] = 0; |
| | | crn_s_Flocno[i - 1] = ""; |
| | | crn_s_Tlocno[i - 1] = ""; |
| | | //crn_i_Errcod[i - 1] = 0; |
| | | crn_i_onHP[i - 1] = 0; |
| | | |
| | | gs_crnlastio[i - 1] = "I"; |
| | | gs_crncmd[i - 1] = ""; |
| | | crn_s_commandstr[i - 1] = ""; |
| | | gi_crn_iotype[i - 1] = 0; |
| | | |
| | | gb_crn_status[i - 1] = true; |
| | | |
| | | AlarmCode[i - 1] = 0; |
| | | TaskFlag[i - 1] = 0; |
| | | CrnState[i - 1] = -1; |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æ¡ç ãLEDãç£
ç§¤æ°æ®åå§å |
| | | /// </summary> |
| | | public static void InitDev() |
| | | { |
| | | int i; |
| | | for (i = 0; i < ci_barcode_count; i++) |
| | | { |
| | | gs_barcode_data[i] = ""; |
| | | } |
| | | for (i = 0; i < ci_led_count; i++) |
| | | { |
| | | gs_led_data[i] = ""; |
| | | gs_led_data_pre[i] = ""; |
| | | gi_led_PageNumber[i] = 1; |
| | | //gi_led_Pages[i] = 1; |
| | | gi_led_Counts[i] = 0; |
| | | gi_led_CurPageNumber[i] = 1; |
| | | } |
| | | for (i = 0; i < ci_scale_count; i++) |
| | | { |
| | | gd_gross_wt[i] = 0; |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// å¾å°ç«åºå· |
| | | /// </summary> |
| | | /// <param name="stn"></param> |
| | | /// <returns></returns> |
| | | public static int GetStnSeq(int stn) |
| | | { |
| | | int retval = 0; |
| | | for (int i = 0; i <= ci_sta_count - 1; i++) |
| | | { |
| | | if (g_ari_staion[i] == stn) |
| | | { |
| | | retval = i; |
| | | return retval; |
| | | //break; |
| | | } |
| | | } |
| | | return 0; |
| | | } |
| | | |
| | | ////å¾å°åºå模å¼å°å |
| | | //public static int GetBufAddrByStn(int stn) |
| | | //{ |
| | | // int addr = 0; |
| | | // switch (stn) |
| | | // { |
| | | // case 1: |
| | | // addr = 4107; |
| | | // break; |
| | | // case 2: |
| | | // addr = 4110; |
| | | // break; |
| | | // default: |
| | | // break; |
| | | // } |
| | | // return addr; |
| | | //} |
| | | |
| | | //public static string InttoStringYN(int i, int j) |
| | | //{ |
| | | // if (i == 1) |
| | | // { |
| | | // if (j == 1) |
| | | // { |
| | | // return "åº"; |
| | | // } |
| | | // else |
| | | // { |
| | | // return "å
¥"; |
| | | // } |
| | | // } |
| | | // else |
| | | // { |
| | | // if (j == 1) |
| | | // { |
| | | // return "å
¥"; |
| | | // } |
| | | // else |
| | | // { |
| | | // return "åº"; |
| | | // } |
| | | // } |
| | | //} |
| | | |
| | | ///// <summary> |
| | | ///// åå
è¿å¶è½¬åè¿å¶ |
| | | ///// </summary> |
| | | ///// <param name="s_data"></param> |
| | | ///// <param name="i_len"></param> |
| | | ///// <returns></returns> |
| | | //public static int funi_htoi(string s_data, int i_len) |
| | | //{ |
| | | // int i_sum = 0, i_tmp = 0, x = 0; |
| | | // s_data = s_data.ToUpper(); |
| | | // if (s_data == "" || s_data == null) |
| | | // { |
| | | // return 0; |
| | | // } |
| | | // for (x = 0; x < i_len; x++) |
| | | // { |
| | | |
| | | // i_tmp = Convert.ToInt32(s_data[x]); |
| | | // if (i_tmp > 58) i_tmp = i_tmp - 7; |
| | | // i_sum = i_sum * 16 + i_tmp - 48; |
| | | // } |
| | | // return i_sum; |
| | | //} |
| | | |
| | | ///// <summary> |
| | | ///// 夿æ¯å¦4ä½åå
è¿å¶æ¯å¦æ£ç¡® |
| | | ///// </summary> |
| | | ///// <param name="data"></param> |
| | | ///// <returns></returns> |
| | | //public static bool fun_chkhex(string data) |
| | | //{ |
| | | // string s_str = data.PadLeft(4, '0'); |
| | | // int i_asc = 0, i_count = 0; |
| | | // for (int i = 0; i < s_str.Length; i++) |
| | | // { |
| | | // i_asc = Convert.ToInt32(s_str[i]); |
| | | // if ((i_asc > 47 && i_asc < 58) || (i_asc > 64 && i_asc < 71)) |
| | | // { |
| | | |
| | | // } |
| | | // else |
| | | // { |
| | | // i_count++; |
| | | // } |
| | | // } |
| | | // if (i_count > 0) |
| | | // { |
| | | // return false; |
| | | // } |
| | | // else |
| | | // { |
| | | // return true; |
| | | // } |
| | | //} |
| | | |
| | | /// <summary> |
| | | /// åå
è¿å¶è½¬åè¿å¶ |
| | | /// </summary> |
| | | /// <param name="data"></param> |
| | | /// <returns></returns> |
| | | public static double fun_hextodec(string data) |
| | | { |
| | | string cptr = ""; |
| | | string s_str = data.Trim(); |
| | | int len = s_str.Length; |
| | | double nsum = 0; |
| | | int k = 1; |
| | | for (int i = 0; i < len; i++) |
| | | { |
| | | cptr = s_str.Substring(len - i - 1, 1); |
| | | if (cptr == "A") |
| | | { |
| | | cptr = "10"; |
| | | } |
| | | else if (cptr == "B") |
| | | { |
| | | cptr = "11"; |
| | | } |
| | | else if (cptr == "C") |
| | | { |
| | | cptr = "12"; |
| | | } |
| | | else if (cptr == "D") |
| | | { |
| | | cptr = "13"; |
| | | } |
| | | else if (cptr == "E") |
| | | { |
| | | cptr = "14"; |
| | | } |
| | | else if (cptr == "F") |
| | | { |
| | | cptr = "15"; |
| | | } |
| | | if (i == 0) |
| | | { |
| | | k = 1; |
| | | } |
| | | else if (i == 1) |
| | | { |
| | | k = 16; |
| | | } |
| | | else if (i == 2) |
| | | { |
| | | k = 256; |
| | | } |
| | | else if (i == 3) |
| | | { |
| | | k = 16 * 256; |
| | | } |
| | | else if (i == 4) |
| | | { |
| | | k = 256 * 256; |
| | | } |
| | | else if (i == 5) |
| | | { |
| | | k = 16 * 256 * 256; |
| | | } |
| | | else if (i == 6) |
| | | { |
| | | k = 256 * 256 * 256; |
| | | } |
| | | else if (i == 7) |
| | | { |
| | | k = 16 * 256 * 256 * 256; |
| | | } |
| | | nsum = nsum + Convert.ToInt32(cptr) * k; |
| | | } |
| | | return nsum; |
| | | } |
| | | |
| | | ////å¾å°åå
è¿å¶ |
| | | //public static string fun_gethex(string s_data) |
| | | //{ |
| | | // string tohex = ""; |
| | | // tohex = Convert.ToString(Convert.ToInt32(funi_htoi(s_data, 4)), 2); |
| | | // return tohex; |
| | | //} |
| | | |
| | | ////å¾å°ä½ä¸è¿ç®ç»æï¼å¹¶å¤ææ¯å¦ç¸å |
| | | //public static bool fun_ChkAndByte(string s_data, long t_data) |
| | | //{ |
| | | // long tohex1 = 0, tohex2 = 0, tohex3 = 0; |
| | | // tohex1 = Convert.ToInt64(Convert.ToString(Convert.ToInt64(funi_htoi(s_data, s_data.Length)), 2)); |
| | | // tohex2 = t_data;// Convert.ToInt32(Convert.ToString(t_data, 2)); |
| | | // tohex3 = tohex1 & tohex2; |
| | | // if (tohex3 == tohex2) |
| | | // { |
| | | // return true; |
| | | // } |
| | | // else |
| | | // { |
| | | // return false; |
| | | // } |
| | | //} |
| | | |
| | | /// <summary> |
| | | /// å¾å°ä½ä¸è¿ç®ç»æï¼å¹¶å¤ææ¯å¦ç¸å |
| | | /// </summary> |
| | | /// <param name="i_data"></param> |
| | | /// <param name="t_data"></param> |
| | | /// <returns></returns> |
| | | public static bool fun_ChkAndByte(long i_data, long t_data) |
| | | { |
| | | long tohex1 = 0, tohex2 = 0, tohex3 = 0; |
| | | tohex1 = i_data; |
| | | tohex2 = t_data;// Convert.ToInt32(Convert.ToString(t_data, 2)); |
| | | tohex3 = tohex1 & tohex2; |
| | | if (tohex3 == tohex2) |
| | | { |
| | | return true; |
| | | } |
| | | else |
| | | { |
| | | return false; |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// çæå·¥ä½å· |
| | | /// </summary> |
| | | /// <param name="wrkmk"></param> |
| | | /// <returns></returns> |
| | | public static int GetWrkno(int wrkmk) |
| | | { |
| | | int wrkno = 0, li_s_no = 0, li_e_no = 0; |
| | | SqlConnection sqlcn = new SqlConnection(sqlcon); |
| | | sqlcn.Open(); |
| | | SqlDataAdapter sqlda = new SqlDataAdapter("select wrk_no,s_no,e_no from asr_wrk_lastno where wrk_mk=" + wrkmk + "", sqlcn); |
| | | DataSet ds = new DataSet(); |
| | | sqlda.Fill(ds); |
| | | DataView dv = new DataView(ds.Tables[0]); |
| | | sqlcn.Close(); |
| | | foreach (System.Data.DataRowView drow in dv) |
| | | { |
| | | wrkno = Convert.ToInt32(drow[0].ToString().Trim()); |
| | | li_s_no = Convert.ToInt32(drow[1].ToString().Trim()); |
| | | li_e_no = Convert.ToInt32(drow[2].ToString().Trim()); |
| | | } |
| | | if (wrkno >= li_e_no) |
| | | { |
| | | wrkno = li_s_no; |
| | | } |
| | | else |
| | | { |
| | | wrkno++; |
| | | } |
| | | |
| | | SqlConnection sqlcon1 = new SqlConnection(sqlcon); |
| | | sqlcon1.Open(); |
| | | SqlTransaction sqlts = sqlcon1.BeginTransaction(); |
| | | string sql = "update asr_wrk_lastno set wrk_no=" + wrkno + " where wrk_mk=" + wrkmk + ""; |
| | | SqlCommand sqlcom1 = new SqlCommand(sql, sqlcon1); |
| | | sqlcom1.Transaction = sqlts; |
| | | try |
| | | { |
| | | sqlcom1.ExecuteNonQuery(); |
| | | sqlts.Commit(); |
| | | } |
| | | catch (SqlException r) |
| | | { |
| | | //MessageBox.Show("æ´æ°[asr_wrk_lastno]é误ï¼", "é误"); |
| | | sqlts.Rollback(); |
| | | wrkno = 0; |
| | | } |
| | | finally |
| | | { |
| | | sqlcom1.Dispose(); |
| | | sqlcon1.Dispose(); |
| | | sqlcon1.Close(); |
| | | } |
| | | return wrkno; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// çæåºä½å· |
| | | /// </summary> |
| | | /// <param name="type">å
¥åºç±»å</param> |
| | | /// <param name="loc_type">é«ä½åºä½</param> |
| | | /// <param name="crn_no">å åæºå·</param> |
| | | /// <param name="stano">å
¥åºç«å·</param> |
| | | /// <param name="stnType">å
¥åºæ¹å,1为ä¸ä¾§1åèµ·æ°ï¼2为西侧æå¤§åèµ·æ°</param> |
| | | /// <returns></returns> |
| | | public static string GetLocNo(int type, int loc_type, int crn_no, int stano, int stnType) |
| | | { |
| | | int e_staNo = 0; |
| | | string locno = ""; |
| | | int li_crnrow = 0, li_crn = 0, li_cnt = 0, li_max_cnt = 0, i = 0, n = 0, li_min = 0, li_max = 0, li_max_1 = 0, li_crn_qty = 0, crnsts = 0; |
| | | string orderBy = "lev1,bay1 asc"; |
| | | if (stnType == 1) //ä¸ä¾§ |
| | | { |
| | | orderBy = "lev1,bay1 asc"; |
| | | } |
| | | else if (stnType == 2) //西侧 |
| | | { |
| | | orderBy = "lev1 asc,bay1 desc"; |
| | | } |
| | | //DataView dv = ExecAsrsSelect("select current_row,s_row,e_row,crn_qty from asr_row_lastno where whs_type=" + whs_type); |
| | | DataView dv = ExecAsrsSelect("select current_row,s_row,e_row,crn_qty from asr_row_lastno "); |
| | | foreach (DataRowView drv in dv) |
| | | { |
| | | li_crnrow = Convert.ToInt32(drv[0].ToString()); |
| | | li_min = Convert.ToInt32(drv[1].ToString()); |
| | | li_max = Convert.ToInt32(drv[2].ToString()); |
| | | li_crn_qty = Convert.ToInt32(drv[3].ToString()); |
| | | } |
| | | li_max_1 = li_max - 1; |
| | | i = 1; |
| | | do |
| | | { |
| | | if (li_crnrow == li_max) |
| | | { |
| | | li_crnrow = li_min; |
| | | } |
| | | else if (li_crnrow == li_max_1) |
| | | { |
| | | li_crnrow = li_min + 1; |
| | | } |
| | | else |
| | | { |
| | | li_crnrow = li_crnrow + 2; |
| | | } |
| | | li_crn = (li_crnrow + 1) / 2; |
| | | |
| | | if (ChkCrnEnable(li_crn, "I") == "Y") |
| | | { |
| | | e_staNo = getIoStaNo(type, li_crn, stano); |
| | | if (e_staNo == 0) |
| | | { |
| | | continue; |
| | | } |
| | | //if (type == 10) |
| | | //{ |
| | | // locno = getEmptyLocation(li_crnrow, loc_type, orderBy); |
| | | //} |
| | | |
| | | if (locno == "") |
| | | { |
| | | string sql = ""; |
| | | //if (type == 10) |
| | | //{ |
| | | sql = "select top 1 loc_no from asr_loc_mast where row1=" + li_crnrow + " and loc_sts='O' order by " + orderBy; |
| | | //} |
| | | //else |
| | | //{ |
| | | // sql = "select top 1 loc_no from asr_loc_mast where row1=" + li_crnrow + " and loc_sts='O' order by " + orderBy; |
| | | //} |
| | | SqlConnection sqlconn = new SqlConnection(sqlcon); |
| | | sqlconn.Open(); |
| | | SqlDataAdapter sqlap = new SqlDataAdapter(sql, sqlconn); |
| | | DataSet ds = new DataSet(); |
| | | sqlap.Fill(ds); |
| | | DataView dv1 = new DataView(ds.Tables[0]); |
| | | sqlap.Dispose(); |
| | | sqlconn.Dispose(); |
| | | //sqlconn.Close(); |
| | | foreach (DataRowView drv in dv1) |
| | | { |
| | | locno = drv[0].ToString(); |
| | | break; |
| | | } |
| | | } |
| | | } |
| | | |
| | | //if (locno != "" && int.Parse(locno.Substring(0, 2)) < 3 && (stano == 1304 || stano == 1205)) |
| | | //{//1204ç«æ æ³å
¥åº1å·å åæº |
| | | // locno = ""; |
| | | //} |
| | | //if (crn_no > 0 && crn_no != li_crn) |
| | | //{//å
å
¥ååé
æ°åºä½ï¼å¿
é¡»åä¸å°å åæº |
| | | // locno = ""; |
| | | //} |
| | | if (Common.AlarmCode[li_crn - 1] > 0 || Common.Mode[li_crn - 1] != 3) |
| | | { //å åæºå¼å¸¸æè
éèªå¨ï¼å¯»æ¾ä¸ä¸ä¸ªåºä½ |
| | | locno = ""; |
| | | } |
| | | |
| | | //int seqno = Common.GetStnSeq(e_staNo); |
| | | //int plcno = stnType - 1; |
| | | //string s_loading = Common.plc_s_loading[plcno, seqno]; |
| | | //if (s_loading == "Y") |
| | | //{//å åæºå
¥åºç«ç¹æç©ï¼å¯»æ¾ä¸ä¸ä¸ª |
| | | // locno = ""; |
| | | //} |
| | | |
| | | i++; |
| | | if (i > li_crn_qty * 2) |
| | | { |
| | | break; |
| | | } |
| | | } while (locno == ""); |
| | | |
| | | if (locno != "") |
| | | { |
| | | SqlConnection sqlconn = new SqlConnection(sqlcon); |
| | | sqlconn.Open(); |
| | | SqlTransaction sqltrans = sqlconn.BeginTransaction(); |
| | | string sql = "update dbo.asr_row_lastno set current_row='" + li_crnrow + "',modi_time='" + DateTime.Now.ToString() + "' "; |
| | | SqlCommand sqlcmd = new SqlCommand(sql, sqlconn); |
| | | sqlcmd.Transaction = sqltrans; |
| | | try |
| | | { |
| | | sqlcmd.ExecuteNonQuery(); |
| | | sqltrans.Commit(); |
| | | } |
| | | catch (SqlException r) |
| | | { |
| | | //MessageBox.Show("æ´æ°[asr_row_lastno]é误ï¼", "é误"); |
| | | sqltrans.Rollback(); |
| | | sqlcmd.Dispose(); |
| | | sqlconn.Dispose(); |
| | | locno = ""; |
| | | } |
| | | } |
| | | return locno; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æ ¹æ®ä½ä¸ç±»åå¾å°ç«ç¹ç¼å· |
| | | /// </summary> |
| | | /// <param name="type">å
¥åºç±»å</param> |
| | | /// <param name="crnno">å åæºå·</param> |
| | | /// <param name="stnno">ç«ç¹å·</param> |
| | | /// <returns></returns> |
| | | public static int getIoStaNo(int type, int crnno, int stnno) |
| | | { |
| | | int e_staNo = 0; |
| | | try |
| | | { |
| | | string sql = "select crn_stn from asr_sta_desc "; |
| | | sql += " where type_no=" + type + " and stn_no=" + stnno + " and crn_no=" + crnno; |
| | | DataView dv_crn_stn = Common.ExecAsrsSelect(sql); |
| | | if (dv_crn_stn != null || dv_crn_stn.Count > 0) |
| | | { |
| | | foreach (DataRowView drow in dv_crn_stn) |
| | | { |
| | | e_staNo = int.Parse(drow[0].ToString()); |
| | | } |
| | | } |
| | | } |
| | | catch (Exception) |
| | | { |
| | | } |
| | | return e_staNo; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 夿å åæºæ¯å¦å¯ç¨ |
| | | /// </summary> |
| | | /// <param name="crn"></param> |
| | | /// <param name="type"></param> |
| | | /// <returns></returns> |
| | | public static string ChkCrnEnable(int crnno, string type) |
| | | { |
| | | DataView dv = null; |
| | | string ls_in = "N", ls_ou = "N"; |
| | | dv = ExecAsrsSelect("select in_enable,out_enable from asr_bas_crnp where crn_no=" + crnno); |
| | | foreach (DataRowView drv in dv) |
| | | { |
| | | ls_in = drv[0].ToString(); |
| | | ls_ou = drv[1].ToString(); |
| | | } |
| | | if (type == "I") |
| | | { |
| | | return ls_in; |
| | | } |
| | | else if (type == "O") |
| | | { |
| | | return ls_ou; |
| | | } |
| | | else |
| | | { |
| | | return "N"; |
| | | } |
| | | } |
| | | |
| | | //public static string GetRow(string row) |
| | | //{ |
| | | // if (row == "01") |
| | | // { |
| | | // return "01"; |
| | | // } |
| | | // else if (row == "02") |
| | | // { |
| | | // return "02"; |
| | | // } |
| | | // //else if (row == "03") |
| | | // //{ |
| | | // // return "01"; |
| | | // //} |
| | | // //else if (row == "04") |
| | | // //{ |
| | | // // return "02"; |
| | | // //} |
| | | // //else if (row == "05") |
| | | // //{ |
| | | // // return "01"; |
| | | // //} |
| | | // //else if (row == "06") |
| | | // //{ |
| | | // // return "02"; |
| | | // //} |
| | | // else |
| | | // { |
| | | // return ""; |
| | | // } |
| | | //} |
| | | |
| | | /// <summary> |
| | | /// æ ¹æ®å åæºå¼å¸¸ç å¾å°å¼å¸¸æè¿° |
| | | /// </summary> |
| | | /// <param name="error_code"></param> |
| | | /// <returns></returns> |
| | | public static string GetErr(int error_code) |
| | | { |
| | | string result = ""; |
| | | switch (error_code) |
| | | { |
| | | case 1: |
| | | result = "å·¦è¶
é"; |
| | | break; |
| | | case 2: |
| | | result = "å³è¶
é"; |
| | | break; |
| | | case 3: |
| | | result = "åè¶
é"; |
| | | break; |
| | | case 4: |
| | | result = "åè¶
é"; |
| | | break; |
| | | case 5: |
| | | result = "é«è¶
é"; |
| | | break; |
| | | case 6: |
| | | result = "åè´§è½½è´§å°æè´§"; |
| | | break; |
| | | case 7: |
| | | result = "æ¾è´§è½½è´§å°æ è´§"; |
| | | break; |
| | | case 8: |
| | | result = "åè´§å·¦è´§æ ¼æ è´§"; |
| | | break; |
| | | case 9: |
| | | result = "åè´§å³è´§æ ¼æ è´§"; |
| | | break; |
| | | case 10: |
| | | result = "æ¾è´§å·¦ä¸æè´§"; |
| | | break; |
| | | case 11: |
| | | result = "æ¾è´§å³ä¸æè´§"; |
| | | break; |
| | | case 12: |
| | | result = "åå·¦äºè´§æ ¼æ è´§"; |
| | | break; |
| | | case 13: |
| | | result = "åå³äºè´§æ ¼æ è´§"; |
| | | break; |
| | | case 14: |
| | | result = "æ¾è´§å·¦äºè´§æ ¼æè´§"; |
| | | break; |
| | | case 15: |
| | | result = "æ¾è´§å³äºè´§æ ¼æè´§"; |
| | | break; |
| | | case 16: |
| | | result = "å·¦äºåè´§å·¦ä¸æè´§"; |
| | | break; |
| | | case 17: |
| | | result = "å³äºåè´§å³ä¸æè´§"; |
| | | break; |
| | | case 18: |
| | | result = "å·¦å货失败"; |
| | | break; |
| | | case 19: |
| | | result = "å³å货失败"; |
| | | break; |
| | | case 20: |
| | | result = "å·¦æ¾è´§å¤±è´¥"; |
| | | break; |
| | | case 21: |
| | | result = "峿¾è´§å¤±è´¥"; |
| | | break; |
| | | case 22: |
| | | result = "è´§åè¿è¡è¶
æ¶"; |
| | | break; |
| | | case 23: |
| | | result = "è´§åæè·¯å¨è·³é¸"; |
| | | break; |
| | | case 24: |
| | | result = "è´§ååé¢å¨æ¥è¦"; |
| | | break; |
| | | case 25: |
| | | result = "è´§åç¼ç 卿
é"; |
| | | break; |
| | | case 26: |
| | | result = "è´§å伸åæ
é"; |
| | | break; |
| | | case 27: |
| | | result = "å±è¿è¡è´§åä¸å¨ä¸ä½"; |
| | | break; |
| | | case 28: |
| | | result = "åè¿è¡è´§åä¸å¨ä¸ä½"; |
| | | break; |
| | | case 29: |
| | | result = "è´§åä¸ä½å¼å
³æ
é"; |
| | | break; |
| | | case 30: |
| | | result = "è´§ååé¢å¨é讯æ
é"; |
| | | break; |
| | | case 31: |
| | | result = "è´§åç¼ç å¨é讯æ
é"; |
| | | break; |
| | | case 32: |
| | | result = "伸åè¶
åºå·¦æé"; |
| | | break; |
| | | case 33: |
| | | result = "伸åè¶
åºå³æé"; |
| | | break; |
| | | case 34: |
| | | result = "å
¥å·¦äºè´§æ ¼è´§æ¶å·¦ä¸è´§æ ¼æè´§"; |
| | | break; |
| | | case 35: |
| | | result = "å
¥å³äºè´§æ ¼è´§æ¶å³ä¸è´§æ ¼æè´§"; |
| | | break; |
| | | case 36: |
| | | result = "è´§åå³ä¾§åä¸åæ¢ä½ç½®é误"; |
| | | break; |
| | | case 37: |
| | | result = "è´§å左侧åä¸åæ¢ä½ç½®é误"; |
| | | break; |
| | | case 38: |
| | | result = "è´§å左侧æé忢ä½ç½®é误"; |
| | | break; |
| | | case 39: |
| | | result = "è´§åå³ä¾§æé忢ä½ç½®é误"; |
| | | break; |
| | | case 40: |
| | | result = "颿¿æ¥å"; |
| | | break; |
| | | case 41: |
| | | result = "è¿ç¨æ¥å"; |
| | | break; |
| | | case 42: |
| | | result = "主æ¥è§¦å¨æ§å¶åè·¯æ
é"; |
| | | break; |
| | | case 43: |
| | | result = "è¶
éä¿æ¤"; |
| | | break; |
| | | case 44: |
| | | result = "æ¾ç»³ä¿æ¤"; |
| | | break; |
| | | case 45: |
| | | result = "ééä¿æ¤"; |
| | | break; |
| | | case 46: |
| | | result = "å±åæ¢ä½ç½®é误"; |
| | | break; |
| | | case 47: |
| | | result = "å忢ä½ç½®é误"; |
| | | break; |
| | | case 48: |
| | | result = "å忢ä½ç½®é误"; |
| | | break; |
| | | case 49: |
| | | result = "æ¥æ¶åè¶
é"; |
| | | break; |
| | | case 50: |
| | | result = "æ¥æ¶å±è¶
é"; |
| | | break; |
| | | case 51: |
| | | result = "æ¥æ¶å±è¶
é"; |
| | | break; |
| | | case 52: |
| | | result = "è¡èµ°åéæé"; |
| | | break; |
| | | case 53: |
| | | result = "æå䏿é"; |
| | | break; |
| | | case 54: |
| | | result = "æå䏿é"; |
| | | break; |
| | | case 55: |
| | | result = "è¡èµ°è¿è¡è¶
æ¶"; |
| | | break; |
| | | case 56: |
| | | result = "æåè¿è¡è¶
æ¶"; |
| | | break; |
| | | case 57: |
| | | result = "è¡èµ°æè·¯å¨è·³é¸"; |
| | | break; |
| | | case 58: |
| | | result = "æåæè·¯å¨è·³é¸"; |
| | | break; |
| | | case 59: |
| | | result = "è¡èµ°åé¢å¨æ
é"; |
| | | break; |
| | | case 60: |
| | | result = "æååé¢å¨æ
é"; |
| | | break; |
| | | case 61: |
| | | result = "è¡èµ°æµè·/æ¡ç æ
é"; |
| | | break; |
| | | case 62: |
| | | result = "æåæµè·/æ¡ç æ
é"; |
| | | break; |
| | | case 63: |
| | | result = "è¡èµ°æµè·/æ¡ç 被æ¡"; |
| | | break; |
| | | case 64: |
| | | result = "æåæµè·/æ¡ç 被æ¡"; |
| | | break; |
| | | case 65: |
| | | result = "ä¸ååéå
çµæ
é"; |
| | | break; |
| | | case 66: |
| | | result = "ä¸éåéå
çµæ
é"; |
| | | break; |
| | | case 67: |
| | | result = "æååç¹å
çµæ
é"; |
| | | break; |
| | | case 68: |
| | | result = "è¡èµ°ååéå
çµæ
é"; |
| | | break; |
| | | case 69: |
| | | result = "è¡èµ°ååéå
çµæ
é"; |
| | | break; |
| | | case 70: |
| | | result = "è¡èµ°åç¹å
çµæ
é"; |
| | | break; |
| | | case 71: |
| | | result = "ä¸è¾éæºé讯æ
é"; |
| | | break; |
| | | case 72: |
| | | result = "åéè¶
åºæå°å±"; |
| | | break; |
| | | case 73: |
| | | result = "åéè¶
åºæå¤§å±"; |
| | | break; |
| | | case 74: |
| | | result = "è¡èµ°è¶
åºæå°å"; |
| | | break; |
| | | case 75: |
| | | result = "è¡èµ°è¶
åºæå¤§å"; |
| | | break; |
| | | case 76: |
| | | result = "æ¥æ¶æé误"; |
| | | break; |
| | | case 77: |
| | | result = "èµ·å§ç«è´§æ ¼è¢«ç¦ç¨"; |
| | | break; |
| | | case 78: |
| | | result = "ç®çç«è´§æ ¼è¢«ç¦ç¨"; |
| | | break; |
| | | case 79: |
| | | result = "è¡èµ°æ±é¸æ
é"; |
| | | break; |
| | | case 80: |
| | | result = "æåæ±é¸æ
é"; |
| | | break; |
| | | case 81: |
| | | result = "å®å
¨é¨æå¼æ
é"; |
| | | break; |
| | | default: |
| | | result = ""; |
| | | break; |
| | | } |
| | | return result; |
| | | } |
| | | |
| | | ////夿æ°åæ¯å¦åæ³ |
| | | //public static bool ChkFloat(string str) |
| | | //{ |
| | | // try |
| | | // { |
| | | // float f = (float)Convert.ToDouble(str); |
| | | // return true; |
| | | // } |
| | | // catch (Exception e) |
| | | // { |
| | | // return false; |
| | | // } |
| | | //} |
| | | ////å¤ææ´æ°æ¯å¦åæ³ |
| | | //public static bool ChkInt(string str) |
| | | //{ |
| | | // try |
| | | // { |
| | | // int f = Convert.ToInt32(str); |
| | | // return true; |
| | | // } |
| | | // catch (Exception e) |
| | | // { |
| | | // return false; |
| | | // } |
| | | //} |
| | | ////å¾å°å°å |
| | | //public static string GetAddr(int li) |
| | | //{ |
| | | // string addr = ""; |
| | | // try |
| | | // { |
| | | // switch (li) |
| | | // { |
| | | // case 0: |
| | | // return addr = "1030"; |
| | | // case 1: |
| | | // return addr = "1032"; |
| | | // case 2: |
| | | // return addr = "1034"; |
| | | // case 3: |
| | | // return addr = "1036"; |
| | | // case 4: |
| | | // return addr = "1038"; |
| | | // case 5: |
| | | // return addr = "1040"; |
| | | // case 6: |
| | | // return addr = "1042"; |
| | | // default: |
| | | // return addr = ""; |
| | | |
| | | // } |
| | | // } |
| | | // catch (Exception e) |
| | | // { |
| | | // return addr = ""; |
| | | // } |
| | | //} |
| | | |
| | | /// <summary> |
| | | /// æ¥è¯¢erpæ°æ® |
| | | /// </summary> |
| | | /// <param name="sql"></param> |
| | | /// <returns></returns> |
| | | public static DataView ExecErpSelect(string sql) |
| | | { |
| | | try |
| | | { |
| | | OracleConnection sqlerp = new OracleConnection(erpcon); |
| | | sqlerp.Open(); |
| | | OracleDataAdapter odasrs = new OracleDataAdapter(sql, sqlerp); |
| | | DataSet dserp = new DataSet(); |
| | | odasrs.Fill(dserp); |
| | | DataView dverp = new DataView(dserp.Tables[0]); |
| | | odasrs.Dispose(); |
| | | sqlerp.Dispose(); |
| | | sqlerp.Close(); |
| | | return dverp; |
| | | } |
| | | catch (SqlException em) |
| | | { |
| | | return null; |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æ§è¡ERPæ°æ®æ´æ°sqlè¯å¥ |
| | | /// </summary> |
| | | /// <param name="sql"></param> |
| | | /// <returns></returns> |
| | | public static bool ExecERPModify(string sql) |
| | | { |
| | | bool result = false; |
| | | try |
| | | { |
| | | OracleConnection sqlconn = new OracleConnection(erpcon); |
| | | sqlconn.Open(); |
| | | OracleTransaction sqltrans = sqlconn.BeginTransaction(); |
| | | OracleCommand sqlcmd = new OracleCommand(); |
| | | //SqlCommand sqlcmd = new SqlCommand(sql, sqlconn); |
| | | //sqlcmd.Transaction = sqltrans; |
| | | string[] arraySql = sql.Split(';'); |
| | | try |
| | | { |
| | | for (int i = 0; i < arraySql.Length; i++) |
| | | { |
| | | if (arraySql[i] != "") |
| | | { |
| | | sqlcmd.CommandText = arraySql[i]; |
| | | sqlcmd.Connection = sqlconn; |
| | | sqlcmd.Transaction = sqltrans; |
| | | sqlcmd.ExecuteNonQuery(); |
| | | } |
| | | } |
| | | sqltrans.Commit(); |
| | | result = true; |
| | | } |
| | | catch (SqlException t) |
| | | { |
| | | sqltrans.Rollback(); |
| | | result = false; |
| | | |
| | | } |
| | | finally |
| | | { |
| | | sqlcmd.Dispose(); |
| | | sqltrans.Dispose(); |
| | | sqlconn.Dispose(); |
| | | //sqlconn.Close(); |
| | | } |
| | | } |
| | | catch (Exception r) |
| | | { |
| | | return false; |
| | | } |
| | | return result; |
| | | } |
| | | |
| | | /////-------------------------------ä»asrsæ°æ®åºä¸æ§è¡æ¥è¯¢åè½è¿åæ°æ®é---------------- |
| | | public static DataView ExecAsrsSelect(string sql) |
| | | { |
| | | try |
| | | { |
| | | SqlConnection sqlasrs = new SqlConnection(sqlcon); |
| | | sqlasrs.Open(); |
| | | SqlDataAdapter odasrs = new SqlDataAdapter(sql, sqlasrs); |
| | | DataSet dsasrs = new DataSet(); |
| | | odasrs.Fill(dsasrs); |
| | | DataView dvasrs = new DataView(dsasrs.Tables[0]); |
| | | odasrs.Dispose(); |
| | | sqlasrs.Dispose(); |
| | | sqlasrs.Close(); |
| | | return dvasrs; |
| | | } |
| | | catch (SqlException em) |
| | | { |
| | | return null; |
| | | } |
| | | } |
| | | |
| | | public static DataView ExecAsrsSelect(string sql, out string err) |
| | | { |
| | | err = null; |
| | | try |
| | | { |
| | | SqlConnection sqlasrs = new SqlConnection(sqlcon); |
| | | sqlasrs.Open(); |
| | | SqlDataAdapter odasrs = new SqlDataAdapter(sql, sqlasrs); |
| | | DataSet dsasrs = new DataSet(); |
| | | odasrs.Fill(dsasrs); |
| | | DataView dvasrs = new DataView(dsasrs.Tables[0]); |
| | | odasrs.Dispose(); |
| | | sqlasrs.Dispose(); |
| | | sqlasrs.Close(); |
| | | return dvasrs; |
| | | } |
| | | catch (SqlException em) |
| | | { |
| | | err = "æ¥è¯¢sqlè¯å¥å¤±è´¥ï¼" + em.Message; |
| | | //MessageBox.Show("æ¥è¯¢sqlè¯å¥å¤±è´¥ï¼" + em.Message + "\r\n" + sql); |
| | | return null; |
| | | } |
| | | } |
| | | /////-------------------------------ä»asrsæ°æ®åºä¸æ§è¡æ¥è¯¢åè½è¿åæ°æ®é---------------- |
| | | public static int ExecAsrsSelect1(string sql) |
| | | { |
| | | int li_count1 = 0; |
| | | SqlConnection sqlasrs0 = new SqlConnection(sqlcon); |
| | | sqlasrs0.Open(); |
| | | SqlCommand ocasrs = new SqlCommand(sql, sqlasrs0); |
| | | li_count1 = Convert.ToInt32(ocasrs.ExecuteScalar()); |
| | | sqlasrs0.Dispose(); |
| | | ocasrs.Dispose(); |
| | | sqlasrs0.Close(); |
| | | |
| | | return li_count1; |
| | | } |
| | | /////-------------------------------ä»asrsæ°æ®åºä¸æ§è¡å¼å¨åè½ï¼æäº¤ï¼---------------- |
| | | /// <summary> |
| | | /// æ§è¡sqlæ´æ°è¯å¥(insertãdeleteãupdate) |
| | | /// </summary> |
| | | /// <param name="sql"></param> |
| | | /// <returns></returns> |
| | | public static bool ExecAsrsModify(string sql) |
| | | { |
| | | bool result = false; |
| | | try |
| | | { |
| | | SqlConnection sqlconn = new SqlConnection(sqlcon); |
| | | sqlconn.Open(); |
| | | SqlTransaction sqltrans = sqlconn.BeginTransaction(); |
| | | SqlCommand sqlcmd = new SqlCommand(); |
| | | //SqlCommand sqlcmd = new SqlCommand(sql, sqlconn); |
| | | //sqlcmd.Transaction = sqltrans; |
| | | string[] arraySql = sql.Split(';'); |
| | | try |
| | | { |
| | | for (int i = 0; i < arraySql.Length; i++) |
| | | { |
| | | if (arraySql[i] != "") |
| | | { |
| | | sqlcmd.CommandText = arraySql[i]; |
| | | sqlcmd.Connection = sqlconn; |
| | | sqlcmd.Transaction = sqltrans; |
| | | sqlcmd.ExecuteNonQuery(); |
| | | } |
| | | } |
| | | sqltrans.Commit(); |
| | | result = true; |
| | | } |
| | | catch (SqlException em) |
| | | { |
| | | WriteLogFile("WcsError", "Common/ExecAsrsModify--æ§è¡SQLè¯å¥åçå¼å¸¸:" + em.Message + "\r\n" + sql); |
| | | sqltrans.Rollback(); |
| | | result = false; |
| | | |
| | | } |
| | | finally |
| | | { |
| | | sqlcmd.Dispose(); |
| | | sqltrans.Dispose(); |
| | | sqlconn.Dispose(); |
| | | //sqlconn.Close(); |
| | | } |
| | | } |
| | | catch (Exception r) |
| | | { |
| | | return false; |
| | | } |
| | | return result; |
| | | } |
| | | ///////-------------------------------ä»asrsæ°æ®åºä¸æ§è¡å¼å¨åè½(æªæäº¤)---------------- |
| | | //public static bool ExecAsrsModify1(string sql) |
| | | //{ |
| | | // bool result = false; |
| | | // SqlConnection sqlasrs1 = new SqlConnection(sqlcon); |
| | | // sqlasrs1.Open(); |
| | | // SqlTransaction otasrs = sqlasrs1.BeginTransaction(); |
| | | // SqlCommand ocom = new SqlCommand(sql, sqlasrs1); |
| | | // ocom.Transaction = otasrs; |
| | | // try |
| | | // { |
| | | // ocom.ExecuteNonQuery(); |
| | | // //otasrs.Commit(); |
| | | // result = true; |
| | | // } |
| | | // catch (SqlException t) |
| | | // { |
| | | // otasrs.Rollback(); |
| | | // result = false; |
| | | |
| | | // } |
| | | // finally |
| | | // { |
| | | // ocom.Dispose(); |
| | | // otasrs.Dispose(); |
| | | // sqlasrs1.Dispose(); |
| | | // sqlasrs1.Close(); |
| | | // } |
| | | // return result; |
| | | //} |
| | | ///////-------------------------------ä»asrsæ°æ®åºä¸æ§è¡å¼å¨åè½(两个表)ï¼åæ¥æ§è¡---------------- |
| | | //public static bool ExecAsrsModifyByMD(string sql, string sql1) |
| | | //{ |
| | | // bool result = false; |
| | | // SqlConnection sqlasrs1 = new SqlConnection(sqlcon); |
| | | // sqlasrs1.Open(); |
| | | // SqlTransaction otasrs = sqlasrs1.BeginTransaction(); |
| | | // SqlCommand ocom = new SqlCommand(sql, sqlasrs1); |
| | | // SqlCommand ocom1 = new SqlCommand(sql1, sqlasrs1); |
| | | // ocom.Transaction = otasrs; |
| | | // ocom1.Transaction = otasrs; |
| | | // try |
| | | // { |
| | | // ocom.ExecuteNonQuery(); |
| | | // ocom1.ExecuteNonQuery(); |
| | | // otasrs.Commit(); |
| | | // result = true; |
| | | // } |
| | | // catch (SqlException t) |
| | | // { |
| | | // otasrs.Rollback(); |
| | | // result = false; |
| | | |
| | | // } |
| | | // finally |
| | | // { |
| | | // ocom.Dispose(); |
| | | // otasrs.Dispose(); |
| | | // sqlasrs1.Dispose(); |
| | | // sqlasrs1.Close(); |
| | | // } |
| | | // return result; |
| | | //} |
| | | ///////-------------------------------ä»asrsæ°æ®åºä¸æ§è¡å¼å¨åè½(4个表),忥æ§è¡---------------- |
| | | //public static bool ExecAsrsModifyByMD(string sql, string sql1, string sql2, string sql3) |
| | | //{ |
| | | // bool result = false; |
| | | // SqlConnection sqlasrs1 = new SqlConnection(sqlcon); |
| | | // sqlasrs1.Open(); |
| | | // SqlTransaction otasrs = sqlasrs1.BeginTransaction(); |
| | | // SqlCommand ocom = new SqlCommand(sql, sqlasrs1); |
| | | // SqlCommand ocom1 = new SqlCommand(sql1, sqlasrs1); |
| | | // SqlCommand ocom2 = new SqlCommand(sql2, sqlasrs1); |
| | | // SqlCommand ocom3 = new SqlCommand(sql3, sqlasrs1); |
| | | // ocom.Transaction = otasrs; |
| | | // ocom1.Transaction = otasrs; |
| | | // ocom2.Transaction = otasrs; |
| | | // ocom3.Transaction = otasrs; |
| | | // try |
| | | // { |
| | | // ocom.ExecuteNonQuery(); |
| | | // ocom1.ExecuteNonQuery(); |
| | | // ocom2.ExecuteNonQuery(); |
| | | // ocom3.ExecuteNonQuery(); |
| | | // otasrs.Commit(); |
| | | // result = true; |
| | | // } |
| | | // catch (SqlException t) |
| | | // { |
| | | // otasrs.Rollback(); |
| | | // result = false; |
| | | |
| | | // } |
| | | // finally |
| | | // { |
| | | // ocom.Dispose(); |
| | | // otasrs.Dispose(); |
| | | // sqlasrs1.Dispose(); |
| | | // sqlasrs1.Close(); |
| | | // } |
| | | // return result; |
| | | //} |
| | | /////-------------------------------ä»asrsæ°æ®åºä¸æ§è¡å¼å¨åè½(5个表),忥æ§è¡---------------- |
| | | public static bool ExecAsrsModifyByMD(string sql, string sql1, string sql2, string sql3, string sql4) |
| | | { |
| | | bool result = false; |
| | | SqlConnection sqlasrs1 = new SqlConnection(sqlcon); |
| | | sqlasrs1.Open(); |
| | | SqlTransaction otasrs = sqlasrs1.BeginTransaction(); |
| | | SqlCommand ocom = new SqlCommand(sql, sqlasrs1); |
| | | SqlCommand ocom1 = new SqlCommand(sql1, sqlasrs1); |
| | | SqlCommand ocom2 = new SqlCommand(sql2, sqlasrs1); |
| | | SqlCommand ocom3 = new SqlCommand(sql3, sqlasrs1); |
| | | SqlCommand ocom4 = new SqlCommand(sql4, sqlasrs1); |
| | | ocom.Transaction = otasrs; |
| | | ocom1.Transaction = otasrs; |
| | | ocom2.Transaction = otasrs; |
| | | ocom3.Transaction = otasrs; |
| | | ocom4.Transaction = otasrs; |
| | | try |
| | | { |
| | | ocom.ExecuteNonQuery(); |
| | | ocom1.ExecuteNonQuery(); |
| | | ocom2.ExecuteNonQuery(); |
| | | ocom3.ExecuteNonQuery(); |
| | | ocom4.ExecuteNonQuery(); |
| | | otasrs.Commit(); |
| | | result = true; |
| | | } |
| | | catch (SqlException t) |
| | | { |
| | | otasrs.Rollback(); |
| | | result = false; |
| | | |
| | | } |
| | | finally |
| | | { |
| | | ocom.Dispose(); |
| | | otasrs.Dispose(); |
| | | sqlasrs1.Dispose(); |
| | | sqlasrs1.Close(); |
| | | } |
| | | return result; |
| | | } |
| | | ///////-------------------------------ä»ASRSæ°æ®åºä¸æ§è¡æ¥è¯¢åè½è¿åæ°æ®é---------------- |
| | | //public static int ExecASRSSelect1(string sql) |
| | | //{ |
| | | // int li_count1 = 0; |
| | | // SqlConnection sqlasrs = new SqlConnection(sqlcon); |
| | | // sqlasrs.Open(); |
| | | // SqlCommand ocerp = new SqlCommand(sql, sqlasrs); |
| | | // li_count1 = Convert.ToInt32(ocerp.ExecuteScalar()); |
| | | // ocerp.Dispose(); |
| | | // sqlasrs.Dispose(); |
| | | // sqlasrs.Close(); |
| | | // return li_count1; |
| | | //} |
| | | |
| | | /// <summary> |
| | | /// æ ¹æ®åºä½ç¶æä»£å·è¿ååºä½ç¶æåç§° |
| | | /// </summary> |
| | | /// <param name="locsts"></param> |
| | | /// <returns></returns> |
| | | public static string getlocsts(string locsts) |
| | | { |
| | | string locstsname = ""; |
| | | switch (locsts) |
| | | { |
| | | case "O": |
| | | locstsname = "O-空åºä½"; |
| | | break; |
| | | case "F": |
| | | locstsname = "F-å¨åº"; |
| | | break; |
| | | case "S": |
| | | locstsname = "S-å
¥åºé¢çº¦ä¸"; |
| | | break; |
| | | case "R": |
| | | locstsname = "R-åºåºé¢çº¦ä¸"; |
| | | break; |
| | | case "P": |
| | | locstsname = "P-æ£æ/å¹¶æ¿/çç¹åºåºé¢çº¦ä¸"; |
| | | break; |
| | | case "L": |
| | | locstsname = "L-æ£æåºä½ç©ºè½½ä¸"; |
| | | break; |
| | | case "M": |
| | | locstsname = "M-æ£æåºä½æ»¡è½½ä¸"; |
| | | break; |
| | | case "Q": |
| | | locstsname = "Q-æ£æ/å¹¶æ¿/çç¹åå
¥åºé¢çº¦ä¸"; |
| | | break; |
| | | case "X": |
| | | locstsname = "X-ç¦ç¨"; |
| | | break; |
| | | case "D": |
| | | locstsname = "D-ç©ºæ æ¿"; |
| | | break; |
| | | default: |
| | | locstsname = "O-空åºä½"; |
| | | break; |
| | | } |
| | | return locstsname; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æ ¹æ®å·¥ä½ç¶æä»£å·å¾å°å·¥ä½ç¶æåç§° |
| | | /// </summary> |
| | | /// <param name="sts"></param> |
| | | /// <returns></returns> |
| | | public static string Getwrksts(string sts) |
| | | { |
| | | string wrkstsname = ""; |
| | | switch (sts) |
| | | { |
| | | case "1": |
| | | wrkstsname = "1.çæå
¥åºID"; |
| | | break; |
| | | case "2": |
| | | wrkstsname = "2.设å¤ä¸ç§»å¨"; |
| | | break; |
| | | case "3": |
| | | wrkstsname = "3.å åæºå
¥åºä¸"; |
| | | break; |
| | | case "4": |
| | | wrkstsname = "4.å åæºå
¥åºå®æ"; |
| | | break; |
| | | case "5": |
| | | wrkstsname = "5.å
¥åºåæ¥å®æ"; |
| | | break; |
| | | //case "6": |
| | | // wrkstsname = "6.2å·å åæºç«å°ç«ä¸"; |
| | | // break; |
| | | //case "7": |
| | | // return "7.5ç«å°6ç«ç§»å¨ä¸"; |
| | | // break; |
| | | //case "8": |
| | | // return "8.7ç«å°8ç«ç§»å¨ä¸"; |
| | | // break; |
| | | //case "9": |
| | | // return "9.2å·å åæºç«å°ç«å®æ"; |
| | | // break; |
| | | case "11": |
| | | wrkstsname = "11.çæåºåºID"; |
| | | break; |
| | | case "12": |
| | | wrkstsname = "12.å åæºåºåºä¸"; |
| | | break; |
| | | case "13": |
| | | wrkstsname = "13.空åºåº"; |
| | | break; |
| | | case "14": |
| | | wrkstsname = "14.å åæºåºåºå®æ"; |
| | | break; |
| | | case "15": |
| | | wrkstsname = "15.åºåºåæ¥å®æ"; |
| | | break; |
| | | case "16": |
| | | wrkstsname = "16.LEDæä»¤å®æ"; |
| | | break; |
| | | } |
| | | return wrkstsname; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æ ¹æ®IOç±»å代å·å¾å°IOåç§° |
| | | /// </summary> |
| | | /// <param name="sts"></param> |
| | | /// <returns></returns> |
| | | public static string Getiotype(string sts) |
| | | { |
| | | string iotypename = ""; |
| | | switch (sts) |
| | | { |
| | | case "1": |
| | | iotypename = "1.å
¥åº"; |
| | | break; |
| | | case "6": |
| | | iotypename = "6.éåº"; |
| | | break; |
| | | case "10": |
| | | iotypename = "10.空桶å
¥åº"; |
| | | break; |
| | | case "110": |
| | | iotypename = "110.空桶åºåº"; |
| | | break; |
| | | case "101": |
| | | iotypename = "101.å
¨æ¿åºåº"; |
| | | break; |
| | | case "103": |
| | | iotypename = "103.æ£æåºåº"; |
| | | break; |
| | | case "104": |
| | | iotypename = "104.å¹¶æ¿åºåº"; |
| | | break; |
| | | case "107": |
| | | iotypename = "107.çç¹åºåº"; |
| | | break; |
| | | case "53": |
| | | iotypename = "53.æ£æåå
¥åº"; |
| | | break; |
| | | case "57": |
| | | iotypename = "57.çç¹åå
¥åº"; |
| | | break; |
| | | case "54": |
| | | iotypename = "54.å¹¶æ¿åå
¥åº"; |
| | | break; |
| | | } |
| | | return iotypename; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æ ¹æ®æ£æç«å¾å°åå
¥åºå åæºç«ç¹ |
| | | /// </summary> |
| | | /// <param name="crn"></param> |
| | | /// <param name="stn"></param> |
| | | /// <returns></returns> |
| | | public static int GetRestoreStnByPick(int crn, int stn) |
| | | { |
| | | int stnno = 0; |
| | | switch (crn) |
| | | { |
| | | case 1: |
| | | stnno = 106; |
| | | break; |
| | | case 2: |
| | | stnno = 120; |
| | | break; |
| | | |
| | | case 3: |
| | | stnno = 133; |
| | | break; |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | | return stnno; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æ ¹æ®ç«å·å¾å°å¯¹åºå车ç«åºå· |
| | | /// </summary> |
| | | /// <param name="stn"></param> |
| | | /// <returns></returns> |
| | | public static int GetCrnStnSeq(int stn) |
| | | { |
| | | int crnstn = 0; |
| | | switch (stn) |
| | | { |
| | | case 100: |
| | | crnstn = 1; |
| | | break; |
| | | case 200: |
| | | crnstn = 2; |
| | | break; |
| | | case 104: |
| | | crnstn = 1; |
| | | break; |
| | | case 204: |
| | | crnstn = 2; |
| | | break; |
| | | default: |
| | | crnstn = 0; |
| | | break; |
| | | } |
| | | return crnstn; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æ ¹æ®å åæºå
¥åºç«å·å¾å°ç«ç¹ç¼å· |
| | | /// </summary> |
| | | /// <param name="crn">å åæºå·</param> |
| | | /// <param name="seq">å åæºç«ç¹ç¼å·</param> |
| | | /// <returns>è¾éæºç«ç¹ç¼å·</returns> |
| | | public static int GetStnSeqNo(int crn, int seq) |
| | | { |
| | | int stnno = 0; |
| | | switch (crn) |
| | | { |
| | | case 1: |
| | | switch (seq) |
| | | { |
| | | case 1: |
| | | stnno = 104; |
| | | break; |
| | | //case 2: |
| | | // stnno = 104; |
| | | // break; |
| | | } |
| | | break; |
| | | case 2: |
| | | switch (seq) |
| | | { |
| | | case 1: |
| | | stnno = 204; |
| | | break; |
| | | } |
| | | break; |
| | | default: |
| | | stnno = seq; |
| | | break; |
| | | } |
| | | return stnno; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 夿å符串æ¯å¦æ°å |
| | | /// </summary> |
| | | /// <param name="ls_string"></param> |
| | | /// <returns></returns> |
| | | public static bool ChkStrtoInt(string ls_string) |
| | | { |
| | | bool result = false; |
| | | int i = 0, i_len = 0; |
| | | i_len = ls_string.Length; |
| | | for (i = 0; i < i_len; i++) |
| | | { |
| | | if (ls_string[i] >= '0' && ls_string[i] <= '9') |
| | | // if (Convert.ToInt32(ls_string[i].ToString()) >= 0 && Convert.ToInt32(ls_string[i].ToString()) <= 9) |
| | | { |
| | | result = true; |
| | | } |
| | | else |
| | | { |
| | | result = false; |
| | | break; |
| | | } |
| | | } |
| | | return result; |
| | | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// åæ¥å¿æä»¶ |
| | | /// </summary> |
| | | /// <param name="Memo">åå
¥å
容</param> |
| | | public static void WriteLogFile(string fileName, string Memo) |
| | | { |
| | | DateTime dt = DateTime.Now; |
| | | string FileName = Application.StartupPath + "\\log\\" + fileName + string.Format("{0:yyyyMMdd}", dt) + ".log"; |
| | | try |
| | | { |
| | | if (!Directory.Exists(Application.StartupPath + "\\log")) |
| | | { |
| | | Directory.CreateDirectory(Application.StartupPath + "\\log"); |
| | | } |
| | | |
| | | StreamWriter fs1 = new StreamWriter(FileName, true);//å建åå
¥æä»¶ |
| | | //StreamWriter sw = new StreamWriter(fs1); |
| | | fs1.WriteLine("ã" + DateTime.Now.ToString() + "ã" + Memo);//å¼å§åå
¥å¼ |
| | | |
| | | //sw.Close(); |
| | | fs1.Close(); |
| | | } |
| | | catch (Exception) |
| | | { |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// DateTimeæ¶é´æ ¼å¼è½¬æ¢ä¸ºUnixæ¶é´æ³æ ¼å¼ |
| | | /// </summary> |
| | | /// <param name=âtimeâ></param> |
| | | /// <returns></returns> |
| | | public static int ConvertDateTimeInt(System.DateTime time) |
| | | { |
| | | System.DateTime startTime = TimeZone.CurrentTimeZone.ToLocalTime(new System.DateTime(1970, 1, 1)); |
| | | return (int)(time - startTime).TotalSeconds; |
| | | |
| | | } |
| | | |
| | | ///// <summary> |
| | | ///// 夿工使¡£ä¸å
¥åºèµææ°é |
| | | ///// </summary> |
| | | ///// <returns></returns> |
| | | //public static int GetWrkInCount() |
| | | //{ |
| | | // int result = 1000; |
| | | // try |
| | | // { |
| | | // string sql = "select * from asr_wrk_mast where wrk_sts>0 and wrk_sts<5"; |
| | | // result = Common.ExecAsrsSelect1(sql); |
| | | // } |
| | | // catch (Exception) |
| | | // { |
| | | // } |
| | | // return result; |
| | | //} |
| | | |
| | | ///// <summary> |
| | | ///// 夿工使¡£ä¸åºåºèµææ°é |
| | | ///// </summary> |
| | | ///// <returns></returns> |
| | | //public static int GetWrkOutCount() |
| | | //{ |
| | | // int result = 1000; |
| | | // try |
| | | // { |
| | | // string sql = "select * from asr_wrk_mast where wrk_sts>11 and wrk_sts<15"; |
| | | // result = Common.ExecAsrsSelect1(sql); |
| | | // } |
| | | // catch (Exception) |
| | | // { |
| | | // } |
| | | // return result; |
| | | //} |
| | | |
| | | ///// <summary> |
| | | ///// 夿工使¡£ä¸èµææ°é |
| | | ///// </summary> |
| | | ///// <returns></returns> |
| | | //public static int GetWrkCount() |
| | | //{ |
| | | // int result = 1000; |
| | | // try |
| | | // { |
| | | // string sql = "select * from asr_wrk_mast where wrk_sts<15"; |
| | | // result = Common.ExecAsrsSelect1(sql); |
| | | // } |
| | | // catch (Exception) |
| | | // { |
| | | // } |
| | | // return result; |
| | | //} |
| | | |
| | | ///// <summary> |
| | | ///// 夿åºåæ¡£ä¸åºåèµææ¯å¦åå¨ |
| | | ///// </summary> |
| | | ///// <returns></returns> |
| | | //public static int GetStkCount(string boxId) |
| | | //{ |
| | | // int result = 1000; |
| | | // try |
| | | // { |
| | | // string sql = "select * from asr_loc_mast where boxId='" + boxId + "'"; |
| | | // result = Common.ExecAsrsSelect1(sql); |
| | | // } |
| | | // catch (Exception) |
| | | // { |
| | | // } |
| | | // return result; |
| | | //} |
| | | |
| | | /// <summary> |
| | | /// æ£æ¥æ°æ®åºè¿æ¥æ¯å¦æ£å¸¸ |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | public static bool CheckDbConnect() |
| | | { |
| | | bool result = false; |
| | | SqlConnection conn = new SqlConnection(Common.sqlcon); |
| | | try |
| | | { |
| | | if (conn.State == ConnectionState.Closed) |
| | | conn.Open(); |
| | | else if (conn.State == ConnectionState.Broken) |
| | | { |
| | | conn.Close(); |
| | | conn.Open(); |
| | | } |
| | | result = true; |
| | | } |
| | | catch (Exception em) |
| | | { |
| | | //MessageBox.Show("æ°æ®åºè¿æ¥å¤±è´¥ã" + em.Message, "é误"); |
| | | } |
| | | finally |
| | | { |
| | | conn.Close(); |
| | | } |
| | | return result; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æ£æµç«¯å£æ¯å¦å ç¨ |
| | | /// </summary> |
| | | /// <param name="port"></param> |
| | | /// <returns></returns> |
| | | public static bool PortInUse(int port) |
| | | { |
| | | bool inUse = false; |
| | | |
| | | IPGlobalProperties ipProperties = IPGlobalProperties.GetIPGlobalProperties(); |
| | | IPEndPoint[] ipEndPoints = ipProperties.GetActiveTcpListeners(); |
| | | |
| | | foreach (IPEndPoint endPoint in ipEndPoints) |
| | | { |
| | | if (endPoint.Port == port) |
| | | { |
| | | inUse = true; |
| | | break; |
| | | } |
| | | } |
| | | return inUse; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æ ¹æ®è¾éæºç«ç¹è·å对åºåºä½å· |
| | | /// </summary> |
| | | /// <param name="i_stn">å åæºç¶æå¼</param> |
| | | /// <returns>åºä½å·</returns> |
| | | public static string GetLocByStn(int i_stn) |
| | | { |
| | | string loc_no = "0000000"; |
| | | switch (i_stn) |
| | | { |
| | | case 100: |
| | | loc_no = "0200101"; |
| | | break; |
| | | case 104: |
| | | loc_no = "0300101"; |
| | | break; |
| | | case 200: |
| | | loc_no = "0400101"; |
| | | break; |
| | | case 204: |
| | | loc_no = "0500101"; |
| | | break; |
| | | default: |
| | | loc_no = "0000000"; |
| | | break; |
| | | } |
| | | return loc_no; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æ ¹æ®åºä½å·è·å对åºè¾éæºç«ç¹ç¼å· |
| | | /// </summary> |
| | | /// <param name="i_stn">å åæºç¶æå¼</param> |
| | | /// <returns>åºä½å·</returns> |
| | | public static int GetStnByLoc(string loc_no) |
| | | { |
| | | int i_stn = 0; |
| | | switch (loc_no) |
| | | { |
| | | case "0200101": |
| | | i_stn = 100; |
| | | break; |
| | | case "0300101": |
| | | i_stn = 104; |
| | | break; |
| | | case "0400101": |
| | | i_stn = 200; |
| | | break; |
| | | case "0500101": |
| | | i_stn = 204; |
| | | break; |
| | | default: |
| | | i_stn = 0; |
| | | break; |
| | | } |
| | | return i_stn; |
| | | } |
| | | |
| | | #region å åæºå¼å¸¸å表 |
| | | /// <summary> |
| | | /// æ ¹æ®å åæºå¼å¸¸ç å¾å°å¼å¸¸åç§° |
| | | /// </summary> |
| | | /// <param name="AlarmCode">å åæºå¼å¸¸ç </param> |
| | | /// <returns>å åæºå¼å¸¸åç§°</returns> |
| | | public static string GetCrnErrorName(int AlarmCode) |
| | | { |
| | | string errorName = ""; |
| | | switch (AlarmCode) |
| | | { |
| | | case 0: |
| | | errorName = ""; |
| | | break; |
| | | case 1: |
| | | errorName = "ä¸»çµæºæè·¯å¨æå¼"; |
| | | break; |
| | | case 2: |
| | | errorName = "ç¸ä½ååæç¼ºç¸"; |
| | | break; |
| | | case 3: |
| | | errorName = "å
é¨ 24V ä¾çµå¼å¸¸"; |
| | | break; |
| | | case 4: |
| | | errorName = "å¤é¨ 24V ä¾çµå¼å¸¸"; |
| | | break; |
| | | case 5: |
| | | errorName = "24Væ»æè·¯å¨å¼å¸¸"; |
| | | break; |
| | | case 6: |
| | | errorName = "æ»äº¤æµæ¥è§¦å¨å¼å¸¸"; |
| | | break; |
| | | case 7: |
| | | errorName = "è¡èµ°æ±é¸æ¥è§¦å¨å¼å¸¸"; |
| | | break; |
| | | case 8: |
| | | errorName = "èµ·åæ±é¸æ¥è§¦å¨å¼å¸¸"; |
| | | break; |
| | | case 9: |
| | | errorName = "è´§åæ±é¸æ¥è§¦å¨å¼å¸¸"; |
| | | break; |
| | | case 11: |
| | | errorName = "è¡èµ°åé¢å¨æ¥è¦"; |
| | | break; |
| | | case 12: |
| | | errorName = "èµ·ååé¢å¨æ¥è¦"; |
| | | break; |
| | | case 13: |
| | | errorName = "è´§ååé¢å¨æ¥è¦"; |
| | | break; |
| | | case 14: |
| | | errorName = "è¡èµ°é©¬è¾¾ä¿æ¤å¨å¼å¸¸"; |
| | | break; |
| | | case 15: |
| | | errorName = "èµ·åé©¬è¾¾ä¿æ¤å¨å¼å¸¸"; |
| | | break; |
| | | case 16: |
| | | errorName = "è´§åé©¬è¾¾ä¿æ¤å¨å¼å¸¸"; |
| | | break; |
| | | case 18: |
| | | errorName = "è´§åä½ç½®é误"; |
| | | break; |
| | | case 19: |
| | | errorName = "è´§å触åå·¦æé"; |
| | | break; |
| | | case 20: |
| | | errorName = "è´§å触å峿é"; |
| | | break; |
| | | case 21: |
| | | errorName = "载货å°è´§ç©å·¦åè¶
é"; |
| | | break; |
| | | case 22: |
| | | errorName = "载货å°è´§ç©å·¦åè¶
é"; |
| | | break; |
| | | case 23: |
| | | errorName = "载货å°è´§ç©å³åè¶
é"; |
| | | break; |
| | | case 24: |
| | | errorName = "载货å°è´§ç©å³åè¶
é"; |
| | | break; |
| | | case 25: |
| | | errorName = "载货å°è´§ç©å·¦åå¡"; |
| | | break; |
| | | case 26: |
| | | errorName = "载货å°è´§ç©å·¦è¶
é«"; |
| | | break; |
| | | case 27: |
| | | errorName = "è¡èµ°çµæºä½ç½®å¼æªåå¨"; |
| | | break; |
| | | case 28: |
| | | errorName = "èµ·åçµæºä½ç½®å¼æªåå¨"; |
| | | break; |
| | | case 29: |
| | | errorName = "载货å°è´§ç©å³è¶
é«"; |
| | | break; |
| | | case 30: |
| | | errorName = "è´§åçµæºä½ç½®å¼æªåå¨"; |
| | | break; |
| | | case 32: |
| | | errorName = "载货å°è´§ç©å³åå¡"; |
| | | break; |
| | | case 33: |
| | | errorName = "è¡èµ°æ¿å
丢失"; |
| | | break; |
| | | case 34: |
| | | errorName = "è¡èµ°åå失败"; |
| | | break; |
| | | case 35: |
| | | errorName = "èµ·åæ¿å
丢失"; |
| | | break; |
| | | case 36: |
| | | errorName = "èµ·ååå失败"; |
| | | break; |
| | | case 37: |
| | | errorName = "è´§åæµè·å¼å¸¸"; |
| | | break; |
| | | case 38: |
| | | errorName = "è´§ååå失败"; |
| | | break; |
| | | case 39: |
| | | errorName = "åé¢å¨æ»çº¿IOé讯æå¼"; |
| | | break; |
| | | case 42: |
| | | errorName = "è¡èµ°çµæºè¿è¡è¶
æ¶"; |
| | | break; |
| | | case 43: |
| | | errorName = "èµ·åçµæºè¿è¡è¶
æ¶"; |
| | | break; |
| | | case 44: |
| | | errorName = "è´§åçµæºè¿è¡è¶
æ¶"; |
| | | break; |
| | | case 45: |
| | | errorName = "载货å°å®å
¨åè·¯æå¼"; |
| | | break; |
| | | case 47: |
| | | errorName = "æé¨æ¥å"; |
| | | break; |
| | | case 49: |
| | | errorName = "æ¾ç»³ä¿æ¤å¼å
³è§¦å"; |
| | | break; |
| | | case 51: |
| | | errorName = "å¤é¨æ¥åæå®å
¨é¨æå¼"; |
| | | break; |
| | | case 53: |
| | | errorName = "ç¸åºä¿æ¤å¨å¼å¸¸"; |
| | | break; |
| | | case 54: |
| | | errorName = "å®å
¨ç»§çµå¨å¼å¸¸"; |
| | | break; |
| | | case 55: |
| | | errorName = "æ°´å¹³æéå¼å
³è¢«è§¦å"; |
| | | break; |
| | | case 56: |
| | | errorName = "èµ·å䏿éå¼å
³è§¦å"; |
| | | break; |
| | | case 57: |
| | | errorName = "èµ·åè¶
éä¿æ¤å¼å
³è§¦å"; |
| | | break; |
| | | case 58: |
| | | errorName = "èµ·å䏿éå¼å
³è§¦å"; |
| | | break; |
| | | case 61: |
| | | errorName = "æ¾è´§æ¶è´§æ¶æè´§"; |
| | | break; |
| | | case 62: |
| | | errorName = "èªå¨æ¨¡å¼æ ä»»å¡è½½è´§å°æè´§"; |
| | | break; |
| | | case 63: |
| | | errorName = "æ¾è´§åè½½è´§å°æè´§"; |
| | | break; |
| | | case 64: |
| | | errorName = "åè´§åè½½è´§å°æ è´§"; |
| | | break; |
| | | case 66: |
| | | errorName = "ç®æ ä½ç½®æªæ¾å°"; |
| | | break; |
| | | case 67: |
| | | errorName = "è¾éæºä¸å
许åè´§/æ¾è´§"; |
| | | break; |
| | | case 69: |
| | | errorName = "ä»»å¡å°åé误"; |
| | | break; |
| | | case 71: |
| | | errorName = "ä¸ä¸ä»»å¡æªå®æè¦å"; |
| | | break; |
| | | case 75: |
| | | errorName = "ä¸ä½æºä¸åæ¥å"; |
| | | break; |
| | | case 76: |
| | | errorName = "çµæ§æé¨æå¼"; |
| | | break; |
| | | case 85: |
| | | errorName = "载货å°è¿ç¨IOæå¼"; |
| | | break; |
| | | case 87: |
| | | errorName = "触æ¸å±æ¥å"; |
| | | break; |
| | | case 101: |
| | | errorName = "è´§åå¨ä¸ä½æ²¡æä¸ä½å¼å
³ä¿¡å·"; |
| | | break; |
| | | case 102: |
| | | errorName = "è´§åå¨éä¸ä½æä¸ä½ä¿¡å·"; |
| | | break; |
| | | default: |
| | | errorName = "æªç¥"; |
| | | break; |
| | | } |
| | | return errorName; |
| | | } |
| | | #endregion |
| | | |
| | | } |
| | | } |
| New file |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Net; |
| | | using System.Net.Sockets; |
| | | using System.Windows.Forms; |
| | | using System.Threading; |
| | | using System.Net.NetworkInformation; |
| | | using System.Runtime.InteropServices; |
| | | using com.force.json; |
| | | using DevComponents.DotNetBar.Controls; |
| | | using System.Drawing; |
| | | using System.Data; |
| | | using HslCommunication.Profinet.Siemens; |
| | | using HslCommunication; |
| | | using HslCommunication.Core.Net; |
| | | |
| | | namespace WCS |
| | | { |
| | | /// <summary> |
| | | /// å åæºçº¿ç¨ |
| | | /// </summary> |
| | | class CraneThread |
| | | { |
| | | //[DllImport("kernel32")] |
| | | //private static extern int GetPrivateProfileString(string section, string key, string def, StringBuilder retVal, int size, string filePath); |
| | | //[DllImport("kernel32")] |
| | | //private static extern long WritePrivateProfileString(string section, string key, string val, string filePath); |
| | | main form1; |
| | | //NetworkStream myNetworkStream; |
| | | //Thread thr = null; |
| | | delegate void displayresponse(string text); |
| | | //int wrk_no = 0, sstnno = 0, dstnno = 0,type=0; |
| | | //string type_cmd = "", slocno = "", dlocno = ""; |
| | | string recvStr = ""; |
| | | string crnip = ""; |
| | | int crnport = 0; |
| | | int crnno = 0; |
| | | //string headstr = ""; |
| | | //string testip = ""; |
| | | Thread trd = null; |
| | | int i_crn_step = 0; |
| | | //int i_crn_iotype = 0; |
| | | public static string crn_cmd = ""; |
| | | delegate void SetTextCallback(string text); |
| | | delegate void DisplayData(int type, int i); |
| | | delegate void DisplaycrnstsData(int crn, int bay, int lev, double dist, double height, int err); |
| | | delegate void SetTextCallback1(); |
| | | |
| | | private SiemensS7Net siemensTcpNet = null; |
| | | private OperateResult connect = null; |
| | | |
| | | #region ç»é¢ä¸åæ¥æ¾ç¤ºæ§ä»¶ |
| | | //public DevComponents.DotNetBar.LabelX cmd; |
| | | //public ListView crncmdlist; |
| | | //public ListView crnslist; |
| | | public ListView crnstslist; |
| | | public ListBox tb; |
| | | public DataGridViewX dgv_crnsts; |
| | | public TextBoxX tb_sendtocrn; |
| | | #endregion |
| | | |
| | | public CraneThread(int crn_no, string crnip, int crnport, main f) |
| | | { |
| | | try |
| | | { |
| | | this.crnip = crnip; |
| | | this.crnno = crn_no; |
| | | this.crnport = crnport; |
| | | form1 = f; |
| | | |
| | | siemensTcpNet = new SiemensS7Net(SiemensPLCS.S1200); |
| | | siemensTcpNet.IpAddress = this.crnip; |
| | | siemensTcpNet.Port = this.crnport; |
| | | siemensTcpNet.Rack = 0; |
| | | siemensTcpNet.Slot = 0; |
| | | siemensTcpNet.ConnectClose(); |
| | | |
| | | trd = new Thread(new ThreadStart(this.ThreadTask)); |
| | | trd.IsBackground = true; |
| | | trd.Start(); |
| | | } |
| | | catch (Exception em) |
| | | { |
| | | Common.WriteLogFile("WcsError", "CraneThread/CraneThread--å åæºçº¿ç¨å¯å¨åºé:" + em.Message); |
| | | } |
| | | } |
| | | |
| | | public void Destroy() |
| | | { |
| | | siemensTcpNet.ConnectClose(); |
| | | trd.Abort(); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æå¼è¿æ¥åï¼éæ°è¿æ¥ |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | private bool ReConnect() |
| | | { |
| | | bool result = false; |
| | | try |
| | | { |
| | | siemensTcpNet.ConnectClose(); |
| | | connect = siemensTcpNet.ConnectServer(); |
| | | if (connect.IsSuccess) |
| | | { |
| | | result = true; |
| | | DisplayInfo("ã" + DateTime.Now.ToString() + "ã" + crnno + "å·å åæºéæ°è¿æ¥PLCæå "); |
| | | } |
| | | else |
| | | { |
| | | DisplayInfo("ã" + DateTime.Now.ToString() + "ã" + crnno + "å·å åæºéæ°è¿æ¥PLC失败---" + connect.ToMessageShowString()); |
| | | } |
| | | } |
| | | catch (Exception em) |
| | | { |
| | | DisplayInfo("ã" + DateTime.Now.ToString() + "ã" + crnno + "å·å åæºéæ°è¿æ¥PLC失败---" + em.Message); |
| | | } |
| | | return result; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æ ¹æ®å åæºå½ä»¤å¤æä½ä¸ç±»å |
| | | /// </summary> |
| | | /// <param name="cmd">å½ä»¤</param> |
| | | private void ChkCrnCmd(string cmd) |
| | | { |
| | | int nkind = 0; |
| | | try |
| | | { |
| | | nkind = Int32.Parse(cmd.Substring(0, 2)); |
| | | i_crn_step = nkind; |
| | | Common.gi_crn_iotype[crnno - 1] = nkind; |
| | | //i_crn_iotype = nkind; |
| | | } |
| | | catch (Exception em) |
| | | { |
| | | i_crn_step = 6; |
| | | Common.WriteLogFile("WcsError", "CraneThread/ChkCrnCmd--æ ¹æ®å½ä»¤å¤æä½ä¸ç±»ååºé:" + em.Message); |
| | | //i_crn_iotype = 6; |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æ¸
é¤å½ä»¤æä½ |
| | | /// </summary> |
| | | /// <param name="cmd"></param> |
| | | private void Proc_ClearCmd(string cmd) |
| | | { |
| | | //int iotype = 0, i_srow = 0, i_sbay = 0, i_slev = 0, i_drow = 0, i_dbay = 0, i_dlev = 0; |
| | | if (cmd == "" || cmd == null) |
| | | { |
| | | return; |
| | | } |
| | | try |
| | | { |
| | | int type = Int32.Parse(cmd.Substring(0, 2)); |
| | | //int wrkno = Int32.Parse(cmd.Substring(2, 4)); |
| | | if (type != 3) { return; } |
| | | //iotype = 3; |
| | | //i_srow = 0;//æºrow |
| | | //i_sbay = 0;//æºbay |
| | | //i_slev = 0;//æºlev |
| | | //i_drow = 0;//ç®æ rpw |
| | | //i_dbay = 0;//ç®æ bay |
| | | //i_dlev = 0;//ç®æ lev |
| | | |
| | | Common.crn_i_crnno[crnno - 1] = crnno; |
| | | Common.crn_i_crn_sts[crnno - 1] = Common.ci_CRN_STS_IDLE; |
| | | Common.crn_i_Errcod[crnno - 1] = 0; |
| | | Common.crn_i_kind[crnno - 1] = 0; |
| | | Common.crn_i_fstn[crnno - 1] = 0; |
| | | Common.crn_i_tstn[crnno - 1] = 0; |
| | | Common.crn_s_Flocno[crnno - 1] = ""; |
| | | Common.crn_s_Tlocno[crnno - 1] = ""; |
| | | Common.crn_s_commandstr[crnno - 1] = ""; |
| | | Common.gs_crncmd[crnno - 1] = ""; |
| | | //WriteCrnData(iotype, i_srow, i_sbay, i_slev, i_drow, i_dbay, i_dlev); |
| | | // ReadCrnData(); |
| | | //WriteCrnData(0, 0, 0, 0, 0, 0, 0, 0); |
| | | OperateResult result = siemensTcpNet.Write("DB90.0", (short)1); |
| | | Thread.Sleep(Common.ci_CRNtimeInterval); |
| | | ReadCrnData(); |
| | | i_crn_step = 6; |
| | | } |
| | | catch (Exception em) |
| | | { |
| | | Common.WriteLogFile("WcsError", "CraneThread/Proc_ClearCmd--æ¸
é¤å½ä»¤åºé:" + em.Message); |
| | | return; |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// ååç¹ |
| | | /// </summary> |
| | | /// <param name="cmd"></param> |
| | | private void Proc_RebackHp(string cmd) |
| | | { |
| | | if (Common.Mode[crnno - 1] != Common.ci_CRN_ONLINE || Common.CrnState[crnno - 1] != Common.ci_CRN_STS_IDLE |
| | | || Common.AlarmCode[crnno - 1] != 0 || Common.TaskNo[crnno - 1] != 0)// || Common.Loaded[crnno - 1] != 0) |
| | | { |
| | | ReadCrnData(); |
| | | return; |
| | | } |
| | | int iotype = 0, i_srow = 0, i_sbay = 0, i_slev = 0, i_drow = 0, i_dbay = 0, i_dlev = 0; |
| | | |
| | | if (cmd == "" || cmd == null) |
| | | { |
| | | return; |
| | | } |
| | | try |
| | | { //07 0001 0100203 0200304 |
| | | int type = Int32.Parse(cmd.Substring(0, 2)); |
| | | int wrkno = Int32.Parse(cmd.Substring(2, 4)); |
| | | if (type != 4) { return; } |
| | | iotype = 5; |
| | | i_srow = Int32.Parse(cmd.Substring(6, 2)); |
| | | i_sbay = Int32.Parse(cmd.Substring(8, 3)); |
| | | i_slev = Int32.Parse(cmd.Substring(11, 2)); |
| | | i_drow = Int32.Parse(cmd.Substring(13, 2)); |
| | | i_dbay = Int32.Parse(cmd.Substring(15, 3)); |
| | | i_dlev = Int32.Parse(cmd.Substring(18, 2)); |
| | | |
| | | Common.crn_i_crnno[crnno - 1] = crnno; |
| | | Common.crn_i_Wrkno[crnno - 1] = wrkno; |
| | | Common.crn_i_crn_sts[crnno - 1] = Common.ci_CRN_STS_HP_POSITION; |
| | | Common.crn_i_Errcod[crnno - 1] = 0; |
| | | Common.crn_i_kind[crnno - 1] = type; |
| | | Common.crn_i_fstn[crnno - 1] = Common.GetStnByLoc(cmd.Substring(6, 7)); |
| | | Common.crn_i_tstn[crnno - 1] = 0; |
| | | Common.crn_s_Flocno[crnno - 1] = ""; |
| | | Common.crn_s_Tlocno[crnno - 1] = cmd.Substring(13, 7); |
| | | Common.CrnState[crnno - 1] = 3; |
| | | |
| | | WriteCrnData(iotype, wrkno, i_srow, i_sbay, i_slev, i_drow, i_dbay, i_dlev); |
| | | Thread.Sleep(Common.ci_CRNtimeInterval); |
| | | ReadCrnData(); |
| | | } |
| | | catch (Exception em) |
| | | { |
| | | Common.WriteLogFile("WcsError", "CraneThread/Proc_RebackHp--ååç¹é¤å½ä»¤åºé:" + em.Message); |
| | | return; |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// åæ ç§»å¨ |
| | | /// </summary> |
| | | /// <param name="cmd"></param> |
| | | private void Proc_CoordMove(string cmd) |
| | | { |
| | | if (Common.Mode[crnno - 1] != Common.ci_CRN_ONLINE || Common.CrnState[crnno - 1] != Common.ci_CRN_STS_IDLE |
| | | || Common.AlarmCode[crnno - 1] != 0 || Common.TaskNo[crnno - 1] != 0)// || Common.Loaded[crnno - 1] != 0) |
| | | { |
| | | ReadCrnData(); |
| | | return; |
| | | } |
| | | int iotype = 0, i_srow = 0, i_sbay = 0, i_slev = 0, i_drow = 0, i_dbay = 0, i_dlev = 0; |
| | | |
| | | if (cmd == "" || cmd == null) |
| | | { |
| | | return; |
| | | } |
| | | try |
| | | { //07 0001 0100203 0200304 |
| | | int type = Int32.Parse(cmd.Substring(0, 2)); |
| | | int wrkno = Int32.Parse(cmd.Substring(2, 4)); |
| | | if (type != 5) { return; } |
| | | Common.crn_i_Wrkno[crnno - 1] = wrkno; |
| | | iotype = 7; |
| | | i_srow = Int32.Parse(cmd.Substring(6, 2)); |
| | | i_sbay = Int32.Parse(cmd.Substring(8, 3)); |
| | | i_slev = Int32.Parse(cmd.Substring(11, 2)); |
| | | i_drow = Int32.Parse(cmd.Substring(13, 2)); |
| | | i_dbay = Int32.Parse(cmd.Substring(15, 3)); |
| | | i_dlev = Int32.Parse(cmd.Substring(18, 2)); |
| | | |
| | | Common.crn_i_crnno[crnno - 1] = crnno; |
| | | Common.crn_i_Wrkno[crnno - 1] = wrkno; |
| | | Common.crn_i_crn_sts[crnno - 1] = Common.ci_CRN_STS_MOVING; |
| | | Common.crn_i_Errcod[crnno - 1] = 0; |
| | | Common.crn_i_kind[crnno - 1] = type; |
| | | Common.crn_i_fstn[crnno - 1] = Common.GetStnByLoc(cmd.Substring(6, 7)); |
| | | Common.crn_i_tstn[crnno - 1] = 0; |
| | | Common.crn_s_Flocno[crnno - 1] = ""; |
| | | Common.crn_s_Tlocno[crnno - 1] = cmd.Substring(13, 7); |
| | | Common.CrnState[crnno - 1] = 3; |
| | | |
| | | WriteCrnData(iotype, wrkno, i_srow, i_sbay, i_slev, i_drow, i_dbay, i_dlev); |
| | | Thread.Sleep(Common.ci_CRNtimeInterval); |
| | | ReadCrnData(); |
| | | } |
| | | catch (Exception em) |
| | | { |
| | | Common.WriteLogFile("WcsError", "CraneThread/Proc_CoordMove--åæ ç§»å¨å½ä»¤åºé:" + em.Message); |
| | | return; |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// ç§»å¨è³ç« |
| | | /// </summary> |
| | | /// <param name="cmd"></param> |
| | | private void Proc_MoveToStn(string cmd) |
| | | { |
| | | if (Common.Mode[crnno - 1] != Common.ci_CRN_ONLINE || Common.CrnState[crnno - 1] != Common.ci_CRN_STS_IDLE |
| | | || Common.AlarmCode[crnno - 1] != 0 || Common.TaskNo[crnno - 1] != 0)// || Common.Loaded[crnno - 1] != 0) |
| | | { |
| | | ReadCrnData(); |
| | | return; |
| | | } |
| | | int iotype = 0, i_srow = 0, i_sbay = 0, i_slev = 0, i_drow = 0, i_dbay = 0, i_dlev = 0; |
| | | if (cmd == "" || cmd == null) |
| | | { |
| | | return; |
| | | } |
| | | try |
| | | { //07 0001 0100203 0200304 |
| | | int type = Int32.Parse(cmd.Substring(0, 2)); |
| | | int wrkno = Int32.Parse(cmd.Substring(2, 4)); |
| | | if (type != 9) { return; } |
| | | iotype = 4; |
| | | i_srow = 0; |
| | | i_sbay = 0; |
| | | i_slev = 0; |
| | | i_drow = 0; |
| | | i_dbay = 0; |
| | | i_dlev = Int32.Parse(cmd.Substring(13, 4)); |
| | | |
| | | i_srow = Int32.Parse(cmd.Substring(6, 2)); |
| | | i_sbay = Int32.Parse(cmd.Substring(8, 3)); |
| | | i_slev = Int32.Parse(cmd.Substring(11, 2)); |
| | | i_drow = Int32.Parse(cmd.Substring(13, 2)); |
| | | i_dbay = Int32.Parse(cmd.Substring(15, 3)); |
| | | i_dlev = Int32.Parse(cmd.Substring(18, 2)); |
| | | |
| | | Common.crn_i_crnno[crnno - 1] = crnno; |
| | | Common.crn_i_Wrkno[crnno - 1] = wrkno; |
| | | Common.crn_i_crn_sts[crnno - 1] = Common.ci_CRN_STS_MOVING; |
| | | Common.crn_i_Errcod[crnno - 1] = 0; |
| | | Common.crn_i_kind[crnno - 1] = type; |
| | | Common.crn_i_fstn[crnno - 1] = Common.GetStnByLoc(cmd.Substring(6, 7)); |
| | | Common.crn_i_tstn[crnno - 1] = 0; |
| | | Common.crn_s_Flocno[crnno - 1] = ""; |
| | | Common.crn_s_Tlocno[crnno - 1] = cmd.Substring(13, 7); |
| | | Common.CrnState[crnno - 1] = 3; |
| | | |
| | | WriteCrnData(iotype, wrkno, i_srow, i_sbay, i_slev, i_drow, i_dbay, i_dlev); |
| | | Thread.Sleep(Common.ci_CRNtimeInterval); |
| | | ReadCrnData(); |
| | | } |
| | | catch (Exception em) |
| | | { |
| | | Common.WriteLogFile("WcsError", "CraneThread/Proc_MoveToStn--ç§»å¨è³ç«å½ä»¤åºé:" + em.Message); |
| | | return; |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// å
¥åº |
| | | /// </summary> |
| | | /// <param name="cmd"></param> |
| | | private void Proc_Store(string cmd) |
| | | { |
| | | if (Common.Mode[crnno - 1] != Common.ci_CRN_ONLINE || Common.CrnState[crnno - 1] != Common.ci_CRN_STS_IDLE |
| | | || Common.AlarmCode[crnno - 1] != 0 || Common.TaskNo[crnno - 1] != 0)// || Common.Loaded[crnno - 1] != 0) |
| | | { |
| | | //DisplayInfo("Crane abnormal or not in the computer models or not in standby state or crane not free,Please Check!" + " Datetimeï¼" + DateTime.Now.ToString());//忥æ¾ç¤º |
| | | ReadCrnData(); |
| | | return; |
| | | } |
| | | int iotype = 0, i_srow = 0, i_sbay = 0, i_slev = 0, i_drow = 0, i_dbay = 0, i_dlev = 0; |
| | | if (cmd == "" || cmd == null) |
| | | { |
| | | return; |
| | | } |
| | | try |
| | | { //07 0001 0100203 0200304 |
| | | int type = Int32.Parse(cmd.Substring(0, 2)); |
| | | int wrkno = Int32.Parse(cmd.Substring(2, 4)); |
| | | if (type != 7) { return; } |
| | | iotype = 1; |
| | | i_srow = Int32.Parse(cmd.Substring(6, 2)); |
| | | i_sbay = Int32.Parse(cmd.Substring(8, 3)); |
| | | i_slev = Int32.Parse(cmd.Substring(11, 2)); |
| | | i_drow = Int32.Parse(cmd.Substring(13, 2)); |
| | | i_dbay = Int32.Parse(cmd.Substring(15, 3)); |
| | | i_dlev = Int32.Parse(cmd.Substring(18, 2)); |
| | | |
| | | Common.crn_i_crnno[crnno - 1] = crnno; |
| | | Common.crn_i_Wrkno[crnno - 1] = wrkno; |
| | | Common.crn_i_crn_sts[crnno - 1] = Common.ci_CRN_STS_STORE_MOVE; |
| | | Common.crn_i_Errcod[crnno - 1] = 0; |
| | | Common.crn_i_kind[crnno - 1] = type; |
| | | Common.crn_i_fstn[crnno - 1] = Common.GetStnByLoc(cmd.Substring(6, 7)); |
| | | Common.crn_i_tstn[crnno - 1] = 0; |
| | | Common.crn_s_Flocno[crnno - 1] = ""; |
| | | Common.crn_s_Tlocno[crnno - 1] = cmd.Substring(13, 7); |
| | | Common.CrnState[crnno - 1] = 3; |
| | | |
| | | WriteCrnData(iotype, wrkno, i_srow, i_sbay, i_slev, i_drow, i_dbay, i_dlev); |
| | | Thread.Sleep(Common.ci_CRNtimeInterval); |
| | | ReadCrnData(); |
| | | } |
| | | catch (Exception em) |
| | | { |
| | | Common.WriteLogFile("WcsError", "CraneThread/Proc_Store--å
¥åºå½ä»¤åºé:" + em.Message); |
| | | return; |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// å»ååç¹ |
| | | /// </summary> |
| | | /// <param name="cmd"></param> |
| | | private void Proc_RebackOHP(string cmd) |
| | | { |
| | | if (Common.Mode[crnno - 1] != Common.ci_CRN_ONLINE || Common.CrnState[crnno - 1] != Common.ci_CRN_STS_IDLE |
| | | || Common.AlarmCode[crnno - 1] != 0 || Common.TaskNo[crnno - 1] != 0)// || Common.Loaded[crnno - 1] != 0) |
| | | { |
| | | ReadCrnData(); |
| | | return; |
| | | } |
| | | int iotype = 0, i_srow = 0, i_sbay = 0, i_slev = 0, i_drow = 0, i_dbay = 0, i_dlev = 0; |
| | | if (cmd == "" || cmd == null) |
| | | { |
| | | return; |
| | | } |
| | | try |
| | | { //07 0001 0100203 0200304 |
| | | int type = Int32.Parse(cmd.Substring(0, 2)); |
| | | int wrkno = Int32.Parse(cmd.Substring(2, 4)); |
| | | if (type != 10) { return; } |
| | | iotype = 7;// 6; |
| | | i_srow = Int32.Parse(cmd.Substring(6, 2)); |
| | | i_sbay = Int32.Parse(cmd.Substring(8, 3)); |
| | | i_slev = Int32.Parse(cmd.Substring(11, 2)); |
| | | i_drow = Int32.Parse(cmd.Substring(13, 2)); |
| | | i_dbay = Int32.Parse(cmd.Substring(15, 3)); |
| | | i_dlev = Int32.Parse(cmd.Substring(18, 2)); |
| | | |
| | | Common.crn_i_crnno[crnno - 1] = crnno; |
| | | Common.crn_i_Wrkno[crnno - 1] = wrkno; |
| | | Common.crn_i_crn_sts[crnno - 1] = Common.ci_CRN_STS_MOVING; |
| | | Common.crn_i_Errcod[crnno - 1] = 0; |
| | | Common.crn_i_kind[crnno - 1] = type; |
| | | Common.crn_i_fstn[crnno - 1] = Common.GetStnByLoc(cmd.Substring(6, 7)); |
| | | Common.crn_i_tstn[crnno - 1] = 0; |
| | | Common.crn_s_Flocno[crnno - 1] = ""; |
| | | Common.crn_s_Tlocno[crnno - 1] = cmd.Substring(13, 7); |
| | | Common.CrnState[crnno - 1] = 3; |
| | | |
| | | WriteCrnData(iotype, wrkno, i_srow, i_sbay, i_slev, i_drow, i_dbay, i_dlev); |
| | | Thread.Sleep(Common.ci_CRNtimeInterval); |
| | | ReadCrnData(); |
| | | } |
| | | catch (Exception em) |
| | | { |
| | | Common.gs_crncmd[crnno - 1] = "";//å¿
é¡»èµç©º |
| | | DisplayInfo("ã" + DateTime.Now.ToString() + "ã" + crnno + "å»ååç¹å½ä»¤å¤±è´¥: " + em.Message);//忥æ¾ç¤º |
| | | Common.WriteLogFile("WcsError", "CraneThread/Proc_RebackOHP--å»ååç¹å½ä»¤åºé:" + em.Message); |
| | | return; |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// åºåº |
| | | /// </summary> |
| | | /// <param name="cmd"></param> |
| | | private void Proc_Retrieve(string cmd) |
| | | { |
| | | if (Common.Mode[crnno - 1] != Common.ci_CRN_ONLINE || Common.CrnState[crnno - 1] != Common.ci_CRN_STS_IDLE |
| | | || Common.AlarmCode[crnno - 1] != 0 || Common.TaskNo[crnno - 1] != 0)// || Common.Loaded[crnno - 1] != 0) |
| | | { |
| | | DateTime.Now.ToString();//忥æ¾ç¤º |
| | | ReadCrnData(); |
| | | return; |
| | | } |
| | | int iotype = 0, i_srow = 0, i_sbay = 0, i_slev = 0, i_drow = 0, i_dbay = 0, i_dlev = 0; |
| | | if (cmd == "" || cmd == null) |
| | | { |
| | | return; |
| | | } |
| | | try |
| | | { |
| | | int type = Int32.Parse(cmd.Substring(0, 2)); |
| | | int wrkno = Int32.Parse(cmd.Substring(2, 4)); |
| | | if (type != 8) { return; } |
| | | iotype = 2; |
| | | i_srow = Int32.Parse(cmd.Substring(6, 2)); |
| | | i_sbay = Int32.Parse(cmd.Substring(8, 3)); |
| | | i_slev = Int32.Parse(cmd.Substring(11, 2)); |
| | | i_drow = Int32.Parse(cmd.Substring(13, 2)); |
| | | i_dbay = Int32.Parse(cmd.Substring(15, 3)); |
| | | i_dlev = Int32.Parse(cmd.Substring(18, 2)); |
| | | |
| | | Common.crn_i_crnno[crnno - 1] = crnno; |
| | | Common.crn_i_Wrkno[crnno - 1] = wrkno; |
| | | Common.crn_i_crn_sts[crnno - 1] = Common.ci_CRN_STS_STORE_MOVE; |
| | | Common.crn_i_Errcod[crnno - 1] = 0; |
| | | Common.crn_i_kind[crnno - 1] = type; |
| | | Common.crn_i_fstn[crnno - 1] = 0; |
| | | Common.crn_i_tstn[crnno - 1] = Common.GetStnByLoc(cmd.Substring(13, 7)); |
| | | Common.crn_s_Flocno[crnno - 1] = cmd.Substring(6, 7); |
| | | Common.crn_s_Tlocno[crnno - 1] = ""; |
| | | Common.CrnState[crnno - 1] = 3; |
| | | |
| | | WriteCrnData(iotype, wrkno, i_srow, i_sbay, i_slev, i_drow, i_dbay, i_dlev); |
| | | Thread.Sleep(Common.ci_CRNtimeInterval); |
| | | ReadCrnData(); |
| | | } |
| | | catch (Exception em) |
| | | { |
| | | Common.WriteLogFile("WcsError", "CraneThread/Proc_Retrieve--åºåºå½ä»¤åºé:" + em.Message); |
| | | return; |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// ç«å°ç«æä½ |
| | | /// </summary> |
| | | /// <param name="cmd"></param> |
| | | private void Proc_StnToStn(string cmd) |
| | | { |
| | | if (Common.Mode[crnno - 1] != Common.ci_CRN_ONLINE || Common.CrnState[crnno - 1] != Common.ci_CRN_STS_IDLE |
| | | || Common.AlarmCode[crnno - 1] != 0 || Common.TaskNo[crnno - 1] != 0)// || Common.Loaded[crnno - 1] != 0) |
| | | { |
| | | ReadCrnData(); |
| | | return; |
| | | } |
| | | int iotype = 0, i_srow = 0, i_sbay = 0, i_slev = 0, i_drow = 0, i_dbay = 0, i_dlev = 0; |
| | | if (cmd == "" || cmd == null) |
| | | { |
| | | return; |
| | | } |
| | | try |
| | | { |
| | | int type = Int32.Parse(cmd.Substring(0, 2)); |
| | | int wrkno = Int32.Parse(cmd.Substring(2, 4)); |
| | | if (type != 11) { return; } |
| | | iotype = 4; |
| | | i_srow = Int32.Parse(cmd.Substring(6, 2)); |
| | | i_sbay = Int32.Parse(cmd.Substring(8, 3)); |
| | | i_slev = Int32.Parse(cmd.Substring(11, 2)); |
| | | i_drow = Int32.Parse(cmd.Substring(13, 2)); |
| | | i_dbay = Int32.Parse(cmd.Substring(15, 3)); |
| | | i_dlev = Int32.Parse(cmd.Substring(18, 2)); |
| | | |
| | | Common.crn_i_crnno[crnno - 1] = crnno; |
| | | Common.crn_i_Wrkno[crnno - 1] = wrkno; |
| | | Common.crn_i_crn_sts[crnno - 1] = Common.ci_CRN_STS_MOVING; |
| | | Common.crn_i_Errcod[crnno - 1] = 0; |
| | | Common.crn_i_kind[crnno - 1] = type; |
| | | Common.crn_i_fstn[crnno - 1] = Common.GetStnByLoc(cmd.Substring(6, 7)); |
| | | Common.crn_i_tstn[crnno - 1] = 0; |
| | | Common.crn_s_Flocno[crnno - 1] = ""; |
| | | Common.crn_s_Tlocno[crnno - 1] = cmd.Substring(13, 7); |
| | | Common.CrnState[crnno - 1] = 3; |
| | | |
| | | WriteCrnData(iotype, wrkno, i_srow, i_sbay, i_slev, i_drow, i_dbay, i_dlev); |
| | | Thread.Sleep(Common.ci_CRNtimeInterval); |
| | | ReadCrnData(); |
| | | } |
| | | catch (Exception em) |
| | | { |
| | | Common.WriteLogFile("WcsError", "CraneThread/Proc_StnToStn--ç«å°ç«å½ä»¤åºé:" + em.Message); |
| | | return; |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// åºä½ç§»è½¬æä½ |
| | | /// </summary> |
| | | /// <param name="cmd"></param> |
| | | private void Proc_LocationMove(string cmd) |
| | | { |
| | | if (Common.Mode[crnno - 1] != Common.ci_CRN_ONLINE || Common.CrnState[crnno - 1] != Common.ci_CRN_STS_IDLE |
| | | || Common.AlarmCode[crnno - 1] != 0)// || Common.TaskNo[crnno - 1] != 0)// || Common.Loaded[crnno - 1] != 0) |
| | | { |
| | | ReadCrnData(); |
| | | return; |
| | | } |
| | | int iotype = 0, i_srow = 0, i_sbay = 0, i_slev = 0, i_drow = 0, i_dbay = 0, i_dlev = 0; |
| | | if (cmd == "" || cmd == null) |
| | | { |
| | | return; |
| | | } |
| | | try |
| | | { |
| | | int type = Int32.Parse(cmd.Substring(0, 2)); |
| | | int wrkno = Int32.Parse(cmd.Substring(2, 4)); |
| | | if (type != 12) { return; } |
| | | iotype = 3; |
| | | i_srow = Int32.Parse(cmd.Substring(6, 2)); |
| | | i_sbay = Int32.Parse(cmd.Substring(8, 3)); |
| | | i_slev = Int32.Parse(cmd.Substring(11, 2)); |
| | | i_drow = Int32.Parse(cmd.Substring(13, 2)); |
| | | i_dbay = Int32.Parse(cmd.Substring(15, 3)); |
| | | i_dlev = Int32.Parse(cmd.Substring(18, 2)); |
| | | |
| | | Common.crn_i_crnno[crnno - 1] = crnno; |
| | | Common.crn_i_Wrkno[crnno - 1] = wrkno; |
| | | Common.crn_i_crn_sts[crnno - 1] = Common.ci_CRN_STS_LOCATION_MOVE; |
| | | Common.crn_i_Errcod[crnno - 1] = 0; |
| | | Common.crn_i_kind[crnno - 1] = type; |
| | | Common.crn_i_fstn[crnno - 1] = 0; |
| | | Common.crn_i_tstn[crnno - 1] = 0; |
| | | Common.crn_s_Flocno[crnno - 1] = cmd.Substring(6, 7); |
| | | Common.crn_s_Tlocno[crnno - 1] = cmd.Substring(13, 7); |
| | | Common.CrnState[crnno - 1] = 3; |
| | | |
| | | WriteCrnData(iotype, wrkno, i_srow, i_sbay, i_slev, i_drow, i_dbay, i_dlev); |
| | | Thread.Sleep(Common.ci_CRNtimeInterval); |
| | | ReadCrnData(); |
| | | } |
| | | catch (Exception em) |
| | | { |
| | | Common.WriteLogFile("WcsError", "CraneThread/Proc_LocationMove--åºä½ç§»è½¬å½ä»¤åºé:" + em.Message); |
| | | return; |
| | | } |
| | | } |
| | | |
| | | #region å åæºè¯»åæä»¤ |
| | | /// <summary> |
| | | /// 读åå åæºç¶ææ°æ® |
| | | /// </summary> |
| | | private void ReadCrnData() |
| | | { |
| | | string s_startadd = ""; |
| | | int num = 0, i_len = 0; |
| | | |
| | | recvStr = ""; |
| | | try |
| | | { |
| | | s_startadd = "DB91.0"; //读åå åæºç¶æèµ·å§å°å |
| | | i_len =60; //读åå åæºç¶æå°åé¿åº¦ |
| | | OperateResult<byte[]> read = siemensTcpNet.Read(s_startadd, (ushort)i_len); |
| | | if (read.IsSuccess) |
| | | { |
| | | for (int i = 0; i < 14; i++) //DB8.18å°DB8.52 |
| | | { |
| | | num = siemensTcpNet.ByteTransform.TransInt16(read.Content, i * 2); |
| | | //buf1 = read.Content; |
| | | //num = 256 * (int)buf1[i * 2] + (int)buf1[i * 2 + 1]; |
| | | recvStr = recvStr + num.ToString(); |
| | | AnalyseStatus(i, num); |
| | | } |
| | | |
| | | DisplayInfo("ã" + DateTime.Now.ToString() + "ã" + recvStr);//忥æ¾ç¤º |
| | | } |
| | | else |
| | | { |
| | | DisplayInfo("ã" + DateTime.Now.ToString() + "ãæ«æå åæºç¶æå¤±è´¥:" + read.ToMessageShowString()); |
| | | } |
| | | OperateResult<float[]> read1 = siemensTcpNet.ReadFloat("DB91.28", (ushort)7); |
| | | if (read.IsSuccess) |
| | | { |
| | | for (int i = 0; i < 7; i++) //DB8.18å°DB8.50 |
| | | { |
| | | float num1 = read1.Content[i]; |
| | | recvStr = recvStr + num1.ToString(); |
| | | AnalyseStatus(i + 17, num1); |
| | | } |
| | | } |
| | | } |
| | | catch (Exception em) |
| | | { |
| | | //DisplayInfo("读" + crnno.ToString() + "å·åè½¦ç®æ ä¸»æºæ åºçï¼å¯è½åå ï¼å车ip设å®å¼å¸¸æä¸¢å¤±ï¼è¯·æ£æ¥ï¼");//忥æ¾ç¤º |
| | | DisplayInfo("ã" + DateTime.Now.ToString() + "ãæ«æå åæºç¶æå¤±è´¥: " + em.Message);//忥æ¾ç¤º |
| | | Common.WriteLogFile("WcsError", "CraneThread/ReadCrnData--读åå åæºç¶æå¤±è´¥:" + em.Message); |
| | | return; |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// å åæºå®æå
¥åºåºä»»å¡åï¼æ´æ°å·¥ä½ç¶æ |
| | | /// </summary> |
| | | /// <param name="wrkno"></param> |
| | | private void UpdateWrkStsByFinish(int wrk_no) |
| | | { |
| | | int wrk_sts = 0, iotype = 0, newwrk_sts = 0; |
| | | try |
| | | { |
| | | DateTime dt1 = System.DateTime.Now; |
| | | DataView dv = Common.ExecAsrsSelect("select top 1 wrk_sts,io_type from dbo.asr_wrk_mast where wrk_no=" + wrk_no + ""); |
| | | foreach (System.Data.DataRowView drow in dv) |
| | | { |
| | | wrk_sts = Convert.ToInt32(drow[0].ToString()); |
| | | iotype = Convert.ToInt32(drow[1].ToString()); |
| | | } |
| | | if ((wrk_sts == 3 && (iotype == 1 || iotype == 10 || iotype == 53 || iotype == 54 || iotype == 57)) |
| | | || (wrk_sts == 12 && iotype == 11)) |
| | | { |
| | | newwrk_sts = 4; |
| | | } |
| | | else if (wrk_sts == 12 |
| | | && (iotype == 101 || iotype == 110) || iotype == 103 || iotype == 104 || iotype == 107) |
| | | { |
| | | newwrk_sts = 14; |
| | | } |
| | | if (newwrk_sts > 0) |
| | | { |
| | | bool result = Common.ExecAsrsModify("update dbo.asr_wrk_mast set wrk_sts=" + newwrk_sts + " ,crn_end_time ='" + dt1 + "' where wrk_no =" + wrk_no + ""); |
| | | } |
| | | } |
| | | catch (Exception em) |
| | | { |
| | | DisplayInfo("ã" + DateTime.Now.ToString() + "ã" + crnno + "(" + wrk_no + ")#æ´æ°å·¥ä½ç¶æå¤±è´¥: " + em.Message); |
| | | Common.WriteLogFile("WcsError", "CraneThread/UpdateWrkStsByFinish--æ´æ°å·¥ä½ç¶æå¤±è´¥--å·¥ä½å·" + wrk_no + ":" + em.Message); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æ ¹æ®asciiç å¼å¾å°å¯¹åºå符 |
| | | /// </summary> |
| | | /// <param name="asciiCode">asciiç </param> |
| | | /// <returns>è¿å对åºå符</returns> |
| | | public string GetStringByASCII(int asciiCode) |
| | | { |
| | | try |
| | | { |
| | | if (asciiCode >= 0 && asciiCode <= 127) |
| | | { |
| | | System.Text.ASCIIEncoding asciiEncoding = new System.Text.ASCIIEncoding(); |
| | | byte[] byteArray = new byte[] { (byte)asciiCode }; |
| | | string strCharacter = asciiEncoding.GetString(byteArray); |
| | | return (strCharacter); |
| | | } |
| | | else if (asciiCode >= 128 && asciiCode <= 255) |
| | | { |
| | | System.Text.ASCIIEncoding asciiEncoding = new System.Text.ASCIIEncoding(); |
| | | byte[] byteArray = new byte[] { (byte)(asciiCode + 65536) }; |
| | | string strCharacter = Encoding.Default.GetString(byteArray); |
| | | return (strCharacter); |
| | | } |
| | | else |
| | | { |
| | | throw new Exception("æ æçASCIIç !"); |
| | | } |
| | | } |
| | | catch (Exception em) |
| | | { |
| | | Common.WriteLogFile("WcsError", "CraneThread/GetStringByASCII--ASCII转æ¢å符串失败:" + em.Message); |
| | | return ""; |
| | | } |
| | | } |
| | | |
| | | #region åæç¶æ |
| | | /// <summary> |
| | | /// åæå åæºç¶æ |
| | | /// </summary> |
| | | /// <param name="i">å°ååºå</param> |
| | | /// <param name="num">ç¶æå¼</param> |
| | | private void AnalyseStatus(int i, float lnum) |
| | | { |
| | | int num = (int)lnum; |
| | | switch (i) |
| | | { |
| | | case 0: //å åæºæ¨¡å¼ |
| | | Common.Mode[crnno - 1] = num; |
| | | break; |
| | | case 1: //å·¥ä½å·/ä»»å¡å· |
| | | Common.TaskNo[crnno - 1] = num; |
| | | break; |
| | | case 2: //å åæºç¶æ |
| | | Common.CrnState[crnno - 1] = num; |
| | | if (Common.Mode[crnno - 1] == Common.ci_CRN_ONLINE && Common.CrnState[crnno - 1] == Common.ci_CRN_STS_TASK_FINISH) |
| | | { |
| | | Common.TaskFinish[crnno - 1] = 1; |
| | | } |
| | | else |
| | | { |
| | | Common.TaskFinish[crnno - 1] = 0; |
| | | } |
| | | break; |
| | | //æµè¯ç¨ |
| | | //Common.CrnState[crnno - 1] = num; |
| | | //if (Common.Mode[crnno - 1] == Common.ci_CRN_ONLINE && Common.CrnState[crnno - 1] == Common.ci_CRN_STS_TASK_FINISH |
| | | // && Common.gi_Online_Flag == Common.ch_CMD_PAUSE && Common.TaskNo[crnno - 1] == 9999) |
| | | //{//ç³»ç»æåæ¨¡å¼,å åæºç¶ææ¾ç¤ºçå¾
WCS确认ï¼ä»»å¡å·ä¸º9999ï¼è¡¨ç¤ºæå·¥ä¸åçå åæºä»»å¡ï¼ç½®ä½ç¡®è®¤ä½ |
| | | // OperateResult result = siemensTcpNet.Write("DB90.0", (short)1); |
| | | // Common.TaskFinish[crnno - 1] = 1; |
| | | //} |
| | | //else |
| | | //{ |
| | | // Common.TaskFinish[crnno - 1] = 0; |
| | | //} |
| | | //break; |
| | | case 3: //å½ååå· |
| | | Common.crn_dqps[crnno - 1] = num; |
| | | break; |
| | | case 4: //å½åå±å· |
| | | Common.crn_dqcs[crnno - 1] = num; |
| | | break; |
| | | case 5: //è´§åä½ç½® |
| | | Common.ForkPos[crnno - 1] = num; |
| | | break; |
| | | case 6: //载货å°ä½ç½® |
| | | Common.LiftPos[crnno - 1] = num; |
| | | break; |
| | | case 7: //èµ°è¡æ¯å¦å¨å®ä½ |
| | | Common.WalkPos[crnno - 1] = num; |
| | | break; |
| | | case 8: //è½½è´§å°æ¯å¦æç© |
| | | Common.Loaded[crnno - 1] = num; |
| | | break; |
| | | case 9: //å åæºå¼å¸¸ä»£ç |
| | | Common.AlarmCode[crnno - 1] = num; |
| | | if (Common.AlarmCode[crnno - 1] == 40 || Common.AlarmCode[crnno - 1] == 41) |
| | | { |
| | | Common.crn_jt[crnno - 1] = true; |
| | | } |
| | | else |
| | | { |
| | | Common.crn_jt[crnno - 1] = false; |
| | | } |
| | | break; |
| | | //case 11: //å åæºä»»å¡å®æ |
| | | // if (Common.Mode[crnno - 1] == Common.ci_CRN_ONLINE && Common.CrnState[crnno - 1] == Common.ci_CRN_STS_TASK_FINISH) |
| | | // { |
| | | // Common.TaskFinish[crnno - 1] = 1; |
| | | // } |
| | | // else |
| | | // { |
| | | // Common.TaskFinish[crnno - 1] = 0; |
| | | // } |
| | | // break; |
| | | case 17: //å åæºè¡èµ°é度 |
| | | Common.WalkSpeed[crnno - 1] = System.Math.Abs(lnum); |
| | | break; |
| | | case 18: //å åæºåéé度 |
| | | Common.LiftSpeed[crnno - 1] = System.Math.Abs(lnum); |
| | | break; |
| | | case 19: //å åæºåçé度 |
| | | Common.ForkSpeed[crnno - 1] = System.Math.Abs(lnum); |
| | | break; |
| | | case 20: //èµ°è¡æ»è·ç¦» |
| | | Common.XDistance[crnno - 1] = System.Math.Abs(lnum); |
| | | break; |
| | | case 21: //åéæ»è·ç¦» |
| | | Common.YDistance[crnno - 1] = System.Math.Abs(lnum); |
| | | break; |
| | | case 22: //èµ°è¡æ»æ¶é¿ |
| | | Common.XDuration[crnno - 1] = System.Math.Abs(lnum); |
| | | break; |
| | | case 23: //åéæ»æ¶é¿ |
| | | Common.YDuration[crnno - 1] = System.Math.Abs(lnum); |
| | | break; |
| | | } |
| | | |
| | | #region æ½èå¾· |
| | | //if (i == 0) |
| | | //{ |
| | | // if (Common.fun_ChkAndByte(num, Common.ch_crn_sdms) == true) |
| | | // { |
| | | // Common.crn_sdms[crnno - 1] = true; |
| | | // } |
| | | // else |
| | | // { |
| | | // Common.crn_sdms[crnno - 1] = false; |
| | | // } |
| | | // if (Common.fun_ChkAndByte(num, Common.ch_crn_zdms) == true) |
| | | // { |
| | | // Common.crn_zdms[crnno - 1] = true; |
| | | // } |
| | | // else |
| | | // { |
| | | // Common.crn_zdms[crnno - 1] = false; |
| | | // } |
| | | // if (Common.fun_ChkAndByte(num, Common.ch_crn_dnms) == true) |
| | | // { |
| | | // Common.crn_dnms[crnno - 1] = true; |
| | | // } |
| | | // else |
| | | // { |
| | | // Common.crn_dnms[crnno - 1] = false; |
| | | // } |
| | | // if (Common.fun_ChkAndByte(num, Common.ch_crn_sdz) == true) |
| | | // { |
| | | // Common.crn_sdz[crnno - 1] = true; |
| | | // } |
| | | // else |
| | | // { |
| | | // Common.crn_sdz[crnno - 1] = false; |
| | | // } |
| | | // if (Common.fun_ChkAndByte(num, Common.ch_crn_zdz) == true) |
| | | // { |
| | | // Common.crn_zdz[crnno - 1] = true; |
| | | // } |
| | | // else |
| | | // { |
| | | // Common.crn_zdz[crnno - 1] = false; |
| | | // } |
| | | // if (Common.fun_ChkAndByte(num, Common.ch_crn_dnmsz) == true) |
| | | // { |
| | | // Common.crn_dnmsz[crnno - 1] = true; |
| | | // } |
| | | // else |
| | | // { |
| | | // Common.crn_dnmsz[crnno - 1] = false; |
| | | // } |
| | | // if (Common.fun_ChkAndByte(num, Common.ch_crn_jt) == true) |
| | | // { |
| | | // Common.crn_jt[crnno - 1] = true; |
| | | // } |
| | | // else |
| | | // { |
| | | // Common.crn_jt[crnno - 1] = false; |
| | | // } |
| | | |
| | | // if (Common.fun_ChkAndByte(num, Common.ch_crn_yc) == true) |
| | | // { |
| | | // Common.crn_yc[crnno - 1] = true; |
| | | // } |
| | | // else |
| | | // { |
| | | // Common.crn_yc[crnno - 1] = false; |
| | | // } |
| | | // if (Common.fun_ChkAndByte(num, Common.ch_crn_dndmz) == true) |
| | | // { |
| | | // Common.crn_dndmz[crnno - 1] = true; |
| | | // } |
| | | // else |
| | | // { |
| | | // Common.crn_dndmz[crnno - 1] = false; |
| | | // } |
| | | // if (Common.fun_ChkAndByte(num, Common.ch_crn_dnmljs) == true) |
| | | // { |
| | | // Common.crn_dnmljs[crnno - 1] = true; |
| | | // } |
| | | // else |
| | | // { |
| | | // Common.crn_dnmljs[crnno - 1] = false; |
| | | // } |
| | | // if (Common.fun_ChkAndByte(num, Common.ch_crn_rkz) == true) |
| | | // { |
| | | // Common.crn_rkz[crnno - 1] = true; |
| | | // } |
| | | // else |
| | | // { |
| | | // Common.crn_rkz[crnno - 1] = false; |
| | | // } |
| | | // if (Common.fun_ChkAndByte(num, Common.ch_crn_ckz) == true) |
| | | // { |
| | | // Common.crn_ckz[crnno - 1] = true; |
| | | // } |
| | | // else |
| | | // { |
| | | // Common.crn_ckz[crnno - 1] = false; |
| | | // } |
| | | // if (Common.fun_ChkAndByte(num, Common.ch_crn_kdkz) == true) |
| | | // { |
| | | // Common.crn_kdkz[crnno - 1] = true; |
| | | // } |
| | | // else |
| | | // { |
| | | // Common.crn_kdkz[crnno - 1] = false; |
| | | // } |
| | | // if (Common.fun_ChkAndByte(num, Common.ch_crn_zdzz) == true) |
| | | // { |
| | | // Common.crn_zdzz[crnno - 1] = true; |
| | | // } |
| | | // else |
| | | // { |
| | | // Common.crn_zdzz[crnno - 1] = false; |
| | | // } |
| | | // if (Common.fun_ChkAndByte(num, Common.ch_crn_yxz) == true) |
| | | // { |
| | | // Common.crn_yxz[crnno - 1] = true; |
| | | // } |
| | | // else |
| | | // { |
| | | // Common.crn_yxz[crnno - 1] = false; |
| | | // } |
| | | // if (Common.fun_ChkAndByte(num, Common.ch_crn_dcqhjd) == true) |
| | | // { |
| | | // Common.crn_dcqhjd[crnno - 1] = true; |
| | | // } |
| | | // else |
| | | // { |
| | | // Common.crn_dcqhjd[crnno - 1] = false; |
| | | // } |
| | | //} |
| | | //else if (i == 1) |
| | | //{ |
| | | // if (Common.fun_ChkAndByte(num, Common.ch_crn_dcfhjd) == true) |
| | | // { |
| | | // Common.crn_dcfhjd[crnno - 1] = true; |
| | | // } |
| | | // else |
| | | // { |
| | | // Common.crn_dcfhjd[crnno - 1] = false; |
| | | // } |
| | | // if (Common.fun_ChkAndByte(num, Common.ch_crn_dckx) == true) |
| | | // { |
| | | // Common.crn_dckx[crnno - 1] = true; |
| | | // } |
| | | // else |
| | | // { |
| | | // Common.crn_dckx[crnno - 1] = false; |
| | | // } |
| | | // if (Common.fun_ChkAndByte(num, Common.ch_crn_zxyddw) == true) |
| | | // { |
| | | // Common.crn_zxyddw[crnno - 1] = true; |
| | | // } |
| | | // else |
| | | // { |
| | | // Common.crn_zxyddw[crnno - 1] = false; |
| | | // } |
| | | // if (Common.fun_ChkAndByte(num, Common.ch_crn_sjyddw) == true) |
| | | // { |
| | | // Common.crn_sjyddw[crnno - 1] = true; |
| | | // } |
| | | // else |
| | | // { |
| | | // Common.crn_sjyddw[crnno - 1] = false; |
| | | // } |
| | | // if (Common.fun_ChkAndByte(num, Common.ch_crn_zxzdw) == true) |
| | | // { |
| | | // Common.crn_zxzdw[crnno - 1] = true; |
| | | // } |
| | | // else |
| | | // { |
| | | // Common.crn_zxzdw[crnno - 1] = false; |
| | | // } |
| | | // if (Common.fun_ChkAndByte(num, Common.ch_crn_cyzzj) == true) |
| | | // { |
| | | // Common.crn_cyzzj[crnno - 1] = true; |
| | | // } |
| | | // else |
| | | // { |
| | | // Common.crn_cyzzj[crnno - 1] = false; |
| | | // } |
| | | // if (Common.fun_ChkAndByte(num, Common.ch_crn_cyzzd) == true) |
| | | // { |
| | | // Common.crn_cyzzd[crnno - 1] = true; |
| | | // } |
| | | // else |
| | | // { |
| | | // Common.crn_cyzzd[crnno - 1] = false; |
| | | // } |
| | | // if (Common.fun_ChkAndByte(num, Common.ch_crn_cyzyd) == true) |
| | | // { |
| | | // Common.crn_cyzyd[crnno - 1] = true; |
| | | // } |
| | | // else |
| | | // { |
| | | // Common.crn_cyzyd[crnno - 1] = false; |
| | | // } |
| | | // if (Common.fun_ChkAndByte(num, Common.ch_crn_sjsdw) == true) |
| | | // { |
| | | // Common.crn_sjsdw[crnno - 1] = true; |
| | | // } |
| | | // else |
| | | // { |
| | | // Common.crn_sjsdw[crnno - 1] = false; |
| | | // } |
| | | |
| | | // if (Common.fun_ChkAndByte(num, Common.ch_crn_sjxdw) == true) |
| | | // { |
| | | // Common.crn_sjxdw[crnno - 1] = true; |
| | | // } |
| | | // else |
| | | // { |
| | | // Common.crn_sjxdw[crnno - 1] = false; |
| | | // } |
| | | // //if (Common.fun_ChkAndByte(num, Common.ch_crn_plcdlbz) == true) |
| | | // //{ |
| | | // // Common.crn_zxzdw[crnno - 1] = true; |
| | | // //} |
| | | // //else |
| | | // //{ |
| | | // // Common.crn_zxzdw[crnno - 1] = false; |
| | | // //} |
| | | // if (Common.fun_ChkAndByte(num, Common.ch_crn_sjtycyw) == true) |
| | | // { |
| | | // Common.crn_sjtycyw[crnno - 1] = true; |
| | | // } |
| | | // else |
| | | // { |
| | | // Common.crn_sjtycyw[crnno - 1] = false; |
| | | // } |
| | | //} |
| | | //else if (i == 5) //å½åææ° |
| | | //{ |
| | | // try |
| | | // { |
| | | // Common.crn_dqps[crnno - 1] = num; |
| | | // } |
| | | // catch (Exception t) |
| | | // { |
| | | // Common.crn_dqps[crnno - 1] = 0; |
| | | // } |
| | | //} |
| | | //else if (i == 6) //å½å屿° |
| | | //{ |
| | | // try |
| | | // { |
| | | // Common.crn_dqcs[crnno - 1] = num; |
| | | // } |
| | | // catch (Exception t) |
| | | // { |
| | | // Common.crn_dqcs[crnno - 1] = 0; |
| | | // } |
| | | //} |
| | | //else if (i == 7) //设å¤å¼å¸¸ç |
| | | //{ |
| | | // try |
| | | // { |
| | | // Common.crn_ycmm[crnno - 1] = num; |
| | | // } |
| | | // catch (Exception t) |
| | | // { |
| | | // Common.crn_ycmm[crnno - 1] = 0; |
| | | // } |
| | | //} |
| | | ////else if (i == 8) //èµ°åéå°å¼2 |
| | | ////{ |
| | | //// //distance1 = distance1.ToString//num; |
| | | //// Common.crn_zxlsz2[crnno - 1] = num; |
| | | //// try |
| | | //// { |
| | | //// Common.crn_zxlsz[crnno - 1] = double.Parse(Common.crn_zxlsz1[crnno - 1].ToString() + "." + Common.crn_zxlsz2[crnno - 1].ToString()) * 0.001; |
| | | //// } |
| | | //// catch (Exception r) |
| | | //// { |
| | | //// Common.crn_zxlsz[crnno - 1] = 0; |
| | | //// } |
| | | ////} |
| | | ////else if (i == 9) //åééå°å¼ |
| | | ////{ |
| | | //// try |
| | | //// { |
| | | //// Common.crn_sjlsz1[crnno - 1] = num; |
| | | //// } |
| | | //// catch (Exception t) |
| | | //// { |
| | | //// Common.crn_sjlsz1[crnno - 1] = 0; |
| | | //// } |
| | | ////} |
| | | ////else if (i == 10)//è·ç¦» |
| | | ////{ |
| | | //// Common.crn_sjlsz2[crnno - 1] = num; |
| | | //// try |
| | | //// { |
| | | //// Common.crn_sjlsz[crnno - 1] = double.Parse(Common.crn_sjlsz1[crnno - 1].ToString() + "." + Common.crn_sjlsz2[crnno - 1].ToString()) * 0.001; |
| | | //// } |
| | | //// catch (Exception r) |
| | | //// { |
| | | //// Common.crn_sjlsz[crnno - 1] = 0; |
| | | //// } |
| | | ////} |
| | | ////else if (i == 23)//è¿è¡å¼å¸¸æ¯ç |
| | | ////{ |
| | | //// Common.crn_ycmm[crnno-1] = num; |
| | | ////} |
| | | ////else if (i == 24)//è¿è¡å¼å¸¸åç |
| | | ////{ |
| | | //// Common.crn_yczm[crnno - 1] = num; |
| | | ////} |
| | | |
| | | //Common.crn_dndmz[crnno - 1] = Common.crn_dckx[crnno - 1]; |
| | | |
| | | //if (Common.crn_ycmm[crnno - 1] > 0) |
| | | //{ |
| | | // Common.crn_i_Errcod[crnno - 1] = Common.ci_CRN_STS_ERROR; |
| | | // // Class1.crn_i_crn_sts[crnno - 1] = Class1.ci_CRN_STS_ERROR; |
| | | // //if (Common.crn_ycmm[crnno - 1] > 0) |
| | | // //{ |
| | | // Common.crnerrlist[crnno - 1] = crnno.ToString() + "å·å车åçå¼å¸¸ï¼å¼å¸¸å·ï¼" + Common.GetErr(Common.crn_ycmm[crnno - 1]); |
| | | // //} |
| | | // //else if (Common.crn_ycmm[crnno - 1] == 0) |
| | | // //{ |
| | | // // Common.crnerrlist[crnno - 1] = ""; |
| | | // //} |
| | | // //else |
| | | // //{ |
| | | // // Common.crnerrlist[crnno - 1] = crnno.ToString() + "å·å车æä»¤å¼å¸¸!"; |
| | | // //} |
| | | //} |
| | | //else |
| | | //{ |
| | | // Common.crn_i_Errcod[crnno - 1] = Common.ci_CRN_SETTING; |
| | | // //Class1.crn_i_crn_sts[crnno - 1] = Class1.gi_crn_actsts[crnno - 1]; |
| | | // Common.crnerrlist[crnno - 1] = ""; |
| | | // //Common.CrnErrFlag[crnno - 1] = true; |
| | | //} |
| | | #endregion |
| | | |
| | | //夿åç¹æ å¿ |
| | | if (Common.crn_dqps[crnno - 1] == 1 && Common.crn_dqcs[crnno - 1] == 1 |
| | | && Common.ForkPos[crnno - 1] == 0 && Common.LiftPos[crnno - 1] == 1 && Common.WalkPos[crnno - 1] == 1) |
| | | { |
| | | Common.crn_i_onHP[crnno - 1] = 1; |
| | | } |
| | | else |
| | | { |
| | | Common.crn_i_onHP[crnno - 1] = 0; |
| | | } |
| | | |
| | | //çµè模å¼ã空é²ãä»»å¡å·ä¸º0ï¼æ¸
空å åæºç¶ææ°ç» |
| | | if (Common.Mode[crnno - 1] == Common.ci_CRN_ONLINE && Common.CrnState[crnno - 1] == Common.ci_CRN_STS_IDLE |
| | | && Common.TaskNo[crnno - 1] == 0) |
| | | { |
| | | Common.crn_i_crnno[crnno - 1] = crnno; |
| | | Common.crn_i_crn_sts[crnno - 1] = Common.ci_CRN_STS_IDLE; |
| | | Common.crn_i_Errcod[crnno - 1] = 0; |
| | | Common.crn_i_kind[crnno - 1] = 0; |
| | | Common.crn_i_fstn[crnno - 1] = 0; |
| | | Common.crn_i_tstn[crnno - 1] = 0; |
| | | Common.crn_s_Flocno[crnno - 1] = ""; |
| | | Common.crn_s_Tlocno[crnno - 1] = ""; |
| | | Common.crn_s_commandstr[crnno - 1] = ""; |
| | | } |
| | | |
| | | //å¤çå åæºæ¬è¿å®æåï¼æ´æ°å·¥ä½æ¡£æ°æ® |
| | | if (Common.TaskFinish[crnno - 1] == 1 && Common.TaskNo[crnno - 1] > 0 |
| | | && Common.TaskFlag[crnno - 1] == 1) |
| | | { |
| | | //WCSæ¶å°å åæºä»»å¡å®æTaskFinishä¿¡å·åï¼å¤çä¸å¡é»è¾å¹¶ç½®ä½DB8.0ç¡®è®¤ä½ |
| | | OperateResult result = siemensTcpNet.Write("DB90.0", (short)1); |
| | | |
| | | //æ´æ°å·¥ä½ç¶æ3为4,12为14 |
| | | //2019-04-30ä¿®æ¹ï¼èèå°åºåºç¶æ12->14æ¶ï¼éè¦ä¸åå½ä»¤ç»PLCï¼ |
| | | //å°TaskFinishæ 记丢ç»timer1æ¶é´ä¸Proc_StoreFinishedå¤çå
¥åºï¼ |
| | | // |
| | | //UpdateWrkStsByFinish((int)Common.F1TaskNo[crnno - 1]); |
| | | Common.crn_i_crnno[crnno - 1] = crnno; |
| | | Common.crn_i_crn_sts[crnno - 1] = Common.ci_CRN_STS_IDLE; |
| | | //Common.crn_i_Errcod[crnno - 1] = 0; |
| | | Common.crn_i_kind[crnno - 1] = 0; |
| | | Common.crn_i_fstn[crnno - 1] = 0; |
| | | Common.crn_i_tstn[crnno - 1] = 0; |
| | | Common.crn_s_Flocno[crnno - 1] = ""; |
| | | Common.crn_s_Tlocno[crnno - 1] = ""; |
| | | Common.crn_s_commandstr[crnno - 1] = ""; |
| | | |
| | | Common.TaskFlag[crnno - 1] = 0; |
| | | } |
| | | |
| | | DisplayParamInfo(); |
| | | |
| | | #region æ½èå¾· |
| | | ////夿å车å
¥åºç¶æ |
| | | //if (Common.crn_dnms[crnno - 1] == true && Common.crn_dnmsz[crnno - 1] == true && |
| | | // Common.crn_dckx[crnno - 1] == false && Common.crn_dnmljs[crnno - 1] == true && |
| | | // (Common.crn_rkz[crnno - 1] == true || Common.crn_ckz[crnno - 1] == true || Common.crn_kdkz[crnno - 1] == true |
| | | // || Common.crn_zdzz[crnno - 1] == true || Common.crn_yxz[crnno - 1] == true |
| | | // || Common.crn_yxz[crnno - 1] == true || Common.crn_dcqhjd[crnno - 1] == true)) |
| | | //{ |
| | | // //Class1.crn_i_onHP[crnno - 1] = 0; |
| | | // //Class1.crn_i_Errcod[crnno - 1] = 0; |
| | | // switch (Common.gi_crn_iotype[crnno - 1]) |
| | | // { |
| | | // case 4://ååç¹ |
| | | // Common.crn_i_crn_sts[crnno - 1] = Common.ci_CRN_STS_MOVING; |
| | | // break; |
| | | // case 5://åæ ç§»è¡ |
| | | // Common.crn_i_crn_sts[crnno - 1] = Common.ci_CRN_STS_MOVING; |
| | | // break; |
| | | // case 7://å
¥åº |
| | | // Common.crn_i_crn_sts[crnno - 1] = Common.ci_CRN_STS_STORE_MOVE; |
| | | // break; |
| | | // case 8://åºåº |
| | | // Common.crn_i_crn_sts[crnno - 1] = Common.ci_CRN_STS_RETRIEVE_MOVE; |
| | | // break; |
| | | // case 9://ç§»å¨è³ç«ç¹ |
| | | // Common.crn_i_crn_sts[crnno - 1] = Common.ci_CRN_STS_MOVING; |
| | | // break; |
| | | // case 10://å»ååç¹ |
| | | // Common.crn_i_crn_sts[crnno - 1] = Common.ci_CRN_STS_OHP; |
| | | // break; |
| | | // case 11://ç«å°ç« |
| | | // Common.crn_i_crn_sts[crnno - 1] = Common.ci_CRN_STS_STNCHG_MOVE; |
| | | // break; |
| | | // case 12://åºä½ç§»è½¬ |
| | | // Common.crn_i_crn_sts[crnno - 1] = Common.ci_CRN_STS_LOCATION_MOVE; |
| | | // break; |
| | | // } |
| | | //} |
| | | |
| | | ////æ ¹æ®å车çå®æï¼æ´æ°å车对åºç¶æï¼moving---->move over |
| | | //if (Common.gi_cycle_flag == 0) |
| | | //{ |
| | | // Common.gi_cycle_flag = 1; |
| | | //} |
| | | //else |
| | | //{ |
| | | // if (Common.crn_dnms[crnno - 1] == true && Common.crn_dnmsz[crnno - 1] == true && Common.crn_dckx[crnno - 1] == true |
| | | // //&& Common.crn_dnmljs[crnno - 1] == true && Common.crn_yxz[crnno - 1] == false) |
| | | // && Common.crn_dndmz[crnno - 1] == true && Common.crn_yxz[crnno - 1] == false) |
| | | // //(Class1.crn_sbzc[crnno-1]==true && Class1.crn_dndm[crnno-1]==true && Class1.crn_dnmljs[crnno-1]==true && Class1.crn_dnz[crnno-1]==true) |
| | | // { |
| | | // switch (Common.gi_crn_iotype[crnno - 1]) |
| | | // { |
| | | // case 7://å
¥åº |
| | | // if (Common.crn_i_crn_sts[crnno - 1] == 2) |
| | | // { |
| | | // Common.crn_i_crn_sts[crnno - 1] = Common.ci_CRN_STS_STORE_OK; |
| | | // Common.crn_s_commandstr[crnno - 1] = ""; |
| | | // } |
| | | // break; |
| | | // case 8://åºåº |
| | | // if (Common.crn_i_crn_sts[crnno - 1] == 3) |
| | | // { |
| | | // Common.crn_i_crn_sts[crnno - 1] = Common.ci_CRN_STS_RETRIEVE_OK; |
| | | // Common.crn_s_commandstr[crnno - 1] = ""; |
| | | // } |
| | | // break; |
| | | // case 4://ååç¹ |
| | | // //if (Common.crn_i_crn_sts[crnno - 1] == 4) |
| | | // //{ |
| | | // Common.crn_i_crn_sts[crnno - 1] = Common.ci_CRN_STS_IDLE; |
| | | // Common.crn_s_commandstr[crnno - 1] = ""; |
| | | // Common.crn_i_Wrkno[crnno - 1] = 0; |
| | | // //} |
| | | // break; |
| | | // case 5://åæ ç§»è¡ |
| | | // if (Common.crn_i_crn_sts[crnno - 1] == 4) |
| | | // { |
| | | // Common.crn_i_crn_sts[crnno - 1] = Common.ci_CRN_STS_IDLE; |
| | | // Common.crn_s_commandstr[crnno - 1] = ""; |
| | | // } |
| | | // break; |
| | | // case 9://ç§»å¨è³ç«ç¹ |
| | | // Common.crn_i_crn_sts[crnno - 1] = Common.ci_CRN_STS_IDLE; |
| | | // Common.crn_s_commandstr[crnno - 1] = ""; |
| | | // break; |
| | | // case 10://å»ååç¹ |
| | | // Common.crn_i_crn_sts[crnno - 1] = Common.ci_CRN_STS_IDLE; |
| | | // Common.crn_s_commandstr[crnno - 1] = ""; |
| | | // Common.crn_i_Wrkno[crnno - 1] = 0; |
| | | // break; |
| | | // case 11://ç«å°ç« |
| | | // if (Common.crn_i_crn_sts[crnno - 1] == Common.ci_CRN_STS_STNCHG_MOVE) |
| | | // { |
| | | // Common.crn_i_crn_sts[crnno - 1] = Common.ci_CRN_STS_STNCHG_OK; |
| | | // Common.crn_s_commandstr[crnno - 1] = ""; |
| | | // } |
| | | // break; |
| | | // case 12://åºå°åº |
| | | // if (Common.crn_i_crn_sts[crnno - 1] == Common.ci_CRN_STS_LOCATION_MOVE) |
| | | // { |
| | | // Common.crn_i_crn_sts[crnno - 1] = Common.ci_CRN_STS_LOCATION_MOVE_OK; |
| | | // Common.crn_s_commandstr[crnno - 1] = ""; |
| | | // } |
| | | // break; |
| | | // default: |
| | | // Common.crn_i_crn_sts[crnno - 1] = Common.ci_CRN_STS_IDLE; |
| | | // Common.crn_i_Wrkno[crnno - 1] = 0; |
| | | // Common.crn_i_crnno[crnno - 1] = crnno; |
| | | // Common.crn_i_fstn[crnno - 1] = 0; |
| | | // Common.crn_i_tstn[crnno - 1] = 0; |
| | | // Common.crn_s_Flocno[crnno - 1] = ""; |
| | | // Common.crn_s_Tlocno[crnno - 1] = ""; |
| | | // Common.crn_i_kind[crnno - 1] = 0; |
| | | // Common.crn_s_commandstr[crnno - 1] = ""; |
| | | |
| | | // break; |
| | | // } |
| | | // } |
| | | // Common.gi_cycle_flag = 0; |
| | | //} |
| | | |
| | | //int sstn = Common.crn_i_fstn[crnno - 1]; |
| | | //int dstn = Common.crn_i_tstn[crnno - 1]; |
| | | //int i_sstnno = Common.GetStnSeqNo(crnno, sstn); |
| | | //int i_dstnno = Common.GetStnSeqNo(crnno, dstn); |
| | | #endregion |
| | | } |
| | | #endregion |
| | | |
| | | /// <summary> |
| | | /// åéå½ä»¤å°å åæº |
| | | /// </summary> |
| | | /// /// <param name="wrkno">å·¥ä½å·</param> |
| | | /// <param name="type">ç±»å</param> |
| | | /// <param name="srow">æºæ</param> |
| | | /// <param name="sbay">æºå</param> |
| | | /// <param name="slev">æºå±</param> |
| | | /// <param name="drow">ç®æ æ</param> |
| | | /// <param name="dbay">ç®æ å</param> |
| | | /// <param name="dlev">ç®æ å±</param> |
| | | private void WriteCrnData(int type, int wrkno, int srow, int sbay, int slev, int drow, int dbay, int dlev) |
| | | { |
| | | try |
| | | { |
| | | string s_startadd = ""; |
| | | short[] iArr_value = new short[8]; |
| | | bool ok = false; |
| | | int icount = 0; |
| | | |
| | | s_startadd = "DB90.2"; |
| | | iArr_value[0] = (short)wrkno; |
| | | iArr_value[1] = (short)type; |
| | | iArr_value[2] = (short)srow; |
| | | iArr_value[3] = (short)sbay; |
| | | iArr_value[4] = (short)slev; |
| | | iArr_value[5] = (short)drow; |
| | | iArr_value[6] = (short)dbay; |
| | | iArr_value[7] = (short)dlev; |
| | | |
| | | while (ok == false) |
| | | { |
| | | try |
| | | { |
| | | OperateResult result = siemensTcpNet.Write(s_startadd, iArr_value); |
| | | result = siemensTcpNet.Write("DB90.18", (ushort)1); |
| | | if (result.IsSuccess) |
| | | { |
| | | ok = true; |
| | | UpdateWrkStsByCmd(wrkno); |
| | | Common.gs_crncmd[crnno - 1] = "";//å¿
é¡»èµç©º |
| | | } |
| | | else |
| | | { |
| | | icount++; |
| | | if (icount > 3) |
| | | { |
| | | ok = true; |
| | | Common.gs_crncmd[crnno - 1] = "";//å¿
é¡»èµç©º |
| | | } |
| | | else |
| | | { |
| | | ok = false; |
| | | } |
| | | } |
| | | Thread.Sleep(Common.ci_CRNtimeInterval); |
| | | } |
| | | catch (Exception em) |
| | | { |
| | | Common.gs_crncmd[crnno - 1] = "";//å¿
é¡»èµç©º |
| | | // DisplayInfo("å" + crnno.ToString() + "å·åè½¦ç®æ ä¸»æºæ åºçï¼å¯è½åå ï¼å车ip设å®å¼å¸¸æä¸¢å¤±ï¼è¯·æ£æ¥ï¼");//忥æ¾ç¤º |
| | | return; |
| | | } |
| | | } |
| | | |
| | | } |
| | | catch (Exception em) |
| | | { |
| | | Common.WriteLogFile("WcsError", "CraneThread/WriteCrnData--åå½ä»¤å°å åæºåºé:" + em.Message); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// ç»å åæºä¸åä»»å¡åï¼æ´æ°å·¥ä½ç¶æ |
| | | /// </summary> |
| | | /// <param name="wrkno"></param> |
| | | private void UpdateWrkStsByCmd(int wrk_no) |
| | | { |
| | | int wrk_sts = 0, iotype = 0, newwrk_sts = 0; |
| | | try |
| | | { |
| | | DateTime dt1 = System.DateTime.Now; |
| | | DataView dv = Common.ExecAsrsSelect("select top 1 wrk_sts,io_type from dbo.asr_wrk_mast where wrk_no=" + wrk_no + ""); |
| | | foreach (System.Data.DataRowView drow in dv) |
| | | { |
| | | wrk_sts = Convert.ToInt32(drow[0].ToString()); |
| | | iotype = Convert.ToInt32(drow[1].ToString()); |
| | | } |
| | | if ((wrk_sts == 2 && (iotype == 1 || iotype == 10 || iotype == 53 || iotype == 54 || iotype == 57)) |
| | | || (wrk_sts == 11 && iotype == 11)) |
| | | { |
| | | newwrk_sts = 3; |
| | | } |
| | | else if (wrk_sts == 11 |
| | | && (iotype == 101 || iotype == 110) || iotype == 103 || iotype == 104 || iotype == 107) |
| | | { |
| | | newwrk_sts = 12; |
| | | } |
| | | if (newwrk_sts > 0) |
| | | { |
| | | bool result = Common.ExecAsrsModify("update dbo.asr_wrk_mast set wrk_sts=" + newwrk_sts + " ,crn_str_time ='" + dt1 + "' where wrk_no =" + wrk_no + ""); |
| | | } |
| | | } |
| | | catch (Exception em) |
| | | { |
| | | DisplayInfo("ã" + DateTime.Now.ToString() + "ã" + crnno + "(" + wrk_no + ")#æ´æ°å·¥ä½ç¶æå¤±è´¥: " + em.Message); |
| | | Common.WriteLogFile("WcsError", "CraneThread/UpdateWrkStsByFinish--æ´æ°å·¥ä½ç¶æå¤±è´¥--å·¥ä½å·" + wrk_no + ":" + em.Message); |
| | | } |
| | | } |
| | | #endregion |
| | | |
| | | #region ç»é¢åæ¥æ¾ç¤º |
| | | /// <summary> |
| | | /// 忥æ¾ç¤ºä¸»ç»é¢å åæºä¿¡æ¯ |
| | | /// </summary> |
| | | /// <param name="crn">å åæºå·</param> |
| | | /// <param name="bay">å</param> |
| | | /// <param name="lev">å±</param> |
| | | /// <param name="dist">è·ç¦»</param> |
| | | /// <param name="height">é«åº¦</param> |
| | | /// <param name="err">å¼å¸¸</param> |
| | | private void DisplayCrnstsData(int crn, int bay, int lev, double dist, double height, int err) |
| | | { |
| | | if (tb.InvokeRequired) |
| | | { |
| | | try |
| | | { |
| | | DisplaycrnstsData d = new DisplaycrnstsData(DisplayCrnstsData); |
| | | tb.Invoke(d, new object[] { crn, bay, lev, dist, height, err }); |
| | | } |
| | | catch (Exception em) |
| | | { |
| | | Common.WriteLogFile("WcsError", "CraneThread/DisplayCrnstsData--忥æ¾ç¤ºä¸»ç»é¢å åæºä¿¡æ¯å¤±è´¥:" + em.Message); |
| | | } |
| | | } |
| | | else |
| | | { |
| | | crnstslist.Items.Clear(); |
| | | ListViewItem lvi = new ListViewItem(); |
| | | lvi.SubItems[0].Text = crn.ToString(); |
| | | lvi.SubItems.Add(bay.ToString()); |
| | | lvi.SubItems.Add(lev.ToString()); |
| | | lvi.SubItems.Add(dist.ToString()); |
| | | lvi.SubItems.Add(height.ToString()); |
| | | lvi.SubItems.Add(err.ToString()); |
| | | this.crnstslist.Items.Add(lvi); |
| | | } |
| | | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// å åæºé讯åé¦ä¿¡æ¯ |
| | | /// </summary> |
| | | /// <param name="text"></param> |
| | | private void DisplayInfo(string text) |
| | | { |
| | | if (tb.InvokeRequired) |
| | | { |
| | | try |
| | | { |
| | | SetTextCallback d = new SetTextCallback(DisplayInfo); |
| | | tb.Invoke(d, new object[] { text }); |
| | | } |
| | | catch (Exception em) |
| | | { |
| | | Common.WriteLogFile("WcsError", "CraneThread/DisplayInfo--忥æ¾ç¤ºå åæºé讯信æ¯å¤±è´¥:" + em.Message); |
| | | } |
| | | } |
| | | else |
| | | { |
| | | if (tb.Items.Count > 30) |
| | | { |
| | | tb.Items.Clear(); |
| | | } |
| | | tb.Items.Add(text); |
| | | tb.TopIndex = tb.Items.Count - (int)(tb.Height / tb.ItemHeight); |
| | | } |
| | | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// å åæºç»é¢ç¶ææ¾ç¤ºä¿¡æ¯ |
| | | /// </summary> |
| | | private void DisplayParamInfo() |
| | | { |
| | | if (form1.InvokeRequired) |
| | | { |
| | | try |
| | | { |
| | | SetTextCallback1 d = new SetTextCallback1(DisplayParamInfo); |
| | | form1.Invoke(d, new object[] { }); |
| | | } |
| | | catch (Exception em) |
| | | { |
| | | Common.WriteLogFile("WcsError", "CraneThread/DisplayParamInfo--忥æ¾ç¤ºå åæºç»é¢ç¶æä¿¡æ¯å¤±è´¥:" + em.Message); |
| | | } |
| | | } |
| | | else |
| | | { |
| | | tb_sendtocrn.Text = Common.crn_s_commandstr[crnno - 1]; |
| | | |
| | | switch (Common.Mode[crnno - 1]) |
| | | { |
| | | case 1: |
| | | dgv_crnsts["col_Mode", crnno - 1].Value = "æå¨"; |
| | | break; |
| | | case 2: |
| | | dgv_crnsts["col_Mode", crnno - 1].Value = "èªå¨"; |
| | | break; |
| | | case 3: |
| | | dgv_crnsts["col_Mode", crnno - 1].Value = "è¿çº¿"; |
| | | break; |
| | | case 4: |
| | | dgv_crnsts["col_Mode", crnno - 1].Value = "æå¨ä¸"; |
| | | break; |
| | | case 5: |
| | | dgv_crnsts["col_Mode", crnno - 1].Value = "èªå¨ä¸"; |
| | | break; |
| | | case 6: |
| | | dgv_crnsts["col_Mode", crnno - 1].Value = "è¿çº¿ä¸"; |
| | | break; |
| | | |
| | | } |
| | | dgv_crnsts["col_Mode", crnno - 1].Style.ForeColor = Common.Mode[crnno - 1] == 6 ? Color.Red : Color.Black; |
| | | |
| | | dgv_crnsts["col_ErrorCode", crnno - 1].Value = Common.AlarmCode[crnno - 1]; |
| | | dgv_crnsts["col_ErrorCode", crnno - 1].Style.ForeColor = Common.AlarmCode[crnno - 1] > 0 ? Color.Red : Color.Black; |
| | | |
| | | if (Common.Loaded[crnno - 1] == 1) |
| | | { |
| | | dgv_crnsts["col_Loaded", crnno - 1].Value = "æç©"; |
| | | } |
| | | else |
| | | { |
| | | dgv_crnsts["col_Loaded", crnno - 1].Value = "æ ç©"; |
| | | } |
| | | dgv_crnsts["col_Loaded", crnno - 1].Style.ForeColor = Common.Loaded[crnno - 1] == 1 ? Color.Red : Color.Black; |
| | | |
| | | dgv_crnsts["col_Bay", crnno - 1].Value = Common.crn_dqps[crnno - 1]; |
| | | dgv_crnsts["col_Lev", crnno - 1].Value = Common.crn_dqcs[crnno - 1]; |
| | | |
| | | dgv_crnsts["col_Status", crnno - 1].Value = Common.GetCrnStsName(Common.CrnState[crnno - 1]); |
| | | dgv_crnsts["col_Status", crnno - 1].Style.ForeColor = Common.CrnState[crnno - 1] == 99 ? Color.Red : Color.Black; |
| | | |
| | | if (Common.crn_dqps[crnno - 1] == 1) |
| | | { |
| | | dgv_crnsts["col_Zxyd", crnno - 1].Value = "æ¯"; |
| | | } |
| | | else |
| | | { |
| | | dgv_crnsts["col_Zxyd", crnno - 1].Value = "å¦"; |
| | | } |
| | | |
| | | if (Common.crn_dqcs[crnno - 1] == 1) |
| | | { |
| | | dgv_crnsts["col_Sjyd", crnno - 1].Value = "æ¯"; |
| | | } |
| | | else |
| | | { |
| | | dgv_crnsts["col_Sjyd", crnno - 1].Value = "å¦"; |
| | | } |
| | | |
| | | if (Common.ForkPos[crnno - 1] == 0) |
| | | { |
| | | dgv_crnsts["col_Chaya", crnno - 1].Value = "ä¸é´"; |
| | | } |
| | | else if (Common.ForkPos[crnno - 1] == 1) |
| | | { |
| | | dgv_crnsts["col_Chaya", crnno - 1].Value = "左端"; |
| | | } |
| | | else if (Common.ForkPos[crnno - 1] == 2) |
| | | { |
| | | dgv_crnsts["col_Chaya", crnno - 1].Value = "å³ç«¯"; |
| | | } |
| | | else |
| | | { |
| | | dgv_crnsts["col_Chaya", crnno - 1].Value = ""; |
| | | } |
| | | |
| | | if (Common.WalkPos[crnno - 1] == 1) |
| | | { |
| | | dgv_crnsts["col_Zxdw", crnno - 1].Value = "æ¯"; |
| | | } |
| | | else |
| | | { |
| | | dgv_crnsts["col_Zxdw", crnno - 1].Value = "å¦"; |
| | | } |
| | | |
| | | if (Common.LiftPos[crnno - 1] == 1) |
| | | { |
| | | dgv_crnsts["col_Sjdw", crnno - 1].Value = "ä¸å®ä½"; |
| | | } |
| | | else if (Common.LiftPos[crnno - 1] == 2) |
| | | { |
| | | dgv_crnsts["col_Sjdw", crnno - 1].Value = "ä¸å®ä½"; |
| | | } |
| | | else |
| | | { |
| | | dgv_crnsts["col_Sjdw", crnno - 1].Value = "å¦"; |
| | | } |
| | | if (Common.crn_jt[crnno - 1]) |
| | | { |
| | | dgv_crnsts["col_Jiting", crnno - 1].Value = "æ¯"; |
| | | dgv_crnsts["col_Jiting", crnno - 1].Style.ForeColor = Color.Red; |
| | | } |
| | | else |
| | | { |
| | | dgv_crnsts["col_Jiting", crnno - 1].Value = ""; |
| | | } |
| | | |
| | | dgv_crnsts["col_Xspeed", crnno - 1].Value = Common.WalkSpeed[crnno - 1].ToString("#0.00"); |
| | | dgv_crnsts["col_Yspeed", crnno - 1].Value = Common.LiftSpeed[crnno - 1].ToString("#0.00"); |
| | | dgv_crnsts["col_Zspeed", crnno - 1].Value = Common.ForkSpeed[crnno - 1].ToString("#0.00"); |
| | | dgv_crnsts["col_Xdistance", crnno - 1].Value = Common.XDistance[crnno - 1].ToString("#0.00"); |
| | | dgv_crnsts["col_Ydistance", crnno - 1].Value = Common.YDistance[crnno - 1].ToString("#0.00"); |
| | | dgv_crnsts["col_Xduration", crnno - 1].Value = Common.XDuration[crnno - 1].ToString("#0.00"); |
| | | dgv_crnsts["col_Yduration", crnno - 1].Value = Common.YDuration[crnno - 1].ToString("#0.00"); |
| | | } |
| | | } |
| | | #endregion |
| | | |
| | | ///// <summary> |
| | | ///// é讯失败ååå§åå åæºç¶æ |
| | | ///// </summary> |
| | | //private void InitCrn() |
| | | //{ |
| | | // try |
| | | // { |
| | | // //Common.crn_i_crnno[crnno - 1] = i; |
| | | // //crn_i_crn_sts[i - 1] = ci_CRN_SETTING; |
| | | // //Common.gs_crncmd[crnno - 1] = ""; |
| | | // //Common.crn_i_kind[crnno - 1] = 0; |
| | | // //Common.crn_i_Wrkno[crnno - 1] = 0; |
| | | // //Common.crn_i_fstn[crnno - 1] = 0; |
| | | // //Common.crn_i_tstn[crnno - 1] = 0; |
| | | // //Common.crn_s_Flocno[crnno - 1] = ""; |
| | | // //Common.crn_s_Tlocno[crnno - 1] = ""; |
| | | // //crn_i_Errcod[i - 1] = 0; |
| | | // //Common.crn_i_onHP[crnno - 1] = 0; |
| | | // //Common.gs_crnlastio[crnno - 1] = "I"; |
| | | // //Common.gs_crncmd[crnno - 1] = ""; |
| | | // //Common.crn_s_commandstr[crnno - 1] = ""; |
| | | // //Common.gi_crn_iotype[crnno - 1] = 0; |
| | | // //Common.gb_crn_status[crnno - 1] = true; |
| | | |
| | | // //Common.AlarmCode[crnno - 1] = 0; |
| | | // //Common.F1TaskFlag[crnno - 1] = 0; |
| | | // Common.F1State[crnno - 1] = -1; |
| | | // } |
| | | // catch (Exception) |
| | | // { } |
| | | //} |
| | | |
| | | /// <summary> |
| | | /// å åæºä¸»çº¿ç¨ |
| | | /// </summary> |
| | | private void ThreadTask() |
| | | { |
| | | i_crn_step = 6; |
| | | connect = siemensTcpNet.ConnectServer(); |
| | | while (true) |
| | | { |
| | | try |
| | | { |
| | | if (!connect.IsSuccess) |
| | | { |
| | | if (!ReConnect()) |
| | | { |
| | | Thread.Sleep(Common.ci_CRNtimeInterval); |
| | | continue; |
| | | } |
| | | } |
| | | |
| | | ///gs_crncmdé¿åº¦28ï¼ 12 0001 0100101 0200202 |
| | | ///对åºå«ä¹ï¼ å
¥åºç±»å å·¥ä½å· æºåºä½ ç®æ åºä½ |
| | | if (Common.gs_crncmd[crnno - 1].Length == 20) |
| | | //|| Common.gs_crncmd[crnno - 1].Length == 21 |
| | | //|| Common.gs_crncmd[crnno - 1].Length == 24) |
| | | { |
| | | ChkCrnCmd(Common.gs_crncmd[crnno - 1]); |
| | | Common.crn_s_commandstr[crnno - 1] = Common.gs_crncmd[crnno - 1]; |
| | | } |
| | | |
| | | switch (i_crn_step) |
| | | { |
| | | case 3: |
| | | Proc_ClearCmd(Common.crn_s_commandstr[crnno - 1]);//æ¸
å½ä»¤æä½ |
| | | break; |
| | | case 4: |
| | | Proc_RebackHp(Common.crn_s_commandstr[crnno - 1]);//å¬åï¼ååç¹æä½ |
| | | break; |
| | | case 5: |
| | | Proc_CoordMove(Common.crn_s_commandstr[crnno - 1]);//åæ ç§»è¡æä½ |
| | | break; |
| | | case 6: |
| | | ReadCrnData();//æ§è¡æ¥è¯¢æä»¤æä½ |
| | | break; |
| | | case 7: |
| | | Proc_Store(Common.crn_s_commandstr[crnno - 1]);//å
¥åºæä½ |
| | | break; |
| | | case 8: |
| | | Proc_Retrieve(Common.crn_s_commandstr[crnno - 1]);//åºåºæä½ |
| | | break; |
| | | case 9: |
| | | Proc_MoveToStn(Common.crn_s_commandstr[crnno - 1]);//è¡è³ç«æä½ |
| | | break; |
| | | case 10: |
| | | Proc_RebackOHP(Common.crn_s_commandstr[crnno - 1]);//å»ååç¹æä½ |
| | | break; |
| | | case 11: |
| | | Proc_StnToStn(Common.crn_s_commandstr[crnno - 1]);//ç«å°ç«æä½ |
| | | break; |
| | | case 12: |
| | | Proc_LocationMove(Common.crn_s_commandstr[crnno - 1]);//åºä½ç§»è½½æä½ |
| | | break; |
| | | //case 99: //ä»»å¡å®æå¤ä½ä¿¡å· |
| | | // string cmd = Common.crn_s_commandstr[crnno - 1]; |
| | | // int value = Int32.Parse(cmd.Substring(2, 4)); |
| | | // OperateResult result = siemensTcpNet.Write("DB8.0", value); |
| | | // break; |
| | | default: |
| | | break; |
| | | } |
| | | i_crn_step = 6; |
| | | |
| | | //Thread.Sleep(Common.ci_CRNtimeInterval); |
| | | } |
| | | catch (Exception em) |
| | | { |
| | | Common.WriteLogFile("WcsError", "CraneThread/ThreadTask--å åæºä¸»çº¿ç¨å¾ªç¯åºé:" + em.Message); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | } |
| New file |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Runtime.InteropServices; |
| | | using System.Configuration; |
| | | |
| | | namespace WCS |
| | | { |
| | | class DLL |
| | | { |
| | | |
| | | [DllImport("ListenPlayDll2014.dll", EntryPoint = "SetTransMode2014", CharSet = CharSet.Unicode)] |
| | | public static extern int SetTransMode(int handle, int TransMode, int ConType); |
| | | |
| | | [DllImport("ListenPlayDll2014.dll", EntryPoint = "StartSend2014", CharSet = CharSet.Unicode)] |
| | | public static extern int StartSend(); |
| | | |
| | | [DllImport("ListenPlayDll2014.dll", EntryPoint = "EndSend2014", CharSet = CharSet.Unicode)] |
| | | public static extern int EndSend(int handle); |
| | | |
| | | [DllImport("ListenPlayDll2014.dll", EntryPoint = "SetNetworkPara2014", CharSet = CharSet.Unicode)] |
| | | public static extern int SetNetworkPara(int handle, int pno, string ip); |
| | | |
| | | [DllImport("ListenPlayDll2014.dll", EntryPoint = "SetSerialPortPara2014", CharSet = CharSet.Unicode)] |
| | | public static extern int SetSerialPortPara(int handle, int pno, int port, int rate); |
| | | |
| | | [DllImport("ListenPlayDll2014.dll", EntryPoint = "AddControl2014", CharSet = CharSet.Unicode)] |
| | | public static extern int AddControl(int handle, int pno, int DBColor); |
| | | |
| | | [DllImport("ListenPlayDll2014.dll", EntryPoint = "AddProgram2014", CharSet = CharSet.Unicode)] |
| | | public static extern int AddProgram(int handle, int jno, int playTime); |
| | | |
| | | [DllImport("ListenPlayDll2014.dll", EntryPoint = "SetProgramTimer2014", CharSet = CharSet.Unicode)] |
| | | public static extern int SetProgramTimer(int handle, int jno, int TimingModel, int WeekSelect, int startSecond, int startMinute, |
| | | int startHour, int startDay, int startMonth, int startWeek, int startYear, |
| | | int endSecond, int endMinute, int endHour, int endDay, int endMonth, int endWeek, int endYear); |
| | | |
| | | [DllImport("ListenPlayDll2014.dll", EntryPoint = "AddQuitText2014", CharSet = CharSet.Unicode)] |
| | | public static extern int AddQuitText(int handle, int jno, int qno, int left, int top, int width, int height, int FontColor, string fontName, int fontSize, int fontBold, int Italic, int Underline, string text); |
| | | |
| | | [DllImport("ListenPlayDll2014.dll", EntryPoint = "AddFileArea2014", CharSet = CharSet.Unicode)] |
| | | public static extern int AddFileArea(int handle, int jno, int qno, int left, int top, int width, int height); |
| | | |
| | | |
| | | [DllImport("ListenPlayDll2014.dll", EntryPoint = "AddFile2014", CharSet = CharSet.Unicode)] |
| | | public static extern int AddFile(int handle, int jno, int qno, int mno, string fileName, int width, int height, int playstyle, int QuitStyle, int playspeed, int delay, int MidText); |
| | | |
| | | [DllImport("ListenPlayDll2014.dll", EntryPoint = "AddTimerArea2014", CharSet = CharSet.Unicode)] |
| | | public static extern int AddTimerArea(int handle, int jno, int qno, int left, int top, int width, int height, |
| | | int fontColor, string fontName, int fontSize, int fontBold, int Italic, int Underline, |
| | | int mode, int DayShow, int CulWeek, int CulDay, int CulHour, int CulMin, int CulSec, |
| | | int year, int week, int month, int day, int hour, int minute, int second); |
| | | |
| | | [DllImport("ListenPlayDll2014.dll", EntryPoint = "AddDClockArea2014", CharSet = CharSet.Unicode)] |
| | | public static extern int AddDClockArea(int handle, int jno, int qno, int left, int top, int width, int height, |
| | | int fontColor, string fontName, int fontSize, int fontBold, int Italic, int Underline, |
| | | int year, int week, int month, int day, int hour, int minute, int second, int TwoOrFourYear, |
| | | int HourShow, int format, int spanMode, int Advacehour, int Advaceminute); |
| | | |
| | | [DllImport("ListenPlayDll2014.dll", EntryPoint = "AddLnTxtArea2014", CharSet = CharSet.Unicode)] |
| | | public static extern int AddLnTxtArea(int handle, int jno, int qno, int left, int top, int width, int height, string LnFileName, int PlayStyle, int Playspeed, int times); |
| | | |
| | | [DllImport("ListenPlayDll2014.dll", EntryPoint = "AddFileString2014", CallingConvention = CallingConvention.StdCall, CharSet = CharSet.Unicode)] |
| | | public static extern int AddFileString(int pno, int jno, int qno, int mno, string str, string strFont, int fontsize, int fontcolor, bool bold, bool italic, bool underline, int Duiqi, int width, int height, int playstyle, int QuitStyle, int playspeed, int delay, int MidText); |
| | | |
| | | |
| | | [DllImport("ListenPlayDll2014.dll", EntryPoint = "SendControl2014", CharSet = CharSet.Unicode)] |
| | | public static extern int SendControl(int handle, int SendType, IntPtr hwnd); |
| | | |
| | | |
| | | [DllImport("ListenPlayDll2014.dll", EntryPoint = "SendScreenPara2014", CharSet = CharSet.Unicode)] |
| | | public static extern int SendScreenPara(int handle, int dbcolor, int widht, int height); |
| | | |
| | | |
| | | [DllImport("ListenPlayDll2014.dll", EntryPoint = "AddLnTxtString2014", CharSet = CharSet.Unicode)] |
| | | public static extern int AddLnTxtString(int handle, int jno, int qno, int left, int top, int width, int height, string str, string strFont, int fontsize, int fontcolor, bool bold, bool italic, bool underline, int PlayStyle, int Playspeed, int times); |
| | | |
| | | |
| | | |
| | | } |
| | | } |
| New file |
| | |
| | | namespace WCS |
| | | { |
| | | partial class Form2 |
| | | { |
| | | /// <summary> |
| | | /// Required designer variable. |
| | | /// </summary> |
| | | private System.ComponentModel.IContainer components = null; |
| | | |
| | | /// <summary> |
| | | /// Clean up any resources being used. |
| | | /// </summary> |
| | | /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> |
| | | protected override void Dispose(bool disposing) |
| | | { |
| | | if (disposing && (components != null)) |
| | | { |
| | | components.Dispose(); |
| | | } |
| | | base.Dispose(disposing); |
| | | } |
| | | |
| | | #region Windows Form Designer generated code |
| | | |
| | | /// <summary> |
| | | /// Required method for Designer support - do not modify |
| | | /// the contents of this method with the code editor. |
| | | /// </summary> |
| | | private void InitializeComponent() |
| | | { |
| | | System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form2)); |
| | | this.button20 = new System.Windows.Forms.Button(); |
| | | this.tb_rackCount = new System.Windows.Forms.TextBox(); |
| | | this.tb_crnCount = new System.Windows.Forms.TextBox(); |
| | | this.tb_stnCount = new System.Windows.Forms.TextBox(); |
| | | this.tb_mapName = new System.Windows.Forms.TextBox(); |
| | | this.label1 = new System.Windows.Forms.Label(); |
| | | this.label2 = new System.Windows.Forms.Label(); |
| | | this.label5 = new System.Windows.Forms.Label(); |
| | | this.label6 = new System.Windows.Forms.Label(); |
| | | this.groupBox1 = new System.Windows.Forms.GroupBox(); |
| | | this.radioButton2 = new System.Windows.Forms.RadioButton(); |
| | | this.radioButton1 = new System.Windows.Forms.RadioButton(); |
| | | this.label7 = new System.Windows.Forms.Label(); |
| | | this.tb_minBay = new System.Windows.Forms.TextBox(); |
| | | this.label3 = new System.Windows.Forms.Label(); |
| | | this.tb_floors = new System.Windows.Forms.TextBox(); |
| | | this.label4 = new System.Windows.Forms.Label(); |
| | | this.lb_desc16 = new System.Windows.Forms.Label(); |
| | | this.rack4 = new System.Windows.Forms.Panel(); |
| | | this.rack1 = new System.Windows.Forms.Panel(); |
| | | this.rack2 = new System.Windows.Forms.Panel(); |
| | | this.lb_crn4 = new DevComponents.DotNetBar.LabelX(); |
| | | this.lb_track1 = new System.Windows.Forms.Label(); |
| | | this.rack3 = new System.Windows.Forms.Panel(); |
| | | this.rack8 = new System.Windows.Forms.Panel(); |
| | | this.rack5 = new System.Windows.Forms.Panel(); |
| | | this.rack6 = new System.Windows.Forms.Panel(); |
| | | this.lb_crn3 = new DevComponents.DotNetBar.LabelX(); |
| | | this.lb_track2 = new System.Windows.Forms.Label(); |
| | | this.rack7 = new System.Windows.Forms.Panel(); |
| | | this.rack12 = new System.Windows.Forms.Panel(); |
| | | this.rack9 = new System.Windows.Forms.Panel(); |
| | | this.rack10 = new System.Windows.Forms.Panel(); |
| | | this.lb_crn2 = new DevComponents.DotNetBar.LabelX(); |
| | | this.lb_track5 = new System.Windows.Forms.Label(); |
| | | this.rack11 = new System.Windows.Forms.Panel(); |
| | | this.rack16 = new System.Windows.Forms.Panel(); |
| | | this.rack13 = new System.Windows.Forms.Panel(); |
| | | this.rack15 = new System.Windows.Forms.Panel(); |
| | | this.lb_desc1 = new System.Windows.Forms.Label(); |
| | | this.lb_track4 = new System.Windows.Forms.Label(); |
| | | this.rack14 = new System.Windows.Forms.Panel(); |
| | | this.lb_crn1 = new DevComponents.DotNetBar.LabelX(); |
| | | this.tabControl_floor1 = new System.Windows.Forms.TabControl(); |
| | | this.page_floor1 = new System.Windows.Forms.TabPage(); |
| | | this.lb_trCart21 = new System.Windows.Forms.Label(); |
| | | this.lb_trCart22 = new System.Windows.Forms.Label(); |
| | | this.stn016 = new DevComponents.DotNetBar.LabelX(); |
| | | this.stn015 = new DevComponents.DotNetBar.LabelX(); |
| | | this.stn014 = new DevComponents.DotNetBar.LabelX(); |
| | | this.stn013 = new DevComponents.DotNetBar.LabelX(); |
| | | this.stn012 = new DevComponents.DotNetBar.LabelX(); |
| | | this.stn011 = new DevComponents.DotNetBar.LabelX(); |
| | | this.stn010 = new DevComponents.DotNetBar.LabelX(); |
| | | this.stn009 = new DevComponents.DotNetBar.LabelX(); |
| | | this.stn008 = new DevComponents.DotNetBar.LabelX(); |
| | | this.stn007 = new DevComponents.DotNetBar.LabelX(); |
| | | this.stn006 = new DevComponents.DotNetBar.LabelX(); |
| | | this.stn005 = new DevComponents.DotNetBar.LabelX(); |
| | | this.stn004 = new DevComponents.DotNetBar.LabelX(); |
| | | this.stn003 = new DevComponents.DotNetBar.LabelX(); |
| | | this.stn002 = new DevComponents.DotNetBar.LabelX(); |
| | | this.stn001 = new DevComponents.DotNetBar.LabelX(); |
| | | this.groupBox1.SuspendLayout(); |
| | | this.tabControl_floor1.SuspendLayout(); |
| | | this.page_floor1.SuspendLayout(); |
| | | this.SuspendLayout(); |
| | | // |
| | | // button20 |
| | | // |
| | | this.button20.Location = new System.Drawing.Point(1199, 36); |
| | | this.button20.Name = "button20"; |
| | | this.button20.Size = new System.Drawing.Size(75, 23); |
| | | this.button20.TabIndex = 1686; |
| | | this.button20.Text = "çæJSON"; |
| | | this.button20.UseVisualStyleBackColor = true; |
| | | this.button20.Click += new System.EventHandler(this.button20_Click); |
| | | // |
| | | // tb_rackCount |
| | | // |
| | | this.tb_rackCount.Location = new System.Drawing.Point(142, 37); |
| | | this.tb_rackCount.Name = "tb_rackCount"; |
| | | this.tb_rackCount.Size = new System.Drawing.Size(100, 21); |
| | | this.tb_rackCount.TabIndex = 1687; |
| | | this.tb_rackCount.Text = "16"; |
| | | // |
| | | // tb_crnCount |
| | | // |
| | | this.tb_crnCount.Location = new System.Drawing.Point(265, 37); |
| | | this.tb_crnCount.Name = "tb_crnCount"; |
| | | this.tb_crnCount.Size = new System.Drawing.Size(100, 21); |
| | | this.tb_crnCount.TabIndex = 1688; |
| | | this.tb_crnCount.Text = "4"; |
| | | // |
| | | // tb_stnCount |
| | | // |
| | | this.tb_stnCount.Location = new System.Drawing.Point(390, 37); |
| | | this.tb_stnCount.Name = "tb_stnCount"; |
| | | this.tb_stnCount.Size = new System.Drawing.Size(100, 21); |
| | | this.tb_stnCount.TabIndex = 1689; |
| | | this.tb_stnCount.Text = "16"; |
| | | // |
| | | // tb_mapName |
| | | // |
| | | this.tb_mapName.Location = new System.Drawing.Point(22, 37); |
| | | this.tb_mapName.Name = "tb_mapName"; |
| | | this.tb_mapName.Size = new System.Drawing.Size(100, 21); |
| | | this.tb_mapName.TabIndex = 1690; |
| | | this.tb_mapName.Text = "STWCS"; |
| | | // |
| | | // label1 |
| | | // |
| | | this.label1.AutoSize = true; |
| | | this.label1.Location = new System.Drawing.Point(26, 15); |
| | | this.label1.Name = "label1"; |
| | | this.label1.Size = new System.Drawing.Size(53, 12); |
| | | this.label1.TabIndex = 1691; |
| | | this.label1.Text = "项ç®åç§°"; |
| | | // |
| | | // label2 |
| | | // |
| | | this.label2.AutoSize = true; |
| | | this.label2.Location = new System.Drawing.Point(142, 15); |
| | | this.label2.Name = "label2"; |
| | | this.label2.Size = new System.Drawing.Size(53, 12); |
| | | this.label2.TabIndex = 1692; |
| | | this.label2.Text = "è´§æ¶æ°é"; |
| | | // |
| | | // label5 |
| | | // |
| | | this.label5.AutoSize = true; |
| | | this.label5.Location = new System.Drawing.Point(268, 15); |
| | | this.label5.Name = "label5"; |
| | | this.label5.Size = new System.Drawing.Size(65, 12); |
| | | this.label5.TabIndex = 1693; |
| | | this.label5.Text = "å åæºæ°é"; |
| | | // |
| | | // label6 |
| | | // |
| | | this.label6.AutoSize = true; |
| | | this.label6.Location = new System.Drawing.Point(388, 15); |
| | | this.label6.Name = "label6"; |
| | | this.label6.Size = new System.Drawing.Size(53, 12); |
| | | this.label6.TabIndex = 1694; |
| | | this.label6.Text = "ç«ç¹æ°é"; |
| | | // |
| | | // groupBox1 |
| | | // |
| | | this.groupBox1.Controls.Add(this.radioButton2); |
| | | this.groupBox1.Controls.Add(this.radioButton1); |
| | | this.groupBox1.Location = new System.Drawing.Point(505, 16); |
| | | this.groupBox1.Name = "groupBox1"; |
| | | this.groupBox1.Size = new System.Drawing.Size(145, 56); |
| | | this.groupBox1.TabIndex = 1695; |
| | | this.groupBox1.TabStop = false; |
| | | this.groupBox1.Text = "åç¹æ¹å"; |
| | | // |
| | | // radioButton2 |
| | | // |
| | | this.radioButton2.AutoSize = true; |
| | | this.radioButton2.Location = new System.Drawing.Point(90, 23); |
| | | this.radioButton2.Name = "radioButton2"; |
| | | this.radioButton2.Size = new System.Drawing.Size(47, 16); |
| | | this.radioButton2.TabIndex = 1; |
| | | this.radioButton2.Text = "å³ä¾§"; |
| | | this.radioButton2.UseVisualStyleBackColor = true; |
| | | // |
| | | // radioButton1 |
| | | // |
| | | this.radioButton1.AutoSize = true; |
| | | this.radioButton1.Checked = true; |
| | | this.radioButton1.Location = new System.Drawing.Point(17, 22); |
| | | this.radioButton1.Name = "radioButton1"; |
| | | this.radioButton1.Size = new System.Drawing.Size(47, 16); |
| | | this.radioButton1.TabIndex = 0; |
| | | this.radioButton1.TabStop = true; |
| | | this.radioButton1.Text = "左侧"; |
| | | this.radioButton1.UseVisualStyleBackColor = true; |
| | | // |
| | | // label7 |
| | | // |
| | | this.label7.AutoSize = true; |
| | | this.label7.Location = new System.Drawing.Point(682, 15); |
| | | this.label7.Name = "label7"; |
| | | this.label7.Size = new System.Drawing.Size(89, 12); |
| | | this.label7.TabIndex = 1697; |
| | | this.label7.Text = "åºä½åå·èµ·å§å¼"; |
| | | // |
| | | // tb_minBay |
| | | // |
| | | this.tb_minBay.Location = new System.Drawing.Point(684, 37); |
| | | this.tb_minBay.Name = "tb_minBay"; |
| | | this.tb_minBay.Size = new System.Drawing.Size(65, 21); |
| | | this.tb_minBay.TabIndex = 1696; |
| | | this.tb_minBay.Text = "2"; |
| | | // |
| | | // label3 |
| | | // |
| | | this.label3.AutoSize = true; |
| | | this.label3.Location = new System.Drawing.Point(816, 16); |
| | | this.label3.Name = "label3"; |
| | | this.label3.Size = new System.Drawing.Size(41, 12); |
| | | this.label3.TabIndex = 1700; |
| | | this.label3.Text = "æ¥¼å±æ°"; |
| | | // |
| | | // tb_floors |
| | | // |
| | | this.tb_floors.Location = new System.Drawing.Point(818, 38); |
| | | this.tb_floors.Name = "tb_floors"; |
| | | this.tb_floors.Size = new System.Drawing.Size(65, 21); |
| | | this.tb_floors.TabIndex = 1699; |
| | | this.tb_floors.Text = "1"; |
| | | // |
| | | // label4 |
| | | // |
| | | this.label4.AutoSize = true; |
| | | this.label4.Location = new System.Drawing.Point(682, 70); |
| | | this.label4.Name = "label4"; |
| | | this.label4.Size = new System.Drawing.Size(143, 12); |
| | | this.label4.TabIndex = 1701; |
| | | this.label4.Text = "åæå¤§å¼å¨è´§æ¶Tagä¸è®¾ç½®"; |
| | | // |
| | | // lb_desc16 |
| | | // |
| | | this.lb_desc16.AutoSize = true; |
| | | this.lb_desc16.BackColor = System.Drawing.Color.Transparent; |
| | | this.lb_desc16.Font = new System.Drawing.Font("Georgia", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); |
| | | this.lb_desc16.Location = new System.Drawing.Point(1228, 664); |
| | | this.lb_desc16.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); |
| | | this.lb_desc16.Name = "lb_desc16"; |
| | | this.lb_desc16.Size = new System.Drawing.Size(30, 23); |
| | | this.lb_desc16.TabIndex = 1780; |
| | | this.lb_desc16.Text = "#1"; |
| | | // |
| | | // rack4 |
| | | // |
| | | this.rack4.AccessibleDescription = ""; |
| | | this.rack4.BackColor = System.Drawing.Color.Tomato; |
| | | this.rack4.Location = new System.Drawing.Point(412, 549); |
| | | this.rack4.Margin = new System.Windows.Forms.Padding(2); |
| | | this.rack4.Name = "rack4"; |
| | | this.rack4.Size = new System.Drawing.Size(846, 20); |
| | | this.rack4.TabIndex = 1779; |
| | | this.rack4.Tag = "31"; |
| | | // |
| | | // rack1 |
| | | // |
| | | this.rack1.AccessibleDescription = ""; |
| | | this.rack1.BackColor = System.Drawing.Color.Tomato; |
| | | this.rack1.Location = new System.Drawing.Point(413, 642); |
| | | this.rack1.Margin = new System.Windows.Forms.Padding(2); |
| | | this.rack1.Name = "rack1"; |
| | | this.rack1.Size = new System.Drawing.Size(846, 20); |
| | | this.rack1.TabIndex = 1775; |
| | | this.rack1.Tag = "31"; |
| | | // |
| | | // rack2 |
| | | // |
| | | this.rack2.AccessibleDescription = ""; |
| | | this.rack2.BackColor = System.Drawing.Color.Tomato; |
| | | this.rack2.Location = new System.Drawing.Point(413, 619); |
| | | this.rack2.Margin = new System.Windows.Forms.Padding(2); |
| | | this.rack2.Name = "rack2"; |
| | | this.rack2.Size = new System.Drawing.Size(846, 20); |
| | | this.rack2.TabIndex = 1776; |
| | | this.rack2.Tag = "31"; |
| | | // |
| | | // lb_crn4 |
| | | // |
| | | this.lb_crn4.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("lb_crn4.BackgroundImage"))); |
| | | this.lb_crn4.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; |
| | | // |
| | | // |
| | | // |
| | | this.lb_crn4.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; |
| | | this.lb_crn4.Location = new System.Drawing.Point(501, 252); |
| | | this.lb_crn4.Name = "lb_crn4"; |
| | | this.lb_crn4.Size = new System.Drawing.Size(93, 22); |
| | | this.lb_crn4.TabIndex = 1778; |
| | | this.lb_crn4.Tag = "-4"; |
| | | this.lb_crn4.Text = "4"; |
| | | this.lb_crn4.Click += new System.EventHandler(this.lb_crn4_Click_1); |
| | | // |
| | | // lb_track1 |
| | | // |
| | | this.lb_track1.BackColor = System.Drawing.Color.Black; |
| | | this.lb_track1.Location = new System.Drawing.Point(332, 605); |
| | | this.lb_track1.Name = "lb_track1"; |
| | | this.lb_track1.Size = new System.Drawing.Size(971, 2); |
| | | this.lb_track1.TabIndex = 1777; |
| | | // |
| | | // rack3 |
| | | // |
| | | this.rack3.AccessibleDescription = ""; |
| | | this.rack3.BackColor = System.Drawing.Color.Tomato; |
| | | this.rack3.Location = new System.Drawing.Point(412, 571); |
| | | this.rack3.Margin = new System.Windows.Forms.Padding(2); |
| | | this.rack3.Name = "rack3"; |
| | | this.rack3.Size = new System.Drawing.Size(846, 20); |
| | | this.rack3.TabIndex = 1774; |
| | | this.rack3.Tag = "31"; |
| | | // |
| | | // rack8 |
| | | // |
| | | this.rack8.AccessibleDescription = ""; |
| | | this.rack8.BackColor = System.Drawing.Color.Tomato; |
| | | this.rack8.Location = new System.Drawing.Point(412, 435); |
| | | this.rack8.Margin = new System.Windows.Forms.Padding(2); |
| | | this.rack8.Name = "rack8"; |
| | | this.rack8.Size = new System.Drawing.Size(846, 20); |
| | | this.rack8.TabIndex = 1773; |
| | | this.rack8.Tag = "31"; |
| | | // |
| | | // rack5 |
| | | // |
| | | this.rack5.AccessibleDescription = ""; |
| | | this.rack5.BackColor = System.Drawing.Color.Tomato; |
| | | this.rack5.Location = new System.Drawing.Point(412, 527); |
| | | this.rack5.Margin = new System.Windows.Forms.Padding(2); |
| | | this.rack5.Name = "rack5"; |
| | | this.rack5.Size = new System.Drawing.Size(846, 20); |
| | | this.rack5.TabIndex = 1769; |
| | | this.rack5.Tag = "31"; |
| | | // |
| | | // rack6 |
| | | // |
| | | this.rack6.AccessibleDescription = ""; |
| | | this.rack6.BackColor = System.Drawing.Color.Tomato; |
| | | this.rack6.Location = new System.Drawing.Point(412, 505); |
| | | this.rack6.Margin = new System.Windows.Forms.Padding(2); |
| | | this.rack6.Name = "rack6"; |
| | | this.rack6.Size = new System.Drawing.Size(846, 20); |
| | | this.rack6.TabIndex = 1770; |
| | | this.rack6.Tag = "31"; |
| | | // |
| | | // lb_crn3 |
| | | // |
| | | this.lb_crn3.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("lb_crn3.BackgroundImage"))); |
| | | this.lb_crn3.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; |
| | | // |
| | | // |
| | | // |
| | | this.lb_crn3.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; |
| | | this.lb_crn3.Location = new System.Drawing.Point(512, 367); |
| | | this.lb_crn3.Name = "lb_crn3"; |
| | | this.lb_crn3.Size = new System.Drawing.Size(93, 22); |
| | | this.lb_crn3.TabIndex = 1772; |
| | | this.lb_crn3.Tag = "-3"; |
| | | this.lb_crn3.Text = "3"; |
| | | // |
| | | // lb_track2 |
| | | // |
| | | this.lb_track2.BackColor = System.Drawing.Color.Black; |
| | | this.lb_track2.Location = new System.Drawing.Point(332, 489); |
| | | this.lb_track2.Name = "lb_track2"; |
| | | this.lb_track2.Size = new System.Drawing.Size(972, 2); |
| | | this.lb_track2.TabIndex = 1771; |
| | | this.lb_track2.Click += new System.EventHandler(this.lb_track2_Click_1); |
| | | // |
| | | // rack7 |
| | | // |
| | | this.rack7.AccessibleDescription = ""; |
| | | this.rack7.BackColor = System.Drawing.Color.Tomato; |
| | | this.rack7.Location = new System.Drawing.Point(412, 457); |
| | | this.rack7.Margin = new System.Windows.Forms.Padding(2); |
| | | this.rack7.Name = "rack7"; |
| | | this.rack7.Size = new System.Drawing.Size(846, 20); |
| | | this.rack7.TabIndex = 1768; |
| | | this.rack7.Tag = "31"; |
| | | // |
| | | // rack12 |
| | | // |
| | | this.rack12.AccessibleDescription = ""; |
| | | this.rack12.BackColor = System.Drawing.Color.Tomato; |
| | | this.rack12.Location = new System.Drawing.Point(412, 322); |
| | | this.rack12.Margin = new System.Windows.Forms.Padding(2); |
| | | this.rack12.Name = "rack12"; |
| | | this.rack12.Size = new System.Drawing.Size(846, 20); |
| | | this.rack12.TabIndex = 1767; |
| | | this.rack12.Tag = "31"; |
| | | // |
| | | // rack9 |
| | | // |
| | | this.rack9.AccessibleDescription = ""; |
| | | this.rack9.BackColor = System.Drawing.Color.Tomato; |
| | | this.rack9.Location = new System.Drawing.Point(412, 413); |
| | | this.rack9.Margin = new System.Windows.Forms.Padding(2); |
| | | this.rack9.Name = "rack9"; |
| | | this.rack9.Size = new System.Drawing.Size(846, 20); |
| | | this.rack9.TabIndex = 1763; |
| | | this.rack9.Tag = "31"; |
| | | // |
| | | // rack10 |
| | | // |
| | | this.rack10.AccessibleDescription = ""; |
| | | this.rack10.BackColor = System.Drawing.Color.Tomato; |
| | | this.rack10.Location = new System.Drawing.Point(412, 391); |
| | | this.rack10.Margin = new System.Windows.Forms.Padding(2); |
| | | this.rack10.Name = "rack10"; |
| | | this.rack10.Size = new System.Drawing.Size(846, 20); |
| | | this.rack10.TabIndex = 1764; |
| | | this.rack10.Tag = "31"; |
| | | // |
| | | // lb_crn2 |
| | | // |
| | | this.lb_crn2.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("lb_crn2.BackgroundImage"))); |
| | | this.lb_crn2.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; |
| | | // |
| | | // |
| | | // |
| | | this.lb_crn2.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; |
| | | this.lb_crn2.Location = new System.Drawing.Point(501, 481); |
| | | this.lb_crn2.Name = "lb_crn2"; |
| | | this.lb_crn2.Size = new System.Drawing.Size(93, 22); |
| | | this.lb_crn2.TabIndex = 1766; |
| | | this.lb_crn2.Tag = "-2"; |
| | | this.lb_crn2.Text = "2"; |
| | | // |
| | | // lb_track5 |
| | | // |
| | | this.lb_track5.BackColor = System.Drawing.Color.Black; |
| | | this.lb_track5.Location = new System.Drawing.Point(333, 376); |
| | | this.lb_track5.Name = "lb_track5"; |
| | | this.lb_track5.Size = new System.Drawing.Size(974, 2); |
| | | this.lb_track5.TabIndex = 1765; |
| | | // |
| | | // rack11 |
| | | // |
| | | this.rack11.AccessibleDescription = ""; |
| | | this.rack11.BackColor = System.Drawing.Color.Tomato; |
| | | this.rack11.Location = new System.Drawing.Point(412, 344); |
| | | this.rack11.Margin = new System.Windows.Forms.Padding(2); |
| | | this.rack11.Name = "rack11"; |
| | | this.rack11.Size = new System.Drawing.Size(846, 20); |
| | | this.rack11.TabIndex = 1762; |
| | | this.rack11.Tag = "31"; |
| | | // |
| | | // rack16 |
| | | // |
| | | this.rack16.AccessibleDescription = ""; |
| | | this.rack16.BackColor = System.Drawing.Color.Tomato; |
| | | this.rack16.Location = new System.Drawing.Point(412, 206); |
| | | this.rack16.Margin = new System.Windows.Forms.Padding(2); |
| | | this.rack16.Name = "rack16"; |
| | | this.rack16.Size = new System.Drawing.Size(846, 20); |
| | | this.rack16.TabIndex = 1756; |
| | | this.rack16.Tag = "31"; |
| | | // |
| | | // rack13 |
| | | // |
| | | this.rack13.AccessibleDescription = ""; |
| | | this.rack13.BackColor = System.Drawing.Color.Tomato; |
| | | this.rack13.Location = new System.Drawing.Point(412, 300); |
| | | this.rack13.Margin = new System.Windows.Forms.Padding(2); |
| | | this.rack13.Name = "rack13"; |
| | | this.rack13.Size = new System.Drawing.Size(846, 20); |
| | | this.rack13.TabIndex = 1758; |
| | | this.rack13.Tag = "31"; |
| | | // |
| | | // rack15 |
| | | // |
| | | this.rack15.AccessibleDescription = ""; |
| | | this.rack15.BackColor = System.Drawing.Color.Tomato; |
| | | this.rack15.Location = new System.Drawing.Point(412, 228); |
| | | this.rack15.Margin = new System.Windows.Forms.Padding(2); |
| | | this.rack15.Name = "rack15"; |
| | | this.rack15.Size = new System.Drawing.Size(846, 20); |
| | | this.rack15.TabIndex = 1755; |
| | | this.rack15.Tag = "31"; |
| | | // |
| | | // lb_desc1 |
| | | // |
| | | this.lb_desc1.AutoSize = true; |
| | | this.lb_desc1.BackColor = System.Drawing.Color.Transparent; |
| | | this.lb_desc1.Font = new System.Drawing.Font("Georgia", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); |
| | | this.lb_desc1.Location = new System.Drawing.Point(1217, 181); |
| | | this.lb_desc1.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); |
| | | this.lb_desc1.Name = "lb_desc1"; |
| | | this.lb_desc1.Size = new System.Drawing.Size(41, 23); |
| | | this.lb_desc1.TabIndex = 1757; |
| | | this.lb_desc1.Text = "#16"; |
| | | // |
| | | // lb_track4 |
| | | // |
| | | this.lb_track4.BackColor = System.Drawing.Color.Black; |
| | | this.lb_track4.Location = new System.Drawing.Point(335, 260); |
| | | this.lb_track4.Name = "lb_track4"; |
| | | this.lb_track4.Size = new System.Drawing.Size(975, 2); |
| | | this.lb_track4.TabIndex = 1760; |
| | | this.lb_track4.Click += new System.EventHandler(this.lb_track4_Click_1); |
| | | // |
| | | // rack14 |
| | | // |
| | | this.rack14.AccessibleDescription = ""; |
| | | this.rack14.BackColor = System.Drawing.Color.Tomato; |
| | | this.rack14.Location = new System.Drawing.Point(412, 278); |
| | | this.rack14.Margin = new System.Windows.Forms.Padding(2); |
| | | this.rack14.Name = "rack14"; |
| | | this.rack14.Size = new System.Drawing.Size(846, 20); |
| | | this.rack14.TabIndex = 1759; |
| | | this.rack14.Tag = "31"; |
| | | // |
| | | // lb_crn1 |
| | | // |
| | | this.lb_crn1.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("lb_crn1.BackgroundImage"))); |
| | | this.lb_crn1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; |
| | | // |
| | | // |
| | | // |
| | | this.lb_crn1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; |
| | | this.lb_crn1.Location = new System.Drawing.Point(501, 595); |
| | | this.lb_crn1.Name = "lb_crn1"; |
| | | this.lb_crn1.Size = new System.Drawing.Size(93, 22); |
| | | this.lb_crn1.TabIndex = 1761; |
| | | this.lb_crn1.Tag = "-1"; |
| | | this.lb_crn1.Text = "1"; |
| | | // |
| | | // tabControl_floor1 |
| | | // |
| | | this.tabControl_floor1.Alignment = System.Windows.Forms.TabAlignment.Left; |
| | | this.tabControl_floor1.Controls.Add(this.page_floor1); |
| | | this.tabControl_floor1.DrawMode = System.Windows.Forms.TabDrawMode.OwnerDrawFixed; |
| | | this.tabControl_floor1.Location = new System.Drawing.Point(80, 68); |
| | | this.tabControl_floor1.Multiline = true; |
| | | this.tabControl_floor1.Name = "tabControl_floor1"; |
| | | this.tabControl_floor1.SelectedIndex = 0; |
| | | this.tabControl_floor1.Size = new System.Drawing.Size(1320, 744); |
| | | this.tabControl_floor1.TabIndex = 1785; |
| | | // |
| | | // page_floor1 |
| | | // |
| | | this.page_floor1.Controls.Add(this.lb_trCart21); |
| | | this.page_floor1.Controls.Add(this.lb_trCart22); |
| | | this.page_floor1.Controls.Add(this.stn016); |
| | | this.page_floor1.Controls.Add(this.stn015); |
| | | this.page_floor1.Controls.Add(this.stn014); |
| | | this.page_floor1.Controls.Add(this.stn013); |
| | | this.page_floor1.Controls.Add(this.stn012); |
| | | this.page_floor1.Controls.Add(this.stn011); |
| | | this.page_floor1.Controls.Add(this.stn010); |
| | | this.page_floor1.Controls.Add(this.stn009); |
| | | this.page_floor1.Controls.Add(this.stn008); |
| | | this.page_floor1.Controls.Add(this.stn007); |
| | | this.page_floor1.Controls.Add(this.stn006); |
| | | this.page_floor1.Controls.Add(this.stn005); |
| | | this.page_floor1.Controls.Add(this.stn004); |
| | | this.page_floor1.Controls.Add(this.stn003); |
| | | this.page_floor1.Controls.Add(this.stn002); |
| | | this.page_floor1.Controls.Add(this.stn001); |
| | | this.page_floor1.Location = new System.Drawing.Point(22, 4); |
| | | this.page_floor1.Name = "page_floor1"; |
| | | this.page_floor1.Padding = new System.Windows.Forms.Padding(3); |
| | | this.page_floor1.Size = new System.Drawing.Size(1294, 736); |
| | | this.page_floor1.TabIndex = 0; |
| | | this.page_floor1.Text = "1F"; |
| | | this.page_floor1.UseVisualStyleBackColor = true; |
| | | // |
| | | // lb_trCart21 |
| | | // |
| | | this.lb_trCart21.BackColor = System.Drawing.Color.Black; |
| | | this.lb_trCart21.Location = new System.Drawing.Point(141, 21); |
| | | this.lb_trCart21.Name = "lb_trCart21"; |
| | | this.lb_trCart21.Size = new System.Drawing.Size(6, 569); |
| | | this.lb_trCart21.TabIndex = 1748; |
| | | // |
| | | // lb_trCart22 |
| | | // |
| | | this.lb_trCart22.BackColor = System.Drawing.Color.Black; |
| | | this.lb_trCart22.Location = new System.Drawing.Point(195, 21); |
| | | this.lb_trCart22.Name = "lb_trCart22"; |
| | | this.lb_trCart22.Size = new System.Drawing.Size(6, 569); |
| | | this.lb_trCart22.TabIndex = 1747; |
| | | // |
| | | // stn016 |
| | | // |
| | | this.stn016.BackColor = System.Drawing.Color.Gray; |
| | | this.stn016.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; |
| | | // |
| | | // |
| | | // |
| | | this.stn016.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; |
| | | this.stn016.Font = new System.Drawing.Font("å®ä½", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.stn016.ForeColor = System.Drawing.Color.White; |
| | | this.stn016.Location = new System.Drawing.Point(137, 385); |
| | | this.stn016.Name = "stn016"; |
| | | this.stn016.Size = new System.Drawing.Size(69, 20); |
| | | this.stn016.TabIndex = 1743; |
| | | this.stn016.Tag = "016"; |
| | | this.stn016.Text = "016"; |
| | | this.stn016.TextAlignment = System.Drawing.StringAlignment.Center; |
| | | // |
| | | // stn015 |
| | | // |
| | | this.stn015.BackColor = System.Drawing.Color.Gray; |
| | | this.stn015.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; |
| | | // |
| | | // |
| | | // |
| | | this.stn015.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; |
| | | this.stn015.Font = new System.Drawing.Font("å®ä½", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.stn015.ForeColor = System.Drawing.Color.White; |
| | | this.stn015.Location = new System.Drawing.Point(208, 21); |
| | | this.stn015.Name = "stn015"; |
| | | this.stn015.Size = new System.Drawing.Size(100, 20); |
| | | this.stn015.TabIndex = 1742; |
| | | this.stn015.Tag = "015"; |
| | | this.stn015.Text = "015"; |
| | | this.stn015.TextAlignment = System.Drawing.StringAlignment.Center; |
| | | // |
| | | // stn014 |
| | | // |
| | | this.stn014.BackColor = System.Drawing.Color.Gray; |
| | | this.stn014.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; |
| | | // |
| | | // |
| | | // |
| | | this.stn014.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; |
| | | this.stn014.Font = new System.Drawing.Font("å®ä½", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.stn014.ForeColor = System.Drawing.Color.White; |
| | | this.stn014.Location = new System.Drawing.Point(311, 21); |
| | | this.stn014.Name = "stn014"; |
| | | this.stn014.Size = new System.Drawing.Size(92, 20); |
| | | this.stn014.TabIndex = 1741; |
| | | this.stn014.Tag = "014"; |
| | | this.stn014.Text = "014"; |
| | | this.stn014.TextAlignment = System.Drawing.StringAlignment.Center; |
| | | // |
| | | // stn013 |
| | | // |
| | | this.stn013.BackColor = System.Drawing.Color.Gray; |
| | | this.stn013.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; |
| | | // |
| | | // |
| | | // |
| | | this.stn013.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; |
| | | this.stn013.Font = new System.Drawing.Font("å®ä½", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.stn013.ForeColor = System.Drawing.Color.White; |
| | | this.stn013.Location = new System.Drawing.Point(311, 43); |
| | | this.stn013.Name = "stn013"; |
| | | this.stn013.Size = new System.Drawing.Size(92, 20); |
| | | this.stn013.TabIndex = 1740; |
| | | this.stn013.Tag = "013"; |
| | | this.stn013.Text = "013"; |
| | | this.stn013.TextAlignment = System.Drawing.StringAlignment.Center; |
| | | // |
| | | // stn012 |
| | | // |
| | | this.stn012.BackColor = System.Drawing.Color.Gray; |
| | | this.stn012.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; |
| | | // |
| | | // |
| | | // |
| | | this.stn012.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; |
| | | this.stn012.Font = new System.Drawing.Font("å®ä½", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.stn012.ForeColor = System.Drawing.Color.White; |
| | | this.stn012.Location = new System.Drawing.Point(311, 66); |
| | | this.stn012.Name = "stn012"; |
| | | this.stn012.Size = new System.Drawing.Size(92, 20); |
| | | this.stn012.TabIndex = 1739; |
| | | this.stn012.Tag = "012"; |
| | | this.stn012.Text = "012"; |
| | | this.stn012.TextAlignment = System.Drawing.StringAlignment.Center; |
| | | // |
| | | // stn011 |
| | | // |
| | | this.stn011.BackColor = System.Drawing.Color.Gray; |
| | | this.stn011.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; |
| | | // |
| | | // |
| | | // |
| | | this.stn011.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; |
| | | this.stn011.Font = new System.Drawing.Font("å®ä½", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.stn011.ForeColor = System.Drawing.Color.White; |
| | | this.stn011.Location = new System.Drawing.Point(311, 88); |
| | | this.stn011.Name = "stn011"; |
| | | this.stn011.Size = new System.Drawing.Size(92, 20); |
| | | this.stn011.TabIndex = 1738; |
| | | this.stn011.Tag = "011"; |
| | | this.stn011.Text = "011"; |
| | | this.stn011.TextAlignment = System.Drawing.StringAlignment.Center; |
| | | // |
| | | // stn010 |
| | | // |
| | | this.stn010.BackColor = System.Drawing.Color.Gray; |
| | | this.stn010.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; |
| | | // |
| | | // |
| | | // |
| | | this.stn010.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; |
| | | this.stn010.Font = new System.Drawing.Font("å®ä½", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.stn010.ForeColor = System.Drawing.Color.White; |
| | | this.stn010.Location = new System.Drawing.Point(311, 111); |
| | | this.stn010.Name = "stn010"; |
| | | this.stn010.Size = new System.Drawing.Size(92, 20); |
| | | this.stn010.TabIndex = 1737; |
| | | this.stn010.Tag = "010"; |
| | | this.stn010.Text = "010"; |
| | | this.stn010.TextAlignment = System.Drawing.StringAlignment.Center; |
| | | // |
| | | // stn009 |
| | | // |
| | | this.stn009.BackColor = System.Drawing.Color.Gray; |
| | | this.stn009.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; |
| | | // |
| | | // |
| | | // |
| | | this.stn009.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; |
| | | this.stn009.Font = new System.Drawing.Font("å®ä½", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.stn009.ForeColor = System.Drawing.Color.White; |
| | | this.stn009.Location = new System.Drawing.Point(208, 111); |
| | | this.stn009.Name = "stn009"; |
| | | this.stn009.Size = new System.Drawing.Size(100, 20); |
| | | this.stn009.TabIndex = 1736; |
| | | this.stn009.Tag = "009"; |
| | | this.stn009.Text = "009"; |
| | | this.stn009.TextAlignment = System.Drawing.StringAlignment.Center; |
| | | // |
| | | // stn008 |
| | | // |
| | | this.stn008.BackColor = System.Drawing.Color.Gray; |
| | | this.stn008.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; |
| | | // |
| | | // |
| | | // |
| | | this.stn008.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; |
| | | this.stn008.Font = new System.Drawing.Font("å®ä½", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.stn008.ForeColor = System.Drawing.Color.White; |
| | | this.stn008.Location = new System.Drawing.Point(208, 156); |
| | | this.stn008.Name = "stn008"; |
| | | this.stn008.Size = new System.Drawing.Size(100, 20); |
| | | this.stn008.TabIndex = 1735; |
| | | this.stn008.Tag = "008"; |
| | | this.stn008.Text = "008"; |
| | | this.stn008.TextAlignment = System.Drawing.StringAlignment.Center; |
| | | // |
| | | // stn007 |
| | | // |
| | | this.stn007.BackColor = System.Drawing.Color.Gray; |
| | | this.stn007.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; |
| | | // |
| | | // |
| | | // |
| | | this.stn007.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; |
| | | this.stn007.Font = new System.Drawing.Font("å®ä½", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.stn007.ForeColor = System.Drawing.Color.White; |
| | | this.stn007.Location = new System.Drawing.Point(209, 206); |
| | | this.stn007.Name = "stn007"; |
| | | this.stn007.Size = new System.Drawing.Size(100, 20); |
| | | this.stn007.TabIndex = 1734; |
| | | this.stn007.Tag = "007"; |
| | | this.stn007.Text = "007"; |
| | | this.stn007.TextAlignment = System.Drawing.StringAlignment.Center; |
| | | // |
| | | // stn006 |
| | | // |
| | | this.stn006.BackColor = System.Drawing.Color.Gray; |
| | | this.stn006.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; |
| | | // |
| | | // |
| | | // |
| | | this.stn006.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; |
| | | this.stn006.Font = new System.Drawing.Font("å®ä½", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.stn006.ForeColor = System.Drawing.Color.White; |
| | | this.stn006.Location = new System.Drawing.Point(209, 272); |
| | | this.stn006.Name = "stn006"; |
| | | this.stn006.Size = new System.Drawing.Size(100, 20); |
| | | this.stn006.TabIndex = 1733; |
| | | this.stn006.Tag = "006"; |
| | | this.stn006.Text = "006"; |
| | | this.stn006.TextAlignment = System.Drawing.StringAlignment.Center; |
| | | // |
| | | // stn005 |
| | | // |
| | | this.stn005.BackColor = System.Drawing.Color.Gray; |
| | | this.stn005.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; |
| | | // |
| | | // |
| | | // |
| | | this.stn005.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; |
| | | this.stn005.Font = new System.Drawing.Font("å®ä½", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.stn005.ForeColor = System.Drawing.Color.White; |
| | | this.stn005.Location = new System.Drawing.Point(209, 319); |
| | | this.stn005.Name = "stn005"; |
| | | this.stn005.Size = new System.Drawing.Size(100, 20); |
| | | this.stn005.TabIndex = 1732; |
| | | this.stn005.Tag = "005"; |
| | | this.stn005.Text = "005"; |
| | | this.stn005.TextAlignment = System.Drawing.StringAlignment.Center; |
| | | // |
| | | // stn004 |
| | | // |
| | | this.stn004.BackColor = System.Drawing.Color.Gray; |
| | | this.stn004.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; |
| | | // |
| | | // |
| | | // |
| | | this.stn004.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; |
| | | this.stn004.Font = new System.Drawing.Font("å®ä½", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.stn004.ForeColor = System.Drawing.Color.White; |
| | | this.stn004.Location = new System.Drawing.Point(209, 385); |
| | | this.stn004.Name = "stn004"; |
| | | this.stn004.Size = new System.Drawing.Size(100, 20); |
| | | this.stn004.TabIndex = 1731; |
| | | this.stn004.Tag = "004"; |
| | | this.stn004.Text = "004"; |
| | | this.stn004.TextAlignment = System.Drawing.StringAlignment.Center; |
| | | // |
| | | // stn003 |
| | | // |
| | | this.stn003.BackColor = System.Drawing.Color.Gray; |
| | | this.stn003.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; |
| | | // |
| | | // |
| | | // |
| | | this.stn003.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; |
| | | this.stn003.Font = new System.Drawing.Font("å®ä½", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.stn003.ForeColor = System.Drawing.Color.White; |
| | | this.stn003.Location = new System.Drawing.Point(209, 433); |
| | | this.stn003.Name = "stn003"; |
| | | this.stn003.Size = new System.Drawing.Size(100, 20); |
| | | this.stn003.TabIndex = 1730; |
| | | this.stn003.Tag = "003"; |
| | | this.stn003.Text = "003"; |
| | | this.stn003.TextAlignment = System.Drawing.StringAlignment.Center; |
| | | // |
| | | // stn002 |
| | | // |
| | | this.stn002.BackColor = System.Drawing.Color.Gray; |
| | | this.stn002.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; |
| | | // |
| | | // |
| | | // |
| | | this.stn002.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; |
| | | this.stn002.Font = new System.Drawing.Font("å®ä½", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.stn002.ForeColor = System.Drawing.Color.White; |
| | | this.stn002.Location = new System.Drawing.Point(209, 499); |
| | | this.stn002.Name = "stn002"; |
| | | this.stn002.Size = new System.Drawing.Size(100, 20); |
| | | this.stn002.TabIndex = 1729; |
| | | this.stn002.Tag = "002"; |
| | | this.stn002.Text = "002"; |
| | | this.stn002.TextAlignment = System.Drawing.StringAlignment.Center; |
| | | // |
| | | // stn001 |
| | | // |
| | | this.stn001.BackColor = System.Drawing.Color.Gray; |
| | | this.stn001.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; |
| | | // |
| | | // |
| | | // |
| | | this.stn001.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; |
| | | this.stn001.Font = new System.Drawing.Font("å®ä½", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.stn001.ForeColor = System.Drawing.Color.White; |
| | | this.stn001.Location = new System.Drawing.Point(209, 547); |
| | | this.stn001.Name = "stn001"; |
| | | this.stn001.Size = new System.Drawing.Size(100, 20); |
| | | this.stn001.TabIndex = 1663; |
| | | this.stn001.Tag = "001"; |
| | | this.stn001.Text = "001"; |
| | | this.stn001.TextAlignment = System.Drawing.StringAlignment.Center; |
| | | // |
| | | // Form2 |
| | | // |
| | | this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); |
| | | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
| | | this.ClientSize = new System.Drawing.Size(1607, 800); |
| | | this.Controls.Add(this.lb_desc16); |
| | | this.Controls.Add(this.rack4); |
| | | this.Controls.Add(this.rack1); |
| | | this.Controls.Add(this.rack2); |
| | | this.Controls.Add(this.lb_crn4); |
| | | this.Controls.Add(this.lb_track1); |
| | | this.Controls.Add(this.rack3); |
| | | this.Controls.Add(this.rack8); |
| | | this.Controls.Add(this.rack5); |
| | | this.Controls.Add(this.rack6); |
| | | this.Controls.Add(this.lb_crn3); |
| | | this.Controls.Add(this.lb_track2); |
| | | this.Controls.Add(this.rack7); |
| | | this.Controls.Add(this.rack12); |
| | | this.Controls.Add(this.rack9); |
| | | this.Controls.Add(this.rack10); |
| | | this.Controls.Add(this.lb_crn2); |
| | | this.Controls.Add(this.lb_track5); |
| | | this.Controls.Add(this.rack11); |
| | | this.Controls.Add(this.rack16); |
| | | this.Controls.Add(this.rack13); |
| | | this.Controls.Add(this.rack15); |
| | | this.Controls.Add(this.lb_desc1); |
| | | this.Controls.Add(this.lb_track4); |
| | | this.Controls.Add(this.rack14); |
| | | this.Controls.Add(this.lb_crn1); |
| | | this.Controls.Add(this.label4); |
| | | this.Controls.Add(this.label3); |
| | | this.Controls.Add(this.tb_floors); |
| | | this.Controls.Add(this.label7); |
| | | this.Controls.Add(this.tb_minBay); |
| | | this.Controls.Add(this.groupBox1); |
| | | this.Controls.Add(this.label6); |
| | | this.Controls.Add(this.label5); |
| | | this.Controls.Add(this.label2); |
| | | this.Controls.Add(this.label1); |
| | | this.Controls.Add(this.tb_mapName); |
| | | this.Controls.Add(this.tb_stnCount); |
| | | this.Controls.Add(this.tb_crnCount); |
| | | this.Controls.Add(this.tb_rackCount); |
| | | this.Controls.Add(this.button20); |
| | | this.Controls.Add(this.tabControl_floor1); |
| | | this.Name = "Form2"; |
| | | this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; |
| | | this.Text = "WCSçæ§å°å¾ç¼è¾å¨ V20220526"; |
| | | this.Load += new System.EventHandler(this.Form2_Load); |
| | | this.groupBox1.ResumeLayout(false); |
| | | this.groupBox1.PerformLayout(); |
| | | this.tabControl_floor1.ResumeLayout(false); |
| | | this.page_floor1.ResumeLayout(false); |
| | | this.ResumeLayout(false); |
| | | this.PerformLayout(); |
| | | |
| | | } |
| | | |
| | | #endregion |
| | | |
| | | private System.Windows.Forms.Button button20; |
| | | private System.Windows.Forms.TextBox tb_rackCount; |
| | | private System.Windows.Forms.TextBox tb_crnCount; |
| | | private System.Windows.Forms.TextBox tb_stnCount; |
| | | private System.Windows.Forms.TextBox tb_mapName; |
| | | private System.Windows.Forms.Label label1; |
| | | private System.Windows.Forms.Label label2; |
| | | private System.Windows.Forms.Label label5; |
| | | private System.Windows.Forms.Label label6; |
| | | private System.Windows.Forms.GroupBox groupBox1; |
| | | private System.Windows.Forms.RadioButton radioButton2; |
| | | private System.Windows.Forms.RadioButton radioButton1; |
| | | private System.Windows.Forms.Label label7; |
| | | private System.Windows.Forms.TextBox tb_minBay; |
| | | private System.Windows.Forms.Label label3; |
| | | private System.Windows.Forms.TextBox tb_floors; |
| | | private System.Windows.Forms.Label label4; |
| | | private System.Windows.Forms.Label lb_desc16; |
| | | private System.Windows.Forms.Panel rack4; |
| | | private System.Windows.Forms.Panel rack1; |
| | | private System.Windows.Forms.Panel rack2; |
| | | private DevComponents.DotNetBar.LabelX lb_crn4; |
| | | private System.Windows.Forms.Label lb_track1; |
| | | private System.Windows.Forms.Panel rack3; |
| | | private System.Windows.Forms.Panel rack8; |
| | | private System.Windows.Forms.Panel rack5; |
| | | private System.Windows.Forms.Panel rack6; |
| | | private DevComponents.DotNetBar.LabelX lb_crn3; |
| | | private System.Windows.Forms.Label lb_track2; |
| | | private System.Windows.Forms.Panel rack7; |
| | | private System.Windows.Forms.Panel rack12; |
| | | private System.Windows.Forms.Panel rack9; |
| | | private System.Windows.Forms.Panel rack10; |
| | | private DevComponents.DotNetBar.LabelX lb_crn2; |
| | | private System.Windows.Forms.Label lb_track5; |
| | | private System.Windows.Forms.Panel rack11; |
| | | private System.Windows.Forms.Panel rack16; |
| | | private System.Windows.Forms.Panel rack13; |
| | | private System.Windows.Forms.Panel rack15; |
| | | private System.Windows.Forms.Label lb_desc1; |
| | | private System.Windows.Forms.Label lb_track4; |
| | | private System.Windows.Forms.Panel rack14; |
| | | private DevComponents.DotNetBar.LabelX lb_crn1; |
| | | private System.Windows.Forms.TabControl tabControl_floor1; |
| | | private System.Windows.Forms.TabPage page_floor1; |
| | | private System.Windows.Forms.Label lb_trCart21; |
| | | private System.Windows.Forms.Label lb_trCart22; |
| | | private DevComponents.DotNetBar.LabelX stn016; |
| | | private DevComponents.DotNetBar.LabelX stn015; |
| | | private DevComponents.DotNetBar.LabelX stn014; |
| | | private DevComponents.DotNetBar.LabelX stn013; |
| | | private DevComponents.DotNetBar.LabelX stn012; |
| | | private DevComponents.DotNetBar.LabelX stn011; |
| | | private DevComponents.DotNetBar.LabelX stn010; |
| | | private DevComponents.DotNetBar.LabelX stn009; |
| | | private DevComponents.DotNetBar.LabelX stn008; |
| | | private DevComponents.DotNetBar.LabelX stn007; |
| | | private DevComponents.DotNetBar.LabelX stn006; |
| | | private DevComponents.DotNetBar.LabelX stn005; |
| | | private DevComponents.DotNetBar.LabelX stn004; |
| | | private DevComponents.DotNetBar.LabelX stn003; |
| | | private DevComponents.DotNetBar.LabelX stn002; |
| | | private DevComponents.DotNetBar.LabelX stn001; |
| | | |
| | | } |
| | | } |
| New file |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.ComponentModel; |
| | | using System.Data; |
| | | using System.Drawing; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using System.Windows.Forms; |
| | | using System.IO; |
| | | using com.force.json; |
| | | |
| | | namespace WCS |
| | | { |
| | | public partial class Form2 : Form |
| | | { |
| | | public Form2() |
| | | { |
| | | InitializeComponent(); |
| | | } |
| | | |
| | | private void button20_Click(object sender, EventArgs e) |
| | | { |
| | | JSONObject json = new JSONObject(); |
| | | json.put("mapName", tb_mapName.Text); |
| | | json.put("rackCount", int.Parse(tb_rackCount.Text)); |
| | | json.put("crnCount", int.Parse(tb_crnCount.Text)); |
| | | json.put("stbCount", int.Parse(tb_stnCount.Text)); |
| | | json.put("hpPosition",radioButton1.Checked ? 0 : 1); //0表示左边æ¯åç¹ï¼1表示å³è¾¹æ¯åç¹ |
| | | json.put("minBayNo", int.Parse(tb_minBay.Text)); |
| | | json.put("floors", int.Parse(tb_floors.Text)); //è¾éç«ç¹æ¥¼å±æ° |
| | | JSONArray racks = getRackArray(1); |
| | | if (racks.length() > 0) |
| | | { |
| | | json.put("racks", racks); |
| | | } |
| | | JSONArray rackDescs = getRackArray(5); |
| | | if (rackDescs.length() > 0) |
| | | { |
| | | json.put("rackDescs", rackDescs); |
| | | } |
| | | JSONArray crns = getRackArray(2); |
| | | if (crns.length() > 0) |
| | | { |
| | | json.put("crns", crns); |
| | | } |
| | | //JSONArray tracks = getRackArray(3); |
| | | //if (tracks.length() > 0) |
| | | //{ |
| | | // json.put("tracks", tracks); |
| | | //} |
| | | |
| | | //if (int.Parse(tb_floors.Text) > 1) |
| | | //{ |
| | | JSONArray areas = getFloorsArray(); |
| | | if (areas.length() > 0) |
| | | { |
| | | json.put("areas", areas); |
| | | } |
| | | //} |
| | | //else |
| | | //{ |
| | | // JSONArray stns = getRackArray(4); |
| | | // if (stns.length() > 0) |
| | | // { |
| | | // json.put("stns", stns); |
| | | // } |
| | | //} |
| | | |
| | | bool result = writeJsonFile(tb_mapName.Text + ".json", json.ToString()); |
| | | if (result) |
| | | { |
| | | MessageBox.Show("ä¿åæå"); |
| | | } |
| | | else |
| | | { |
| | | MessageBox.Show("ä¿å失败"); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// ä¿åjsonæä»¶ |
| | | /// </summary> |
| | | /// <param name="fileName"></param> |
| | | /// <param name="json"></param> |
| | | public bool writeJsonFile(string fileName, string json) |
| | | { |
| | | bool result = false; |
| | | DateTime dt = DateTime.Now; |
| | | string FileName = Application.StartupPath + "\\json\\" + fileName; |
| | | try |
| | | { |
| | | if (!Directory.Exists(Application.StartupPath + "\\json")) |
| | | { |
| | | Directory.CreateDirectory(Application.StartupPath + "\\json"); |
| | | } |
| | | |
| | | if (File.Exists(FileName)) |
| | | { |
| | | DialogResult dr = MessageBox.Show("æä»¶å·²åå¨ï¼ç¡®å®è¦çå?", "ä¿åæä»¶", MessageBoxButtons.OKCancel); |
| | | if (dr == DialogResult.Cancel)//妿ç¹å»âç¡®å®âæé® |
| | | { |
| | | return result; |
| | | } |
| | | else |
| | | { |
| | | File.Delete(FileName); |
| | | } |
| | | } |
| | | |
| | | |
| | | StreamWriter fs1 = new StreamWriter(FileName, true);//å建åå
¥æä»¶ |
| | | //StreamWriter sw = new StreamWriter(fs1); |
| | | //fs1.Write(json);//å¼å§åå
¥å¼ |
| | | fs1.WriteLine(json);//å¼å§åå
¥å¼ |
| | | |
| | | //sw.Close(); |
| | | fs1.Close(); |
| | | result = true; |
| | | } |
| | | catch (Exception em) |
| | | { |
| | | MessageBox.Show("ä¿åjsonåºé===>>" + em.Message); |
| | | } |
| | | return result; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// è´§æ¶ææ°JSONæ°ç»,æ§ä»¶ç±»åï¼1==>è´§æ¶ï¼2==>å åæºï¼3==>轨éï¼4==>ç«ç¹,5==>è´§æ¶ç¼å· |
| | | /// </summary> |
| | | /// <param name="type">æ§ä»¶ç±»åï¼1==>è´§æ¶ï¼2==>å åæºï¼3==>轨éï¼4==>ç«ç¹,5==>è´§æ¶ç¼å·</param> |
| | | /// <returns></returns> |
| | | private JSONArray getRackArray(int type) |
| | | { |
| | | JSONArray jsonArray = new JSONArray(); |
| | | for (int i = 0; i < this.Controls.Count; i++) |
| | | { |
| | | if (type == 1) |
| | | { |
| | | if (this.Controls[i] is System.Windows.Forms.Panel) |
| | | { |
| | | Panel panel = this.Controls[i] as System.Windows.Forms.Panel; |
| | | if (panel.Name.IndexOf("rack") >= 0) |
| | | { |
| | | JSONObject json = new JSONObject(); |
| | | json.put("type", "rack"); |
| | | json.put("id", panel.Name); |
| | | json.put("top", panel.Top); |
| | | json.put("left", panel.Left); |
| | | json.put("width", panel.Width); |
| | | json.put("height", panel.Height); |
| | | json.put("minBayNo", int.Parse(tb_minBay.Text)); |
| | | json.put("maxBayNo", Convert.ToInt32(panel.Tag)); |
| | | jsonArray.put(json); |
| | | //MessageBox.Show(panel.Name); |
| | | } |
| | | } |
| | | } |
| | | else if (type == 2) |
| | | { |
| | | //å åæº |
| | | if (this.Controls[i] is DevComponents.DotNetBar.LabelX) |
| | | { |
| | | DevComponents.DotNetBar.LabelX lb_crn = this.Controls[i] as DevComponents.DotNetBar.LabelX; |
| | | if (lb_crn.Name.IndexOf("lb_crn") >= 0) |
| | | { |
| | | JSONObject json = new JSONObject(); |
| | | json.put("type", "crane"); |
| | | string crnId = lb_crn.Name.Substring(3, 3) + "-" + lb_crn.Name.Substring(6, 1); |
| | | json.put("id", crnId); |
| | | json.put("text", lb_crn.Text); |
| | | json.put("top", lb_crn.Top); |
| | | json.put("left", lb_crn.Left); |
| | | json.put("width", lb_crn.Width); |
| | | json.put("height", lb_crn.Height); |
| | | jsonArray.put(json); |
| | | } |
| | | } |
| | | //轨é |
| | | if (this.Controls[i] is System.Windows.Forms.Label) |
| | | { |
| | | System.Windows.Forms.Label lb_track = this.Controls[i] as System.Windows.Forms.Label; |
| | | if (lb_track.Name.IndexOf("lb_track") >= 0) |
| | | { |
| | | JSONObject json = new JSONObject(); |
| | | json.put("type", "track"); |
| | | json.put("id", lb_track.Name); |
| | | json.put("text", lb_track.Text); |
| | | json.put("top", lb_track.Top); |
| | | json.put("left", lb_track.Left); |
| | | json.put("width", lb_track.Width); |
| | | json.put("height", lb_track.Height); |
| | | jsonArray.put(json); |
| | | } |
| | | } |
| | | } |
| | | else if (type == 3) |
| | | { |
| | | if (this.Controls[i] is System.Windows.Forms.Label) |
| | | { |
| | | System.Windows.Forms.Label lb_track = this.Controls[i] as System.Windows.Forms.Label; |
| | | if (lb_track.Name.IndexOf("lb_track") >= 0) |
| | | { |
| | | JSONObject json = new JSONObject(); |
| | | json.put("type", "track"); |
| | | json.put("id", lb_track.Name); |
| | | json.put("text", lb_track.Text); |
| | | json.put("top", lb_track.Top); |
| | | json.put("left", lb_track.Left); |
| | | json.put("width", lb_track.Width); |
| | | json.put("height", lb_track.Height); |
| | | jsonArray.put(json); |
| | | } |
| | | } |
| | | } |
| | | else if (type == 4) |
| | | { |
| | | if (this.Controls[i] is DevComponents.DotNetBar.LabelX) |
| | | { |
| | | DevComponents.DotNetBar.LabelX lb_stn = this.Controls[i] as DevComponents.DotNetBar.LabelX; |
| | | if (lb_stn.Name.IndexOf("stn") >= 0) |
| | | { |
| | | JSONObject json = new JSONObject(); |
| | | json.put("type", "stn"); |
| | | string stnId = "site-" + lb_stn.Name.Replace("stn", ""); |
| | | json.put("id", stnId); |
| | | json.put("text", lb_stn.Text); |
| | | json.put("top", lb_stn.Top); |
| | | json.put("left", lb_stn.Left); |
| | | json.put("width", lb_stn.Width); |
| | | json.put("height", lb_stn.Height); |
| | | jsonArray.put(json); |
| | | } |
| | | } |
| | | } |
| | | else if (type == 5) |
| | | { |
| | | if (this.Controls[i] is System.Windows.Forms.Label) |
| | | { |
| | | System.Windows.Forms.Label lb_desc = this.Controls[i] as System.Windows.Forms.Label; |
| | | if (lb_desc.Name.IndexOf("lb_desc") >= 0) |
| | | { |
| | | JSONObject json = new JSONObject(); |
| | | json.put("type", "rackDescs"); |
| | | json.put("id", lb_desc.Name); |
| | | json.put("text", lb_desc.Text); |
| | | json.put("top", lb_desc.Top); |
| | | json.put("left", lb_desc.Left); |
| | | json.put("width", lb_desc.Width); |
| | | json.put("height", lb_desc.Height); |
| | | jsonArray.put(json); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | return jsonArray; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 夿¥¼å±ç«ç¹ä¿¡æ¯ |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | private JSONArray getFloorsArray() |
| | | { |
| | | JSONArray jsonArray = new JSONArray(); |
| | | for (int i = 0; i < this.Controls.Count; i++) |
| | | { |
| | | if (this.Controls[i] is System.Windows.Forms.TabControl) |
| | | { |
| | | TabControl tabControl_floor = this.Controls[i] as System.Windows.Forms.TabControl; |
| | | if (tabControl_floor.Name.IndexOf("tabControl_floor") >= 0) |
| | | { |
| | | JSONObject jsonControl = new JSONObject(); |
| | | jsonControl.put("type", "Control_floor"); |
| | | jsonControl.put("id", tabControl_floor.Name); |
| | | jsonControl.put("text", "楼å±"); |
| | | jsonControl.put("top", tabControl_floor.Top); |
| | | jsonControl.put("left", tabControl_floor.Left); |
| | | jsonControl.put("width", tabControl_floor.Width); |
| | | jsonControl.put("height", tabControl_floor.Height); |
| | | |
| | | JSONArray pageArray = new JSONArray(); |
| | | for (int j = 0; j < this.Controls[i].Controls.Count; j++) |
| | | { |
| | | if (this.Controls[i].Controls[j] is System.Windows.Forms.TabPage) |
| | | { |
| | | TabPage page_floor = this.Controls[i].Controls[j] as System.Windows.Forms.TabPage; |
| | | if (page_floor.Name.IndexOf("page_floor") >= 0) |
| | | { |
| | | JSONObject jsonPageFloor = new JSONObject(); |
| | | jsonPageFloor.put("type", "floor"); |
| | | jsonPageFloor.put("id", page_floor.Name); |
| | | jsonPageFloor.put("text", page_floor.Text); |
| | | jsonPageFloor.put("top", page_floor.Top); |
| | | jsonPageFloor.put("left", page_floor.Left); |
| | | jsonPageFloor.put("width", page_floor.Width); |
| | | jsonPageFloor.put("height", page_floor.Height); |
| | | |
| | | JSONArray stnsArray = new JSONArray(); |
| | | for (int k = 0; k < this.Controls[i].Controls[j].Controls.Count; k++) |
| | | { |
| | | //ç«ç¹ |
| | | if (this.Controls[i].Controls[j].Controls[k] is DevComponents.DotNetBar.LabelX) |
| | | { |
| | | DevComponents.DotNetBar.LabelX lb_stn = this.Controls[i].Controls[j].Controls[k] as DevComponents.DotNetBar.LabelX; |
| | | if (lb_stn.Name.IndexOf("stn") >= 0) |
| | | { |
| | | JSONObject json = new JSONObject(); |
| | | json.put("type", "stn"); |
| | | string stnId = "site-" + lb_stn.Name.Replace("stn", ""); |
| | | json.put("id", stnId); |
| | | json.put("text", lb_stn.Text); |
| | | json.put("top", lb_stn.Top + tabControl_floor.Top + 4); |
| | | json.put("left", lb_stn.Left + tabControl_floor.Left + 22); |
| | | json.put("width", lb_stn.Width); |
| | | json.put("height", lb_stn.Height); |
| | | stnsArray.put(json); |
| | | } |
| | | } |
| | | //轨é |
| | | if (this.Controls[i].Controls[j].Controls[k] is System.Windows.Forms.Label) |
| | | { |
| | | System.Windows.Forms.Label lb_trCart = this.Controls[i].Controls[j].Controls[k] as System.Windows.Forms.Label; |
| | | if (lb_trCart.Name.IndexOf("lb_trCart") >= 0) |
| | | { |
| | | JSONObject json = new JSONObject(); |
| | | json.put("type", "track"); |
| | | json.put("id", lb_trCart.Name); |
| | | json.put("text", lb_trCart.Text); |
| | | json.put("top", lb_trCart.Top + tabControl_floor.Top + 4); |
| | | json.put("left", lb_trCart.Left + tabControl_floor.Left + 22); |
| | | json.put("width", lb_trCart.Width); |
| | | json.put("height", lb_trCart.Height); |
| | | stnsArray.put(json); |
| | | } |
| | | } |
| | | } |
| | | jsonPageFloor.put("stns",stnsArray); |
| | | pageArray.put(jsonPageFloor); |
| | | } |
| | | } |
| | | } |
| | | |
| | | jsonControl.put("floors", pageArray); |
| | | jsonArray.put(jsonControl); |
| | | } |
| | | } |
| | | } |
| | | return jsonArray; |
| | | } |
| | | |
| | | private void tabControl1_DrawItem(object sender, DrawItemEventArgs e) |
| | | { |
| | | //SolidBrush _Brush = new SolidBrush(Color.Black);//åâ¾ç»å· |
| | | //RectangleF _TabTextArea = (RectangleF)tabControl_floor1.GetTabRect(e.Index);//ç»å¶åºå |
| | | //StringFormat _sf = new StringFormat();//å°è£
â½æ¬å¸å±æ ¼å¼ä¿¡æ¯ |
| | | //_sf.LineAlignment = StringAlignment.Center; |
| | | //_sf.Alignment = StringAlignment.Center; |
| | | //e.Graphics.DrawString(tabControl_floor1.Controls[e.Index].Text, SystemInformation.MenuFont, _Brush, _TabTextArea,_sf); |
| | | } |
| | | |
| | | private void stn105_Click(object sender, EventArgs e) |
| | | { |
| | | |
| | | } |
| | | |
| | | private void stn102_Click(object sender, EventArgs e) |
| | | { |
| | | |
| | | } |
| | | |
| | | private void page_floor4_Click(object sender, EventArgs e) |
| | | { |
| | | |
| | | } |
| | | |
| | | private void panel2_Paint(object sender, PaintEventArgs e) |
| | | { |
| | | |
| | | } |
| | | |
| | | private void label8_Click(object sender, EventArgs e) |
| | | { |
| | | |
| | | } |
| | | |
| | | private void label9_Click(object sender, EventArgs e) |
| | | { |
| | | |
| | | } |
| | | |
| | | private void labelX1_Click(object sender, EventArgs e) |
| | | { |
| | | |
| | | } |
| | | |
| | | private void rack2_Paint(object sender, PaintEventArgs e) |
| | | { |
| | | |
| | | } |
| | | |
| | | private void label9_Click_1(object sender, EventArgs e) |
| | | { |
| | | |
| | | } |
| | | |
| | | private void labelX16_Click(object sender, EventArgs e) |
| | | { |
| | | |
| | | } |
| | | |
| | | private void labelX1_Click_1(object sender, EventArgs e) |
| | | { |
| | | |
| | | } |
| | | |
| | | private void lb_track3_Click(object sender, EventArgs e) |
| | | { |
| | | |
| | | } |
| | | |
| | | private void lb_desc1_Click(object sender, EventArgs e) |
| | | { |
| | | |
| | | } |
| | | |
| | | private void rack16_Paint(object sender, PaintEventArgs e) |
| | | { |
| | | |
| | | } |
| | | |
| | | private void rack15_Paint(object sender, PaintEventArgs e) |
| | | { |
| | | |
| | | } |
| | | |
| | | private void lb_track4_Click(object sender, EventArgs e) |
| | | { |
| | | |
| | | } |
| | | |
| | | private void lb_crn4_Click(object sender, EventArgs e) |
| | | { |
| | | |
| | | } |
| | | |
| | | private void rack14_Paint(object sender, PaintEventArgs e) |
| | | { |
| | | |
| | | } |
| | | |
| | | private void rack13_Paint(object sender, PaintEventArgs e) |
| | | { |
| | | |
| | | } |
| | | |
| | | private void rack12_Paint(object sender, PaintEventArgs e) |
| | | { |
| | | |
| | | } |
| | | |
| | | private void rack11_Paint(object sender, PaintEventArgs e) |
| | | { |
| | | |
| | | } |
| | | |
| | | private void lb_track5_Click(object sender, EventArgs e) |
| | | { |
| | | |
| | | } |
| | | |
| | | private void lb_crn3_Click(object sender, EventArgs e) |
| | | { |
| | | |
| | | } |
| | | |
| | | private void rack10_Paint(object sender, PaintEventArgs e) |
| | | { |
| | | |
| | | } |
| | | |
| | | private void rack9_Paint(object sender, PaintEventArgs e) |
| | | { |
| | | |
| | | } |
| | | |
| | | private void rack8_Paint(object sender, PaintEventArgs e) |
| | | { |
| | | |
| | | } |
| | | |
| | | private void rack7_Paint(object sender, PaintEventArgs e) |
| | | { |
| | | |
| | | } |
| | | |
| | | private void lb_crn2_Click(object sender, EventArgs e) |
| | | { |
| | | |
| | | } |
| | | |
| | | private void lb_track2_Click(object sender, EventArgs e) |
| | | { |
| | | |
| | | } |
| | | |
| | | private void rack6_Paint(object sender, PaintEventArgs e) |
| | | { |
| | | |
| | | } |
| | | |
| | | private void rack5_Paint(object sender, PaintEventArgs e) |
| | | { |
| | | |
| | | } |
| | | |
| | | private void rack4_Paint(object sender, PaintEventArgs e) |
| | | { |
| | | |
| | | } |
| | | |
| | | private void stn002_Click(object sender, EventArgs e) |
| | | { |
| | | |
| | | } |
| | | |
| | | private void stn005_Click(object sender, EventArgs e) |
| | | { |
| | | |
| | | } |
| | | |
| | | private void lb_track1_Click(object sender, EventArgs e) |
| | | { |
| | | |
| | | } |
| | | |
| | | private void lb_crn1_Click(object sender, EventArgs e) |
| | | { |
| | | |
| | | } |
| | | |
| | | private void Form2_Load(object sender, EventArgs e) |
| | | { |
| | | |
| | | } |
| | | |
| | | private void lb_trCart22_Click(object sender, EventArgs e) |
| | | { |
| | | |
| | | } |
| | | |
| | | private void lb_track2_Click_1(object sender, EventArgs e) |
| | | { |
| | | |
| | | } |
| | | |
| | | private void lb_crn4_Click_1(object sender, EventArgs e) |
| | | { |
| | | |
| | | } |
| | | |
| | | private void lb_track4_Click_1(object sender, EventArgs e) |
| | | { |
| | | |
| | | } |
| | | } |
| | | } |
| New file |
| | |
| | | <?xml version="1.0" encoding="utf-8"?> |
| | | <root> |
| | | <!-- |
| | | Microsoft ResX Schema |
| | | |
| | | Version 2.0 |
| | | |
| | | The primary goals of this format is to allow a simple XML format |
| | | that is mostly human readable. The generation and parsing of the |
| | | various data types are done through the TypeConverter classes |
| | | associated with the data types. |
| | | |
| | | Example: |
| | | |
| | | ... ado.net/XML headers & schema ... |
| | | <resheader name="resmimetype">text/microsoft-resx</resheader> |
| | | <resheader name="version">2.0</resheader> |
| | | <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> |
| | | <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> |
| | | <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> |
| | | <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> |
| | | <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> |
| | | <value>[base64 mime encoded serialized .NET Framework object]</value> |
| | | </data> |
| | | <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
| | | <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> |
| | | <comment>This is a comment</comment> |
| | | </data> |
| | | |
| | | There are any number of "resheader" rows that contain simple |
| | | name/value pairs. |
| | | |
| | | Each data row contains a name, and value. The row also contains a |
| | | type or mimetype. Type corresponds to a .NET class that support |
| | | text/value conversion through the TypeConverter architecture. |
| | | Classes that don't support this are serialized and stored with the |
| | | mimetype set. |
| | | |
| | | The mimetype is used for serialized objects, and tells the |
| | | ResXResourceReader how to depersist the object. This is currently not |
| | | extensible. For a given mimetype the value must be set accordingly: |
| | | |
| | | Note - application/x-microsoft.net.object.binary.base64 is the format |
| | | that the ResXResourceWriter will generate, however the reader can |
| | | read any of the formats listed below. |
| | | |
| | | mimetype: application/x-microsoft.net.object.binary.base64 |
| | | value : The object must be serialized with |
| | | : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter |
| | | : and then encoded with base64 encoding. |
| | | |
| | | mimetype: application/x-microsoft.net.object.soap.base64 |
| | | value : The object must be serialized with |
| | | : System.Runtime.Serialization.Formatters.Soap.SoapFormatter |
| | | : and then encoded with base64 encoding. |
| | | |
| | | mimetype: application/x-microsoft.net.object.bytearray.base64 |
| | | value : The object must be serialized into a byte array |
| | | : using a System.ComponentModel.TypeConverter |
| | | : and then encoded with base64 encoding. |
| | | --> |
| | | <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> |
| | | <xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> |
| | | <xsd:element name="root" msdata:IsDataSet="true"> |
| | | <xsd:complexType> |
| | | <xsd:choice maxOccurs="unbounded"> |
| | | <xsd:element name="metadata"> |
| | | <xsd:complexType> |
| | | <xsd:sequence> |
| | | <xsd:element name="value" type="xsd:string" minOccurs="0" /> |
| | | </xsd:sequence> |
| | | <xsd:attribute name="name" use="required" type="xsd:string" /> |
| | | <xsd:attribute name="type" type="xsd:string" /> |
| | | <xsd:attribute name="mimetype" type="xsd:string" /> |
| | | <xsd:attribute ref="xml:space" /> |
| | | </xsd:complexType> |
| | | </xsd:element> |
| | | <xsd:element name="assembly"> |
| | | <xsd:complexType> |
| | | <xsd:attribute name="alias" type="xsd:string" /> |
| | | <xsd:attribute name="name" type="xsd:string" /> |
| | | </xsd:complexType> |
| | | </xsd:element> |
| | | <xsd:element name="data"> |
| | | <xsd:complexType> |
| | | <xsd:sequence> |
| | | <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
| | | <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> |
| | | </xsd:sequence> |
| | | <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> |
| | | <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> |
| | | <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> |
| | | <xsd:attribute ref="xml:space" /> |
| | | </xsd:complexType> |
| | | </xsd:element> |
| | | <xsd:element name="resheader"> |
| | | <xsd:complexType> |
| | | <xsd:sequence> |
| | | <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
| | | </xsd:sequence> |
| | | <xsd:attribute name="name" type="xsd:string" use="required" /> |
| | | </xsd:complexType> |
| | | </xsd:element> |
| | | </xsd:choice> |
| | | </xsd:complexType> |
| | | </xsd:element> |
| | | </xsd:schema> |
| | | <resheader name="resmimetype"> |
| | | <value>text/microsoft-resx</value> |
| | | </resheader> |
| | | <resheader name="version"> |
| | | <value>2.0</value> |
| | | </resheader> |
| | | <resheader name="reader"> |
| | | <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
| | | </resheader> |
| | | <resheader name="writer"> |
| | | <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
| | | </resheader> |
| | | <assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> |
| | | <data name="lb_crn4.BackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
| | | <value> |
| | | iVBORw0KGgoAAAANSUhEUgAAAMoAAAA4CAYAAAC8P2e6AAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO |
| | | wwAADsMBx2+oZAAABudJREFUeF7tkw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0sc301m0VuvtOkLF8zJ2H9bLx7yjJLIAe9jdVWN0N9v3dHZm |
| | | eyMd0HNotFb3o1Q8L2P3Yb18zDtKIv8oRnez/ZHuBmasRPLk132gZ0yn+1Eqnpex+7Befsf+HRnvyuhu |
| | | tj/S3cCMlUi+YRpdIruj1zMdI6p7G3Yf2Mvv2L8j410Z3c32R7oqyPNK5N/MZiCieTt2H9jL79i/I+Nd |
| | | wd1GJbL232AlD16WMeq/PbsP7eV37N+R8a7gbtES2zIsu6Mk/vPYfQEvv2P/jox35VV3w747Srb4LNhF |
| | | dpRsd4FpT11Lfq7Dq2B/lB0l211g2lPXkp/rcDgcDofD4XDo59ev/wCH1gwMrIUxXgAAAABJRU5ErkJg |
| | | gg== |
| | | </value> |
| | | </data> |
| | | <data name="lb_crn3.BackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
| | | <value> |
| | | iVBORw0KGgoAAAANSUhEUgAAAMoAAAA4CAYAAAC8P2e6AAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO |
| | | wwAADsMBx2+oZAAABudJREFUeF7tkw1yYykMhOfoe7S52e7aUceyXoN+ELE9w1elqofU3YBDfh0Oh8Ph |
| | | cDgcDh/I79+///1bSq58OORhD+pPLbny4ZDnb3hE5x/lsMz5R/kCmpWSqMNPw/4YkRJ7iIrnk9C/y+6S |
| | | LSlM31myzfvBDttREr+ULxEhKp5PQf8m0RJriohfa3aUbPN+sMN2lMSXHrDOYSWyJ2azTydzt5XfAd6Z |
| | | fyV/xq7cNjoPiCxWIgkBvc1A3UWG2ezTydwN2pWSKEpEU2FXbhudB0SWztO9SknMHTa3JdI/CnbPnSXb |
| | | UiKaCrty2+g8ILJsnu5nSyLusLlXYg3yz//63RWH3WdUWm+/GZjPNIyKJ8Ku3Da6D8jyvD2iHtYbkdE+ |
| | | YA+7u+JE7qA1o+8bWHeVxLaxK7eN7gOyPG+PqIf1RmS0D2oP2qeWG7mD1oy+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2azx+7NZvMr7A6zXqTE8o3uax16FquplsR9Ft2H1z9INdv6vLXFm3NGjxl976HP |
| | | dBH/M+wOo558Ps2Z1sL0nufGyOfV3fw/dv0RdB4aWbZkHMb6dJYuGV/w5hz2mNGLPvKRPpPxBbsDerZk |
| | | /OSxMwY0umTkMvPoWaTE9v6ww6+UxJaxOTpbl4wveHOOfcxY274H02cz+B3QsyXjJ4+dMaCJaBnMl8mL |
| | | 6t4GfbmOktgyNiebm9V/oR8zvnUvg/XkcyJ3sBq9tjMGNJ5uBPNm8jLat6DzwB1ZNiObmdV/oR8zvnOP |
| | | +4H15rMid7Aavca3nlu0ZqUk7g7rzcjqX0r3YVfzrB/rbIk9CB6zrhV0Rj4vcger8dYWzFdL4kJntlQ8 |
| | | L2PHYVcyrRfrbIk9CB5z/lGPqWey+4xKLMPfTZYXMJ9pPLS3kgVP1vcSdh20mgufLRlTIpo5tQftU8vV |
| | | 946U9twDBNYDmM00M6xvJaPi/XF2HbT6I2ifLhlTIpo5tQftU8vV9x7djWluJeM7rAf0bKZjQK892Ywb |
| | | Fc/L2H3Yn/gx1vfQD3pX1RjdDX1bMv4m0sc301m0VuvtOkLF8zJ2H9bLx7yjJLIAe9jdVWN0N9v3dHZm |
| | | eyMd0HNotFb3o1Q8L2P3Yb18zDtKIv8oRnez/ZHuBmasRPLk132gZ0yn+1Eqnpex+7Befsf+HRnvyuhu |
| | | tj/S3cCMlUi+YRpdIruj1zMdI6p7G3Yf2Mvv2L8j410Z3c32R7oqyPNK5N/MZiCieTt2H9jL79i/I+Nd |
| | | wd1GJbL232AlD16WMeq/PbsP7eV37N+R8a7gbtES2zIsu6Mk/vPYfQEvv2P/jox35VV3w747Srb4LNhF |
| | | dpRsd4FpT11Lfq7Dq2B/lB0l211g2lPXkp/rcDgcDofD4XDo59ev/wCH1gwMrIUxXgAAAABJRU5ErkJg |
| | | gg== |
| | | </value> |
| | | </data> |
| | | <data name="lb_crn2.BackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
| | | <value> |
| | | iVBORw0KGgoAAAANSUhEUgAAAMoAAAA4CAYAAAC8P2e6AAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO |
| | | wwAADsMBx2+oZAAABudJREFUeF7tkw1yYykMhOfoe7S52e7aUceyXoN+ELE9w1elqofU3YBDfh0Oh8Ph |
| | | cDgcDh/I79+///1bSq58OORhD+pPLbny4ZDnb3hE5x/lsMz5R/kCmpWSqMNPw/4YkRJ7iIrnk9C/y+6S |
| | | LSlM31myzfvBDttREr+ULxEhKp5PQf8m0RJriohfa3aUbPN+sMN2lMSXHrDOYSWyJ2azTydzt5XfAd6Z |
| | | fyV/xq7cNjoPiCxWIgkBvc1A3UWG2ezTydwN2pWSKEpEU2FXbhudB0SWztO9SknMHTa3JdI/CnbPnSXb |
| | | UiKaCrty2+g8ILJsnu5nSyLusLlXYg3yz//63RWH3WdUWm+/GZjPNIyKJ8Ku3Da6D8jyvD2iHtYbkdE+ |
| | | YA+7u+JE7qA1o+8bWHeVxLaxK7eN7gOyPG+PqIf1RmS0D2oP2qeWG7mD1oy+b2DdVRLbxq7cNroPyPK8 |
| | | PaIe1huR0T6oPWifWm7kDloz+r6B9axEOiWjzbArt43uA7I8b4+oBz1dMrrgzTn6Qece9Zh6JrsDerb0 |
| | | zH7fsOsqXTmWXbltdB8QeaxEcoHNZz1dMrrgzTn6Mecf9hVk6IrD7oCeLT2z3zfsukpXjmVXbhs7DohM |
| | | WzK+wOajnny65/bmHPuY84/7Abzw57PYHWY9PbM9VndzkhXvjF25bew+IPK7SmLdc3tzjn3M+cf9YD2L |
| | | 3WHWy5bYU6x4Z+zKbWP3AW0+1tWSGPfc3pzDHnP+gXflsDtEexatiehHrHhn7MptY/cBbX51v2yON+eM |
| | | HnPmkXdkfMHuEO1ZtCaiH7HinVHKhSlTYk2z6vfQZ9Ql4zDW5+V4c87sMUceOjRMF/E/w+4Q7Vmg0SWj |
| | | FCveGaVc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PLS3kgVP1vcSdh20mgufLRlTIpo5tQftU8vV |
| | | 946U9twDBNYDmM00M6xvJaPi/XF2HbT6I2ifLhlTIpo5tQftU8vV9x7djWluJeM7rAf0bKZjQK892Ywb |
| | | Fc/L2H3Yn/gx1vfQD3pX1RjdDX1bMv4m0sc301m0VuvtOkLF8zJ2H9bLx7yjJLIAe9jdVWN0N9v3dHZm |
| | | eyMd0HNotFb3o1Q8L2P3Yb18zDtKIv8oRnez/ZHuBmasRPLk132gZ0yn+1Eqnpex+7Befsf+HRnvyuhu |
| | | tj/S3cCMlUi+YRpdIruj1zMdI6p7G3Yf2Mvv2L8j410Z3c32R7oqyPNK5N/MZiCieTt2H9jL79i/I+Nd |
| | | wd1GJbL232AlD16WMeq/PbsP7eV37N+R8a7gbtES2zIsu6Mk/vPYfQEvv2P/jox35VV3w747Srb4LNhF |
| | | dpRsd4FpT11Lfq7Dq2B/lB0l211g2lPXkp/rcDgcDofD4XDo59ev/wCH1gwMrIUxXgAAAABJRU5ErkJg |
| | | gg== |
| | | </value> |
| | | </data> |
| | | <data name="lb_crn1.BackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
| | | <value> |
| | | iVBORw0KGgoAAAANSUhEUgAAAMoAAAA4CAYAAAC8P2e6AAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO |
| | | wwAADsMBx2+oZAAABudJREFUeF7tkw1yYykMhOfoe7S52e7aUceyXoN+ELE9w1elqofU3YBDfh0Oh8Ph |
| | | cDgcDh/I79+///1bSq58OORhD+pPLbny4ZDnb3hE5x/lsMz5R/kCmpWSqMNPw/4YkRJ7iIrnk9C/y+6S |
| | | LSlM31myzfvBDttREr+ULxEhKp5PQf8m0RJriohfa3aUbPN+sMN2lMSXHrDOYSWyJ2azTydzt5XfAd6Z |
| | | fyV/xq7cNjoPiCxWIgkBvc1A3UWG2ezTydwN2pWSKEpEU2FXbhudB0SWztO9SknMHTa3JdI/CnbPnSX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hF |
| | | dpRsd4FpT11Lfq7Dq2B/lB0l211g2lPXkp/rcDgcDofD4XDo59ev/wCH1gwMrIUxXgAAAABJRU5ErkJg |
| | | gg== |
| | | </value> |
| | | </data> |
| | | </root> |
| New file |
| | |
| | | namespace WCS |
| | | { |
| | | partial class Form3 |
| | | { |
| | | /// <summary> |
| | | /// Required designer variable. |
| | | /// </summary> |
| | | private System.ComponentModel.IContainer components = null; |
| | | |
| | | /// <summary> |
| | | /// Clean up any resources being used. |
| | | /// </summary> |
| | | /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> |
| | | protected override void Dispose(bool disposing) |
| | | { |
| | | if (disposing && (components != null)) |
| | | { |
| | | components.Dispose(); |
| | | } |
| | | base.Dispose(disposing); |
| | | } |
| | | |
| | | #region Windows Form Designer generated code |
| | | |
| | | /// <summary> |
| | | /// Required method for Designer support - do not modify |
| | | /// the contents of this method with the code editor. |
| | | /// </summary> |
| | | private void InitializeComponent() |
| | | { |
| | | this.components = new System.ComponentModel.Container(); |
| | | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
| | | this.Text = "Form3"; |
| | | } |
| | | |
| | | #endregion |
| | | } |
| | | } |
| New file |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.ComponentModel; |
| | | using System.Data; |
| | | using System.Drawing; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using System.Windows.Forms; |
| | | |
| | | namespace WCS |
| | | { |
| | | public partial class Form3 : Form |
| | | { |
| | | public Form3() |
| | | { |
| | | InitializeComponent(); |
| | | } |
| | | } |
| | | } |
| New file |
| | |
| | | <?xml version="1.0" encoding="utf-8"?> |
| | | <root> |
| | | <!-- |
| | | Microsoft ResX Schema |
| | | |
| | | Version 2.0 |
| | | |
| | | The primary goals of this format is to allow a simple XML format |
| | | that is mostly human readable. The generation and parsing of the |
| | | various data types are done through the TypeConverter classes |
| | | associated with the data types. |
| | | |
| | | Example: |
| | | |
| | | ... ado.net/XML headers & schema ... |
| | | <resheader name="resmimetype">text/microsoft-resx</resheader> |
| | | <resheader name="version">2.0</resheader> |
| | | <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> |
| | | <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> |
| | | <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> |
| | | <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> |
| | | <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> |
| | | <value>[base64 mime encoded serialized .NET Framework object]</value> |
| | | </data> |
| | | <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
| | | <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> |
| | | <comment>This is a comment</comment> |
| | | </data> |
| | | |
| | | There are any number of "resheader" rows that contain simple |
| | | name/value pairs. |
| | | |
| | | Each data row contains a name, and value. The row also contains a |
| | | type or mimetype. Type corresponds to a .NET class that support |
| | | text/value conversion through the TypeConverter architecture. |
| | | Classes that don't support this are serialized and stored with the |
| | | mimetype set. |
| | | |
| | | The mimetype is used for serialized objects, and tells the |
| | | ResXResourceReader how to depersist the object. This is currently not |
| | | extensible. For a given mimetype the value must be set accordingly: |
| | | |
| | | Note - application/x-microsoft.net.object.binary.base64 is the format |
| | | that the ResXResourceWriter will generate, however the reader can |
| | | read any of the formats listed below. |
| | | |
| | | mimetype: application/x-microsoft.net.object.binary.base64 |
| | | value : The object must be serialized with |
| | | : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter |
| | | : and then encoded with base64 encoding. |
| | | |
| | | mimetype: application/x-microsoft.net.object.soap.base64 |
| | | value : The object must be serialized with |
| | | : System.Runtime.Serialization.Formatters.Soap.SoapFormatter |
| | | : and then encoded with base64 encoding. |
| | | |
| | | mimetype: application/x-microsoft.net.object.bytearray.base64 |
| | | value : The object must be serialized into a byte array |
| | | : using a System.ComponentModel.TypeConverter |
| | | : and then encoded with base64 encoding. |
| | | --> |
| | | <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> |
| | | <xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> |
| | | <xsd:element name="root" msdata:IsDataSet="true"> |
| | | <xsd:complexType> |
| | | <xsd:choice maxOccurs="unbounded"> |
| | | <xsd:element name="metadata"> |
| | | <xsd:complexType> |
| | | <xsd:sequence> |
| | | <xsd:element name="value" type="xsd:string" minOccurs="0" /> |
| | | </xsd:sequence> |
| | | <xsd:attribute name="name" use="required" type="xsd:string" /> |
| | | <xsd:attribute name="type" type="xsd:string" /> |
| | | <xsd:attribute name="mimetype" type="xsd:string" /> |
| | | <xsd:attribute ref="xml:space" /> |
| | | </xsd:complexType> |
| | | </xsd:element> |
| | | <xsd:element name="assembly"> |
| | | <xsd:complexType> |
| | | <xsd:attribute name="alias" type="xsd:string" /> |
| | | <xsd:attribute name="name" type="xsd:string" /> |
| | | </xsd:complexType> |
| | | </xsd:element> |
| | | <xsd:element name="data"> |
| | | <xsd:complexType> |
| | | <xsd:sequence> |
| | | <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
| | | <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> |
| | | </xsd:sequence> |
| | | <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> |
| | | <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> |
| | | <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> |
| | | <xsd:attribute ref="xml:space" /> |
| | | </xsd:complexType> |
| | | </xsd:element> |
| | | <xsd:element name="resheader"> |
| | | <xsd:complexType> |
| | | <xsd:sequence> |
| | | <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
| | | </xsd:sequence> |
| | | <xsd:attribute name="name" type="xsd:string" use="required" /> |
| | | </xsd:complexType> |
| | | </xsd:element> |
| | | </xsd:choice> |
| | | </xsd:complexType> |
| | | </xsd:element> |
| | | </xsd:schema> |
| | | <resheader name="resmimetype"> |
| | | <value>text/microsoft-resx</value> |
| | | </resheader> |
| | | <resheader name="version"> |
| | | <value>2.0</value> |
| | | </resheader> |
| | | <resheader name="reader"> |
| | | <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
| | | </resheader> |
| | | <resheader name="writer"> |
| | | <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
| | | </resheader> |
| | | </root> |
| New file |
| | |
| | | namespace WCS |
| | | { |
| | | partial class Form4 |
| | | { |
| | | /// <summary> |
| | | /// Required designer variable. |
| | | /// </summary> |
| | | private System.ComponentModel.IContainer components = null; |
| | | |
| | | /// <summary> |
| | | /// Clean up any resources being used. |
| | | /// </summary> |
| | | /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> |
| | | protected override void Dispose(bool disposing) |
| | | { |
| | | if (disposing && (components != null)) |
| | | { |
| | | components.Dispose(); |
| | | } |
| | | base.Dispose(disposing); |
| | | } |
| | | |
| | | #region Windows Form Designer generated code |
| | | |
| | | /// <summary> |
| | | /// Required method for Designer support - do not modify |
| | | /// the contents of this method with the code editor. |
| | | /// </summary> |
| | | private void InitializeComponent() |
| | | { |
| | | this.SuspendLayout(); |
| | | // |
| | | // Form4 |
| | | // |
| | | this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); |
| | | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
| | | this.ClientSize = new System.Drawing.Size(1325, 753); |
| | | this.Name = "Form4"; |
| | | this.Text = "Form4"; |
| | | this.ResumeLayout(false); |
| | | |
| | | } |
| | | |
| | | #endregion |
| | | |
| | | |
| | | |
| | | } |
| | | } |
| New file |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.ComponentModel; |
| | | using System.Data; |
| | | using System.Drawing; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using System.Windows.Forms; |
| | | |
| | | namespace WCS |
| | | { |
| | | public partial class Form4 : Form |
| | | { |
| | | public Form4() |
| | | { |
| | | InitializeComponent(); |
| | | } |
| | | } |
| | | } |
| New file |
| | |
| | | <?xml version="1.0" encoding="utf-8"?> |
| | | <root> |
| | | <!-- |
| | | Microsoft ResX Schema |
| | | |
| | | Version 2.0 |
| | | |
| | | The primary goals of this format is to allow a simple XML format |
| | | that is mostly human readable. The generation and parsing of the |
| | | various data types are done through the TypeConverter classes |
| | | associated with the data types. |
| | | |
| | | Example: |
| | | |
| | | ... ado.net/XML headers & schema ... |
| | | <resheader name="resmimetype">text/microsoft-resx</resheader> |
| | | <resheader name="version">2.0</resheader> |
| | | <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> |
| | | <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> |
| | | <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> |
| | | <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> |
| | | <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> |
| | | <value>[base64 mime encoded serialized .NET Framework object]</value> |
| | | </data> |
| | | <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
| | | <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> |
| | | <comment>This is a comment</comment> |
| | | </data> |
| | | |
| | | There are any number of "resheader" rows that contain simple |
| | | name/value pairs. |
| | | |
| | | Each data row contains a name, and value. The row also contains a |
| | | type or mimetype. Type corresponds to a .NET class that support |
| | | text/value conversion through the TypeConverter architecture. |
| | | Classes that don't support this are serialized and stored with the |
| | | mimetype set. |
| | | |
| | | The mimetype is used for serialized objects, and tells the |
| | | ResXResourceReader how to depersist the object. This is currently not |
| | | extensible. For a given mimetype the value must be set accordingly: |
| | | |
| | | Note - application/x-microsoft.net.object.binary.base64 is the format |
| | | that the ResXResourceWriter will generate, however the reader can |
| | | read any of the formats listed below. |
| | | |
| | | mimetype: application/x-microsoft.net.object.binary.base64 |
| | | value : The object must be serialized with |
| | | : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter |
| | | : and then encoded with base64 encoding. |
| | | |
| | | mimetype: application/x-microsoft.net.object.soap.base64 |
| | | value : The object must be serialized with |
| | | : System.Runtime.Serialization.Formatters.Soap.SoapFormatter |
| | | : and then encoded with base64 encoding. |
| | | |
| | | mimetype: application/x-microsoft.net.object.bytearray.base64 |
| | | value : The object must be serialized into a byte array |
| | | : using a System.ComponentModel.TypeConverter |
| | | : and then encoded with base64 encoding. |
| | | --> |
| | | <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> |
| | | <xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> |
| | | <xsd:element name="root" msdata:IsDataSet="true"> |
| | | <xsd:complexType> |
| | | <xsd:choice maxOccurs="unbounded"> |
| | | <xsd:element name="metadata"> |
| | | <xsd:complexType> |
| | | <xsd:sequence> |
| | | <xsd:element name="value" type="xsd:string" minOccurs="0" /> |
| | | </xsd:sequence> |
| | | <xsd:attribute name="name" use="required" type="xsd:string" /> |
| | | <xsd:attribute name="type" type="xsd:string" /> |
| | | <xsd:attribute name="mimetype" type="xsd:string" /> |
| | | <xsd:attribute ref="xml:space" /> |
| | | </xsd:complexType> |
| | | </xsd:element> |
| | | <xsd:element name="assembly"> |
| | | <xsd:complexType> |
| | | <xsd:attribute name="alias" type="xsd:string" /> |
| | | <xsd:attribute name="name" type="xsd:string" /> |
| | | </xsd:complexType> |
| | | </xsd:element> |
| | | <xsd:element name="data"> |
| | | <xsd:complexType> |
| | | <xsd:sequence> |
| | | <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
| | | <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> |
| | | </xsd:sequence> |
| | | <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> |
| | | <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> |
| | | <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> |
| | | <xsd:attribute ref="xml:space" /> |
| | | </xsd:complexType> |
| | | </xsd:element> |
| | | <xsd:element name="resheader"> |
| | | <xsd:complexType> |
| | | <xsd:sequence> |
| | | <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
| | | </xsd:sequence> |
| | | <xsd:attribute name="name" type="xsd:string" use="required" /> |
| | | </xsd:complexType> |
| | | </xsd:element> |
| | | </xsd:choice> |
| | | </xsd:complexType> |
| | | </xsd:element> |
| | | </xsd:schema> |
| | | <resheader name="resmimetype"> |
| | | <value>text/microsoft-resx</value> |
| | | </resheader> |
| | | <resheader name="version"> |
| | | <value>2.0</value> |
| | | </resheader> |
| | | <resheader name="reader"> |
| | | <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
| | | </resheader> |
| | | <resheader name="writer"> |
| | | <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
| | | </resheader> |
| | | </root> |
| New file |
| | |
| | | using System; |
| | | using System.Collections.Specialized; |
| | | using System.IO; |
| | | using System.Net; |
| | | using System.Reflection; |
| | | using System.Text; |
| | | |
| | | namespace WCS |
| | | { |
| | | public class HttpPostHelper |
| | | { |
| | | public static string Post(string url, string postData) |
| | | { |
| | | return Post(url, postData, "application/x-www-form-urlencoded"); |
| | | } |
| | | |
| | | public static string Post(string url, string postData, string contentType) |
| | | { |
| | | HttpWebRequest request = (HttpWebRequest) WebRequest.Create(url); |
| | | request.ContentType = contentType; |
| | | request.Method = "POST"; |
| | | request.Timeout = 300000; |
| | | |
| | | byte[] bytes = Encoding.UTF8.GetBytes(postData); |
| | | request.ContentLength = bytes.Length; |
| | | Stream writer = request.GetRequestStream(); |
| | | writer.Write(bytes, 0, bytes.Length); |
| | | writer.Close(); |
| | | |
| | | HttpWebResponse response = (HttpWebResponse) request.GetResponse(); |
| | | StreamReader reader = new StreamReader(response.GetResponseStream(), Encoding.UTF8); |
| | | string result = reader.ReadToEnd(); |
| | | response.Close(); |
| | | return result; |
| | | } |
| | | |
| | | public static string Post(string url, string postData, string userName, string password) |
| | | { |
| | | HttpWebRequest request = (HttpWebRequest) WebRequest.Create(url); |
| | | request.ContentType = "text/html; charset=UTF-8"; |
| | | request.Method = "POST"; |
| | | |
| | | string usernamePassword = userName + ":" + password; |
| | | CredentialCache credentialCache = |
| | | new CredentialCache {{new Uri(url), "Basic", new NetworkCredential(userName, password)}}; |
| | | request.Credentials = credentialCache; |
| | | request.Headers.Add("Authorization", |
| | | "Basic " + Convert.ToBase64String(new ASCIIEncoding().GetBytes(usernamePassword))); |
| | | |
| | | byte[] bytes = Encoding.UTF8.GetBytes(postData); |
| | | request.ContentLength = bytes.Length; |
| | | Stream writer = request.GetRequestStream(); |
| | | writer.Write(bytes, 0, bytes.Length); |
| | | writer.Close(); |
| | | |
| | | HttpWebResponse response = (HttpWebResponse) request.GetResponse(); |
| | | StreamReader reader = new StreamReader(response.GetResponseStream(), Encoding.ASCII); |
| | | string result = reader.ReadToEnd(); |
| | | response.Close(); |
| | | return result; |
| | | } |
| | | |
| | | //static CookieContainer cookie = new CookieContainer(); |
| | | |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | /// <param name="url">请æ±çservletå°åï¼ä¸å¸¦åæ°</param> |
| | | /// <param name="postData"></param> |
| | | /// <returns>请æ±çåæ°ï¼key=value&key1=value1</returns> |
| | | public static string doHttpPost(string url, string postData) |
| | | { |
| | | HttpWebRequest request = (HttpWebRequest) WebRequest.Create(url); |
| | | SetHeaderValue(request.Headers, "Content-Type", "application/json"); |
| | | SetHeaderValue(request.Headers, "Accept", "application/json"); |
| | | SetHeaderValue(request.Headers, "Accept-Charset", "utf-8"); |
| | | request.Method = "POST"; |
| | | request.Timeout = 5000; |
| | | |
| | | byte[] bytes = Encoding.UTF8.GetBytes(postData); |
| | | request.ContentLength = bytes.Length; |
| | | Stream writer = request.GetRequestStream(); |
| | | writer.Write(bytes, 0, bytes.Length); |
| | | writer.Close(); |
| | | |
| | | HttpWebResponse response = (HttpWebResponse) request.GetResponse(); |
| | | StreamReader reader = new StreamReader(response.GetResponseStream(), Encoding.UTF8); |
| | | string result = reader.ReadToEnd(); |
| | | response.Close(); |
| | | return result; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// å¶åæ§è¶
æ¶æ¶è¯çç |
| | | /// </summary> |
| | | /// <param name="url"></param> |
| | | /// <param name="postData"></param> |
| | | /// <returns></returns> |
| | | public static string HttpPostForTimeOut(string url, string postData) |
| | | { |
| | | //System.Diagnostics.Stopwatch watch = new System.Diagnostics.Stopwatch(); |
| | | //watch.Start(); |
| | | GC.Collect(); |
| | | HttpWebRequest request = (HttpWebRequest) WebRequest.Create(url); |
| | | request.Method = "POST"; |
| | | request.ContentType = "application/json"; |
| | | //request.ContentLength = Encoding.UTF8.GetByteCount(postDataStr); |
| | | //int a = Encoding.UTF8.GetByteCount(postData); |
| | | request.Timeout = 20 * 600 * 1000; |
| | | |
| | | |
| | | ServicePointManager.Expect100Continue = false; |
| | | ServicePointManager.DefaultConnectionLimit = 200; |
| | | |
| | | request.KeepAlive = false; |
| | | request.ProtocolVersion = HttpVersion.Version10; |
| | | |
| | | Stream myRequestStream = request.GetRequestStream(); |
| | | StreamWriter myStreamWriter = new StreamWriter(myRequestStream, Encoding.GetEncoding("utf-8")); //妿JSONæä¸æåæ¯UTF-8 |
| | | myStreamWriter.Write(postData); |
| | | myStreamWriter.Close(); //请æ±ä¸æ¢,æ¯å 为é¿åº¦ä¸å¤,è¿æ²¡åå®å°±å
³éäº. |
| | | |
| | | HttpWebResponse response = (HttpWebResponse) request.GetResponse(); |
| | | //watch.Stop(); //忢çè§ |
| | | //TimeSpan timespan = watch.Elapsed; //è·åå½åå®ä¾æµéå¾åºçæ»æ¶é´ |
| | | //System.Diagnostics.Debug.WriteLine("æå¼çªå£ä»£ç æ§è¡æ¶é´ï¼{0}(毫ç§)", timespan.TotalMinutes); //æ»æ¯«ç§æ° |
| | | |
| | | Stream myResponseStream = response.GetResponseStream(); |
| | | StreamReader myStreamReader = new StreamReader(myResponseStream, Encoding.GetEncoding("utf-8")); |
| | | string registerResult = myStreamReader.ReadToEnd(); |
| | | myStreamReader.Close(); |
| | | myResponseStream.Close(); |
| | | return registerResult; |
| | | } |
| | | |
| | | public static void SetHeaderValue(WebHeaderCollection header, string name, string value) |
| | | { |
| | | var property = typeof(WebHeaderCollection).GetProperty("InnerCollection", BindingFlags.Instance | BindingFlags.NonPublic); |
| | | if (property != null) |
| | | { |
| | | var collection = property.GetValue(header, null) as NameValueCollection; |
| | | collection[name] = value; |
| | | } |
| | | } |
| | | |
| | | } |
| | | } |
| New file |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading; |
| | | using System.Windows.Forms; |
| | | using System.Net; |
| | | using System.Net.Sockets; |
| | | using DevComponents.DotNetBar; |
| | | using System.Runtime.InteropServices; |
| | | using System.IO; |
| | | |
| | | namespace WCS |
| | | { |
| | | /// <summary> |
| | | /// LEDçº¿ç¨ |
| | | /// </summary> |
| | | class LedThread |
| | | { |
| | | #region åå§åå±å¹ä½¿ç¨ç¸å
³æ¥å£ |
| | | //æå®äºä»£æ§å¶å¨ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_Bx5G(uint* Bx5g); |
| | | |
| | | //æå®å
代æ§å¶å¨ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_Bx6G(uint* Bx6g); |
| | | |
| | | //å建客æ·ç«¯ï¼éç¨äºåºå®IPé讯 |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_BxScreenClient(uint* screen); |
| | | |
| | | //å建客æ·ç«¯ï¼éç¨äºåºå®IPé讯 |
| | | //screenname - å±å¹åç§° |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_BxScreenClient2(uint* screen, string screenname); |
| | | |
| | | //å建客æ·ç«¯ï¼éç¨äºåºå®IPé讯 |
| | | // screenname - å±å¹åç§° |
| | | // Bx - æå®Bxç³»åï¼å¯ä»¥æ¯Bx5gæè
Bx6g |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_BxScreenClient3(uint* screen, string screenname, uint Bx); |
| | | |
| | | //å建客æ·ç«¯ï¼éç¨äºä¸²å£é讯 |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_BxScreenRS(uint* screen); |
| | | |
| | | //å建客æ·ç«¯ï¼éç¨äºä¸²å£é讯 |
| | | // screenname - å±å¹åç§° |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_BxScreenRS2(uint* screen, string screenname); |
| | | |
| | | //å建客æ·ç«¯ï¼éç¨äºæå¡å¨æ¨¡å¼ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_BxServer(uint* server); |
| | | |
| | | //å建客æ·ç«¯ï¼éç¨äºæå¡å¨æ¨¡å¼ |
| | | // aliasname - åç§° |
| | | // port - 端å£å· |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_BxServer2(uint* server, string alisaname, ushort port); |
| | | |
| | | //å建客æ·ç«¯ï¼éç¨äºæå¡å¨æ¨¡å¼ |
| | | // aliasname - åç§° |
| | | // port - 端å£å· |
| | | // Bx - æå®æ§å¶ç±»å |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_BxServer3(uint* server, string aliasname, ushort port, uint Bx); |
| | | |
| | | //å建çå¬ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_BxServerListener(uint* listener); |
| | | |
| | | //设置8ä½è®¿é®å¯ç |
| | | // password - 8ä½è®¿é®å¯ç |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int ServerSetting_setAccessPassword(uint server, string password); |
| | | |
| | | //设置12ä½èªå®ä¹ID |
| | | // customid - èªå®ä¹ID |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int ServerSetting_setCustomID(uint server, string custonid); |
| | | |
| | | //设置å¿è·³æ¶é´é´é |
| | | // time - å¿è·³æ¶é´é´é |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int ServerSetting_setHeartBeatInterval(uint server, ushort time); |
| | | |
| | | //设置IP |
| | | // ip - IP |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int ServerSetting_setIP(uint server, byte* ip); |
| | | |
| | | //è®¾ç½®æ¨¡å¼ |
| | | // mode - æ¨¡å¼ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int ServerSetting_setMode(uint server, byte mode); |
| | | |
| | | //è®¾ç½®ç«¯å£ |
| | | // port - ç«¯å£ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int ServerSetting_setPort(uint server, ushort port); |
| | | |
| | | //åå»ºè¿æ¥ç¸å
³æ¥å£ |
| | | |
| | | // ledip - æ§å¶å¨IPå°å |
| | | // ledport - æ§å¶å¨ç«¯å£å· 5005 |
| | | // result - æ¯å¦ä¸ºtcpé讯ï¼true - tcp false - udp |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxScreenClient_connect(uint screen, string ledip, int ledport, bool result); |
| | | |
| | | //å徿§å¶å¨IPå°å |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxScreenClient_getAddress(uint* ledip, uint screen); |
| | | |
| | | //å徿§å¶å¨ç«¯å£å· |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxScreenClient_getPort(int* ledport, uint screen); |
| | | |
| | | //åå¾å½åå±å¹è§æ ¼ãå±å¹è§æ ¼å¨è¿çº¿æååèªå¨ä»æ§å¶å¨ä¸è·åï¼è¥æ§å¶å¨æªå è½½å±åæ¶åå¤ NULLã |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxScreen_getProfile(uint* profile, uint screen); |
| | | |
| | | // comport - 串å£å· ä¾å¦ï¼COM1 |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxScreenRS_connect(uint screen, string comport); |
| | | |
| | | // conport - 串å£å· ä¾å¦ï¼COM1 |
| | | // baudrate - æ³¢ç¹ç ä¾å¦ï¼ 9600 ,57600 |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxScreenRS_connect2(uint screen, string comport, int baudrate); |
| | | |
| | | //å徿³¢ç¹ç |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxScreenRS_getBaudrate(int* baudrate, uint screen); |
| | | |
| | | //åå¾ä¸²å£å· |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxScreenRS_getComPort(uint* comport, uint screen); |
| | | |
| | | //èç®ç¸å
³æ¥å£ |
| | | //å建èç® |
| | | // programid - èç®ç¼å·ç»ï¼0-999 |
| | | // screenprofile - å±å¹è§æ ¼ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_ProgramBxFile(uint* program, int programid, uint screenprofile); |
| | | |
| | | //å建èç® |
| | | // programname - èç®åç§°ï¼é¿åº¦ä¸ºåï¼ç¬¬ä¸ç 为Pï¼åä¸ä½ä¸ºæ°åï¼ä¾å¦P001 |
| | | // screenprofile - å±å¹è§æ ¼ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_ProgramBxFile2(uint* program, string programname, uint screenprofile); |
| | | |
| | | //å建èç® |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_ProgramDataBxFile(uint* programdata, string programname, uint srceenprofile); |
| | | |
| | | //å建èç® |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_ProgramDataBxFile2(uint* programdata, string progamname, uint screenprofile, int programid); |
| | | |
| | | //éå®èç® |
| | | // programname - èç®åç§° |
| | | // locked - æ¯å¦éå® true ï¼ éå® false è§£é |
| | | // lockduration - é宿¶é´ 以s为åä½ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_ProgramLockCmd(uint* programlock, string programname, bool locked, uint lockduration); |
| | | |
| | | //éå®èç® |
| | | // programname - èç®åç§° |
| | | // locked - æ¯å¦éå® trueï¼ éå® false è§£é |
| | | // lockduration - é宿¶é´ 以s为åä½ |
| | | // nonvolatile - æçµä¿åæ¹å¼ 0X00ï¼æçµä¸ä¿å 0X01ï¼æçµä¿å |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_ProgramLockCmd2(uint* programlock, string progamname, bool locked, uint lockduration, byte nonvolatile); |
| | | |
| | | //èç®ææ¾çææå±æ§ |
| | | // mon -biy1å°bit7便¬¡ä»£è¡¨å¨ä¸å°å¨æ¥ |
| | | [DllImport("onbon.apo.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_ProgramWeek(uint* programweek, byte mon); |
| | | |
| | | //èç®ä¸æ·»å åºå |
| | | // area - åºå |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int ProgramBxFile_addArea(uint program, uint area); |
| | | |
| | | //å¢å èç®ææ¾æ¶é´æ®µ |
| | | // starthour - å¼å§ææ¾å°æ¶ |
| | | // startminute - å¼å§ææ¾åé |
| | | // startsecond - å¼å§ææ¾ç§ |
| | | // endhour - ç»æææ¾å°æ¶ |
| | | // endminute - ç»æææ¾åé |
| | | // endsecond - ç»æææ¾ç§ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int ProgramBxFile_addPlayPeriodSetting(uint program, byte strathour, byte startminute, byte startsecond, byte endhour, byte endminute, byte endsecond); |
| | | |
| | | //åå¾åºåæ»æ° |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int ProgramBxFile_getAreaCount(int* areacount, uint program); |
| | | |
| | | //å徿æ¾ç»ææ¥ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int ProgramBxFile_getEndDay(int* endday, uint program); |
| | | |
| | | //åå¾ç»æææ¾æ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int ProgramBxFile_getEndMonth(int* endmonth, uint program); |
| | | |
| | | //åå¾ç»æææ¾å¹´ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int ProgamBxFile_getEndYear(int* endyear, uint program); |
| | | |
| | | //å徿件åç§° |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int ProgramBxFile_getFileName(uint program); |
| | | |
| | | //åå¾è¾¹æ¡ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int ProgramBxFile_getFrame(uint* frame, uint program); |
| | | |
| | | //åå¾èç®ç级 0ï¼ä¸è¬ 1ï¼ ä¼å
|
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int ProgramBxFile_getPriority(byte* programpriority, uint program); |
| | | |
| | | //å徿æ¾é夿¬¡æ° |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int ProgramBxFile_getProgramPlayTimes(int* times, uint progam); |
| | | |
| | | //åå¾èç®ææ¾æ¶é´é¿åº¦ï¼åä½ä¸ºsï¼å½æ§å¶å¨ä¸æå¤ä¸ªèç®æ¶ï¼ä¼æ ¹æ®æ¤è®¾å®æ§å¶èç®è¢«ææ¾çæ¶é´é¿ï¼å½æ§å¶å¨ä¸åªæä¸ä¸ªèç®æ¶ï¼æ¤è®¾å®æ²¡æææãæ§å¶èç®ææ¾æææ¶é´ï¼å¯ä»¥å©ç¨addPlayPeriosSettingè§å |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int ProgramBxFile_getProgramTimeSpan(int* timespan, uint program); |
| | | |
| | | //å徿æ¾å¨è®¾å® |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int ProgramBxFile_getProgramWeek(uint* week, uint program); |
| | | |
| | | //åå¾å¼å§ææ¾æ¥ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int ProgramBxFile_getStartDay(int* startday, uint program); |
| | | |
| | | //åå¾å¼å§ææ¾æ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int ProgramBxFile_getStartMonth(int* startmonth, uint program); |
| | | |
| | | //åå¾å¼å§ææ¾å¹´ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int ProgramBxFile_getStartYear(int* startyear, uint program); |
| | | |
| | | //设å®ç»æææ¾æ¥ |
| | | // endday - ç»æææ¾æ¥ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int ProgramBxFile_setEndDay(uint program, byte endday); |
| | | |
| | | //设å®ç»æææ¾æä»½ |
| | | // endmonth - ç»æææ¾æä»½ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int ProgramBxFile_setEndMonth(uint program, byte endmonth); |
| | | |
| | | //设å®ç»æææ¾å¹´ |
| | | // endyear - ç»æææ¾å¹´ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int ProgramBxFile_setEndYear(uint program, ushort endyear); |
| | | |
| | | //设å®èç®ç级 |
| | | // priority - èç®ç级 0ï¼ ä¸è¬ 1ï¼ ä¼å
|
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int ProgramBxFile_setPriority(uint program, byte priority); |
| | | |
| | | //设å®éå¤ææ¾æ¬¡æ° |
| | | // programplaytiesm - éå¤ææ¾æ¬¡æ° |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int ProgramBxFile_setProgramPlayTimes(uint program, int programplaytimes); |
| | | |
| | | //设å®èç®ææ¾æ¶é´é¿åº¦ï¼åä½ä¸ºsï¼0ï¼å¾ªç¯ææ¾ã彿§å¶å¨ä¸æå¤ä¸ªèç®æ¶ï¼ä¼æ ¹æ®æ¤è®¾å®æ§å¶èç®è¢«ææ¾çæ¶é´é¿ |
| | | //彿§å¶å¨ä¸åªæä¸ä¸ªèç®æ¶ï¼æ¤è®¾å®æ æã |
| | | //æ§å¶å¨èç®ææ¾æææ¶é´ï¼å¯å©ç¨addPlayPeriosSettingè§å |
| | | // programtimespan - èç®ææ¾æ¶é´é¿åº¦ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int ProgramBxFile_setProgramTimeSpan(uint program, int programtimespan); |
| | | |
| | | //è®¾ç½®ææ¾å¨ |
| | | // programweek - ææ¾å¨ å¨æ¥å£Create_ProgramWeekä¸å建 |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int ProgramBxFile_setProgramWeek(uint program, uint programweek); |
| | | |
| | | //设å®å¼å§ææ¾æ¥ |
| | | // startday - å¼å§ææ¾æ¥ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int ProgramBxFile_setStartDay(uint program, byte startday); |
| | | |
| | | //设å®å¼å§ææ¾æä»½ |
| | | // startmonth - å¼å§ææ¾æä»½ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int ProgramBxFile_setStartMonth(uint program, byte startmonth); |
| | | |
| | | //设å®å¼å§ææ¾å¹´ |
| | | // startyear - å¼å§ææ¾å¹´ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int ProgramBxFile_setStartYear(uint program, ushort startyear); |
| | | |
| | | //åå¾å½ååç§»é |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int ProgramDataBxFile_getCurrentOffset(int* currentoffset, uint programdata); |
| | | |
| | | //å徿件åç§° |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int ProgramDataBxFile_getFileName(uint programdata); |
| | | |
| | | // |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int ProgramDataBxFile_reset(uint programdata, int reset); |
| | | |
| | | //å
¨å¨ææ¾ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int ProgramWeek_All(uint program); |
| | | |
| | | //å
¨å¨åæ¶ææ¾ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int ProgramWeek_Off(uint program); |
| | | |
| | | //åºåç¸å
³æ¥å£ |
| | | //åå»ºå¾æåºå |
| | | // x - xåæ |
| | | // y - yåæ |
| | | // width - åºå宽度 |
| | | // screenprofile - å±å¹è§æ ¼ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_TextCaptionBxArea(uint* textarea, int x, int y, int width, int heigth, uint screenprofile); |
| | | |
| | | //åå¾å¾æåºéæåº¦ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int TextCaptionBxArea_getTransparency(uint* transparency, uint textarea); |
| | | |
| | | //æ¯å¦æ¾ç¤ºèæ¯ |
| | | // isbackgroundflag - èæ¯æ¯å¦æ¾ç¤º trueï¼ æ¾ç¤º flase :䏿¾ç¤º |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int TextCaptionBxArea_isBackgroundFlag(bool* isbackgroundflag, uint textarea); |
| | | |
| | | //æ¾ç¤ºè¢«èæ¯é®ç½©çé¨å |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int TextCaptionBxArea_maskByBackground(uint textarea); |
| | | |
| | | //ä¸èæ¯éå æ¾ç¤º |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int TextCaptionBxArea_overlayWithBackfround(uint textarea); |
| | | |
| | | //è®¾å®æ¯å¦æ¾ç¤ºèæ¯ |
| | | // isbackgroundflag - æ¯å¦æ¾ç¤ºèæ¯ trueï¼æ¾ç¤º flase ï¼ä¸æ¾ç¤º |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int TextCaptionBxArea_setBackgroundFlag(uint textarea, bool isbackgroundflag); |
| | | |
| | | //设å®éæåº¦ |
| | | // transparency - éæåº¦ å½è¯¥å¼å¤§äºçäº0ï¼ä¸éæï¼å°äºçäº100ï¼å
¨éæï¼æ¶ï¼ä»¥è¯¥å京åºå为åºå |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int TextCaptionBxArea_setTransparency(uint textarea, int transparency); |
| | | |
| | | //å¢å å¾ç |
| | | // filepath - å¾ççè·¯å¾åå¾çåç§° ä¾å¦ï¼"D:/a/å¾ç.bmp" |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int AbstractTextCaptionBxArea_addImageFile(uint* imagefile, uint textarea, string filepath); |
| | | |
| | | //å å
¥é¡µé¢ |
| | | // page - é¡µé¢ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int AbstractTextCaptionBxArea_addPage(uint area, uint page); |
| | | |
| | | //å¢å æåå
容 |
| | | // text - æåå
容 |
| | | // font - åå |
| | | // foreground - æåé¢è² |
| | | // background - èæ¯é¢è² |
| | | // style - 徿åºé¡µé¢ææ¾æ ·å¼ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int AbstractTextCaptionBxArea_addText(uint* addedtext, uint textarea, string text, uint font, uint foreground, uint background, uint style); |
| | | |
| | | //å¢å ææ¬ |
| | | // filepath - 纯æåææ¡£ |
| | | // font - åå |
| | | // foreground - æåé¢è² |
| | | // background - èæ¯é¢è² |
| | | // style - 徿åºé¡µé¢ææ¾æ ·å¼ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int AbstractTextCaptionBxArea_addTextFile(uint* addedtextfile, uint textarea, string filepath, uint font, uint foreground, uint background, uint style); |
| | | |
| | | // æ¸
餿æé¡µé¢ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int AbstractTextCaptionBxArea_clearPages(uint textarea); |
| | | |
| | | //å建åºå |
| | | // x - xåæ |
| | | // y - yåæ |
| | | // width - åºå宽度 |
| | | // heigth - åºåé«åº¦ |
| | | // screenprofile - å±å¹è§æ ¼ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_BxArea(uint* area, int x, int y, int width, int heigth, uint screenprofile); |
| | | |
| | | //åå¾åå |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxArea_getFont(uint* font, uint area); |
| | | |
| | | //åå¾è¾¹æ¡ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxArea_getFrame(uint* frame, uint area); |
| | | |
| | | //åå¾é«åº¦ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxArea_getHeigth(ushort* heigth, uint area); |
| | | |
| | | //åå¾å±å¹è§æ ¼ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxArea_getScreenProfile(uint* screenprofile, uint area); |
| | | |
| | | //åå¾å±å¹å®½åº¦ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxArea_getWidth(ushort* width, uint area); |
| | | |
| | | //åå¾Xåæ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxArea_getX(ushort* X, uint area); |
| | | |
| | | //åå¾Yåæ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxArea_getY(ushort* Y, uint area); |
| | | |
| | | //设å®åå |
| | | // font - åå |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxArea_setFont(uint area, uint font); |
| | | |
| | | // |
| | | // |
| | | // |
| | | // |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxArea_validate(bool* validate, uint area, int p1, int p2, int p3); |
| | | |
| | | //å建æ¶é´åº |
| | | // x - xåæ |
| | | // y - yåæ |
| | | // width - æ¶é´åºå®½åº¦ |
| | | // heigth - æ¶é´åºé«åº¦ |
| | | // screenprofile - å±å¹è§æ ¼ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_DateTimeBxArea(uint* datetimearea, int x, int y, int width, int heigth, uint profile); |
| | | |
| | | //å建æ¶é´åº |
| | | // x - xåæ |
| | | // y - yåæ |
| | | // screenprofile - å±å¹è§æ ¼ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_DateTimeBxArea2(uint* datetimearea, int x, int y, uint profile); |
| | | |
| | | //å建天åå
|
| | | // x - xåæ |
| | | // y - yåæ |
| | | // profile - å±å¹è§æ ¼ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_DayBxUnit(uint* dayunit, int x, int y, uint profile); |
| | | |
| | | //å建天åå
|
| | | // x - xåæ |
| | | // y - yåæ |
| | | // profile - å±å¹è§æ ¼ |
| | | // mode - æ¾ç¤ºå
容类å |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_DayBxUnit2(uint* dayunit, int x, int y, uint profile, int mode); |
| | | |
| | | //å徿¾ç¤ºç±»å |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int DayBxUnit_getMode(int* mode, uint dayunit); |
| | | |
| | | //è®¾å®æ¾ç¤ºç±»å |
| | | // mode - æ¾ç¤ºç±»å 0: æ°å 1 - 30ã 1: åååä¸ ~ ä¸å |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int DayBxUnit_setMode(uint dayunit, int mode); |
| | | |
| | | //å建æåå
|
| | | // x - xåæ |
| | | // y - yåæ |
| | | // profile - å±å¹è§æ ¼ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_MonthBxUnit(uint* monthunit, int x, int y, uint profile); |
| | | |
| | | //å建æåå
|
| | | // x - xåæ |
| | | // y - yåæ |
| | | // profile - å±å¹è§æ ¼ |
| | | // mode - æ¾ç¤ºå
容类å |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_MonthBxUnit2(uint* monthunit, int x, int y, uint profile, int mode); |
| | | |
| | | //å徿¾ç¤ºç±»å |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int MonthBxUnit_getMode(int* mode, uint monthunit); |
| | | |
| | | //è®¾å®æ¾ç¤ºç±»å |
| | | // mode - æ¾ç¤ºç±»å 0: æ°åã01 ~12ã 1: æåã䏿 ~ åäºæã 2: ååæãæ£æ ~ è
æã |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int MonthBxUnit_setMode(uint monthunit, int mode); |
| | | |
| | | //å建年åå
|
| | | // x - xåæ |
| | | // y - yåæ |
| | | // profile - å±å¹è§æ ¼ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_YearBxUnit(uint* yearunit, int x, int y, uint profile); |
| | | |
| | | //å建年åå
|
| | | // x - xåæ |
| | | // y - yåæ |
| | | // profile - å±å¹è§æ ¼ |
| | | // mode - æ¾ç¤ºå
容类å |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_YearBxUnit2(uint* yearunit, int x, int y, uint profile, int mode); |
| | | |
| | | //å徿¾ç¤ºç±»å |
| | | [DllImport("onbon.apo.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int YearBxUnit_getMode(int* mode, uint yearunit); |
| | | |
| | | //è®¾å®æ¾ç¤ºç±»å |
| | | // mode - æ¾ç¤ºç±»å 0;åä½è¥¿å
å¹´ 1ï¼ä¸¤ä½è¥¿å
å¹´ 2ï¼å¤©å¹²å°æ¯ 3ï¼åäºçè |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int YearBxUnit_setMode(uint yearunit, int mode); |
| | | |
| | | //å建æ¶åå
|
| | | // x - xåæ |
| | | // y - yåæ |
| | | // profile - å±å¹è§æ ¼ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_HourBxUnit(uint* hourunit, int x, int y, uint profile); |
| | | |
| | | //å建æ¶åå
|
| | | // x - xåæ |
| | | // y - yåæ |
| | | // profile - å±å¹è§æ ¼ |
| | | // mode - æ¾ç¤ºå
容类å |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_HourBxUnit2(uint* hourunit, int x, int y, uint profile, int mode); |
| | | |
| | | //å徿¾ç¤ºç±»å |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int HourBxUnit_getMode(int* mode, uint hourunit); |
| | | |
| | | //è®¾å®æ¾ç¤ºç±»å |
| | | // mode - æ¾ç¤ºç±»å 0 : 24 å°æ¶å¶ã 1 : 12 å°æ¶å¶ã |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int HourBxUnit_setMode(uint hourunit, int mode); |
| | | |
| | | //å建ååå
|
| | | // x - xåæ |
| | | // y - yåæ |
| | | // profile - å±å¹è§æ ¼ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_MinuteBxUnit(uint* minuteunit, int x, int y, uint profile); |
| | | |
| | | //å建ç§åå
|
| | | // x - xåæ |
| | | // y - yåæ |
| | | // profile - å±å¹è§æ ¼ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_SecondBxUnit(uint* secondunit, int x, int y, uint profile); |
| | | |
| | | //å建å¨åå
|
| | | // x - xåæ |
| | | // y - yåæ |
| | | // profile - å±å¹è§æ ¼ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_WeekBxUnit(uint* weekunit, int x, int y, uint profile); |
| | | |
| | | //å建å¨åå
|
| | | // x - xåæ |
| | | // y - yåæ |
| | | // profile - å±å¹è§æ ¼ |
| | | // abbreviate - æ¯å¦éç¨è±æç¼©å |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_WeekBxUnit2(uint* weekunit, int x, int y, uint profile, bool abbreviate); |
| | | |
| | | //å建å¨åå
|
| | | // x - xåæ |
| | | // y - yåæ |
| | | // profile - å±å¹è§æ ¼ |
| | | // lang - æ¾ç¤ºè¯è¨ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_WeekBxUnit3(uint* weekunit, int x, int y, uint profile, int lang); |
| | | |
| | | //å徿¾ç¤ºè¯è¨ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int WeekBxUnit_getLang(int* lang, uint weekunit); |
| | | |
| | | //è®¾å®æ¾ç¤ºè¯è¨ |
| | | // lang - æ¾ç¤ºè¯è¨ 0ï¼ä¸æä¸åä¸å 1ï¼ è±æAM/PM |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int WeekBxUnit_setLang(uint weekunit, int lang); |
| | | |
| | | //å徿¥ææ¾ç¤ºæ ¼å¼ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int DateTimeBxArea_getDateStyle(int* datestyle, uint datetimearea); |
| | | |
| | | //åå¾é¢è² |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int DateTimeBxArea_getForeground(uint* foreground, uint datetimearea); |
| | | |
| | | //å徿¶é´æ¾ç¤ºæ ¼å¼ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int DateTimeBxArea_getTimeStyle(int* timestyle, uint datetimearea); |
| | | |
| | | //åå¾å¨æ¾ç¤ºæ ¼å¼ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int DateTimeBxArea_getWeekStyle(int* weekstyle, uint datetimearea); |
| | | |
| | | //æ¯å¦å¤è¡æ¾ç¤º |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int DateTimeBxArea_isMultiline(bool* ismultiline, uint datetimearea); |
| | | |
| | | //è®¾å®æ¥ææ¾ç¤ºæ ¼å¼ NULLè¡¨ç¤ºä¸æ¾ç¤ºæ¥æ |
| | | // datestyle - æ¥ææ¾ç¤ºæ ¼å¼ NULL è¡¨ç¤ºä¸æ¾ç¤ºæ¥æã 0 - åå 1 - æ¥ææ ¼å¼ï¼MM - DD 2 - æ¥ææ ¼å¼ï¼MM / DD 3 - æ¥ææ ¼å¼ï¼MMæDDæ¥ 4 - æ¥ææ ¼å¼ï¼YYYY - MM - DD 5 - æ¥ææ ¼å¼ï¼YYYY / MM / DD 6 - æ¥ææ ¼å¼ï¼YYYYå¹´MMæDDæ¥ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int DateTimeBxArea_setDateStyle(uint datetimearea, int datestyle); |
| | | |
| | | //设å®åå |
| | | // font - åå |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int DateTimeBxArea_setFont(uint datetimearea, uint font); |
| | | |
| | | //设å®é¢è² |
| | | // foreground - é¢è² |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int DateTimeBxArea_setForeground(uint datetimearea, uint foreground); |
| | | |
| | | //è®¾å®æ¯å¦å¤è¡æ¾ç¤º |
| | | // multiline - å¤è¡æ¾ç¤º |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int DateTimeBxArea_setMultiline(uint datetimearea, bool multiline); |
| | | |
| | | //设置æ¶é´æ¾ç¤ºæ ¼å¼ NULLè¡¨ç¤ºä¸æ¾ç¤ºæ¶é´ |
| | | // timestyle - æ¶é´æ¾ç¤ºæ ¼å¼ NULL è¡¨ç¤ºä¸æ¾ç¤ºæ¶é´ã 0 - æ¶é´æ ¼å¼ï¼AMPM HH:MM 1 - æ¶é´æ ¼å¼ï¼HH:MM 2 - æ¶é´æ ¼å¼ï¼HHæ¶MMå 3 - æ¶é´æ ¼å¼ï¼HH:MM AMPM 4 - æ¶é´æ ¼å¼ï¼HH:MM:SS 5 - æ¶é´æ ¼å¼ï¼HHæ¶MMåSSç§ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int DateTimeBxArea_setTimeStyle(uint datetimearea, int timestyle); |
| | | |
| | | //设置æ³èµ·æ¾ç¤ºæ ¼å¼ NULLè¡¨ç¤ºä¸æ¾ç¤ºææ |
| | | // weekstyle - æææ¾ç¤ºæ ¼å¼ NULL è¡¨ç¤ºä¸æ¾ç¤ºæ¶é´ã 0: æææ ¼å¼ï¼ä¸æã 1: æææ ¼å¼ï¼è±æç¼©åã 2: æææ ¼å¼ï¼è±æã |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int DateTimeBxArea_setWeekStyle(uint datetimearea, int weekstyle); |
| | | |
| | | // |
| | | // |
| | | // |
| | | // |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int DateTimeBxArea_validate(bool* validate, uint area, int p1, int p2, int p3); |
| | | |
| | | //å建æ¶éåº |
| | | // x - xåæ |
| | | // y - yåæ |
| | | // widt - 宽度 |
| | | // heigth - é«åº¦ |
| | | // screenprofile - å±å¹è§æ ¼ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_ClockBxArea(uint* clockarea, int x, int y, int width, int heigth, uint screenprofile); |
| | | |
| | | //å建ä¸åä¸ååå
|
| | | // x - xåæ |
| | | // y - yåæ |
| | | // screenprofile - å±å¹è§æ ¼ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_AmPmBxUnit(uint* ampmunit, int x, int y, uint screenprofile); |
| | | |
| | | //å建ä¸åä¸ååå
|
| | | // x - x åæ |
| | | // y - yåæ |
| | | // screenprofile - å±å¹è§æ ¼ |
| | | // lang - æ¾ç¤ºè¯è¨ 0 : 䏿ä¸ä¸åã1 : è±æ AM/PMã |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_AmPmBxUnit2(uint* ampmunit, int x, int y, uint screenprofiel, int lang); |
| | | |
| | | //å徿¾ç¤ºè¯è¨ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int AmPmBxUnit_getLang(int* lang, uint unit); |
| | | |
| | | //è®¾å®æ¾ç¤ºè¯è¨ |
| | | // lang - æ¾ç¤ºè¯è¨ 0 : 䏿ä¸ä¸åã1 : è±æ AM/PM |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int AmPmBxUnit_setLang(uint unit, int lang); |
| | | |
| | | //åå»ºæ¨¡ææ¶éåå
|
| | | // x - xåæ |
| | | // y - yåæ |
| | | // screenprofile - å±å¹è§æ ¼ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_AnalogClockBxUnit(uint* analogclockunit, int x, int y, uint screenprofile); |
| | | |
| | | //è®¾å®æ¶éçå¤§å° |
| | | // size - æ¶éçå¤§å° |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int AnalogClockBxUnit_setupSize(uint analogclockunit, ushort size); |
| | | |
| | | //åå¾å¼å§å¹´ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int AbstractTimeClockBxArea_getBattleStartYear(ushort* year, uint area); |
| | | |
| | | //åå¾å¼å§æ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int AbstractTimeClockBxArea_getBattleStartMonth(byte* month, uint area); |
| | | |
| | | //åå¾å¼å§æ¥ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int AbstractTimeClockBxArea_getBattleStartDay(byte* day, uint area); |
| | | |
| | | //åå¾å¼å§æ¶ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int AbstractTimeClockBxArea_getBattleStartHour(byte* hour, uint area); |
| | | |
| | | //åå¾å¼å§å |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int AbstractTimeClockBxArea_getBattleStartMinute(byte* minute, uint area); |
| | | |
| | | //åå¾å¼å§ç§ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int AbstractTimeClockBxArea_getBattleStartSecond(byte* second, uint area); |
| | | |
| | | //åå¾å¼å§å¨ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int AbstractTimeClockBxArea_getBattleStartWeek(byte* week, uint area); |
| | | |
| | | //åå¾å¯å¨ç±»å |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int AbstractTimeClockBxArea_getBattleStartupMode(byte* mode, uint area); |
| | | |
| | | //å徿¶é´å·® |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int AbstractTimeClockBxArea_getTimeDifferent(ushort* timedifferent, uint area); |
| | | |
| | | //åå¾éæåº¦ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int AbstractTimeClockBxArea_getTransparency(byte* transparency, uint area); |
| | | |
| | | //æ¯å¦æ¾ç¤ºèæ¯ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int AbstractTimeClockBxArea_isBackgroundFlag(bool* isbackground, uint area); |
| | | |
| | | //æ¾ç¤ºèæ¯é®ç½©çé¨å |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int AbstractTimeClockBxArea_maskByBackground(uint area); |
| | | |
| | | //ä¸èæ¯éå æ¾ç¤º |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int AbstractTimeClockBxArea_overlayWithBackground(uint area); |
| | | |
| | | //è®¾å®æ¯å¦æ¾ç¤ºèæ¯èæ¯ |
| | | // isbackgroundflag - æ¯å¦æ¾ç¤ºèæ¯ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int AbstractTimeClockBxArea_setBackgroundFlag(uint area, bool isbackgroundflag); |
| | | |
| | | //设å®å¼å§å¹´ |
| | | // year - å¼å§å¹´ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int AbstractTimeClockBxArea_setBattleStartYear(uint area, ushort year); |
| | | |
| | | //设å®å¼å§æ |
| | | // month - å¼å§æ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int AbstractTimeClockBxArea_setBattleStartMonth(uint area, byte month); |
| | | |
| | | //设å®å¼å§æ¥ |
| | | // day - å¼å§æ¥ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int AbstractTimeClockBxArea_setBattleStartDay(uint area, byte day); |
| | | |
| | | //设å®å¼å§æ¶ |
| | | // hour - å¼å§æ¶ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int AbstractTimeClockBxArea_setBattleStartHour(uint area, byte hour); |
| | | |
| | | //设å®å¼å§å |
| | | // minute - å¼å§å |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int AbstractTimeClockBxArea_setBattleStartMinute(uint area, byte minute); |
| | | |
| | | //设å®å¼å§ç§ |
| | | // second - å¼å§ç§ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int AbstractTimeClockBxArea_setBattleStartSecond(uint area, byte second); |
| | | |
| | | //设å®å¼å§å¨ |
| | | // week - å¼å§å¨ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int AbstractTimeClockBxArea_setBattleStartWeek(uint area, byte week); |
| | | |
| | | //设å®å¯å¨ç±»å |
| | | // mode - å¯å¨ç±»å |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int AbstractTimeClockBxArea_setBattleStartupMode(uint area, byte mode); |
| | | |
| | | //è®¾å®æ¶é´å·® |
| | | // timedifferent - æ¶é´å·® |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int AbstractTimeClockBxArea_setTimeDifferent(uint area, ushort timedifferent); |
| | | |
| | | //设å®éæåº¦ å½è¯¥å¼å¤§äºçäº0å°äºçäº100æ¶ï¼ä»¥è¯¥èæ¯åºå为åºå |
| | | // transparency - éæåº¦ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int AbstractTimeClockBxArea_setTransparency(uint area, byte transparency); |
| | | |
| | | //åå»ºç¼ºçæ¶éåº |
| | | // x - xåæ |
| | | // y - yåæ |
| | | // width - 宽度 |
| | | // heigth - é«åº¦ |
| | | // screenprofile - å±å¹è§æ ¼ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_DefaultTimeClockBxArea(uint* area, int x, int y, int width, int heigth, uint screenprofile); |
| | | |
| | | //æ·»å æ¶é´åå
|
| | | // unit - æ¶é´åå
|
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int DefaultTimeClockBxArea_addUnit(uint area, uint unit); |
| | | |
| | | //å徿¶é´åå
èµè®¯ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int DefaultTimeClockBxArea_getUnit(uint* unit, uint area, uint p1); |
| | | |
| | | //å徿¶é´åå
èµè®¯æ°é |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int DefaultTimeClockBxArea_getUnitSize(uint* unitszie, uint area); |
| | | |
| | | //å建计æ¶åº |
| | | // x - xåæ |
| | | // y - y åæ |
| | | // width - 计æ¶åºå®½åº¦ |
| | | // heigth - 计æ¶åºé«åº¦ |
| | | // p5 - æªç¥ |
| | | // screenprofile - å±å¹è§æ ¼ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_TimerBxArea(uint* area, int x, int y, int width, int heigth, int p5, uint screenprofile); |
| | | |
| | | //å建计æ¶åå
|
| | | // x - ç¸å¯¹äºè®¡æ¶åºXåæ çXåæ |
| | | // y - ç¸å¯¹äºè®¡æ¶åºYåæ çYåæ |
| | | // screenprofile - å±å¹è§æ ¼ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_TimerBxUnit(uint* unit, int x, int y, uint screenprofile); |
| | | |
| | | //å建计æ¶åå
|
| | | // x - ç¸å¯¹äºè®¡æ¶åºXåæ çXåæ |
| | | // y - ç¸å¯¹äºè®¡æ¶åºYåæ çYåæ |
| | | // profile - å±å¹è§æ ¼ |
| | | // mode - æ¾ç¤ºå
容类å |
| | | // counter - 计æ°å¼ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_TimerBxUnit2(uint* unit, int x, int y, uint profile, int mode, int counter); |
| | | |
| | | //å建计æ¶åºæ ¼å¼ |
| | | // hour - æ¶åæ¾ç¤ºå°æ¶ |
| | | // minute - æ¯å¦æ¾ç¤ºåé |
| | | // second - æ¯å¦æ¾ç¤ºç§ |
| | | // millisecond - æ¯å¦æ¾ç¤ºæ¯«ç§ |
| | | // phour - æ¯å¦æ¾ç¤º[å°æ¶]æå |
| | | // pminute - æ¯å¦æ¾ç¤º[åé]æå |
| | | // psecond - æ¯å¦æ¾ç¤º[ç§]æå |
| | | // pmillisecond - æ¯å¦æ¾ç¤º[毫ç§]æå |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_TimerBxUnitFormat(uint* format, bool hour, bool minute, bool second, bool millisecond, bool phour, bool pminute, bool psecond, bool pmillisecond); |
| | | |
| | | //è·åç»å
|
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int TimerBxArea_getUnit(uint* unit, uint area); |
| | | |
| | | //è·å计æ°å¼ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int TimerBxUnit_getCounter(uint* counter, uint unit); |
| | | |
| | | //è·åæ¾ç¤ºå
å®¹æ ¼å¼ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int TimerBxUnit_getFormat(uint* format, uint unit); |
| | | |
| | | //åå¾ç§è¡¨è®¡ç®æ¹å¼ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int TimerBxUnit_getMode(int* mode, uint unit); |
| | | |
| | | //设å®è®¡æ°å¼ |
| | | // counter - 计æ°å¼ åä½ä¸ºæ¯«ç§ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int TimerBxUnit_setCounter(uint unit, uint counter); |
| | | |
| | | //è®¾å®æ¾ç¤ºå
å®¹æ ¼å¼ |
| | | // format - æ¾ç¤ºå
å®¹æ ¼å¼ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int TimerBxUnit_setFormat(uint unit, uint format); |
| | | |
| | | //设å®ç§è¡¨è®¡ç®æ¹å¼ |
| | | // mode - ç§è¡¨è®¡ç®æ¹å¼ 0ï¼æ£è®¡æ¶ç´¯å 1ï¼å计æ¶ç´¯å 2ï¼æ£è®¡æ¶ä¸ç´¯å 3ï¼å计æ¶ä¸ç´¯å |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int TimerBxUnit_setMode(uint unit, int mode); |
| | | |
| | | //åå»ºéæ´ååå
|
| | | // name - éæ´åå
å |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_CompositeBxUnit(uint* unit, string name); |
| | | |
| | | //éæ´è®¡ç®ååå
çåæ |
| | | // container - ååºåå¤§å° |
| | | // x - æ¤åå
é
ç½®Xåæ |
| | | // y - æ¤åå
é
ç½®Yåæ |
| | | // center - æ¯å¦å±
ä¸ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int CompositeBxUnit_arrange(uint arrange, uint unit, int x, int y, bool center); |
| | | |
| | | //åå¾åå |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int CompositeBxUnit_getFont(uint font); |
| | | |
| | | //åå¾åæ¯è² |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int CompositeBxUnit_getForeground(uint foreground); |
| | | |
| | | //åå¾ç¸å¯¹äºæ¶é´åºåXåæ çXåæ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int CompositeBxUnit_getX(uint x); |
| | | |
| | | //åå¾ç¸å¯¹äºæ¶é´åºåYåæ çYåæ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int CompositeBxUnit_getY(uint y); |
| | | |
| | | //åç§»xåæ |
| | | // x - xåæ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int CompositeBxUnit_offsetX(uint unit, int x); |
| | | |
| | | //åç§»Yåæ |
| | | // y - Yåæ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int CompositeBxUnit_offsetY(uint unit, int y); |
| | | |
| | | //设å®åå |
| | | // font - åå |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int CompositeBxUnit_setFont(uint unit, uint font); |
| | | |
| | | //设å®åæ¯è² |
| | | // foreground - åæ¯è² |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int CompositeBxUnit_setForeground(uint unit, uint forefround); |
| | | |
| | | //å徿¾ç¤ºç±»å |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int CommonBxUnit_getUnitMode(byte* mode, uint unit); |
| | | |
| | | //è®¾å®æ¾ç¤ºç±»å |
| | | // meod - æ¾ç¤ºç±»å |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int CommonBxUnit_setUnitMode(uint unit, byte mode); |
| | | |
| | | //å建计æ¶åº |
| | | // x - xåæ |
| | | // y - yåæ |
| | | // width - 计æ¶åºå®½åº¦ |
| | | // heigth - 计æ¶åºé«åº¦ |
| | | // desttime - ç®æ æ¶é´ |
| | | // screenprofiel - å±å¹è§æ ¼ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_CounterBxArea(uint* area, int x, int y, int width, int heigth, uint srceenprofile); |
| | | |
| | | //å建计æ¶åå
|
| | | // x - ç¸å¯¹äºè®¡æ¶åºXåæ çXåæ |
| | | // y - ç¸å¯¹äºè®¡æ¶åºYåæ çYåæ |
| | | // sceenprofile - å±å¹è§æ ¼ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_CounterBxUnit(uint* unit, int x, int y, uint screenprofile); |
| | | |
| | | //å建计æ¶åå
|
| | | // x - ç¸å¯¹äºè®¡æ¶åºXåæ çXåæ |
| | | // y - ç¸å¯¹äºè®¡æ¶åºYåæ çYåæ |
| | | // screenprofile - å±å¹è§æ ¼ |
| | | // mode - æ¾ç¤ºå
容类å 0ï¼æ£è®¡æ¶ç´¯å ï¼1ï¼å计æ¶ç´¯å ï¼2ï¼æ£è®¡æ¶ä¸ç´¯å ï¼3ï¼å计æ¶ä¸ç´¯å |
| | | // desttime - ç®æ æ¶é´ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_CounterBxUnit2(uint* unit, int x, int y, uint screenprofile, int mode, uint desttime); |
| | | |
| | | //å建计æ¶åå
æ ¼å¼ |
| | | // day - æ¯å¦æ¾ç¤ºå¤© |
| | | // hour - æ¯å¦æ¾ç¤ºæ¶ |
| | | // minute - æ¯å¦æ¾ç¤ºå |
| | | // second - æ¯å¦æ¾ç¤ºç§ |
| | | // pday - æ¯å¦æ¾ç¤º[天]æå |
| | | // phour - æ¯å¦æ¾ç¤º[æ¶]æå |
| | | // pminute - æ¯å¦æ¾ç¤º[å]æå |
| | | // psecond - æ¯å¦æ¾ç¤º[ç§]æå |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_CounterBxUnitFormat(uint* unit, bool day, bool hour, bool minute, bool second, bool pday, bool phour, bool pminute, bool psecond); |
| | | |
| | | //åå¾å
ç» |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int CounterBxArea_getUnit(uint* unit, uint area); |
| | | |
| | | //åå¾ç®æ æ¶é´ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int CouterBxUnit_getDestTime(uint* desttime, uint unit); |
| | | |
| | | //å徿¾ç¤ºå
å®¹æ ¼å¼ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int CounterBxUnit_getFormat(uint* format, uint unit); |
| | | |
| | | //åå¾è®¡æ¶å¨è®¡ç®æ¹å¼ |
| | | [DllImport("onbob.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int CounterBxUnit_getMode(uint* mode, uint unit); |
| | | |
| | | //è®¾å®æ
ç½å¦æ¶é´ |
| | | // desttime - ç®æ æ¶é´ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int CounterBxUnit_setDestTime(uint unit, uint desttime); |
| | | |
| | | //è®¾å®æ¾ç¤ºå
å®¹æ ¼å¼ |
| | | // format - æ¾ç¤ºå
å®¹æ ¼å¼ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int CounterBxUnit_setFormat(uint unit, uint format); |
| | | |
| | | //设å®è®¡æ¶å¨è®¡ç®æ¹å¼ |
| | | // mode - 计æ¶å¨è®¡ç®æ¹å¼ 0ï¼æ£è®¡æ¶ç´¯å ï¼1ï¼å计æ¶ç´¯å ï¼2ï¼æ£è®¡æ¶ä¸ç´¯å ï¼3ï¼å计æ¶ä¸ç´¯å |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int CounterBxUnit_SetMode(uint unit, int mode); |
| | | |
| | | //åå»ºæ¸©åº¦åº |
| | | // x - Xåæ |
| | | // y - Yåæ |
| | | // width - 温度å»å®½åº¦ |
| | | // heigth - 温度åºé«åº¦ |
| | | // screenprofile - å±å¹è§æ ¼ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_TemperatureBxArea(uint* area, int x, int y, int width, int heigth, uint scrennprofile); |
| | | |
| | | //å徿¾ç¤ºæ ¼å¼ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int TemperatureBxArea_getDisplayUnitType(int* type, uint area); |
| | | |
| | | //设置æ¾ç¤ºæ ¼å¼ |
| | | // type - æ¾ç¤ºæ ¼å¼ 0-ææ° 1- åæ° |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int TemperatureBxArea_setDisplayUnitType(uint area, int type); |
| | | |
| | | //åå»ºæ¹¿åº¦åº |
| | | // x - xåæ |
| | | // y - yåæ |
| | | // width - 宽度 |
| | | // heigth - é«åº¦ |
| | | // screenprofile - å±å¹è§æ ¼ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_HumidityBxArea(uint* area, int x, int y, int width, int heigth, uint screenprofile); |
| | | |
| | | //å建åªå£°åº |
| | | // x - Xåæ |
| | | // y - Yåæ |
| | | // width - åºå宽度 |
| | | // heigth - åºåé«åº¦ |
| | | // screenprofile - å±å¹è§æ ¼ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_NoiseBxArea(uint* area, int x, int y, int width, int heigth, uint screenprofile); |
| | | |
| | | //å建åååº |
| | | // x - xåæ |
| | | // y - yåæ |
| | | // width - 宽度 |
| | | // heigth - é«åº¦ |
| | | // screenprofile - å±å¹è§æ ¼ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_FestivalBxArea(uint* area, int x, int y, int width, int heigth, uint screenprofile); |
| | | |
| | | //å建åååå
|
| | | // x - xç¸å¯¹äºåååºXåæ çXåæ |
| | | // y - yç¸å¯¹äºåååºYåæ çYåæ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_FestivalBxUnit(uint* unit, int x, int y, uint screenprofile); |
| | | |
| | | //åå¾åå
é¢è² |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int FestivalBxArea_getUnitColor(uint color); |
| | | |
| | | //设å®åå
é¢è² |
| | | // unitcolor - åå
é¢è² |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int FestivalBxArea_setUnitColor(uint unit, uint unitcolor); |
| | | |
| | | //æ·»å ä¼ æå¨åºå
¥å£ |
| | | // alarmtype - æ¥è¦ç±»å 0:ä½äºä¸´ç弿¥è¦ 1ï¼é«äºä¸´ç弿¥è¦ |
| | | // value - å¼ |
| | | // normal - æ£å¸¸æ¾ç¤ºçé¢è² |
| | | // alarm - æ¥è¦æ¾ç¤ºçé¢è² |
| | | [DllImport("onbob.ap.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int SensorBxArea_addThreshold(uint area, int alarmtype, uint value, uint normalcolor, uint alarmcolor); |
| | | |
| | | //æ¸
é¤ä¼ æå¨å
¥å£ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int SensorBxArea_clearThresholds(uint area); |
| | | |
| | | //åå¾ä¿®æ£å¼ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int SensorBxArea_getCorrection(uint* correction, uint area); |
| | | |
| | | //åå¾ä¿®æ£ææ§ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int SensorBxArea_getCorrectionPolar(int* polar, uint area); |
| | | |
| | | //å徿µ®ç¹æ° |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int SensorBxArea_getNumberFloat(byte* number, uint area); |
| | | |
| | | //å徿´æ° |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int SensorBxArea_getNumberInt(byte* number, uint area); |
| | | |
| | | //åå¾ä¼ æå¨ç±»å 0: 温度 1ï¼ æ¹¿åº¦ 2ï¼åªå£° 0xffï¼å
¨è½ |
| | | [DllImport("obnon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int SensorBxArea_getSensorMode(byte* mode, uint area); |
| | | |
| | | //åå¾ä¼ æå¨ç±»å |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int SensorBxArea_getSensorType(byte* type, uint area); |
| | | |
| | | //åå¾ä¼ æå¨åå
|
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int SensorBxArea_getSensorUnit(byte* unit, uint area); |
| | | |
| | | //åå¾éææå |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int SensorBxArea_getStaticText(uint* text, uint area); |
| | | |
| | | //åå¾éæåº¦ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int SensorBxArea_getTransparency(uint area); |
| | | |
| | | //æ¯å¦æ¾ç¤ºèæ¯ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int SensorBxArea_isBackgroundFlag(bool* isbackground, uint area); |
| | | |
| | | //å徿¹¿åº¦æ¯å¦æ¾ç¤ºå°æ°ä½ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int SensorBxArea_isFractionPart(bool* isfractionpart, uint area); |
| | | |
| | | // |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int SensorBxArea_isSensorUnitFlag(bool* isunitflag, uint area); |
| | | |
| | | //æ¾ç¤ºèæ¯é®ç½©çé¨å |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int SensorBxArea_maskByBackground(uint area); |
| | | |
| | | //ä¸èæ¯éå æ¾ç¤º |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int SensorBxArea_overlayWithBackground(uint area); |
| | | |
| | | //è®¾å®æ¯å¦æ¾ç¤ºèæ¯ |
| | | // isbackground - æ¯å¦æ¾ç¤ºèæ¯ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int SensorBxArea_setBackgroundFlag(uint area, bool isbackground); |
| | | |
| | | //设å®ä¿®æ£å¼ |
| | | // correction - ä¿®æ£å¼ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int SensorBxArea_setCorrection(uint area, uint correction); |
| | | |
| | | //设å®ä¿®æ£ææ§ |
| | | // correctionpolar - ä¿®æ£ææ§ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int SensorBxArea_setCorrectionPolar(uint area, int correctionpolar); |
| | | |
| | | //è®¾å®æ¹¿åº¦æ¯å¦æ¾ç¤ºå°æ°ä½ |
| | | // fractionalpart - æ¯å¦æ¾ç¤ºå°æ°ä½ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int SensorBxArea_setFractionalPart(uint area, bool ispart); |
| | | |
| | | //è®¾å®æµ®ç¹ |
| | | // float - æµ®ç¹ |
| | | [DllImport("onbon.ap.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int SensorBxArea_setNumberFloat(uint area, byte nunberfloat); |
| | | |
| | | //è®¾å®æ´å |
| | | // numberint - æ´å |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int SensorBxArea_setNumberInt(uint area, byte numberint); |
| | | |
| | | //设å®ä¼ æå¨ç±»å |
| | | // type - ä¼ æå¨ç±»å 温度ï¼0-DS18B20; 1-SHT11; 湿度ï¼0-SHT11; 1-AM2301; åªå£°ï¼0-AWA5636-3; 1-HS5633T; 2-AZ8921 |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int SensorBxArea_setSensorType(uint area, byte type); |
| | | |
| | | //设å®ä¼ æå¨åå
|
| | | // flag - |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int SensorBxArea_setSensorUnitFlag(uint area, bool flag); |
| | | |
| | | //设å®éææå |
| | | // text - éææå |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int SensorBxArea_setStaticText(uint area, string text); |
| | | |
| | | //设å®éæåº¦ å½è¯¥å¼å¤§äºç0ï¼ä¸éæï¼å°äºçäº100ï¼å
¨éæï¼æ¶ï¼ä»¥è¯¥èæ¯åºå为åºå |
| | | // transparency - éæåº¦ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int SensorBxArea_setTransparency(uint area, byte transparency); |
| | | |
| | | //å建äºè¿å¶ææ¬ |
| | | // width - 宽度 |
| | | // heigth - é«åº¦ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_TextBinary(uint* binarytext, uint width, uint heigth); |
| | | |
| | | //åå¾èæ¯è² |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int TextBinary_getBackground(uint textbinary); |
| | | |
| | | //åå¾åå |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int TextBinary_getFont(uint textbinary); |
| | | |
| | | //åå¾åæ¯è² |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int TextBinary_getForeground(uint textbinary); |
| | | |
| | | //åå¾é«åº¦ |
| | | // heigth - é«åº¦ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int TextBinary_getHeigth(int* heigth, uint textbinary); |
| | | |
| | | //åå¾å®½åº¦ |
| | | // width - 宽度 |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int TextBinary_getWidth(int* width, uint textbinary); |
| | | |
| | | //设å®èæ¯è² |
| | | // background - èæ¯è² |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int TextBinary_setBackground(uint textbinary, uint background); |
| | | |
| | | //设å®åå |
| | | // font - åå |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int TextBinary_setFont(uint binarytext, uint font); |
| | | |
| | | //设å®åæ¯è² |
| | | // foreground - åæ¯è² |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int TextBinary_setForeground(uint textbinary, uint foreground); |
| | | |
| | | //设å®é«åº¦ |
| | | // heigth - é«åº¦ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int TextBinary_setHeigth(uint textbinary, int heigth); |
| | | |
| | | //è®¾å®æ¬¾åº¦ |
| | | // width - 宽度 |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int TextBinary_setWidth(uint textbinary, int width); |
| | | |
| | | //åå»ºææ¬é¡µ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_TextBxPage(uint* page); |
| | | |
| | | //åå»ºææ¬é¡µ |
| | | // text - æåè®¯æ¯ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_TextBxPage2(uint* page, string text); |
| | | |
| | | //åå»ºææ¬é¡µ |
| | | // text - æåè®¯æ¯ |
| | | // font - åå |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_TextBxPage3(uint* page, string text, uint font); |
| | | |
| | | //åå»ºææ¬é¡µ |
| | | // text - æåè®¯æ¯ |
| | | // font - åå |
| | | // foreground - æåé¢è² |
| | | // backgroudn - èæ¯é¢è² |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_TextBxPage4(uint* page, string text, uint font, uint foreground, uint background); |
| | | |
| | | //åå»ºææ¬é¡µ |
| | | // text - æåè®¯æ¯ |
| | | // font - åå |
| | | // foreground - æåé¢è² |
| | | // baockground - èæ¯é¢è² |
| | | // linebreak - æ¯å¦æ¢è¡å³æ¢é¡µ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_TextBxPage5(uint* page, string text, uint font, uint foreground, uint background, bool linebreak); |
| | | |
| | | //åå»ºææ¬é¡µ |
| | | // font - åå |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_TextBxPage6(uint* page, uint font); |
| | | |
| | | //å建å¾çæä»¶é¡µ |
| | | // filepath - å¾çææ¡£ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_ImageFileBxPage(uint* page, string filepath); |
| | | |
| | | //å建纯æåæ¡£æ¡ |
| | | // filepath - 纯æåæ¡£æ¡ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_TextFileBxPage(uint* page, string filepath); |
| | | |
| | | //å建纯æåææ¡£ |
| | | // filepath - 纯æåææ¡£ |
| | | // font - åå |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_TextFileBxPage2(uint* page, string filepath, uint font); |
| | | |
| | | //å建纯æåææ¡£ |
| | | // filepath - 纯æåææ¡£ |
| | | // font - åå |
| | | // foreground - æåé¢è² |
| | | // background - èæ¯é¢è² |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_TextFileBxPage3(uint* page, string filepath, uint font, uint foreground, uint background); |
| | | |
| | | //åå¾èæ¯è² |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int TextBxPage_getBackground(uint page); |
| | | |
| | | //åå¾åå |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int TextBxPage_getFont(uint page); |
| | | |
| | | //å徿åè² |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int TextBxpage_getForegroud(uint page); |
| | | |
| | | //åå¾é¦å°¾ç¸è¿é´é |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int TextBxPage_getHeadTailInterval(uint page); |
| | | |
| | | //å徿°´å¹³å¯¹é½æ¹å¼ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int TextBxPage_getHorizontalAlignment(uint page); |
| | | |
| | | //å徿åè®¯æ¯ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int TextBxPage_getText(uint page); |
| | | |
| | | //åå¾åç´å¯¹é½æ¹å¼ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int TextBxPage_getVerticalAlignment(uint page); |
| | | |
| | | //å徿¯å¦æ¢è¡å³æ¢é¡µ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int TextBxPage_isLineBreak(uint page); |
| | | |
| | | //æ°å¢ä¸è¡æå |
| | | // text - æå |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int TextBxPage_newLine(uint* page1, uint page, string text); |
| | | |
| | | //设å®èæ¯è² |
| | | // background - èæ¯è² |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int TextBxPage_setBackgroun(uint page, uint background); |
| | | |
| | | //设å®åå |
| | | // font - åå |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int TextBxPage_setFont(uint page, uint font); |
| | | |
| | | //è®¾å®æåè² |
| | | // foreground - æåè² |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int TextBxPage_setForeground(uint page, uint foreground); |
| | | |
| | | //设å®é¦å°¾ç¸è¿é´é |
| | | // headtaillnterval - é¦å°¾ç¸è¿é´é >= 0:åå讯æ¯é´éçåç´ -2 ï¼åå讯æ¯è¢«é离 |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int TextBxPage_setHeadTaillnterval(uint page, int headtaillnterval); |
| | | |
| | | //è®¾å®æ°´å¹³å¯¹é½æ¹å¼ |
| | | // horizontalalignment 0ï¼å±
ä¸ 1ï¼å±
å·¦ 2ï¼å±
å³ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int TextBxPage_setHorizontalAlignment(uint page, int horizontalaligment); |
| | | |
| | | //è®¾å®æ¯å¦æ¢è¡å³æ¢é¡µ |
| | | // linebreak - æ¢è¡å³æ¢é¡µ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int TextBxPage_setLineBreak(uint page, bool linebreak); |
| | | |
| | | //è®¾å®æåè®¯æ¯ |
| | | // text - æåè®¯æ¯ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int TextBxPage_setText(uint page, string text); |
| | | |
| | | //设å®åç´å¯¹é½æ¹å¼ |
| | | // verticalalignment - åç´å¯¹é½æ¹å¼ 0ï¼å±
ä¸ 1ï¼å±
ä¸ 2ï¼å±
ä¸ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int TextBxPage_setVerticalAlignment(uint page, int verticalalignment); |
| | | |
| | | //åå¾èæ¯æææ è®° |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxPage_getValidFlag(byte* flag, uint page); |
| | | |
| | | //å徿¸
屿¹å¼ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxPage_getClearMode(byte* mode, uint page); |
| | | |
| | | //åå¾ææ¾æ ·å¼ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxPage_getDisplayStyle(uint* style, uint page); |
| | | |
| | | //åå¾è¾¹æ¡éç |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxPage_getFrameRate(byte* rate, uint page); |
| | | |
| | | //åå¾é夿¬¡æ° |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxPage_getRepeatTime(byte* times, uint page); |
| | | |
| | | //åå¾å£°é³æ è®° |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxPage_getSoundFlag(byte* flag, uint page); |
| | | |
| | | //åå¾é度ç级 |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxPage_getSpeed(byte* speed, uint page); |
| | | |
| | | //åå¾åçæ¶é´ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxPage_getStayTime(ushort* staytime, uint page); |
| | | |
| | | //å徿æé¿åº¦ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxPage_getValidLen(ushort* len, uint page); |
| | | |
| | | //è®¾ç½®èæ¯æææ è®° |
| | | // p1 - |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxPage_setBgValidFlag(uint page, byte p1); |
| | | |
| | | //è®¾å®æ¸
屿¹å¼ |
| | | // clearmode - æ¸
屿¹å¼ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxPage_setClearMode(uint page, byte clearmode); |
| | | |
| | | //è®¾å®ææ¾æ ·å¼ |
| | | // displaystyle - ææ¾æ ·å¼ æ ·å¼ç¼å·: 0:éæºæ¾ç¤º;1:鿢æ¾ç¤º;2:å¿«éæåº;3:å左移å¨;4:åå·¦è¿ç§»;5:åä¸ç§»å¨; 6:åä¸è¿ç§»;7:éªç;8:é£éª;9:åæ³¡;10:ä¸é´ç§»å¨; 11:å·¦å³ç§»å
¥;12:å·¦å³äº¤åç§»å
¥;13:ä¸ä¸äº¤åç§»å
¥;14:ç»å·éå;15:ç»å·æå¼; 16:åå·¦æä¼¸;17:å峿伏;18:å䏿伏;19:å䏿伏;20:åå·¦éå°; 21:åå³éå°;22:åä¸éå°;23:åä¸éå°;24:å·¦å³äº¤åæå¹;25:ä¸ä¸äº¤åæå¹; 26:忣左æ;27:æ°´å¹³ç¾å¶;28:åç´ç¾å¶;29:åå·¦æå¹;30:å峿å¹; 31:å䏿å¹;32:å䏿å¹;33:å·¦å³éå;34:å·¦å³å¯¹å¼;35:ä¸ä¸éå; 36:ä¸ä¸å¯¹å¼;37:åå³ç§»å¨;38:åå³è¿ç§»;39:åä¸ç§»å¨;40:åä¸è¿ç§»; 41:45度左æ;42:180度左æ;43:90度左æ;44:45åº¦å³æ;45:180åº¦å³æ; 46:90åº¦å³æ;47:è±å½¢æå¼;48:è±å½¢éå |
| | | //è¥æ ·å¼æ¯åå·¦è¿ç§»æåä¸è¿ç§»ï¼stayTime æè®¾å®çºé¶ãå¯å¨è®¾å®ææ¾æ ·å¼å¾åéæ°è®¾å®åçæ¶é´ã |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxPage_setDisplayStyle(uint page, uint displaystyle); |
| | | |
| | | //设å®è¾¹æ¡éç |
| | | // rate - è¾¹æ¡éç |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxPage_setFrameRate(uint page, byte rate); |
| | | |
| | | //设å®é夿¬¡æ° |
| | | // repeattimes - é夿¬¡æ° |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxPage_setRepeatTime(uint page, byte times); |
| | | |
| | | //设å®å£°é³æ è®° |
| | | // p1 |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxPage_setSoundFlag(uint page, byte p1); |
| | | |
| | | //设å®é度ç级 |
| | | // speed - è¿è¡é度 0æå¿«-63ææ
¢ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxPage_setSpeed(uint page, uint speed); |
| | | |
| | | //设å®åçæ¶é´ |
| | | // time - åçæ¶é´ å使¯«ç§ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxPage_setStayTime(uint page, ushort time); |
| | | |
| | | //è®¾å®ææé¿åº¦ |
| | | // len - ææé¿åº¦ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxPage_setValidLen(uint page, ushort len); |
| | | |
| | | //å¢å å¾ç |
| | | // image - å¾ç |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int ImageBxPage_addImage(uint page, uint image); |
| | | |
| | | //æ¸
餿æå¾ç |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int ImageBxPage_clearImages(uint page); |
| | | |
| | | //åå¾å¾çæä»¶ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int ImageFileBxPage_getFilePath(uint page); |
| | | |
| | | //å徿¢è¡å¤çæ¹å¼ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int TextFileBxPage_getBreakType(uint page); |
| | | |
| | | //å徿忿¡£ç¼ç |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int TextFileBxPage_getEncoding(uint page); |
| | | |
| | | //åå¾çº¯æåææ¡£ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int TextFileBxPage_getFilePath(uint page); |
| | | |
| | | //è®¾å®æ¢è¡å¤çæ¹å¼ |
| | | // breaktype - æ¢è¡å¤çæ¹å¼ 0ï¼è¿½å 1ï¼æ¢è¡ 2ï¼æ¢é¡µ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int TextFileBxPage_setBreakType(uint page, int breaktype); |
| | | |
| | | //è®¾å®æåæ¡£æ¡ç¼ç |
| | | // encoding - æåæ¡£æ¡ç¼ç |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int TextFileBxPage_setEncoding(uint page, string encoding); |
| | | |
| | | //设å®çº¯æåæ¡£æ¡ |
| | | // filepath - 纯æåæ¡£æ¡ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int TextFileBxPage_setFilePath(uint page, string filepath); |
| | | |
| | | //å建æ è¯æä»¶ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_LogoBxFile(uint* file); |
| | | |
| | | //å¢å åºå |
| | | // area - åºå |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int LogoBxFile_addArea(uint logofile, uint area); |
| | | |
| | | //åå¾åºåæ°é |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int LogoBxFile_getAreaCount(int* count, uint logofile); |
| | | |
| | | //å徿件åç§° |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int LogoBxFile_getFileName(uint logofile); |
| | | |
| | | //å徿件æ¶é´èå´ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int LogoBxFile_getTimeSpan(int* span, uint logofile); |
| | | |
| | | //设置æä»¶æ¶é´èå´ |
| | | // span - æä»¶æ¶é´èå´ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int LogoBxFile_setTimeSpan(uint logofile, int span); |
| | | |
| | | //åå¾åå
æ¾ç¤ºå
容åå |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxUnit_getFont(uint unit); |
| | | |
| | | //åå¾åå
é¢è² |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxUnit_getUnitColor(uint* color, uint unit); |
| | | |
| | | //åå¾ç¸å¯¹äºæ¶é´åºXåæ çXåæ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxUnit_getUnitX(ushort* x, uint unit); |
| | | |
| | | //åå¾ç¸å¯¹äºæ¶é´åºYåæ çYåæ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxUnit_getUnitY(ushort* y, uint unit); |
| | | |
| | | //设å®åå
æ¾ç¤ºå
容åå |
| | | // font - åå |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxUnit_setFont(uint unit, uint font); |
| | | |
| | | //设å®å¯¹é½æ¹å¼ |
| | | // align - 坹齿¹å¼ 0:左对é½ï¼1ï¼å±
ä¸ï¼2ï¼å³å¯¹é½ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxUnit_setUnitAlign(uint unit, byte align); |
| | | |
| | | //设å®åä½é¢è² |
| | | // color - åä½é¢è² |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxUnit_setUnitColor(uint unit, uint color); |
| | | |
| | | //设å®ç¸å¯¹äºæ¶é´åºåXåæ çXåæ |
| | | // x - xåæ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxUnit_setUnitX(uint unit, ushort x); |
| | | |
| | | //设å®ç¸å¯¹äºæ¶é´åºåYåæ çYåæ |
| | | // y - yåæ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxUnit_setUnitY(uint unit, ushort y); |
| | | |
| | | //åå»ºææ¬åå
|
| | | // x - ç¸å¯¹äºæ¶é´åºåXåæ çXåæ |
| | | // y - ç¸å¯¹äºæ¶é´åºåYåæ çYåæ |
| | | // screenprofile - å±å¹è§æ ¼ |
| | | // text - æåå
容 |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_StringBxUnit(uint* unit, int x, int y, uint screenprofile, string text); |
| | | |
| | | //å徿åå
容 |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int StringBxUnit_getText(uint unit); |
| | | |
| | | //åå»ºå¨æåº |
| | | // x - xåæ |
| | | // y - yåæ |
| | | // width - åºå宽度 |
| | | // heigth - åºåé«åº¦ |
| | | // profile - å±å¹è§æ ¼ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_DynamicBxArea(uint* area, int x, int y, int width, int heigth, uint profile); |
| | | |
| | | //åå»ºå¨æåºè§å |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_DynamicBxAreaRule(uint* arearule); |
| | | |
| | | //æ°å¢å¨æåºå
³èç弿¥èç®ã䏿¦å
³èäºæä¸ªå¼æ¥èç®ï¼å彿¹å¼æ¥èç®ææ¾æ¶å
è®¸ææ¾è¯¥å¨æåº |
| | | // programid - å
³èçèç®ç¼å· 0 -999 |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int DynamicBxAreaRule_addRelativeProgram(uint arearule, uint program); |
| | | |
| | | //åå¾å¨æåºç¼å· |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int DynamicBxAreaRule_getId(int* id, uint arearule); |
| | | |
| | | //å徿¯å¦ç«å³ææ¾ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int DynamicBxAreaRule_getImmediatePlay(byte* immediate, uint arearule); |
| | | |
| | | //åå¾è¿è¡æ¨¡å¼ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int DynamicBxAreaRule_getRunMode(uint arearule); |
| | | |
| | | //åå¾å¨æåºæ°æ®è¶
æ¶æ¶é´ï¼åä½ä¸ºç§ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int DynamicBxAreaRule_getTimeout(uint arearule); |
| | | |
| | | //å徿¯å¦å
³èå
¨é¨èç® |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int DynamicBxAreaRule_isRelativeAllPrograms(uint arearule); |
| | | |
| | | //设å®å¨æåºç¼å· |
| | | // id - 卿åºç¼å· |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int DynamicBxAreaRule_setId(uint arearule, int id); |
| | | |
| | | //è®¾å®æ¯å¦ç«å³ææ¾ |
| | | // immediateplay - æ¯å¦ç«å³ææ¾ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int DynamicBxAreaRule_setImmediatePlay(uint arearule, byte immediateplay); |
| | | |
| | | //è®¾å®æ¯å¦å
³èå
¨é¨èç® |
| | | // relativeallprograms - æ¯å¦å
³èå
¨é¨èç® |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int DynamicBxAreaRule_setRelativeAllPrograms(uint arearule, bool relativeallprograms); |
| | | |
| | | //设å®å¨æåºè¿è¡æ¨¡å¼ |
| | | // runmode - è¿è¡æ¨¡å¼ 0ï¼å¾ªç¯æ¾ç¤ºã 1ï¼æ¾ç¤ºå®æå鿢æ¾ç¤ºæåä¸é¡µæ°æ®ã 2ï¼å¾ªç¯æ¾ç¤ºï¼è¶
è¿è®¾å®æ¶é´åæ°æ®ä»æªæ´æ°æ¶ä¸åæ¾ç¤ºã 3ï¼å¾ªç¯æ¾ç¤ºï¼è¶
è¿è®¾å®æ¶é´åæ°æ®ä»æªæ´æ°æ¶æ¾ç¤º Logoä¿¡æ¯ã 4ï¼å¾ªç¯æ¾ç¤ºï¼æ¾ç¤ºå®æåä¸é¡µåå°±ä¸åæ¾ç¤ºã |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int DynamicBxAreaRule_setRunMode(uint arearule, byte runmode); |
| | | |
| | | //设å®å¨æåºæ°æ®è¶
æ¶æ¶é´ï¼åä½ä¸ºç§ |
| | | // timeout - å¨æåºæ°æ®è¶
æ¶æ¶é´ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int DynamicBxAreaRule_setTimeout(uint arearule, int timeout); |
| | | |
| | | //åå»ºèæ¯åº |
| | | // x - xåæ |
| | | // y - yåæ |
| | | // width - åºå宽度 |
| | | // heigth - åºåé«åº¦ |
| | | // profile - å±å¹è§æ ¼ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_BackgroundBxArea(uint* area, int x, int y, int width, int heigth, uint profile); |
| | | |
| | | //åå»ºæ¢¯åº¦èæ¯åº |
| | | // x - xåæ |
| | | // y - yåæ |
| | | // width - åºå宽度 |
| | | // heigth - åºåé«åº¦ |
| | | // profiel - å±å¹è§æ ¼ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_GradientBackgroundBxArea(uint* area, int x, int y, int width, int heigth, uint profiel); |
| | | |
| | | //åæ§å¶å¨é讯çç¸å
³æ¥å£ |
| | | //忥æ¹å¼å°èç®åå
¥æ§å¶å¨ |
| | | // program - èç® |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxScreen_writeProgram(uint screen, uint program); |
| | | |
| | | //忥æ¹å¼å°èç®åå
¥æ§å¶å¨ï¼æ¬æ¹æ³ä¸å任使£æ¥ |
| | | // program - èç® |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxScreen_writeProgramQuickly(uint screen, uint program); |
| | | |
| | | //忥æ¹å¼å°èç®åå
¥æ§å¶å¨ |
| | | // programarrary - èç®ç»æ°ç» |
| | | // programcount - èç®ç»æ°é |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxScreen_writePrograms(uint screen, uint* programarray, uint programcount); |
| | | |
| | | //æ´æ°å¨æåº |
| | | //è¿åæ§è¡ç»æ |
| | | // rule - å¨æåºææ¾æ¹å¼ |
| | | // area - å¨æåº |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxScreen_writeDynamic(uint* result, uint screen, uint rule, uint area); |
| | | |
| | | //æ´æ°æ§å¶å¨ä½åï¼æ¤ä½åç¨äºæ è¯æ§å¶å¨ï¼ä¸çåäºTCPä½åï¼xxx.xxx.xxx.xxxï¼ |
| | | // p1 - æ§å¶å¨ä½åï¼2bytesã |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxScreen_writeControllerAddress(uint* result, uint screen, ushort p1); |
| | | |
| | | //忥æ¹å¼å°å±å¹åæ°åå
¥æ§å¶å¨ |
| | | // ccf - å±å¹åæ° |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxScreen_writeConfig(uint screen, uint ccf); |
| | | |
| | | //è§£é¤éå®èç® |
| | | //è¿åæ§è¡ç»æ |
| | | // programname - èç®åç§° |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxScreen_unlockProgram2(uint* result, uint screen, string programname); |
| | | |
| | | //è§£é¤èç®éå® |
| | | //è¿åæ§è¡ç»æ |
| | | // programid - èç®id 0-999 |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxScreen_unlockProgram(uint* result, uint screen, int programid); |
| | | |
| | | //è§£é¤å±å¹éå® |
| | | //è¿åæ§è¡ç»æ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxScreen_unlock(uint* result, uint screen); |
| | | |
| | | //强å¶å¼å¯å±å¹ |
| | | //è¿åæ§è¡ç»æ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxScreen_turnOn(uint* result, uint screen); |
| | | |
| | | //强å¶å
³éèç® |
| | | //è¿åæ§è¡ç»æ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxScreen_turnOff(uint* result, uint screen); |
| | | |
| | | //æ ¡æ£ç³»ç»æ¶é |
| | | //è¿åæ§è¡ç»æ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxScreen_syncTime(uint* result, uint screen); |
| | | |
| | | //åæ¢è³æå¡å¨æ¨¡å¼ï¼æ§è¡æååï¼ä¼å°å½åè¿çº¿åæ |
| | | //è¿åæ§è¡ç»æ |
| | | // staticsetting - ç½ç»ä½å设置 |
| | | // serversetting - æå¡å¨åºç¨ç¨å¼è®¾ç½® |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxScreen_switch2ServerMode(uint* result, uint screen, uint staticsetting, uint serversetting); |
| | | |
| | | //忢è³ä¸è¬ç½ç»æ¨¡å¼ï¼æ§è¡æååï¼ä¼å°å½åè¿çº¿åæ |
| | | //è¿åæ§è¡ç»æ |
| | | // staticsetting - ç½è·¯ä½å设置 |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxScreen_switch2ClientMode(uint* result, uint screen, uint staticsetting); |
| | | |
| | | //设å®å®æ¶å¼å
³æº |
| | | //è¿è´§æ§è¡ç»æ |
| | | // cmd - 宿¶å¼å
³æºï¼å©ç¨createTimingOnOffæ¹æ³äº§ç并设å®å®æ¶å¼å
³æºåºé´ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxScreen_setupTimingOnOff(uint* result, uint screen, uint cmd); |
| | | |
| | | //设å®å±å¹åç§° |
| | | // aliasname - å±å¹åç§° |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxScreen_setAliasName(uint screen, string aliasname); |
| | | |
| | | //ä¿®æ¹ä¼ æå¨æ ¹æ®å®¢å¶åä¼ æå¨è°æ´äº®åº¦ |
| | | //è¿åæ§è¡ç»æ |
| | | // env - 客å¶åä¼ æå¨äº®åº¦æ¡ä»¶ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxScreen_sensorBrightness2(uint* result, uint screen, uint env); |
| | | |
| | | //ä¿®æ¹ä¼ æå¨èªå¨è°æ´äº®åº¦ |
| | | //è¿åæ§è¡ç»æ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxScreen_sensorBrightness(uint* result, uint screen); |
| | | |
| | | //ç³»ç»å¤ä½ï¼å¤ä½åéè¦éæ°å è½½å±å¹åæ° |
| | | //è¿åæ§è¡ç»æ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxScreen_reset2Factory(uint* result, uint screen); |
| | | |
| | | //æ¥è¯¢ç®åæ§å¶å¨ä¸çèç®æ¸
å |
| | | //è¿åèç®æ¸
å |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxScreen_readProgramList(uint* programlist, uint screen); |
| | | |
| | | //忥æ¹å¼è¯»åæ§å¶ä¸çæ¡£æ¡å¹¶ä¿å卿¬å° |
| | | //è¿åèç® |
| | | // programname - èç®åç§° |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxScreen_readProgram2(uint* progam, uint screen, string programname); |
| | | |
| | | //忥æ¹å¼è¯»åæ§å¶ä¸çæ¡£æ¡å¹¶ä¿å卿¬å° |
| | | //è¿åèç® |
| | | // programid - èç®ç¼å· 0-999 |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxScreen_readProgram(uint* program, uint screen, int programid); |
| | | |
| | | //è¯»åæ§å¶å¨ç¼å· |
| | | //è¿åæ§è¡ç»æ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxScreen_readControllerId(uint* result, uint screen); |
| | | |
| | | //忥æ¹å¼è¯»åæ§å¶å¨ä¸çå±å¹åæ° |
| | | //è¿åå±å¹åæ° |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxScreen_readConfig(uint* ccf, uint screen); |
| | | |
| | | //PINGæ§å¶å¨ |
| | | //è¿åæ§è¡ç»æ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxScreen_ping(uint* result, uint screen); |
| | | |
| | | //ä¿®æ¹äº®åº¦ãäº®åº¦å¼ 0x00-0x0f |
| | | //è¿åæ§è¡ç»æ |
| | | // level - 亮度 |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxScreen_manualBrightness(uint* result, uint screen, byte level); |
| | | |
| | | //éå®èç® |
| | | //è¿åæ§è¡ç»æ |
| | | // programname - èç®åç§° |
| | | // lockduration - éå®ç§æ° |
| | | // nonvolatile - æçµä¿åæ¹å¼ã0x00ï¼æçµä¸ä¿å 0X01ï¼æçµä¿å |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxScreen_lockProgram4(uint* result, uint screen, string programname, int lockduration, byte nonvolatile); |
| | | |
| | | //éå®èç® |
| | | //è¿åæ§è¡ç»æ |
| | | // programname - èç®åç§° |
| | | // lockduration - éå®ç§æ° |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxScreen_lockProgram3(uint* result, uint screen, string programname, int lockduration); |
| | | |
| | | //éå®èç® |
| | | //è¿åæ§è¡ç»æ |
| | | // progamid - èç®id 0-999 |
| | | // lockduration - éå®ç§æ° |
| | | // nonvolatile - æçµä¿åæ¹å¼ã0x00ï¼æçµä¸ä¿å 0x01ï¼æçµä¿å |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxScreen_lockProgram2(uint* result, uint screen, int programid, int lockduration, byte nonvolatile); |
| | | |
| | | //éå®èç® |
| | | //è¿åæ§è¡ç»æ |
| | | // programid - èç®ç¼å· 0-999 |
| | | // lockduration - éå®ç§æ° |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxScreen_lockProgram(uint* result, uint screen, int programid, int lockduration); |
| | | |
| | | //éå®å±å¹ |
| | | //è¿åæ§è¡ç»æ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxScreen_lock(uint* result, uint screen); |
| | | |
| | | //æ¯å¦å·²ç»è¿çº¿ |
| | | //è¿åè¿çº¿ä¸å¦ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxScreen_isConnected(bool* isconnected, uint screen); |
| | | |
| | | //åå¾è¿è¡æ¨¡å¼ |
| | | //è¿åè¿è¡æ¨¡å¼ 0: CLIENT 1: SERVER, 2: RS232, |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxScreen_getRunMode(int* mode, uint screen); |
| | | |
| | | //åå¾netç¼å·ï¼ONBONå
é¨å¯ä¸è¯å«ç |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxScreen_getNetId(uint* netid, uint screen); |
| | | |
| | | //å徿§å¶å¨ç±»å |
| | | //è¿åæ§å¶å¨ç±»å |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxScreen_getControllerType(uint scrren); |
| | | |
| | | //å徿§å¶å¨ä½å |
| | | //è¿åæ§å¶å¨ä½å |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxScreen_getControllerAddress(ushort* address, uint screen); |
| | | |
| | | //å徿§å¶å¨ |
| | | //è¿åæ§å¶å¨ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxScreen_getController(uint* controller, uint screen); |
| | | |
| | | //åå¾å±å¹åç§° |
| | | //è¿åå±å¹åç§° |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxScreen_getAlisaName(uint screen); |
| | | |
| | | //discoveræ§å¶å¨ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxScreen_discover(uint* result, uint screen); |
| | | |
| | | //å 餿§å¶å¨ä¸çç¹å®èç®ç» |
| | | //è¿åæ§è¡ç»æ |
| | | // programs - æ§å¶å¨ä¸çç¹å®èç®ç» |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxScreen_deletePrograms2(uint* result, uint screen, string programs); |
| | | |
| | | //å 餿§å¶å¨ä¸çææèç® |
| | | //è¿åæ§è¡ç»æ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxScreen_deletePrograms(uint* result, uint screen); |
| | | |
| | | //å 餿§å¶å¨ä¸çç¹å®èç® |
| | | //è¿åæ§è¡ç»æ |
| | | // program - æ§å¶å¨ä¸çç¹å®èç® |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxScreen_deleteProgram2(uint* result, uint screen, string program); |
| | | |
| | | //å 餿§å¶å¨ä¸çç¹å®èç® |
| | | //è¿åæ§è¡ç»æ |
| | | // programid - èç®ç¼å· |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxScreen_deleteProgram(uint* result, uint screen, int programid); |
| | | |
| | | //å é¤å¨æåº |
| | | //è¿åæ§è¡ç»æ |
| | | // p1 |
| | | // p2 |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxScreen_deleteDynamic(uint* result, uint screen, byte* p1, uint p2); |
| | | |
| | | //å 餿æå¨æåº |
| | | //è¿åæ§è¡ç»æ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxScreen_deleteAllDynamic(uint* result, uint screen); |
| | | |
| | | //建ç«å®æ¶å¼å
³æºã设å®å®æ¶å¼å
³æºåºé´åæ§è¡setupTimingOnOffå°ç»æä¼ éè³æ§å¶å¨ |
| | | //è¿å宿¶å¼å
³æº |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxScreen_createTimingOnOff(uint* onoff, uint screen); |
| | | |
| | | //ä¿®æ¹æ ¹æ®æ¶é´è°æ´äº®åº¦ |
| | | //è¿åæ§è¡ç»æ |
| | | // p1 |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxScreen_clockBrightness(uint* result, uint screen, uint p1); |
| | | |
| | | //æ¥è¯¢æä»¶ç³»ç»å®¹é |
| | | //è¿åæ§è¡ç»æ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxScreen_checkMemVolumes(uint* result, uint screen); |
| | | |
| | | //æ¥è¯¢å½ååºä»¶ç¶æ |
| | | //è¿åæ§è¡ç»æ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxScreen_checkFirmware(uint* result, uint screen); |
| | | |
| | | //æ¥è¯¢æ§å¶å¨ç¶æ |
| | | //è¿åæ§è¡ç»æ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxScreen_checkControllerStatus(uint* result, uint screen); |
| | | |
| | | //æ¹åè¾åºç¼å大å°ãææèå´512Bytes-65KBãæ³¨æï¼æ¹åç¼å大å°å请确认æ§å¶å¡å¯æ¥åä¸éï¼è¶
è¿ä¼é ææ§å¶å¡è¿ä½å¤±è´¥ã |
| | | // buffersize - ç¼åå¤§å° |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxScreen_changeOutputBuffer(uint screen, int buffersize); |
| | | |
| | | //忶宿¶å¼å
³æº |
| | | //è¿åæ§è¡ç»æ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxScreen_cancelTimingOnOff(uint* result, uint screen); |
| | | |
| | | //æ¯å¦é¾æ¶ |
| | | //è¿å trueï¼è¥å½ä»¤ååºé¾æ¶ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxResponseCmd_isTimeout(uint cmd); |
| | | |
| | | //夿å½ä»¤æ¯å¦è¢«æ£ç¡®æ§è¡ |
| | | //è¿å trueï¼å½ä»¤è¢«æ£ç¡®æ§è¡å¹¶ååºå¯¹åºç»æãfalseï¼ååºä¸ºNACKæé¾æ¶ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxResponseCmd_isOK(uint cmd); |
| | | |
| | | //ååºæ¯å¦ä¸ºNACK |
| | | //è¿åtrueï¼è¥ååºä¸ºNACK |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxResponseCmd_isNACK(uint cmd); |
| | | |
| | | //åå¾é误ç |
| | | //è¿åé误ç |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxResponseCmd_getErrorType(uint cmd); |
| | | |
| | | |
| | | |
| | | //åæ§å¶å¨æå¼è¿æ¥ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxScreen_disconnect(uint screen); |
| | | |
| | | //è¾åºæ¥å£ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int FObject_dump(uint dump); |
| | | |
| | | //è¾åºæ¥å£ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int FObject_dump(int dump); |
| | | |
| | | //è¾åºæ¥å£ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int FObject_dump(bool dump); |
| | | |
| | | // |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int FObject_release(uint release); |
| | | |
| | | //é¢è²æ¥å£ |
| | | // reb - 红 |
| | | // green - 绿 |
| | | // blue - è |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_FColor(uint* foreground, byte red, byte green, byte blue); |
| | | |
| | | //å建åä½ |
| | | // fontname - åä½åç§°ï¼æ¯å¦âå®ä½â |
| | | // fontsize - åä½é«åº¦ï¼åç´ ç¹ |
| | | // italic - æ¯å¦æä½ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_FFont(uint* font, string fongname, uint fontsize, bool italic); |
| | | |
| | | //å建æ¾ç¤ºç¹æ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_DisplayStyleFactory(uint* style); |
| | | |
| | | //å
¶ä»æ¥å£ |
| | | //设å®äº®åº¦æ¡ä»¶ |
| | | // indexvalue - åå°æ¶ç´¢å¼ 0-47 ï¼00ï¼00 - 00ï¼29ï¼-ï¼23ï¼30-23ï¼59ï¼ |
| | | // brightness - 亮度 1-16 |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxBrightnessClockEnv_setup(uint h, byte indexvalue, byte brightness); |
| | | |
| | | //设å®äº®åº¦æ¡ä»¶ |
| | | // brightnesslevel - 亮度ç级 0-15 |
| | | // environment - ç¯å¢äº®åº¦å¼ 0-65536 |
| | | // brightness - 亮度 1-16 |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxBrightnessSensorEnv_setup(uint h, byte brightnesslevel, ushort environment, byte brightness); |
| | | |
| | | //å¾å°å½åä¼ æå¨çäº®åº¦å¼ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int ReturnBrightnessValue_Data(uint* data, uint brigthness); |
| | | |
| | | // |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int ReturnControllerStatus_Brightness(byte* brightness, uint controller); |
| | | |
| | | // |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int ReturnControllerStatus_BrightnessAdjMode(byte* mode, uint controller); |
| | | |
| | | //建ç«è¯¥æ§å¶å¨æ¡£æ¡é
读ç¨å¼ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxController_createFileReader(uint controller); |
| | | |
| | | //建ç«è¯¥æ§å¶å¨æ¡£æ¡åå
¥ç¨å¼ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxController_createFileWriter(uint controller); |
| | | |
| | | //䏿è¿çº¿ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxController_disconnect(uint controller); |
| | | |
| | | //æ§è¡å½ä»¤ |
| | | // cmd - å½ä»¤ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxController_execute(uint* result, uint controller, uint cmd); |
| | | |
| | | //è·åBXä¿¡æ¯ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxController_getBx(uint* bx, uint controller); |
| | | |
| | | //å徿§å¶å¨ä½å |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxController_getControllerAddress(uint controller); |
| | | |
| | | //åå¾åç§° |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxController_getName(uint controller); |
| | | |
| | | //åå¾è¾åºç¼åå¤§å° |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxController_getOutputBuffer(uint controller); |
| | | |
| | | //åå¾è¿è¡æ¨¡å¼ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxController_getRunMode(uint controller); |
| | | |
| | | //åå¾å±å¹è§æ ¼ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxController_getScreenProfile(uint* profile, uint controller); |
| | | |
| | | //å徿§å¶å¨ç³»åå¨è¯¢ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxController_getSeries(uint controller); |
| | | |
| | | //å徿¯å¦è¿çº¿ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxController_isConnected(uint controller); |
| | | |
| | | //è®¾å®æ§å¶å¨ä½åï¼æ¤ä½åç¨äºæ è¯æ§å¶å¨ï¼ä¸çåäºTCPä½åï¼xxx.xxx.xxx.xxxï¼ |
| | | // addr - æ§å¶å¨ä½åï¼2bytes |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxController_setControllerAddress(uint controller, ushort addr); |
| | | |
| | | //å¯å¨ |
| | | // p1 - ä½å |
| | | // p2 - 端å£å· |
| | | // p3 - æ¯å¦ä¸ºTCP |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxControllerClient_connect(bool* err, uint controller, string p1, int p2, bool p3); |
| | | |
| | | //åå¾åç§° |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxControllerClient_getName(uint controller); |
| | | |
| | | //åå¾è¿è¡æ¨¡å¼ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxControllerClient_getRunMode(uint controller); |
| | | |
| | | //è¿çº¿ |
| | | // comname - comåç§° |
| | | // baudrate - æ³¢ç¹ç |
| | | // databits - 忢ä½å
|
| | | // parity - å使£æ¥ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxControllerRS_connect(uint controller, string comname, uint baudrate, byte databits, byte parity); |
| | | |
| | | //åå§å |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxEnv_initial(uint env); |
| | | |
| | | //åå§å |
| | | // log4jfile - log4jé
ç½®æ¡£æ¡ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxEnv_initial2(uint env, string log4jfile); |
| | | |
| | | //åå§å |
| | | // log4jfile - log4jé
ç½®æ¡£æ¡ |
| | | // timeout - é讯è¶
æ¶æ¶é´ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxEnv_initial3(uint env, string log4file, int timeout); |
| | | |
| | | //å徿件åç§° |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxFile_getFileName(uint file); |
| | | |
| | | //åå¾æä»¶ç±»å |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxFile_getFileType(uint file); |
| | | |
| | | //è¯»åæ§å¶å¨ä¸ç®åç¹å®ç±»åçæä»¶æ¸
å |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxFileReader_browse(uint* browse, uint file); |
| | | |
| | | //è¯»åæ§å¶å¨ä¸ç®åç¹å®ç±»åçæä»¶æ¸
å |
| | | // filetype - NULL表示å
¨é¨çæä»¶éç±» |
| | | // dirsize - 䏿¬¡æå¤è¯»åå¤å°ä¸ªæä»¶ç®å½ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxFileReader_browse2(uint* browse, uint file, uint filetype, byte dirsize); |
| | | |
| | | //åæ¥è¯»åæ§å¶å¨ä¸çèç® |
| | | // programid - èç®ç¼å· 0-999 |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxFileReader_readProgram(uint* program, uint file, int programid); |
| | | |
| | | //è¯»åæ§å¶å¨ä¸çèç®å¹¶åæ¡£ |
| | | // programid - èç®ç¼å· 0-999 |
| | | // savepath - æ¬å°åå¨å®æ´çæ¡£æ¡åç§° |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxFileReader_readProgram2(uint file, int programid, string savepath); |
| | | |
| | | //åæ¥è¯»åæ§å¶å¨ä¸çèç® |
| | | // programfile - èç®åç§° |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxFileReader_readProgram3(uint* program, uint file, string programfile); |
| | | |
| | | //è¯»åæ§å¶å¨ä¸çèç®å¹¶åæ¡£ |
| | | // programfile - èç®åç§° |
| | | // savefile - æ¬å°åå¨å®æ´çæ¡£æ¡åç§° |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxFileReader_readProgram4(uint file, string programfile, string savepath); |
| | | |
| | | //éåæ¥è¯»åç©ºæ¶æä¸çèç® |
| | | // programid - èç®ç¼å· 0-999 |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxFileReader_readProgramAsync(uint file, int programid); |
| | | |
| | | //éåæ¥è¯»åæ§å¶å¨ä¸çèç®å¹¶åæ¡£ |
| | | // programid - èç®ç¼å· 0-999 |
| | | // savepath - æ¬å°åå¨å®æ´çæ¡£æ¡åç§° |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxFileReader_readProgramAsync2(uint file, int programid, string savepath); |
| | | |
| | | //éåæ¥è¯»åæ§å¶å¨ä¸çèç® |
| | | // programfile - èç®åç§° |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxFileReader_readProgramAsync3(uint file, string programfile); |
| | | |
| | | //éåæ¥è¯»åæ§å¶å¨ä¸çèç®å¹¶åæ¡£ |
| | | // programfile - èç®åç§° |
| | | // savepath - æ¬å°åå¨å®æ´çæ¡£æ¡åç§° |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxFileReader_readProgramAsync4(uint file, string programfile, string savepath); |
| | | |
| | | //åæ¥è¯»åæ§å¶å¨ä¸çèç® |
| | | // programfile - èç®åç§° |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxFileReader_readProgramData(uint* program, uint file, string programfile); |
| | | |
| | | //忥å°å±ååå
¥æ§å¶å¨ |
| | | // ccf - å±å¹åæ° |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxFileWrite_writeConfig(uint file, uint ccf); |
| | | |
| | | //主循ç¯åè° |
| | | // p1 - åè°å½æ° |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxServerListener_setLoopCallback(uint h, ONBON_CALLBACK p1); |
| | | |
| | | //æçº¿åè° |
| | | // p1 - åè°å½æ° |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxServerListener_setDisconnectedCallback(uint h, ONBON_CALLBACK p1); |
| | | |
| | | //è¿çº¿åè° |
| | | // p1 - åè°å½æ° |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxServerListener_setConnectedCallback(uint h, ONBON_CALLBACK p1); |
| | | |
| | | //忢æå¡ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxServer_stop(uint server); |
| | | |
| | | //å¼å¯æå¡ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxServer_start(uint server); |
| | | |
| | | //ç§»é¤çå¬å¨ |
| | | // listener - çå¬å¨ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxServer_removeListener(uint server, uint listener); |
| | | |
| | | //æå¡å¨ä¸»å¾ªç¯ |
| | | // p1 |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxServer_loop(uint server, bool p1); |
| | | |
| | | //åå¾ä¸çº¿çå±å¹æ§å¶ç¨å¼ |
| | | // socketid - socketç¼å·ï¼è¯å«ç¼å·ï¼ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxServer_getOnlineScreenBySocketId(uint* id, uint server, string socketid); |
| | | |
| | | //æ ¹æ®netç¼å·ææ¯GPRSçDTUç¼å·åå¾å
ä¸çå±å¹æ§å¶ç¨å¼ |
| | | // netid - æ§å¶å¨netç¼å·ææ¯GPRSçDTUç¼å· |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxServer_getOnlineScreenByNetId(uint* id, uint server, string netid); |
| | | |
| | | //æ¸
餿æçå¬å¨ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxServer_clearListeners(uint server); |
| | | |
| | | //å¢å çå¬å¨ |
| | | // listener - çå¬å¨ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxServer_addListener(uint server, uint listener); |
| | | |
| | | //æ£æ¥æ¯å¦å¯è¿è¡å·¥ä½ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxScreenServer_isReady(bool* isready, uint server); |
| | | |
| | | //åå¾TCPéè®¯ç«¯å£ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxScreenServer_getPort(ushort* port, uint server); |
| | | |
| | | //åå¾è¯å«ç¼å·ï¼çäºsocketç¼å· |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxScreenServer_getId(int* id, uint server); |
| | | |
| | | //åå¾TCPä½å |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxScreenServer_getAddress(uint server); |
| | | |
| | | // |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxScreenServer_accept(uint server); |
| | | |
| | | //设å®åå»è®¾ç¹éµç±»å |
| | | // matrixtype - åå»è²ç¹éµç±»å |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxScreenProfile_setMatrixType(uint screen, int matrixtype); |
| | | |
| | | //å徿¯å¦ä¸ºå
¨å½© |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxScreenProfile_isFullColor(uint screen); |
| | | |
| | | //åå¾å±å¹å®½åº¦ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxScreenProfile_getWidth(uint screen); |
| | | |
| | | //åå¾ååºè²ç¹éµç±»å |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxScreenProfile_getMatrixType(uint screen); |
| | | |
| | | //åå¾å±å¹é«åº¦ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxScreenProfile_getHeigth(uint screen); |
| | | |
| | | //åå¾åºè²ç±»å |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxScreenProfile_getColorType(uint screen); |
| | | |
| | | //åå¾è½¬æ¢æè²ç |
| | | // color - é¢è² |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxScreenProfile_encodeColor(uint screen, uint color); |
| | | |
| | | //åå¾è½¬æ¢æé¢è² |
| | | // color - è²ç |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxScreenProfile_decodeColor(uint screen, uint color); |
| | | |
| | | // |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BxScreenProfile_createMessageConst(uint screen); |
| | | |
| | | //å建亮度 |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_BxBrightnessClockEnv(uint* brightness); |
| | | |
| | | //åå»ºäº®åº¦ä¼ æå¨ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_BxBrightnessSensorEnv(uint* brightnesssensor); |
| | | |
| | | // |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_BxEnv(uint* bxenv); |
| | | |
| | | //å建page页 |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_BxPage(uint* page); |
| | | |
| | | //åå»ºå®æ¶å¼å
³æºå½ä»¤ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_CancelScreenTimingOnOffCmd(uint* cmd); |
| | | |
| | | //åå»ºæ£æ¥æ§å¶å¨ç¶æå½ä»¤ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_CheckControllerStatusCmd(uint* cmd); |
| | | |
| | | //åå»ºæ£æ¥å½ååºä»¶å½ä»¤ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_CheckCurrentFirmwareCmd(uint* cmd); |
| | | |
| | | //åå»ºæ£æ¥FPGAç¶æå½ä»¤ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_CheckFPGAStatusCmd(uint* cmd); |
| | | |
| | | //å建å é¤å¨æåºå½ä»¤ |
| | | // isall æ¯å¦å
¨é¨å é¤ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_DeleteDynamicAreaCmd(uint* cmd, bool isall); |
| | | |
| | | //å建å é¤å¨æåºå½ä»¤ |
| | | // index - 卿åºç¼å· |
| | | // size - 卿åºå¤§å° |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_DeleteDynamicAreaCmd2(uint* cmd, byte* index, uint size); |
| | | |
| | | //å建å é¤å¯ç å½ä»¤ |
| | | // secret - æ§å¯ç |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_DeleteSecretCmd(uint* cmd, byte* secret); |
| | | |
| | | //å建æä»¶å é¤å½ä»¤ |
| | | // ofs - æ¯å¦ä¸ºèç®ç±»åæ¡£æ¡ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_FileDeleteCmd(uint* cmd, bool ofs); |
| | | |
| | | //å建è·å亮度å¼å½ä»¤ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_GetBrightnessValueCmd(uint* cmd); |
| | | |
| | | //å建è·åé³éå¼å½ä»¤ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_GetMemVolumeCmd(uint* cmd); |
| | | |
| | | //å建 |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_GetTransStatusCmd(uint* cmd); |
| | | |
| | | //设å®ä½¿ç¨ä¼ æå¨èªå¨æ£æµäº®åº¦ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_ModifyBrightnessCmd(uint* cmd); |
| | | |
| | | //è®¾å®æå¨äº®åº¦ |
| | | // brightness - 亮度 0X00-0X0F |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_ModifyBrightnessCmd2(uint* cmd, byte brightness); |
| | | |
| | | //设å®å®æ¶äº®åº¦ |
| | | // p1 - 亮度æ¡ä»¶ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_ModifyBrightnessCmd3(uint* cmd, uint p1); |
| | | |
| | | //å®å¶åä¼ æå¨äº®åº¦ã |
| | | // env - 亮度æ¡ä»¶ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_ModifyBrightnessCmd4(uint* cmd, uint env); |
| | | |
| | | //å建快é设置å°åå½ä»¤ |
| | | // screenno - å±å· |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_QuicklySetAddrCmd(uint* cmd, ushort screenno); |
| | | |
| | | //å建快é设置åç§°å½ä»¤ |
| | | // name - åç§° |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_QuicklySetNameCmd(uint* cmd, string name); |
| | | |
| | | //åå»ºè¯»åæ§å¶å¨IDå½ä»¤ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_ReadControllerIDCmd(uint* cmd); |
| | | |
| | | //å建读åçæä¿¡æ¯å½ä»¤ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_ReadCopyrightInfoCmd(uint* cmd); |
| | | |
| | | // |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_ReadDirBlockCmd(uint* cmd, ushort p1); |
| | | |
| | | // |
| | | // p1 |
| | | // p2 |
| | | // p3 |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_ReadFileBlockCmd(uint* cmd, bool p1, string p2, uint p3); |
| | | |
| | | //å建éå±å½ä»¤ |
| | | // p1 - æ¯å¦æçµä¿å |
| | | // p2 - æ¯å¦éå® |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_ScreenLockCmd(uint* cmd, bool p1, bool p2); |
| | | |
| | | //åå»ºå®æ¶å¼å
³å±å½ä»¤ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_ScreenTimingOnOffCmd(uint* cmd); |
| | | |
| | | //å建设置æ¡ç å½ä»¤ |
| | | // barcode - æ¡ç |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_SetBarCodeCmd(uint* cmd, byte* barcode); |
| | | |
| | | //å建设置å¯ç å½ä»¤ |
| | | // p1 - 6åèæ§å¯ç |
| | | // p2 - 6åèæ°å¯ç |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_SetSecretCmd(uint* cmd, byte* p1, byte* p2); |
| | | |
| | | //å建设置å°åå½ä»¤ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_SetupAddressCmd(uint* cmd); |
| | | |
| | | //å建设置MACå°åå½ä»¤ |
| | | // p1 - |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_SetupMACCmd(uint* cmd, byte* p1); |
| | | |
| | | //å建å¼å§è¯»åç®å½å½ä»¤ |
| | | // filetype - æä»¶ç±»å |
| | | // dirsize - æä»¶ç®å½åå¤§å° |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_StartReadDirCmd(uint* cmd, byte filetype, byte dirsize); |
| | | |
| | | //å建å¼å§è¯»åæä»¶å½ä»¤ |
| | | // ofs - æ¯å¦ä¸ºèç®ç±»åæ¡£æ¡ |
| | | // p2 - |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_StartReadFileCmd(uint* cmd, bool ofs, string p2); |
| | | |
| | | // |
| | | // p1 - æ¯å¦å¼å¯ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_SwitchOnOffScreenCmd(uint* cmd, bool p1); |
| | | |
| | | //å建系ç»éå®å½ä»¤ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_SystemClockCorrectCmd(uint* cmd); |
| | | |
| | | //å建系ç»éç½®å½ä»¤ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_SystemResetCmd(uint* cmd); |
| | | |
| | | //åå»ºæ´æ°å¨æåºå½ä»¤ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_UpdateDynamicAreaCmd(uint* cmd); |
| | | |
| | | //å建æ§å¶å¡é
ç½®æä»¶ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_ControllerConfigBxFile(uint* file); |
| | | |
| | | //å徿宿 ·å¼ |
| | | // styleid - æ ·å¼ç¼å·: 0:éæºæ¾ç¤º;1:鿢æ¾ç¤º;2:å¿«éæåº;3:å左移å¨;4:åå·¦è¿ç§»;5:åä¸ç§»å¨; 6:åä¸è¿ç§»;7:éªç;8:é£éª;9:åæ³¡;10:ä¸é´ç§»å¨; 11:å·¦å³ç§»å
¥;12:å·¦å³äº¤åç§»å
¥;13:ä¸ä¸äº¤åç§»å
¥;14:ç»å·éå;15:ç»å·æå¼; 16:åå·¦æä¼¸;17:å峿伏;18:å䏿伏;19:å䏿伏;20:åå·¦éå°; 21:åå³éå°;22:åä¸éå°;23:åä¸éå°;24:å·¦å³äº¤åæå¹;25:ä¸ä¸äº¤åæå¹; 26:忣左æ;27:æ°´å¹³ç¾å¶;28:åç´ç¾å¶;29:åå·¦æå¹;30:å峿å¹; 31:å䏿å¹;32:å䏿å¹;33:å·¦å³éå;34:å·¦å³å¯¹å¼;35:ä¸ä¸éå; 36:ä¸ä¸å¯¹å¼;37:åå³ç§»å¨;38:åå³è¿ç§»;39:åä¸ç§»å¨;40:åä¸è¿ç§»; 41:45度左æ;42:180度左æ;43:90度左æ;44:45åº¦å³æ;45:180åº¦å³æ; 46:90åº¦å³æ;47:è±å½¢æå¼;48:è±å½¢éå |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int DisplayStyleFactory_getStyle(uint* style, uint displaystyle, int styleid); |
| | | |
| | | //å建æä»¶æ ¼å¼ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_FileType(uint* filetype); |
| | | |
| | | //åå¾è¾¹æ¡ç§»å¨æ¥é¿ï¼åä½ä¸ºpixelï¼èå´ 1-16 |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int FFrame_getFrameMoveStep(uint* movestep, uint frame); |
| | | |
| | | //åå¾è¾¹æ¡æ¾ç¤ºé度 é度 1-48 |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int FFrame_getFrameSpeed(byte* speed, uint frame); |
| | | |
| | | //åå¾è¾¹æ¡æ¾ç¤ºææ 0ï¼éªçã 1ï¼é¡ºæ¶é转å¨ã 2ï¼éæ¶é转å¨ã 3ï¼éªç并顺æ¶é转å¨ã 4ï¼éªçå¹¶éæ¶é转å¨ã 5ï¼çº¢ç»¿äº¤æ¿éªçã 6ï¼çº¢ç»¿äº¤æ¿è½¬å¨ã 7ï¼éæ¢æåºã |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int FFrame_getFrameStyle(byte* style, uint frame); |
| | | |
| | | //åå¾è¾¹æ¡å®½åº¦ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int FFrame_getFrameWdith(byte* width, uint frame); |
| | | |
| | | //å徿¯å¦æ¾ç¤ºè¾¹æ¡ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int FFrame_isFrameShow(bool* isshow, uint frame); |
| | | |
| | | //è½½å
¥å
建边æ¡ç¹æåºå¾ |
| | | // styleindex - å
建ææç¼å·ï¼ååºè²1-18 ååºè² 1-14 |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int FFrame_loadFrameImage(byte* image, uint frame, int styleindex); |
| | | |
| | | //设置边æ¡ç§»å¨æ¥é¿ãåä½pixelï¼èå´1-16 |
| | | // movestep - è¾¹æ¡ç§»å¨æ¥é¿ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int FFrame_setFrameMoveStep(uint frame, byte movestep); |
| | | |
| | | //è®¾å®æ¯å¦æ¾ç¤ºè¾¹æ¡ |
| | | // isshow - æ¯å¦æ¾ç¤ºè¾¹æ¡ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int FFrame_setFrameShow(uint frame, bool isshow); |
| | | |
| | | //设å®è¾¹æ¡æ¾ç¤ºé度 |
| | | // speed - è¾¹æ¡æ¾ç¤ºé度 1-48 |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int FFrame_setFrameSpeed(uint frame, byte speed); |
| | | |
| | | //è®¾ç½®è¾¹æ¡æ¾ç¤ºææ |
| | | // framestyle - è¾¹æ¡æ¾ç¤ºææ 0ï¼éªçã 1ï¼é¡ºæ¶é转å¨ã 2ï¼éæ¶é转å¨ã 3ï¼éªç并顺æ¶é转å¨ã 4ï¼éªçå¹¶éæ¶é转å¨ã 5ï¼çº¢ç»¿äº¤æ¿éªçã 6ï¼çº¢ç»¿äº¤æ¿è½¬å¨ã 7ï¼éæ¢æåºã |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int FFrame_setFrameStyle(uint frame, byte framestyle); |
| | | |
| | | //æ·»å éè¦å é¤çæä»¶å |
| | | // filename - æä»¶å |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int FileDeleteCmd_addFileNames(uint cmd, string filename); |
| | | |
| | | // |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_ServerSetting(uint* setting); |
| | | |
| | | // |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_StaticSetting(uint* staticsetting); |
| | | |
| | | // |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int FColor_A(uint h); |
| | | |
| | | // |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int FColor_B(uint h); |
| | | |
| | | // |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int FColor_G(uint h); |
| | | |
| | | // |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int FColor_R(uint h); |
| | | |
| | | // |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int FDate_GetYear(uint h); |
| | | |
| | | // |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int FDate_GetMonth(uint h); |
| | | |
| | | // |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int FDate_GetDay(uint h); |
| | | |
| | | // |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int FDate_GetHour(uint h); |
| | | |
| | | // |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int FDate_GetMinute(uint h); |
| | | |
| | | // |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int FDate_GetSecond(uint h); |
| | | |
| | | // |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int FDate_SetYear(uint h, byte year); |
| | | |
| | | // |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int FDate_SetMonth(uint h, byte month); |
| | | |
| | | // |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int FDate_SetDay(uint h, byte day); |
| | | |
| | | // |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int FDate_SetHour(uint h, byte hour); |
| | | |
| | | // |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int FDate_SetMinuet(uint h, byte minute); |
| | | |
| | | // |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int FDate_SetSecond(uint h, byte second); |
| | | |
| | | // |
| | | // p1 |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Fstrarr_add(uint h, string p1); |
| | | |
| | | // |
| | | // p1 |
| | | // p2 |
| | | // p3 |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Fstrarr_get(uint h, uint p1, byte* p2, int p3); |
| | | |
| | | //è·åå符串 |
| | | // p1 |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int FString_GetBuff(uint h, byte* p1); |
| | | |
| | | //è·åå符串é¿åº¦ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int FString_Size(uint* result, uint h); |
| | | |
| | | // |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Response_getError(uint h); |
| | | |
| | | // |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Response_isACK(uint h); |
| | | |
| | | // |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Response_isNACK(uint h); |
| | | |
| | | //å¾å°æ§å¶å¨IDå¼ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int ReturnControllerID_Data(uint* data, uint controller); |
| | | |
| | | //å¾å°æ§å¶å¨barcode |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int ReturnControllerStatus_BarCode(uint* barcode, uint controller); |
| | | |
| | | // |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int ReturnControllerStatus_curProgram(uint* program, uint controller); |
| | | |
| | | // |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int ReturnControllerStatus_CustomID(uint* id, uint controller); |
| | | |
| | | // |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int ReturnControllerStatus_Humidity(byte* humidity, uint controller); |
| | | |
| | | // |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int ReturnControllerStatus_Noise(ushort* noise, uint controller); |
| | | |
| | | // |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int ReturnControllerStatus_OnOffStatus(byte* status, uint controller); |
| | | |
| | | // |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int ReturnControllerStatus_ProgramLockStatus(byte* status, uint controller); |
| | | |
| | | // |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int ReturnControllerStatus_ProgramNumber(ushort* number, uint controller); |
| | | |
| | | // |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int ReturnControllerStatus_RtcDate(byte* rtcdate, uint controller); |
| | | |
| | | // |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int ReturnControllerStatus_RtcHour(byte* hour, uint controller); |
| | | |
| | | // |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int ReturnControllerStatus_RtcMinute(byte* minute, uint controller); |
| | | |
| | | // |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int ReturnControllerStatus_RtcMonth(byte* momth, uint controller); |
| | | |
| | | // |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int ReturnControllerStatus_RtcSecond(byte* second, uint controller); |
| | | |
| | | // |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int ReturnControllerStatus_RtcStatus(byte* status, uint controller); |
| | | |
| | | // |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int ReturnControllerStatus_RtcWeek(byte* week, uint controller); |
| | | |
| | | // |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int ReturnControllerStatus_RtcYear(byte* year, uint controller); |
| | | |
| | | // |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int ReturnControllerStatus_RunningMode(byte* mode, uint controller); |
| | | |
| | | // |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int RetturnControllerStatus_ScreenLockStatus(byte* status, uint controller); |
| | | |
| | | // |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int ReturnControllerStatus_SwithMode(byte* mode, uint controller); |
| | | |
| | | // |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int ReturnControllerStatus_Temperature1(uint* temperature, uint controller); |
| | | |
| | | // |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int ReturnControllerStatus_Temperature2(uint* temperature, uint controller); |
| | | |
| | | // |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int ReturnControllerStatus_TimingOnOff(byte* onoff, uint controller); |
| | | |
| | | // |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int ReturnCopyrightInfo_Data(uint* data, uint copyrightinfo); |
| | | |
| | | // |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int ReturnMemVolume_TotalMemVolume(uint* volume, uint memvolume); |
| | | |
| | | // |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int ReturnPingStatus_Address(ushort* address, uint status); |
| | | |
| | | // |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int ReturnPingStatus_Barcode(uint* barcode, uint status); |
| | | |
| | | // |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int ReturnPingStatus_Baudrate(uint* baudrate, uint status); |
| | | |
| | | // |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int ReturnPingStatus_ControllerType(ushort* type, uint status); |
| | | |
| | | // |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int ReturnPingStatus_CurrentBright(byte* bright, uint status); |
| | | |
| | | // |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int ReturnPingStatus_CurrentOnOffStatus(byte* onoff, uint status); |
| | | |
| | | // |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int ReturnPingStatus_Firmware(uint* firmware, uint status); |
| | | |
| | | // |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int ReturnPingStatus_Heigth(ushort* heigth, uint status); |
| | | |
| | | // |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int ReturnPingStatus_Width(ushort* width, uint status); |
| | | |
| | | //å¢å 宿¶å¼å
³æºæ¶é´åºæ®µ |
| | | // onhour - 弿ºå°æ¶ |
| | | // onminute - 弿ºåé |
| | | // offhour - å
³æºå°æ¶ |
| | | // offminute - å
³æºåé |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int ScreenTimingOnOffCmd_addTime(uint cmd, byte onhour, byte onminute, byte offhour, byte offminute); |
| | | |
| | | //å徿§å¶å¨è¿æ¥æ¨¡å¼ 0ï¼åæºç´è¿ï¼PC 䏿§å¶å¨ç´æ¥è¿æ¥ï¼ã 1ï¼èªå¨è·åï¼DHCPï¼ã 2ï¼æå¨è®¾ç½®ï¼Static IPï¼ã 3ï¼æå¡å¨æ¨¡å¼ï¼å¨æIPï¼ã |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int SetupAddressCmd_getMode(int* mode, uint cmd); |
| | | |
| | | //å徿å¡å¨å¢¨æ°´ä½åç»æ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int SetupAddressCmd_getServerSetting(uint cmd); |
| | | |
| | | //åå¾éæä½åç»æ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int SetupAddressCmd_getStaticSetting(uint cmd); |
| | | |
| | | //设置æ§å¶å¨è¿æ¥æ¨¡å¼ |
| | | // mode - æ§å¶å¨è¿æ¥æ¨¡å¼ 1ï¼ èªå¨è·åIPï¼DHCPï¼ï¼2ï¼ æå¨è®¾ç½®IPï¼static IPï¼ï¼3ï¼ æå¡å¨æ¨¡å¼ï¼å¨æIPï¼ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int SetupAddressCmd_setMode(uint cmd, byte mode); |
| | | |
| | | //è®¾å®æå¡å¨æ¨¡å¼ä½åç»æ |
| | | // serversetting - æå¡å¨æ¨¡å¼ä½åç»æ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int SetupAddressCmd_setServerSetting(uint cmd, uint serversetting); |
| | | |
| | | //设å®éæä½åç»æ |
| | | // staticsetting - éæä½åç»æ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int SetupAddressCmd_setStaticSetting(uint cmd, uint staticsetting); |
| | | |
| | | //设置ç½å
³ |
| | | // gateway - ç½å
³ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int StaticSetting_setGateway(uint setting, byte* gateway); |
| | | |
| | | //设置IP |
| | | // ip - ipå°å |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int StaticSetting_setIP(uint setting, byte* ip); |
| | | |
| | | //è®¾ç½®ç«¯å£ |
| | | // port - ç«¯å£ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int StaticSetting_setPort(uint setting, ushort prot); |
| | | |
| | | //设置åç½æ©ç |
| | | // mask - åç½æ©ç |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int StaticSetting_setSubNetMask(uint setting, byte* mask); |
| | | |
| | | // |
| | | //addarea - å¨æåº |
| | | // runmode - å¨æåºææ¾æ¹å¼ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int UpdateDynamicAreaCmd_addArea(uint cmd, uint addarea, uint runmode); |
| | | |
| | | //åå»ºä¸²å£æ§å¶å¨ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_BxControllerRS(uint* controller); |
| | | |
| | | //åå»ºä¸²å£æ§å¶å¨ |
| | | // alias - å«å |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_BxControllerRS2(uint* controller, string alias); |
| | | |
| | | //åå»ºä¸²å£æ§å¶å¨ |
| | | // alias - å«å |
| | | // bx - æå®bxæ§å¶å¨ç³»å |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int Create_BxControllerRS3(uint* controller, string alias, uint bx); |
| | | |
| | | //设å®éæåº¦ã 1.å½è¯¥å¼å¤§äºçäº 0(ä¸éæ) å°äºçäº100(å
¨éæ) æ¶ï¼ä»¥è¯¥èæ¯åºå为åºåã 2.å½è¯¥å¼ä¸º101æ¶ï¼éç¨å¦ä¸ç®æ³ï¼åæ¯ç°åº¦ä¸ä¸º0æ¶ï¼æ¾ç¤ºåæ¯å¼ï¼å¦åä¸ºèæ¯å¼ã 3.å½è¯¥å¼ä¸º102æ¶ï¼éç¨å¦ä¸ç®æ³ï¼åæ¯ç°åº¦ä¸ä¸º0æ¶ï¼æ¾ç¤ºèæ¯å¼ï¼å¦åä¸ºåæ¯å¼ |
| | | // p1 - éæåº¦ |
| | | [DllImport("onbon.api.dll", CallingConvention = CallingConvention.Cdecl)] |
| | | public unsafe static extern int BackgroundBxArea_setTransparency(uint area, uint p1); |
| | | |
| | | #endregion |
| | | |
| | | #region BX_IVè°ç¨ |
| | | /*------------------------------------------------------------------------------- |
| | | è¿ç¨å: AddScreen |
| | | å卿åºä¸æ·»å æ¾ç¤ºå±ä¿¡æ¯ï¼è¯¥å½æ°ä¸ä¸æ¾ç¤ºå±é讯ï¼åªç¨äºå¨æåºä¸çæå®æ¾ç¤ºå±åæ°ä¿¡æ¯é
ç½®ã |
| | | åæ°: |
| | | nControlType :æ¾ç¤ºå±çæ§å¶å¨åå·ï¼è¯¦è§å®å®ä¹âæ§å¶å¨åå·å®ä¹â |
| | | nScreenNo :æ¾ç¤ºå±å±å·ï¼è¯¥åæ°ä¸LedshowTW 2013软件ä¸"设置å±å"模åç"å±å·"åæ°ä¸è´ã |
| | | nWidth :æ¾ç¤ºå±å®½åº¦ 16çæ´æ°åï¼æå°64ï¼BX-5Eç³»åæå°ä¸º80 |
| | | nHeight :æ¾ç¤ºå±é«åº¦ 16çæ´æ°åï¼æå°16ï¼ |
| | | nScreenType :æ¾ç¤ºå±ç±»åï¼1ï¼ååºè²ï¼2ï¼ååºè²ï¼ |
| | | 3ï¼ååºè²ï¼æ³¨æï¼è¯¥æ¾ç¤ºå±ç±»ååªæBX-4MCæ¯æï¼åæ¶è¯¥åå·æ§å¶å¨ä¸æ¯æå
¶å®æ¾ç¤ºå±ç±»åã |
| | | 4ï¼å
¨å½©è²ï¼æ³¨æï¼è¯¥æ¾ç¤ºå±ç±»ååªæBX-5Qç³»åæ¯æï¼åæ¶è¯¥åå·æ§å¶å¨ä¸æ¯æå
¶å®æ¾ç¤ºå±ç±»åã |
| | | 5ï¼ååºè²ç°åº¦ï¼æ³¨æï¼è¯¥æ¾ç¤ºå±ç±»ååªæBX-5QSæ¯æï¼åæ¶è¯¥åå·æ§å¶å¨ä¸æ¯æå
¶å®æ¾ç¤ºå±ç±»åã |
| | | nPixelMode :ç¹éµç±»åï¼1ï¼R+Gï¼2ï¼G+Rï¼è¯¥åæ°åªå¯¹ååºè²å±ææ ï¼é»è®¤ä¸º2ï¼ |
| | | nDataDA :æ°æ®ææ§ï¼ï¼0x00ï¼æ°æ®ä½ææï¼0x01ï¼æ°æ®é«ææï¼é»è®¤ä¸º0ï¼ |
| | | nDataOE :OEææ§ï¼ 0x00ï¼OE 使æï¼0x01ï¼OE 髿æï¼é»è®¤ä¸º0ï¼ |
| | | nRowOrder :è¡åºæ¨¡å¼ï¼0ï¼æ£å¸¸ï¼1ï¼å 1è¡ï¼2ï¼å1è¡ï¼é»è®¤ä¸º0ï¼ |
| | | nFreqPar :æ«æç¹é¢ï¼0~6ï¼é»è®¤ä¸º0ï¼ |
| | | pCom :串å£åç§°ï¼ä¸²å£éè®¯æ¨¡å¼æ¶ææï¼ä¾:COM1 |
| | | nBaud :䏲壿³¢ç¹çï¼ç®åæ¯æ9600ã57600ï¼é»è®¤ä¸º57600ï¼ |
| | | pSocketIP :æ§å¶å¡IPå°åï¼ç½ç»éè®¯æ¨¡å¼æ¶ææï¼ä¾:192.168.0.199ï¼ |
| | | æ¬å¨æåºç½ç»éè®¯æ¨¡å¼æ¶åªæ¯æåºå®IP模å¼ï¼åæºç´è¿åç½ç»æå¡å¨æ¨¡å¼ä¸æ¯æã |
| | | nSocketPort :æ§å¶å¡ç½ç»ç«¯å£ï¼ç½ç»éè®¯æ¨¡å¼æ¶ææï¼ä¾ï¼5005 |
| | | pWiFiIP :æ§å¶å¨WiFi模å¼çIPå°åä¿¡æ¯ï¼WiFiéè®¯æ¨¡å¼æ¶ææï¼ä¾:192.168.100.1 |
| | | nWiFiPort :æ§å¶å¡WiFi端å£ï¼WiFiéè®¯æ¨¡å¼æ¶ææï¼ä¾ï¼5005 |
| | | pScreenStatusFile:ç¨äºä¿åæ¥è¯¢å°çæ¾ç¤ºå±ç¶æåæ°ä¿åçINIæä»¶åï¼ |
| | | åªææ§è¡æ¥è¯¢æ¾ç¤ºå±ç¶æGetScreenStatusæ¶ï¼è¯¥åæ°æææ |
| | | è¿åå¼ :详è§è¿åç¶æä»£ç å®ä¹ã |
| | | -------------------------------------------------------------------------------*/ |
| | | [DllImport("BX_IV.dll")] |
| | | public static extern int AddScreen(int nControlType, int nScreenNo, |
| | | int nWidth, int nHeight, int nScreenType, int nPixelMode, int nDataDA, |
| | | int nDataOE, int nRowOrder, int nFreqPar, string pCom, int nBaud, |
| | | string pSocketIP, int nSocketPort, string pWiFiIP, int nWiFiPort, string pScreenStatusFile); //æ·»å 屿¾ |
| | | |
| | | /*------------------------------------------------------------------------------- |
| | | è¿ç¨å: DeleteScreen |
| | | å 餿宿¾ç¤ºå±ä¿¡æ¯ï¼å 餿¾ç¤ºå±æååä¼å°è¯¥æ¾ç¤ºå±ä¸ææèç®ä¿¡æ¯ä»å¨æåºä¸å é¤ã |
| | | è¯¥å½æ°ä¸ä¸æ¾ç¤ºå±é讯ï¼åªç¨äºå¨æåºä¸çæå®æ¾ç¤ºå±åæ°ä¿¡æ¯é
ç½®ã |
| | | åæ°: |
| | | nScreenNo :æ¾ç¤ºå±å±å·ï¼è¯¥åæ°ä¸AddScreen彿°ä¸çnScreenNo忰坹åºã |
| | | è¿åå¼ :详è§è¿åç¶æä»£ç å®ä¹ã |
| | | -------------------------------------------------------------------------------}*/ |
| | | [DllImport("BX_IV.dll")] |
| | | public static extern int DeleteScreen(int nScreenNo);//å é¤å±æ¾ |
| | | /*------------------------------------------------------------------------------- |
| | | è¿ç¨å: SendScreenInfo |
| | | éè¿æå®çé讯模å¼ï¼åéç¸åºä¿¡æ¯ãå½ä»¤å°æ¾ç¤ºå±ãè¯¥å½æ°ä¸æ¾ç¤ºå±è¿è¡é讯 |
| | | åæ°: |
| | | nScreenNo :æ¾ç¤ºå±å±å·ï¼è¯¥åæ°ä¸AddScreen彿°ä¸çnScreenNo忰坹åºã |
| | | nSendMode :䏿¾ç¤ºå±çé讯模å¼ï¼ |
| | | 0:䏲壿¨¡å¼ãBX-5A2&RFãBX-5A4&RFçæ§å¶å¨ä¸ºRF䏲壿 线模å¼; |
| | | 2:ç½ç»æ¨¡å¼; |
| | | 4:WiFiæ¨¡å¼ |
| | | nSendCmd :é讯å½ä»¤å¼ |
| | | SEND_CMD_PARAMETER =41471; å è½½å±åæ°ã |
| | | SEND_CMD_SENDALLPROGRAM = 41456; åéææèç®ä¿¡æ¯ã |
| | | SEND_CMD_POWERON =41727; 强å¶å¼æº |
| | | SEND_CMD_POWEROFF = 41726; 强å¶å
³æº |
| | | SEND_CMD_TIMERPOWERONOFF = 41725; 宿¶å¼å
³æº |
| | | SEND_CMD_CANCEL_TIMERPOWERONOFF = 41724; 忶宿¶å¼å
³æº |
| | | SEND_CMD_RESIVETIME = 41723; æ ¡æ£æ¶é´ã |
| | | SEND_CMD_ADJUSTLIGHT = 41722; äº®åº¦è°æ´ã |
| | | nOtherParam1 :ä¿çåæ°ï¼0 |
| | | è¿åå¼ :详è§è¿åç¶æä»£ç å®ä¹ã |
| | | -------------------------------------------------------------------------------*/ |
| | | [DllImport("BX_IV.dll")] |
| | | public static extern int SendScreenInfo(int nScreenNo, int nSendMode, int nSendCmd, int nOtherParam1);//åéç¸åºå½ä»¤å°æ¾ç¤ºå±ã |
| | | |
| | | /*------------------------------------------------------------------------------- |
| | | è¿ç¨å: AddScreenProgram |
| | | å卿åºä¸æå®æ¾ç¤ºå±æ·»å èç®ï¼è¯¥å½æ°ä¸ä¸æ¾ç¤ºå±é讯ï¼åªç¨äºå¨æåºä¸çæå®æ¾ç¤ºå±èç®ä¿¡æ¯é
ç½®ã |
| | | åæ°: |
| | | nScreenNo :æ¾ç¤ºå±å±å·ï¼è¯¥åæ°ä¸AddScreen彿°ä¸çnScreenNo忰坹åºã |
| | | nProgramType :èç®ç±»åï¼0æ£å¸¸èç®ã |
| | | nPlayLength :0:表示èªå¨é¡ºåºææ¾ï¼å¦å表示èç®ææ¾çé¿åº¦ï¼èå´1~65535ï¼åä½ç§ |
| | | nStartYear :èç®ççå½å¨æï¼å¼å§ææ¾æ¶é´å¹´ä»½ãå¦æä¸ºæ éå¶ææ¾çè¯è¯¥åæ°å¼ä¸º65535ï¼å¦2010 |
| | | nStartMonth :èç®ççå½å¨æï¼å¼å§ææ¾æ¶é´æä»½ãå¦11 |
| | | nStartDay :èç®ççå½å¨æï¼å¼å§ææ¾æ¶é´æ¥æãå¦26 |
| | | nEndYear :èç®ççå½å¨æï¼ç»æææ¾æ¶é´å¹´ä»½ãå¦2011 |
| | | nEndMonth :èç®ççå½å¨æï¼ç»æææ¾æ¶é´æä»½ãå¦11 |
| | | nEndDay :èç®ççå½å¨æï¼ç»æææ¾æ¶é´æ¥æãå¦26 |
| | | nMonPlay :èç®å¨çå½å¨æå
ææä¸æ¯å¦ææ¾;0ï¼ä¸ææ¾;1ï¼ææ¾. |
| | | nTuesPlay :èç®å¨çå½å¨æå
ææäºæ¯å¦ææ¾;0ï¼ä¸ææ¾;1ï¼ææ¾. |
| | | nWedPlay :èç®å¨çå½å¨æå
ææäºæ¯å¦ææ¾;0ï¼ä¸ææ¾;1ï¼ææ¾. |
| | | nThursPlay :èç®å¨çå½å¨æå
ææäºæ¯å¦ææ¾;0ï¼ä¸ææ¾;1ï¼ææ¾. |
| | | bFriPlay :èç®å¨çå½å¨æå
ææäºæ¯å¦ææ¾;0ï¼ä¸ææ¾;1ï¼ææ¾. |
| | | nSatPlay :èç®å¨çå½å¨æå
ææäºæ¯å¦ææ¾;0ï¼ä¸ææ¾;1ï¼ææ¾. |
| | | nSunPlay :èç®å¨çå½å¨æå
ææäºæ¯å¦ææ¾;0ï¼ä¸ææ¾;1ï¼ææ¾. |
| | | nStartHour :èç®å¨å½å¤©å¼å§ææ¾æ¶é´å°æ¶ãå¦8 |
| | | nStartMinute :èç®å¨å½å¤©å¼å§ææ¾æ¶é´åéãå¦0 |
| | | nEndHour :èç®å¨å½å¤©ç»æææ¾æ¶é´å°æ¶ãå¦18 |
| | | nEndMinute :èç®å¨å½å¤©ç»æææ¾æ¶é´åéãå¦0 |
| | | è¿åå¼ :详è§è¿åç¶æä»£ç å®ä¹ã |
| | | -------------------------------------------------------------------------------*/ |
| | | [DllImport("BX_IV.dll")] |
| | | public static extern int AddScreenProgram(int nScreenNo, int nProgramType, int nPlayLength, |
| | | int nStartYear, int nStartMonth, int nStartDay, int nEndYear, int nEndMonth, int nEndDay, |
| | | int nMonPlay, int nTuesPlay, int nWedPlay, int nThursPlay, int bFriPlay, int nSatPlay, int nSunPlay, |
| | | int nStartHour, int nStartMinute, int nEndHour, int nEndMinute); //åæå®æ¾ç¤ºå±æ·»å èç®ï¼ |
| | | |
| | | /*------------------------------------------------------------------------------- |
| | | è¿ç¨å: DeleteScreenProgram |
| | | å 餿宿¾ç¤ºå±æå®èç®ï¼å é¤èç®æååä¼å°è¯¥èç®ä¸ææåºåä¿¡æ¯å é¤ã |
| | | è¯¥å½æ°ä¸ä¸æ¾ç¤ºå±é讯ï¼åªç¨äºå¨æåºä¸çæå®æ¾ç¤ºå±æå®èç®ä¿¡æ¯é
ç½®ã |
| | | åæ°: |
| | | nScreenNo :æ¾ç¤ºå±å±å·ï¼è¯¥åæ°ä¸AddScreen彿°ä¸çnScreenNo忰坹åºã |
| | | nProgramOrd :èç®åºå·ï¼è¯¥åºå·æç
§èç®æ·»å 顺åºï¼ä»0顺åºéå¢ï¼å¦å é¤ä¸é´çèç®ï¼åé¢çèç®åºå·èªå¨å¡«å
ã |
| | | è¿åå¼ :详è§è¿åç¶æä»£ç å®ä¹ã |
| | | -------------------------------------------------------------------------------*/ |
| | | [DllImport("BX_IV.dll")] |
| | | public static extern int DeleteScreenProgram(int nScreenNo, int nProgramOrd); //å é¤èç® |
| | | |
| | | /*------------------------------------------------------------------------------- |
| | | è¿ç¨å: DeleteScreenProgramArea |
| | | å 餿宿¾ç¤ºå±æå®èç®çæå®åºåï¼å é¤åºåæååä¼å°è¯¥åºå䏿æä¿¡æ¯å é¤ã |
| | | è¯¥å½æ°ä¸ä¸æ¾ç¤ºå±é讯ï¼åªç¨äºå¨æåºä¸æå®æ¾ç¤ºå±æå®èç®ä¸æå®çåºåä¿¡æ¯é
ç½®ã |
| | | åæ°: |
| | | nScreenNo :æ¾ç¤ºå±å±å·ï¼è¯¥åæ°ä¸AddScreen彿°ä¸çnScreenNo忰坹åºã |
| | | nProgramOrd :èç®åºå·ï¼è¯¥åºå·æç
§èç®æ·»å 顺åºï¼ä»0顺åºéå¢ï¼å¦å é¤ä¸é´çèç®ï¼åé¢çèç®åºå·èªå¨å¡«å
ã |
| | | nAreaOrd :åºååºå·ï¼è¯¥åºå·æç
§åºåæ·»å 顺åºï¼ä»0顺åºéå¢ï¼å¦å é¤ä¸é´çåºåï¼åé¢çåºååºå·èªå¨å¡«å
ã |
| | | è¿åå¼ :详è§è¿åç¶æä»£ç å®ä¹ã |
| | | -------------------------------------------------------------------------------*/ |
| | | [DllImport("BX_IV.dll")] |
| | | public static extern int DeleteScreenProgramArea(int nScreenNo, int nProgramOrd, int nAreaOrd);//å é¤åºå |
| | | |
| | | /*------------------------------------------------------------------------------- |
| | | è¿ç¨å: AddScreenProgramBmpTextArea: |
| | | å卿åºä¸æå®æ¾ç¤ºå±çæå®èç®æ·»å 徿åºåï¼è¯¥å½æ°ä¸ä¸æ¾ç¤ºå±é讯ï¼åªç¨äºå¨æåºä¸çæå®æ¾ç¤ºå±æå®èç®ä¸ç徿åºåä¿¡æ¯é
ç½®ã |
| | | åæ°: |
| | | nScreenNo :æ¾ç¤ºå±å±å·ï¼è¯¥åæ°ä¸AddScreen彿°ä¸çnScreenNo忰坹åºã |
| | | nProgramOrd :èç®åºå·ï¼è¯¥åºå·æç
§èç®æ·»å 顺åºï¼ä»0顺åºéå¢ï¼å¦å é¤ä¸é´çèç®ï¼åé¢çèç®åºå·èªå¨å¡«å
ã |
| | | nX :åºåçæ¨ªåæ ï¼æ¾ç¤ºå±çå·¦ä¸è§çæ¨ªåæ ä¸º0ï¼æå°å¼ä¸º0 |
| | | nY :åºåççºµåæ ï¼æ¾ç¤ºå±çå·¦ä¸è§ççºµåæ ä¸º0ï¼æå°å¼ä¸º0 |
| | | nWidth :åºåçå®½åº¦ï¼æå¤§å¼ä¸å¤§äºæ¾ç¤ºå±å®½åº¦-nX |
| | | nHeight :åºåçé«åº¦ï¼æå¤§å¼ä¸å¤§äºæ¾ç¤ºå±é«åº¦-nY |
| | | è¿åå¼ :详è§è¿åç¶æä»£ç å®ä¹ã |
| | | -------------------------------------------------------------------------------*/ |
| | | [DllImport("BX_IV.dll")] |
| | | public static extern int AddScreenProgramBmpTextArea(int nScreenNo, int nProgramOrd, int nX, int nY, |
| | | int nWidth, int nHeight);//åæå®æ¾ç¤ºå±æå®èç®æ·»å 徿åºï¼ |
| | | |
| | | /*------------------------------------------------------------------------------- |
| | | è¿ç¨å: AddScreenProgramAreaBmpTextFile |
| | | å卿åºä¸æå®æ¾ç¤ºå±çæå®èç®çæå®å¾æåºåæ·»å æä»¶ï¼ |
| | | è¯¥å½æ°ä¸ä¸æ¾ç¤ºå±é讯ï¼åªç¨äºå¨æåºä¸çæå®æ¾ç¤ºå±æå®èç®ä¸æå®å¾æåºåçæä»¶ä¿¡æ¯é
ç½®ã |
| | | åæ°: |
| | | nScreenNo :æ¾ç¤ºå±å±å·ï¼è¯¥åæ°ä¸AddScreen彿°ä¸çnScreenNo忰坹åºã |
| | | nProgramOrd :èç®åºå·ï¼è¯¥åºå·æç
§èç®æ·»å 顺åºï¼ä»0顺åºéå¢ï¼å¦å é¤ä¸é´çèç®ï¼åé¢çèç®åºå·èªå¨å¡«å
ã |
| | | nAreaOrd :åºååºå·ï¼è¯¥åºå·æç
§åºåæ·»å 顺åºï¼ä»0顺åºéå¢ï¼å¦å é¤ä¸é´çåºåï¼åé¢çåºååºå·èªå¨å¡«å
ã |
| | | pFileName :æä»¶åç§° æ¯æ.bmp,jpg,jpeg,rtf,txtçæä»¶ç±»åã |
| | | nShowSingle :åãå¤è¡æ¾ç¤ºï¼1ï¼åè¡æ¾ç¤ºï¼0ï¼å¤è¡æ¾ç¤ºï¼è¯¥åæ°åªæå¨pFileName为txtç±»åæä»¶æ¶è¯¥åæ°æææã |
| | | pFontName :åä½åç§°ï¼æ¯æå½åæä½ç³»ç»å·²ç»å®è£
çç¢éååºï¼è¯¥åæ°åªæpFileName为txtç±»åæä»¶æ¶è¯¥åæ°æææã |
| | | nFontSize :åä½åå·ï¼æ¯æå½åæä½ç³»ç»çåå·ï¼è¯¥åæ°åªæpFileName为txtç±»åæä»¶æ¶è¯¥åæ°æææã |
| | | nBold :åä½ç²ä½ï¼æ¯æ1ï¼ç²ä½ï¼0ï¼æ£å¸¸ï¼è¯¥åæ°åªæpFileName为txtç±»åæä»¶æ¶è¯¥åæ°æææã |
| | | nFontColor :åä½é¢è²ï¼è¯¥åæ°åªæpFileName为txtç±»åæä»¶æ¶è¯¥åæ°æææã |
| | | nStunt :æ¾ç¤ºç¹æã |
| | | 0x00:éæºæ¾ç¤º |
| | | 0x01:éæ |
| | | 0x02:å¿«éæåº |
| | | 0x03:åå·¦ç§»å¨ |
| | | 0x04:åå·¦è¿ç§» |
| | | 0x05:åä¸ç§»å¨ 3Tç±»åæ§å¶å¡æ æ¤ç¹æ |
| | | 0x06:åä¸è¿ç§» 3Tç±»åæ§å¶å¡æ æ¤ç¹æ |
| | | 0x07:éªç 3Tç±»åæ§å¶å¡æ æ¤ç¹æ |
| | | 0x08:é£éª |
| | | 0x09:åæ³¡ |
| | | 0x0A:ä¸é´ç§»åº |
| | | 0x0B:å·¦å³ç§»å
¥ |
| | | 0x0C:å·¦å³äº¤åç§»å
¥ |
| | | 0x0D:ä¸ä¸äº¤åç§»å
¥ |
| | | 0x0E:ç»å·éå |
| | | 0x0F:ç»å·æå¼ |
| | | 0x10:åå·¦æä¼¸ |
| | | 0x11:å峿伏 |
| | | 0x12:å䏿伏 |
| | | 0x13:å䏿伏 3Tç±»åæ§å¶å¡æ æ¤ç¹æ |
| | | 0x14:åå·¦éå° |
| | | 0x15:åå³éå° |
| | | 0x16:åä¸éå° |
| | | 0x17:åä¸éå° |
| | | 0x18:å·¦å³äº¤åæå¹ |
| | | 0x19:ä¸ä¸äº¤åæå¹ |
| | | 0x1A:忣左æ |
| | | 0x1B:æ°´å¹³ç¾é¡µ 3Tã3Aã4Aã3A1ã3A2ã4A1ã4A2ã4A3ã4AQç±»åæ§å¶å¡æ æ¤ç¹æ |
| | | 0x1C:åç´ç¾é¡µ 3Tã3Aã4Aã3A1ã3A2ã4A1ã4A2ã4A3ã4AQã3Mã4Mã4M1ã4MCç±»åæ§å¶å¡æ æ¤ç¹æ |
| | | 0x1D:åå·¦æå¹ 3Tã3Aã4Aç±»åæ§å¶å¡æ æ¤ç¹æ |
| | | 0x1E:åå³æå¹ 3Tã3Aã4Aç±»åæ§å¶å¡æ æ¤ç¹æ |
| | | 0x1F:åä¸æå¹ 3Tã3Aã4Aç±»åæ§å¶å¡æ æ¤ç¹æ |
| | | 0x20:åä¸æå¹ 3Tã3Aã4Aç±»åæ§å¶å¡æ æ¤ç¹æ |
| | | 0x21:å·¦å³éå 3Tç±»åæ§å¶å¡æ æ¤ç¹æ |
| | | 0x22:å·¦å³å¯¹å¼ 3Tç±»åæ§å¶å¡æ æ¤ç¹æ |
| | | 0x23:ä¸ä¸éå 3Tç±»åæ§å¶å¡æ æ¤ç¹æ |
| | | 0x24:ä¸ä¸å¯¹å¼ 3Tç±»åæ§å¶å¡æ æ¤ç¹æ |
| | | 0x25:åå³è¿ç§» |
| | | 0x26:åå³è¿ç§» |
| | | 0x27:åä¸ç§»å¨ 3Tç±»åæ§å¶å¡æ æ¤ç¹æ |
| | | 0x28:åä¸è¿ç§» 3Tç±»åæ§å¶å¡æ æ¤ç¹æ |
| | | nRunSpeed :è¿è¡é度ï¼0~63ï¼å¼è¶å¤§è¿è¡éåº¦è¶æ
¢ã |
| | | nShowTime :åçæ¶é´ï¼0~65525ï¼åä½0.5ç§ |
| | | |
| | | è¿åå¼: :详è§è¿åç¶æä»£ç å®ä¹ã |
| | | -------------------------------------------------------------------------------*/ |
| | | [DllImport("BX_IV.dll")] |
| | | public static extern int AddScreenProgramAreaBmpTextFile(int nScreenNo, int nProgramOrd, int nAreaOrd, |
| | | string pFileName, int nShowSingle, string pFontName, int nFontSize, int nBold, int nFontColor, |
| | | int nStunt, int nRunSpeed, int nShowTime); //åæå®æ¾ç¤ºå±æå®èç®æå®åºåæ·»å æä»¶ |
| | | |
| | | /*------------------------------------------------------------------------------- |
| | | è¿ç¨å: DeleteScreenProgramAreaBmpTextFile |
| | | å 餿宿¾ç¤ºå±æå®èç®æå®å¾æåºåçæå®æä»¶ï¼å 餿件æååä¼å°è¯¥æä»¶ä¿¡æ¯å é¤ã |
| | | è¯¥å½æ°ä¸ä¸æ¾ç¤ºå±é讯ï¼åªç¨äºå¨æåºä¸çæå®æ¾ç¤ºå±æå®èç®æå®åºåä¸çæå®æä»¶ä¿¡æ¯é
ç½®ã |
| | | åæ°: |
| | | nScreenNo :æ¾ç¤ºå±å±å·ï¼è¯¥åæ°ä¸AddScreen彿°ä¸çnScreenNo忰坹åºã |
| | | nProgramOrd :èç®åºå·ï¼è¯¥åºå·æç
§èç®æ·»å 顺åºï¼ä»0顺åºéå¢ï¼å¦å é¤ä¸é´çèç®ï¼åé¢çèç®åºå·èªå¨å¡«å
ã |
| | | nAreaOrd :åºååºå·ï¼è¯¥åºå·æç
§åºåæ·»å 顺åºï¼ä»0顺åºéå¢ï¼å¦å é¤ä¸é´çåºåï¼åé¢çåºååºå·èªå¨å¡«å
ã |
| | | nFileOrd :æä»¶åºå·ï¼è¯¥åºå·æç
§æä»¶æ·»å 顺åºï¼ä»0顺åºéå¢ï¼å¦å é¤ä¸é´çæä»¶ï¼åé¢çæä»¶åºå·èªå¨å¡«å
ã |
| | | è¿åå¼ :详è§è¿åç¶æä»£ç å®ä¹ã |
| | | -------------------------------------------------------------------------------*/ |
| | | [DllImport("BX_IV.dll")] |
| | | public static extern int DeleteScreenProgramAreaBmpTextFile(int nScreenNo, int nProgramOrd, int nAreaOrd, int nFileOrd); //å 餿宿¾ç¤ºå±æå®èç®æå®å¾æåºåçæå®æä»¶ï¼å 餿件æååä¼å°è¯¥æä»¶ä¿¡æ¯å é¤ |
| | | |
| | | [DllImport("BX_IV.dll")] |
| | | public static extern int AddScreenProgramTimeArea(int nScreenNo, int nProgramOrd, int nX, int nY, int nWidth, int nHeight);//åæå®æ¾ç¤ºå±æå®èç®æ·»å æ¥ææ¶é´åºï¼ |
| | | |
| | | [DllImport("BX_IV.dll")] |
| | | public static extern int AddScreenProgramTimeAreaFile(int nScreenNo, int nProgramOrd, int nAreaOrd, |
| | | string pInputtxt, string pFontName, int nSingal, int nAlign, int nFontSize, |
| | | int nBold, int nItalic, int nUnderline, int nUsetxt, int nTxtcolor, |
| | | int nUseymd, int nYmdstyle, int nYmdcolor, int nUseweek, int nWeekstyle, int nWeekcolor, |
| | | int nUsehns, int nHnsstyle, int nHnscolor, int nAutoset); //åæå®æ¾ç¤ºå±æå®èç®æå®åºåæ·»å æ¶é´æä»¶ |
| | | |
| | | #endregion |
| | | |
| | | #region ç»é¢ä¸åæ¥æ¾ç¤ºæ§ä»¶ |
| | | public ListBox responseled; |
| | | public DevComponents.DotNetBar.Controls.TextBoxX tb_sendtoled; |
| | | //public LabelX lb_led; |
| | | delegate void displayresponse(string text); |
| | | delegate void SetTextCallback(string ledText); |
| | | #endregion |
| | | |
| | | Thread trd = null; |
| | | string ledip = ""; |
| | | int ledno = 0; |
| | | int portno = 0; |
| | | |
| | | /// <summary> |
| | | /// åå§åæåæ è®° |
| | | /// </summary> |
| | | bool flag = false; |
| | | //private IPEndPoint ServerInfo; |
| | | //private Socket socket; |
| | | //private Byte[] MsgBuffer = new Byte[65535]; |
| | | //private Byte[] MsgSend = new Byte[65535]; |
| | | |
| | | public LedThread(int led_no, string led_ip, int port) |
| | | { |
| | | try |
| | | { |
| | | ledno = led_no; |
| | | ledip = led_ip; |
| | | this.portno = port; |
| | | |
| | | flag = true;// InitScreen(); |
| | | if (flag) |
| | | { |
| | | trd = new Thread(new ThreadStart(this.ThreadTask)); |
| | | trd.IsBackground = true; |
| | | trd.Start(); |
| | | } |
| | | else |
| | | { |
| | | Common.WriteLogFile("WcsError", "LedThread/InitScreen--åå§åLED" + ledno + "失败"); |
| | | } |
| | | } |
| | | catch (Exception em) |
| | | { |
| | | Common.WriteLogFile("WcsError", "LedThread/LedThread--LED线ç¨å¯å¨åºé(" + ledno + "):" + em.Message); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 鿝 |
| | | /// </summary> |
| | | public void Destroy() |
| | | { |
| | | try |
| | | { |
| | | //DeleteScreen(ledno); |
| | | } |
| | | catch (Exception) |
| | | { |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// åå§åLEDå±å¹æ°æ®ï¼å¢å è®¾ç½®å±æ¾ï¼æ·»å èç®ï¼æ·»å 徿åºå |
| | | /// </summary> |
| | | private bool InitScreen() |
| | | { |
| | | bool ret = false; |
| | | try |
| | | { |
| | | int result = 0; |
| | | result = AddScreen(Common.CONTROLLER_TYPE, ledno, Common.SCREEN_WIDTH, Common.SCREEN_HEIGHT, Common.SCREEN_TYPE, Common.SCREEN_PIXELMODE, |
| | | Common.SCREEN_DATADA, Common.SCREEN_DATAOE, Common.SCREEN_ROWORDER, Common.SCREEN_FREQPAR, Common.SCREEN_COMM, Common.SCREEN_BAUD, |
| | | ledip, portno, "", 5005, Common.SCREEN_STATUSFILE); |
| | | //DisplayInfo("ã" + DateTime.Now.ToString() + "ã" + GetErrorMessage("AddScreen", result, ledno + "å·å±")); |
| | | |
| | | result = AddScreenProgram(ledno, 0, 0, 65535, 1, 1, 2050, 12, 31, 1, 1, 1, 1, 1, 1, 1, 0, 0, 23, 59); |
| | | //DisplayInfo("ã" + DateTime.Now.ToString() + "ã" + GetErrorMessage("AddScreenProgram", result, ledno + "å·å±")); |
| | | |
| | | for (int i = 0; i < 2; i++) |
| | | { |
| | | string fileName = Application.StartupPath + "\\data\\led" + ledno + "_area" + (i + 1) + ".txt"; |
| | | //UpdateDataFile(fileName,"èªå¨åç«ä½ä»å¨ç³»ç»"); |
| | | result = AddScreenProgramBmpTextArea(ledno, 0, 0, i * 32, Common.SCREEN_WIDTH, Common.SCREEN_HEIGHT / 2); |
| | | result = AddScreenProgramAreaBmpTextFile(ledno, 0, i, fileName, 0, |
| | | "å®ä½", 20, 1, 255, 1, 40, 0); |
| | | } |
| | | if (result == 0) |
| | | { |
| | | ret = true; |
| | | } |
| | | } |
| | | catch (Exception em) |
| | | { |
| | | Common.WriteLogFile("WcsError", "LedThread/InitScreen--åå§åLED" + ledno + "失败:" + em.Message); |
| | | } |
| | | return ret; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// åéæ°æ®å°LED |
| | | /// </summary> |
| | | private void SendLedData() |
| | | { |
| | | string[] data = Common.gs_led_data[ledno - 1].Split(';'); |
| | | //if (data.Length > 7) |
| | | //if ((data.Length == 4 && Common.gi_led_Pages[ledno - 1] == 4) |
| | | // || (data.Length == 8 && Common.gi_led_Pages[ledno - 1] == 8)) |
| | | if (data.Length == 3) |
| | | { |
| | | unsafe |
| | | { |
| | | uint screen; |
| | | uint program; |
| | | uint profile; |
| | | uint area; |
| | | //uint area1; |
| | | //uint area2; |
| | | //uint area3; |
| | | //uint area2; |
| | | uint page; |
| | | //uint page1; |
| | | //uint page2; |
| | | //uint page3; |
| | | //uint page2; |
| | | uint red; |
| | | uint green; |
| | | uint yellow; |
| | | uint font; |
| | | //uint font1; |
| | | uint factorystyle; |
| | | uint style; |
| | | int nResult; |
| | | nResult = Create_FColor(&red, 255, 0, 0); |
| | | |
| | | //nResult = Create_FColor(&green, 0, 055, 0); |
| | | |
| | | nResult = Create_FColor(&yellow, 0, 0, 0); |
| | | |
| | | //nResult = Create_FFont(&font, "å®ä½", 12, false); |
| | | //nResult = Create_FFont(&font, "å®ä½", 26, false); |
| | | |
| | | nResult = Create_BxScreenClient(&screen); |
| | | |
| | | nResult = BxScreenClient_connect(screen, ledip, 5005, true); |
| | | |
| | | nResult = BxScreen_getProfile(&profile, screen); |
| | | |
| | | nResult = Create_ProgramBxFile(&program, 0, profile); |
| | | nResult = Create_DisplayStyleFactory(&factorystyle); |
| | | nResult = DisplayStyleFactory_getStyle(&style, factorystyle, 3); |
| | | for (int i = 0; i < 3; i++) |
| | | { |
| | | nResult = Create_FFont(&font, "å®ä½", 13, false); |
| | | nResult = Create_TextCaptionBxArea(&area, 0, i * 16, Common.SCREEN_WIDTH, 16, profile); |
| | | //nResult = Create_TextCaptionBxArea(&area, 0, i * 32, Common.SCREEN_WIDTH, 32, profile); |
| | | nResult = Create_TextBxPage4(&page, data[i], font, red, yellow); |
| | | nResult = ProgramBxFile_addArea(program, area); |
| | | nResult = AbstractTextCaptionBxArea_addPage(area, page); |
| | | nResult = BxPage_setDisplayStyle(page, style); |
| | | BxPage_setStayTime(page, 10000); |
| | | } |
| | | //if (Common.gi_led_Pages[ledno - 1] == 4) |
| | | //{ |
| | | // nResult = DisplayStyleFactory_getStyle(&style, factorystyle, 5); |
| | | // for (int i = 0; i < Common.gi_led_Pages[ledno - 1]; i++) |
| | | // { |
| | | // nResult = Create_FFont(&font, "å®ä½", 12, false); |
| | | // //nResult = Create_TextCaptionBxArea(&area, 0, i * 16, Common.SCREEN_WIDTH, 16, profile); |
| | | // nResult = Create_TextCaptionBxArea(&area, 0, i * 32, Common.SCREEN_WIDTH, 32, profile); |
| | | // nResult = Create_TextBxPage4(&page, data[i], font, red, yellow); |
| | | // nResult = ProgramBxFile_addArea(program, area); |
| | | // nResult = AbstractTextCaptionBxArea_addPage(area, page); |
| | | // nResult = BxPage_setDisplayStyle(page, style); |
| | | // BxPage_setStayTime(page, 15000); |
| | | // } |
| | | //} |
| | | //else if (Common.gi_led_Pages[ledno - 1] == 8) |
| | | //{ |
| | | // nResult = DisplayStyleFactory_getStyle(&style, factorystyle, 3); |
| | | // for (int i = 0; i < Common.gi_led_Pages[ledno - 1]; i++) |
| | | // { |
| | | // nResult = Create_FFont(&font, "å®ä½", 11, false); |
| | | // nResult = Create_TextCaptionBxArea(&area, 0, i * 16, Common.SCREEN_WIDTH, 16, profile); |
| | | // //nResult = Create_TextCaptionBxArea(&area, 0, i * 32, Common.SCREEN_WIDTH, 32, profile); |
| | | // nResult = Create_TextBxPage4(&page, data[i], font, red, yellow); |
| | | // nResult = ProgramBxFile_addArea(program, area); |
| | | // nResult = AbstractTextCaptionBxArea_addPage(area, page); |
| | | // nResult = BxPage_setDisplayStyle(page, style); |
| | | // BxPage_setStayTime(page, 15000); |
| | | // } |
| | | //} |
| | | |
| | | nResult = BxScreen_writeProgram(screen, program); |
| | | |
| | | if (nResult == 0) |
| | | { |
| | | //DisplayInfo("ã" + DateTime.Now.ToString() + "ãåéæ°æ®å°LED" + ledno + "æå:" + data[0] + " " + data[1] + " " + data[2] + " " + data[3]); |
| | | DisplayInfo("ã" + DateTime.Now.ToString() + "ãåéæ°æ®å°LED" + ledno + "æå:" + Common.gs_led_data[ledno - 1]); |
| | | Common.gs_led_data[ledno - 1] = ""; |
| | | ResetLedText(""); |
| | | } |
| | | else |
| | | { |
| | | DisplayInfo("ã" + DateTime.Now.ToString() + "ãåéæ°æ®å°LED" + ledno + "失败:" + GetErrorMessage("åéæ°æ®(SendScreenInfo)", nResult, ledno + "å·å±")); |
| | | Common.WriteLogFile("WcsError", GetErrorMessage("åéæ°æ®(SendScreenInfo)", nResult, ledno + "å·å±")); |
| | | } |
| | | |
| | | nResult = BxScreen_disconnect(screen); |
| | | |
| | | } |
| | | //string fileName1 = Application.StartupPath + "\\data\\led" + ledno + "_area1.txt"; |
| | | //string fileName2 = Application.StartupPath + "\\data\\led" + ledno + "_area2.txt"; |
| | | //UpdateDataFile(fileName1, data[0]); |
| | | //UpdateDataFile(fileName2, data[1]); |
| | | } |
| | | else |
| | | { |
| | | DisplayInfo("ã" + DateTime.Now.ToString() + "ãå¾
åéæ°æ®æ ¼å¼é误,å±å·" + ledno + ",å
容:" + Common.gs_led_data[ledno - 1]); |
| | | Common.gs_led_data[ledno - 1] = ""; |
| | | return; |
| | | } |
| | | //if (Common.m_bSendBusy == false) |
| | | //{ |
| | | // Common.m_bSendBusy = true; |
| | | // int result = SendScreenInfo(ledno, Common.SCREEN_SENDMODE, Common.SENDALLPROGRAM, 0); |
| | | // //Common.WriteLogFile("WcsError", GetErrorMessage("åéæ°æ®(SendScreenInfo)", result, ledno + "å·å±")); |
| | | // //DisplayInfo(global.GetErrorMessage("åéæ°æ®", result, screenno + "å·å±(" + SCREEN_SOCKETIP + ")") + "\r\n"); |
| | | // if (result == 0) |
| | | // { |
| | | // DisplayInfo("ã" + DateTime.Now.ToString() + "ãåéæ°æ®å°LED" + ledno + "æå:" + data); |
| | | // Common.gs_led_data[ledno - 1] = ""; |
| | | // ResetLedText(""); |
| | | // } |
| | | // else |
| | | // { |
| | | // DisplayInfo("ã" + DateTime.Now.ToString() + "ãåéæ°æ®å°LED" + ledno + "失败:" + GetErrorMessage("åéæ°æ®(SendScreenInfo)", result, ledno + "å·å±")); |
| | | // Common.WriteLogFile("WcsError", GetErrorMessage("åéæ°æ®(SendScreenInfo)", result, ledno + "å·å±")); |
| | | // } |
| | | // Common.m_bSendBusy = false; |
| | | //} |
| | | } |
| | | |
| | | #region é讯åé¦åæ¥æ¾ç¤º |
| | | /// <summary> |
| | | /// æ¾ç¤ºæ¡ç éè®¯ä¿¡æ¯ |
| | | /// </summary> |
| | | /// <param name="text"></param> |
| | | private void DisplayInfo(string text) |
| | | { |
| | | if (responseled == null) |
| | | { |
| | | return; |
| | | } |
| | | if (responseled.InvokeRequired) |
| | | { |
| | | try |
| | | { |
| | | displayresponse d = new displayresponse(DisplayInfo); |
| | | responseled.Invoke(d, new object[] { text }); |
| | | } |
| | | catch (Exception em) |
| | | { |
| | | Common.WriteLogFile("WcsError", "LedThread/DisplayInfo--忥æ¾ç¤ºLEDåéä¿¡æ¯å¤±è´¥:" + em.Message); |
| | | } |
| | | } |
| | | else |
| | | { |
| | | if (responseled.Items.Count > 12) |
| | | { |
| | | responseled.Items.Clear(); |
| | | } |
| | | responseled.Items.Add(text); |
| | | } |
| | | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æ¸
空çé¢ledå
容æ¾ç¤º |
| | | /// </summary> |
| | | /// <param name="text"></param> |
| | | private void ResetLedText(string ledtext) |
| | | { |
| | | if (tb_sendtoled == null) |
| | | { |
| | | return; |
| | | } |
| | | if (tb_sendtoled.InvokeRequired) |
| | | { |
| | | try |
| | | { |
| | | SetTextCallback d = new SetTextCallback(ResetLedText); |
| | | tb_sendtoled.Invoke(d, new object[] { ledtext }); |
| | | } |
| | | catch (Exception em) |
| | | { |
| | | Common.WriteLogFile("WcsError", "LedThread/ResetLedText--æ¸
空çé¢LEDæ¾ç¤ºå
容失败:" + em.Message); |
| | | } |
| | | } |
| | | else |
| | | { |
| | | tb_sendtoled.Text = ledtext; |
| | | } |
| | | |
| | | } |
| | | #endregion |
| | | |
| | | /// <summary> |
| | | /// æ´æ°txtæä»¶ |
| | | /// </summary> |
| | | private bool UpdateDataFile(string FileName, string content) |
| | | { |
| | | bool result = false; |
| | | try |
| | | { |
| | | if (File.Exists(FileName)) |
| | | { |
| | | File.Delete(FileName); |
| | | } |
| | | |
| | | FileStream fs1 = new FileStream(FileName, FileMode.Create, FileAccess.Write);//å建åå
¥æä»¶ |
| | | StreamWriter sw = new StreamWriter(fs1, System.Text.Encoding.GetEncoding("GB2312")); |
| | | //StreamWriter sw = new StreamWriter(fs1, System.Text.Encoding.GetEncoding("UTF-8")); |
| | | sw.WriteLine(content);//å¼å§åå
¥å¼ |
| | | sw.Close(); |
| | | fs1.Close(); |
| | | result = true; |
| | | } |
| | | catch (Exception) |
| | | { |
| | | } |
| | | return result; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æ§å¶å¡è¿åä¿¡æ¯ |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | private string GetErrorMessage(string szfunctionName, int nResult, string screen) |
| | | { |
| | | string szResult; |
| | | DateTime dt = DateTime.Now; |
| | | //szResult = "ã" + screen + dt.ToString() + "ã" + szfunctionName + "è¿åç»æï¼"; |
| | | szResult = "è¿åç»æï¼"; |
| | | switch (nResult) |
| | | { |
| | | case 0xF7: |
| | | szResult += "åºåç±»åé误ï¼å¨æ·»å ãå é¤å¾æåºåæä»¶æ¶åºåç±»ååºéè¿åæ¤ç±»åé误"; |
| | | break; |
| | | case 0xF8: |
| | | szResult += "å·²ç»æè¯¥æ¾ç¤ºå±ä¿¡æ¯ãå¦è¦éæ°è®¾å®è¯·å
DeleteScreenå é¤è¯¥æ¾ç¤ºå±åæ·»å "; |
| | | break; |
| | | case 0xF9: |
| | | szResult += "æ²¡ææ¾å°ææçåºåæä»¶(徿åºå)"; |
| | | break; |
| | | case 0xFA: |
| | | szResult += "æ²¡ææ¾å°ææçæ¾ç¤ºåºåå¯ä»¥ä½¿ç¨AddScreenProgramBmpTextAreaæ·»å åºåä¿¡æ¯"; |
| | | break; |
| | | case 0xFB: |
| | | szResult += "æ²¡ææ¾å°ææçæ¾ç¤ºå±èç®å¯ä»¥ä½¿ç¨AddScreenProgram彿°æ·»å æå®èç®"; |
| | | break; |
| | | case 0xFC: |
| | | szResult += "ç³»ç»å
æ²¡ææ¥æ¾å°è¯¥æ¾ç¤ºå±å¯ä»¥ä½¿ç¨AddScreen彿°æ·»å æ¾ç¤ºå±"; |
| | | break; |
| | | case 0xFD: |
| | | szResult += "ç³»ç»å
æ£å¨å该æ¾ç¤ºå±é讯ï¼è¯·ç¨ååé讯"; |
| | | break; |
| | | case 0xFF: |
| | | szResult += "å
¶å®é误"; |
| | | break; |
| | | case 0: |
| | | szResult += "彿°æ§è¡/é讯æå"; |
| | | break; |
| | | case 0x01: |
| | | szResult += "é讯é误"; |
| | | break; |
| | | case 0x02: |
| | | szResult += "é讯é误"; |
| | | break; |
| | | case 0x03: |
| | | szResult += "é讯é误"; |
| | | break; |
| | | case 0x04: |
| | | szResult += "é讯é误"; |
| | | break; |
| | | case 0x05: |
| | | szResult += "é讯é误"; |
| | | break; |
| | | case 0x06: |
| | | szResult += "é讯é误"; |
| | | break; |
| | | case 0x07: |
| | | szResult += "é讯é误"; |
| | | break; |
| | | case 0x08: |
| | | szResult += "é讯é误"; |
| | | break; |
| | | case 0x09: |
| | | szResult += "é讯é误"; |
| | | break; |
| | | case 0x0A: |
| | | szResult += "é讯é误"; |
| | | break; |
| | | case 0x0B: |
| | | szResult += "é讯é误"; |
| | | break; |
| | | case 0x0C: |
| | | szResult += "é讯é误"; |
| | | break; |
| | | case 0x0D: |
| | | szResult += "é讯é误"; |
| | | break; |
| | | case 0x0E: |
| | | szResult += "é讯é误"; |
| | | break; |
| | | case 0x0F: |
| | | szResult += "é讯é误"; |
| | | break; |
| | | case 0x10: |
| | | szResult += "é讯é误"; |
| | | break; |
| | | case 0x11: |
| | | szResult += "é讯é误"; |
| | | break; |
| | | case 0x12: |
| | | szResult += "é讯é误"; |
| | | break; |
| | | case 0x13: |
| | | szResult += "é讯é误"; |
| | | break; |
| | | case 0x14: |
| | | szResult += "é讯é误"; |
| | | break; |
| | | case 0x15: |
| | | szResult += "é讯é误"; |
| | | break; |
| | | case 0x16: |
| | | szResult += "é讯é误"; |
| | | break; |
| | | case 0x17: |
| | | szResult += "é讯é误"; |
| | | break; |
| | | case 0x18: |
| | | szResult += "é讯é误"; |
| | | break; |
| | | case 0xFE: |
| | | szResult += "é讯é误"; |
| | | break; |
| | | } |
| | | return szResult; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// LEDä¸»çº¿ç¨ |
| | | /// </summary> |
| | | private void ThreadTask() |
| | | { |
| | | //if (flag) |
| | | //{ |
| | | // DisplayInfo("ã" + DateTime.Now.ToString() + "ãåå§å" + ledno + "å·å±æå"); |
| | | //} |
| | | while (true) |
| | | { |
| | | if (Common.gs_led_data[ledno - 1] != "") |
| | | { |
| | | SendLedData(); |
| | | } |
| | | Thread.Sleep(Common.ci_LedtimeInterval); |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | public class ONBON_CALLBACK |
| | | { |
| | | } |
| | | } |
| New file |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Net; |
| | | using System.Net.Sockets; |
| | | using System.Windows.Forms; |
| | | using System.Threading; |
| | | using System.Net.NetworkInformation; |
| | | using DevComponents.DotNetBar; |
| | | using System.Runtime.InteropServices; |
| | | using System.Data; |
| | | using com.force.json; |
| | | using HslCommunication.Profinet.Siemens; |
| | | using HslCommunication; |
| | | using HslCommunication.Core.Net; |
| | | |
| | | namespace WCS |
| | | { |
| | | /// <summary> |
| | | /// PLCAçº¿ç¨ |
| | | /// </summary> |
| | | class PlcAThread |
| | | { |
| | | //NetworkStream myNetworkStream; |
| | | //Thread thr = null; |
| | | delegate void displayresponse(string text); |
| | | //delegate void displayinseresponse(int val); |
| | | string recvStr = ""; |
| | | string plcip = ""; |
| | | int plcno = 0; |
| | | Thread trd = null; |
| | | int i_plc_step = 0; |
| | | int plcport = 0; |
| | | main form1; |
| | | public static string plc_cmd = ""; |
| | | //delegate void SetTextCallback(string text); |
| | | delegate void DisplayData(int type, int i); |
| | | //delegate void DisplayQuereData(int count); |
| | | delegate void DisplaySendTxtInfo(string info); |
| | | //delegate void DisplayErrData(int i); |
| | | //delegate void DisplayDataBuffer(int k); |
| | | |
| | | private SiemensS7Net siemensTcpNet = null; |
| | | private OperateResult connect = null; |
| | | |
| | | #region ç»é¢ä¸åæ¥æ¾ç¤ºæ§ä»¶ |
| | | public ListView plclist; |
| | | //public ListView plcbuflist; |
| | | //public DevComponents.DotNetBar.SuperGrid.SuperGridControl plcbuflist; |
| | | public ListBox tb; |
| | | //public LabelX lb_backMsg; |
| | | //public DevComponents.DotNetBar.LabelX querecount; |
| | | //public ListView errlist; |
| | | public LabelX sendtoplc; |
| | | //public DevComponents.DotNetBar.PanelEx os; |
| | | //public Panel os; |
| | | //public Microsoft.VisualBasic.PowerPacks.OvalShape mvpo; |
| | | #endregion |
| | | |
| | | |
| | | public PlcAThread(int plc_no, string plc_ip, int port, main f) |
| | | { |
| | | try |
| | | { |
| | | plcno = plc_no; |
| | | plcip = plc_ip; |
| | | plcport = port; |
| | | form1 = f; |
| | | |
| | | siemensTcpNet = new SiemensS7Net(SiemensPLCS.S1200); |
| | | siemensTcpNet.IpAddress = this.plcip; |
| | | siemensTcpNet.Port = this.plcport; |
| | | siemensTcpNet.Rack = 0; |
| | | siemensTcpNet.Slot = 0; |
| | | siemensTcpNet.ConnectClose(); |
| | | |
| | | trd = new Thread(new ThreadStart(this.ThreadTask)); |
| | | trd.IsBackground = true; |
| | | trd.Start(); |
| | | } |
| | | catch (Exception em) |
| | | { |
| | | Common.WriteLogFile("WcsError", "PlcAThread/PlcThread--PLC线ç¨å¯å¨åºé:" + em.Message); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æå¼è¿æ¥åï¼éæ°è¿æ¥ |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | private bool ReConnect() |
| | | { |
| | | bool result = false; |
| | | try |
| | | { |
| | | siemensTcpNet.ConnectClose(); |
| | | connect = siemensTcpNet.ConnectServer(); |
| | | if (connect.IsSuccess) |
| | | { |
| | | result = true; |
| | | DisplayInfo("ã" + DateTime.Now.ToString() + "ãPLCAéæ°è¿æ¥PLCæå "); |
| | | } |
| | | else |
| | | { |
| | | DisplayInfo("ã" + DateTime.Now.ToString() + "ãPLCAéæ°è¿æ¥PLC失败---" + connect.ToMessageShowString()); |
| | | } |
| | | } |
| | | catch (Exception em) |
| | | { |
| | | DisplayInfo("ã" + DateTime.Now.ToString() + "ãPLCAéæ°è¿æ¥PLC失败---" + em.Message); |
| | | } |
| | | return result; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æ ¹æ®å½ä»¤åç¬¦ä¸²å¤æä½ä¸ç±»å |
| | | /// </summary> |
| | | private void CommandStr_nkindstep() |
| | | { |
| | | int i = 0; |
| | | try |
| | | { |
| | | if (plc_cmd == null || plc_cmd == "") |
| | | { |
| | | i = 1; |
| | | } |
| | | else |
| | | { |
| | | i = Convert.ToInt32(plc_cmd.Substring(0, 2)); |
| | | } |
| | | } |
| | | catch (Exception em) |
| | | { |
| | | Common.WriteLogFile("WcsError", "PlcAThread/CommandStr_nkindstep--æ ¹æ®å½ä»¤åç¬¦ä¸²å¤æä½ä¸ç±»ååºé:" + em.Message); |
| | | return; |
| | | } |
| | | switch (i) |
| | | { |
| | | case 1: |
| | | i_plc_step = 1; |
| | | break; |
| | | case 2: |
| | | i_plc_step = 2; |
| | | break; |
| | | case 3: |
| | | i_plc_step = 3; |
| | | break; |
| | | case 4: |
| | | i_plc_step = 4; |
| | | break; |
| | | case 5://æ¸
buffer |
| | | i_plc_step = 5; |
| | | break; |
| | | case 6://æå |
| | | i_plc_step = 6; |
| | | break; |
| | | default: |
| | | i_plc_step = 1; |
| | | break; |
| | | } |
| | | } |
| | | |
| | | /////////////////////////////////////---------------------------------------读plcä¸å----------------------------- |
| | | /// <summary> |
| | | /// 读PLC id |
| | | /// </summary> |
| | | private void GetStaIdArea() |
| | | { |
| | | string s_plchead = "", s_chksum = "", s_SendString = ""; |
| | | string s_RecStr = "", s_startadd = "", s_len = ""; |
| | | byte[] buf = new byte[12]; |
| | | byte[] buf1 = new byte[500]; |
| | | byte[] content = new byte[200]; |
| | | int n = 0, num = 0, num1 = 0, k = 0, pi_return = 0, i_startadd = 0, i_len = 0, i_val = 0; |
| | | byte[] bte_value = new byte[4]; |
| | | byte[] bte_addr = new byte[2]; |
| | | s_RecStr = ""; |
| | | recvStr = ""; |
| | | try |
| | | { |
| | | s_startadd = "DB100.0"; //读åå åæºç¶æèµ·å§å°å |
| | | i_len = 60; //读åå åæºç¶æå°åé¿åº¦ |
| | | OperateResult<byte[]> read = siemensTcpNet.Read(s_startadd, (ushort)i_len); |
| | | if (read.IsSuccess) |
| | | { |
| | | for (int i = 0; i < 10; i++) //ç«ç¹æ° |
| | | { |
| | | num = siemensTcpNet.ByteTransform.TransInt16(read.Content, i * 4); |
| | | Common.plc_i_Wrk_no[plcno - 1, i] = num; //ID |
| | | DisplayPLCDataInfo(1, i); |
| | | recvStr = recvStr + num.ToString(); |
| | | |
| | | num = siemensTcpNet.ByteTransform.TransInt16(read.Content, 2 + (i * 4)); |
| | | Common.plc_s_next_stn[plcno - 1, i] = num.ToString(); //ç®æ |
| | | DisplayPLCDataInfo(3, i); |
| | | recvStr = recvStr + num.ToString(); |
| | | } |
| | | |
| | | bool[] stsArray = siemensTcpNet.ByteTransform.TransBool(read.Content, 60, 10); //å°åèµ·å§é¿åº¦ï¼ç«ç¹æ° |
| | | for (int j = 0; j < 10; j++) //ç¶æ |
| | | { |
| | | int i = j; |
| | | if (stsArray[j * 8]) |
| | | { |
| | | Common.plc_s_autoing[plcno - 1, i] = "Y"; |
| | | } |
| | | else |
| | | { |
| | | Common.plc_s_autoing[plcno - 1, i] = "N"; |
| | | } |
| | | if (stsArray[j * 8 + 1]) |
| | | { |
| | | Common.plc_s_loading[plcno - 1, i] = "Y"; |
| | | } |
| | | else |
| | | { |
| | | Common.plc_s_loading[plcno - 1, i] = "N"; |
| | | //åºç°è¿æ ç©æ
嵿¸
é¤plc_i_pakmkæ è®°ï¼éè¿å¤æplc_i_pakmkæ è®°ï¼é²æ¢éå¤ä¸æä»¤ |
| | | Common.plc_i_pakmk[plcno - 1, i] = 0; |
| | | } |
| | | if (stsArray[j * 8 + 2]) |
| | | { |
| | | Common.plc_s_canining[plcno - 1, i] = "Y"; |
| | | } |
| | | else |
| | | { |
| | | Common.plc_s_canining[plcno - 1, i] = "N"; |
| | | } |
| | | if (stsArray[j * 8 + 3]) |
| | | { |
| | | Common.plc_s_canouting[plcno - 1, i] = "Y"; |
| | | } |
| | | else |
| | | { |
| | | Common.plc_s_canouting[plcno - 1, i] = "N"; |
| | | } |
| | | if (stsArray[j * 8 + 4]) |
| | | { |
| | | Common.plc_s_inreq1[plcno - 1, i] = "Y"; |
| | | } |
| | | else |
| | | { |
| | | Common.plc_s_inreq1[plcno - 1, i] = "N"; |
| | | } |
| | | if (stsArray[j * 8 + 5]) |
| | | { |
| | | Common.plc_s_inreq2[plcno - 1, i] = "Y"; |
| | | } |
| | | else |
| | | { |
| | | Common.plc_s_inreq2[plcno - 1, i] = "N"; |
| | | } |
| | | if (stsArray[j * 8 + 6]) |
| | | { |
| | | Common.plc_s_loctype[plcno - 1, i] = "Y"; |
| | | } |
| | | else |
| | | { |
| | | Common.plc_s_loctype[plcno - 1, i] = "N"; |
| | | } |
| | | |
| | | DisplayPLCDataInfo(2, i); |
| | | recvStr = recvStr + num.ToString(); |
| | | } |
| | | |
| | | //è¯»åæ¡ç |
| | | string i_barcode = ""; |
| | | for (int i = 0; i < Common.ci_barcode_count; i++) //BarCODE |
| | | { |
| | | if (i == 0) |
| | | { |
| | | OperateResult<byte[]> barcode = siemensTcpNet.Read("DB100.90", (byte)8); |
| | | i_barcode = Encoding.UTF8.GetString(barcode.Content); |
| | | } |
| | | else |
| | | { |
| | | OperateResult<byte[]> barcode = siemensTcpNet.Read("DB100.98", (byte)8); |
| | | i_barcode = Encoding.UTF8.GetString(barcode.Content); |
| | | } |
| | | Common.gs_barcode_data[i] = i_barcode; |
| | | //i_barcode = ParseSource(barcode.Content); |
| | | //i_barcode = siemensTcpNet.ByteTransform.TransString(barcode.Content, i * 8, 8,UTF8 ); |
| | | //i_barcode = Encoding.UTF8.GetString(barcode.Content); |
| | | //long i_barcode = siemensTcpNet.ByteTransform.TransInt32(read.Content, 86 + (i * 4)); |
| | | //Common.gs_barcode_data[i] = i_barcode; |
| | | } |
| | | |
| | | #region å°è½¦ |
| | | //for (int j = 48; j < 50; j++) //ç¶æ |
| | | //{ |
| | | // int i = j - 48; |
| | | // num = siemensTcpNet.ByteTransform.TransInt16(read.Content, 48 + i * 2); |
| | | // if (j == 48) //å°è½¦ä½ç½® |
| | | // { |
| | | // Common.gi_RGVPos[0] = num; |
| | | // } |
| | | // if (j == 49) //å¿è·³ |
| | | // { |
| | | // int heartBeat = num; |
| | | // if (heartBeat != 2) |
| | | // { |
| | | // heartBeat = 2; |
| | | // } |
| | | // else |
| | | // { |
| | | // heartBeat = 1; |
| | | // } |
| | | // OperateResult result = siemensTcpNet.Write("DB100.50", (short)heartBeat); |
| | | // } |
| | | //} |
| | | #endregion |
| | | DisplayInfo("ã" + DateTime.Now.ToString() + "ãæ«æPLCAæ°æ®--" + recvStr);//忥æ¾ç¤º |
| | | } |
| | | else |
| | | { |
| | | DisplayInfo("ã" + DateTime.Now.ToString() + "ãæ«æPLCAæ°æ®å¤±è´¥:" + read.ToMessageShowString()); |
| | | } |
| | | } |
| | | catch (Exception em) |
| | | { |
| | | DisplayInfo("ã" + DateTime.Now.ToString() + "ã" + plcno + "#读åç«ç¹ID失败: " + em.Message);//忥æ¾ç¤º |
| | | Common.WriteLogFile("WcsError", "PlcAThread/GetStaIdArea--读åç«ç¹ID失败:" + em.Message); |
| | | return; |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 读åPLC设å¤ç¶æå°åå¼ |
| | | /// </summary> |
| | | private void GetStaStsArea() |
| | | { |
| | | string s_plchead = "", s_chksum = "", s_SendString = ""; |
| | | string s_RecStr = "", s_startadd = "", s_len = ""; |
| | | byte[] buf = new byte[12]; |
| | | byte[] buf1 = new byte[500]; |
| | | byte[] content = new byte[100]; |
| | | int n = 0, num = 0, num1 = 0, k = 0, pi_return = 0, i_startadd = 0, i_len = 0, i_val = 0; |
| | | byte[] bte_value = new byte[4]; |
| | | byte[] bte_addr = new byte[2]; |
| | | int l = 0; |
| | | s_RecStr = ""; |
| | | recvStr = ""; |
| | | try |
| | | { |
| | | s_startadd = "DB100.60"; //读åå åæºç¶æèµ·å§å°å |
| | | i_len = 10; //读åå åæºç¶æå°åé¿åº¦ |
| | | OperateResult<byte[]> read = siemensTcpNet.Read(s_startadd, (ushort)i_len); |
| | | if (read.IsSuccess) |
| | | { |
| | | bool[] stsArray = siemensTcpNet.ByteTransform.TransBool(read.Content, 0, 10); |
| | | for (int i = 0; i < 11; i++) //ç¶æ |
| | | { |
| | | if (stsArray[i * 8]) |
| | | { |
| | | Common.plc_s_autoing[plcno - 1, i] = "Y"; |
| | | } |
| | | else |
| | | { |
| | | Common.plc_s_autoing[plcno - 1, i] = "N"; |
| | | } |
| | | if (stsArray[i * 8 + 1]) |
| | | { |
| | | Common.plc_s_loading[plcno - 1, i] = "Y"; |
| | | } |
| | | else |
| | | { |
| | | Common.plc_s_loading[plcno - 1, i] = "N"; |
| | | //åºç°è¿æ ç©æ
嵿¸
é¤plc_i_pakmkæ è®°ï¼éè¿å¤æplc_i_pakmkæ è®°ï¼é²æ¢éå¤ä¸æä»¤ |
| | | Common.plc_i_pakmk[plcno - 1, i] = 0; |
| | | } |
| | | if (stsArray[i * 8 + 2]) |
| | | { |
| | | Common.plc_s_canining[plcno - 1, i] = "Y"; |
| | | } |
| | | else |
| | | { |
| | | Common.plc_s_canining[plcno - 1, i] = "N"; |
| | | } |
| | | if (stsArray[i * 8 + 3]) |
| | | { |
| | | Common.plc_s_canouting[plcno - 1, i] = "Y"; |
| | | } |
| | | else |
| | | { |
| | | Common.plc_s_canouting[plcno - 1, i] = "N"; |
| | | } |
| | | if (stsArray[i * 8 + 4]) |
| | | { |
| | | Common.plc_s_inreq1[plcno - 1, i] = "Y"; |
| | | } |
| | | else |
| | | { |
| | | Common.plc_s_inreq1[plcno - 1, i] = "N"; |
| | | } |
| | | if (stsArray[i * 8 + 5]) |
| | | { |
| | | Common.plc_s_inreq2[plcno - 1, i] = "Y"; |
| | | } |
| | | else |
| | | { |
| | | Common.plc_s_inreq2[plcno - 1, i] = "N"; |
| | | } |
| | | if (stsArray[i * 8 + 6]) |
| | | { |
| | | Common.plc_s_loctype[plcno - 1, i] = "Y"; |
| | | } |
| | | else |
| | | { |
| | | Common.plc_s_loctype[plcno - 1, i] = "N"; |
| | | } |
| | | |
| | | //buf1 = read.Content; |
| | | //num = 256 * (int)buf1[i * 2] + (int)buf1[i * 2 + 1]; |
| | | //AnalyseStaStatus(i, num); |
| | | DisplayPLCDataInfo(2, i); |
| | | |
| | | recvStr = recvStr + num.ToString(); |
| | | } |
| | | DisplayInfo("ã" + DateTime.Now.ToString() + "ãæ«æPLCAç¶æ--" + recvStr);//忥æ¾ç¤º |
| | | } |
| | | else |
| | | { |
| | | DisplayInfo("ã" + DateTime.Now.ToString() + "ãæ«æPLCAç¶æå¤±è´¥:" + read.ToMessageShowString()); |
| | | } |
| | | #region æ½èå¾· |
| | | //Socket socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); |
| | | //socket.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.ReuseAddress, true); |
| | | //try |
| | | //{ |
| | | // socket.Connect(plcip, plcport); |
| | | // i_startadd = 3001; //3001 //模æå¨ä»£è¡¨å°å1001å¼å§ï¼ç¨åºä¸å¿
é¡»å®é
å°å-1 ï¼#0+#$64表示读100个å°å |
| | | // s_startadd = i_startadd.ToString("X4"); |
| | | // bte_value[0] = (byte)Convert.ToInt32(s_startadd.Substring(0, 2), 16); |
| | | // bte_value[1] = (byte)Convert.ToInt32(s_startadd.Substring(2, 2), 16); |
| | | // //ç»ä¸æ ¼å¼ï¼è¯»å°åé¿åº¦ |
| | | // i_len = 13; //ç®åæé¿è¯»125个 |
| | | // s_len = i_len.ToString("X4"); |
| | | // bte_value[2] = (byte)Convert.ToInt32(s_len.Substring(0, 2), 16); |
| | | // bte_value[3] = (byte)Convert.ToInt32(s_len.Substring(2, 2), 16); |
| | | // ////åéæ ¼å¼ |
| | | // //#0+#1+#0+#0+#0+#$15+#$FF+#$10+chr(bte1[1])+chr(bte1[2])+#0+#$7+#$E+chr(bte[1])+chr(bte[2])+chr(bte[3])+chr(bte[4])+chr(bte[5])+chr(bte[6])+chr(bte[7])+chr(bte[8])+chr(bte[9])+chr(bte[10])+chr(bte[11])+chr(bte[12])+chr(bte[13])+chr(bte[14]); |
| | | // //s_SendString = GetStringByASCII(0) + GetStringByASCII(0) + GetStringByASCII(0) + GetStringByASCII(0) + GetStringByASCII(0) + GetStringByASCII(6) + " " + GetStringByASCII(3) + GetStringByASCII(bte_value[0]) + GetStringByASCII(bte_value[1]) + GetStringByASCII(bte_value[2]) + GetStringByASCII(bte_value[3]); |
| | | // buf[0] = (byte)(0); |
| | | // buf[1] = (byte)(0); |
| | | // buf[2] = (byte)(0); |
| | | // buf[3] = (byte)(0); |
| | | // buf[4] = (byte)(0); |
| | | // buf[5] = (byte)(6); |
| | | // buf[6] = (byte)(32); |
| | | // buf[7] = (byte)(3); |
| | | // buf[8] = (byte)(bte_value[0]); |
| | | // buf[9] = (byte)(bte_value[1]); |
| | | // buf[10] = (byte)(bte_value[2]); |
| | | // buf[11] = (byte)(bte_value[3]); |
| | | |
| | | // socket.Send(buf, buf.Length, 0); |
| | | // int bytes = 0; |
| | | // bytes = socket.Receive(buf1, buf1.Length, 0); |
| | | // socket.Close(); |
| | | // Thread.Sleep(Common.ci_PLCtimeInterval); |
| | | // for (int i = 0; i < 13; i++) |
| | | // { |
| | | // try |
| | | // { |
| | | // num = 256 * (int)buf1[i * 2 + 9] + (int)buf1[i * 2 + 10]; |
| | | // j = i; |
| | | // } |
| | | // catch (Exception r) |
| | | // { |
| | | // num = 0; |
| | | // } |
| | | // recvStr = recvStr + num.ToString(); |
| | | // AnalyseStaStatus(j, num); |
| | | // DisplayPLCDataInfo(2, j); |
| | | // // ChkCrnSts(i, num); |
| | | // } |
| | | // DisplayInfo("ã" + DateTime.Now.ToString() + "ãæ«æç¶æ1--" + recvStr);//忥æ¾ç¤º |
| | | //} |
| | | //catch (Exception t) |
| | | //{ |
| | | // DisplayInfo("ã" + DateTime.Now.ToString() + "ãæ«æç¶æ1失败:" + t.Message);//忥æ¾ç¤º |
| | | // //Nondisstnsts(); |
| | | // //for (int h = 0; h < 27; h++) |
| | | // //{ |
| | | |
| | | // // DisplayPLCDataInfo(2, h); |
| | | // //} |
| | | // socket.Close(); |
| | | // return; |
| | | //} |
| | | #endregion |
| | | } |
| | | catch (Exception em) |
| | | { |
| | | DisplayInfo("ã" + DateTime.Now.ToString() + "ã" + plcno + "#读åç«ç¹ç¶æå¤±è´¥: " + em.Message);//忥æ¾ç¤º |
| | | Common.WriteLogFile("WcsError", "PlcAThread/GetStaStsArea--读åç«ç¹ç¶æå¤±è´¥:" + em.Message); |
| | | return; |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// åæç«ç¹åç¶æ |
| | | /// </summary> |
| | | /// <param name="i">ç«ç¹åºå</param> |
| | | /// <param name="num">ç¶æå¼</param> |
| | | private void AnalyseStaStatus(int i, int num) |
| | | { |
| | | try |
| | | { |
| | | if (Common.fun_ChkAndByte(num, Common.ch_d1) == true) |
| | | { |
| | | Common.plc_s_autoing[plcno - 1, i] = "Y"; |
| | | } |
| | | else |
| | | { |
| | | Common.plc_s_autoing[plcno - 1, i] = "N"; |
| | | |
| | | } |
| | | if (Common.fun_ChkAndByte(num, Common.ch_d2) == true) |
| | | { |
| | | Common.plc_s_loading[plcno - 1, i] = "Y"; |
| | | } |
| | | else |
| | | { |
| | | Common.plc_s_loading[plcno - 1, i] = "N"; |
| | | //åºç°è¿æ ç©æ
嵿¸
é¤plc_i_pakmkæ è®°ï¼éè¿å¤æplc_i_pakmkæ è®°ï¼é²æ¢éå¤ä¸æä»¤ |
| | | Common.plc_i_pakmk[plcno - 1, i] = 0; |
| | | } |
| | | if (Common.fun_ChkAndByte(num, Common.ch_d3) == true) |
| | | { |
| | | Common.plc_s_canining[plcno - 1, i] = "Y"; |
| | | } |
| | | else |
| | | { |
| | | Common.plc_s_canining[plcno - 1, i] = "N"; |
| | | } |
| | | if (Common.fun_ChkAndByte(num, Common.ch_d4) == true) |
| | | { |
| | | Common.plc_s_canouting[plcno - 1, i] = "Y"; |
| | | } |
| | | else |
| | | { |
| | | Common.plc_s_canouting[plcno - 1, i] = "N"; |
| | | Common.plc_i_pakmk[plcno - 1, i] = 0; |
| | | } |
| | | if (Common.fun_ChkAndByte(num, Common.ch_d5) == true) |
| | | { |
| | | Common.plc_s_inreq1[plcno - 1, i] = "Y"; |
| | | } |
| | | else |
| | | { |
| | | Common.plc_s_inreq1[plcno - 1, i] = "N"; |
| | | } |
| | | if (Common.fun_ChkAndByte(num, Common.ch_d6) == true) |
| | | { |
| | | Common.plc_s_inreq2[plcno - 1, i] = "Y"; |
| | | } |
| | | else |
| | | { |
| | | Common.plc_s_inreq2[plcno - 1, i] = "N"; |
| | | } |
| | | if (Common.fun_ChkAndByte(num, Common.ch_d7) == true) |
| | | { |
| | | Common.plc_s_loctype[plcno - 1, i] = "Y"; |
| | | } |
| | | else |
| | | { |
| | | Common.plc_s_loctype[plcno - 1, i] = "N"; |
| | | } |
| | | } |
| | | catch (Exception em) |
| | | { |
| | | Common.WriteLogFile("WcsError", "PlcThread/AnalyseStaStatus1--æ«æç«ç¹ç¶æå失败:" + em.Message); |
| | | } |
| | | } |
| | | |
| | | #region 设å¤å¼å¸¸ |
| | | /// <summary> |
| | | /// å¾å°è®¾å¤å¼å¸¸ |
| | | /// </summary> |
| | | private void GetStaErrArea1() |
| | | { |
| | | string s_plchead = "", s_chksum = "", s_SendString = ""; |
| | | string s_RecStr = "", s_startadd = "", s_len = ""; |
| | | byte[] buf = new byte[12]; |
| | | byte[] buf1 = new byte[500]; |
| | | byte[] content = new byte[100]; |
| | | int n = 0, num = 0, num1 = 0, k = 0, pi_return = 0, i_startadd = 0, i_len = 0, i_val = 0; |
| | | byte[] bte_value = new byte[4]; |
| | | byte[] bte_addr = new byte[2]; |
| | | s_RecStr = ""; |
| | | recvStr = ""; |
| | | int seq = 0; |
| | | try |
| | | { |
| | | //s_startadd = "DB101.4"; //读åå åæºç¶æèµ·å§å°å |
| | | //i_len = 12; //读åå åæºç¶æå°åé¿åº¦ |
| | | //OperateResult<byte[]> read = siemensTcpNet.Read(s_startadd, (ushort)i_len); |
| | | //if (read.IsSuccess) |
| | | //{ |
| | | // bool[] StaErr = siemensTcpNet.ByteTransform.TransBool(read.Content,0, 12); //å°åèµ·å§é¿åº¦ï¼ç«ç¹æ° |
| | | // for (int i = 0; i < 96; i++) |
| | | // { |
| | | |
| | | // Common.plcerr[i] = StaErr[i] ? "Y" : "N"; |
| | | // } |
| | | //} |
| | | |
| | | s_startadd = "DB101.4"; //读åå åæºç¶æèµ·å§å°å |
| | | i_len = 4; //读åå åæºç¶æå°åé¿åº¦ |
| | | OperateResult<byte[]> read = siemensTcpNet.Read(s_startadd, (ushort)i_len); |
| | | if (read.IsSuccess) |
| | | { |
| | | bool[] StaErr = siemensTcpNet.ByteTransform.TransBool(read.Content, 0, 4); //å°åèµ·å§é¿åº¦ï¼ç«ç¹æ° |
| | | for (int i = 0; i < 27; i++) |
| | | { |
| | | Common.plcerr[i] = StaErr[i] ? "Y" : "N"; |
| | | } |
| | | } |
| | | |
| | | s_startadd = "DB101.12"; //读åå åæºç¶æèµ·å§å°å |
| | | i_len = 4; //读åå åæºç¶æå°åé¿åº¦ |
| | | OperateResult<byte[]> read1 = siemensTcpNet.Read(s_startadd, (ushort)i_len); |
| | | if (read1.IsSuccess) |
| | | { |
| | | bool[] StaErr = siemensTcpNet.ByteTransform.TransBool(read1.Content, 0, 4); //å°åèµ·å§é¿åº¦ï¼ç«ç¹æ° |
| | | for (int i = 0; i < 27; i++) |
| | | { |
| | | Common.plcerr[i + 27] = StaErr[i] ? "Y" : "N"; |
| | | } |
| | | } |
| | | } |
| | | #region æ½èå¾· |
| | | //try |
| | | //{ |
| | | // Socket socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); |
| | | // socket.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.ReuseAddress, true); |
| | | // try |
| | | // { |
| | | // socket.Connect(plcip, plcport); |
| | | // i_startadd = 800; //模æå¨ä»£è¡¨å°å1001å¼å§ï¼ç¨åºä¸å¿
é¡»å®é
å°å-1 ï¼#0+#$64表示读100个å°å |
| | | // s_startadd = i_startadd.ToString("X4"); |
| | | // bte_value[0] = (byte)Convert.ToInt32(s_startadd.Substring(0, 2), 16); |
| | | // bte_value[1] = (byte)Convert.ToInt32(s_startadd.Substring(2, 2), 16); |
| | | // //ç»ä¸æ ¼å¼ï¼è¯»å°åé¿åº¦ |
| | | // i_len = 4; //ç®åæé¿è¯»125个 |
| | | // s_len = i_len.ToString("X4"); |
| | | // bte_value[2] = (byte)Convert.ToInt32(s_len.Substring(0, 2), 16); |
| | | // bte_value[3] = (byte)Convert.ToInt32(s_len.Substring(2, 2), 16); |
| | | // ////åéæ ¼å¼ |
| | | // //#0+#1+#0+#0+#0+#$15+#$FF+#$10+chr(bte1[1])+chr(bte1[2])+#0+#$7+#$E+chr(bte[1])+chr(bte[2])+chr(bte[3])+chr(bte[4])+chr(bte[5])+chr(bte[6])+chr(bte[7])+chr(bte[8])+chr(bte[9])+chr(bte[10])+chr(bte[11])+chr(bte[12])+chr(bte[13])+chr(bte[14]); |
| | | // //s_SendString = GetStringByASCII(0) + GetStringByASCII(0) + GetStringByASCII(0) + GetStringByASCII(0) + GetStringByASCII(0) + GetStringByASCII(6) + " " + GetStringByASCII(3) + GetStringByASCII(bte_value[0]) + GetStringByASCII(bte_value[1]) + GetStringByASCII(bte_value[2]) + GetStringByASCII(bte_value[3]); |
| | | // buf[0] = (byte)(0); |
| | | // buf[1] = (byte)(0); |
| | | // buf[2] = (byte)(0); |
| | | // buf[3] = (byte)(0); |
| | | // buf[4] = (byte)(0); |
| | | // buf[5] = (byte)(6); |
| | | // buf[6] = (byte)(32); |
| | | // buf[7] = (byte)(3); |
| | | // buf[8] = (byte)(bte_value[0]); |
| | | // buf[9] = (byte)(bte_value[1]); |
| | | // buf[10] = (byte)(bte_value[2]); |
| | | // buf[11] = (byte)(bte_value[3]); |
| | | |
| | | // socket.Send(buf, buf.Length, 0); |
| | | // int bytes = 0; |
| | | // bytes = socket.Receive(buf1, buf1.Length, 0); |
| | | // socket.Close(); |
| | | // Thread.Sleep(Common.ci_PLCtimeInterval); |
| | | // for (int i = 0; i < 4; i++) |
| | | // { |
| | | // try |
| | | // { |
| | | // num = 256 * (int)buf1[i * 2 + 9] + (int)buf1[i * 2 + 10]; |
| | | // if (i == 0) |
| | | // { |
| | | // Common.gi_RGVPos[0] = num; |
| | | // } |
| | | // else |
| | | // { |
| | | // AnalyseStaErr1(i - 1, num); |
| | | // } |
| | | // } |
| | | // catch (Exception r) |
| | | // { |
| | | // num = 0; |
| | | // } |
| | | // recvStr = recvStr + num.ToString(); |
| | | // } |
| | | // DisplayInfo("ã" + DateTime.Now.ToString() + "ãæ«æè®¾å¤å¼å¸¸1--" + recvStr);//忥æ¾ç¤º |
| | | |
| | | // //ç¦ç¨Socket |
| | | // ////socket.Shutdown(SocketShutdown.Both); |
| | | // ////socket.Disconnect(true); |
| | | // //socket.Close(); |
| | | // } |
| | | // catch (Exception t) |
| | | // { |
| | | // DisplayInfo("ã" + DateTime.Now.ToString() + "ãæ«æè®¾å¤å¼å¸¸1失败:" + t.Message);//忥æ¾ç¤º |
| | | // //Nondisstnsts(); |
| | | // //socket.Shutdown(SocketShutdown.Both); |
| | | // //socket.Disconnect(true); |
| | | // socket.Close(); |
| | | // return; |
| | | // } |
| | | //} |
| | | #endregion |
| | | catch (Exception em) |
| | | { |
| | | DisplayInfo("ã" + DateTime.Now.ToString() + "ã" + plcno + "#读å设å¤å¼å¸¸å¤±è´¥: " + em.Message);//忥æ¾ç¤º |
| | | Common.WriteLogFile("WcsError", "PlcAThread/GetStaStsArea--读å设å¤å¼å¸¸å¤±è´¥:" + em.Message); |
| | | return; |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// åæç«ç¹å¼å¸¸ |
| | | /// </summary> |
| | | /// <param name="i">ç«ç¹åºå</param> |
| | | /// <param name="num">å¼å¸¸å¼</param> |
| | | private void AnalyseStaErr1(int i, int num) |
| | | { |
| | | try |
| | | { |
| | | if (Common.fun_ChkAndByte(num, Common.ch_d1) == true) |
| | | { |
| | | Common.plcerr[i * 16 + 0] = "Y"; |
| | | } |
| | | else |
| | | { |
| | | Common.plcerr[i * 16 + 0] = "N"; |
| | | } |
| | | if (Common.fun_ChkAndByte(num, Common.ch_d2) == true) |
| | | { |
| | | Common.plcerr[i * 16 + 1] = "Y"; |
| | | } |
| | | else |
| | | { |
| | | Common.plcerr[i * 16 + 1] = "N"; |
| | | } |
| | | if (Common.fun_ChkAndByte(num, Common.ch_d3) == true) |
| | | { |
| | | Common.plcerr[i * 16 + 2] = "Y"; |
| | | } |
| | | else |
| | | { |
| | | Common.plcerr[i * 16 + 2] = "N"; |
| | | } |
| | | if (Common.fun_ChkAndByte(num, Common.ch_d4) == true) |
| | | { |
| | | Common.plcerr[i * 16 + 3] = "Y"; |
| | | } |
| | | else |
| | | { |
| | | Common.plcerr[i * 16 + 3] = "N"; |
| | | } |
| | | if (Common.fun_ChkAndByte(num, Common.ch_d5) == true) |
| | | { |
| | | Common.plcerr[i * 16 + 4] = "Y"; |
| | | } |
| | | else |
| | | { |
| | | Common.plcerr[i * 16 + 4] = "N"; |
| | | } |
| | | if (Common.fun_ChkAndByte(num, Common.ch_d6) == true) |
| | | { |
| | | Common.plcerr[i * 16 + 5] = "Y"; |
| | | } |
| | | else |
| | | { |
| | | Common.plcerr[i * 16 + 5] = "N"; |
| | | } |
| | | if (Common.fun_ChkAndByte(num, Common.ch_d7) == true) |
| | | { |
| | | Common.plcerr[i * 16 + 6] = "Y"; |
| | | } |
| | | else |
| | | { |
| | | Common.plcerr[i * 16 + 6] = "N"; |
| | | } |
| | | if (Common.fun_ChkAndByte(num, Common.ch_d8) == true) |
| | | { |
| | | Common.plcerr[i * 16 + 7] = "Y"; |
| | | } |
| | | else |
| | | { |
| | | Common.plcerr[i * 16 + 7] = "N"; |
| | | } |
| | | if (Common.fun_ChkAndByte(num, Common.ch_d9) == true) |
| | | { |
| | | Common.plcerr[i * 16 + 8] = "Y"; |
| | | } |
| | | else |
| | | { |
| | | Common.plcerr[i * 16 + 8] = "N"; |
| | | } |
| | | if (Common.fun_ChkAndByte(num, Common.ch_d10) == true) |
| | | { |
| | | Common.plcerr[i * 16 + 9] = "Y"; |
| | | } |
| | | else |
| | | { |
| | | Common.plcerr[i * 16 + 9] = "N"; |
| | | } |
| | | if (Common.fun_ChkAndByte(num, Common.ch_d11) == true) |
| | | { |
| | | Common.plcerr[i * 16 + 10] = "Y"; |
| | | } |
| | | else |
| | | { |
| | | Common.plcerr[i * 16 + 10] = "N"; |
| | | } |
| | | if (Common.fun_ChkAndByte(num, Common.ch_d12) == true) |
| | | { |
| | | Common.plcerr[i * 16 + 11] = "Y"; |
| | | } |
| | | else |
| | | { |
| | | Common.plcerr[i * 16 + 11] = "N"; |
| | | } |
| | | if (Common.fun_ChkAndByte(num, Common.ch_d13) == true) |
| | | { |
| | | Common.plcerr[i * 16 + 12] = "Y"; |
| | | } |
| | | else |
| | | { |
| | | Common.plcerr[i * 16 + 12] = "N"; |
| | | } |
| | | if (Common.fun_ChkAndByte(num, Common.ch_d14) == true) |
| | | { |
| | | Common.plcerr[i * 16 + 13] = "Y"; |
| | | } |
| | | else |
| | | { |
| | | Common.plcerr[i * 16 + 13] = "N"; |
| | | } |
| | | if (Common.fun_ChkAndByte(num, Common.ch_d15) == true) |
| | | { |
| | | Common.plcerr[i * 16 + 14] = "Y"; |
| | | } |
| | | else |
| | | { |
| | | Common.plcerr[i * 16 + 14] = "N"; |
| | | } |
| | | if (Common.fun_ChkAndByte(num, Common.ch_d16) == true) |
| | | { |
| | | Common.plcerr[i * 16 + 15] = "Y"; |
| | | } |
| | | else |
| | | { |
| | | Common.plcerr[i * 16 + 15] = "N"; |
| | | } |
| | | } |
| | | catch (Exception em) |
| | | { |
| | | Common.WriteLogFile("WcsError", "PlcThread/AnalyseStaErr1--åæç«ç¹åå¼å¸¸å¤±è´¥:" + em.Message); |
| | | } |
| | | } |
| | | #endregion |
| | | |
| | | /// <summary> |
| | | /// 读åPLCç®æ ç«å°åå¼ |
| | | /// </summary> |
| | | private void GetStaDestArea() |
| | | { |
| | | string s_plchead = "", s_chksum = "", s_SendString = ""; |
| | | string s_RecStr = "", s_startadd = "", s_len = ""; |
| | | byte[] buf = new byte[12]; |
| | | byte[] buf1 = new byte[500]; |
| | | byte[] content = new byte[200]; |
| | | int n = 0, num = 0, num1 = 0, k = 0, pi_return = 0, i_startadd = 0, i_len = 0, i_val = 0; |
| | | byte[] bte_value = new byte[4]; |
| | | byte[] bte_addr = new byte[2]; |
| | | s_RecStr = ""; |
| | | recvStr = ""; |
| | | int j = 0; |
| | | try |
| | | { |
| | | Socket socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); |
| | | socket.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.ReuseAddress, true); |
| | | try |
| | | { |
| | | socket.Connect(plcip, plcport); |
| | | i_startadd = 2001; //2001 //模æå¨ä»£è¡¨å°å1001å¼å§ï¼ç¨åºä¸å¿
é¡»å®é
å°å-1 ï¼#0+#$64表示读100个å°å |
| | | s_startadd = i_startadd.ToString("X4"); |
| | | bte_value[0] = (byte)Convert.ToInt32(s_startadd.Substring(0, 2), 16); |
| | | bte_value[1] = (byte)Convert.ToInt32(s_startadd.Substring(2, 2), 16); |
| | | //ç»ä¸æ ¼å¼ï¼è¯»å°åé¿åº¦ |
| | | i_len = 13; //ç®åæé¿è¯»125个 |
| | | s_len = i_len.ToString("X4"); |
| | | bte_value[2] = (byte)Convert.ToInt32(s_len.Substring(0, 2), 16); |
| | | bte_value[3] = (byte)Convert.ToInt32(s_len.Substring(2, 2), 16); |
| | | ////åéæ ¼å¼ |
| | | //#0+#1+#0+#0+#0+#$15+#$FF+#$10+chr(bte1[1])+chr(bte1[2])+#0+#$7+#$E+chr(bte[1])+chr(bte[2])+chr(bte[3])+chr(bte[4])+chr(bte[5])+chr(bte[6])+chr(bte[7])+chr(bte[8])+chr(bte[9])+chr(bte[10])+chr(bte[11])+chr(bte[12])+chr(bte[13])+chr(bte[14]); |
| | | //s_SendString = GetStringByASCII(0) + GetStringByASCII(0) + GetStringByASCII(0) + GetStringByASCII(0) + GetStringByASCII(0) + GetStringByASCII(6) + " " + GetStringByASCII(3) + GetStringByASCII(bte_value[0]) + GetStringByASCII(bte_value[1]) + GetStringByASCII(bte_value[2]) + GetStringByASCII(bte_value[3]); |
| | | buf[0] = (byte)(0); |
| | | buf[1] = (byte)(0); |
| | | buf[2] = (byte)(0); |
| | | buf[3] = (byte)(0); |
| | | buf[4] = (byte)(0); |
| | | buf[5] = (byte)(6); |
| | | buf[6] = (byte)(32); |
| | | buf[7] = (byte)(3); |
| | | buf[8] = (byte)(bte_value[0]); |
| | | buf[9] = (byte)(bte_value[1]); |
| | | buf[10] = (byte)(bte_value[2]); |
| | | buf[11] = (byte)(bte_value[3]); |
| | | |
| | | socket.Send(buf, buf.Length, 0); |
| | | int bytes = 0; |
| | | bytes = socket.Receive(buf1, buf1.Length, 0); |
| | | socket.Close(); |
| | | Thread.Sleep(Common.ci_PLCtimeInterval); |
| | | for (int i = 0; i < 10; i++) |
| | | { |
| | | try |
| | | { |
| | | num = 256 * (int)buf1[i * 2 + 9] + (int)buf1[i * 2 + 10]; |
| | | Common.plc_s_next_stn[plcno - 1, i] = num.ToString(); |
| | | j = i; |
| | | } |
| | | catch (Exception r) |
| | | { |
| | | num = 0; |
| | | } |
| | | recvStr = recvStr + num.ToString(); |
| | | |
| | | DisplayPLCDataInfo(3, j); |
| | | // ChkCrnSts(i, num); |
| | | } |
| | | DisplayInfo("ã" + DateTime.Now.ToString() + "ãæ«æç®æ ç«1--" + recvStr);//忥æ¾ç¤º |
| | | |
| | | //ç¦ç¨Socket |
| | | //socket.Shutdown(SocketShutdown.Both); |
| | | //socket.Disconnect(true); |
| | | //socket.Close(); |
| | | } |
| | | catch (Exception t) |
| | | { |
| | | DisplayInfo("ã" + DateTime.Now.ToString() + "ãæ«æç®æ ç«1失败:" + t.Message);//忥æ¾ç¤º |
| | | //Nondisstnsts(); |
| | | //socket.Shutdown(SocketShutdown.Both); |
| | | //socket.Disconnect(true); |
| | | socket.Close(); |
| | | return; |
| | | } |
| | | } |
| | | catch (Exception em) |
| | | { |
| | | DisplayInfo("ã" + DateTime.Now.ToString() + "ã" + plcno + "#读åç®æ ç«å¤±è´¥: " + em.Message);//忥æ¾ç¤º |
| | | Common.WriteLogFile("WcsError", "PlcAThread/GetStaDestArea--读åç®æ ç«å¤±è´¥:" + em.Message); |
| | | return; |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æ ¹æ®å½ä»¤å¤æåPLCç±»å |
| | | /// </summary> |
| | | /// <param name="cmd"></param> |
| | | private void WriteStaArea(string cmd) |
| | | { |
| | | string s_startadd = "", s_val = ""; |
| | | int icount = 0; |
| | | bool ok = false; |
| | | int n = 0, num = 0, num1 = 0, k = 0, pi_return = 0, i_startadd = 0, i_len = 0, i_val = 0; |
| | | byte[] bte_value = new byte[14]; |
| | | byte[] bte_addr = new byte[4]; |
| | | int type = 0, stn = 0, dest = 0, id = 0, add = 0; |
| | | OperateResult result; |
| | | try |
| | | { |
| | | type = Int32.Parse(cmd.Substring(0, 2)); |
| | | id = Int32.Parse(cmd.Substring(2, 4)); |
| | | stn = Int32.Parse(cmd.Substring(6, 4)); |
| | | dest = Int32.Parse(cmd.Substring(10, 4)); |
| | | //p_TcpClient_plc.Active:=true; |
| | | ////20100810ä¿®æ¹ç»ä¸æ ¼å¼ |
| | | //ç±»å |
| | | switch (type) |
| | | { |
| | | case 2: |
| | | //åID |
| | | i_startadd = Common.g_ari_station_idaddr[Common.GetStnSeq(stn)]; |
| | | s_startadd = "DB100." + i_startadd.ToString(); |
| | | result = siemensTcpNet.Write(s_startadd, (short)id); |
| | | if (result.IsSuccess) |
| | | { |
| | | plc_cmd = ""; |
| | | } |
| | | //Thread.Sleep(Common.ci_PLCtimeInterval); |
| | | break; |
| | | case 3: |
| | | //åç®æ |
| | | i_startadd = Common.g_ari_station_destaddr[Common.GetStnSeq(stn)]; |
| | | s_startadd = "DB100." + i_startadd.ToString(); |
| | | result = siemensTcpNet.Write(s_startadd, (short)dest); |
| | | if (result.IsSuccess) |
| | | { |
| | | plc_cmd = ""; |
| | | } |
| | | break; |
| | | case 4: |
| | | //åID |
| | | i_startadd = Common.g_ari_station_idaddr[Common.GetStnSeq(stn)]; |
| | | s_startadd = "DB100." + i_startadd.ToString(); |
| | | result = siemensTcpNet.Write(s_startadd, (short)id); |
| | | |
| | | //åç®æ .ToString("X4");; |
| | | i_startadd = Common.g_ari_station_destaddr[Common.GetStnSeq(stn)]; |
| | | s_startadd = "DB100." + i_startadd.ToString(); |
| | | result = siemensTcpNet.Write(s_startadd, (short)dest); |
| | | if (result.IsSuccess) |
| | | { |
| | | plc_cmd = ""; |
| | | } |
| | | //Thread.Sleep(200); |
| | | break; |
| | | default: |
| | | break; |
| | | } |
| | | } |
| | | catch (Exception em) |
| | | { |
| | | Common.WriteLogFile("WcsError", "PlcAThread/WriteStaArea--åPLCé误:" + em.Message); |
| | | DisplayInfo("ã" + DateTime.Now.ToString() + "ãåPLCé误:" + em.Message);//忥æ¾ç¤º |
| | | return; |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// åPLCå°åå¼ |
| | | /// </summary> |
| | | /// <param name="pos"></param> |
| | | /// <param name="id"></param> |
| | | private void WriteAddr(byte val1, byte val2, byte val3, byte val4) |
| | | { |
| | | string s_plchead = "", s_chksum = "", s_SendString = ""; |
| | | string s_RecStr = "", s_startadd = "", s_len = ""; |
| | | int icount = 0; |
| | | bool ok = false; |
| | | byte[] buf = new byte[15]; |
| | | byte[] buf1 = new byte[500]; |
| | | byte[] content = new byte[100]; |
| | | int n = 0, num = 0, num1 = 0, k = 0, pi_return = 0, i_startadd = 0, i_len = 0, i_val = 0; |
| | | byte[] bte_value = new byte[14]; |
| | | byte[] bte_addr = new byte[4]; |
| | | s_RecStr = ""; |
| | | recvStr = ""; |
| | | int type = 0, stn = 0, dest = 0, id = 0, add = 0; |
| | | do |
| | | { |
| | | try |
| | | { |
| | | Socket socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); |
| | | socket.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.ReuseAddress, true); |
| | | try |
| | | { |
| | | socket.Connect(plcip, plcport); |
| | | buf[0] = 0; |
| | | buf[1] = 1; |
| | | buf[2] = 0; |
| | | buf[3] = 0; |
| | | buf[4] = 0; |
| | | buf[5] = 9; |
| | | buf[6] = 32; |
| | | buf[7] = 16; |
| | | buf[8] = val1; |
| | | buf[9] = val2; |
| | | buf[10] = 0; |
| | | buf[11] = 1; |
| | | buf[12] = 2; |
| | | buf[13] = val3; |
| | | buf[14] = val4; |
| | | |
| | | int bytes = 0; |
| | | bytes = socket.Send(buf, buf.Length, 0); |
| | | Thread.Sleep(Common.ci_PLCtimeInterval); |
| | | socket.Close(); |
| | | |
| | | if (bytes != buf.Length) |
| | | { |
| | | icount++; |
| | | if (icount >= 5) |
| | | { |
| | | ok = true; |
| | | } |
| | | } |
| | | else |
| | | { |
| | | ok = false; |
| | | } |
| | | |
| | | //ç¦ç¨Socket |
| | | //socket.Shutdown(SocketShutdown.Both); |
| | | //socket.Disconnect(true); |
| | | // socket.Close(); |
| | | } |
| | | catch (Exception em) |
| | | { |
| | | DisplayInfo("ã" + DateTime.Now.ToString() + "ãåPLCé误:" + em.Message);//忥æ¾ç¤º |
| | | Common.WriteLogFile("WcsError", "PlcAThread/WriteAddr--åPLCAå°å失败:" + em.Message); |
| | | //socket.Shutdown(SocketShutdown.Both); |
| | | //socket.Disconnect(true); |
| | | socket.Close(); |
| | | return; |
| | | } |
| | | } |
| | | catch (Exception em) |
| | | { |
| | | Common.WriteLogFile("WcsError", "PlcAThread/WriteAddr--åPLCAå°å失败:" + em.Message); |
| | | return; |
| | | } |
| | | |
| | | } while (ok == true); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æ ¹æ®asciiç å¼å¾å°å¯¹åºå符 |
| | | /// </summary> |
| | | /// <param name="asciiCode">asciiç </param> |
| | | /// <returns>è¿å对åºå符</returns> |
| | | public string GetStringByASCII(int asciiCode) |
| | | { |
| | | try |
| | | { |
| | | if (asciiCode >= 0 && asciiCode <= 127) |
| | | { |
| | | System.Text.ASCIIEncoding asciiEncoding = new System.Text.ASCIIEncoding(); |
| | | byte[] byteArray = new byte[] { (byte)asciiCode }; |
| | | string strCharacter = asciiEncoding.GetString(byteArray); |
| | | return (strCharacter); |
| | | } |
| | | else if (asciiCode >= 128 && asciiCode <= 255) |
| | | { |
| | | System.Text.ASCIIEncoding asciiEncoding = new System.Text.ASCIIEncoding(); |
| | | byte[] byteArray = new byte[] { (byte)(asciiCode + 65536) }; |
| | | string strCharacter = Encoding.Default.GetString(byteArray); |
| | | return (strCharacter); |
| | | } |
| | | else |
| | | { |
| | | throw new Exception("æ æçASCIIç !"); |
| | | |
| | | } |
| | | } |
| | | catch (Exception em) |
| | | { |
| | | Common.WriteLogFile("WcsError", "PlcAThread/GetStringByASCII--ASCII转å符串é误:" + em.Message); |
| | | return ""; |
| | | } |
| | | } |
| | | |
| | | #region ç»é¢åæ¥æ¾ç¤º |
| | | /// <summary> |
| | | /// 忥æ¾ç¤ºplcéè®¯ä¿¡æ¯ |
| | | /// </summary> |
| | | /// <param name="text">æ«æä¿¡æ¯</param> |
| | | /// <param name="memo">夿³¨ä¿¡æ¯</param> |
| | | private void DisplayInfo(string text) |
| | | { |
| | | if (tb.InvokeRequired) |
| | | { |
| | | try |
| | | { |
| | | displayresponse d = new displayresponse(DisplayInfo); |
| | | tb.Invoke(d, new object[] { text }); |
| | | } |
| | | catch (Exception em) |
| | | { |
| | | Common.WriteLogFile("WcsError", "PlcAThread/DisplayInfo--忥æ¾ç¤ºplcé讯信æ¯é误:" + em.Message); |
| | | } |
| | | } |
| | | else |
| | | { |
| | | if (tb.Items.Count > 50) |
| | | { |
| | | tb.Items.Clear(); |
| | | } |
| | | tb.Items.Add(text); |
| | | tb.TopIndex = tb.Items.Count - (int)(tb.Height / tb.ItemHeight); |
| | | } |
| | | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 忥æ¾ç¤ºç«ç¹çç¶æ |
| | | /// </summary> |
| | | /// <param name="type">ç±»å«</param> |
| | | /// <param name="k">åºå·</param> |
| | | private void DisplayPLCDataInfo(int type, int k) |
| | | { |
| | | if (plclist.InvokeRequired) |
| | | { |
| | | try |
| | | { |
| | | DisplayData d = new DisplayData(DisplayPLCDataInfo); |
| | | plclist.Invoke(d, new object[] { type, k }); |
| | | plclist.Focus(); |
| | | //plclist.Update(); |
| | | //plclist.Refresh(); |
| | | } |
| | | catch (Exception em) |
| | | { |
| | | Common.WriteLogFile("WcsError", "PlcAThread/DisplayPLCDataInfo--忥æ¾ç¤ºç«ç¹ç¶æé误:" + em.Message); |
| | | } |
| | | } |
| | | else |
| | | { |
| | | if (type == 1) |
| | | { |
| | | this.plclist.Items[k].SubItems[1].Text = Common.plc_i_Wrk_no[plcno - 1, k].ToString(); |
| | | } |
| | | else if (type == 2) |
| | | { |
| | | //if (k == 8 || k == 11) return; |
| | | this.plclist.Items[k].SubItems[2].Text = Common.plc_s_autoing[plcno - 1, k].ToString(); |
| | | this.plclist.Items[k].SubItems[3].Text = Common.plc_s_loading[plcno - 1, k].ToString(); |
| | | this.plclist.Items[k].SubItems[4].Text = Common.plc_s_canining[plcno - 1, k].ToString(); |
| | | this.plclist.Items[k].SubItems[5].Text = Common.plc_s_canouting[plcno - 1, k].ToString(); |
| | | this.plclist.Items[k].SubItems[6].Text = Common.plc_s_inreq1[plcno - 1, k].ToString(); |
| | | this.plclist.Items[k].SubItems[7].Text = Common.plc_s_inreq2[plcno - 1, k].ToString(); |
| | | |
| | | if (k == 4) |
| | | { |
| | | this.plclist.Items[k].SubItems[8].Text = Common.gs_barcode_data[0]; |
| | | } |
| | | else if (k == 9) |
| | | { |
| | | this.plclist.Items[k].SubItems[8].Text = Common.gs_barcode_data[1]; |
| | | } |
| | | else |
| | | { |
| | | this.plclist.Items[k].SubItems[8].Text = ""; |
| | | } |
| | | |
| | | |
| | | } |
| | | else if (type == 3) |
| | | { |
| | | this.plclist.Items[k].SubItems[9].Text = Common.plc_s_next_stn[plcno - 1, k].ToString(); |
| | | } |
| | | |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æ´æ°PLCå½ä»¤ä¿¡æ¯å°ç颿¾ç¤º |
| | | /// </summary> |
| | | /// <param name="count">éåæ°</param> |
| | | private void DisplayQuerecmd(string info) |
| | | { |
| | | try |
| | | { |
| | | if (sendtoplc.InvokeRequired) |
| | | { |
| | | DisplaySendTxtInfo d = new DisplaySendTxtInfo(DisplayQuerecmd); |
| | | sendtoplc.Invoke(d, new object[] { info }); |
| | | } |
| | | else |
| | | { |
| | | sendtoplc.Text = info.ToString(); |
| | | } |
| | | } |
| | | catch (Exception em) |
| | | { |
| | | Common.WriteLogFile("WcsError", "PlcAThread/DisplayQuerecmd--æ´æ°PLCå½ä»¤ä¿¡æ¯å°çé¢é误:" + em.Message); |
| | | } |
| | | } |
| | | #endregion |
| | | |
| | | /// <summary> |
| | | /// é讯失败ååå§åç«ç¹ç¶æ |
| | | /// </summary> |
| | | private void InitStn() |
| | | { |
| | | try |
| | | { |
| | | for (int i = 0; i < 30; i++) |
| | | { |
| | | Common.plc_s_autoing[0, i] = "N"; |
| | | Common.plc_s_loading[0, i] = "N"; |
| | | Common.plc_s_canining[0, i] = "N"; |
| | | Common.plc_s_canouting[0, i] = "N"; |
| | | Common.plc_s_inreq1[0, i] = "N"; |
| | | Common.plc_s_inreq2[0, i] = "N"; |
| | | Common.plc_s_loctype[0, i] = "0"; |
| | | Common.plc_s_error[0, i] = "N"; |
| | | Common.plc_i_buff_count[0, i] = 0; |
| | | Common.plc_i_Wrk_no[0, i] = 0; |
| | | Common.plc_s_stn_status[0, i] = "N"; |
| | | Common.plc_s_next_stn[0, i] = "0"; |
| | | //Common.plc_i_pakmk[0, i] = 0; |
| | | } |
| | | } |
| | | catch (Exception) |
| | | { } |
| | | } |
| | | |
| | | #region 注é |
| | | ///// <summary> |
| | | ///// 忥æ¾ç¤ºç«ç¹buffer |
| | | ///// </summary> |
| | | ///// <param name="type">ç±»å«</param> |
| | | ///// <param name="k">åºå·</param> |
| | | //private void DisplayBuffer(int k) |
| | | //{ |
| | | // if (plcbuflist.InvokeRequired) |
| | | // { |
| | | // try |
| | | // { |
| | | // DisplayDataBuffer d = new DisplayDataBuffer(DisplayBuffer); |
| | | // plcbuflist.Invoke(d, new object[] { k}); |
| | | // } |
| | | // catch (Exception r) |
| | | // { |
| | | |
| | | // } |
| | | // } |
| | | // else |
| | | // { |
| | | // this.plcbuflist.Items[0].SubItems[k].Text = Common.gi_stabuffer[k].ToString(); |
| | | // } |
| | | |
| | | //} |
| | | |
| | | /// <summary> |
| | | /// 忥æ¾ç¤ºç«ç¹çç¶æ |
| | | /// </summary> |
| | | /// <param name="type">ç±»å«</param> |
| | | /// <param name="k">åºå·</param> |
| | | |
| | | ///// <summary> |
| | | ///// 忥æ¾ç¤ºéåæ° |
| | | ///// </summary> |
| | | ///// <param name="count">éåæ°</param> |
| | | //private void DisplayQuereCount(int count) |
| | | //{ |
| | | // try |
| | | // { |
| | | // if (querecount.InvokeRequired) |
| | | // { |
| | | // DisplayQuereData d = new DisplayQuereData(DisplayQuereCount); |
| | | // querecount.Invoke(d, new object[] { count }); |
| | | // } |
| | | // else |
| | | // { |
| | | // querecount.Text = count.ToString(); |
| | | // } |
| | | // } |
| | | // catch (Exception t) |
| | | // { |
| | | |
| | | // } |
| | | //} |
| | | #endregion |
| | | |
| | | /// <summary> |
| | | /// PLCä¸»çº¿ç¨ |
| | | /// </summary> |
| | | private void ThreadTask() |
| | | { |
| | | //int result = client.ConnectTo(plcip, rack, slot); |
| | | //if (result != 0) |
| | | //{ |
| | | // DisplayInfo("ã" + DateTime.Now.ToString() + "ãè¿æ¥PLC " + plcip + "é误ï¼" + client.ErrorText(result)); |
| | | // Common.WriteLogFile("WcsError", "PlcAThread/GetStaIdArea--è¿æ¥PLC " + plcip + "é误ï¼" + client.ErrorText(result)); |
| | | // InitStn(); |
| | | // return; |
| | | //} |
| | | i_plc_step = 1; |
| | | connect = siemensTcpNet.ConnectServer(); |
| | | while (true) |
| | | { |
| | | //Common.plcerr[0] = "Y"; |
| | | try |
| | | { |
| | | if (!connect.IsSuccess) |
| | | { |
| | | if (!ReConnect()) |
| | | { |
| | | goto re; |
| | | } |
| | | } |
| | | //DisplayQuereCount(Common.GetPlcQuereCount(plcno - 1)); |
| | | if (Common.GetPlcQuereCount(plcno - 1) > 0 && plc_cmd == "") |
| | | //if (Common.PlcAQueue.Count > 0 && plc_cmd == "") |
| | | { |
| | | plc_cmd = Common.GetPlcQuereCmd(plcno - 1); |
| | | //plc_cmd = Common.PlcAQueue.Dequeue(); |
| | | } |
| | | DisplayQuerecmd(plc_cmd); |
| | | CommandStr_nkindstep(); |
| | | switch (i_plc_step) |
| | | { |
| | | case 1: |
| | | GetStaIdArea(); //读ID |
| | | //GetStaStsArea(); //è¯»ç¶æ |
| | | //GetStaDestArea(); //è¯»ç®æ ç« |
| | | GetStaErrArea1(); //读设å¤å¼å¸¸ |
| | | //Thread.Sleep(Common.ci_PLCtimeInterval); |
| | | break; |
| | | case 2://åid |
| | | WriteStaArea(plc_cmd); |
| | | break; |
| | | case 3://åç®æ |
| | | WriteStaArea(plc_cmd); |
| | | break; |
| | | case 4://åiDåç®æ |
| | | WriteStaArea(plc_cmd); |
| | | break; |
| | | //case 5://æ¸
buffer |
| | | // WriteStaArea(plc_cmd); |
| | | // break; |
| | | //case 6://æå |
| | | // WriteStaArea(plc_cmd); |
| | | // //WriteStaBuffer(); |
| | | // break; |
| | | } |
| | | i_plc_step = 1; |
| | | re: |
| | | Thread.Sleep(Common.ci_PLCtimeInterval); |
| | | } |
| | | catch (Exception em) |
| | | { |
| | | Common.WriteLogFile("WcsError", "PlcAThread/ThreadTask--PLC主线ç¨å¾ªç¯é误:" + em.Message); |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | } |
| | | |
| | | } |
| New file |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Net; |
| | | using System.Net.Sockets; |
| | | using System.Windows.Forms; |
| | | using System.Threading; |
| | | using System.Net.NetworkInformation; |
| | | using DevComponents.DotNetBar; |
| | | using System.Runtime.InteropServices; |
| | | using System.Data; |
| | | using com.force.json; |
| | | //using Sharp7; |
| | | |
| | | namespace WCS |
| | | { |
| | | /// <summary> |
| | | /// PLCBçº¿ç¨ |
| | | /// </summary> |
| | | class PlcBThread |
| | | { |
| | | //NetworkStream myNetworkStream; |
| | | //Thread thr = null; |
| | | delegate void displayresponse(string text); |
| | | //delegate void displayinseresponse(int val); |
| | | string recvStr = ""; |
| | | string plcip = ""; |
| | | int plcno = 0; |
| | | Thread trd = null; |
| | | int i_plc_step = 0; |
| | | int plcport = 0; |
| | | main form1; |
| | | public static string plc_cmd = ""; |
| | | //delegate void SetTextCallback(string text); |
| | | delegate void DisplayData(int type, int i); |
| | | //delegate void DisplayQuereData(int count); |
| | | delegate void DisplaySendTxtInfo(string info); |
| | | //delegate void DisplayErrData(int i); |
| | | //delegate void DisplayDataBuffer(int k); |
| | | |
| | | #region ç»é¢ä¸åæ¥æ¾ç¤ºæ§ä»¶ |
| | | public ListView plclist; |
| | | //public ListView plcbuflist; |
| | | //public DevComponents.DotNetBar.SuperGrid.SuperGridControl plcbuflist; |
| | | public ListBox tb; |
| | | //public LabelX lb_backMsg; |
| | | //public DevComponents.DotNetBar.LabelX querecount; |
| | | //public ListView errlist; |
| | | public LabelX sendtoplc; |
| | | //public DevComponents.DotNetBar.PanelEx os; |
| | | //public Panel os; |
| | | //public Microsoft.VisualBasic.PowerPacks.OvalShape mvpo; |
| | | #endregion |
| | | |
| | | private int rack = 0, slot = 1; |
| | | //S7Client client = new S7Client(); |
| | | |
| | | public PlcBThread(int plc_no, string plc_ip, int port, main f) |
| | | { |
| | | try |
| | | { |
| | | plcno = plc_no; |
| | | plcip = plc_ip; |
| | | plcport = port; |
| | | form1 = f; |
| | | |
| | | trd = new Thread(new ThreadStart(this.ThreadTask)); |
| | | trd.IsBackground = true; |
| | | trd.Start(); |
| | | } |
| | | catch (Exception em) |
| | | { |
| | | Common.WriteLogFile("WcsError", "PlcThread/PlcThread--PLC线ç¨å¯å¨åºé:" + em.Message); |
| | | } |
| | | } |
| | | |
| | | ///// <summary> |
| | | ///// æ ¹æ®å½ä»¤åç¬¦ä¸²å¤æä½ä¸ç±»å |
| | | ///// </summary> |
| | | //private void CommandStr_nkindstep() |
| | | //{ |
| | | // int i = 0; |
| | | // try |
| | | // { |
| | | // if (plc_cmd == null || plc_cmd == "") |
| | | // { |
| | | // i = 1; |
| | | // } |
| | | // else |
| | | // { |
| | | // i = Convert.ToInt32(plc_cmd.Substring(0, 2)); |
| | | // } |
| | | // } |
| | | // catch (Exception em) |
| | | // { |
| | | // Common.WriteLogFile("WcsError", "PlcThread/CommandStr_nkindstep--æ ¹æ®å½ä»¤åç¬¦ä¸²å¤æä½ä¸ç±»ååºé:" + em.Message); |
| | | // return; |
| | | // } |
| | | // switch (i) |
| | | // { |
| | | // case 1: |
| | | // i_plc_step = 1; |
| | | // break; |
| | | // case 2: |
| | | // i_plc_step = 2; |
| | | // break; |
| | | // case 3: |
| | | // i_plc_step = 3; |
| | | // break; |
| | | // case 4: |
| | | // i_plc_step = 4; |
| | | // break; |
| | | // case 5://æ¸
buffer |
| | | // i_plc_step = 5; |
| | | // break; |
| | | // case 6://æå |
| | | // i_plc_step = 6; |
| | | // break; |
| | | // default: |
| | | // i_plc_step = 1; |
| | | // break; |
| | | // } |
| | | //} |
| | | |
| | | ///////////////////////////////////////---------------------------------------读plcä¸å----------------------------- |
| | | ///// <summary> |
| | | ///// 读PLC id |
| | | ///// </summary> |
| | | //private void GetStaIdArea() |
| | | //{ |
| | | // recvStr = ""; |
| | | // var client = new S7Client(); |
| | | // int result = 0; |
| | | // try |
| | | // { |
| | | // result = client.ConnectTo(plcip, rack, slot); |
| | | // if (result != 0) |
| | | // { |
| | | // DisplayInfo("ã" + DateTime.Now.ToString() + "ãè¿æ¥PLC " + plcip + "é误ï¼" + client.ErrorText(result)); |
| | | // Common.WriteLogFile("WcsError", "PlcBThread/GetStaIdArea--è¿æ¥PLC " + plcip + "é误ï¼" + client.ErrorText(result)); |
| | | // InitStn(); |
| | | // return; |
| | | // } |
| | | |
| | | // byte[] dbBuffer = new byte[66]; |
| | | // result = client.DBRead(540, 0, 66, dbBuffer); |
| | | // //Thread.Sleep(Common.ci_PLCtimeInterval); |
| | | // if (result != 0) |
| | | // { |
| | | // DisplayInfo("ã" + DateTime.Now.ToString() + "ã读åPLCBç«ç¹IDé误ï¼" + client.ErrorText(result)); |
| | | // Common.WriteLogFile("WcsError", "PlcBThread/GetStaIdArea--读åç«ç¹ç¶æé误ï¼" + client.ErrorText(result)); |
| | | // client.Disconnect(); |
| | | // return; |
| | | // } |
| | | // for (int i = 0; i < 33; i++) |
| | | // { |
| | | // Common.plc_i_Wrk_no[plcno - 1, i + 30] = S7.GetIntAt(dbBuffer, i * 2); |
| | | // recvStr = recvStr + Common.plc_i_Wrk_no[plcno - 1, i + 30]; |
| | | // DisplayPLCDataInfo(1, i + 30); |
| | | // } |
| | | // DisplayInfo("ã" + DateTime.Now.ToString() + "ãæ«æPLCB ID--" + recvStr);//忥æ¾ç¤º |
| | | // } |
| | | // catch (Exception em) |
| | | // { |
| | | // DisplayInfo("ã" + DateTime.Now.ToString() + "ã" + plcno + "#读åç«ç¹ç¶æå¤±è´¥: " + em.Message);//忥æ¾ç¤º |
| | | // Common.WriteLogFile("WcsError", "PlcBThread/GetStaIdArea--读åç«ç¹ç¶æå¤±è´¥:" + em.Message); |
| | | // return; |
| | | // } |
| | | // finally |
| | | // { |
| | | // client.Disconnect(); |
| | | // } |
| | | //} |
| | | |
| | | ///// <summary> |
| | | ///// 读åPLC设å¤ç¶æå°åå¼ |
| | | ///// </summary> |
| | | //private void GetStaStsArea() |
| | | //{ |
| | | // recvStr = ""; |
| | | // var client = new S7Client(); |
| | | // int result = 0; |
| | | // try |
| | | // { |
| | | // result = client.ConnectTo(plcip, rack, slot); |
| | | // if (result != 0) |
| | | // { |
| | | // DisplayInfo("ã" + DateTime.Now.ToString() + "ãè¿æ¥PLC " + plcip + "é误ï¼" + client.ErrorText(result)); |
| | | // Common.WriteLogFile("WcsError", "PlcBThread/GetStaStsArea--è¿æ¥PLC " + plcip + "é误ï¼" + client.ErrorText(result)); |
| | | // InitStn(); |
| | | // return; |
| | | // } |
| | | |
| | | // byte[] dbBuffer = new byte[66]; |
| | | // result = client.DBRead(540, 200, dbBuffer.Length, dbBuffer); |
| | | // //Thread.Sleep(Common.ci_PLCtimeInterval); |
| | | // if (result != 0) |
| | | // { |
| | | // DisplayInfo("ã" + DateTime.Now.ToString() + "ã读åPLCBç«ç¹ç¶æé误ï¼" + client.ErrorText(result)); |
| | | // Common.WriteLogFile("WcsError", "PlcBThread/GetStaStsArea--读åç«ç¹ç¶æé误ï¼" + client.ErrorText(result)); |
| | | // client.Disconnect(); |
| | | // return; |
| | | // } |
| | | // for (int i = 0; i < 33; i++) |
| | | // { |
| | | // Common.plc_s_autoing[plcno - 1, i + 30] = (S7.GetBitAt(dbBuffer, i * 2, 0) == true) ? "Y" : "N"; |
| | | // Common.plc_s_loading[plcno - 1, i + 30] = (S7.GetBitAt(dbBuffer, i * 2, 1) == true) ? "Y" : "N"; |
| | | // Common.plc_s_inreq1[plcno - 1, i + 30] = (S7.GetBitAt(dbBuffer, i * 2, 2) == true) ? "Y" : "N"; |
| | | // Common.plc_s_inreq2[plcno - 1, i + 30] = (S7.GetBitAt(dbBuffer, i * 2, 3) == true) ? "Y" : "N"; |
| | | // if (S7.GetBitAt(dbBuffer, i * 2, 4) == true) //é«åºä½ |
| | | // { |
| | | // Common.plc_s_loctype[plcno - 1, i + 30] = "Y"; |
| | | // } |
| | | // else if (S7.GetBitAt(dbBuffer, i * 2, 5) == true) //ä½åºä½ |
| | | // { |
| | | // Common.plc_s_loctype[plcno - 1, i + 30] = "N"; |
| | | // } |
| | | // else |
| | | // { |
| | | // Common.plc_s_loctype[plcno - 1, i + 30] = "0"; |
| | | // } |
| | | |
| | | // if (Common.plc_s_loading[plcno - 1, i + 30] == "N" && Common.plc_i_Wrk_no[plcno - 1, i + 30] == 0) |
| | | // { |
| | | // Common.plc_i_pakmk[plcno - 1, i + 30] = 0; |
| | | // } |
| | | |
| | | // recvStr = recvStr + Common.plc_s_autoing[plcno - 1, i + 30] + Common.plc_s_loading[plcno - 1, i + 30] |
| | | // + Common.plc_s_inreq1[plcno - 1, i + 30];// +Common.plc_s_inreq2[plcno - 1, i + 30];// +Common.plc_s_loctype[plcno - 1, i + 30]; |
| | | // DisplayPLCDataInfo(2, i + 30); |
| | | // } |
| | | // DisplayInfo("ã" + DateTime.Now.ToString() + "ãæ«æPLCB ç¶æ--" + recvStr); |
| | | // } |
| | | // catch (Exception em) |
| | | // { |
| | | // DisplayInfo("ã" + DateTime.Now.ToString() + "ã" + plcno + "#读åç«ç¹ç¶æå¤±è´¥: " + em.Message);//忥æ¾ç¤º |
| | | // Common.WriteLogFile("WcsError", "PlcBThread/GetStaStsArea--读åç«ç¹ç¶æå¤±è´¥:" + em.Message); |
| | | // return; |
| | | // } |
| | | // finally |
| | | // { |
| | | // client.Disconnect(); |
| | | // } |
| | | //} |
| | | |
| | | ///// <summary> |
| | | ///// åæç«ç¹åç¶æ |
| | | ///// </summary> |
| | | ///// <param name="i">ç«ç¹åºå</param> |
| | | ///// <param name="num">ç¶æå¼</param> |
| | | //private void AnalyseStaStatus1(int i, int num) |
| | | //{ |
| | | // try |
| | | // { |
| | | // if (Common.fun_ChkAndByte(num, Common.ch_d1) == true) |
| | | // { |
| | | // Common.plc_s_autoing[plcno - 1, i] = "Y"; |
| | | // } |
| | | // else |
| | | // { |
| | | // Common.plc_s_autoing[plcno - 1, i] = "N"; |
| | | |
| | | // } |
| | | // if (Common.fun_ChkAndByte(num, Common.ch_d2) == true) |
| | | // { |
| | | // Common.plc_s_loading[plcno - 1, i] = "Y"; |
| | | // } |
| | | // else |
| | | // { |
| | | // Common.plc_s_loading[plcno - 1, i] = "N"; |
| | | // //åºç°è¿æ ç©æ
嵿¸
é¤plc_i_pakmkæ è®°ï¼éè¿å¤æplc_i_pakmkæ è®°ï¼é²æ¢éå¤ä¸æä»¤ |
| | | // Common.plc_i_pakmk[plcno - 1, i] = 0; |
| | | // } |
| | | // if (Common.fun_ChkAndByte(num, Common.ch_d3) == true) |
| | | // { |
| | | // Common.plc_s_canining[plcno - 1, i] = "Y"; |
| | | // } |
| | | // else |
| | | // { |
| | | // Common.plc_s_canining[plcno - 1, i] = "N"; |
| | | // } |
| | | // if (Common.fun_ChkAndByte(num, Common.ch_d4) == true) |
| | | // { |
| | | // Common.plc_s_canouting[plcno - 1, i] = "Y"; |
| | | // } |
| | | // else |
| | | // { |
| | | // Common.plc_s_canouting[plcno - 1, i] = "N"; |
| | | // } |
| | | // if (Common.fun_ChkAndByte(num, Common.ch_d5) == true) |
| | | // { |
| | | // Common.plc_s_inreq1[plcno - 1, i] = "Y"; |
| | | // } |
| | | // else |
| | | // { |
| | | // Common.plc_s_inreq1[plcno - 1, i] = "N"; |
| | | // } |
| | | // if (Common.fun_ChkAndByte(num, Common.ch_d6) == true) |
| | | // { |
| | | // Common.plc_s_inreq2[plcno - 1, i] = "Y"; |
| | | // } |
| | | // else |
| | | // { |
| | | // Common.plc_s_inreq2[plcno - 1, i] = "N"; |
| | | // } |
| | | // if (Common.fun_ChkAndByte(num, Common.ch_d7) == true) |
| | | // { |
| | | // Common.plc_s_loctype[plcno - 1, i] = "Y"; |
| | | // } |
| | | // else |
| | | // { |
| | | // Common.plc_s_loctype[plcno - 1, i] = "N"; |
| | | // } |
| | | // } |
| | | // catch (Exception em) |
| | | // { |
| | | // Common.WriteLogFile("WcsError", "PlcThread/AnalyseStaStatus1--æ«æç«ç¹ç¶æå失败:" + em.Message); |
| | | // } |
| | | //} |
| | | |
| | | //#region ç«ç¹å¼å¸¸ |
| | | ///// <summary> |
| | | ///// å¾å°è®¾å¤å¼å¸¸ |
| | | ///// </summary> |
| | | //private void GetStaErrArea1() |
| | | //{ |
| | | // recvStr = ""; |
| | | // var client = new S7Client(); |
| | | // int result = 0; |
| | | // try |
| | | // { |
| | | // result = client.ConnectTo(plcip, rack, slot); |
| | | // if (result != 0) |
| | | // { |
| | | // DisplayInfo("ã" + DateTime.Now.ToString() + "ãè¿æ¥PLC " + plcip + "é误ï¼" + client.ErrorText(result)); |
| | | // Common.WriteLogFile("WcsError", "PlcBThread/GetStaStsArea--è¿æ¥PLC " + plcip + "é误ï¼" + client.ErrorText(result)); |
| | | // InitStn(); |
| | | // return; |
| | | // } |
| | | |
| | | // byte[] dbBuffer = new byte[68]; |
| | | // result = client.DBRead(53, 0, dbBuffer.Length, dbBuffer); |
| | | // if (result != 0) |
| | | // { |
| | | // DisplayInfo("ã" + DateTime.Now.ToString() + "ã读åPLCA设å¤å¼å¸¸å¤±è´¥ï¼" + client.ErrorText(result)); |
| | | // Common.WriteLogFile("WcsError", "PlcAThread/GetStaErrArea1--读å设å¤å¼å¸¸å¤±è´¥ï¼" + client.ErrorText(result)); |
| | | // return; |
| | | // } |
| | | |
| | | // for (int i = 0; i < 35; i++) |
| | | // { |
| | | // if (i == 0) |
| | | // { |
| | | // Common.plcerr[i + 128] = (S7.GetBitAt(dbBuffer, i, 0) == true) ? "Y" : "N"; |
| | | // Common.plcerr[i + 129] = (S7.GetBitAt(dbBuffer, i, 1) == true) ? "Y" : "N"; |
| | | // Common.plcerr[i + 130] = (S7.GetBitAt(dbBuffer, i, 2) == true) ? "Y" : "N"; |
| | | // Common.plcerr[i + 131] = (S7.GetBitAt(dbBuffer, i, 3) == true) ? "Y" : "N"; |
| | | // Common.plcerr[i + 132] = (S7.GetBitAt(dbBuffer, i, 4) == true) ? "Y" : "N"; |
| | | // Common.plcerr[i + 133] = (S7.GetBitAt(dbBuffer, i, 7) == true) ? "Y" : "N"; |
| | | // } |
| | | // if (i == 1) |
| | | // { |
| | | // Common.plcerr[134] = (S7.GetBitAt(dbBuffer, i, 0) == true) ? "Y" : "N"; |
| | | // } |
| | | // if (i > 1) |
| | | // { |
| | | // Common.plcerr[i * 4 + 127] = (S7.GetBitAt(dbBuffer, i * 2 - 2, 0) == true) ? "Y" : "N"; |
| | | // Common.plcerr[i * 4 + 128] = (S7.GetBitAt(dbBuffer, i * 2 - 2, 1) == true) ? "Y" : "N"; |
| | | // Common.plcerr[i * 4 + 129] = (S7.GetBitAt(dbBuffer, i * 2 - 2, 2) == true) ? "Y" : "N"; |
| | | // Common.plcerr[i * 4 + 130] = (S7.GetBitAt(dbBuffer, i * 2 - 2, 3) == true) ? "Y" : "N"; |
| | | // } |
| | | // } |
| | | // //DisplayInfo("ã" + DateTime.Now.ToString() + "ãæ«æPLCA ç¶æ--" + recvStr); |
| | | // } |
| | | // catch (Exception em) |
| | | // { |
| | | // DisplayInfo("ã" + DateTime.Now.ToString() + "ã" + plcno + "#读å设å¤å¼å¸¸å¤±è´¥: " + em.Message);//忥æ¾ç¤º |
| | | // Common.WriteLogFile("WcsError", "PlcAThread/GetStaStsArea--读å设å¤å¼å¸¸å¤±è´¥:" + em.Message); |
| | | // return; |
| | | // } |
| | | // finally |
| | | // { |
| | | // client.Disconnect(); |
| | | // } |
| | | //} |
| | | |
| | | ///// <summary> |
| | | ///// åæç«ç¹å¼å¸¸ |
| | | ///// </summary> |
| | | ///// <param name="i">ç«ç¹åºå</param> |
| | | ///// <param name="num">å¼å¸¸å¼</param> |
| | | //private void AnalyseStaErr1(int i, int num) |
| | | //{ |
| | | // try |
| | | // { |
| | | // if (Common.fun_ChkAndByte(num, Common.ch_d1) == true) |
| | | // { |
| | | // Common.plcerr[i * 16 + 0] = "Y"; |
| | | // } |
| | | // else |
| | | // { |
| | | // Common.plcerr[i * 16 + 0] = "N"; |
| | | // } |
| | | // if (Common.fun_ChkAndByte(num, Common.ch_d2) == true) |
| | | // { |
| | | // Common.plcerr[i * 16 + 1] = "Y"; |
| | | // } |
| | | // else |
| | | // { |
| | | // Common.plcerr[i * 16 + 1] = "N"; |
| | | // } |
| | | // if (Common.fun_ChkAndByte(num, Common.ch_d3) == true) |
| | | // { |
| | | // Common.plcerr[i * 16 + 2] = "Y"; |
| | | // } |
| | | // else |
| | | // { |
| | | // Common.plcerr[i * 16 + 2] = "N"; |
| | | // } |
| | | // if (Common.fun_ChkAndByte(num, Common.ch_d4) == true) |
| | | // { |
| | | // Common.plcerr[i * 16 + 3] = "Y"; |
| | | // } |
| | | // else |
| | | // { |
| | | // Common.plcerr[i * 16 + 3] = "N"; |
| | | // } |
| | | // if (Common.fun_ChkAndByte(num, Common.ch_d5) == true) |
| | | // { |
| | | // Common.plcerr[i * 16 + 4] = "Y"; |
| | | // } |
| | | // else |
| | | // { |
| | | // Common.plcerr[i * 16 + 4] = "N"; |
| | | // } |
| | | // if (Common.fun_ChkAndByte(num, Common.ch_d6) == true) |
| | | // { |
| | | // Common.plcerr[i * 16 + 5] = "Y"; |
| | | // } |
| | | // else |
| | | // { |
| | | // Common.plcerr[i * 16 + 5] = "N"; |
| | | // } |
| | | // if (Common.fun_ChkAndByte(num, Common.ch_d7) == true) |
| | | // { |
| | | // Common.plcerr[i * 16 + 6] = "Y"; |
| | | // } |
| | | // else |
| | | // { |
| | | // Common.plcerr[i * 16 + 6] = "N"; |
| | | // } |
| | | // if (Common.fun_ChkAndByte(num, Common.ch_d8) == true) |
| | | // { |
| | | // Common.plcerr[i * 16 + 7] = "Y"; |
| | | // } |
| | | // else |
| | | // { |
| | | // Common.plcerr[i * 16 + 7] = "N"; |
| | | // } |
| | | // if (Common.fun_ChkAndByte(num, Common.ch_d9) == true) |
| | | // { |
| | | // Common.plcerr[i * 16 + 8] = "Y"; |
| | | // } |
| | | // else |
| | | // { |
| | | // Common.plcerr[i * 16 + 8] = "N"; |
| | | // } |
| | | // if (Common.fun_ChkAndByte(num, Common.ch_d10) == true) |
| | | // { |
| | | // Common.plcerr[i * 16 + 9] = "Y"; |
| | | // } |
| | | // else |
| | | // { |
| | | // Common.plcerr[i * 16 + 9] = "N"; |
| | | // } |
| | | // if (Common.fun_ChkAndByte(num, Common.ch_d11) == true) |
| | | // { |
| | | // Common.plcerr[i * 16 + 10] = "Y"; |
| | | // } |
| | | // else |
| | | // { |
| | | // Common.plcerr[i * 16 + 10] = "N"; |
| | | // } |
| | | // if (Common.fun_ChkAndByte(num, Common.ch_d12) == true) |
| | | // { |
| | | // Common.plcerr[i * 16 + 11] = "Y"; |
| | | // } |
| | | // else |
| | | // { |
| | | // Common.plcerr[i * 16 + 11] = "N"; |
| | | // } |
| | | // if (Common.fun_ChkAndByte(num, Common.ch_d13) == true) |
| | | // { |
| | | // Common.plcerr[i * 16 + 12] = "Y"; |
| | | // } |
| | | // else |
| | | // { |
| | | // Common.plcerr[i * 16 + 12] = "N"; |
| | | // } |
| | | // if (Common.fun_ChkAndByte(num, Common.ch_d14) == true) |
| | | // { |
| | | // Common.plcerr[i * 16 + 13] = "Y"; |
| | | // } |
| | | // else |
| | | // { |
| | | // Common.plcerr[i * 16 + 13] = "N"; |
| | | // } |
| | | // if (Common.fun_ChkAndByte(num, Common.ch_d15) == true) |
| | | // { |
| | | // Common.plcerr[i * 16 + 14] = "Y"; |
| | | // } |
| | | // else |
| | | // { |
| | | // Common.plcerr[i * 16 + 14] = "N"; |
| | | // } |
| | | // if (Common.fun_ChkAndByte(num, Common.ch_d16) == true) |
| | | // { |
| | | // Common.plcerr[i * 16 + 15] = "Y"; |
| | | // } |
| | | // else |
| | | // { |
| | | // Common.plcerr[i * 16 + 15] = "N"; |
| | | // } |
| | | // } |
| | | // catch (Exception em) |
| | | // { |
| | | // Common.WriteLogFile("WcsError", "PlcThread/AnalyseStaErr1--åæç«ç¹åå¼å¸¸å¤±è´¥:" + em.Message); |
| | | // } |
| | | //} |
| | | //#endregion |
| | | |
| | | ///// <summary> |
| | | ///// 读åPLCç®æ ç«å°åå¼ |
| | | ///// </summary> |
| | | //private void GetStaDestArea() |
| | | //{ |
| | | // recvStr = ""; |
| | | // var client = new S7Client(); |
| | | // int result = 0; |
| | | // try |
| | | // { |
| | | // result = client.ConnectTo(plcip, rack, slot); |
| | | // if (result != 0) |
| | | // { |
| | | // DisplayInfo("ã" + DateTime.Now.ToString() + "ãè¿æ¥PLC " + plcip + "é误ï¼" + client.ErrorText(result)); |
| | | // Common.WriteLogFile("WcsError", "PlcBThread/GetStaDestArea--è¿æ¥PLC " + plcip + "é误ï¼" + client.ErrorText(result)); |
| | | // InitStn(); |
| | | // return; |
| | | // } |
| | | |
| | | // byte[] dbBuffer = new byte[66]; |
| | | // result = client.DBRead(540, 100, 66, dbBuffer); |
| | | // //Thread.Sleep(Common.ci_PLCtimeInterval); |
| | | // if (result != 0) |
| | | // { |
| | | // DisplayInfo("ã" + DateTime.Now.ToString() + "ã读åPLCBç®æ ç«é误ï¼" + client.ErrorText(result)); |
| | | // Common.WriteLogFile("WcsError", "PlcBThread/GetStaDestArea--读åç®æ ç«é误ï¼" + client.ErrorText(result)); |
| | | // client.Disconnect(); |
| | | // return; |
| | | // } |
| | | // for (int i = 0; i < 33; i++) |
| | | // { |
| | | // Common.plc_s_next_stn[plcno - 1, i + 30] = S7.GetIntAt(dbBuffer, i * 2).ToString(); |
| | | // recvStr = recvStr + Common.plc_s_next_stn[plcno - 1, i + 30]; |
| | | // DisplayPLCDataInfo(3, i + 30); |
| | | // } |
| | | // DisplayInfo("ã" + DateTime.Now.ToString() + "ãæ«æPLCB ç®æ ç«--" + recvStr);//忥æ¾ç¤º |
| | | |
| | | // ///////////////////PLC读åæçæ¡ç ///////////////////////////// |
| | | // recvStr = ""; |
| | | // byte[] dbBuffer1 = new byte[4]; |
| | | // result = client.DBRead(540, 300, dbBuffer1.Length, dbBuffer1); |
| | | // //Thread.Sleep(Common.ci_PLCtimeInterval); |
| | | // if (result != 0) |
| | | // { |
| | | // DisplayInfo("ã" + DateTime.Now.ToString() + "ã读åPLCBæ¡ç æ°æ®é误ï¼" + client.ErrorText(result)); |
| | | // Common.WriteLogFile("WcsError", "PlcBThread/GetBarcodeData--è¯»åæ¡ç æ°æ®é误ï¼" + client.ErrorText(result)); |
| | | // client.Disconnect(); |
| | | // return; |
| | | // } |
| | | // for (int i = 0; i < 1; i++) |
| | | // { |
| | | // //long kk = ; |
| | | // Common.gs_barcode_data[2] = S7.GetDIntAt(dbBuffer1, i * 4).ToString(); |
| | | // //Common.plc_s_next_stn[plcno - 1, i] = S7.GetIntAt(dbBuffer, i * 2).ToString(); |
| | | // recvStr = recvStr + (i + 1) + "ç«:" + Common.gs_barcode_data[2] + "; "; |
| | | // DisplayPLCDataInfo(3, i + 30); |
| | | // } |
| | | // DisplayInfo("ã" + DateTime.Now.ToString() + "ãæ«æPLCB æ¡ç æ°æ®--" + recvStr);//忥æ¾ç¤º |
| | | // ////////////////////////////////////////////////////////////// |
| | | // } |
| | | // catch (Exception em) |
| | | // { |
| | | // DisplayInfo("ã" + DateTime.Now.ToString() + "ã" + plcno + "#读åç®æ ç«å¤±è´¥: " + em.Message);//忥æ¾ç¤º |
| | | // Common.WriteLogFile("WcsError", "PlcBThread/GetStaDestArea--读åç®æ ç«å¤±è´¥:" + em.Message); |
| | | // return; |
| | | // } |
| | | // finally |
| | | // { |
| | | // client.Disconnect(); |
| | | // } |
| | | //} |
| | | |
| | | ///// <summary> |
| | | ///// æ ¹æ®å½ä»¤å¤æåPLCç±»å |
| | | ///// </summary> |
| | | ///// <param name="cmd"></param> |
| | | //private void WriteStaArea(string cmd) |
| | | //{ |
| | | // int type = 0, stn = 0, dest = 0, id = 0, i_startadd = 0; |
| | | // bool bl = false; |
| | | // try |
| | | // { |
| | | // type = Int32.Parse(cmd.Substring(0, 2)); |
| | | // id = Int32.Parse(cmd.Substring(2, 4)); |
| | | // stn = Int32.Parse(cmd.Substring(6, 4)); |
| | | // dest = Int32.Parse(cmd.Substring(10, 4)); |
| | | // //p_TcpClient_plc.Active:=true; |
| | | // ////20100810ä¿®æ¹ç»ä¸æ ¼å¼ |
| | | // //ç±»å |
| | | // switch (type) |
| | | // { |
| | | // case 2: |
| | | // //åID |
| | | // i_startadd = Common.g_ari_station_idaddr[Common.GetStnSeq(stn)]; |
| | | // //bl = WriteAddr(i_startadd, id, dest, 2); |
| | | // bl = WriteAddr(Common.GetStnSeq(stn), id, dest, 2); |
| | | // //Thread.Sleep(Common.ci_PLCtimeInterval); |
| | | // if (bl) |
| | | // { |
| | | // plc_cmd = ""; |
| | | // } |
| | | // break; |
| | | // case 3: |
| | | // //åç®æ |
| | | // i_startadd = Common.g_ari_station_destaddr[Common.GetStnSeq(stn)]; |
| | | // //bl = WriteAddr(i_startadd, id, dest, 3); |
| | | // bl = WriteAddr(Common.GetStnSeq(stn), id, dest, 3); |
| | | // //Thread.Sleep(Common.ci_PLCtimeInterval); |
| | | // if (bl) |
| | | // { |
| | | // plc_cmd = ""; |
| | | // } |
| | | // break; |
| | | // case 4: |
| | | // //åID |
| | | // i_startadd = Common.g_ari_station_idaddr[Common.GetStnSeq(stn)]; |
| | | // //bl = WriteAddr(i_startadd, id, dest, 4); |
| | | // bl = WriteAddr(Common.GetStnSeq(stn), id, dest, 4); |
| | | |
| | | // //Thread.Sleep(Common.ci_PLCtimeInterval); |
| | | |
| | | // if (bl) |
| | | // { |
| | | // ////åç®æ |
| | | // //i_startadd = Common.g_ari_station_destaddr[Common.GetStnSeq(stn)]; |
| | | // //bool bl1 = WriteAddr(i_startadd, dest); |
| | | // ////Thread.Sleep(200); |
| | | // //if (bl1) |
| | | // //{ |
| | | // plc_cmd = ""; |
| | | // //} |
| | | // } |
| | | // break; |
| | | // case 5: |
| | | // //æ¸
é¤ç©ºæ æ¿åºåºéæ±ä¿¡å· |
| | | // var client = new S7Client(); |
| | | // int result = 0; |
| | | // try |
| | | // { |
| | | // int pos = 0; |
| | | // if (id == 1) //éæ±åºä¿¡å· |
| | | // { |
| | | // i_startadd = 216; |
| | | // pos = 3; |
| | | // } |
| | | // else //éæ±å
¥ä¿¡å· |
| | | // { |
| | | // i_startadd = 208; |
| | | // pos = 2; |
| | | // } |
| | | // result = client.ConnectTo(plcip, rack, slot); |
| | | // if (result != 0) |
| | | // { |
| | | // DisplayInfo("ã" + DateTime.Now.ToString() + "ãè¿æ¥PLC " + plcip + "é误ï¼" + client.ErrorText(result)); |
| | | // Common.WriteLogFile("WcsError", "PlcBThread/WriteAddr--è¿æ¥PLC " + plcip + "é误ï¼" + client.ErrorText(result)); |
| | | // return; |
| | | // } |
| | | |
| | | // byte[] dbBuffer = new byte[2]; |
| | | // S7.SetBitAt(ref dbBuffer, 0, pos, false); |
| | | // //S7.SetIntAt(dbBuffer, 0, 0); |
| | | // result = client.DBWrite(540, i_startadd, dbBuffer.Length, dbBuffer); |
| | | // if (result == 0) |
| | | // { |
| | | // plc_cmd = ""; |
| | | // } |
| | | // else |
| | | // { |
| | | // client.Disconnect(); |
| | | // } |
| | | // } |
| | | // catch (Exception) |
| | | // { } |
| | | // finally |
| | | // { |
| | | // client.Disconnect(); |
| | | // } |
| | | // //Thread.Sleep(200); |
| | | |
| | | // break; |
| | | // case 6: |
| | | // //æ¸
ç©ºä¿¡å· |
| | | // //Thread.Sleep(200); |
| | | // plc_cmd = ""; |
| | | // break; |
| | | // default: |
| | | // break; |
| | | // } |
| | | // } |
| | | // catch (Exception em) |
| | | // { |
| | | // Common.WriteLogFile("WcsError", "PlcBThread/WriteStaArea--åPLCé误:" + em.Message); |
| | | // DisplayInfo("ã" + DateTime.Now.ToString() + "ãåPLCé误:" + em.Message);//忥æ¾ç¤º |
| | | // return; |
| | | // } |
| | | //} |
| | | |
| | | ///// <summary> |
| | | ///// åPLCå°åå¼ |
| | | ///// </summary> |
| | | ///// <param name="pos"></param> |
| | | ///// <param name="id"></param> |
| | | //private bool WriteAddr(int pos, int id, int dest, int type) |
| | | //{ |
| | | // bool bl = false; |
| | | // var client = new S7Client(); |
| | | // bool ok = false; |
| | | // int icount = 0; |
| | | // try |
| | | // { |
| | | // int result = -1; |
| | | // result = client.ConnectTo(plcip, rack, slot); |
| | | // if (result != 0) |
| | | // { |
| | | // DisplayInfo("ã" + DateTime.Now.ToString() + "ãè¿æ¥PLC " + plcip + "é误ï¼" + client.ErrorText(result)); |
| | | // Common.WriteLogFile("WcsError", "PlcBThread/WriteAddr--è¿æ¥PLC " + plcip + "é误ï¼" + client.ErrorText(result)); |
| | | // return bl; |
| | | // } |
| | | |
| | | // byte[] dbBuffer = new byte[2]; |
| | | // byte[] dbBuffer1 = new byte[2]; |
| | | // if (type == 2 || type == 4) |
| | | // { |
| | | // S7.SetIntAt(dbBuffer, 0, (short)id); |
| | | // } |
| | | // if (type == 3 || type == 4) |
| | | // { |
| | | // S7.SetIntAt(dbBuffer1, 0, (short)dest); |
| | | // } |
| | | |
| | | // var s7MultiVar = new S7MultiVar(client); |
| | | // //s7MultiVar.Add(S7Consts.S7AreaDB, S7Consts.S7WLByte, 540, Common.g_ari_station_idaddr[pos], dbBuffer.Length, ref dbBuffer); |
| | | // //s7MultiVar.Add(S7Consts.S7AreaDB, S7Consts.S7WLByte, 540, Common.g_ari_station_destaddr[pos], dbBuffer1.Length, ref dbBuffer1); |
| | | // do //å¦æå¤±è´¥ï¼å°è¯ä¸å3次 |
| | | // { |
| | | // if (type == 2 || type == 4) |
| | | // { |
| | | // s7MultiVar.Add(S7Consts.S7AreaDB, S7Consts.S7WLByte, 540, Common.g_ari_station_idaddr[pos], dbBuffer.Length, ref dbBuffer); |
| | | // //result = client.DBWrite(540, Common.g_ari_station_idaddr[pos], dbBuffer.Length, dbBuffer); |
| | | // } |
| | | // if (type == 3 || type == 4) |
| | | // { |
| | | // s7MultiVar.Add(S7Consts.S7AreaDB, S7Consts.S7WLByte, 540, Common.g_ari_station_destaddr[pos], dbBuffer1.Length, ref dbBuffer1); |
| | | // //result = client.DBWrite(540, Common.g_ari_station_destaddr[pos], dbBuffer1.Length, dbBuffer1); |
| | | // } |
| | | // result = -1; |
| | | // if (Common.writeFlag) |
| | | // { |
| | | // Common.writeFlag = false; |
| | | // result = s7MultiVar.Write(); |
| | | // Thread.Sleep(100); |
| | | // //result = s7MultiVar.Write(); |
| | | // Common.WriteLogFile("PLCBCmd", "PlcBThread/PLCå½ä»¤:" + plc_cmd + ";ç»æï¼" + result); |
| | | // Common.writeFlag = true; |
| | | // } |
| | | // if (result == 0) |
| | | // { |
| | | // bl = true; |
| | | // ok = true; |
| | | // } |
| | | // else |
| | | // { |
| | | // icount++; |
| | | // if (icount >= 5) |
| | | // { |
| | | // ok = true; |
| | | // } |
| | | // else |
| | | // { |
| | | // Thread.Sleep(Common.ci_PLCtimeInterval); |
| | | // } |
| | | // } |
| | | // } while (ok == false); |
| | | // } |
| | | // catch (Exception em) |
| | | // { |
| | | // DisplayInfo("ã" + DateTime.Now.ToString() + "ã" + plcno + "#åPLCBå°å失败: " + em.Message);//忥æ¾ç¤º |
| | | // Common.WriteLogFile("WcsError", "PlcBThread/WriteAddr--åPLCBå°å失败:" + em.Message); |
| | | // return bl; |
| | | // } |
| | | // finally |
| | | // { |
| | | // client.Disconnect(); |
| | | // } |
| | | // return bl; |
| | | //} |
| | | |
| | | ///// <summary> |
| | | ///// æ ¹æ®asciiç å¼å¾å°å¯¹åºå符 |
| | | ///// </summary> |
| | | ///// <param name="asciiCode">asciiç </param> |
| | | ///// <returns>è¿å对åºå符</returns> |
| | | //public string GetStringByASCII(int asciiCode) |
| | | //{ |
| | | // try |
| | | // { |
| | | // if (asciiCode >= 0 && asciiCode <= 127) |
| | | // { |
| | | // System.Text.ASCIIEncoding asciiEncoding = new System.Text.ASCIIEncoding(); |
| | | // byte[] byteArray = new byte[] { (byte)asciiCode }; |
| | | // string strCharacter = asciiEncoding.GetString(byteArray); |
| | | // return (strCharacter); |
| | | // } |
| | | // else if (asciiCode >= 128 && asciiCode <= 255) |
| | | // { |
| | | // System.Text.ASCIIEncoding asciiEncoding = new System.Text.ASCIIEncoding(); |
| | | // byte[] byteArray = new byte[] { (byte)(asciiCode + 65536) }; |
| | | // string strCharacter = Encoding.Default.GetString(byteArray); |
| | | // return (strCharacter); |
| | | // } |
| | | // else |
| | | // { |
| | | // throw new Exception("æ æçASCIIç !"); |
| | | |
| | | // } |
| | | // } |
| | | // catch (Exception em) |
| | | // { |
| | | // Common.WriteLogFile("WcsError", "PlcBThread/GetStringByASCII--ASCII转å符串é误:" + em.Message); |
| | | // return ""; |
| | | // } |
| | | //} |
| | | |
| | | //#region ç»é¢åæ¥æ¾ç¤º |
| | | ///// <summary> |
| | | ///// 忥æ¾ç¤ºplcéè®¯ä¿¡æ¯ |
| | | ///// </summary> |
| | | ///// <param name="text">æ«æä¿¡æ¯</param> |
| | | ///// <param name="memo">夿³¨ä¿¡æ¯</param> |
| | | //private void DisplayInfo(string text) |
| | | //{ |
| | | // if (tb.InvokeRequired) |
| | | // { |
| | | // try |
| | | // { |
| | | // displayresponse d = new displayresponse(DisplayInfo); |
| | | // tb.Invoke(d, new object[] { text }); |
| | | // } |
| | | // catch (Exception em) |
| | | // { |
| | | // Common.WriteLogFile("WcsError", "PlcBThread/DisplayInfo--忥æ¾ç¤ºplcé讯信æ¯é误:" + em.Message); |
| | | // } |
| | | // } |
| | | // else |
| | | // { |
| | | // if (tb.Items.Count > 50) |
| | | // { |
| | | // tb.Items.Clear(); |
| | | // } |
| | | // tb.Items.Add(text); |
| | | // tb.TopIndex = tb.Items.Count - (int)(tb.Height / tb.ItemHeight); |
| | | // } |
| | | |
| | | //} |
| | | |
| | | ///// <summary> |
| | | ///// 忥æ¾ç¤ºç«ç¹çç¶æ |
| | | ///// </summary> |
| | | ///// <param name="type">ç±»å«</param> |
| | | ///// <param name="k">åºå·</param> |
| | | //private void DisplayPLCDataInfo(int type, int k) |
| | | //{ |
| | | // if (plclist.InvokeRequired) |
| | | // { |
| | | // try |
| | | // { |
| | | // DisplayData d = new DisplayData(DisplayPLCDataInfo); |
| | | // plclist.Invoke(d, new object[] { type, k }); |
| | | // plclist.Focus(); |
| | | // //plclist.Update(); |
| | | // //plclist.Refresh(); |
| | | // } |
| | | // catch (Exception em) |
| | | // { |
| | | // Common.WriteLogFile("WcsError", "PlcBThread/DisplayPLCDataInfo--忥æ¾ç¤ºç«ç¹ç¶æé误:" + em.Message); |
| | | // } |
| | | // } |
| | | // else |
| | | // { |
| | | // if (type == 1) |
| | | // { |
| | | // this.plclist.Items[k].SubItems[1].Text = Common.plc_i_Wrk_no[plcno - 1, k].ToString(); |
| | | // } |
| | | // else if (type == 2) |
| | | // { |
| | | // //if (k == 8 || k == 11) return; |
| | | // this.plclist.Items[k].SubItems[2].Text = Common.plc_s_autoing[plcno - 1, k].ToString(); |
| | | // this.plclist.Items[k].SubItems[3].Text = Common.plc_s_loading[plcno - 1, k].ToString(); |
| | | // this.plclist.Items[k].SubItems[4].Text = Common.plc_s_canining[plcno - 1, k].ToString(); |
| | | // this.plclist.Items[k].SubItems[5].Text = Common.plc_s_canouting[plcno - 1, k].ToString(); |
| | | // this.plclist.Items[k].SubItems[6].Text = Common.plc_s_inreq1[plcno - 1, k].ToString(); |
| | | // this.plclist.Items[k].SubItems[7].Text = Common.plc_s_inreq2[plcno - 1, k].ToString(); |
| | | // this.plclist.Items[k].SubItems[8].Text = Common.plc_s_loctype[plcno - 1, k].ToString(); |
| | | // //this.plclist.Items[k].SubItems[9].Text = Class1.plc_s_loctype[plcno - 1, k].ToString(); |
| | | // } |
| | | // else if (type == 3) |
| | | // { |
| | | // this.plclist.Items[k].SubItems[9].Text = Common.plc_s_next_stn[plcno - 1, k].ToString(); |
| | | // } |
| | | |
| | | // } |
| | | //} |
| | | |
| | | ///// <summary> |
| | | ///// æ´æ°PLCå½ä»¤ä¿¡æ¯å°ç颿¾ç¤º |
| | | ///// </summary> |
| | | ///// <param name="count">éåæ°</param> |
| | | //private void DisplayQuerecmd(string info) |
| | | //{ |
| | | // try |
| | | // { |
| | | // if (sendtoplc.InvokeRequired) |
| | | // { |
| | | // DisplaySendTxtInfo d = new DisplaySendTxtInfo(DisplayQuerecmd); |
| | | // sendtoplc.Invoke(d, new object[] { info }); |
| | | // } |
| | | // else |
| | | // { |
| | | // sendtoplc.Text = info.ToString(); |
| | | // } |
| | | // } |
| | | // catch (Exception em) |
| | | // { |
| | | // Common.WriteLogFile("WcsError", "PlcBThread/DisplayQuerecmd--æ´æ°PLCå½ä»¤ä¿¡æ¯å°çé¢é误:" + em.Message); |
| | | // } |
| | | //} |
| | | //#endregion |
| | | |
| | | ///// <summary> |
| | | ///// é讯失败ååå§åç«ç¹ç¶æ |
| | | ///// </summary> |
| | | //private void InitStn() |
| | | //{ |
| | | // try |
| | | // { |
| | | // for (int i = 0; i < 33; i++) |
| | | // { |
| | | // Common.plc_s_autoing[1, i + 30] = "N"; |
| | | // Common.plc_s_loading[1, i + 30] = "N"; |
| | | // Common.plc_s_canining[1, i + 30] = "N"; |
| | | // Common.plc_s_canouting[1, i + 30] = "N"; |
| | | // Common.plc_s_inreq1[1, i + 30] = "N"; |
| | | // Common.plc_s_inreq2[1, i + 30] = "N"; |
| | | // Common.plc_s_loctype[1, i + 30] = "0"; |
| | | // Common.plc_s_error[1, i + 30] = "N"; |
| | | // Common.plc_i_buff_count[1, i + 30] = 0; |
| | | // Common.plc_i_Wrk_no[1, i + 30] = 0; |
| | | // Common.plc_s_stn_status[1, i + 30] = "N"; |
| | | // Common.plc_s_next_stn[1, i + 30] = "0"; |
| | | // //Common.plc_i_pakmk[1, i + 30] = 0; |
| | | // } |
| | | // } |
| | | // catch (Exception) |
| | | // { } |
| | | //} |
| | | |
| | | //#region 注é |
| | | /////// <summary> |
| | | /////// 忥æ¾ç¤ºç«ç¹buffer |
| | | /////// </summary> |
| | | /////// <param name="type">ç±»å«</param> |
| | | /////// <param name="k">åºå·</param> |
| | | ////private void DisplayBuffer(int k) |
| | | ////{ |
| | | //// if (plcbuflist.InvokeRequired) |
| | | //// { |
| | | //// try |
| | | //// { |
| | | //// DisplayDataBuffer d = new DisplayDataBuffer(DisplayBuffer); |
| | | //// plcbuflist.Invoke(d, new object[] { k}); |
| | | //// } |
| | | //// catch (Exception r) |
| | | //// { |
| | | |
| | | //// } |
| | | //// } |
| | | //// else |
| | | //// { |
| | | //// this.plcbuflist.Items[0].SubItems[k].Text = Common.gi_stabuffer[k].ToString(); |
| | | //// } |
| | | |
| | | ////} |
| | | |
| | | ///// <summary> |
| | | ///// 忥æ¾ç¤ºç«ç¹çç¶æ |
| | | ///// </summary> |
| | | ///// <param name="type">ç±»å«</param> |
| | | ///// <param name="k">åºå·</param> |
| | | |
| | | /////// <summary> |
| | | /////// 忥æ¾ç¤ºéåæ° |
| | | /////// </summary> |
| | | /////// <param name="count">éåæ°</param> |
| | | ////private void DisplayQuereCount(int count) |
| | | ////{ |
| | | //// try |
| | | //// { |
| | | //// if (querecount.InvokeRequired) |
| | | //// { |
| | | //// DisplayQuereData d = new DisplayQuereData(DisplayQuereCount); |
| | | //// querecount.Invoke(d, new object[] { count }); |
| | | //// } |
| | | //// else |
| | | //// { |
| | | //// querecount.Text = count.ToString(); |
| | | //// } |
| | | //// } |
| | | //// catch (Exception t) |
| | | //// { |
| | | |
| | | //// } |
| | | ////} |
| | | //#endregion |
| | | |
| | | /// <summary> |
| | | /// PLCä¸»çº¿ç¨ |
| | | /// </summary> |
| | | private void ThreadTask() |
| | | { |
| | | ////int result = client.ConnectTo(plcip, rack, slot); |
| | | ////if (result != 0) |
| | | ////{ |
| | | //// DisplayInfo("ã" + DateTime.Now.ToString() + "ãè¿æ¥PLC " + plcip + "é误ï¼" + client.ErrorText(result)); |
| | | //// Common.WriteLogFile("WcsError", "PlcBThread/GetStaIdArea--è¿æ¥PLC " + plcip + "é误ï¼" + client.ErrorText(result)); |
| | | //// InitStn(); |
| | | //// //return; |
| | | ////} |
| | | |
| | | //while (true) |
| | | //{ |
| | | // //if (client.Connected) |
| | | // //{ |
| | | // try |
| | | // { |
| | | // //DisplayQuereCount(Common.GetPlcQuereCount(plcno - 1)); |
| | | // //if (Common.PlcBQueue.Count > 0 && plc_cmd == "") |
| | | // //{ |
| | | // // plc_cmd = Common.PlcBQueue.Dequeue(); |
| | | // //} |
| | | // if (Common.GetPlcQuereCount(plcno - 1) > 0 && plc_cmd == "") |
| | | // { |
| | | // plc_cmd = Common.GetPlcQuereCmd(plcno - 1); |
| | | // } |
| | | // DisplayQuerecmd(plc_cmd); |
| | | // CommandStr_nkindstep(); |
| | | // switch (i_plc_step) |
| | | // { |
| | | // case 1: |
| | | // GetStaIdArea(); //读ID |
| | | // GetStaStsArea(); //è¯»ç¶æ |
| | | // GetStaDestArea(); //è¯»ç®æ ç« |
| | | // GetStaErrArea1(); //读设å¤å¼å¸¸ |
| | | // break; |
| | | // case 2://åid |
| | | // WriteStaArea(plc_cmd); |
| | | // break; |
| | | // case 3://åç®æ |
| | | // WriteStaArea(plc_cmd); |
| | | // break; |
| | | // case 4://åiDåç®æ |
| | | // WriteStaArea(plc_cmd); |
| | | // break; |
| | | // case 5://æ¸
buffer |
| | | // WriteStaArea(plc_cmd); |
| | | // break; |
| | | // case 6://æå |
| | | // WriteStaArea(plc_cmd); |
| | | // //WriteStaBuffer(); |
| | | // break; |
| | | // } |
| | | // i_plc_step = 1; |
| | | // Thread.Sleep(Common.ci_PLCtimeInterval); |
| | | // } |
| | | // catch (Exception em) |
| | | // { |
| | | // Common.WriteLogFile("WcsError", "PlcBThread/ThreadTask--PLC主线ç¨å¾ªç¯é误:" + em.Message); |
| | | // } |
| | | // //} |
| | | // //else |
| | | // //{ |
| | | // // client.Disconnect(); |
| | | // // result = client.ConnectTo(plcip, rack, slot); |
| | | // // if (result != 0) |
| | | // // { |
| | | // // DisplayInfo("ã" + DateTime.Now.ToString() + "ãè¿æ¥PLC " + plcip + "é误ï¼" + client.ErrorText(result)); |
| | | // // Common.WriteLogFile("WcsError", "PlcBThread/GetStaIdArea--è¿æ¥PLC " + plcip + "é误ï¼" + client.ErrorText(result)); |
| | | // // InitStn(); |
| | | // // } |
| | | // //} |
| | | //} |
| | | |
| | | } |
| | | |
| | | } |
| | | |
| | | } |
| New file |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Windows.Forms; |
| | | using System.Diagnostics; |
| | | using System.Runtime.InteropServices; |
| | | using System.Reflection; |
| | | |
| | | namespace WCS |
| | | { |
| | | static class Program |
| | | { |
| | | [DllImport("User32.dll")] |
| | | private static extern bool ShowWindowAsync(IntPtr hWnd, int cmdShow); |
| | | [DllImport("User32.dll")] |
| | | private static extern bool SetForegroundWindow(IntPtr hWnd); |
| | | private const int WS_SHOWNORMAL = 1; |
| | | |
| | | /// <summary> |
| | | /// åºç¨ç¨åºç主å
¥å£ç¹ã |
| | | /// </summary> |
| | | [STAThread] |
| | | static void Main() |
| | | { |
| | | Application.EnableVisualStyles(); |
| | | Application.SetCompatibleTextRenderingDefault(false); |
| | | //Application.Run(new main()); |
| | | Process instance = RunningInstance(); |
| | | if (instance == null) |
| | | { |
| | | //Application.Run(new main()); |
| | | Application.Run(new Form2()); |
| | | } |
| | | else |
| | | { |
| | | HandleRunningInstance(instance); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// è·åæ£å¨è¿è¡çå®ä¾ï¼æ²¡æè¿è¡çå®ä¾è¿ånull; |
| | | /// </summary> |
| | | public static Process RunningInstance() |
| | | { |
| | | Process current = Process.GetCurrentProcess(); |
| | | Process[] processes = Process.GetProcessesByName(current.ProcessName); |
| | | foreach (Process process in processes) |
| | | { |
| | | if (process.Id != current.Id) |
| | | { |
| | | if (Assembly.GetExecutingAssembly().Location.Replace("/", "\\") == current.MainModule.FileName) |
| | | { |
| | | return process; |
| | | } |
| | | } |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æ¾ç¤ºå·²è¿è¡çç¨åºã |
| | | /// </summary> |
| | | public static void HandleRunningInstance(Process instance) |
| | | { |
| | | MessageBox.Show("ç³»ç»å·²è¿è¡ï¼è¯·å¿é夿å¼", "æç¤º"); |
| | | ShowWindowAsync(instance.MainWindowHandle, WS_SHOWNORMAL); //æ¾ç¤ºï¼å¯ä»¥æ³¨éæ |
| | | SetForegroundWindow(instance.MainWindowHandle); //æ¾å°å端 |
| | | } |
| | | |
| | | } |
| | | } |
| New file |
| | |
| | | using System.Reflection; |
| | | using System.Runtime.CompilerServices; |
| | | using System.Runtime.InteropServices; |
| | | |
| | | // æå
³ç¨åºéç常è§ä¿¡æ¯éè¿ä¸å屿§é |
| | | // æ§å¶ãæ´æ¹è¿äºå±æ§å¼å¯ä¿®æ¹ |
| | | // ä¸ç¨åºéå
³èçä¿¡æ¯ã |
| | | [assembly: AssemblyTitle("WCS")] |
| | | [assembly: AssemblyDescription("")] |
| | | [assembly: AssemblyConfiguration("")] |
| | | [assembly: AssemblyCompany("")] |
| | | [assembly: AssemblyProduct("WCS")] |
| | | [assembly: AssemblyCopyright("Copyright")] |
| | | [assembly: AssemblyTrademark("")] |
| | | [assembly: AssemblyCulture("")] |
| | | |
| | | // å° ComVisible 设置为 false 使æ¤ç¨åºéä¸çç±»å |
| | | // 对 COM ç»ä»¶ä¸å¯è§ã妿éè¦ä» COM è®¿é®æ¤ç¨åºéä¸çç±»åï¼ |
| | | // åå°è¯¥ç±»åä¸ç ComVisible 屿§è®¾ç½®ä¸º trueã |
| | | [assembly: ComVisible(false)] |
| | | |
| | | // 妿æ¤é¡¹ç®å COM å
¬å¼ï¼åä¸å GUID ç¨äºç±»ååºç ID |
| | | [assembly: Guid("9d9a2110-1b4b-41cd-8dc8-181db9d4ea9d")] |
| | | |
| | | // ç¨åºéççæ¬ä¿¡æ¯ç±ä¸é¢å个å¼ç»æ: |
| | | // |
| | | // ä¸»çæ¬ |
| | | // æ¬¡çæ¬ |
| | | // å
é¨çæ¬å· |
| | | // ä¿®è®¢å· |
| | | // |
| | | // å¯ä»¥æå®ææè¿äºå¼ï¼ä¹å¯ä»¥ä½¿ç¨âå
é¨çæ¬å·âåâ修订å·âçé»è®¤å¼ï¼ |
| | | // æ¹æ³æ¯æå¦ä¸æç¤ºä½¿ç¨â*â: |
| | | // [assembly: AssemblyVersion("1.0.*")] |
| | | [assembly: AssemblyVersion("1.0.0.0")] |
| | | [assembly: AssemblyFileVersion("1.0.0.0")] |
| New file |
| | |
| | | //------------------------------------------------------------------------------ |
| | | // <auto-generated> |
| | | // æ¤ä»£ç ç±å·¥å
·çæã |
| | | // è¿è¡æ¶çæ¬:4.0.30319.42000 |
| | | // |
| | | // å¯¹æ¤æä»¶çæ´æ¹å¯è½ä¼å¯¼è´ä¸æ£ç¡®çè¡ä¸ºï¼å¹¶ä¸å¦æ |
| | | // éæ°çæä»£ç ï¼è¿äºæ´æ¹å°ä¼ä¸¢å¤±ã |
| | | // </auto-generated> |
| | | //------------------------------------------------------------------------------ |
| | | |
| | | namespace WCS.Properties { |
| | | using System; |
| | | |
| | | |
| | | /// <summary> |
| | | /// ä¸ä¸ªå¼ºç±»åçèµæºç±»ï¼ç¨äºæ¥æ¾æ¬å°åçå符串çã |
| | | /// </summary> |
| | | // æ¤ç±»æ¯ç± StronglyTypedResourceBuilder |
| | | // ç±»éè¿ç±»ä¼¼äº ResGen æ Visual Studio çå·¥å
·èªå¨çæçã |
| | | // è¥è¦æ·»å æç§»é¤æåï¼è¯·ç¼è¾ .ResX æä»¶ï¼ç¶åéæ°è¿è¡ ResGen |
| | | // (以 /str ä½ä¸ºå½ä»¤é项)ï¼æéæ°çæ VS 项ç®ã |
| | | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] |
| | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
| | | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] |
| | | internal class Resources { |
| | | |
| | | private static global::System.Resources.ResourceManager resourceMan; |
| | | |
| | | private static global::System.Globalization.CultureInfo resourceCulture; |
| | | |
| | | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] |
| | | internal Resources() { |
| | | } |
| | | |
| | | /// <summary> |
| | | /// è¿åæ¤ç±»ä½¿ç¨çç¼åç ResourceManager å®ä¾ã |
| | | /// </summary> |
| | | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] |
| | | internal static global::System.Resources.ResourceManager ResourceManager { |
| | | get { |
| | | if (object.ReferenceEquals(resourceMan, null)) { |
| | | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("WCS.Properties.Resources", typeof(Resources).Assembly); |
| | | resourceMan = temp; |
| | | } |
| | | return resourceMan; |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// ä½¿ç¨æ¤å¼ºç±»åèµæºç±»ï¼ä¸ºææèµæºæ¥æ¾ |
| | | /// éåå½å线ç¨ç CurrentUICulture 屿§ã |
| | | /// </summary> |
| | | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] |
| | | internal static global::System.Globalization.CultureInfo Culture { |
| | | get { |
| | | return resourceCulture; |
| | | } |
| | | set { |
| | | resourceCulture = value; |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æ¥æ¾ System.Drawing.Bitmap ç±»åçæ¬å°åèµæºã |
| | | /// </summary> |
| | | internal static System.Drawing.Bitmap fork_l { |
| | | get { |
| | | object obj = ResourceManager.GetObject("fork_l", resourceCulture); |
| | | return ((System.Drawing.Bitmap)(obj)); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æ¥æ¾ System.Drawing.Bitmap ç±»åçæ¬å°åèµæºã |
| | | /// </summary> |
| | | internal static System.Drawing.Bitmap fork_l1 { |
| | | get { |
| | | object obj = ResourceManager.GetObject("fork_l1", resourceCulture); |
| | | return ((System.Drawing.Bitmap)(obj)); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æ¥æ¾ System.Drawing.Bitmap ç±»åçæ¬å°åèµæºã |
| | | /// </summary> |
| | | internal static System.Drawing.Bitmap info { |
| | | get { |
| | | object obj = ResourceManager.GetObject("info", resourceCulture); |
| | | return ((System.Drawing.Bitmap)(obj)); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æ¥æ¾ System.Drawing.Bitmap ç±»åçæ¬å°åèµæºã |
| | | /// </summary> |
| | | internal static System.Drawing.Bitmap question { |
| | | get { |
| | | object obj = ResourceManager.GetObject("question", resourceCulture); |
| | | return ((System.Drawing.Bitmap)(obj)); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æ¥æ¾ System.Drawing.Bitmap ç±»åçæ¬å°åèµæºã |
| | | /// </summary> |
| | | internal static System.Drawing.Bitmap sta_b { |
| | | get { |
| | | object obj = ResourceManager.GetObject("sta_b", resourceCulture); |
| | | return ((System.Drawing.Bitmap)(obj)); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æ¥æ¾ System.Drawing.Bitmap ç±»åçæ¬å°åèµæºã |
| | | /// </summary> |
| | | internal static System.Drawing.Bitmap sta_l { |
| | | get { |
| | | object obj = ResourceManager.GetObject("sta_l", resourceCulture); |
| | | return ((System.Drawing.Bitmap)(obj)); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æ¥æ¾ç±»ä¼¼ crnstslist çæ¬å°åå符串ã |
| | | /// </summary> |
| | | internal static string String { |
| | | get { |
| | | return ResourceManager.GetString("String", resourceCulture); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æ¥æ¾ System.Drawing.Bitmap ç±»åçæ¬å°åèµæºã |
| | | /// </summary> |
| | | internal static System.Drawing.Bitmap warn { |
| | | get { |
| | | object obj = ResourceManager.GetObject("warn", resourceCulture); |
| | | return ((System.Drawing.Bitmap)(obj)); |
| | | } |
| | | } |
| | | } |
| | | } |
| New file |
| | |
| | | <?xml version="1.0" encoding="utf-8"?> |
| | | <root> |
| | | <!-- |
| | | Microsoft ResX Schema |
| | | |
| | | Version 2.0 |
| | | |
| | | The primary goals of this format is to allow a simple XML format |
| | | that is mostly human readable. The generation and parsing of the |
| | | various data types are done through the TypeConverter classes |
| | | associated with the data types. |
| | | |
| | | Example: |
| | | |
| | | ... ado.net/XML headers & schema ... |
| | | <resheader name="resmimetype">text/microsoft-resx</resheader> |
| | | <resheader name="version">2.0</resheader> |
| | | <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> |
| | | <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> |
| | | <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> |
| | | <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> |
| | | <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> |
| | | <value>[base64 mime encoded serialized .NET Framework object]</value> |
| | | </data> |
| | | <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
| | | <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> |
| | | <comment>This is a comment</comment> |
| | | </data> |
| | | |
| | | There are any number of "resheader" rows that contain simple |
| | | name/value pairs. |
| | | |
| | | Each data row contains a name, and value. The row also contains a |
| | | type or mimetype. Type corresponds to a .NET class that support |
| | | text/value conversion through the TypeConverter architecture. |
| | | Classes that don't support this are serialized and stored with the |
| | | mimetype set. |
| | | |
| | | The mimetype is used for serialized objects, and tells the |
| | | ResXResourceReader how to depersist the object. This is currently not |
| | | extensible. For a given mimetype the value must be set accordingly: |
| | | |
| | | Note - application/x-microsoft.net.object.binary.base64 is the format |
| | | that the ResXResourceWriter will generate, however the reader can |
| | | read any of the formats listed below. |
| | | |
| | | mimetype: application/x-microsoft.net.object.binary.base64 |
| | | value : The object must be serialized with |
| | | : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter |
| | | : and then encoded with base64 encoding. |
| | | |
| | | mimetype: application/x-microsoft.net.object.soap.base64 |
| | | value : The object must be serialized with |
| | | : System.Runtime.Serialization.Formatters.Soap.SoapFormatter |
| | | : and then encoded with base64 encoding. |
| | | |
| | | mimetype: application/x-microsoft.net.object.bytearray.base64 |
| | | value : The object must be serialized into a byte array |
| | | : using a System.ComponentModel.TypeConverter |
| | | : and then encoded with base64 encoding. |
| | | --> |
| | | <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> |
| | | <xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> |
| | | <xsd:element name="root" msdata:IsDataSet="true"> |
| | | <xsd:complexType> |
| | | <xsd:choice maxOccurs="unbounded"> |
| | | <xsd:element name="metadata"> |
| | | <xsd:complexType> |
| | | <xsd:sequence> |
| | | <xsd:element name="value" type="xsd:string" minOccurs="0" /> |
| | | </xsd:sequence> |
| | | <xsd:attribute name="name" use="required" type="xsd:string" /> |
| | | <xsd:attribute name="type" type="xsd:string" /> |
| | | <xsd:attribute name="mimetype" type="xsd:string" /> |
| | | <xsd:attribute ref="xml:space" /> |
| | | </xsd:complexType> |
| | | </xsd:element> |
| | | <xsd:element name="assembly"> |
| | | <xsd:complexType> |
| | | <xsd:attribute name="alias" type="xsd:string" /> |
| | | <xsd:attribute name="name" type="xsd:string" /> |
| | | </xsd:complexType> |
| | | </xsd:element> |
| | | <xsd:element name="data"> |
| | | <xsd:complexType> |
| | | <xsd:sequence> |
| | | <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
| | | <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> |
| | | </xsd:sequence> |
| | | <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> |
| | | <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> |
| | | <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> |
| | | <xsd:attribute ref="xml:space" /> |
| | | </xsd:complexType> |
| | | </xsd:element> |
| | | <xsd:element name="resheader"> |
| | | <xsd:complexType> |
| | | <xsd:sequence> |
| | | <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
| | | </xsd:sequence> |
| | | <xsd:attribute name="name" type="xsd:string" use="required" /> |
| | | </xsd:complexType> |
| | | </xsd:element> |
| | | </xsd:choice> |
| | | </xsd:complexType> |
| | | </xsd:element> |
| | | </xsd:schema> |
| | | <resheader name="resmimetype"> |
| | | <value>text/microsoft-resx</value> |
| | | </resheader> |
| | | <resheader name="version"> |
| | | <value>2.0</value> |
| | | </resheader> |
| | | <resheader name="reader"> |
| | | <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
| | | </resheader> |
| | | <resheader name="writer"> |
| | | <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
| | | </resheader> |
| | | <assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /> |
| | | <data name="sta_l" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\bin\Debug\image\sta_l.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | </data> |
| | | <data name="String" xml:space="preserve"> |
| | | <value>crnstslist</value> |
| | | </data> |
| | | <data name="question" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\bin\Debug\image\question.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | </data> |
| | | <data name="fork_l" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\bin\Debug\image\fork_l.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | </data> |
| | | <data name="warn" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\bin\Debug\image\warn.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | </data> |
| | | <data name="sta_b" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\bin\Debug\image\sta_b.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | </data> |
| | | <data name="info" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\bin\Debug\image\info.PNG;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | </data> |
| | | <data name="fork_l1" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\bin\Debug\image\fork_l.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | </data> |
| | | </root> |
| New file |
| | |
| | | //------------------------------------------------------------------------------ |
| | | // <auto-generated> |
| | | // æ¤ä»£ç ç±å·¥å
·çæã |
| | | // è¿è¡æ¶çæ¬:4.0.30319.42000 |
| | | // |
| | | // å¯¹æ¤æä»¶çæ´æ¹å¯è½ä¼å¯¼è´ä¸æ£ç¡®çè¡ä¸ºï¼å¹¶ä¸å¦æ |
| | | // éæ°çæä»£ç ï¼è¿äºæ´æ¹å°ä¼ä¸¢å¤±ã |
| | | // </auto-generated> |
| | | //------------------------------------------------------------------------------ |
| | | |
| | | namespace WCS.Properties { |
| | | |
| | | |
| | | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] |
| | | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")] |
| | | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { |
| | | |
| | | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); |
| | | |
| | | public static Settings Default { |
| | | get { |
| | | return defaultInstance; |
| | | } |
| | | } |
| | | } |
| | | } |
| New file |
| | |
| | | <?xml version='1.0' encoding='utf-8'?> |
| | | <SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)"> |
| | | <Profiles> |
| | | <Profile Name="(Default)" /> |
| | | </Profiles> |
| | | <Settings /> |
| | | </SettingsFile> |
| New file |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading; |
| | | using System.IO.Ports; |
| | | using System.Windows.Forms; |
| | | |
| | | namespace WCS |
| | | { |
| | | /// <summary> |
| | | /// ç£
秤串å£éè®¯çº¿ç¨ |
| | | /// </summary> |
| | | class ScaleComThread |
| | | { |
| | | SerialPort sp; |
| | | #region ç»é¢ä¸åæ¥æ¾ç¤ºæ§ä»¶ |
| | | public ListBox scaledisplay; |
| | | #endregion |
| | | Thread trd = null; |
| | | delegate void displayresponse(string text); |
| | | int i = 1; |
| | | int scaleno = 0, portno = 0; |
| | | //int sum = 0; |
| | | main form1; |
| | | bool threadFlag = true, spFlag = true; |
| | | |
| | | public ScaleComThread(int scale, int port_no, main m) |
| | | { |
| | | scaleno = scale; |
| | | portno = port_no; |
| | | sp = new SerialPort(); |
| | | sp.PortName = "COM" + port_no.ToString(); |
| | | sp.BaudRate = 9600; |
| | | sp.DataBits = 8; |
| | | sp.Parity = Parity.None; |
| | | sp.StopBits = StopBits.One; |
| | | form1 = m; |
| | | |
| | | if (sp.IsOpen) return; |
| | | try |
| | | { |
| | | sp.Open(); |
| | | } |
| | | catch (Exception r) |
| | | { |
| | | spFlag = false; |
| | | //DisplayInfo("ã" + DateTime.Now.ToString() + "ãæå¼ä¸²å£" + portno + "失败ï¼è¯·æ£æ¥"); |
| | | //return; |
| | | } |
| | | trd = new Thread(new ThreadStart(this.ThreadTask)); |
| | | trd.IsBackground = true; |
| | | trd.Start(); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// è·åç£
秤称éééå¹¶è§£æ |
| | | /// </summary> |
| | | private void GetScaleData() |
| | | { |
| | | string s_SendString = "", s_RecStr = "", s_wt = "", s_part1 = "", s_part2 = "", s_part3 = "", s_part4 = "", s_part5 = "", s_part6 = "", s_part7 = "", s_imp = ""; |
| | | int pos = 0, pos1 = 0, pos2 = 0; |
| | | try |
| | | { |
| | | //s_SendString = "P"; |
| | | //sp.DiscardInBuffer(); |
| | | //sp.DiscardOutBuffer(); |
| | | //sp.WriteLine(s_SendString); |
| | | //Thread.Sleep(400); |
| | | s_RecStr = ""; |
| | | Common.gd_gross_wt[scaleno - 1] = 0; |
| | | s_RecStr = sp.ReadExisting(); |
| | | // DisplayInfo(s_RecStr); |
| | | if (s_RecStr.Length <= 0) |
| | | { |
| | | DisplayInfo("ã" + DateTime.Now.ToString() + "ãæªè½å¾å°ç£
ç§°ééï¼è¯·æ£æ¥"); |
| | | return; |
| | | } |
| | | if (scaleno == 1) |
| | | { |
| | | pos = s_RecStr.IndexOf("NT,"); |
| | | if (pos > 0) |
| | | { |
| | | s_RecStr = s_RecStr.Substring(pos + 3, s_RecStr.Length - pos - 3); |
| | | pos1 = s_RecStr.IndexOf("kg"); |
| | | if (pos1 > 0) |
| | | { |
| | | s_RecStr = s_RecStr.Substring(0, pos1).Trim().Replace(" ", ""); |
| | | try |
| | | { |
| | | Common.gd_gross_wt[scaleno - 1] = double.Parse(s_RecStr); |
| | | } |
| | | catch (Exception r) |
| | | { |
| | | Common.gd_gross_wt[scaleno - 1] = 0; |
| | | } |
| | | DisplayInfo("ã" + DateTime.Now.ToString() + "ãç§°éï¼" + s_RecStr + "KG"); |
| | | sp.DiscardInBuffer(); |
| | | sp.DiscardOutBuffer(); |
| | | } |
| | | else |
| | | { |
| | | Common.gd_gross_wt[scaleno - 1] = 0; |
| | | //DisplayInfo("Read Data Error!------Dateï¼" + System.DateTime.Now.ToString()); |
| | | sp.DiscardInBuffer(); |
| | | sp.DiscardOutBuffer(); |
| | | } |
| | | } |
| | | } |
| | | else if (scaleno == 2) |
| | | { |
| | | pos = s_RecStr.IndexOf("NT,"); |
| | | if (pos > 0) |
| | | { |
| | | s_RecStr = s_RecStr.Substring(pos + 3, s_RecStr.Length - pos - 3); |
| | | pos1 = s_RecStr.IndexOf("kg"); |
| | | if (pos1 > 0) |
| | | { |
| | | s_RecStr = s_RecStr.Substring(0, pos1).Trim().Replace(" ", ""); |
| | | try |
| | | { |
| | | Common.gd_gross_wt[scaleno - 1] = double.Parse(s_RecStr); |
| | | } |
| | | catch (Exception r) |
| | | { |
| | | Common.gd_gross_wt[scaleno - 1] = 0; |
| | | } |
| | | DisplayInfo("ã" + DateTime.Now.ToString() + "ãç§°éï¼" + s_RecStr + "KG"); |
| | | sp.DiscardInBuffer(); |
| | | sp.DiscardOutBuffer(); |
| | | } |
| | | else |
| | | { |
| | | Common.gd_gross_wt[scaleno - 1] = 0; |
| | | //DisplayInfo("Read Data Error!------Dateï¼" + System.DateTime.Now.ToString()); |
| | | sp.DiscardInBuffer(); |
| | | sp.DiscardOutBuffer(); |
| | | } |
| | | } |
| | | } |
| | | else if (scaleno == 3) |
| | | { |
| | | pos = s_RecStr.IndexOf("NT,"); |
| | | if (pos > 0) |
| | | { |
| | | s_RecStr = s_RecStr.Substring(pos + 3, s_RecStr.Length - pos - 3); |
| | | pos1 = s_RecStr.IndexOf("kg"); |
| | | if (pos1 > 0) |
| | | { |
| | | s_RecStr = s_RecStr.Substring(0, pos1).Trim().Replace(" ", ""); |
| | | try |
| | | { |
| | | Common.gd_gross_wt[scaleno - 1] = double.Parse(s_RecStr); |
| | | } |
| | | catch (Exception r) |
| | | { |
| | | Common.gd_gross_wt[scaleno - 1] = 0; |
| | | } |
| | | DisplayInfo("ã" + DateTime.Now.ToString() + "ãç§°éï¼" + s_RecStr + "KG"); |
| | | sp.DiscardInBuffer(); |
| | | sp.DiscardOutBuffer(); |
| | | } |
| | | else |
| | | { |
| | | Common.gd_gross_wt[scaleno - 1] = 0; |
| | | //DisplayInfo("Read Data Error!------Dateï¼" + System.DateTime.Now.ToString()); |
| | | sp.DiscardInBuffer(); |
| | | sp.DiscardOutBuffer(); |
| | | } |
| | | } |
| | | } |
| | | else if (scaleno == 4) |
| | | { |
| | | pos = s_RecStr.IndexOf("NT,"); |
| | | if (pos > 0) |
| | | { |
| | | s_RecStr = s_RecStr.Substring(pos + 3, s_RecStr.Length - pos - 3); |
| | | pos1 = s_RecStr.IndexOf("kg"); |
| | | if (pos1 > 0) |
| | | { |
| | | s_RecStr = s_RecStr.Substring(0, pos1).Trim().Replace(" ", ""); |
| | | try |
| | | { |
| | | Common.gd_gross_wt[scaleno - 1] = double.Parse(s_RecStr); |
| | | } |
| | | catch (Exception r) |
| | | { |
| | | Common.gd_gross_wt[scaleno - 1] = 0; |
| | | } |
| | | DisplayInfo("ã" + DateTime.Now.ToString() + "ãç§°éï¼" + s_RecStr + "KG"); |
| | | sp.DiscardInBuffer(); |
| | | sp.DiscardOutBuffer(); |
| | | } |
| | | else |
| | | { |
| | | Common.gd_gross_wt[scaleno - 1] = 0; |
| | | //DisplayInfo("Read Data Error!------Dateï¼" + System.DateTime.Now.ToString()); |
| | | sp.DiscardInBuffer(); |
| | | sp.DiscardOutBuffer(); |
| | | } |
| | | } |
| | | } |
| | | |
| | | |
| | | } |
| | | catch (Exception t) |
| | | { |
| | | Common.gd_gross_wt[scaleno - 1] = 0; |
| | | DisplayInfo("ã" + DateTime.Now.ToString() + "ãå¾å°ç£
秤éé失败:" + t.Message); |
| | | //DisplayInfo("æªè½å¾å°ç£
ç§°ééï¼è¯·æ£æ¥ï¼---æ¶é´ï¼" + System.DateTime.Now.ToString()); |
| | | //Thread.Sleep(400); |
| | | return; |
| | | } |
| | | |
| | | } |
| | | #region é讯åé¦åæ¥æ¾ç¤º |
| | | private void DisplayInfo(string text) |
| | | { |
| | | if (scaledisplay.InvokeRequired) |
| | | { |
| | | try |
| | | { |
| | | displayresponse d = new displayresponse(DisplayInfo); |
| | | scaledisplay.Invoke(d, new object[] { text }); |
| | | } |
| | | catch (Exception r) |
| | | { |
| | | |
| | | } |
| | | } |
| | | else |
| | | { |
| | | if (scaledisplay.Items.Count > 12) |
| | | { |
| | | scaledisplay.Items.Clear(); |
| | | } |
| | | scaledisplay.Items.Add(text); |
| | | } |
| | | |
| | | } |
| | | #endregion |
| | | private void ThreadTask() |
| | | { |
| | | while (threadFlag) |
| | | { |
| | | if (spFlag) |
| | | { |
| | | GetScaleData(); |
| | | } |
| | | else |
| | | { |
| | | DisplayInfo("ã" + DateTime.Now.ToString() + "ãæå¼ä¸²å£" + portno + "失败ï¼è¯·æ£æ¥"); |
| | | threadFlag = false; |
| | | } |
| | | Thread.Sleep(400); |
| | | |
| | | } |
| | | } |
| | | } |
| | | } |
| New file |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading; |
| | | using System.IO.Ports; |
| | | using System.Windows.Forms; |
| | | using System.Net; |
| | | using System.Net.Sockets; |
| | | |
| | | namespace WCS |
| | | { |
| | | /// <summary> |
| | | /// ç£
秤TCPéè®¯çº¿ç¨ |
| | | /// </summary> |
| | | class ScaleTcpThread |
| | | { |
| | | SerialPort sp; |
| | | #region ç»é¢ä¸åæ¥æ¾ç¤ºæ§ä»¶ |
| | | public ListBox scaledisplay; |
| | | #endregion |
| | | Thread trd = null; |
| | | delegate void displayresponse(string text); |
| | | int scaleno = 0, portno = 0; |
| | | private string scaleIp; |
| | | //int sum = 0; |
| | | |
| | | private IPEndPoint ServerInfo; |
| | | private Socket socket; |
| | | private Byte[] MsgBuffer; |
| | | private Byte[] MsgSend; |
| | | |
| | | main form1; |
| | | bool threadFlag = true, spFlag = true; |
| | | |
| | | public ScaleTcpThread(int scale_no, string scale_ip, int port, main m) |
| | | { |
| | | this.scaleno = scale_no; |
| | | this.scaleIp = scale_ip; |
| | | this.portno = port; |
| | | this.form1 = m; |
| | | |
| | | MsgBuffer = new Byte[65535]; |
| | | MsgSend = new Byte[65535]; |
| | | //sp = new SerialPort(); |
| | | //sp.PortName = "COM" + port.ToString(); |
| | | //sp.BaudRate = 9600; |
| | | //sp.DataBits = 8; |
| | | //sp.Parity = Parity.None; |
| | | //sp.StopBits = StopBits.One; |
| | | |
| | | //if (sp.IsOpen) return; |
| | | //try |
| | | //{ |
| | | // sp.Open(); |
| | | //} |
| | | //catch (Exception r) |
| | | //{ |
| | | // spFlag = false; |
| | | // //DisplayInfo("ã" + DateTime.Now.ToString() + "ãæå¼ä¸²å£" + portno + "失败ï¼è¯·æ£æ¥"); |
| | | // //return; |
| | | //} |
| | | trd = new Thread(new ThreadStart(this.ThreadTask)); |
| | | trd.IsBackground = true; |
| | | trd.Start(); |
| | | } |
| | | |
| | | #region socketè¿æ¥ |
| | | /// <summary> |
| | | /// socketè¿æ¥WMSæå¡å¨ |
| | | /// </summary> |
| | | private void SocketConnect() |
| | | { |
| | | ServerInfo = new IPEndPoint(IPAddress.Parse(scaleIp), portno); |
| | | try |
| | | { |
| | | socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); |
| | | socket.Connect(ServerInfo); |
| | | //Int32 bytes = socket.Receive(MsgBuffer, MsgBuffer.Length, SocketFlags.None); |
| | | //StringBuilder buff = new StringBuilder(); |
| | | //String receiveData = Encoding.UTF8.GetString(MsgBuffer, 0, bytes); |
| | | //socket.Send(Encoding.Unicode.GetBytes("socket connectï¼")); |
| | | //RecevieData = "s"; |
| | | //socket.BeginReceive(MsgBuffer, 0, MsgBuffer.Length, 0, new AsyncCallback(ReceiveCallBack), null); |
| | | |
| | | DisplayInfo("ã" + DateTime.Now.ToString() + "ãç£
ç§¤è¿æ¥æå"); |
| | | |
| | | } |
| | | catch (Exception em) |
| | | { |
| | | DisplayInfo("ã" + DateTime.Now.ToString() + "ãç£
ç§¤è¿æ¥å¤±è´¥ï¼" + em.Message); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// socketéæ°è¿æ¥WMSæå¡å¨ |
| | | /// </summary> |
| | | private void SocketReConnect() |
| | | { |
| | | if (socket.Connected) |
| | | { |
| | | socket.Close(); |
| | | } |
| | | Thread.Sleep(10000); |
| | | SocketConnect(); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 夿socketæ¯å¦å·²è¿æ¥ |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | private bool checkSocket() |
| | | { |
| | | bool ret = true; |
| | | bool isConnected = false; |
| | | bool isRead = false; |
| | | bool isWrite = false; |
| | | bool isError = false; |
| | | int avalSize = 0; |
| | | try |
| | | { |
| | | isConnected = socket.Connected; |
| | | isRead = socket.Poll(50, SelectMode.SelectRead); |
| | | avalSize = socket.Available; |
| | | isWrite = socket.Poll(50, SelectMode.SelectWrite); |
| | | isError = socket.Poll(50, SelectMode.SelectError); |
| | | if (isConnected == false || isError == true || (isRead == true && avalSize == 0)) |
| | | { |
| | | ret = false; |
| | | } |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | ret = false; |
| | | } |
| | | return ret; |
| | | } |
| | | #endregion |
| | | |
| | | /// <summary> |
| | | /// è·åç£
秤称éééå¹¶è§£æ |
| | | /// </summary> |
| | | private void GetScaleData() |
| | | { |
| | | //string s_SendString = "", s_RecStr = "", s_wt = "", s_part1 = "", s_part2 = "", s_part3 = "", s_part4 = "", s_part5 = "", s_part6 = "", s_part7 = "", s_imp = ""; |
| | | //int pos = 0, pos1 = 0, pos2 = 0; |
| | | string dataValue = "P", s_RecStr = ""; |
| | | double d_RecStr = 0; |
| | | try |
| | | { |
| | | if (checkSocket() == false) |
| | | { |
| | | //è°ç¨éè¿ |
| | | Common.gd_gross_wt[scaleno - 1] = 0; |
| | | DisplayInfo("ã" + DateTime.Now.ToString() + "ãç£
ç§¤è¿æ¥å·²æå¼ï¼éè¿..."); |
| | | SocketReConnect(); |
| | | return; |
| | | } |
| | | |
| | | MsgSend = Encoding.UTF8.GetBytes(dataValue); |
| | | if (socket.Connected) |
| | | { |
| | | // å主æºåéæ°æ®. |
| | | socket.Send(MsgSend, MsgSend.Length, SocketFlags.None); |
| | | //socket.Send(MsgSend); |
| | | //DisplayInfo("åéä¿¡æ¯ï¼" + dataValue); |
| | | //RecevieData = ""; |
| | | // æ¥æ¶ä¸»æºåºç |
| | | Int32 bytes = socket.Receive(MsgBuffer, MsgBuffer.Length, SocketFlags.None); |
| | | StringBuilder buff = new StringBuilder(); |
| | | if (bytes > 0) |
| | | { |
| | | // å°ç¼å²çåèæ°ç»ï¼è£
æ¢ä¸ºå符串. |
| | | // String receiveData = Encoding.ASCII.GetString(MsgBuffer, 0, bytes); |
| | | s_RecStr = Encoding.ASCII.GetString(MsgBuffer, 0, bytes); |
| | | if (s_RecStr.Length < 16) |
| | | { |
| | | Common.gd_gross_wt[scaleno - 1] = 0; |
| | | DisplayInfo("ã" + DateTime.Now.ToString() + "ãæ ç§°éæ°æ®æè
æ°æ®å¼å¸¸"); |
| | | return; |
| | | } |
| | | s_RecStr = s_RecStr.Substring(1, 7); |
| | | //for (int i = 0; i < s_RecStr.Length; i++) |
| | | //{ |
| | | // string s_nPos = s_RecStr.Substring(i, 1); |
| | | // if (Common.ChkStrtoInt(s_nPos) && i != 5) |
| | | // { |
| | | // s_wt_Str += s_nPos; |
| | | // } |
| | | // else if (i == 5) |
| | | // { |
| | | // if (s_nPos == ".") |
| | | // { |
| | | // s_wt_Str += s_nPos; |
| | | // } |
| | | // else |
| | | // { |
| | | // Common.gd_gross_wt[scaleno - 1] = 0; |
| | | // DisplayInfo("ã" + DateTime.Now.ToString() + "ãæ ç§°éæ°æ®æè
æ°æ®å¼å¸¸"); |
| | | // return; |
| | | // } |
| | | // } |
| | | //} |
| | | try |
| | | { |
| | | d_RecStr = Convert.ToDouble(s_RecStr); |
| | | Common.gd_gross_wt[scaleno - 1] = d_RecStr; |
| | | DisplayInfo("ã" + DateTime.Now.ToString() + "ã" + Common.gd_gross_wt[scaleno - 1] + " KG"); |
| | | } |
| | | catch |
| | | { |
| | | return; |
| | | } |
| | | //DisplayInfo("æ¶å°æ¶æ¯ï¼" + receiveData); |
| | | // AnalysisReceive(receiveData); //è§£ææ¶å°çæ°æ® |
| | | // å å
¥å符串ç¼å |
| | | //buff.Append(str); |
| | | // 忬¡æ¥åï¼ççåé¢è¿ææ²¡ææ°æ®. |
| | | } |
| | | } |
| | | else |
| | | { |
| | | Common.gd_gross_wt[scaleno - 1] = 0; |
| | | DisplayInfo("ã" + DateTime.Now.ToString() + "ãç£
ç§¤è¿æ¥å·²æå¼ï¼æ æ³è¯»åæ°æ®ï¼"); |
| | | } |
| | | return; |
| | | } |
| | | catch (Exception t) |
| | | { |
| | | Common.gd_gross_wt[scaleno - 1] = 0; |
| | | DisplayInfo("ã" + DateTime.Now.ToString() + "ãå¾å°ç£
秤éé失败:" + t.Message); |
| | | //DisplayInfo("æªè½å¾å°ç£
ç§°ééï¼è¯·æ£æ¥ï¼---æ¶é´ï¼" + System.DateTime.Now.ToString()); |
| | | //Thread.Sleep(400); |
| | | return; |
| | | } |
| | | |
| | | } |
| | | |
| | | #region é讯åé¦åæ¥æ¾ç¤º |
| | | private void DisplayInfo(string text) |
| | | { |
| | | if (scaledisplay.InvokeRequired) |
| | | { |
| | | try |
| | | { |
| | | displayresponse d = new displayresponse(DisplayInfo); |
| | | scaledisplay.Invoke(d, new object[] { text }); |
| | | } |
| | | catch (Exception r) |
| | | { |
| | | |
| | | } |
| | | } |
| | | else |
| | | { |
| | | if (scaledisplay.Items.Count > 12) |
| | | { |
| | | scaledisplay.Items.Clear(); |
| | | } |
| | | scaledisplay.Items.Add(text); |
| | | } |
| | | |
| | | } |
| | | #endregion |
| | | |
| | | private void ThreadTask() |
| | | { |
| | | SocketConnect(); |
| | | while (threadFlag) |
| | | { |
| | | //if (spFlag) |
| | | //{ |
| | | GetScaleData(); |
| | | //} |
| | | //else |
| | | //{ |
| | | // DisplayInfo("ã" + DateTime.Now.ToString() + "ãæå¼ä¸²å£" + portno + "失败ï¼è¯·æ£æ¥"); |
| | | // threadFlag = false; |
| | | //} |
| | | Thread.Sleep(400); |
| | | |
| | | } |
| | | } |
| | | } |
| | | } |
| New file |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading; |
| | | using DevComponents.DotNetBar.Controls; |
| | | using System.Windows.Forms; |
| | | using System.Drawing; |
| | | //using com.force.json; |
| | | using System.Data; |
| | | using System.Data.SqlClient; |
| | | |
| | | namespace WCS |
| | | { |
| | | /// <summary> |
| | | /// 忥å¤ççº¿ç¨ |
| | | /// </summary> |
| | | class UpdateThread |
| | | { |
| | | #region ç»é¢ä¸åæ¥æ¾ç¤ºæ§ä»¶ |
| | | public ListViewEx frmdata; |
| | | delegate void SetTextCallback(string seq, string Errif, string arg_string); |
| | | #endregion |
| | | |
| | | Thread trd = null; |
| | | |
| | | public UpdateThread() |
| | | { |
| | | try |
| | | { |
| | | trd = new Thread(new ThreadStart(this.ThreadTask)); |
| | | trd.IsBackground = true; |
| | | trd.Start(); |
| | | } |
| | | catch (Exception em) |
| | | { |
| | | Common.WriteLogFile("WcsError", "UpdateThread/UpdateThread--åæ¥çº¿ç¨å¯å¨åºé:" + em.Message); |
| | | } |
| | | } |
| | | |
| | | #region é讯åé¦åæ¥æ¾ç¤º |
| | | /// <summary> |
| | | /// æ¾ç¤ºå¤çä¿¡æ¯ |
| | | /// </summary> |
| | | /// <param name="text"></param> |
| | | private void DisplayInfo(string seq, string Errif, string arg_string) |
| | | { |
| | | if (frmdata == null) |
| | | { |
| | | return; |
| | | } |
| | | if (frmdata.InvokeRequired) |
| | | { |
| | | try |
| | | { |
| | | SetTextCallback d = new SetTextCallback(DisplayInfo); |
| | | frmdata.Invoke(d, new object[] { seq, Errif, arg_string }); |
| | | } |
| | | catch (Exception em) |
| | | { |
| | | Common.WriteLogFile("WcsError", "UpdateThread/DisplayInfo--åæ¥åæ¥ä¿¡æ¯å¤±è´¥:" + em.Message); |
| | | } |
| | | } |
| | | else |
| | | { |
| | | add_dw_log(seq, Errif, arg_string); |
| | | if (frmdata.Items.Count > 200) |
| | | { |
| | | frmdata.Items.Clear(); ; |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æ·»å ListViewç颿¾ç¤º |
| | | /// </summary> |
| | | /// <param name="le">listview</param> |
| | | /// <param name="seq">éè¦</param> |
| | | /// <param name="Errif">å¼å¸¸ä¿¡æ¯</param> |
| | | /// <param name="arg_string">æ¾ç¤ºå
容</param> |
| | | public void add_dw_log(string seq, string Errif, string arg_string) |
| | | { |
| | | try |
| | | { |
| | | ListViewItem lvi = new ListViewItem(); |
| | | lvi.SubItems[0].Text = "ã" + DateTime.Now.ToString() + "ã" + seq + arg_string; |
| | | if (Errif == "N") |
| | | { |
| | | lvi.ForeColor = Color.Black; |
| | | } |
| | | else if (Errif == "E") |
| | | { |
| | | lvi.ForeColor = Color.Red; |
| | | } |
| | | else if (Errif == "P") |
| | | { |
| | | lvi.ForeColor = Color.Blue; |
| | | } |
| | | frmdata.Items.Add(lvi); |
| | | frmdata.EnsureVisible(frmdata.Items.Count - 1); |
| | | } |
| | | catch (Exception em) |
| | | { |
| | | ListViewItem lvi = new ListViewItem(); |
| | | lvi.SubItems[0].Text = "ã" + DateTime.Now.ToString() + "ã" + seq + arg_string + "å¼å¸¸ï¼" + em.Message; |
| | | frmdata.Items.Add(lvi); |
| | | Common.WriteLogFile("WcsError", "UpdateThread/add_dw_log--åæ¥æ·»å ç颿¾ç¤ºåºé:" + em.Message); |
| | | } |
| | | } |
| | | #endregion |
| | | |
| | | #region ä¸å¡å¤ç |
| | | /// <summary> |
| | | /// çæåºåºå·¥ä½æ¡£ |
| | | /// </summary> |
| | | public void ProcOutToWorkData(string seq) |
| | | { |
| | | string ls_locno = ""; |
| | | string ls_error_memo = "", sql = ""; |
| | | int li_wrkno = 0, li_io_type = 0, li_stnNo = 0, li_e_stnNo = 0; |
| | | DateTime ldt_date = System.DateTime.Now; |
| | | double d_outQty = 0, d_stkQty = 0; |
| | | int action = 0, prnstatus = 0; |
| | | |
| | | DisplayInfo(seq, "N", " --å¤çåºåºéç¥æ¡£ï¼çæåºåºå·¥ä½æ¡£......"); |
| | | |
| | | try |
| | | { |
| | | //æ¥æ¾ææ©ä¸æ¡å¾
åºåºåºä½ |
| | | sql = "select top 1 vlpla from cust_wait_pakout where status<>'Y' and nltyp<>'A01' order by status,modi_time"; |
| | | DataView dvLoc = Common.ExecAsrsSelect(sql); |
| | | if (dvLoc.Count <= 0) |
| | | { |
| | | return; |
| | | } |
| | | foreach (DataRowView drow in dvLoc) |
| | | { |
| | | ls_locno = drow[0].ToString(); |
| | | } |
| | | if (ls_locno == "") |
| | | { |
| | | return; |
| | | } |
| | | |
| | | //æ¥è¯¢åºä½å·æ¯å¦å¨åºç¶æï¼å¹¶æ¥è¯¢æ¡ç å· |
| | | sql = "select loc_no,barcode from asr_loc_mast where loc_no='" + ls_locno + "' and loc_sts='F'"; |
| | | string barcode = ""; |
| | | DataView dv = Common.ExecAsrsSelect(sql); |
| | | if (dv.Count <= 0) |
| | | { |
| | | ls_error_memo = " " + seq + ".1 åºä½" + ls_locno + "ä¸å卿éå¨åºç¶æï¼è¯·æ£æ¥"; |
| | | DisplayInfo("", "E", ls_error_memo); |
| | | goto re; |
| | | } |
| | | else |
| | | { |
| | | foreach (DataRowView drow in dv) |
| | | { |
| | | barcode = drow[1].ToString(); |
| | | } |
| | | } |
| | | |
| | | //æ ¹æ®åºä½å·æ¥æ¾è¯¥åºä½ææåºåºèµæ |
| | | sql = "select lgnum,tanum,tapos,matnr,maktx,werks,vsolm,meins,bname "; |
| | | sql += " from cust_wait_pakout where status<>'Y' and nltyp<>'A01' and vlpla='" + ls_locno + "' order by status,modi_time"; |
| | | dv = Common.ExecAsrsSelect(sql); |
| | | if (dv.Count <= 0) |
| | | { |
| | | return; |
| | | } |
| | | li_wrkno = Common.GetWrkno(0); |
| | | string sqlDetl = "", sqlWaitIn = ""; |
| | | foreach (DataRowView drow in dv) |
| | | { |
| | | string lgnum = drow[0].ToString(); |
| | | string tanum = drow[1].ToString(); |
| | | string tapos = drow[2].ToString(); |
| | | string matnr = drow[3].ToString(); |
| | | string maktx = drow[4].ToString(); |
| | | string werks = drow[5].ToString(); |
| | | string vsolm = drow[6].ToString(); |
| | | string meins = drow[7].ToString(); |
| | | string bname = drow[8].ToString(); |
| | | sqlDetl += " insert into asr_wrk_detl(wrk_no,io_time,lgnum,tbnum,tbpos,matnr,maktx,werks,anfme,altme,bname,zpallet) "; |
| | | sqlDetl += " values(" + li_wrkno + ",'" + ldt_date + "','" + lgnum + "'," + tanum + "," + tapos + ", "; |
| | | sqlDetl += " '" + matnr + "','" + maktx + "','" + werks + "'," + vsolm + ",'" + meins + "','" + bname + "','" + barcode + "');"; |
| | | sqlWaitIn += " update cust_wait_pakout set status='Y' where lgnum='" + lgnum + "' and tanum=" + tanum + " and tapos=" + tapos + " and vlpla=" + ls_locno + ";"; |
| | | d_outQty += double.Parse(vsolm); |
| | | } |
| | | DisplayInfo("", "P", " " + seq + ".2 æ£å¨å¤çå¾
åºåºèµæ!åºä½:" + ls_locno); |
| | | |
| | | //æ¥è¯¢åºä½å·å¯¹åºåºåæç»æ»æ°é |
| | | sql = "select sum(anfme) from asr_loc_detl where loc_no='" + ls_locno + "' "; |
| | | dv = Common.ExecAsrsSelect(sql); |
| | | if (dv.Count <= 0) |
| | | { |
| | | ls_error_memo = " " + seq + ".3 åºä½" + ls_locno + "没æåºåæç»ï¼è¯·æ£æ¥"; |
| | | DisplayInfo("", "E", ls_error_memo); |
| | | goto re; |
| | | } |
| | | else |
| | | { |
| | | foreach (DataRowView drow in dv) |
| | | { |
| | | d_stkQty += double.Parse(drow[0].ToString()); |
| | | } |
| | | } |
| | | |
| | | int li_crnrow = int.Parse(ls_locno.Substring(0, 2)); |
| | | int li_crnno = (li_crnrow + 1) / 2; |
| | | string new_loc_sts = ""; |
| | | if (d_outQty < d_stkQty) |
| | | { |
| | | li_io_type = 103; |
| | | new_loc_sts = "P"; |
| | | li_e_stnNo = 4; |
| | | li_stnNo = Common.getIoStaNo(li_io_type, li_crnno, li_e_stnNo); |
| | | action = 2; //åç¬æå° |
| | | //prnstatus = 0; //é»è®¤çå¾
ï¼æ£æç«æ´æ° |
| | | } |
| | | else if (d_outQty == d_stkQty) |
| | | { |
| | | li_io_type = 101; |
| | | new_loc_sts = "R"; |
| | | li_e_stnNo = 13; |
| | | li_stnNo = Common.getIoStaNo(li_io_type, li_crnno, li_e_stnNo); |
| | | action = 3; //æ¢æå°å确认 |
| | | //prnstatus = 0; //é»è®¤çå¾
ï¼æ£æç«æ´æ° |
| | | } |
| | | else |
| | | { |
| | | ls_error_memo = " " + seq + ".4 åºä½" + ls_locno + "éç¥åºåºæ°éè¶
åºåºåæ°éï¼è¯·æ£æ¥"; |
| | | DisplayInfo("", "E", ls_error_memo); |
| | | goto re; |
| | | } |
| | | |
| | | sqlWaitIn = sqlWaitIn.Replace("update cust_wait_pakout set", "update cust_wait_pakout set action=" + action + ","); |
| | | |
| | | sql = sqlDetl; |
| | | sql += "insert into asr_wrk_mast(wrk_no,io_time,wrk_sts,io_type,crn_no,io_pri,source_loc_no,sta_no,source_sta_no,barcode) "; |
| | | sql += " values(" + li_wrkno + ",'" + ldt_date + "',11," + li_io_type + "," + li_crnno + ",13,'" + ls_locno + "', "; |
| | | sql += " " + li_e_stnNo + "," + li_stnNo + ",'" + barcode + "'); "; |
| | | sql += " update asr_loc_mast set loc_sts='" + new_loc_sts + "' where loc_no='" + ls_locno + "'; "; |
| | | sql += sqlWaitIn; |
| | | SqlConnection sqlconn = new SqlConnection(Common.sqlcon); |
| | | sqlconn.Open(); |
| | | SqlTransaction sqltrans = sqlconn.BeginTransaction(); |
| | | SqlCommand sqlcmd = new SqlCommand(sql, sqlconn); |
| | | sqlcmd.Transaction = sqltrans; |
| | | try |
| | | { |
| | | sqlcmd.ExecuteNonQuery(); |
| | | sqltrans.Commit(); |
| | | } |
| | | catch (SqlException t) |
| | | { |
| | | sqltrans.Rollback(); |
| | | //sqlcommon.Close(); |
| | | ls_error_memo = " " + seq + ".4 æå
¥å·¥ä½ä¸»æ¡£[asr_wrk_mast]é误 !åºä½:" + ls_locno + " å¼å¸¸:" + t.Message; |
| | | DisplayInfo("", "E", ls_error_memo); |
| | | goto re; |
| | | } |
| | | finally |
| | | { |
| | | sqlcmd.Dispose(); |
| | | sqlconn.Dispose(); |
| | | } |
| | | return; |
| | | |
| | | re: |
| | | sql = "update cust_wait_pakout set status='X',action=" + action + ",modi_time='" + ldt_date + "' where vlpla='" + ls_locno + "'"; |
| | | bool result = Common.ExecAsrsModify(sql); |
| | | if (!result) |
| | | { |
| | | ls_error_memo = " " + seq + ".5 æ´æ°åºåºæ¡£å¤±è´¥!åºä½ï¼" + ls_locno; |
| | | DisplayInfo("", "E", ls_error_memo); |
| | | } |
| | | } |
| | | catch (Exception em) |
| | | { |
| | | ls_error_memo = " " + seq + ".6 å¤çå¾
å¤çæ¡£çæåºåºå·¥ä½æ¡£å¤±è´¥ï¼" + em.Message; |
| | | DisplayInfo("", "E", ls_error_memo); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// çæåºä½è°æ´å·¥ä½æ¡£ |
| | | /// </summary> |
| | | public void ProcLocToWorkData(string seq) |
| | | { |
| | | string ls_slocno = "", ls_dlocno = ""; |
| | | string ls_error_memo = "", sql = ""; |
| | | int li_wrkno = 0, li_io_type = 0, li_stnNo = 0, li_e_stnNo = 0; |
| | | DateTime ldt_date = System.DateTime.Now; |
| | | double d_outQty = 0, d_stkQty = 0; |
| | | |
| | | DisplayInfo(seq, "N", " --å¤çåºåºéç¥æ¡£ï¼çæåºåºå·¥ä½æ¡£......"); |
| | | |
| | | try |
| | | { |
| | | //æ¥æ¾ææ©ä¸æ¡å¾
åºåºåºä½ |
| | | sql = "select top 1 vlpla,nlpla from cust_wait_pakout where status<>'Y' and nltyp='A01' order by status,modi_time"; |
| | | DataView dvLoc = Common.ExecAsrsSelect(sql); |
| | | if (dvLoc.Count <= 0) |
| | | { |
| | | return; |
| | | } |
| | | foreach (DataRowView drow in dvLoc) |
| | | { |
| | | ls_slocno = drow[0].ToString(); |
| | | ls_dlocno = drow[1].ToString(); |
| | | } |
| | | if (ls_slocno == "" || ls_dlocno=="") |
| | | { |
| | | ls_error_memo = " " + seq + ".1 åºåºéç¥æ¡£æºåºä½ä¸ºç©º[cust_wait_pakout]é误 !åºä½:" + ls_slocno; |
| | | DisplayInfo("", "E", ls_error_memo); |
| | | goto re; |
| | | } |
| | | |
| | | //æ¥è¯¢ç®æ åºä½ç¶æï¼å¦æä¸ºç©ºè¡¨ç¤ºåºä½å·²è½¬ï¼å¦æå¨åºè¡¨ç¤ºæºåºä½åºåºï¼ç®æ åºä½å¹¶æ¿ï¼å¦æä¸å¨åºï¼åæ¥è¦åæ¢æ§è¡ |
| | | string loc_sts = "", barcoded = ""; |
| | | sql = "select loc_sts,barcode from asr_loc_mast where loc_no='" + ls_dlocno + "' "; |
| | | DataView dv = Common.ExecAsrsSelect(sql); |
| | | if (dv.Count <= 0) |
| | | { |
| | | ls_error_memo = " " + seq + ".2 ç®æ åºä½" + ls_dlocno + "ä¸åå¨ï¼è¯·æ£æ¥"; |
| | | DisplayInfo("", "E", ls_error_memo); |
| | | goto re; |
| | | } |
| | | else |
| | | { |
| | | foreach (DataRowView drow in dv) |
| | | { |
| | | loc_sts = drow[0].ToString(); |
| | | barcoded = drow[1].ToString(); |
| | | } |
| | | } |
| | | |
| | | if (loc_sts == "O") |
| | | { //åºä½ç§»è½¬ |
| | | sql = "select lgnum,tbnum,tbpos,matnr,maktx,werks,anfme,altme,bname "; |
| | | sql += " from asr_loc_detl where loc_no='" + ls_slocno + "' order by matnr,modi_time"; |
| | | dv = Common.ExecAsrsSelect(sql); |
| | | if (dv.Count <= 0) |
| | | { |
| | | return; |
| | | } |
| | | li_wrkno = Common.GetWrkno(0); |
| | | string sqlDetl = "", sqlWaitIn = ""; |
| | | foreach (DataRowView drow in dv) |
| | | { |
| | | string lgnum = drow[0].ToString(); |
| | | string tanum = drow[1].ToString(); |
| | | string tapos = drow[2].ToString(); |
| | | string matnr = drow[3].ToString(); |
| | | string maktx = drow[4].ToString(); |
| | | string werks = drow[5].ToString(); |
| | | string vsolm = drow[6].ToString(); |
| | | string meins = drow[7].ToString(); |
| | | string bname = drow[8].ToString(); |
| | | sqlDetl += " insert into asr_wrk_detl(wrk_no,io_time,lgnum,tbnum,tbpos,matnr,maktx,werks,anfme,altme,bname) "; |
| | | sqlDetl += " values(" + li_wrkno + ",'" + ldt_date + "','" + lgnum + "'," + tanum + "," + tapos + ", "; |
| | | sqlDetl += " '" + matnr + "','" + maktx + "','" + werks + "'," + vsolm + ",'" + meins + "','" + bname + "');"; |
| | | sqlWaitIn += " update cust_wait_pakout set status='Y' where nltyp='A01' and vlpla='" + ls_slocno + "' and nlpla='" + ls_dlocno + "';"; |
| | | } |
| | | DisplayInfo("", "P", " " + seq + ".3 æ£å¨å¤çå¾
åºåºèµæ!åºä½:" + ls_slocno); |
| | | |
| | | //æ¥è¯¢åºä½å·æ¯å¦å¨åºç¶æï¼å¹¶æ¥è¯¢æ¡ç å· |
| | | sql = "select loc_no,barcode from asr_loc_mast where loc_no='" + ls_slocno + "' and loc_sts='F'"; |
| | | string barcode = ""; |
| | | dv = Common.ExecAsrsSelect(sql); |
| | | if (dv.Count <= 0) |
| | | { |
| | | ls_error_memo = " " + seq + ".4 æºåºä½" + ls_slocno + "ä¸å卿éå¨åºç¶æï¼è¯·æ£æ¥"; |
| | | DisplayInfo("", "E", ls_error_memo); |
| | | goto re; |
| | | } |
| | | else |
| | | { |
| | | foreach (DataRowView drow in dv) |
| | | { |
| | | barcode = drow[1].ToString(); |
| | | } |
| | | } |
| | | int li_crnrow = int.Parse(ls_slocno.Substring(0, 2)); |
| | | int li_crnno = (li_crnrow + 1) / 2; |
| | | li_io_type = 11; |
| | | |
| | | sql = sqlDetl; |
| | | sql += "insert into asr_wrk_mast(wrk_no,io_time,wrk_sts,io_type,crn_no,io_pri,source_loc_no,loc_no,barcode,empty_mk) "; |
| | | sql += " values(" + li_wrkno + ",'" + ldt_date + "',11," + li_io_type + "," + li_crnno + ",13,'" + ls_slocno + "', "; |
| | | sql += " '" + ls_dlocno + "','" + barcode + "','N'); "; |
| | | sql += " update asr_loc_mast set loc_sts='R' where loc_no='" + ls_slocno + "'; "; |
| | | sql += " update asr_loc_mast set loc_sts='S' where loc_no='" + ls_dlocno + "'; "; |
| | | sql += sqlWaitIn; |
| | | SqlConnection sqlconn = new SqlConnection(Common.sqlcon); |
| | | sqlconn.Open(); |
| | | SqlTransaction sqltrans = sqlconn.BeginTransaction(); |
| | | SqlCommand sqlcmd = new SqlCommand(sql, sqlconn); |
| | | sqlcmd.Transaction = sqltrans; |
| | | try |
| | | { |
| | | sqlcmd.ExecuteNonQuery(); |
| | | sqltrans.Commit(); |
| | | } |
| | | catch (SqlException t) |
| | | { |
| | | sqltrans.Rollback(); |
| | | //sqlcommon.Close(); |
| | | ls_error_memo = " " + seq + ".5 æå
¥å·¥ä½ä¸»æ¡£[asr_wrk_mast]é误 !åºä½:" + ls_slocno + " å¼å¸¸:" + t.Message; |
| | | DisplayInfo("", "E", ls_error_memo); |
| | | goto re; |
| | | } |
| | | finally |
| | | { |
| | | sqlcmd.Dispose(); |
| | | sqlconn.Dispose(); |
| | | } |
| | | } |
| | | else if (loc_sts == "F") |
| | | {//ç®æ åºä½å¹¶æ¿ |
| | | //æºåºä½åºåº |
| | | string sqlDetld = ""; |
| | | int li_wrknod = 0; |
| | | int action = 0; |
| | | sql = "select lgnum,tanum,tapos,matnr,maktx,werks,vsolm,meins,bname "; |
| | | sql += " from cust_wait_pakout where status<>'Y' and nltyp='A01' and vlpla='" + ls_slocno + "' and nlpla='" + ls_dlocno + "' order by status,modi_time"; |
| | | dv = Common.ExecAsrsSelect(sql); |
| | | if (dv.Count <= 0) |
| | | { |
| | | return; |
| | | } |
| | | li_wrkno = Common.GetWrkno(0); |
| | | li_wrknod = Common.GetWrkno(0); |
| | | string sqlDetl = "", sqlWaitIn = ""; |
| | | foreach (DataRowView drow in dv) |
| | | { |
| | | string lgnum = drow[0].ToString(); |
| | | string tanum = drow[1].ToString(); |
| | | string tapos = drow[2].ToString(); |
| | | string matnr = drow[3].ToString(); |
| | | string maktx = drow[4].ToString(); |
| | | string werks = drow[5].ToString(); |
| | | string vsolm = drow[6].ToString(); |
| | | string meins = drow[7].ToString(); |
| | | string bname = drow[8].ToString(); |
| | | sqlDetl += " insert into asr_wrk_detl(wrk_no,io_time,lgnum,tbnum,tbpos,matnr,maktx,werks,anfme,altme,bname) "; |
| | | sqlDetl += " values(" + li_wrkno + ",'" + ldt_date + "','" + lgnum + "'," + tanum + "," + tapos + ", "; |
| | | sqlDetl += " '" + matnr + "','" + maktx + "','" + werks + "'," + vsolm + ",'" + meins + "','" + bname + "');"; |
| | | |
| | | sqlDetld += " insert into asr_wrk_detl(wrk_no,io_time,lgnum,tbnum,tbpos,matnr,maktx,werks,anfme,altme,bname) "; |
| | | sqlDetld += " values(" + li_wrknod + ",'" + ldt_date + "','" + lgnum + "'," + tanum + "," + tapos + ", "; |
| | | sqlDetld += " '" + matnr + "','" + maktx + "','" + werks + "'," + vsolm + ",'" + meins + "','" + bname + "');"; |
| | | |
| | | sqlWaitIn += " update cust_wait_pakout set status='Y' where lgnum='" + lgnum + "' and tanum=" + tanum + " and tapos=" + tapos + " and vlpla=" + ls_slocno + ";"; |
| | | d_outQty += double.Parse(vsolm); |
| | | } |
| | | DisplayInfo("", "P", " " + seq + ".6 æ£å¨å¤çå¾
åºåºèµæ!åºä½:" + ls_slocno); |
| | | |
| | | //æ¥è¯¢åºä½å·æ¯å¦å¨åºç¶æï¼å¹¶æ¥è¯¢æ¡ç å· |
| | | sql = "select loc_no,barcode from asr_loc_mast where loc_no='" + ls_slocno + "' and loc_sts='F'"; |
| | | string barcode = ""; |
| | | dv = Common.ExecAsrsSelect(sql); |
| | | if (dv.Count <= 0) |
| | | { |
| | | ls_error_memo = " " + seq + ".7 æºåºä½" + ls_slocno + "ä¸å卿éå¨åºç¶æï¼è¯·æ£æ¥"; |
| | | DisplayInfo("", "E", ls_error_memo); |
| | | goto re; |
| | | } |
| | | else |
| | | { |
| | | foreach (DataRowView drow in dv) |
| | | { |
| | | barcode = drow[1].ToString(); |
| | | } |
| | | } |
| | | |
| | | //æ¥è¯¢åºä½å·å¯¹åºåºåæç»æ»æ°é |
| | | sql = "select sum(anfme) from asr_loc_detl where loc_no='" + ls_slocno + "' "; |
| | | dv = Common.ExecAsrsSelect(sql); |
| | | if (dv.Count <= 0) |
| | | { |
| | | ls_error_memo = " " + seq + ".8 åºä½" + ls_slocno + "没æåºåæç»ï¼è¯·æ£æ¥"; |
| | | DisplayInfo("", "E", ls_error_memo); |
| | | goto re; |
| | | } |
| | | else |
| | | { |
| | | foreach (DataRowView drow in dv) |
| | | { |
| | | d_stkQty += double.Parse(drow[0].ToString()); |
| | | } |
| | | } |
| | | |
| | | int li_crnrow = int.Parse(ls_slocno.Substring(0, 2)); |
| | | int li_crnno = (li_crnrow + 1) / 2; |
| | | string new_loc_sts = ""; |
| | | if (d_outQty < d_stkQty) |
| | | { |
| | | li_io_type = 103; |
| | | new_loc_sts = "P"; |
| | | li_e_stnNo = 4; |
| | | li_stnNo = Common.getIoStaNo(li_io_type, li_crnno, li_e_stnNo); |
| | | action = 2; |
| | | } |
| | | else if (d_outQty == d_stkQty) |
| | | { |
| | | li_io_type = 101; |
| | | new_loc_sts = "R"; |
| | | li_e_stnNo = 13; |
| | | li_stnNo = Common.getIoStaNo(li_io_type, li_crnno, li_e_stnNo); |
| | | action = 3; |
| | | } |
| | | else |
| | | { |
| | | ls_error_memo = " " + seq + ".9 åºä½" + ls_slocno + "éç¥åºåºæ°éè¶
åºåºåæ°éï¼è¯·æ£æ¥"; |
| | | DisplayInfo("", "E", ls_error_memo); |
| | | goto re; |
| | | } |
| | | |
| | | int li_crnrowd = int.Parse(ls_dlocno.Substring(0, 2)); |
| | | int li_crnnod = (li_crnrowd + 1) / 2; |
| | | int li_io_typed = 104; |
| | | int li_e_stnNod = 4; |
| | | int li_stnNod = Common.getIoStaNo(li_io_typed, li_crnnod, li_e_stnNod); |
| | | |
| | | sqlWaitIn = sqlWaitIn.Replace("update cust_wait_pakout set", "update cust_wait_pakout set action=" + action + ","); |
| | | |
| | | sql = sqlDetl; |
| | | sql += "insert into asr_wrk_mast(wrk_no,io_time,wrk_sts,io_type,crn_no,io_pri,source_loc_no,sta_no,source_sta_no,barcode) "; |
| | | sql += " values(" + li_wrkno + ",'" + ldt_date + "',11," + li_io_type + "," + li_crnno + ",13,'" + ls_slocno + "', "; |
| | | sql += " " + li_e_stnNo + "," + li_stnNo + ",'" + barcode + "'); "; |
| | | sql += sqlDetld; |
| | | sql += "insert into asr_wrk_mast(wrk_no,io_time,wrk_sts,io_type,crn_no,io_pri,source_loc_no,sta_no,source_sta_no,barcode) "; |
| | | sql += " values(" + li_wrknod + ",'" + ldt_date + "',11," + li_io_typed + "," + li_crnnod + ",13,'" + ls_dlocno + "', "; |
| | | sql += " " + li_e_stnNod + "," + li_stnNod + ",'" + barcoded + "'); "; |
| | | sql += " update asr_loc_mast set loc_sts='" + new_loc_sts + "' where loc_no='" + ls_slocno + "'; "; |
| | | sql += " update asr_loc_mast set loc_sts='P' where loc_no='" + ls_dlocno + "'; "; |
| | | sql += sqlWaitIn; |
| | | SqlConnection sqlconn = new SqlConnection(Common.sqlcon); |
| | | sqlconn.Open(); |
| | | SqlTransaction sqltrans = sqlconn.BeginTransaction(); |
| | | SqlCommand sqlcmd = new SqlCommand(sql, sqlconn); |
| | | sqlcmd.Transaction = sqltrans; |
| | | try |
| | | { |
| | | sqlcmd.ExecuteNonQuery(); |
| | | sqltrans.Commit(); |
| | | } |
| | | catch (SqlException t) |
| | | { |
| | | sqltrans.Rollback(); |
| | | //sqlcommon.Close(); |
| | | ls_error_memo = " " + seq + ".10 æå
¥å·¥ä½ä¸»æ¡£[asr_wrk_mast]é误 !åºä½:" + ls_slocno + " å¼å¸¸:" + t.Message; |
| | | DisplayInfo("", "E", ls_error_memo); |
| | | goto re; |
| | | } |
| | | finally |
| | | { |
| | | sqlcmd.Dispose(); |
| | | sqlconn.Dispose(); |
| | | } |
| | | } |
| | | else |
| | | { |
| | | ls_error_memo = " " + seq + ".11 ç®æ åºä½" + ls_dlocno + "䏿¯å¨åºæç©ºåºä½ç¶æï¼è¯·æ£æ¥"; |
| | | DisplayInfo("", "E", ls_error_memo); |
| | | goto re; |
| | | } |
| | | return; |
| | | |
| | | re: |
| | | sql = "update cust_wait_pakout set status='X',modi_time='" + ldt_date + "' where vlpla='" + ls_slocno + "'"; |
| | | bool result = Common.ExecAsrsModify(sql); |
| | | if (!result) |
| | | { |
| | | ls_error_memo = " " + seq + ".12 æ´æ°åºåºæ¡£å¤±è´¥!åºä½ï¼" + ls_slocno; |
| | | DisplayInfo("", "E", ls_error_memo); |
| | | } |
| | | } |
| | | catch (Exception em) |
| | | { |
| | | ls_error_memo = " " + seq + ".13 å¤çå¾
å¤çæ¡£çæåºåºå·¥ä½æ¡£å¤±è´¥ï¼" + em.Message; |
| | | DisplayInfo("", "E", ls_error_memo); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// çæçç¹å·¥ä½æ¡£ |
| | | /// </summary> |
| | | public void ProcCheckToWorkData(string seq) |
| | | { |
| | | string ls_locno = ""; |
| | | string ls_error_memo = "", sql = ""; |
| | | int li_wrkno = 0, li_io_type = 0, li_stnNo = 0, li_e_stnNo = 0; |
| | | DateTime ldt_date = System.DateTime.Now; |
| | | int type = 1; |
| | | |
| | | DisplayInfo(seq, "N", " --å¤ççç¹éç¥æ¡£ï¼çæçç¹å·¥ä½æ¡£......"); |
| | | |
| | | try |
| | | { |
| | | //æ¥æ¾ææ©ä¸æ¡å¾
åºåºåºä½ |
| | | sql = "select top 1 lgpla from cust_wait_check where status<>'Y' order by status,modi_time"; |
| | | DataView dvLoc = Common.ExecAsrsSelect(sql); |
| | | if (dvLoc.Count <= 0) |
| | | { |
| | | return; |
| | | } |
| | | foreach (DataRowView drow in dvLoc) |
| | | { |
| | | ls_locno = drow[0].ToString(); |
| | | } |
| | | if (ls_locno == "") |
| | | { |
| | | return; |
| | | } |
| | | |
| | | //æ¥è¯¢åºä½å·æ¯å¦å¨åºç¶æï¼å¹¶æ¥è¯¢æ¡ç å· |
| | | sql = "select loc_no,barcode from asr_loc_mast where loc_no='" + ls_locno + "' and loc_sts='F'"; |
| | | string barcode = ""; |
| | | DataView dv = Common.ExecAsrsSelect(sql); |
| | | if (dv.Count <= 0) |
| | | { |
| | | ls_error_memo = " " + seq + ".2 åºä½" + ls_locno + "ä¸å卿éå¨åºç¶æï¼è¯·æ£æ¥"; |
| | | DisplayInfo("", "E", ls_error_memo); |
| | | goto re; |
| | | } |
| | | else |
| | | { |
| | | foreach (DataRowView drow in dv) |
| | | { |
| | | barcode = drow[1].ToString(); |
| | | } |
| | | } |
| | | |
| | | //æ ¹æ®åºä½å·æ¥æ¾è¯¥åºä½ææåºåºèµæ |
| | | sql = "select a.lgnum,a.ivnum,a.ivpos,b.matnr,b.maktx,b.altme,b.werks "; |
| | | sql += " from cust_wait_check a, asr_loc_detl b "; |
| | | sql += " where a.status<>'Y' and a.lgpla='" + ls_locno + "' and a.matnr=b.matnr and lgpla=b.loc_no and io_status='N'"; |
| | | sql += " order by a.status,a.modi_time"; |
| | | dv = Common.ExecAsrsSelect(sql); |
| | | if (dv == null || dv.Count <= 0) |
| | | { |
| | | sql = "select b.lgnum,b.tbnum,b.tbpos,b.matnr,b.maktx,b.altme,b.werks "; |
| | | sql += " from cust_wait_check a, asr_loc_detl b "; |
| | | sql += " where a.status<>'Y' and a.lgpla='" + ls_locno + "' and a.lgpla=b.loc_no and io_status='N'"; |
| | | sql += " order by a.status,a.modi_time"; |
| | | dv = Common.ExecAsrsSelect(sql); |
| | | if (dv == null || dv.Count <= 0) |
| | | { |
| | | ls_error_memo = " " + seq + ".3 æ¥è¯¢åºåæç»[asr_loc_detl]没æ !åºä½:" + ls_locno; |
| | | DisplayInfo("", "E", ls_error_memo); |
| | | goto re; |
| | | } |
| | | type = 2; |
| | | //return; |
| | | } |
| | | li_wrkno = Common.GetWrkno(0); |
| | | string sqlDetl = "", sqlWaitIn = ""; |
| | | foreach (DataRowView drow in dv) |
| | | { |
| | | string lgnum = drow[0].ToString(); |
| | | string tanum = drow[1].ToString(); |
| | | string tapos = drow[2].ToString(); |
| | | string matnr = drow[3].ToString(); |
| | | string maktx = drow[4].ToString(); |
| | | string altme = drow[5].ToString(); |
| | | string werks = drow[6].ToString(); |
| | | sqlDetl += " insert into asr_wrk_detl(wrk_no,io_time,lgnum,tbnum,tbpos,matnr,maktx,altme,werks,zpallet) "; |
| | | sqlDetl += " values(" + li_wrkno + ",'" + ldt_date + "','" + lgnum + "'," + tanum + "," + tapos + ", "; |
| | | sqlDetl += " '" + matnr + "','" + maktx + "','" + altme + "','" + werks + "','" + barcode + "');"; |
| | | if (type == 1) |
| | | { |
| | | sqlWaitIn += " update cust_wait_check set status='Y' where lgnum='" + lgnum + "' and ivnum=" + tanum + " and ivpos=" + tapos + ";"; |
| | | } |
| | | else |
| | | { |
| | | sqlWaitIn += " update cust_wait_check set status='Y' where lgpla='" + ls_locno + "';"; |
| | | } |
| | | } |
| | | DisplayInfo("", "P", " " + seq + ".1 æ£å¨å¤çå¾
çç¹èµæ!åºä½:" + ls_locno); |
| | | |
| | | int li_crnrow = int.Parse(ls_locno.Substring(0, 2)); |
| | | int li_crnno = (li_crnrow + 1) / 2; |
| | | li_io_type = 107; |
| | | li_e_stnNo = 4; |
| | | li_stnNo = Common.getIoStaNo(li_io_type, li_crnno, li_e_stnNo); |
| | | |
| | | sql = sqlDetl; |
| | | sql += "insert into asr_wrk_mast(wrk_no,io_time,wrk_sts,io_type,crn_no,io_pri,source_loc_no,sta_no,source_sta_no,barcode) "; |
| | | sql += " values(" + li_wrkno + ",'" + ldt_date + "',11," + li_io_type + "," + li_crnno + ",13,'" + ls_locno + "', "; |
| | | sql += " " + li_e_stnNo + "," + li_stnNo + ",'" + barcode + "'); "; |
| | | sql += " update asr_loc_mast set loc_sts='P' where loc_no='" + ls_locno + "'; "; |
| | | sql += sqlWaitIn; |
| | | SqlConnection sqlconn = new SqlConnection(Common.sqlcon); |
| | | sqlconn.Open(); |
| | | SqlTransaction sqltrans = sqlconn.BeginTransaction(); |
| | | SqlCommand sqlcmd = new SqlCommand(sql, sqlconn); |
| | | sqlcmd.Transaction = sqltrans; |
| | | try |
| | | { |
| | | sqlcmd.ExecuteNonQuery(); |
| | | sqltrans.Commit(); |
| | | } |
| | | catch (SqlException t) |
| | | { |
| | | sqltrans.Rollback(); |
| | | //sqlcommon.Close(); |
| | | ls_error_memo = " " + seq + ".3 æå
¥å·¥ä½ä¸»æ¡£[asr_wrk_mast]é误 !åºä½:" + ls_locno + " å¼å¸¸:" + t.Message; |
| | | DisplayInfo("", "E", ls_error_memo); |
| | | goto re; |
| | | } |
| | | finally |
| | | { |
| | | sqlcmd.Dispose(); |
| | | sqlconn.Dispose(); |
| | | } |
| | | return; |
| | | |
| | | re: |
| | | sql = "update cust_wait_check set status='X',modi_time='" + ldt_date + "' where lgpla='" + ls_locno + "'"; |
| | | bool result = Common.ExecAsrsModify(sql); |
| | | if (!result) |
| | | { |
| | | ls_error_memo = " " + seq + ".4 æ´æ°çç¹æ¡£å¤±è´¥!åºä½ï¼" + ls_locno; |
| | | DisplayInfo("", "E", ls_error_memo); |
| | | } |
| | | } |
| | | catch (Exception em) |
| | | { |
| | | ls_error_memo = " " + seq + ".5 å¤ççç¹éç¥æ¡£çæçç¹å·¥ä½æ¡£å¤±è´¥ï¼" + em.Message; |
| | | DisplayInfo("", "E", ls_error_memo); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// å¤ç工使¡£ä¸å·¥ä½ç¶æä¸º4å14ã6çèµæï¼æ´æ°åºåæ¡£ãå¾
å¤çæ¡£ |
| | | /// </summary> |
| | | public void ProcWorkMast(string seq) |
| | | { |
| | | string ls_error_memo = "", sql = "", ls_barcode = ""; |
| | | int li_wrk_no = 0, li_wrk_sts = 0, li_io_type = 0, li_sta_no = 0, li_source_sta_no = 0;//, li_wrk_model = 1; |
| | | string ls_loc_no = "", ls_source_loc_no = "";//, ls_wmsId = "", ls_boxId = ""; |
| | | DateTime ldt_date = System.DateTime.Now, ldt_io_time; |
| | | string ls_sheet_no = "", ls_empty_mk = "", ls_full_mk = "", ls_online_yn = ""; |
| | | int li_io_pri = 0, li_whs_type; |
| | | DisplayInfo(seq, "N", "--å¤ç工使¡£ (status=4,14)......"); |
| | | try |
| | | { |
| | | try |
| | | { |
| | | DataView dv = Common.ExecAsrsSelect("select getdate() from sys_dual"); |
| | | foreach (System.Data.DataRowView drow in dv) |
| | | { |
| | | ldt_date = Convert.ToDateTime(drow[0]); |
| | | } |
| | | } |
| | | catch (SqlException) |
| | | { |
| | | return; |
| | | } |
| | | sql = "select wrk_no,sheet_no,wrk_sts,io_type,io_pri,empty_mk," + |
| | | " io_time,loc_no,sta_no,source_sta_no,source_loc_no,whs_type,online_yn,barcode" + |
| | | " from dbo.asr_wrk_mast where ((wrk_sts = 4 Or wrk_sts = 14 ) and io_type <> 103 and io_type <> 104 and io_type <> 107 ) or (wrk_sts = 2 and io_type=6)" + |
| | | " order by upd_mk,io_time,wrk_no"; |
| | | DataView dv_wrkmast = Common.ExecAsrsSelect(sql); |
| | | if (dv_wrkmast == null || dv_wrkmast.Count < 1) |
| | | { |
| | | DisplayInfo("", "N", " " + seq + ".1 工使¡£ [asr_wrk_mast] 没æèµæ!"); |
| | | return; |
| | | } |
| | | foreach (DataRowView drow_wrkmast in dv_wrkmast) |
| | | { |
| | | li_wrk_no = Convert.ToInt32(drow_wrkmast[0]); |
| | | ls_sheet_no = drow_wrkmast[1].ToString(); |
| | | li_wrk_sts = Convert.ToInt32(drow_wrkmast[2]); |
| | | li_io_type = Convert.ToInt32(drow_wrkmast[3]); |
| | | li_io_pri = Convert.ToInt32(drow_wrkmast[4]); |
| | | ls_empty_mk = drow_wrkmast[5].ToString(); |
| | | ldt_io_time = Convert.ToDateTime(drow_wrkmast[6]); |
| | | ls_loc_no = drow_wrkmast[7].ToString(); |
| | | li_sta_no = Convert.ToInt32(drow_wrkmast[8]); |
| | | li_source_sta_no = Convert.ToInt32(drow_wrkmast[9]); |
| | | ls_source_loc_no = drow_wrkmast[10].ToString(); |
| | | //li_whs_type = Convert.ToInt32(drow_wrkmast[11]); |
| | | //ls_full_mk = drow_wrkmast[12].ToString(); |
| | | ls_online_yn = drow_wrkmast[12].ToString(); |
| | | ls_barcode = drow_wrkmast[13].ToString(); |
| | | |
| | | DisplayInfo("", "P", " " + seq + ".2 å¤ç工使¡£:" + li_wrk_no.ToString()); |
| | | SqlConnection sqlconn = new SqlConnection(Common.sqlcon); |
| | | sqlconn.Open(); |
| | | SqlTransaction sqltrans = sqlconn.BeginTransaction(); |
| | | if (li_wrk_sts == 4) |
| | | { |
| | | switch (li_io_type) |
| | | { |
| | | #region 空æçå
¥åº |
| | | case 10: |
| | | sql = "update asr_loc_mast set loc_sts='D',io_time='" + ldt_date + "',modi_time='" + ldt_date + "'"; |
| | | sql += " where loc_no='" + ls_loc_no + "' and (loc_sts = 'S' Or loc_sts = 'Q')"; |
| | | SqlCommand cmd_10 = new SqlCommand(sql, sqlconn); |
| | | cmd_10.Transaction = sqltrans; |
| | | try |
| | | { |
| | | cmd_10.ExecuteNonQuery(); |
| | | } |
| | | catch (SqlException t) |
| | | { |
| | | sqltrans.Rollback(); |
| | | cmd_10.Dispose(); |
| | | sqlconn.Dispose(); |
| | | ls_error_memo = " " + seq + ".3 å
¥åºï¼æ´æ°åºä½ç¶æå¼å¸¸ [asr_loc_mast] !å·¥ä½å·:" + li_wrk_no.ToString() + " åºä½å·:" + ls_loc_no + " å¼å¸¸:" + t.Message; |
| | | DisplayInfo("", "E", ls_error_memo); |
| | | goto re; |
| | | } |
| | | break; |
| | | #endregion |
| | | #region å
¨æ¿å
¥åº |
| | | case 1: |
| | | ///æ£æ¥åºåæç»æ¡£æ¯å¦å·²å卿°æ® |
| | | int li_count1 = 0; |
| | | sql = ""; |
| | | try |
| | | { |
| | | li_count1 = Common.ExecAsrsSelect1("select count(*) from asr_loc_detl where loc_no ='" + ls_loc_no + "'"); |
| | | |
| | | } |
| | | catch (Exception em) |
| | | { |
| | | ls_error_memo = " " + seq + ".4 æ¥è¯¢åºåæç»[asr_loc_detl]åºé!å·¥ä½å·:" + li_wrk_no.ToString() + "!" + em.Message; |
| | | DisplayInfo("", "E", ls_error_memo); |
| | | goto re; |
| | | } |
| | | |
| | | ///æ ¹æ®å·¥ä½å·ï¼æ¥è¯¢å·¥ä½æç»æ¡£ç©æç¼ç |
| | | string sqlDetl = ""; |
| | | string sqlWaitIn = ""; |
| | | sql = "select lgnum,tbnum,tbpos,zmatid,matnr,maktx,werks,anfme,altme,zpallet,bname from asr_wrk_detl where wrk_no=" + li_wrk_no; |
| | | DataView dv_wrkdetl = Common.ExecAsrsSelect(sql); |
| | | if (dv_wrkdetl == null || dv_wrkdetl.Count < 1) |
| | | { |
| | | DisplayInfo("", "E", " " + seq + ".5 å·¥ä½æç»æ¡£ [asr_wrk_detl] 没æèµæ!"); |
| | | return; |
| | | } |
| | | foreach (DataRowView drow in dv_wrkdetl) |
| | | { |
| | | string lgnum = "", tbnum = "", tbpos = "", zmatid = "", matnr = "", maktx = "", werks = "", anfme = "", altme = "", zpallet = "", bname = ""; |
| | | lgnum = drow[0].ToString(); |
| | | tbnum = drow[1].ToString(); |
| | | tbpos = drow[2].ToString(); |
| | | zmatid = drow[3].ToString(); |
| | | matnr = drow[4].ToString(); |
| | | maktx = drow[5].ToString(); |
| | | werks = drow[6].ToString(); |
| | | anfme = drow[7].ToString(); |
| | | altme = drow[8].ToString(); |
| | | zpallet = drow[9].ToString(); |
| | | bname = drow[10].ToString(); |
| | | |
| | | string sqlLocDetl = "select anfme from asr_loc_detl where loc_no='" + ls_loc_no + "' and matnr='" + matnr + "'"; |
| | | DataView dvLocDetl = Common.ExecAsrsSelect(sqlLocDetl); |
| | | if (dvLocDetl != null) |
| | | { |
| | | if (dvLocDetl.Count > 0) |
| | | {//åºåå·²æï¼æ´æ°æ°é |
| | | sqlDetl = " update asr_loc_detl set anfme=anfme+" + anfme + " where loc_no='" + ls_loc_no + "' and matnr='" + matnr + "'; "; |
| | | Common.ExecAsrsModify(sqlDetl); |
| | | } |
| | | else |
| | | {//åºå没æï¼æå
¥ |
| | | sqlDetl = " insert into asr_loc_detl(loc_no,lgnum,tbnum,tbpos,zmatid,matnr,maktx,werks,anfme,altme,zpallet,bname) "; |
| | | sqlDetl += " values('" + ls_loc_no + "','" + lgnum + "'," + tbnum + "," + tbpos + ",'" + zmatid + "', "; |
| | | sqlDetl += " '" + matnr + "','" + maktx + "','" + werks + "'," + anfme + ",'" + altme + "','" + ls_barcode + "','" + bname + "');"; |
| | | Common.ExecAsrsModify(sqlDetl); |
| | | } |
| | | } |
| | | sqlWaitIn += " update cust_wait_pakin set io_status='Y' where lgnum='" + lgnum + "' and tbnum=" + tbnum + " and tbpos=" + tbpos + " and zmatid='" + zmatid + "';"; |
| | | } |
| | | |
| | | ///æ´æ°åºåä¿¡æ¯ï¼æå
¥åºåæç»æ¡£ï¼å¹¶æ´æ°åºå主档 |
| | | sql = ""; |
| | | if (li_count1 > 0) |
| | | { |
| | | sql += "delete from asr_loc_detl where loc_no ='" + ls_loc_no + "';"; |
| | | } |
| | | sql += " update asr_loc_mast set loc_sts='F',io_time='" + ldt_date + "',modi_time='" + ldt_date + "',barcode='" + ls_barcode + "'"; |
| | | sql += " where loc_no='" + ls_loc_no + "' and loc_sts = 'S';"; |
| | | //sql += sqlDetl; |
| | | sql += sqlWaitIn; |
| | | |
| | | SqlCommand cmd_1 = new SqlCommand(sql, sqlconn); |
| | | cmd_1.Transaction = sqltrans; |
| | | try |
| | | { |
| | | cmd_1.ExecuteNonQuery(); |
| | | } |
| | | catch (SqlException t) |
| | | { |
| | | sqltrans.Rollback(); |
| | | cmd_1.Dispose(); |
| | | sqlconn.Dispose(); |
| | | ls_error_memo = " " + seq + ".6 å
¥åºï¼æ´æ°åºåå¼å¸¸ [asr_loc_mast] !å·¥ä½å·:" + li_wrk_no.ToString() + " åºä½å·:" + ls_loc_no + " !" + t.Message; |
| | | DisplayInfo("", "E", ls_error_memo); |
| | | goto re; |
| | | } |
| | | break; |
| | | #endregion |
| | | #region æ£æåå
¥åº |
| | | case 53: |
| | | ///æ ¹æ®å·¥ä½å·ï¼æ¥è¯¢å·¥ä½æç»æ¡£ç©æç¼ç |
| | | sqlDetl = ""; |
| | | sqlWaitIn = ""; |
| | | sql = "select lgnum,tbnum,tbpos,zmatid,matnr,maktx,werks,anfme,altme,zpallet,bname from asr_wrk_detl where wrk_no=" + li_wrk_no; |
| | | DataView dv_wrkdetl53 = Common.ExecAsrsSelect(sql); |
| | | if (dv_wrkdetl53 == null || dv_wrkdetl53.Count < 1) |
| | | { |
| | | DisplayInfo("", "E", " " + seq + ".6 å·¥ä½æç»æ¡£ [asr_wrk_detl] 没æèµæ!"); |
| | | return; |
| | | } |
| | | foreach (DataRowView drow in dv_wrkdetl53) |
| | | { |
| | | string lgnum = "", tbnum = "", tbpos = "", zmatid = "", matnr = "", maktx = "", werks = "", anfme = "", altme = "", zpallet = "", bname = ""; |
| | | lgnum = drow[0].ToString(); |
| | | tbnum = drow[1].ToString(); |
| | | tbpos = drow[2].ToString(); |
| | | zmatid = drow[3].ToString(); |
| | | matnr = drow[4].ToString(); |
| | | maktx = drow[5].ToString(); |
| | | werks = drow[6].ToString(); |
| | | anfme = drow[7].ToString(); |
| | | altme = drow[8].ToString(); |
| | | zpallet = drow[9].ToString(); |
| | | bname = drow[10].ToString(); |
| | | sqlDetl += " update asr_loc_detl set anfme=anfme-" + anfme + " where loc_no='" + ls_loc_no + "' and matnr='" + matnr + "'"; |
| | | sqlWaitIn += " update cust_wait_pakout set io_status='Y' where lgnum='" + lgnum + "' and tanum=" + tbnum + " and tapos=" + tbpos + " and matnr=" + matnr + ";"; |
| | | } |
| | | |
| | | ///æ´æ°åºåä¿¡æ¯ï¼æå
¥åºåæç»æ¡£ï¼å¹¶æ´æ°åºå主档 |
| | | sql = " update asr_loc_mast set loc_sts='F',io_time='" + ldt_date + "',modi_time='" + ldt_date + "',barcode='" + ls_barcode + "'"; |
| | | sql += " where loc_no='" + ls_loc_no + "' and loc_sts = 'Q';"; |
| | | sql += sqlDetl; |
| | | sql += sqlWaitIn; |
| | | |
| | | |
| | | SqlCommand cmd_53 = new SqlCommand(sql, sqlconn); |
| | | cmd_53.Transaction = sqltrans; |
| | | try |
| | | { |
| | | cmd_53.ExecuteNonQuery(); |
| | | } |
| | | catch (SqlException t) |
| | | { |
| | | sqltrans.Rollback(); |
| | | cmd_53.Dispose(); |
| | | sqlconn.Dispose(); |
| | | ls_error_memo = " " + seq + ".7 æ£æï¼æ´æ°åºåå¼å¸¸ [asr_loc_mast] !å·¥ä½å·:" + li_wrk_no.ToString() + " åºä½å·:" + ls_loc_no + " !" + t.Message; |
| | | DisplayInfo("", "E", ls_error_memo); |
| | | goto re; |
| | | } |
| | | break; |
| | | #endregion |
| | | #region å¹¶æ¿åå
¥åº |
| | | case 54: |
| | | ///æ ¹æ®å·¥ä½å·ï¼æ¥è¯¢å·¥ä½æç»æ¡£ç©æç¼ç |
| | | sqlDetl = ""; |
| | | sqlWaitIn = ""; |
| | | sql = "select lgnum,tbnum,tbpos,zmatid,matnr,maktx,werks,anfme,altme,zpallet,bname from asr_wrk_detl where wrk_no=" + li_wrk_no; |
| | | DataView dv_wrkdetl54 = Common.ExecAsrsSelect(sql); |
| | | if (dv_wrkdetl54 == null || dv_wrkdetl54.Count < 1) |
| | | { |
| | | DisplayInfo("", "E", " " + seq + ".8 å·¥ä½æç»æ¡£ [asr_wrk_detl] 没æèµæ!"); |
| | | return; |
| | | } |
| | | foreach (DataRowView drow in dv_wrkdetl54) |
| | | { |
| | | string lgnum = "", tbnum = "", tbpos = "", zmatid = "", matnr = "", maktx = "", werks = "", anfme = "", altme = "", zpallet = "", bname = ""; |
| | | lgnum = drow[0].ToString(); |
| | | tbnum = drow[1].ToString(); |
| | | tbpos = drow[2].ToString(); |
| | | zmatid = drow[3].ToString(); |
| | | matnr = drow[4].ToString(); |
| | | maktx = drow[5].ToString(); |
| | | werks = drow[6].ToString(); |
| | | anfme = drow[7].ToString(); |
| | | altme = drow[8].ToString(); |
| | | zpallet = drow[9].ToString(); |
| | | bname = drow[10].ToString(); |
| | | string sql1 = "select anfme from asr_loc_detl where loc_no='" + ls_loc_no + "' and matnr='" + matnr + "'"; |
| | | DataView dv_locdetl54 = Common.ExecAsrsSelect(sql1); |
| | | if (dv_locdetl54 != null && dv_locdetl54.Count > 0) |
| | | { |
| | | sqlDetl += " update asr_loc_detl set anfme=anfme+" + anfme + " where loc_no='" + ls_loc_no + "' and matnr='" + matnr + "'"; |
| | | //sqlWaitIn += " update cust_wait_pakin set io_status='Y' where matnr=" + matnr + ";"; |
| | | } |
| | | else |
| | | { |
| | | sqlDetl += " insert into asr_loc_detl(loc_no,lgnum,tbnum,tbpos,zmatid,matnr,maktx,werks,anfme,altme,zpallet,bname) "; |
| | | sqlDetl += " values('" + ls_loc_no + "','" + lgnum + "'," + tbnum + "," + tbpos + ",'" + zmatid + "', "; |
| | | sqlDetl += " '" + matnr + "','" + maktx + "','" + werks + "'," + anfme + ",'" + altme + "','" + ls_barcode + "','" + bname + "');"; |
| | | } |
| | | sqlWaitIn += " update cust_wait_pakout set io_status='Y' where lgnum='" + lgnum + "' and tanum=" + tbnum + " and tapos=" + tbpos + ";"; |
| | | } |
| | | |
| | | ///æ´æ°åºåä¿¡æ¯ï¼æå
¥åºåæç»æ¡£ï¼å¹¶æ´æ°åºå主档 |
| | | //sql = " update asr_loc_mast set loc_sts='F',io_time='" + ldt_date + "',modi_time='" + ldt_date + "',barcode='" + ls_barcode + "'"; |
| | | sql = " update asr_loc_mast set loc_sts='F',io_time='" + ldt_date + "',modi_time='" + ldt_date + "' "; |
| | | sql += " where loc_no='" + ls_loc_no + "' and loc_sts = 'Q';"; |
| | | sql += sqlDetl; |
| | | sql += sqlWaitIn; |
| | | |
| | | SqlCommand cmd_54 = new SqlCommand(sql, sqlconn); |
| | | cmd_54.Transaction = sqltrans; |
| | | try |
| | | { |
| | | cmd_54.ExecuteNonQuery(); |
| | | } |
| | | catch (SqlException t) |
| | | { |
| | | sqltrans.Rollback(); |
| | | cmd_54.Dispose(); |
| | | sqlconn.Dispose(); |
| | | ls_error_memo = " " + seq + ".9 å¹¶æ¿åå
¥åºï¼æ´æ°åºåå¼å¸¸ [asr_loc_mast] !å·¥ä½å·:" + li_wrk_no.ToString() + " åºä½å·:" + ls_loc_no + " !" + t.Message; |
| | | DisplayInfo("", "E", ls_error_memo); |
| | | goto re; |
| | | } |
| | | break; |
| | | #endregion |
| | | #region çç¹åå
¥åº |
| | | case 57: |
| | | ///æ ¹æ®å·¥ä½å·ï¼æ¥è¯¢å·¥ä½æç»æ¡£ç©æç¼ç |
| | | sqlDetl = ""; |
| | | sqlWaitIn = ""; |
| | | sql = "select lgnum,tbnum,tbpos,matnr from asr_wrk_detl where wrk_no=" + li_wrk_no; |
| | | DataView dv_wrkdetl57 = Common.ExecAsrsSelect(sql); |
| | | if (dv_wrkdetl57 == null || dv_wrkdetl57.Count < 1) |
| | | { |
| | | DisplayInfo("", "E", " " + seq + ".10 å·¥ä½æç»æ¡£ [asr_wrk_detl] 没æèµæ!"); |
| | | return; |
| | | } |
| | | foreach (DataRowView drow in dv_wrkdetl57) |
| | | { |
| | | string lgnum = "", tbnum = "", tbpos = "", matnr = ""; |
| | | lgnum = drow[0].ToString(); |
| | | tbnum = drow[1].ToString(); |
| | | tbpos = drow[2].ToString(); |
| | | matnr = drow[3].ToString(); |
| | | //sqlWaitIn += " update cust_wait_check set io_status='Y' where lgnum='" + lgnum + "' and ivnum=" + tbnum + " and ivpos=" + tbpos + ";"; |
| | | } |
| | | sqlWaitIn += " update cust_wait_check set io_status='Y' where lgpla='" + ls_loc_no + "';"; |
| | | ///æ´æ°åºåä¿¡æ¯ï¼æå
¥åºåæç»æ¡£ï¼å¹¶æ´æ°åºå主档 |
| | | sql = " update asr_loc_mast set loc_sts='F',io_time='" + ldt_date + "',modi_time='" + ldt_date + "',barcode='" + ls_barcode + "'"; |
| | | sql += " where loc_no='" + ls_loc_no + "' and loc_sts = 'Q';"; |
| | | sql += sqlDetl; |
| | | sql += sqlWaitIn; |
| | | |
| | | SqlCommand cmd_57 = new SqlCommand(sql, sqlconn); |
| | | cmd_57.Transaction = sqltrans; |
| | | try |
| | | { |
| | | cmd_57.ExecuteNonQuery(); |
| | | } |
| | | catch (SqlException t) |
| | | { |
| | | sqltrans.Rollback(); |
| | | cmd_57.Dispose(); |
| | | sqlconn.Dispose(); |
| | | ls_error_memo = " " + seq + ".11 çç¹åå
¥åºï¼æ´æ°åºåå¼å¸¸ [asr_loc_mast] !å·¥ä½å·:" + li_wrk_no.ToString() + " åºä½å·:" + ls_loc_no + " !" + t.Message; |
| | | DisplayInfo("", "E", ls_error_memo); |
| | | goto re; |
| | | } |
| | | break; |
| | | #endregion |
| | | #region åºä½ç§»è½¬ |
| | | case 11: |
| | | sql = ""; |
| | | string ls_loc_sts = ""; |
| | | if (ls_empty_mk == "N") |
| | | { |
| | | ls_loc_sts = "F"; |
| | | sql += "Update dbo.asr_loc_detl set loc_no='" + ls_loc_no + "',modi_time='" + ldt_date + "' where loc_no='" + ls_source_loc_no + "';"; |
| | | } |
| | | else |
| | | { |
| | | ls_loc_sts = "D"; |
| | | } |
| | | |
| | | sql += " Update dbo.asr_loc_mast set loc_sts='O',barcode='',io_time='" + ldt_date + "' where loc_no='" + ls_source_loc_no + "'; "; |
| | | sql += " Update dbo.asr_loc_mast set loc_sts='" + ls_loc_sts + "',barcode='" + ls_barcode + "',io_time='" + ldt_date + "' where loc_no='" + ls_loc_no + "';"; |
| | | sql += " update cust_wait_pakout set io_status='Y' where vlpla='" + ls_source_loc_no + "' and nlpla='" + ls_loc_no + "'"; |
| | | SqlCommand cmd_11 = new SqlCommand(sql, sqlconn); |
| | | cmd_11.Transaction = sqltrans; |
| | | try |
| | | { |
| | | cmd_11.ExecuteNonQuery(); |
| | | } |
| | | catch (SqlException t) |
| | | { |
| | | sqltrans.Rollback(); |
| | | cmd_11.Dispose(); |
| | | sqlconn.Dispose(); |
| | | ls_error_memo = " " + seq + ".12 åºä½ç§»è½¬ï¼æ´æ°åºåå¼å¸¸ [asr_loc_mast] !å·¥ä½å·:" + li_wrk_no.ToString() + " åºä½å·:" + ls_loc_no + " !" + t.Message; |
| | | DisplayInfo("", "E", ls_error_memo); |
| | | goto re; |
| | | } |
| | | |
| | | break; |
| | | #endregion |
| | | } |
| | | |
| | | sql = "update asr_wrk_mast set wrk_sts=5,modi_time='" + ldt_date + "' where wrk_no=" + li_wrk_no + "; "; |
| | | SqlCommand cmd_wrk = new SqlCommand(sql, sqlconn); |
| | | cmd_wrk.Transaction = sqltrans; |
| | | try |
| | | { |
| | | cmd_wrk.ExecuteNonQuery(); |
| | | } |
| | | catch (SqlException t) |
| | | { |
| | | sqltrans.Rollback(); |
| | | cmd_wrk.Dispose(); |
| | | sqlconn.Dispose(); |
| | | ls_error_memo = " " + seq + ".13 æ´æ°å·¥ä½ç¶æå¼å¸¸ [asr_wrk_mast] !å·¥ä½å·:" + li_wrk_no.ToString() + " æ¶é´:" + ldt_date.ToString() + " å¼å¸¸:" + t.Message; |
| | | DisplayInfo("", "E", ls_error_memo); |
| | | goto re; |
| | | } |
| | | } |
| | | else if (li_wrk_sts == 14) |
| | | { |
| | | switch (li_io_type) |
| | | { |
| | | #region å
¨æ¿åºåº |
| | | case 101: |
| | | ///æ ¹æ®å·¥ä½å·ï¼æ¥è¯¢å·¥ä½æç»æ¡£ç©æç¼ç |
| | | string sqlWaitIn = ""; |
| | | sql = "select lgnum,tbnum,tbpos,matnr from asr_wrk_detl where wrk_no=" + li_wrk_no; |
| | | DataView dv_wrkdetl = Common.ExecAsrsSelect(sql); |
| | | if (dv_wrkdetl == null || dv_wrkdetl.Count < 1) |
| | | { |
| | | DisplayInfo("", "E", " " + seq + ".14 å·¥ä½æç»æ¡£ [asr_wrk_detl] 没æèµæ!"); |
| | | goto re; |
| | | } |
| | | foreach (DataRowView drow in dv_wrkdetl) |
| | | { |
| | | string lgnum = drow[0].ToString(); |
| | | string tbnum = drow[1].ToString(); |
| | | string tbpos = drow[2].ToString(); |
| | | string matnr = drow[3].ToString(); |
| | | sqlWaitIn += " update cust_wait_pakout set io_status='Y' where lgnum='" + lgnum + "' and tanum=" + tbnum + " and tapos=" + tbpos + " and vlpla=" + ls_source_loc_no + ";"; |
| | | } |
| | | |
| | | sql = "delete from asr_loc_detl where loc_no ='" + ls_source_loc_no + "';"; |
| | | sql += " update asr_loc_mast set loc_sts='O',io_time='" + ldt_date + "',barcode=null"; |
| | | sql += " where loc_no='" + ls_source_loc_no + "' and loc_sts = 'R';"; |
| | | sql += sqlWaitIn; |
| | | SqlCommand cmd_101 = new SqlCommand(sql, sqlconn); |
| | | cmd_101.Transaction = sqltrans; |
| | | try |
| | | { |
| | | cmd_101.ExecuteNonQuery(); |
| | | } |
| | | catch (SqlException t) |
| | | { |
| | | sqltrans.Rollback(); |
| | | cmd_101.Dispose(); |
| | | sqlconn.Dispose(); |
| | | ls_error_memo = " " + seq + ".15 åºåºï¼æ´æ°åºä½ç¶æå¼å¸¸[asr_loc_mast] !åºä½å·:" + ls_source_loc_no + " å¼å¸¸:" + t.Message; |
| | | DisplayInfo("", "E", ls_error_memo); |
| | | goto re; |
| | | } |
| | | break; |
| | | #endregion |
| | | #region 空æ¿åºåº |
| | | case 110: |
| | | sql = "update asr_loc_mast set loc_sts='O',io_time='" + ldt_date + "'"; |
| | | sql += " where loc_no='" + ls_source_loc_no + "' and loc_sts = 'R'"; |
| | | SqlCommand cmd_110 = new SqlCommand(sql, sqlconn); |
| | | cmd_110.Transaction = sqltrans; |
| | | try |
| | | { |
| | | cmd_110.ExecuteNonQuery(); |
| | | } |
| | | catch (SqlException t) |
| | | { |
| | | sqltrans.Rollback(); |
| | | cmd_110.Dispose(); |
| | | sqlconn.Dispose(); |
| | | ls_error_memo = " " + seq + ".16 åºåºï¼æ´æ°åºä½ç¶æå¼å¸¸[asr_loc_mast] !åºä½å·:" + ls_source_loc_no + " å¼å¸¸:" + t.Message; |
| | | DisplayInfo("", "E", ls_error_memo); |
| | | goto re; |
| | | } |
| | | break; |
| | | #endregion |
| | | } |
| | | |
| | | sql = "update asr_wrk_mast set wrk_sts=15,modi_time='" + ldt_date + "' where wrk_no=" + li_wrk_no + "; "; |
| | | SqlCommand cmd_wrk1 = new SqlCommand(sql, sqlconn); |
| | | cmd_wrk1.Transaction = sqltrans; |
| | | try |
| | | { |
| | | cmd_wrk1.ExecuteNonQuery(); |
| | | } |
| | | catch (SqlException t) |
| | | { |
| | | sqltrans.Rollback(); |
| | | cmd_wrk1.Dispose(); |
| | | sqltrans.Dispose(); |
| | | ls_error_memo = " " + seq + ".17 æ´æ°å·¥ä½ç¶æå¼å¸¸ [asr_wrk_mast] !å·¥ä½å·:" + li_wrk_no.ToString() + " å¼å¸¸:" + t.Message; |
| | | DisplayInfo("", "E", ls_error_memo); |
| | | goto re; |
| | | } |
| | | } |
| | | sqltrans.Commit(); |
| | | sqlconn.Dispose(); |
| | | } |
| | | } |
| | | catch (SqlException t) |
| | | { |
| | | ls_error_memo = " " + seq + ".18 å¤ç工使¡£æ°æ®å¤±è´¥! å¼å¸¸:" + t.Message; |
| | | DisplayInfo("", "E", ls_error_memo); |
| | | } |
| | | |
| | | re: |
| | | if (ls_error_memo != "") |
| | | { |
| | | try |
| | | { |
| | | bool bl = Common.ExecAsrsModify("update dbo.asr_wrk_mast set upd_mk ='X',error_time='" + ldt_date + "',error_memo='" + ls_error_memo + "' where wrk_no =" + li_wrk_no + ""); |
| | | } |
| | | catch (SqlException t) |
| | | { |
| | | ls_error_memo = " " + seq + ".19 æ´æ°å·¥ä½ä¸»æ¡£ç¶æ [asr_wrk_mast] å¼å¸¸! å·¥ä½å·:" + li_wrk_no.ToString() + " æ¶é´:" + ldt_date.ToString(); |
| | | DisplayInfo("", "E", ls_error_memo); |
| | | return; |
| | | } |
| | | |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// å¤ç工使¡£ä¸å·¥ä½ç¶æä¸º5å15çèµæï¼è½¬å岿¡£ |
| | | /// </summary> |
| | | public void ProcWorkToLog(string seq) |
| | | { |
| | | string ls_error_memo = ""; |
| | | DisplayInfo(seq, "N", "--å¤ç工使¡£è½¬å岿¡£......"); |
| | | int wrkno = 0; |
| | | try |
| | | { |
| | | string sql = "select top 1 wrk_no from asr_wrk_mast where wrk_sts=5 ";// or wrk_sts=15 or (wrk_sts=15 and io_type=110) "; |
| | | sql += " or (wrk_sts=15 and ove_mk='Y' and wrk_no not in (select wrk_no from asr_bas_devp))"; |
| | | sql += " or (wrk_sts=15 and dateadd(mi,15,crn_end_time) <= getdate() and wrk_no not in (select wrk_no from asr_bas_devp))"; |
| | | sql += " or (wrk_sts=15 and crn_end_time is null and wrk_no not in (select wrk_no from asr_bas_devp)) "; |
| | | //sql += " or (wrk_sts=15 and dateadd(day,1,io_time) <= getdate() and crn_end_time is null) "; |
| | | //sql += " or (wrk_sts=15 and dateadd(hh,1,crn_end_time) <= getdate()) "; |
| | | //sql += " or (wrk_sts=15 and wrk_no not in (select wrk_no from asr_bas_devp))"; |
| | | sql += " order by io_time,wrk_no asc"; |
| | | DataView dv = Common.ExecAsrsSelect(sql); |
| | | if (dv.Count <= 0) |
| | | { |
| | | DisplayInfo("", "N", " " + seq + ".1 工使¡£ [asr_wrk_mast] 没æèµæå¤ç!"); |
| | | return; |
| | | } |
| | | foreach (DataRowView drow in dv) |
| | | { |
| | | wrkno = int.Parse(drow[0].ToString()); |
| | | } |
| | | DisplayInfo("", "P", " " + seq + ".2 æ£å¨å¤ç转å岿¡£" + wrkno); |
| | | |
| | | sql = "insert into asr_wrk_mast_log select * from asr_wrk_mast where wrk_no=" + wrkno + "; "; |
| | | //sql += " and wrk_no not in (select wrk_no from dbo.asr_bas_devp) "; |
| | | //sql += " and wrk_no not in (select wrk_no from dbo.asr_bas_crnp);"; |
| | | sql += " delete from asr_wrk_mast where wrk_no=" + wrkno + "; "; |
| | | sql += " insert into asr_wrk_detl_log select * from asr_wrk_detl where wrk_no=" + wrkno + "; "; |
| | | sql += " delete from asr_wrk_detl where wrk_no=" + wrkno + "; "; |
| | | //sql += " update asr_wrk_mast set wrk_sts=16 where wrk_sts=15 and dateadd(day,1,io_time) <= getdate();"; |
| | | //sql += " and wrk_no not in (select wrk_no from dbo.asr_bas_devp) "; |
| | | //sql += " and wrk_no not in (select wrk_no from dbo.asr_bas_crnp);"; |
| | | |
| | | SqlConnection sqlconn = new SqlConnection(Common.sqlcon); |
| | | sqlconn.Open(); |
| | | SqlTransaction sqltrans = sqlconn.BeginTransaction(); |
| | | SqlCommand sqlcmd = new SqlCommand(); |
| | | sqlcmd.Transaction = sqltrans; |
| | | string[] arraySql = sql.Split(';'); |
| | | try |
| | | { |
| | | for (int i = 0; i < arraySql.Length; i++) |
| | | { |
| | | if (arraySql[i] != "") |
| | | { |
| | | sqlcmd.CommandText = arraySql[i]; |
| | | sqlcmd.Connection = sqlconn; |
| | | sqlcmd.Transaction = sqltrans; |
| | | int result = sqlcmd.ExecuteNonQuery(); |
| | | } |
| | | } |
| | | sqltrans.Commit(); |
| | | } |
| | | catch (SqlException t) |
| | | { |
| | | sqltrans.Rollback(); |
| | | ls_error_memo = " " + seq + ".3 工使¡£[asr_wrk_mast]转å岿¡£é误 ! å¼å¸¸:" + t.Message; |
| | | DisplayInfo("", "E", ls_error_memo); |
| | | } |
| | | finally |
| | | { |
| | | sqlcmd.Dispose(); |
| | | sqltrans.Dispose(); |
| | | sqlconn.Dispose(); |
| | | } |
| | | return; |
| | | } |
| | | catch (Exception t) |
| | | { |
| | | ls_error_memo = " " + seq + ".4 å¤ç工使¡£è½¬å岿¡£å¤±è´¥! å¼å¸¸:" + t.Message; |
| | | DisplayInfo("", "E", ls_error_memo); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// å¤çå åæºãè¾éæºå½ä»¤ï¼è½¬å岿¡£ |
| | | /// </summary> |
| | | public void ProcDevCommandToLog(string seq) |
| | | { |
| | | string ls_error_memo = ""; |
| | | DisplayInfo(seq, "N", "--å¤çå åæº&PLCå½ä»¤è½¬å岿¡£......"); |
| | | try |
| | | { |
| | | string sql = "insert into asr_stk_hplc "; |
| | | sql += " select * from asr_stk_plcm where dateadd(day,7,appe_time) <= getdate();"; |
| | | sql += " delete from asr_stk_plcm where dateadd(day,7,appe_time) <= getdate();"; |
| | | SqlConnection sqlconn = new SqlConnection(Common.sqlcon); |
| | | sqlconn.Open(); |
| | | SqlTransaction sqltrans = sqlconn.BeginTransaction(); |
| | | SqlCommand sqlcmd = new SqlCommand(); |
| | | sqlcmd.Transaction = sqltrans; |
| | | string[] arraySql = sql.Split(';'); |
| | | try |
| | | { |
| | | for (int i = 0; i < arraySql.Length; i++) |
| | | { |
| | | if (arraySql[i] != "") |
| | | { |
| | | sqlcmd.CommandText = arraySql[i]; |
| | | sqlcmd.Connection = sqlconn; |
| | | sqlcmd.Transaction = sqltrans; |
| | | int result = sqlcmd.ExecuteNonQuery(); |
| | | } |
| | | } |
| | | sqltrans.Commit(); |
| | | } |
| | | catch (SqlException t) |
| | | { |
| | | sqltrans.Rollback(); |
| | | //sqlcommon.Close(); |
| | | ls_error_memo = " " + seq + ".1 å åæº&PLCå½ä»¤è½¬å岿¡£é误 ! å¼å¸¸:" + t.Message; |
| | | DisplayInfo("", "E", ls_error_memo); |
| | | } |
| | | finally |
| | | { |
| | | sqlcmd.Dispose(); |
| | | sqltrans.Dispose(); |
| | | sqlconn.Dispose(); |
| | | } |
| | | return; |
| | | } |
| | | catch (Exception t) |
| | | { |
| | | ls_error_memo = " " + seq + ".2 å åæº&PLCå½ä»¤è½¬å岿¡£å¤±è´¥! å¼å¸¸:" + t.Message; |
| | | DisplayInfo("", "E", ls_error_memo); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// è½¬å·²å®æç©æä¿¡æ¯å°å岿¡£ |
| | | /// </summary> |
| | | public void ProcMatCodeToLog(string seq) |
| | | { |
| | | string ls_error_memo = "", mat_no = ""; |
| | | DisplayInfo(seq, "N", "--å¤çå·²å®æç©ææ°æ®è½¬å岿¡£......"); |
| | | try |
| | | { |
| | | string condition = " and mat_no not in (select mat_no from asr_loc_detl) and mat_no not in (select mat_no from asr_wrk_detl) "; |
| | | //condition += " and mat_no not in (select mat_no from cust_wait_pakout) "; |
| | | string sql0 = " select top 1 mat_no from bas_mat_code where status>1 " + condition + " ;"; |
| | | DataView dv = Common.ExecAsrsSelect(sql0); |
| | | if (dv.Count <= 0) |
| | | { |
| | | DisplayInfo("", "N", " " + seq + ".1 ç©ææ¡£ [bas_mat_code] 没æèµæå¤ç!"); |
| | | return; |
| | | } |
| | | |
| | | foreach (DataRowView drow in dv) |
| | | { |
| | | mat_no = drow[0].ToString(); |
| | | } |
| | | |
| | | string sql = "delete from bas_mat_code_log where mat_no='" + mat_no + "';"; |
| | | sql += " insert into bas_mat_code_log "; |
| | | sql += " select * from bas_mat_code where status>1 " + condition + " ;"; |
| | | sql += " delete from bas_mat_code where status>1 " + condition + " ;"; |
| | | sql += " delete from bas_mat_code where status=0 and dateadd(hh,2,modi_time) <= getdate() " + condition + " ;"; |
| | | |
| | | SqlConnection sqlconn = new SqlConnection(Common.sqlcon); |
| | | sqlconn.Open(); |
| | | SqlTransaction sqltrans = sqlconn.BeginTransaction(); |
| | | SqlCommand sqlcmd = new SqlCommand(); |
| | | sqlcmd.Transaction = sqltrans; |
| | | string[] arraySql = sql.Split(';'); |
| | | try |
| | | { |
| | | for (int i = 0; i < arraySql.Length; i++) |
| | | { |
| | | if (arraySql[i] != "") |
| | | { |
| | | sqlcmd.CommandText = arraySql[i]; |
| | | sqlcmd.Connection = sqlconn; |
| | | sqlcmd.Transaction = sqltrans; |
| | | int result = sqlcmd.ExecuteNonQuery(); |
| | | } |
| | | } |
| | | sqltrans.Commit(); |
| | | } |
| | | catch (SqlException t) |
| | | { |
| | | sqltrans.Rollback(); |
| | | //sqlcommon.Close(); |
| | | ls_error_memo = " " + seq + ".1 å·²å®æç©ææ°æ®è½¬å岿¡£é误 ! å¼å¸¸:" + t.Message; |
| | | DisplayInfo("", "E", ls_error_memo); |
| | | } |
| | | finally |
| | | { |
| | | sqlcmd.Dispose(); |
| | | sqlconn.Dispose(); |
| | | } |
| | | return; |
| | | } |
| | | catch (Exception t) |
| | | { |
| | | ls_error_memo = " " + seq + ".2 å·²å®æç©ææ°æ®è½¬å岿¡£å¤±è´¥! å¼å¸¸:" + t.Message; |
| | | DisplayInfo("", "E", ls_error_memo); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// è½¬å·²å®æå¾
åºåºæ¡£ä¿¡æ¯å°å岿¡£ |
| | | /// </summary> |
| | | public void ProcWaitOutToLog(string seq) |
| | | { |
| | | string ls_error_memo = "", sql = ""; |
| | | DisplayInfo(seq, "N", "--å¤ç已宿å
¥/åºåºæ¡£æ°æ®è½¬å岿¡£......"); |
| | | try |
| | | { |
| | | string sql0 = " select lgnum,tbnum,tbpos from cust_wait_pakin where io_status='F';"; |
| | | DataView dv = Common.ExecAsrsSelect(sql0); |
| | | if (dv == null || dv.Count <= 0) |
| | | { |
| | | DisplayInfo("", "N", " " + seq + ".1 å
¥åºæ¡£ [cust_wait_pakin] 没æèµæå¤ç!"); |
| | | } |
| | | else |
| | | { |
| | | foreach (DataRowView drow in dv) |
| | | { |
| | | string lgnum = drow[0].ToString(); |
| | | string tanum = drow[1].ToString(); |
| | | string tapos = drow[2].ToString(); |
| | | sql = "insert into cust_wait_pakin_log "; |
| | | sql += " select * from cust_wait_pakin where lgnum='" + lgnum + "' and tbnum=" + tanum + " and tbpos=" + tapos + "; "; |
| | | sql += " delete from cust_wait_pakin where lgnum='" + lgnum + "' and tbnum=" + tanum + " and tbpos=" + tapos + "; "; |
| | | } |
| | | } |
| | | |
| | | sql0 = " select lgnum,tanum,tapos from cust_wait_pakout where io_status='F';"; |
| | | dv = Common.ExecAsrsSelect(sql0); |
| | | if (dv == null || dv.Count <= 0) |
| | | { |
| | | DisplayInfo("", "N", " " + seq + ".2 åºåºæ¡£ [cust_wait_pakout] 没æèµæå¤ç!"); |
| | | } |
| | | else |
| | | { |
| | | foreach (DataRowView drow in dv) |
| | | { |
| | | string lgnum = drow[0].ToString(); |
| | | string tanum = drow[1].ToString(); |
| | | string tapos = drow[2].ToString(); |
| | | sql = "insert into cust_wait_pakout_log "; |
| | | sql += " select * from cust_wait_pakout where lgnum='" + lgnum + "' and tanum=" + tanum + " and tapos=" + tapos + "; "; |
| | | sql += " delete from cust_wait_pakout where lgnum='" + lgnum + "' and tanum=" + tanum + " and tapos=" + tapos + "; "; |
| | | } |
| | | } |
| | | |
| | | sql0 = " select lgnum,ivnum,ivpos from cust_wait_check where io_status='Y';"; |
| | | dv = Common.ExecAsrsSelect(sql0); |
| | | if (dv == null || dv.Count <= 0) |
| | | { |
| | | DisplayInfo("", "N", " " + seq + ".3 çç¹æ¡£ [cust_wait_check] 没æèµæå¤ç!"); |
| | | } |
| | | else |
| | | { |
| | | foreach (DataRowView drow in dv) |
| | | { |
| | | string lgnum = drow[0].ToString(); |
| | | string tanum = drow[1].ToString(); |
| | | string tapos = drow[2].ToString(); |
| | | sql = "insert into cust_wait_check_log "; |
| | | sql += " select * from cust_wait_check where lgnum='" + lgnum + "' and ivnum=" + tanum + " and ivpos=" + tapos + "; "; |
| | | sql += " delete from cust_wait_check where lgnum='" + lgnum + "' and ivnum=" + tanum + " and ivpos=" + tapos + "; "; |
| | | } |
| | | } |
| | | |
| | | if (sql == "") |
| | | { |
| | | return; |
| | | } |
| | | SqlConnection sqlconn1 = new SqlConnection(Common.sqlcon); |
| | | sqlconn1.Open(); |
| | | SqlTransaction sqltrans1 = sqlconn1.BeginTransaction(); |
| | | SqlCommand sqlcmd1 = new SqlCommand(); |
| | | sqlcmd1.Transaction = sqltrans1; |
| | | string[] arraySql1 = sql.Split(';'); |
| | | try |
| | | { |
| | | for (int i = 0; i < arraySql1.Length; i++) |
| | | { |
| | | if (arraySql1[i] != "") |
| | | { |
| | | sqlcmd1.CommandText = arraySql1[i]; |
| | | sqlcmd1.Connection = sqlconn1; |
| | | sqlcmd1.Transaction = sqltrans1; |
| | | int result = sqlcmd1.ExecuteNonQuery(); |
| | | } |
| | | } |
| | | sqltrans1.Commit(); |
| | | } |
| | | catch (SqlException t) |
| | | { |
| | | sqltrans1.Rollback(); |
| | | //sqlcommon.Close(); |
| | | ls_error_memo = " " + seq + ".1 å·²å®æç©ææ°æ®è½¬å岿¡£é误 ! å¼å¸¸:" + t.Message; |
| | | DisplayInfo("", "E", ls_error_memo); |
| | | } |
| | | finally |
| | | { |
| | | sqlcmd1.Dispose(); |
| | | sqlconn1.Dispose(); |
| | | } |
| | | |
| | | return; |
| | | } |
| | | catch (Exception t) |
| | | { |
| | | ls_error_memo = " " + seq + ".2 已宿åºåºæ°æ®è½¬å岿¡£å¤±è´¥! å¼å¸¸:" + t.Message; |
| | | DisplayInfo("", "E", ls_error_memo); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// å é¤è¶
è¿åå¹´çå岿¡£ä¿¡æ¯ |
| | | /// </summary> |
| | | public void ProcOverYearLog(string seq) |
| | | { |
| | | string ls_error_memo = ""; |
| | | DisplayInfo(seq, "N", "--å¤çè¶
è¿åå¹´å岿¡£ä¿¡æ¯......"); |
| | | try |
| | | { |
| | | string sql = "delete from asr_stk_hplc where dateadd(day,180,appe_time) <= getdate(); "; |
| | | sql += " delete from sys_tts_mast where dateadd(day,180,modi_time) <= getdate();"; |
| | | sql += " delete from asr_wrk_detl_log where dateadd(day,360,appe_time) <= getdate();"; |
| | | sql += " delete from asr_wrk_mast_log where dateadd(day,360,appe_time) <= getdate();"; |
| | | sql += " delete from cust_wait_pakout_log where dateadd(day,360,appe_time) <= getdate();"; |
| | | sql += " delete from bas_mat_code_log where dateadd(day,360,appe_time) <= getdate();"; |
| | | SqlConnection sqlconn = new SqlConnection(Common.sqlcon); |
| | | sqlconn.Open(); |
| | | SqlTransaction sqltrans = sqlconn.BeginTransaction(); |
| | | SqlCommand sqlcmd = new SqlCommand(); |
| | | sqlcmd.Transaction = sqltrans; |
| | | string[] arraySql = sql.Split(';'); |
| | | try |
| | | { |
| | | for (int i = 0; i < arraySql.Length; i++) |
| | | { |
| | | if (arraySql[i] != "") |
| | | { |
| | | sqlcmd.CommandText = arraySql[i]; |
| | | sqlcmd.Connection = sqlconn; |
| | | sqlcmd.Transaction = sqltrans; |
| | | int result = sqlcmd.ExecuteNonQuery(); |
| | | } |
| | | } |
| | | sqltrans.Commit(); |
| | | } |
| | | catch (SqlException t) |
| | | { |
| | | sqltrans.Rollback(); |
| | | //sqlcommon.Close(); |
| | | ls_error_memo = " " + seq + ".1 å åæº&PLCå½ä»¤è½¬å岿¡£é误 ! å¼å¸¸:" + t.Message; |
| | | DisplayInfo("", "E", ls_error_memo); |
| | | } |
| | | finally |
| | | { |
| | | sqlcmd.Dispose(); |
| | | sqltrans.Dispose(); |
| | | sqlconn.Dispose(); |
| | | } |
| | | return; |
| | | } |
| | | catch (Exception t) |
| | | { |
| | | ls_error_memo = " " + seq + ".2 å åæº&PLCå½ä»¤è½¬å岿¡£å¤±è´¥! å¼å¸¸:" + t.Message; |
| | | DisplayInfo("", "E", ls_error_memo); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// å¤çåºåæ¡£ä¸åºä½ç¶æä¸ºD O使¯ææç»çæ°æ®ï¼æ¸
空æç» |
| | | /// </summary> |
| | | private void ProcErrorStockData(string seq) |
| | | { |
| | | string ls_error_memo = ""; |
| | | string loc_no = "", mat_no = ""; |
| | | DisplayInfo(seq, "N", "--å¤çåºåæ¡£ä¸å¼å¸¸åºåä¿¡æ¯......"); |
| | | try |
| | | { |
| | | string sqlDetl = "delete from asr_loc_detl where anfme <= 0;"; |
| | | Common.ExecAsrsModify(sqlDetl); |
| | | |
| | | string sql = "SELECT a.loc_no,b.matnr FROM asr_loc_mast a,asr_loc_detl b where a.loc_no=b.loc_no "; |
| | | sql += " and (a.loc_sts='O' or a.loc_sts='D') "; |
| | | |
| | | DataView dv_stkDetl = Common.ExecAsrsSelect(sql); |
| | | if (dv_stkDetl == null || dv_stkDetl.Count < 1) |
| | | { |
| | | return; |
| | | } |
| | | foreach (DataRowView drow_stkDetl in dv_stkDetl) |
| | | { |
| | | loc_no = drow_stkDetl[0].ToString(); |
| | | mat_no = drow_stkDetl[1].ToString(); |
| | | string sql0 = " delete from asr_loc_detl where loc_no='" + loc_no + "'; "; |
| | | SqlConnection sqlconn = new SqlConnection(Common.sqlcon); |
| | | sqlconn.Open(); |
| | | SqlTransaction sqltrans = sqlconn.BeginTransaction(); |
| | | SqlCommand sqlcmd = new SqlCommand(); |
| | | sqlcmd.Transaction = sqltrans; |
| | | string[] arraySql = sql0.Split(';'); |
| | | try |
| | | { |
| | | for (int i = 0; i < arraySql.Length; i++) |
| | | { |
| | | if (arraySql[i] != "") |
| | | { |
| | | sqlcmd.CommandText = arraySql[i]; |
| | | sqlcmd.Connection = sqlconn; |
| | | sqlcmd.Transaction = sqltrans; |
| | | int result = sqlcmd.ExecuteNonQuery(); |
| | | } |
| | | } |
| | | sqltrans.Commit(); |
| | | } |
| | | catch (SqlException t) |
| | | { |
| | | sqltrans.Rollback(); |
| | | //sqlcommon.Close(); |
| | | ls_error_memo = " " + seq + ".1 å¤çåºåæ¡£ä¸å¼å¸¸åºåä¿¡æ¯é误 ! å¼å¸¸:" + t.Message; |
| | | DisplayInfo("", "E", ls_error_memo); |
| | | } |
| | | finally |
| | | { |
| | | sqlcmd.Dispose(); |
| | | sqltrans.Dispose(); |
| | | sqlconn.Dispose(); |
| | | } |
| | | } |
| | | return; |
| | | } |
| | | catch (Exception t) |
| | | { |
| | | ls_error_memo = " " + seq + ".2 å¤çåºåæ¡£ä¸å¼å¸¸åºåä¿¡æ¯å¤±è´¥! å¼å¸¸:" + t.Message; |
| | | DisplayInfo("", "E", ls_error_memo); |
| | | } |
| | | } |
| | | #endregion |
| | | |
| | | /// <summary> |
| | | /// åæ¥ä¸»çº¿ç¨ |
| | | /// </summary> |
| | | private void ThreadTask() |
| | | { |
| | | DisplayInfo("", "N", "---------------ç³»ç»è¿è¡ä¸-------------"); |
| | | while (true) |
| | | { |
| | | try |
| | | { |
| | | //çæåºåºå·¥ä½æ¡£ |
| | | ProcOutToWorkData("1"); |
| | | ProcLocToWorkData("11"); |
| | | |
| | | //å¤ç工使¡£ç¶æ4ã14ã6çèµæ |
| | | ProcWorkMast("2"); |
| | | |
| | | //工使¡£è½¬å岿¡£ |
| | | ProcWorkToLog("3"); |
| | | |
| | | //å åæº&PLCå½ä»¤è½¬å岿¡£ |
| | | ProcDevCommandToLog("4"); |
| | | |
| | | //è½¬å·²å®æç©æä¿¡æ¯å°å岿¡£ |
| | | //ProcMatCodeToLog("5"); |
| | | //转åºåºå®æå¾
åºåºæ¡£æ°æ®å°å岿¡£ |
| | | ProcCheckToWorkData("5"); |
| | | |
| | | //转åºåºå®æå¾
åºåºæ¡£æ°æ®å°å岿¡£ |
| | | ProcWaitOutToLog("6"); |
| | | |
| | | //å é¤è¶
è¿åå¹´å岿¡£ |
| | | ProcOverYearLog("7"); |
| | | |
| | | ProcErrorStockData("8"); |
| | | |
| | | Thread.Sleep(3000); |
| | | } |
| | | catch (Exception em) |
| | | { |
| | | Common.WriteLogFile("WcsError", "UpdateThread/ThreadTask--åæ¥ä¸»çº¿ç¨å¾ªç¯åºé:" + em.Message); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| New file |
| | |
| | | <?xml version="1.0" encoding="utf-8"?> |
| | | <Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
| | | <PropertyGroup> |
| | | <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> |
| | | <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> |
| | | <ProductVersion>9.0.30729</ProductVersion> |
| | | <SchemaVersion>2.0</SchemaVersion> |
| | | <ProjectGuid>{9E1CF5D3-6566-4636-AE12-C837971242CA}</ProjectGuid> |
| | | <OutputType>WinExe</OutputType> |
| | | <AppDesignerFolder>Properties</AppDesignerFolder> |
| | | <RootNamespace>WCS</RootNamespace> |
| | | <AssemblyName>WCS</AssemblyName> |
| | | <TargetFrameworkVersion>v4.5</TargetFrameworkVersion> |
| | | <FileAlignment>512</FileAlignment> |
| | | <FileUpgradeFlags> |
| | | </FileUpgradeFlags> |
| | | <UpgradeBackupLocation> |
| | | </UpgradeBackupLocation> |
| | | <OldToolsVersion>3.5</OldToolsVersion> |
| | | <PublishUrl>åå¸\</PublishUrl> |
| | | <Install>true</Install> |
| | | <InstallFrom>Disk</InstallFrom> |
| | | <UpdateEnabled>false</UpdateEnabled> |
| | | <UpdateMode>Foreground</UpdateMode> |
| | | <UpdateInterval>7</UpdateInterval> |
| | | <UpdateIntervalUnits>Days</UpdateIntervalUnits> |
| | | <UpdatePeriodically>false</UpdatePeriodically> |
| | | <UpdateRequired>false</UpdateRequired> |
| | | <MapFileExtensions>true</MapFileExtensions> |
| | | <ApplicationRevision>0</ApplicationRevision> |
| | | <ApplicationVersion>1.0.0.%2a</ApplicationVersion> |
| | | <IsWebBootstrapper>false</IsWebBootstrapper> |
| | | <UseApplicationTrust>false</UseApplicationTrust> |
| | | <BootstrapperEnabled>true</BootstrapperEnabled> |
| | | <TargetFrameworkProfile /> |
| | | </PropertyGroup> |
| | | <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> |
| | | <DebugSymbols>true</DebugSymbols> |
| | | <DebugType>full</DebugType> |
| | | <Optimize>false</Optimize> |
| | | <OutputPath>bin\Debug\</OutputPath> |
| | | <DefineConstants>DEBUG;TRACE</DefineConstants> |
| | | <ErrorReport>prompt</ErrorReport> |
| | | <WarningLevel>4</WarningLevel> |
| | | <PlatformTarget>x86</PlatformTarget> |
| | | <Prefer32Bit>false</Prefer32Bit> |
| | | <AllowUnsafeBlocks>true</AllowUnsafeBlocks> |
| | | </PropertyGroup> |
| | | <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> |
| | | <DebugType>pdbonly</DebugType> |
| | | <Optimize>true</Optimize> |
| | | <OutputPath>bin\Release\</OutputPath> |
| | | <DefineConstants>TRACE</DefineConstants> |
| | | <ErrorReport>prompt</ErrorReport> |
| | | <WarningLevel>4</WarningLevel> |
| | | <Prefer32Bit>false</Prefer32Bit> |
| | | </PropertyGroup> |
| | | <PropertyGroup> |
| | | <ApplicationIcon>System Tools XP.ico</ApplicationIcon> |
| | | </PropertyGroup> |
| | | <ItemGroup> |
| | | <Reference Include="com.force.json, Version=1.1.0.0, Culture=neutral, processorArchitecture=MSIL"> |
| | | <SpecificVersion>False</SpecificVersion> |
| | | <HintPath>bin\Debug\com.force.json.dll</HintPath> |
| | | </Reference> |
| | | <Reference Include="CSkin"> |
| | | <HintPath>..\..\..\CSkin 16.1.14.3\CSkin 16.1.14.3\CSkin 4.0\CSkin.dll</HintPath> |
| | | </Reference> |
| | | <Reference Include="DevComponents.DotNetBar.SuperGrid, Version=10.9.0.4, Culture=neutral, PublicKeyToken=c39c3242a43eee2b, processorArchitecture=MSIL"> |
| | | <SpecificVersion>False</SpecificVersion> |
| | | <HintPath>bin\Debug\DevComponents.DotNetBar.SuperGrid.dll</HintPath> |
| | | </Reference> |
| | | <Reference Include="DevComponents.DotNetBar2, Version=10.9.0.4, Culture=neutral, PublicKeyToken=c39c3242a43eee2b, processorArchitecture=MSIL"> |
| | | <SpecificVersion>False</SpecificVersion> |
| | | <HintPath>..\..\Windows\assembly\GAC_MSIL\DevComponents.DotNetBar2\10.9.0.4__7eb7c3a35b91de04\DevComponents.DotNetBar2.dll</HintPath> |
| | | </Reference> |
| | | <Reference Include="HslCommunication, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cdb2261fa039ed67, processorArchitecture=MSIL"> |
| | | <SpecificVersion>False</SpecificVersion> |
| | | <HintPath>bin\Debug\HslCommunication.dll</HintPath> |
| | | </Reference> |
| | | <Reference Include="Microsoft.VisualBasic" /> |
| | | <Reference Include="Microsoft.VisualBasic.PowerPacks.Vs, Version=10.0.0.0" /> |
| | | <Reference Include="Oracle.ManagedDataAccess, Version=4.122.1.0, Culture=neutral, PublicKeyToken=89b483f429c47342, processorArchitecture=MSIL"> |
| | | <SpecificVersion>False</SpecificVersion> |
| | | <HintPath>bin\Debug\Oracle.ManagedDataAccess.dll</HintPath> |
| | | </Reference> |
| | | <Reference Include="System" /> |
| | | <Reference Include="System.Core"> |
| | | <RequiredTargetFramework>3.5</RequiredTargetFramework> |
| | | </Reference> |
| | | <Reference Include="System.Design" /> |
| | | <Reference Include="System.Xml.Linq"> |
| | | <RequiredTargetFramework>3.5</RequiredTargetFramework> |
| | | </Reference> |
| | | <Reference Include="System.Data.DataSetExtensions"> |
| | | <RequiredTargetFramework>3.5</RequiredTargetFramework> |
| | | </Reference> |
| | | <Reference Include="System.Data" /> |
| | | <Reference Include="System.Deployment" /> |
| | | <Reference Include="System.Drawing" /> |
| | | <Reference Include="System.Windows.Forms" /> |
| | | <Reference Include="System.Xml" /> |
| | | <Reference Include="timerlabel, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL" /> |
| | | </ItemGroup> |
| | | <ItemGroup> |
| | | <Compile Include="BarcodeThread.cs" /> |
| | | <Compile Include="Common.cs" /> |
| | | <Compile Include="CraneThread.cs" /> |
| | | <Compile Include="crndisplay.cs"> |
| | | <SubType>Form</SubType> |
| | | </Compile> |
| | | <Compile Include="crndisplay.Designer.cs"> |
| | | <DependentUpon>crndisplay.cs</DependentUpon> |
| | | </Compile> |
| | | <Compile Include="exit.cs"> |
| | | <SubType>Form</SubType> |
| | | </Compile> |
| | | <Compile Include="exit.Designer.cs"> |
| | | <DependentUpon>exit.cs</DependentUpon> |
| | | </Compile> |
| | | <Compile Include="Form1.cs"> |
| | | <SubType>Form</SubType> |
| | | </Compile> |
| | | <Compile Include="Form1.Designer.cs"> |
| | | <DependentUpon>Form1.cs</DependentUpon> |
| | | </Compile> |
| | | <Compile Include="Form2.cs"> |
| | | <SubType>Form</SubType> |
| | | </Compile> |
| | | <Compile Include="Form2.Designer.cs"> |
| | | <DependentUpon>Form2.cs</DependentUpon> |
| | | </Compile> |
| | | <Compile Include="Form3.cs"> |
| | | <SubType>Form</SubType> |
| | | </Compile> |
| | | <Compile Include="Form3.Designer.cs"> |
| | | <DependentUpon>Form3.cs</DependentUpon> |
| | | </Compile> |
| | | <Compile Include="Form4.cs"> |
| | | <SubType>Form</SubType> |
| | | </Compile> |
| | | <Compile Include="Form4.Designer.cs"> |
| | | <DependentUpon>Form4.cs</DependentUpon> |
| | | </Compile> |
| | | <Compile Include="HttpPostHelper.cs" /> |
| | | <Compile Include="LedThread.cs" /> |
| | | <Compile Include="PlcAThread.cs" /> |
| | | <Compile Include="PlcBThread.cs" /> |
| | | <Compile Include="plcset.cs"> |
| | | <SubType>Form</SubType> |
| | | </Compile> |
| | | <Compile Include="plcset.Designer.cs"> |
| | | <DependentUpon>plcset.cs</DependentUpon> |
| | | </Compile> |
| | | <Compile Include="Program.cs" /> |
| | | <Compile Include="Properties\AssemblyInfo.cs" /> |
| | | <EmbeddedResource Include="crndisplay.resx"> |
| | | <DependentUpon>crndisplay.cs</DependentUpon> |
| | | </EmbeddedResource> |
| | | <EmbeddedResource Include="exit.resx"> |
| | | <DependentUpon>exit.cs</DependentUpon> |
| | | </EmbeddedResource> |
| | | <EmbeddedResource Include="Form1.resx"> |
| | | <DependentUpon>Form1.cs</DependentUpon> |
| | | <SubType>Designer</SubType> |
| | | </EmbeddedResource> |
| | | <EmbeddedResource Include="Form2.resx"> |
| | | <DependentUpon>Form2.cs</DependentUpon> |
| | | </EmbeddedResource> |
| | | <EmbeddedResource Include="Form3.resx"> |
| | | <DependentUpon>Form3.cs</DependentUpon> |
| | | </EmbeddedResource> |
| | | <EmbeddedResource Include="Form4.resx"> |
| | | <DependentUpon>Form4.cs</DependentUpon> |
| | | </EmbeddedResource> |
| | | <EmbeddedResource Include="plcset.resx"> |
| | | <DependentUpon>plcset.cs</DependentUpon> |
| | | </EmbeddedResource> |
| | | <EmbeddedResource Include="Properties\Resources.resx"> |
| | | <Generator>ResXFileCodeGenerator</Generator> |
| | | <LastGenOutput>Resources.Designer.cs</LastGenOutput> |
| | | <SubType>Designer</SubType> |
| | | </EmbeddedResource> |
| | | <EmbeddedResource Include="stndisplay.resx"> |
| | | <DependentUpon>stndisplay.cs</DependentUpon> |
| | | </EmbeddedResource> |
| | | <EmbeddedResource Include="warn.resx"> |
| | | <DependentUpon>warn.cs</DependentUpon> |
| | | </EmbeddedResource> |
| | | <EmbeddedResource Include="warn1.resx"> |
| | | <DependentUpon>warn1.cs</DependentUpon> |
| | | </EmbeddedResource> |
| | | <Compile Include="Properties\Resources.Designer.cs"> |
| | | <AutoGen>True</AutoGen> |
| | | <DependentUpon>Resources.resx</DependentUpon> |
| | | <DesignTime>True</DesignTime> |
| | | </Compile> |
| | | <None Include="app.config" /> |
| | | <None Include="Properties\Settings.settings"> |
| | | <Generator>SettingsSingleFileGenerator</Generator> |
| | | <LastGenOutput>Settings.Designer.cs</LastGenOutput> |
| | | </None> |
| | | <Compile Include="Properties\Settings.Designer.cs"> |
| | | <AutoGen>True</AutoGen> |
| | | <DependentUpon>Settings.settings</DependentUpon> |
| | | <DesignTimeSharedInput>True</DesignTimeSharedInput> |
| | | </Compile> |
| | | <Compile Include="ScaleComThread.cs"> |
| | | <SubType>Code</SubType> |
| | | </Compile> |
| | | <Compile Include="ScaleTcpThread.cs" /> |
| | | <Compile Include="stndisplay.cs"> |
| | | <SubType>Form</SubType> |
| | | </Compile> |
| | | <Compile Include="stndisplay.Designer.cs"> |
| | | <DependentUpon>stndisplay.cs</DependentUpon> |
| | | </Compile> |
| | | <Compile Include="UpdateThread.cs" /> |
| | | <Compile Include="warn.cs"> |
| | | <SubType>Form</SubType> |
| | | </Compile> |
| | | <Compile Include="warn.Designer.cs"> |
| | | <DependentUpon>warn.cs</DependentUpon> |
| | | </Compile> |
| | | <Compile Include="warn1.cs"> |
| | | <SubType>Form</SubType> |
| | | </Compile> |
| | | <Compile Include="warn1.Designer.cs"> |
| | | <DependentUpon>warn1.cs</DependentUpon> |
| | | </Compile> |
| | | </ItemGroup> |
| | | <ItemGroup> |
| | | <None Include="bin\Debug\image\sta_l.png" /> |
| | | </ItemGroup> |
| | | <ItemGroup> |
| | | <None Include="bin\Debug\image\sta_b.png" /> |
| | | </ItemGroup> |
| | | <ItemGroup> |
| | | <None Include="bin\Debug\image\question.png" /> |
| | | </ItemGroup> |
| | | <ItemGroup> |
| | | <BootstrapperPackage Include="Microsoft.Net.Client.3.5"> |
| | | <Visible>False</Visible> |
| | | <ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName> |
| | | <Install>false</Install> |
| | | </BootstrapperPackage> |
| | | <BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1"> |
| | | <Visible>False</Visible> |
| | | <ProductName>.NET Framework 3.5 SP1</ProductName> |
| | | <Install>true</Install> |
| | | </BootstrapperPackage> |
| | | </ItemGroup> |
| | | <ItemGroup> |
| | | <None Include="bin\Debug\image\fork_l.png" /> |
| | | <None Include="bin\Debug\image\info.PNG" /> |
| | | <None Include="bin\Debug\image\warn.png" /> |
| | | <Content Include="System Tools XP.ico" /> |
| | | </ItemGroup> |
| | | <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> |
| | | <!-- To modify your build process, add your task inside one of the targets below and uncomment it. |
| | | Other similar extension points exist, see Microsoft.Common.targets. |
| | | <Target Name="BeforeBuild"> |
| | | </Target> |
| | | <Target Name="AfterBuild"> |
| | | </Target> |
| | | --> |
| | | </Project> |
| New file |
| | |
| | | <?xml version="1.0" encoding="utf-8"?> |
| | | <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0"> |
| | | <PropertyGroup> |
| | | <ProjectView>ShowAllFiles</ProjectView> |
| | | <PublishUrlHistory /> |
| | | <InstallUrlHistory /> |
| | | <SupportUrlHistory /> |
| | | <UpdateUrlHistory /> |
| | | <BootstrapperUrlHistory /> |
| | | <ErrorReportUrlHistory /> |
| | | <FallbackCulture>zh-CN</FallbackCulture> |
| | | <VerifyUploadedFiles>false</VerifyUploadedFiles> |
| | | </PropertyGroup> |
| | | </Project> |
| New file |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Data; |
| | | using DevComponents.DotNetBar.Controls; |
| | | using System.Windows.Forms; |
| | | using System.Drawing; |
| | | using System.Data.SqlClient; |
| | | using com.force.json; |
| | | |
| | | namespace WCS |
| | | { |
| | | public class WcsUpdate |
| | | { |
| | | /// <summary> |
| | | /// æ·»å ListViewç颿¾ç¤º |
| | | /// </summary> |
| | | /// <param name="le">listview</param> |
| | | /// <param name="seq">éè¦</param> |
| | | /// <param name="Errif">å¼å¸¸ä¿¡æ¯</param> |
| | | /// <param name="arg_string">æ¾ç¤ºå
容</param> |
| | | public static void add_dw_log(ListViewEx le, string seq, string Errif, string arg_string) |
| | | { |
| | | try |
| | | { |
| | | ListViewItem lvi = new ListViewItem(); |
| | | lvi.SubItems[0].Text = "ã" + DateTime.Now.ToString() + "ã" + seq + arg_string; |
| | | if (Errif == "N") |
| | | { |
| | | lvi.ForeColor = Color.Black; |
| | | } |
| | | else if (Errif == "E") |
| | | { |
| | | lvi.ForeColor = Color.Red; |
| | | } |
| | | else if (Errif == "P") |
| | | { |
| | | lvi.ForeColor = Color.Blue; |
| | | } |
| | | le.Items.Add(lvi); |
| | | le.EnsureVisible(le.Items.Count - 1); |
| | | } |
| | | catch (Exception em) |
| | | { |
| | | ListViewItem lvi = new ListViewItem(); |
| | | lvi.SubItems[0].Text = "ã" + DateTime.Now.ToString() + "ã" + seq + arg_string + "å¼å¸¸ï¼" + em.Message; |
| | | le.Items.Add(lvi); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 读åwmså½ä»¤æ¡£wms_command表ï¼çæåºåºå·¥ä½æ¡£ |
| | | /// </summary> |
| | | /// <param name="le"></param> |
| | | /// <param name="seq"></param> |
| | | /// <returns></returns> |
| | | public static void ProcOutToWorkData(ListViewEx le, string seq) |
| | | { |
| | | string s_wmsId = "", s_boxId = "", s_location = "", s_locno = ""; |
| | | string ls_error_memo = "", sql = ""; |
| | | int i_station = 0, i_wrkno = 0; |
| | | DateTime ldt_date = System.DateTime.Now; |
| | | |
| | | add_dw_log(le, seq, "N", "--å¤çWMSå½ä»¤æ¡£ï¼çæåºåºå·¥ä½æ¡£......"); |
| | | |
| | | try |
| | | { |
| | | //sql = "select * from asr_wrk_masp where wrk_sts<5 or (wrk_sts>10 and wrk_sts<14)"; |
| | | //int count = Common.ExecAsrsSelect1(sql); |
| | | //if (Common.GetWrkOutCount() > 0 || Common.GetWrkInCount() > 0) |
| | | if (Common.plc_s_loading[0, 0] == "Y" || Common.plc_s_loading[0, 1] == "Y") |
| | | { |
| | | add_dw_log(le, seq, "N", "--ç«ç¹æç©ï¼æ æ³çæåºåºå·¥ä½æ¡£......"); |
| | | return; |
| | | } |
| | | if (Common.GetWrkCount() > 0) |
| | | { |
| | | add_dw_log(le, seq, "N", "--工使¡£ä¸å卿ªå®æèµæï¼æ æ³çæåºåºå·¥ä½æ¡£......"); |
| | | return; |
| | | } |
| | | |
| | | sql = "select top 1 wmsId,boxId,station,loc_no from wms_command "; |
| | | sql += " where messageName='StackerStoreOut' and status<>'Y' order by status"; |
| | | DataView dv = Common.ExecAsrsSelect(sql); |
| | | if (dv.Count <= 0) |
| | | { |
| | | return; |
| | | } |
| | | foreach (DataRowView drow in dv) |
| | | { |
| | | s_wmsId = drow[0].ToString(); |
| | | s_boxId = drow[1].ToString(); |
| | | i_station = Int32.Parse(drow[2].ToString()); |
| | | s_location = drow[3].ToString(); |
| | | } |
| | | add_dw_log(le, "", "P", " " + seq + ".1 æ£å¨å¤çå¨è½¬ç®±åå·:" + s_boxId); |
| | | |
| | | sql = "select loc_no from asr_stk_mast where boxId='" + s_boxId + "' and loc_sts='D'"; |
| | | dv = Common.ExecAsrsSelect(sql); |
| | | if (dv.Count <= 0) |
| | | { |
| | | ls_error_memo = " " + seq + ".2 ç¼å·" + s_boxId + "çå¨è½¬ç®±ä¸å卿éå¨åºç¶æï¼è¯·æ£æ¥"; |
| | | add_dw_log(le, "", "E", ls_error_memo); |
| | | goto re; |
| | | } |
| | | foreach (DataRowView drow in dv) |
| | | { |
| | | s_locno = drow[0].ToString(); |
| | | } |
| | | if (s_location != s_locno && s_location != "") |
| | | { |
| | | ls_error_memo = " " + seq + ".3 WMSä¸åçå¨è½¬ç®±ç¼å·(" + s_boxId + ")åºåºåºä½(" + s_location + ")ä¸ASRSåºååºä½(" + s_locno + ")ä¸ç¬¦"; |
| | | add_dw_log(le, "", "E", ls_error_memo); |
| | | goto re; |
| | | } |
| | | |
| | | i_wrkno = Common.GetWrkno(2); |
| | | sql = "insert into asr_wrk_masp(wrk_no,wrk_sts,io_type,crn_no,io_pri,source_loc_no,sta_no,source_sta_no,wmsId,boxId) "; |
| | | sql += " values(" + i_wrkno + ",11,110,1,13.5,'" + s_locno + "',1,2,'" + s_wmsId + "','" + s_boxId + "'); "; |
| | | sql += " update asr_stk_mast set loc_sts='R' where loc_no='" + s_locno + "'; "; |
| | | sql += " update wms_command set status='Y' where wmsId='" + s_wmsId + "' and boxId='" + s_boxId + "';"; |
| | | SqlConnection sqlconn = new SqlConnection(Common.sqlcon); |
| | | sqlconn.Open(); |
| | | SqlTransaction sqltrans = sqlconn.BeginTransaction(); |
| | | SqlCommand sqlcmd = new SqlCommand(sql, sqlconn); |
| | | sqlcmd.Transaction = sqltrans; |
| | | try |
| | | { |
| | | sqlcmd.ExecuteNonQuery(); |
| | | sqltrans.Commit(); |
| | | } |
| | | catch (SqlException t) |
| | | { |
| | | sqltrans.Rollback(); |
| | | //sqlcommon.Close(); |
| | | ls_error_memo = " " + seq + ".4 æå
¥å·¥ä½ä¸»æ¡£[asr_wrk_masp]é误 !åå·:" + s_boxId + " å¼å¸¸:" + t.Message; |
| | | add_dw_log(le, "", "E", ls_error_memo); |
| | | goto re; |
| | | } |
| | | finally |
| | | { |
| | | sqlcmd.Dispose(); |
| | | sqlconn.Dispose(); |
| | | } |
| | | return; |
| | | |
| | | re: |
| | | sql = "update wms_command set status='X' where wmsId='" + s_wmsId + "' and boxId='" + s_boxId + "'"; |
| | | bool result = Common.ExecAsrsModify(sql); |
| | | if (!result) |
| | | { |
| | | ls_error_memo = " " + seq + ".5 æ´æ°wmså½ä»¤æ¡£å¤±è´¥!wmsIdï¼" + s_wmsId + "boxIdï¼" + s_boxId; |
| | | add_dw_log(le, "", "E", ls_error_memo); |
| | | } |
| | | } |
| | | catch (Exception em) |
| | | { |
| | | ls_error_memo = " " + seq + ".6 å¤çå¾
å¤çæ¡£çæåºåºå·¥ä½æ¡£å¤±è´¥ï¼" + em.Message; |
| | | add_dw_log(le, "", "E", ls_error_memo); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// å¤ç工使¡£ä¸å·¥ä½ç¶æä¸º4å14ã6çèµæï¼æ´æ°åºåæ¡£ãå¾
å¤çæ¡£ï¼å¹¶æ·»å 䏿¥wmsä»»å¡éåcommandQueue |
| | | /// </summary> |
| | | public static void ProcWorkMast(ListViewEx le, string seq) |
| | | { |
| | | string ls_error_memo = "" ,sql = ""; |
| | | int li_wrk_no = 0, li_wrk_sts = 0, li_io_type = 0, li_sta_no = 0, li_source_sta_no = 0, li_wrk_model = 1; |
| | | string ls_loc_no = "", ls_source_loc_no = "", ls_wmsId = "", ls_boxId = ""; |
| | | DateTime ldt_date = System.DateTime.Now; |
| | | add_dw_log(le, seq, "N", "--å¤ç工使¡£ (status=4,14)......"); |
| | | try |
| | | { |
| | | try |
| | | { |
| | | DataView dv = Common.ExecAsrsSelect("select getdate() from sys_dual"); |
| | | foreach (System.Data.DataRowView drow in dv) |
| | | { |
| | | ldt_date = Convert.ToDateTime(drow[0]); |
| | | } |
| | | } |
| | | catch (SqlException) |
| | | { |
| | | return; |
| | | } |
| | | |
| | | sql = "select wrk_no,wrk_sts,io_type,loc_no,sta_no,source_sta_no,source_loc_no,wmsId,boxId,wrk_model "; |
| | | sql += " from asr_wrk_masp where (((wrk_sts = 4 Or wrk_sts = 14 ) and io_type <> 103 and io_type <> 104 and io_type <> 107 ) or (wrk_sts = 2 and io_type=6)) "; |
| | | sql += " order by upd_mk,io_time,wrk_no"; |
| | | DataView dv_wrkmast = Common.ExecAsrsSelect(sql); |
| | | if (dv_wrkmast==null || dv_wrkmast.Count < 1) |
| | | { |
| | | add_dw_log(le, "", "N", " " + seq + ".1 工使¡£ [asr_wrk_masp] 没æèµæ!"); |
| | | return; |
| | | } |
| | | foreach (DataRowView drow_wrkmast in dv_wrkmast) |
| | | { |
| | | li_wrk_no = Convert.ToInt32(drow_wrkmast[0]); |
| | | li_wrk_sts = Convert.ToInt32(drow_wrkmast[1]); |
| | | li_io_type = Convert.ToInt32(drow_wrkmast[2]); |
| | | ls_loc_no = drow_wrkmast[3].ToString(); |
| | | li_sta_no = Convert.ToInt32(drow_wrkmast[4]); |
| | | li_source_sta_no = Convert.ToInt32(drow_wrkmast[5]); |
| | | ls_source_loc_no = drow_wrkmast[6].ToString(); |
| | | ls_wmsId = drow_wrkmast[7].ToString(); |
| | | ls_boxId = drow_wrkmast[8].ToString(); |
| | | li_wrk_model = Convert.ToInt32(drow_wrkmast[9].ToString()); |
| | | |
| | | add_dw_log(le, "", "P", " " + seq + ".2 å¤ç工使¡£:" + li_wrk_no.ToString()); |
| | | SqlConnection sqlconn = new SqlConnection(Common.sqlcon); |
| | | sqlconn.Open(); |
| | | SqlTransaction sqltrans = sqlconn.BeginTransaction(); |
| | | if (li_wrk_sts == 4) |
| | | { |
| | | switch (li_io_type) |
| | | { |
| | | case 10: |
| | | sql = "update asr_stk_mast set loc_sts='D',io_time='" + ldt_date + "',wmsId='" + ls_wmsId + "',boxId='" + ls_boxId + "'"; |
| | | sql += " where loc_no='" + ls_loc_no + "' and (loc_sts = 'S' Or loc_sts = 'Q')"; |
| | | SqlCommand cmd_10 = new SqlCommand(sql, sqlconn); |
| | | cmd_10.Transaction = sqltrans; |
| | | try |
| | | { |
| | | cmd_10.ExecuteNonQuery(); |
| | | } |
| | | catch (SqlException t) |
| | | { |
| | | sqltrans.Rollback(); |
| | | cmd_10.Dispose(); |
| | | sqlconn.Dispose(); |
| | | ls_error_memo = " " + seq + ".2.1 å
¥åºï¼æ´æ°åºä½ç¶æå¼å¸¸ [asr_stk_mast] !å·¥ä½å·:" + li_wrk_no.ToString() + " åºä½å·:" + ls_loc_no + " å¼å¸¸:" + t.Message; |
| | | add_dw_log(le, "", "E", ls_error_memo); |
| | | goto re; |
| | | } |
| | | break; |
| | | } |
| | | |
| | | sql = "update asr_wrk_masp set wrk_sts=5,modi_time='" + ldt_date + "' where wrk_no=" + li_wrk_no + "; "; |
| | | if (li_wrk_model == 1) |
| | | { |
| | | sql += " update wms_command set Io_status='Y',upd_mk='Y' where wmsId='" + ls_wmsId + "' and boxId='" + ls_boxId + "';"; |
| | | } |
| | | SqlCommand cmd_wrk = new SqlCommand(sql, sqlconn); |
| | | cmd_wrk.Transaction = sqltrans; |
| | | try |
| | | { |
| | | cmd_wrk.ExecuteNonQuery(); |
| | | } |
| | | catch (SqlException t) |
| | | { |
| | | sqltrans.Rollback(); |
| | | cmd_wrk.Dispose(); |
| | | sqlconn.Dispose(); |
| | | ls_error_memo = " " + seq + ".2.2 æ´æ°å·¥ä½ç¶æå¼å¸¸ [asr_wrk_masp] !å·¥ä½å·:" + li_wrk_no.ToString() + " æ¶é´:" + ldt_date.ToString() + " å¼å¸¸:" + t.Message; |
| | | add_dw_log(le, "", "E", ls_error_memo); |
| | | goto re; |
| | | } |
| | | //åWMS䏿¥ç¶æ |
| | | JSONObject json = new JSONObject(); |
| | | json.put("messageName", "StackerTaskState"); |
| | | json.put("boxId", ls_boxId); |
| | | json.put("wmsId", ls_wmsId); |
| | | json.put("type", "STACKER"); |
| | | json.put("flashId", "1"); |
| | | if (li_wrk_model == 1) |
| | | { |
| | | json.put("isInit", 1); |
| | | } |
| | | else |
| | | { |
| | | json.put("isInit", 0); |
| | | } |
| | | json.put("station", "2"); |
| | | JSONObject obj_location = new JSONObject(); |
| | | obj_location.put("s_level", 1); |
| | | obj_location.put("s_location", 10011); |
| | | int e_level = int.Parse(ls_loc_no.Substring(6,1)); |
| | | obj_location.put("e_level", e_level); |
| | | int e_location = int.Parse("1" + ls_loc_no.Substring(2, 3) + ls_loc_no.Substring(1, 1)); |
| | | obj_location.put("e_location", e_location); |
| | | obj_location.put("r_level", 0); |
| | | obj_location.put("r_location", 0); |
| | | json.put("state", 3); |
| | | json.put("location", obj_location); |
| | | } |
| | | else if (li_wrk_sts == 14) |
| | | { |
| | | switch (li_io_type) |
| | | { |
| | | case 110: |
| | | sql = "update asr_stk_mast set loc_sts='O',io_time='" + ldt_date + "',wmsId='',boxId=''"; |
| | | sql += " where loc_no='" + ls_source_loc_no + "' and loc_sts = 'R'"; |
| | | SqlCommand cmd_110 = new SqlCommand(sql, sqlconn); |
| | | cmd_110.Transaction = sqltrans; |
| | | try |
| | | { |
| | | cmd_110.ExecuteNonQuery(); |
| | | } |
| | | catch (SqlException t) |
| | | { |
| | | sqltrans.Rollback(); |
| | | cmd_110.Dispose(); |
| | | sqlconn.Dispose(); |
| | | ls_error_memo = " " + seq + ".2.3 åºåºï¼æ´æ°åºä½ç¶æå¼å¸¸[asr_stk_mast] !åºä½å·:" + ls_source_loc_no + " å¼å¸¸:" + t.Message; |
| | | add_dw_log(le, "", "E", ls_error_memo); |
| | | goto re; |
| | | } |
| | | break; |
| | | } |
| | | |
| | | sql = "update asr_wrk_masp set wrk_sts=15,modi_time='" + ldt_date + "' where wrk_no=" + li_wrk_no + "; "; |
| | | if (li_wrk_model == 1) |
| | | { |
| | | sql += " update wms_command set Io_status='Y',upd_mk='Y' where wmsId='" + ls_wmsId + "' and boxId='" + ls_boxId + "';"; |
| | | } |
| | | SqlCommand cmd_wrk1 = new SqlCommand(sql, sqlconn); |
| | | cmd_wrk1.Transaction = sqltrans; |
| | | try |
| | | { |
| | | cmd_wrk1.ExecuteNonQuery(); |
| | | } |
| | | catch (SqlException t) |
| | | { |
| | | sqltrans.Rollback(); |
| | | cmd_wrk1.Dispose(); |
| | | sqltrans.Dispose(); |
| | | ls_error_memo = " " + seq + ".2.4 æ´æ°å·¥ä½ç¶æå¼å¸¸ [asr_wrk_masp] !å·¥ä½å·:" + li_wrk_no.ToString() + " å¼å¸¸:" + t.Message; |
| | | add_dw_log(le, "", "E", ls_error_memo); |
| | | goto re; |
| | | } |
| | | JSONObject obj_location = new JSONObject(); |
| | | int s_level = int.Parse(ls_source_loc_no.Substring(6, 1)); |
| | | obj_location.put("s_level", s_level); |
| | | int s_location = int.Parse("1" + ls_source_loc_no.Substring(2, 3) + ls_source_loc_no.Substring(1, 1)); |
| | | obj_location.put("s_location", s_location); |
| | | obj_location.put("e_level", 1); |
| | | obj_location.put("e_location", 10011); |
| | | obj_location.put("r_level", 0); |
| | | obj_location.put("r_location", 0); |
| | | } |
| | | sqltrans.Commit(); |
| | | sqlconn.Dispose(); |
| | | } |
| | | } |
| | | catch (SqlException t) |
| | | { |
| | | ls_error_memo = " " + seq + ".2.5 å¤ç工使¡£æ°æ®å¤±è´¥! å¼å¸¸:" + t.Message; |
| | | add_dw_log(le, "", "E", ls_error_memo); |
| | | } |
| | | |
| | | re: |
| | | if (ls_error_memo != "") |
| | | { |
| | | try |
| | | { |
| | | bool bl = Common.ExecAsrsModify("update dbo.asr_wrk_masp set upd_mk ='X',error_time='" + ldt_date + "',error_memo='" + ls_error_memo + "' where wrk_no =" + li_wrk_no + ""); |
| | | } |
| | | catch (SqlException t) |
| | | { |
| | | ls_error_memo = " " + seq + ".3.6 æ´æ°å·¥ä½ä¸»æ¡£ç¶æ [asr_wrk_masp] å¼å¸¸! å·¥ä½å·:" + li_wrk_no.ToString() + " æ¶é´:" + ldt_date.ToString(); |
| | | add_dw_log(le, "", "E", ls_error_memo); |
| | | return; |
| | | } |
| | | |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// å¤ç工使¡£ä¸å·¥ä½ç¶æä¸º5å15çèµæï¼è½¬å岿¡£ |
| | | /// </summary> |
| | | public static void ProcWorkToLog(ListViewEx le, string seq) |
| | | { |
| | | string ls_error_memo = ""; |
| | | add_dw_log(le, seq, "N", "--å¤ç工使¡£è½¬å岿¡£......"); |
| | | int wrkno = 0; |
| | | try |
| | | { |
| | | string sql = "select top 1 wrk_no from asr_wrk_masp where (wrk_sts=5 or wrk_sts=15)"; |
| | | DataView dv = Common.ExecAsrsSelect(sql); |
| | | if (dv.Count <= 0) |
| | | { |
| | | add_dw_log(le, "", "N", " " + seq + ".1 工使¡£ [asr_wrk_masp] 没æèµæå¤ç!"); |
| | | return; |
| | | } |
| | | foreach (DataRowView drow in dv) |
| | | { |
| | | wrkno = int.Parse(drow[0].ToString()); |
| | | } |
| | | add_dw_log(le, "", "P", " " + seq + ".1 æ£å¨å¤ç转å岿¡£" + wrkno); |
| | | |
| | | sql = "insert into asr_wrk_masp_log select * from asr_wrk_masp where wrk_no=" + wrkno + "; "; |
| | | //sql += " and wrk_no not in (select wrk_no from dbo.asr_bas_devp) "; |
| | | //sql += " and wrk_no not in (select wrk_no from dbo.asr_bas_crnp);"; |
| | | sql += " delete from asr_wrk_masp where wrk_no=" + wrkno + "; "; |
| | | //sql += " and wrk_no not in (select wrk_no from dbo.asr_bas_devp) "; |
| | | //sql += " and wrk_no not in (select wrk_no from dbo.asr_bas_crnp);"; |
| | | SqlConnection sqlconn = new SqlConnection(Common.sqlcon); |
| | | sqlconn.Open(); |
| | | SqlTransaction sqltrans = sqlconn.BeginTransaction(); |
| | | SqlCommand sqlcmd = new SqlCommand(sql, sqlconn); |
| | | sqlcmd.Transaction = sqltrans; |
| | | try |
| | | { |
| | | int result = sqlcmd.ExecuteNonQuery(); |
| | | sqltrans.Commit(); |
| | | } |
| | | catch (SqlException t) |
| | | { |
| | | sqltrans.Rollback(); |
| | | //sqlcommon.Close(); |
| | | ls_error_memo = " " + seq + ".1 工使¡£[asr_wrk_masp]转å岿¡£é误 ! å¼å¸¸:" + t.Message; |
| | | add_dw_log(le, "", "E", ls_error_memo); |
| | | } |
| | | finally |
| | | { |
| | | sqlcmd.Dispose(); |
| | | sqlconn.Dispose(); |
| | | } |
| | | return; |
| | | } |
| | | catch (Exception t) |
| | | { |
| | | ls_error_memo = " " + seq + ".2 å¤ç工使¡£è½¬å岿¡£å¤±è´¥! å¼å¸¸:" + t.Message; |
| | | add_dw_log(le, "", "E", ls_error_memo); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// å¤çwmså½ä»¤æ¡£ä¸å·²å®ç»èµæï¼è½¬å岿¡£ |
| | | /// </summary> |
| | | public static void ProcWmsCommandToLog(ListViewEx le, string seq) |
| | | { |
| | | string ls_error_memo = ""; |
| | | add_dw_log(le, seq, "N", "--å¤çWMSå½ä»¤æ¡£è½¬å岿¡£......"); |
| | | try |
| | | { |
| | | string sql = "insert into wms_command_log select * from wms_command where Io_status='Y' and upd_mk='Y';"; |
| | | sql += " delete from wms_command where Io_status='Y' and upd_mk='Y';"; |
| | | SqlConnection sqlconn = new SqlConnection(Common.sqlcon); |
| | | sqlconn.Open(); |
| | | SqlTransaction sqltrans = sqlconn.BeginTransaction(); |
| | | SqlCommand sqlcmd = new SqlCommand(sql, sqlconn); |
| | | sqlcmd.Transaction = sqltrans; |
| | | try |
| | | { |
| | | sqlcmd.ExecuteNonQuery(); |
| | | sqltrans.Commit(); |
| | | } |
| | | catch (SqlException t) |
| | | { |
| | | sqltrans.Rollback(); |
| | | //sqlcommon.Close(); |
| | | ls_error_memo = " " + seq + ".1 WMSå½ä»¤æ¡£è½¬å岿¡£é误 ! å¼å¸¸:" + t.Message; |
| | | add_dw_log(le, "", "E", ls_error_memo); |
| | | } |
| | | finally |
| | | { |
| | | sqlcmd.Dispose(); |
| | | sqlconn.Dispose(); |
| | | } |
| | | return; |
| | | } |
| | | catch (Exception t) |
| | | { |
| | | ls_error_memo = " " + seq + ".2 WMSå½ä»¤æ¡£è½¬å岿¡£å¤±è´¥! å¼å¸¸:" + t.Message; |
| | | add_dw_log(le, "", "E", ls_error_memo); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// åæ¥è´§ä½ä¿¡æ¯å°WMS |
| | | /// </summary> |
| | | public static void ProcReportLocationsResult(ListViewEx le, string seq) |
| | | { |
| | | string ls_error_memo = "", sql = ""; |
| | | string ls_messageName = "", ls_areaIdx = ""; |
| | | int li_requestlength = 0, li_totallength = 0, li_currentlength = 0, li_resultlength = 0; |
| | | string ls_loc_no = "", ls_loc_sts = "", ls_boxId = ""; |
| | | int li_row1 = 0, li_bay1 = 0, li_lev1 = 0; |
| | | add_dw_log(le, seq, "N", "--å¤çWMSè´§ä½ä¿¡æ¯åæ¥å½ä»¤......"); |
| | | try |
| | | { |
| | | sql = "select messageName,requestlength,areaIdx,totallength,currentlength "; |
| | | sql += " from wms_command where messageName='InquiryLocations' and Io_status<>'Y' and currentlength<totallength "; |
| | | DataView dv = Common.ExecAsrsSelect(sql); |
| | | if (dv.Count < 1) |
| | | { |
| | | add_dw_log(le, "", "N", " " + seq + ".1 å½ä»¤æ¡£ [wms_command] 没æè´§ä½åæ¥ä¿¡æ¯èµæ!"); |
| | | return; |
| | | } |
| | | foreach (DataRowView drow in dv) |
| | | { |
| | | ls_messageName = drow[0].ToString(); |
| | | li_requestlength = Convert.ToInt32(drow[1]); |
| | | ls_areaIdx = drow[2].ToString(); |
| | | li_totallength = Convert.ToInt32(drow[3]); |
| | | li_currentlength = Convert.ToInt32(drow[4]); |
| | | } |
| | | JSONArray array = new JSONArray(); |
| | | sql = " select top " + li_requestlength + " loc_no,loc_sts,row1,bay1,lev1,boxId from asr_stk_mast "; |
| | | sql += " where loc_no not in (select top " + li_currentlength + " loc_no from asr_stk_mast order by lev1,bay1,row1) "; |
| | | sql += " order by lev1,bay1,row1"; |
| | | DataView dv_stk = Common.ExecAsrsSelect(sql); |
| | | li_resultlength = dv_stk.Count; |
| | | if (li_resultlength <= 0) |
| | | { |
| | | return; |
| | | } |
| | | add_dw_log(le, "", "P", " " + seq + ".2 æ£å¨å¤çè´§ä½ä¿¡æ¯åæ¥ï¼å
±" + li_resultlength + "ç¬æ°æ®"); |
| | | foreach (DataRowView drow in dv_stk) |
| | | { |
| | | ls_loc_no = drow[0].ToString(); |
| | | ls_loc_sts = drow[1].ToString(); |
| | | li_row1 = Convert.ToInt32(drow[2]); |
| | | li_bay1 = Convert.ToInt32(drow[3]); |
| | | li_lev1 = Convert.ToInt32(drow[4]); |
| | | ls_boxId = drow[5].ToString(); |
| | | JSONObject jsonres = new JSONObject(); |
| | | jsonres.put("level", li_lev1); |
| | | string location = "1" + li_bay1.ToString().PadLeft(3, '0') + li_row1; |
| | | jsonres.put("location", long.Parse(location)); |
| | | int li_state = -1; |
| | | switch (ls_loc_sts) |
| | | { |
| | | case "O": |
| | | li_state = 0; |
| | | break; |
| | | case "R": |
| | | li_state = 1; |
| | | break; |
| | | case "S": |
| | | li_state = 1; |
| | | break; |
| | | case "D": |
| | | li_state = 10; |
| | | break; |
| | | case "X": |
| | | li_state = -1; |
| | | break; |
| | | } |
| | | jsonres.put("state", li_state); |
| | | jsonres.put("boxId", ls_boxId); |
| | | array.put(jsonres); |
| | | } |
| | | |
| | | sql = "update wms_command set currentlength=currentlength+" + li_resultlength + ", "; |
| | | sql += " Io_status = case when (currentlength+" + li_resultlength + ">=totallength) then 'Y' else 'N' end "; |
| | | sql += " ,upd_mk = case when (currentlength+" + li_resultlength + ">=totallength) then 'Y' else 'N' end "; |
| | | sql += " where messageName='InquiryLocations' and Io_status<>'Y' and currentlength<totallength "; |
| | | bool bl = Common.ExecAsrsModify(sql); |
| | | if (!bl) |
| | | { |
| | | ls_error_memo = " " + seq + ".3 WMSå¤çè´§ä½ä¿¡æ¯åæ¥å¤±è´¥! "; |
| | | add_dw_log(le, "", "E", ls_error_memo); |
| | | } |
| | | } |
| | | catch (Exception t) |
| | | { |
| | | ls_error_memo = " " + seq + ".4 WMSå¤çè´§ä½ä¿¡æ¯åæ¥å¤±è´¥! å¼å¸¸:" + t.Message; |
| | | add_dw_log(le, "", "E", ls_error_memo); |
| | | } |
| | | } |
| | | |
| | | } |
| | | } |
| New file |
| | |
| | | <?xml version="1.0"?> |
| | | <configuration> |
| | | <startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5"/></startup></configuration> |
| New file |
| | |
| | | [System] |
| | | //æå¡å¨IP |
| | | //sysIp=172.17.20.240 |
| | | sysIp=192.168.4.15 |
| | | |
| | | //å¤ä¸ªå åæºIPä¹é´;åå² |
| | | crn_ip=10.10.10.10;10.10.10.18;10.10.10.19 |
| | | |
| | | //å¤ä¸ªPLC IPä¹é´;åå² |
| | | plc_ip=10.10.10.100 |
| | | |
| | | //å¤ä¸ªæ¡ç é
读å¨ä¹é´;åå² |
| | | barcode_ip=10.10.10.102;10.10.10.104 |
| | | |
| | | //å¤ä¸ªledä¹é´;åå² |
| | | led_ip=10.10.10.101;10.10.10.102;10.10.10.103;10.10.10.104;10.10.10.105 |
| | | |
| | | //å¤ä¸ªç£
秤ä¹é´;åå² |
| | | //scale_ip=1;2;3;4 |
| | | |
| | | Ver= |
| | | companyName=æµæ±ä¸æ¬ç«åºææ¯æéå
¬å¸ |
| | | scanTimeout=4 |
| | | |
| | | //WMSçç½å |
| | | //HttpUrl=http://10.10.10.211:8081/jzwms/rpc/pakin/loc/v1 |
| | | HttpUrl=http://172.17.20.240:8080//klswms/rpc/pakin/loc/v1 |
| | | |
| | | //WCS ip+ç«¯å£ |
| | | wcsip=127.0.0.1 |
| | | wcsport=1200 |
| | | |
| | | |
| | | |
| | | |
| New file |
| | |
| | | <?xml version="1.0"?> |
| | | <configuration> |
| | | <startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5"/></startup></configuration> |
| New file |
| | |
| | | <?xml version="1.0"?> |
| | | <configuration> |
| | | <startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5"/></startup></configuration> |
| New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8" standalone="yes"?> |
| | | <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"> |
| | | <assemblyIdentity version="1.0.0.0" name="MyApplication.app"/> |
| | | <trustInfo xmlns="urn:schemas-microsoft-com:asm.v2"> |
| | | <security> |
| | | <requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3"> |
| | | <requestedExecutionLevel level="asInvoker" uiAccess="false"/> |
| | | </requestedPrivileges> |
| | | </security> |
| | | </trustInfo> |
| | | </assembly> |
| New file |
| | |
| | | èªå¨åç«ä½ä»å¨ç³»ç» |
| New file |
| | |
| | | èªå¨åç«ä½ä»å¨ç³»ç» |
| New file |
| | |
| | | èªå¨åç«ä½ä»å¨ç³»ç» |
| New file |
| | |
| | | èªå¨åç«ä½ä»å¨ç³»ç» |
| New file |
| | |
| | | {"mapName":"CDWCS","rackCount":4,"crnCount":1,"stbCount":20,"hpPosition":0,"minBayNo":1,"floors":4,"racks":[{"type":"rack","id":"rack3","top":281,"left":463,"width":846,"height":24,"minBayNo":1,"maxBayNo":38},{"type":"rack","id":"rack4","top":313,"left":463,"width":846,"height":24,"minBayNo":1,"maxBayNo":38},{"type":"rack","id":"rack1","top":168,"left":463,"width":846,"height":24,"minBayNo":1,"maxBayNo":38},{"type":"rack","id":"rack2","top":201,"left":463,"width":846,"height":24,"minBayNo":1,"maxBayNo":38}],"rackDescs":[{"type":"rackDescs","id":"lb_desc2","text":"#4","top":343,"left":1246,"width":33,"height":23},{"type":"rackDescs","id":"lb_desc1","text":"#1","top":142,"left":1249,"width":30,"height":23}],"crns":[{"type":"crane","id":"crn-2","text":"2","top":242,"left":606,"width":93,"height":22},{"type":"track","id":"lb_track2","text":"","top":252,"left":386,"width":1004,"height":2}],"areas":[{"type":"Control_floor","id":"tabControl_floor1","text":"楼å±","top":89,"left":99,"width":1628,"height":610,"floors":[{"type":"floor","id":"page_floor1","text":"1F","top":4,"left":22,"width":1602,"height":602,"stns":[{"type":"stn","id":"site-105","text":"105","top":375,"left":711,"width":60,"height":24},{"type":"stn","id":"site-103","text":"103","top":342,"left":606,"width":60,"height":24},{"type":"stn","id":"site-101","text":"101","top":405,"left":606,"width":60,"height":24},{"type":"stn","id":"site-102","text":"102","top":375,"left":606,"width":60,"height":24},{"type":"stn","id":"site-104","text":"104","top":343,"left":711,"width":60,"height":24}]},{"type":"floor","id":"page_floor2","text":"2F","top":4,"left":22,"width":1602,"height":602,"stns":[{"type":"stn","id":"site-202","text":"202","top":372,"left":663,"width":60,"height":24},{"type":"stn","id":"site-201","text":"201","top":402,"left":663,"width":60,"height":24},{"type":"stn","id":"site-203","text":"203","top":342,"left":663,"width":60,"height":24},{"type":"stn","id":"site-204","text":"204","top":342,"left":796,"width":60,"height":24},{"type":"stn","id":"site-205","text":"205","top":372,"left":796,"width":60,"height":24}]},{"type":"floor","id":"page_floor3","text":"3F","top":4,"left":22,"width":1602,"height":602,"stns":[{"type":"stn","id":"site-302","text":"302","top":372,"left":663,"width":60,"height":24},{"type":"stn","id":"site-301","text":"301","top":402,"left":663,"width":60,"height":24},{"type":"stn","id":"site-303","text":"303","top":342,"left":663,"width":60,"height":24},{"type":"stn","id":"site-304","text":"304","top":342,"left":796,"width":60,"height":24},{"type":"stn","id":"site-305","text":"305","top":372,"left":796,"width":60,"height":24}]},{"type":"floor","id":"page_floor4","text":"4F","top":4,"left":22,"width":1602,"height":602,"stns":[{"type":"stn","id":"site-402","text":"402","top":375,"left":568,"width":60,"height":24},{"type":"stn","id":"site-401","text":"401","top":405,"left":568,"width":60,"height":24},{"type":"stn","id":"site-403","text":"403","top":345,"left":568,"width":60,"height":24},{"type":"stn","id":"site-404","text":"404","top":345,"left":701,"width":60,"height":24},{"type":"stn","id":"site-405","text":"405","top":375,"left":701,"width":60,"height":24}]}]}]} |
| New file |
| | |
| | | {"mapName":"STWCS","rackCount":16,"crnCount":4,"stbCount":16,"hpPosition":0,"minBayNo":2,"floors":1,"racks":[{"type":"rack","id":"rack4","top":549,"left":412,"width":846,"height":20,"minBayNo":2,"maxBayNo":31},{"type":"rack","id":"rack1","top":642,"left":413,"width":846,"height":20,"minBayNo":2,"maxBayNo":31},{"type":"rack","id":"rack2","top":619,"left":413,"width":846,"height":20,"minBayNo":2,"maxBayNo":31},{"type":"rack","id":"rack3","top":571,"left":412,"width":846,"height":20,"minBayNo":2,"maxBayNo":31},{"type":"rack","id":"rack8","top":435,"left":412,"width":846,"height":20,"minBayNo":2,"maxBayNo":31},{"type":"rack","id":"rack5","top":527,"left":412,"width":846,"height":20,"minBayNo":2,"maxBayNo":31},{"type":"rack","id":"rack6","top":505,"left":412,"width":846,"height":20,"minBayNo":2,"maxBayNo":31},{"type":"rack","id":"rack7","top":457,"left":412,"width":846,"height":20,"minBayNo":2,"maxBayNo":31},{"type":"rack","id":"rack12","top":322,"left":412,"width":846,"height":20,"minBayNo":2,"maxBayNo":31},{"type":"rack","id":"rack9","top":413,"left":412,"width":846,"height":20,"minBayNo":2,"maxBayNo":31},{"type":"rack","id":"rack10","top":391,"left":412,"width":846,"height":20,"minBayNo":2,"maxBayNo":31},{"type":"rack","id":"rack11","top":344,"left":412,"width":846,"height":20,"minBayNo":2,"maxBayNo":31},{"type":"rack","id":"rack16","top":206,"left":412,"width":846,"height":20,"minBayNo":2,"maxBayNo":31},{"type":"rack","id":"rack13","top":300,"left":412,"width":846,"height":20,"minBayNo":2,"maxBayNo":31},{"type":"rack","id":"rack15","top":228,"left":412,"width":846,"height":20,"minBayNo":2,"maxBayNo":31},{"type":"rack","id":"rack14","top":278,"left":412,"width":846,"height":20,"minBayNo":2,"maxBayNo":31}],"rackDescs":[{"type":"rackDescs","id":"lb_desc16","text":"#1","top":664,"left":1228,"width":30,"height":23},{"type":"rackDescs","id":"lb_desc1","text":"#16","top":181,"left":1217,"width":41,"height":23}],"crns":[{"type":"crane","id":"crn-4","text":"4","top":252,"left":501,"width":93,"height":22},{"type":"track","id":"lb_track1","text":"","top":605,"left":332,"width":971,"height":2},{"type":"crane","id":"crn-3","text":"3","top":367,"left":512,"width":93,"height":22},{"type":"track","id":"lb_track2","text":"","top":489,"left":332,"width":972,"height":2},{"type":"crane","id":"crn-2","text":"2","top":481,"left":501,"width":93,"height":22},{"type":"track","id":"lb_track5","text":"","top":376,"left":333,"width":974,"height":2},{"type":"track","id":"lb_track4","text":"","top":260,"left":335,"width":975,"height":2},{"type":"crane","id":"crn-1","text":"1","top":595,"left":501,"width":93,"height":22}],"areas":[{"type":"Control_floor","id":"tabControl_floor1","text":"楼å±","top":68,"left":80,"width":1275,"height":910,"floors":[{"type":"floor","id":"page_floor1","text":"1F","top":4,"left":22,"width":1249,"height":902,"stns":[{"type":"track","id":"lb_trCart21","text":"","top":93,"left":243,"width":6,"height":569},{"type":"track","id":"lb_trCart22","text":"","top":93,"left":297,"width":6,"height":569},{"type":"stn","id":"site-016","text":"016","top":457,"left":239,"width":69,"height":20},{"type":"stn","id":"site-015","text":"015","top":93,"left":310,"width":100,"height":20},{"type":"stn","id":"site-014","text":"014","top":93,"left":413,"width":92,"height":20},{"type":"stn","id":"site-013","text":"013","top":115,"left":413,"width":92,"height":20},{"type":"stn","id":"site-012","text":"012","top":138,"left":413,"width":92,"height":20},{"type":"stn","id":"site-011","text":"011","top":160,"left":413,"width":92,"height":20},{"type":"stn","id":"site-010","text":"010","top":183,"left":413,"width":92,"height":20},{"type":"stn","id":"site-009","text":"009","top":183,"left":310,"width":100,"height":20},{"type":"stn","id":"site-008","text":"008","top":228,"left":310,"width":100,"height":20},{"type":"stn","id":"site-007","text":"007","top":278,"left":311,"width":100,"height":20},{"type":"stn","id":"site-006","text":"006","top":344,"left":311,"width":100,"height":20},{"type":"stn","id":"site-005","text":"005","top":391,"left":311,"width":100,"height":20},{"type":"stn","id":"site-004","text":"004","top":457,"left":311,"width":100,"height":20},{"type":"stn","id":"site-003","text":"003","top":505,"left":311,"width":100,"height":20},{"type":"stn","id":"site-002","text":"002","top":571,"left":311,"width":100,"height":20},{"type":"stn","id":"site-001","text":"001","top":619,"left":311,"width":100,"height":20}]}]}]} |
| New file |
| | |
| | | [CTRL] |
| | | TOTAL=1 |
| | | [CTRL_1] |
| | | VERSION=T2N(2014)V3.2 |
| | | PNO=3 |
| | | BAUDRATE=115200 |
| | | IP=166.2.10.220 |
| | | GATEWAY=0.0.0.0 |
| | | SUBNETMASK=255.255.0.0 |
| | | MACADDRESS=94:98:a2:0:8c:10 |
| | | WIDTH=256 |
| | | HEIGHT=160 |
| | | DBCOLOR=1 |
| | | oe=0 |
| | | da=1 |
| | | MIRROR=0 |
| | | SCANSTYLE=0 |
| | | LINEORDER=0 |
| | | CLK=0 |
| | | RGMIRROR=0 |
| | | zhanKong=0 |
| New file |
| | |
| | | namespace WCS |
| | | { |
| | | partial class crndisplay |
| | | { |
| | | /// <summary> |
| | | /// Required designer variable. |
| | | /// </summary> |
| | | private System.ComponentModel.IContainer components = null; |
| | | |
| | | /// <summary> |
| | | /// Clean up any resources being used. |
| | | /// </summary> |
| | | /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> |
| | | protected override void Dispose(bool disposing) |
| | | { |
| | | if (disposing && (components != null)) |
| | | { |
| | | components.Dispose(); |
| | | } |
| | | base.Dispose(disposing); |
| | | } |
| | | |
| | | #region Windows Form Designer generated code |
| | | |
| | | /// <summary> |
| | | /// Required method for Designer support - do not modify |
| | | /// the contents of this method with the code editor. |
| | | /// </summary> |
| | | private void InitializeComponent() |
| | | { |
| | | System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(crndisplay)); |
| | | this.labelX1 = new DevComponents.DotNetBar.LabelX(); |
| | | this.crnno = new DevComponents.DotNetBar.Controls.TextBoxX(); |
| | | this.labelX2 = new DevComponents.DotNetBar.LabelX(); |
| | | this.labelX3 = new DevComponents.DotNetBar.LabelX(); |
| | | this.labelX4 = new DevComponents.DotNetBar.LabelX(); |
| | | this.labelX5 = new DevComponents.DotNetBar.LabelX(); |
| | | this.labelX6 = new DevComponents.DotNetBar.LabelX(); |
| | | this.labelX7 = new DevComponents.DotNetBar.LabelX(); |
| | | this.labelX8 = new DevComponents.DotNetBar.LabelX(); |
| | | this.labelX9 = new DevComponents.DotNetBar.LabelX(); |
| | | this.labelX10 = new DevComponents.DotNetBar.LabelX(); |
| | | this.crnid = new DevComponents.DotNetBar.Controls.TextBoxX(); |
| | | this.dstn = new DevComponents.DotNetBar.Controls.TextBoxX(); |
| | | this.wrksts = new DevComponents.DotNetBar.Controls.TextBoxX(); |
| | | this.errinfo = new DevComponents.DotNetBar.Controls.TextBoxX(); |
| | | this.dloc = new DevComponents.DotNetBar.Controls.TextBoxX(); |
| | | this.iotype = new DevComponents.DotNetBar.Controls.TextBoxX(); |
| | | this.crnsts = new DevComponents.DotNetBar.Controls.TextBoxX(); |
| | | this.sloc = new DevComponents.DotNetBar.Controls.TextBoxX(); |
| | | this.sstn = new DevComponents.DotNetBar.Controls.TextBoxX(); |
| | | this.SuspendLayout(); |
| | | // |
| | | // labelX1 |
| | | // |
| | | // |
| | | // |
| | | // |
| | | this.labelX1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; |
| | | this.labelX1.Font = new System.Drawing.Font("å®ä½", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.labelX1.Location = new System.Drawing.Point(3, 2); |
| | | this.labelX1.Margin = new System.Windows.Forms.Padding(4); |
| | | this.labelX1.Name = "labelX1"; |
| | | this.labelX1.Size = new System.Drawing.Size(84, 29); |
| | | this.labelX1.TabIndex = 2; |
| | | this.labelX1.Text = "å åæºå·"; |
| | | // |
| | | // crnno |
| | | // |
| | | this.crnno.BackColor = System.Drawing.Color.LightCyan; |
| | | // |
| | | // |
| | | // |
| | | this.crnno.Border.Class = "TextBoxBorder"; |
| | | this.crnno.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; |
| | | this.crnno.Font = new System.Drawing.Font("å®ä½", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.crnno.ForeColor = System.Drawing.Color.Black; |
| | | this.crnno.Location = new System.Drawing.Point(92, 2); |
| | | this.crnno.Margin = new System.Windows.Forms.Padding(4); |
| | | this.crnno.Name = "crnno"; |
| | | this.crnno.Size = new System.Drawing.Size(48, 25); |
| | | this.crnno.TabIndex = 3; |
| | | // |
| | | // labelX2 |
| | | // |
| | | // |
| | | // |
| | | // |
| | | this.labelX2.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; |
| | | this.labelX2.Font = new System.Drawing.Font("å®ä½", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.labelX2.Location = new System.Drawing.Point(145, 2); |
| | | this.labelX2.Margin = new System.Windows.Forms.Padding(4); |
| | | this.labelX2.Name = "labelX2"; |
| | | this.labelX2.Size = new System.Drawing.Size(56, 29); |
| | | this.labelX2.TabIndex = 4; |
| | | this.labelX2.Text = "å·¥ä½å·"; |
| | | // |
| | | // labelX3 |
| | | // |
| | | // |
| | | // |
| | | // |
| | | this.labelX3.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; |
| | | this.labelX3.Font = new System.Drawing.Font("å®ä½", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.labelX3.Location = new System.Drawing.Point(271, 2); |
| | | this.labelX3.Margin = new System.Windows.Forms.Padding(4); |
| | | this.labelX3.Name = "labelX3"; |
| | | this.labelX3.Size = new System.Drawing.Size(41, 29); |
| | | this.labelX3.TabIndex = 5; |
| | | this.labelX3.Text = "æºç«"; |
| | | // |
| | | // labelX4 |
| | | // |
| | | // |
| | | // |
| | | // |
| | | this.labelX4.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; |
| | | this.labelX4.Font = new System.Drawing.Font("å®ä½", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.labelX4.Location = new System.Drawing.Point(367, 2); |
| | | this.labelX4.Margin = new System.Windows.Forms.Padding(4); |
| | | this.labelX4.Name = "labelX4"; |
| | | this.labelX4.Size = new System.Drawing.Size(56, 29); |
| | | this.labelX4.TabIndex = 6; |
| | | this.labelX4.Text = "ç®æ ç«"; |
| | | // |
| | | // labelX5 |
| | | // |
| | | // |
| | | // |
| | | // |
| | | this.labelX5.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; |
| | | this.labelX5.Font = new System.Drawing.Font("å®ä½", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.labelX5.Location = new System.Drawing.Point(3, 71); |
| | | this.labelX5.Margin = new System.Windows.Forms.Padding(4); |
| | | this.labelX5.Name = "labelX5"; |
| | | this.labelX5.Size = new System.Drawing.Size(84, 29); |
| | | this.labelX5.TabIndex = 7; |
| | | this.labelX5.Text = "æºåºä½"; |
| | | // |
| | | // labelX6 |
| | | // |
| | | // |
| | | // |
| | | // |
| | | this.labelX6.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; |
| | | this.labelX6.Font = new System.Drawing.Font("å®ä½", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.labelX6.Location = new System.Drawing.Point(237, 40); |
| | | this.labelX6.Margin = new System.Windows.Forms.Padding(4); |
| | | this.labelX6.Name = "labelX6"; |
| | | this.labelX6.Size = new System.Drawing.Size(72, 29); |
| | | this.labelX6.TabIndex = 12; |
| | | this.labelX6.Text = "åºå
¥ç±»å"; |
| | | // |
| | | // labelX7 |
| | | // |
| | | // |
| | | // |
| | | // |
| | | this.labelX7.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; |
| | | this.labelX7.Font = new System.Drawing.Font("å®ä½", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.labelX7.Location = new System.Drawing.Point(3, 36); |
| | | this.labelX7.Margin = new System.Windows.Forms.Padding(4); |
| | | this.labelX7.Name = "labelX7"; |
| | | this.labelX7.Size = new System.Drawing.Size(84, 29); |
| | | this.labelX7.TabIndex = 11; |
| | | this.labelX7.Text = "å·¥ä½ç¶æ"; |
| | | // |
| | | // labelX8 |
| | | // |
| | | // |
| | | // |
| | | // |
| | | this.labelX8.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; |
| | | this.labelX8.Font = new System.Drawing.Font("å®ä½", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.labelX8.Location = new System.Drawing.Point(3, 141); |
| | | this.labelX8.Margin = new System.Windows.Forms.Padding(4); |
| | | this.labelX8.Name = "labelX8"; |
| | | this.labelX8.Size = new System.Drawing.Size(84, 29); |
| | | this.labelX8.TabIndex = 10; |
| | | this.labelX8.Text = "å¼å¸¸"; |
| | | // |
| | | // labelX9 |
| | | // |
| | | // |
| | | // |
| | | // |
| | | this.labelX9.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; |
| | | this.labelX9.Font = new System.Drawing.Font("å®ä½", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.labelX9.Location = new System.Drawing.Point(3, 106); |
| | | this.labelX9.Margin = new System.Windows.Forms.Padding(4); |
| | | this.labelX9.Name = "labelX9"; |
| | | this.labelX9.Size = new System.Drawing.Size(89, 29); |
| | | this.labelX9.TabIndex = 9; |
| | | this.labelX9.Text = "å åæºç¶æ"; |
| | | // |
| | | // labelX10 |
| | | // |
| | | // |
| | | // |
| | | // |
| | | this.labelX10.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; |
| | | this.labelX10.Font = new System.Drawing.Font("å®ä½", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.labelX10.Location = new System.Drawing.Point(216, 71); |
| | | this.labelX10.Margin = new System.Windows.Forms.Padding(4); |
| | | this.labelX10.Name = "labelX10"; |
| | | this.labelX10.Size = new System.Drawing.Size(73, 29); |
| | | this.labelX10.TabIndex = 8; |
| | | this.labelX10.Text = "ç®æ åºä½"; |
| | | // |
| | | // crnid |
| | | // |
| | | this.crnid.BackColor = System.Drawing.Color.LightCyan; |
| | | // |
| | | // |
| | | // |
| | | this.crnid.Border.Class = "TextBoxBorder"; |
| | | this.crnid.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; |
| | | this.crnid.Font = new System.Drawing.Font("å®ä½", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.crnid.ForeColor = System.Drawing.Color.Black; |
| | | this.crnid.Location = new System.Drawing.Point(196, 2); |
| | | this.crnid.Margin = new System.Windows.Forms.Padding(4); |
| | | this.crnid.Name = "crnid"; |
| | | this.crnid.Size = new System.Drawing.Size(67, 25); |
| | | this.crnid.TabIndex = 13; |
| | | this.crnid.Text = "9999"; |
| | | // |
| | | // dstn |
| | | // |
| | | this.dstn.BackColor = System.Drawing.Color.LightCyan; |
| | | // |
| | | // |
| | | // |
| | | this.dstn.Border.Class = "TextBoxBorder"; |
| | | this.dstn.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; |
| | | this.dstn.Font = new System.Drawing.Font("å®ä½", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.dstn.ForeColor = System.Drawing.Color.Black; |
| | | this.dstn.Location = new System.Drawing.Point(419, 2); |
| | | this.dstn.Margin = new System.Windows.Forms.Padding(4); |
| | | this.dstn.Name = "dstn"; |
| | | this.dstn.Size = new System.Drawing.Size(79, 25); |
| | | this.dstn.TabIndex = 14; |
| | | // |
| | | // wrksts |
| | | // |
| | | this.wrksts.BackColor = System.Drawing.Color.LightCyan; |
| | | // |
| | | // |
| | | // |
| | | this.wrksts.Border.Class = "TextBoxBorder"; |
| | | this.wrksts.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; |
| | | this.wrksts.Font = new System.Drawing.Font("å®ä½", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.wrksts.ForeColor = System.Drawing.Color.Black; |
| | | this.wrksts.Location = new System.Drawing.Point(92, 36); |
| | | this.wrksts.Margin = new System.Windows.Forms.Padding(4); |
| | | this.wrksts.Name = "wrksts"; |
| | | this.wrksts.Size = new System.Drawing.Size(136, 25); |
| | | this.wrksts.TabIndex = 17; |
| | | // |
| | | // errinfo |
| | | // |
| | | this.errinfo.BackColor = System.Drawing.Color.LightCyan; |
| | | // |
| | | // |
| | | // |
| | | this.errinfo.Border.Class = "TextBoxBorder"; |
| | | this.errinfo.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; |
| | | this.errinfo.Font = new System.Drawing.Font("å®ä½", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.errinfo.ForeColor = System.Drawing.Color.Black; |
| | | this.errinfo.Location = new System.Drawing.Point(92, 141); |
| | | this.errinfo.Margin = new System.Windows.Forms.Padding(4); |
| | | this.errinfo.Name = "errinfo"; |
| | | this.errinfo.Size = new System.Drawing.Size(398, 25); |
| | | this.errinfo.TabIndex = 16; |
| | | // |
| | | // dloc |
| | | // |
| | | this.dloc.BackColor = System.Drawing.Color.LightCyan; |
| | | // |
| | | // |
| | | // |
| | | this.dloc.Border.Class = "TextBoxBorder"; |
| | | this.dloc.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; |
| | | this.dloc.Font = new System.Drawing.Font("å®ä½", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.dloc.ForeColor = System.Drawing.Color.Black; |
| | | this.dloc.Location = new System.Drawing.Point(287, 71); |
| | | this.dloc.Margin = new System.Windows.Forms.Padding(4); |
| | | this.dloc.Name = "dloc"; |
| | | this.dloc.Size = new System.Drawing.Size(165, 25); |
| | | this.dloc.TabIndex = 15; |
| | | // |
| | | // iotype |
| | | // |
| | | this.iotype.BackColor = System.Drawing.Color.LightCyan; |
| | | // |
| | | // |
| | | // |
| | | this.iotype.Border.Class = "TextBoxBorder"; |
| | | this.iotype.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; |
| | | this.iotype.Font = new System.Drawing.Font("å®ä½", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.iotype.ForeColor = System.Drawing.Color.Black; |
| | | this.iotype.Location = new System.Drawing.Point(305, 40); |
| | | this.iotype.Margin = new System.Windows.Forms.Padding(4); |
| | | this.iotype.Name = "iotype"; |
| | | this.iotype.Size = new System.Drawing.Size(192, 25); |
| | | this.iotype.TabIndex = 20; |
| | | // |
| | | // crnsts |
| | | // |
| | | this.crnsts.BackColor = System.Drawing.Color.LightCyan; |
| | | // |
| | | // |
| | | // |
| | | this.crnsts.Border.Class = "TextBoxBorder"; |
| | | this.crnsts.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; |
| | | this.crnsts.Font = new System.Drawing.Font("å®ä½", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.crnsts.ForeColor = System.Drawing.Color.Black; |
| | | this.crnsts.Location = new System.Drawing.Point(92, 106); |
| | | this.crnsts.Margin = new System.Windows.Forms.Padding(4); |
| | | this.crnsts.Name = "crnsts"; |
| | | this.crnsts.Size = new System.Drawing.Size(398, 25); |
| | | this.crnsts.TabIndex = 19; |
| | | // |
| | | // sloc |
| | | // |
| | | this.sloc.BackColor = System.Drawing.Color.LightCyan; |
| | | // |
| | | // |
| | | // |
| | | this.sloc.Border.Class = "TextBoxBorder"; |
| | | this.sloc.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; |
| | | this.sloc.Font = new System.Drawing.Font("å®ä½", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.sloc.ForeColor = System.Drawing.Color.Black; |
| | | this.sloc.Location = new System.Drawing.Point(92, 71); |
| | | this.sloc.Margin = new System.Windows.Forms.Padding(4); |
| | | this.sloc.Name = "sloc"; |
| | | this.sloc.Size = new System.Drawing.Size(120, 25); |
| | | this.sloc.TabIndex = 18; |
| | | // |
| | | // sstn |
| | | // |
| | | this.sstn.BackColor = System.Drawing.Color.LightCyan; |
| | | // |
| | | // |
| | | // |
| | | this.sstn.Border.Class = "TextBoxBorder"; |
| | | this.sstn.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; |
| | | this.sstn.Font = new System.Drawing.Font("å®ä½", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.sstn.ForeColor = System.Drawing.Color.Black; |
| | | this.sstn.Location = new System.Drawing.Point(307, 2); |
| | | this.sstn.Margin = new System.Windows.Forms.Padding(4); |
| | | this.sstn.Name = "sstn"; |
| | | this.sstn.Size = new System.Drawing.Size(60, 25); |
| | | this.sstn.TabIndex = 21; |
| | | // |
| | | // crndisplay |
| | | // |
| | | this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F); |
| | | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
| | | this.ClientSize = new System.Drawing.Size(501, 170); |
| | | this.Controls.Add(this.sstn); |
| | | this.Controls.Add(this.iotype); |
| | | this.Controls.Add(this.crnsts); |
| | | this.Controls.Add(this.sloc); |
| | | this.Controls.Add(this.wrksts); |
| | | this.Controls.Add(this.errinfo); |
| | | this.Controls.Add(this.dloc); |
| | | this.Controls.Add(this.dstn); |
| | | this.Controls.Add(this.crnid); |
| | | this.Controls.Add(this.labelX6); |
| | | this.Controls.Add(this.labelX7); |
| | | this.Controls.Add(this.labelX8); |
| | | this.Controls.Add(this.labelX9); |
| | | this.Controls.Add(this.labelX10); |
| | | this.Controls.Add(this.labelX5); |
| | | this.Controls.Add(this.labelX4); |
| | | this.Controls.Add(this.labelX3); |
| | | this.Controls.Add(this.labelX2); |
| | | this.Controls.Add(this.crnno); |
| | | this.Controls.Add(this.labelX1); |
| | | this.DoubleBuffered = true; |
| | | this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; |
| | | this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); |
| | | this.Margin = new System.Windows.Forms.Padding(4); |
| | | this.MaximizeBox = false; |
| | | this.MinimizeBox = false; |
| | | this.Name = "crndisplay"; |
| | | this.StartPosition = System.Windows.Forms.FormStartPosition.Manual; |
| | | this.Text = "å åæºä¿¡æ¯"; |
| | | this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.crndisplay_FormClosing); |
| | | this.Load += new System.EventHandler(this.crndisplay_Load); |
| | | this.Move += new System.EventHandler(this.crndisplay_Move); |
| | | this.ResumeLayout(false); |
| | | |
| | | } |
| | | |
| | | #endregion |
| | | |
| | | private DevComponents.DotNetBar.LabelX labelX1; |
| | | private DevComponents.DotNetBar.LabelX labelX2; |
| | | private DevComponents.DotNetBar.LabelX labelX3; |
| | | private DevComponents.DotNetBar.LabelX labelX4; |
| | | private DevComponents.DotNetBar.LabelX labelX5; |
| | | private DevComponents.DotNetBar.LabelX labelX6; |
| | | private DevComponents.DotNetBar.LabelX labelX7; |
| | | private DevComponents.DotNetBar.LabelX labelX8; |
| | | private DevComponents.DotNetBar.LabelX labelX9; |
| | | private DevComponents.DotNetBar.LabelX labelX10; |
| | | public DevComponents.DotNetBar.Controls.TextBoxX crnno; |
| | | public DevComponents.DotNetBar.Controls.TextBoxX crnid; |
| | | public DevComponents.DotNetBar.Controls.TextBoxX dstn; |
| | | public DevComponents.DotNetBar.Controls.TextBoxX wrksts; |
| | | public DevComponents.DotNetBar.Controls.TextBoxX errinfo; |
| | | public DevComponents.DotNetBar.Controls.TextBoxX dloc; |
| | | public DevComponents.DotNetBar.Controls.TextBoxX iotype; |
| | | public DevComponents.DotNetBar.Controls.TextBoxX crnsts; |
| | | public DevComponents.DotNetBar.Controls.TextBoxX sloc; |
| | | public DevComponents.DotNetBar.Controls.TextBoxX sstn; |
| | | |
| | | } |
| | | } |
| New file |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.ComponentModel; |
| | | using System.Data; |
| | | using System.Drawing; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Windows.Forms; |
| | | using DevComponents.DotNetBar; |
| | | |
| | | namespace WCS |
| | | { |
| | | public partial class crndisplay : Office2007Form |
| | | { |
| | | Point formPoint;//è®°å½çªä½çä½ç½® |
| | | Point mousePoint; |
| | | public crndisplay() |
| | | { |
| | | InitializeComponent(); |
| | | } |
| | | |
| | | |
| | | private void form_MouseDown(object sender, MouseEventArgs e) |
| | | { |
| | | |
| | | mousePoint = Control.MousePosition; |
| | | formPoint = this.Location; |
| | | |
| | | } |
| | | private void form_MouseMove(object sender, MouseEventArgs e) |
| | | { |
| | | if (e.Button == MouseButtons.Left) |
| | | { |
| | | Point mousePos = Control.MousePosition; |
| | | this.Location = new Point(mousePos.X - mousePoint.X + formPoint.X, mousePos.Y - mousePoint.Y + formPoint.Y); |
| | | } |
| | | |
| | | } |
| | | |
| | | private void crndisplay_FormClosing(object sender, FormClosingEventArgs e) |
| | | { |
| | | Common.form2 = null; |
| | | } |
| | | |
| | | private void crndisplay_Load(object sender, EventArgs e) |
| | | { |
| | | |
| | | ////å åæºç¶æ |
| | | //try |
| | | //{ |
| | | // int crn = 0, wrkno = 0; |
| | | // crn = Int32.Parse(this.crnno.Text) - 1; |
| | | // this.crnsts.Text = Class1.GetCrnStsName(Class1.crn_i_crn_sts[crn]); |
| | | // if (Class1.crn_i_crn_sts[crn] == 8) |
| | | // { |
| | | // this.errinfo.Text = Class1.crn_ycmm[crn].ToString() + "-" + Class1.crn_yczm[crn].ToString() + "ï¼" + Class1.GetErr(Class1.crn_ycmm[crn], Class1.crn_yczm[crn]); |
| | | // } |
| | | // this.crnid.Text = Class1.crn_i_Wrkno[crn].ToString(); |
| | | // this.sstn.Text = Class1.crn_i_fstn[crn].ToString(); |
| | | // this.dstn.Text = Class1.crn_i_tstn[crn].ToString(); |
| | | // this.sloc.Text = Class1.crn_s_Flocno[crn].ToString(); |
| | | // this.dloc.Text=Class1.crn_s_Tlocno[crn].ToString(); |
| | | // DataView dv = Class1.ExecAsrsSelect("select wrk_sts,io_type from dbo.asr_wrk_mast where wrk_no="+wrkno); |
| | | // if (dv.Count > 0) |
| | | // { |
| | | // foreach (DataRowView drv in dv) |
| | | // { |
| | | // int wrksts=Int32.Parse(drv[0].ToString()); |
| | | // int iotype= Int32.Parse(drv[1].ToString()); |
| | | |
| | | // DataView dv1 = Class1.ExecAsrsSelect("select wrk_desc from dbo.asr_bas_wrkstatus where wrk_sts=" + wrksts); |
| | | // if (dv1.Count > 0) |
| | | // { |
| | | // foreach (DataRowView drv1 in dv1) |
| | | // { |
| | | // this.wrksts.Text = drv1[0].ToString(); |
| | | // } |
| | | // } |
| | | // DataView dv2 = Class1.ExecAsrsSelect("select io_desc from dbo.asr_bas_iotype where io_type=" + iotype); |
| | | // if (dv2.Count > 0) |
| | | // { |
| | | // foreach (DataRowView drv2 in dv2) |
| | | // { |
| | | // this.iotype.Text = drv2[0].ToString(); |
| | | // } |
| | | // } |
| | | // } |
| | | // } |
| | | |
| | | //} |
| | | //catch (Exception r) |
| | | //{ |
| | | |
| | | //} |
| | | |
| | | } |
| | | |
| | | private void crndisplay_Move(object sender, EventArgs e) |
| | | { |
| | | //(sender as crndisplay).Refresh(); |
| | | } |
| | | |
| | | } |
| | | } |
| New file |
| | |
| | | <?xml version="1.0" encoding="utf-8"?> |
| | | <root> |
| | | <!-- |
| | | Microsoft ResX Schema |
| | | |
| | | Version 2.0 |
| | | |
| | | The primary goals of this format is to allow a simple XML format |
| | | that is mostly human readable. The generation and parsing of the |
| | | various data types are done through the TypeConverter classes |
| | | associated with the data types. |
| | | |
| | | Example: |
| | | |
| | | ... ado.net/XML headers & schema ... |
| | | <resheader name="resmimetype">text/microsoft-resx</resheader> |
| | | <resheader name="version">2.0</resheader> |
| | | <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> |
| | | <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> |
| | | <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> |
| | | <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> |
| | | <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> |
| | | <value>[base64 mime encoded serialized .NET Framework object]</value> |
| | | </data> |
| | | <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
| | | <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> |
| | | <comment>This is a comment</comment> |
| | | </data> |
| | | |
| | | There are any number of "resheader" rows that contain simple |
| | | name/value pairs. |
| | | |
| | | Each data row contains a name, and value. The row also contains a |
| | | type or mimetype. Type corresponds to a .NET class that support |
| | | text/value conversion through the TypeConverter architecture. |
| | | Classes that don't support this are serialized and stored with the |
| | | mimetype set. |
| | | |
| | | The mimetype is used for serialized objects, and tells the |
| | | ResXResourceReader how to depersist the object. This is currently not |
| | | extensible. For a given mimetype the value must be set accordingly: |
| | | |
| | | Note - application/x-microsoft.net.object.binary.base64 is the format |
| | | that the ResXResourceWriter will generate, however the reader can |
| | | read any of the formats listed below. |
| | | |
| | | mimetype: application/x-microsoft.net.object.binary.base64 |
| | | value : The object must be serialized with |
| | | : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter |
| | | : and then encoded with base64 encoding. |
| | | |
| | | mimetype: application/x-microsoft.net.object.soap.base64 |
| | | value : The object must be serialized with |
| | | : System.Runtime.Serialization.Formatters.Soap.SoapFormatter |
| | | : and then encoded with base64 encoding. |
| | | |
| | | mimetype: application/x-microsoft.net.object.bytearray.base64 |
| | | value : The object must be serialized into a byte array |
| | | : using a System.ComponentModel.TypeConverter |
| | | : and then encoded with base64 encoding. |
| | | --> |
| | | <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> |
| | | <xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> |
| | | <xsd:element name="root" msdata:IsDataSet="true"> |
| | | <xsd:complexType> |
| | | <xsd:choice maxOccurs="unbounded"> |
| | | <xsd:element name="metadata"> |
| | | <xsd:complexType> |
| | | <xsd:sequence> |
| | | <xsd:element name="value" type="xsd:string" minOccurs="0" /> |
| | | </xsd:sequence> |
| | | <xsd:attribute name="name" use="required" type="xsd:string" /> |
| | | <xsd:attribute name="type" type="xsd:string" /> |
| | | <xsd:attribute name="mimetype" type="xsd:string" /> |
| | | <xsd:attribute ref="xml:space" /> |
| | | </xsd:complexType> |
| | | </xsd:element> |
| | | <xsd:element name="assembly"> |
| | | <xsd:complexType> |
| | | <xsd:attribute name="alias" type="xsd:string" /> |
| | | <xsd:attribute name="name" type="xsd:string" /> |
| | | </xsd:complexType> |
| | | </xsd:element> |
| | | <xsd:element name="data"> |
| | | <xsd:complexType> |
| | | <xsd:sequence> |
| | | <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
| | | <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> |
| | | </xsd:sequence> |
| | | <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> |
| | | <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> |
| | | <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> |
| | | <xsd:attribute ref="xml:space" /> |
| | | </xsd:complexType> |
| | | </xsd:element> |
| | | <xsd:element name="resheader"> |
| | | <xsd:complexType> |
| | | <xsd:sequence> |
| | | <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
| | | </xsd:sequence> |
| | | <xsd:attribute name="name" type="xsd:string" use="required" /> |
| | | </xsd:complexType> |
| | | </xsd:element> |
| | | </xsd:choice> |
| | | </xsd:complexType> |
| | | </xsd:element> |
| | | </xsd:schema> |
| | | <resheader name="resmimetype"> |
| | | <value>text/microsoft-resx</value> |
| | | </resheader> |
| | | <resheader name="version"> |
| | | <value>2.0</value> |
| | | </resheader> |
| | | <resheader name="reader"> |
| | | <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
| | | </resheader> |
| | | <resheader name="writer"> |
| | | <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
| | | </resheader> |
| | | <assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> |
| | | <data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
| | | <value> |
| | | AAABAAEAgIAAAAEACAAoTAAAFgAAACgAAACAAAAAAAEAAAEACAAAAAAAAAAAABIXAAASFwAAAAEAAAAA |
| | | AAAAAAAAAAgIABAQEAB7QhAAjFIQAAgQGAAYGBgAISEYACEhGAA5KRgAEBAhACkhIQBaOSEAjFIhAJxa |
| | | IQAQGCkAGCEpACkpKQBaOSkAezkpAHNCKQBrSikAc1opAIRaKQCUcykAMTExAGNCMQBrSjEAY1IxAIRa |
| | | MQCEYzEAhGsxAJxzMQBaOTkAWko5AGtKOQBzWjkAc2M5AIRjOQCMYzkAjGs5AJxrOQCtczkAMTFCAEIx |
| | | QgBKMUIAQkJCAIxjQgCMa0IAMTFKAEI5SgBKOUoAOUpKAEpKSgBaSkoAe1pKAIRrSgBrc0oAKSFSABgx |
| | | UgApMVIAQjFSACk5UgA5QlIASkJSAGtKUgB7SlIASlJSAHtSUgBrWlIAhFpSAHtjUgBza1IAlGtSAIRz |
| | | UgBze1IAnHtSACk5WgBCOVoAOUpaAFpKWgBKUloAWlpaAEI5YwAxQmMASkJjADlKYwA5UmMASlJjAFpS |
| | | YwBaY2MAa2NjAHNjYwCMa2MAe3NjAIx7YwCle2MAnIxjAKWMYwC1jGMAMSlrAFpSawB7e2sAvaVrAEpC |
| | | cwAxSnMAWkpzAEJScwBKWnMAWlpzAFpjcwBrY3MAe2NzAFprcwBza3MAc3NzAKWEcwAxMXsAWlJ7AGtS |
| | | ewA5WnsASlp7AEpjewBaY3sAe2N7AHN7ewB7e3sAhHt7AJR7ewCUjHsApYx7AK2cewBCQoQAWnuEAL2l |
| | | hAAxOYwAUkqMADFajABKWowAY1qMADljjABSY4wAa2OMAEpzjABac4wAY3OMAHNzjACEc4wAY3uMAHN7 |
| | | jACEe4wAjIyMAJyMjAC9pYwAY2OUAHNjlABCc5QAUnOUAFpzlABSe5QAjIyUAJyMlACcnJQAxq2UAMa1 |
| | | lABSSpwAa1KcAHNrnAA5c5wAa3ucAGOEnACEhJwAjIScAFqMnABrjJwAnIycAIyUnABjWqUAa2OlAGtr |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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA |
| | | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA |
| | | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA |
| | | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA |
| | | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA |
| | | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA |
| | | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA |
| | | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA |
| | | AAAAAAAAAAAAAP////////////////////////////////////////////////////////////////// |
| | | //////////////////////////////////////////////////////////////////////////////// |
| | | //////////////////////////////////wAAAABAAAA///////////8AAAAAQAAAH///////////AAA |
| | | AIAAAAB///////////wAAAAAAAAAf//////////8AAAAAAAAAH///////////wAAAAAAAAB///////// |
| | | //8AAAAAAAAAf///////////AAAAAAAAAH///////////wAAAAAAAAB/////gAAAAAMAAAAAAAAAf/// |
| | | /wAAAAAAAAAAAAAAAG////wAAAAAAAAAAAAAAAAP///4AAAAAAAAAAAAAAAAf///8AAAAAAAAAAAAAAA |
| | | AH///+AAAAAAAwAAAAAAAAB////AAAAAAAIAAAAAAAAAf///AAAA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AAAAAAA |
| | | AAAAAA//4AAAAAAAAAAAAAAAAAAP/+AAAAAAAAAAAAAAAAAAD//gAAAAAAAAAAAAAAAAAA//4AAAAAAA |
| | | AAAAAAAAAAAP//AAAAAAAAAAAAAAAAAAD//wAAAAAAAAAAAAAAAAAA//4AAAAAAAAAAAAAAAAAAP/+AA |
| | | AAAAAAAAAAAAAAAAD//gAAAAAAAAAAAAAAAAAA//4AAAAAAAAAAAAAAAAAAP/+AAAAAAAAAAAAAAAAAA |
| | | D//gAAAAAAAAAAAAAAAAAAf/4AAAAAAAAAAAAAAAAAAB/+AAAAAAAAAAAAAAAAAAAP/gAAAAAAAAAAAA |
| | | MAAAAAAP4AAAAAAAAAAAADAAAAAAD+AAAAAAAAAAAAAwAAAAAA/gAAAAAAAAAAAAAAAAAAAP4AAAAAAA |
| | | AAAACAAAAAAAD+AAAAAAAAAAAAgAAAAAAA/gAAAAAAAAAAAIAAAAAAAP4AAAAAAAAAAAAAAAAAAAD+AA |
| | | AAAAAAAAAAAAAAAAAA/gAAAAAAAAAAAAAAAAAAAP4AAAAAAAAAAAAAAAAAAAD+AAAAAAAAAAAAAAAAAA |
| | | AA/4AAAAAAAAAAAAAAAAAAAP/4AAAAAAAAAAAAAAAAAAD//4AAAAAAAAAAAAAAAAAA///wAAAAAAAAAA |
| | | AAAAAAAP///wAAAAAAAAAAAAAAAAD////4AAAAAAAAAAAAAAAA/////wAAAAAAAAAAAAAAAP/////wAA |
| | | AAAAAAAAAAAAH//////wAAAAAAAAAAAAAD///////wAAAAAAAAAAAAB////////wAAAAAAAAAAAA//// |
| | | /////wAAAAAAAAAAAP/////////wAAAAAAAAAAP//////////wAAAAAAAAAP///////////wAAAAAAAA |
| | | D////////////wAAAAAAAD/////////////gAAAAAAB//////////////AAAAAAD///////////////A |
| | | AAAAB///////////////+AAAAD////////////////8AAAD/////////////////+AAP//////////// |
| | | //////////////////////////////////////////////////////////////////////////////// |
| | | //////////////////////////////////////////////////////////////////////////////// |
| | | //////////////////////// |
| | | </value> |
| | | </data> |
| | | </root> |
| New file |
| | |
| | | namespace WCS |
| | | { |
| | | partial class exit |
| | | { |
| | | /// <summary> |
| | | /// Required designer variable. |
| | | /// </summary> |
| | | private System.ComponentModel.IContainer components = null; |
| | | |
| | | /// <summary> |
| | | /// Clean up any resources being used. |
| | | /// </summary> |
| | | /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> |
| | | protected override void Dispose(bool disposing) |
| | | { |
| | | if (disposing && (components != null)) |
| | | { |
| | | components.Dispose(); |
| | | } |
| | | base.Dispose(disposing); |
| | | } |
| | | |
| | | #region Windows Form Designer generated code |
| | | |
| | | /// <summary> |
| | | /// Required method for Designer support - do not modify |
| | | /// the contents of this method with the code editor. |
| | | /// </summary> |
| | | private void InitializeComponent() |
| | | { |
| | | System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(exit)); |
| | | this.yes = new DevComponents.DotNetBar.ButtonX(); |
| | | this.no = new DevComponents.DotNetBar.ButtonX(); |
| | | this.pb = new System.Windows.Forms.PictureBox(); |
| | | this.labelX1 = new DevComponents.DotNetBar.LabelX(); |
| | | this.textBoxX1 = new DevComponents.DotNetBar.Controls.TextBoxX(); |
| | | this.labelX2 = new DevComponents.DotNetBar.LabelX(); |
| | | ((System.ComponentModel.ISupportInitialize)(this.pb)).BeginInit(); |
| | | this.SuspendLayout(); |
| | | // |
| | | // yes |
| | | // |
| | | this.yes.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; |
| | | this.yes.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; |
| | | this.yes.Location = new System.Drawing.Point(104, 176); |
| | | this.yes.Margin = new System.Windows.Forms.Padding(4); |
| | | this.yes.Name = "yes"; |
| | | this.yes.Size = new System.Drawing.Size(87, 31); |
| | | this.yes.TabIndex = 2; |
| | | this.yes.Text = "ç¡®å®"; |
| | | this.yes.Click += new System.EventHandler(this.yes_Click); |
| | | // |
| | | // no |
| | | // |
| | | this.no.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; |
| | | this.no.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; |
| | | this.no.Location = new System.Drawing.Point(246, 176); |
| | | this.no.Margin = new System.Windows.Forms.Padding(4); |
| | | this.no.Name = "no"; |
| | | this.no.Size = new System.Drawing.Size(87, 31); |
| | | this.no.TabIndex = 3; |
| | | this.no.Text = "åæ¶"; |
| | | this.no.Click += new System.EventHandler(this.no_Click); |
| | | // |
| | | // pb |
| | | // |
| | | this.pb.BackgroundImage = global::WCS.Properties.Resources.warn; |
| | | this.pb.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; |
| | | this.pb.Location = new System.Drawing.Point(13, 19); |
| | | this.pb.Margin = new System.Windows.Forms.Padding(4); |
| | | this.pb.Name = "pb"; |
| | | this.pb.Size = new System.Drawing.Size(59, 48); |
| | | this.pb.TabIndex = 0; |
| | | this.pb.TabStop = false; |
| | | // |
| | | // labelX1 |
| | | // |
| | | // |
| | | // |
| | | // |
| | | this.labelX1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; |
| | | this.labelX1.Font = new System.Drawing.Font("微软é
é»", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.labelX1.ForeColor = System.Drawing.Color.Red; |
| | | this.labelX1.Location = new System.Drawing.Point(86, 15); |
| | | this.labelX1.Name = "labelX1"; |
| | | this.labelX1.Size = new System.Drawing.Size(331, 71); |
| | | this.labelX1.TabIndex = 11; |
| | | this.labelX1.Text = "éåºç³»ç»èªå¨ä»åºå°æ æ³æ£å¸¸ä½ä¸ï¼\r\nä¸å¯è½å¯¼è´æ£å¨å
¥åºè´§ç©çæ°æ®å¼å¸¸ï¼\r\néåºå请确认设å¤å·²é½å¤äºç©ºé²ç¶æï¼"; |
| | | // |
| | | // textBoxX1 |
| | | // |
| | | // |
| | | // |
| | | // |
| | | this.textBoxX1.Border.Class = "TextBoxBorder"; |
| | | this.textBoxX1.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; |
| | | this.textBoxX1.Location = new System.Drawing.Point(141, 123); |
| | | this.textBoxX1.Name = "textBoxX1"; |
| | | this.textBoxX1.PasswordChar = '*'; |
| | | this.textBoxX1.Size = new System.Drawing.Size(190, 25); |
| | | this.textBoxX1.TabIndex = 1; |
| | | // |
| | | // labelX2 |
| | | // |
| | | // |
| | | // |
| | | // |
| | | this.labelX2.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; |
| | | this.labelX2.Location = new System.Drawing.Point(60, 124); |
| | | this.labelX2.Name = "labelX2"; |
| | | this.labelX2.Size = new System.Drawing.Size(75, 23); |
| | | this.labelX2.TabIndex = 5; |
| | | this.labelX2.Text = "éåºå¯ç "; |
| | | // |
| | | // exit |
| | | // |
| | | this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F); |
| | | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
| | | this.ClientSize = new System.Drawing.Size(429, 221); |
| | | this.Controls.Add(this.labelX2); |
| | | this.Controls.Add(this.textBoxX1); |
| | | this.Controls.Add(this.labelX1); |
| | | this.Controls.Add(this.no); |
| | | this.Controls.Add(this.yes); |
| | | this.Controls.Add(this.pb); |
| | | this.DoubleBuffered = true; |
| | | this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; |
| | | this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); |
| | | this.Margin = new System.Windows.Forms.Padding(4); |
| | | this.MaximizeBox = false; |
| | | this.MinimizeBox = false; |
| | | this.Name = "exit"; |
| | | this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; |
| | | this.Text = "è¦å"; |
| | | this.Load += new System.EventHandler(this.exit_Load); |
| | | ((System.ComponentModel.ISupportInitialize)(this.pb)).EndInit(); |
| | | this.ResumeLayout(false); |
| | | |
| | | } |
| | | |
| | | #endregion |
| | | |
| | | private System.Windows.Forms.PictureBox pb; |
| | | private DevComponents.DotNetBar.ButtonX yes; |
| | | private DevComponents.DotNetBar.ButtonX no; |
| | | private DevComponents.DotNetBar.LabelX labelX1; |
| | | private DevComponents.DotNetBar.Controls.TextBoxX textBoxX1; |
| | | private DevComponents.DotNetBar.LabelX labelX2; |
| | | } |
| | | } |
| New file |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.ComponentModel; |
| | | using System.Data; |
| | | using System.Drawing; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Windows.Forms; |
| | | using DevComponents.DotNetBar; |
| | | |
| | | namespace WCS |
| | | { |
| | | public partial class exit : Office2007Form |
| | | { |
| | | #region 注é |
| | | //public exit(string txt,string title,int type) |
| | | //{ |
| | | // InitializeComponent(); |
| | | // txtarea.Text = txt; |
| | | // this.Text = title; |
| | | // //1--é®é¢ |
| | | // if (type == 1) |
| | | // { |
| | | // this.pb.BackgroundImage = Image.FromFile(Common.picpath + "question.png"); |
| | | // } |
| | | // //2--Warn |
| | | // else if (type == 2) |
| | | // { |
| | | // this.pb.BackgroundImage = Image.FromFile(Common.picpath + "warn.png"); |
| | | // } |
| | | // //3--é误 |
| | | // else |
| | | // { |
| | | // this.pb.BackgroundImage = Image.FromFile(Common.picpath + "err.png"); |
| | | // } |
| | | |
| | | //} |
| | | #endregion |
| | | |
| | | public exit() |
| | | { |
| | | InitializeComponent(); |
| | | } |
| | | |
| | | private void exit_Load(object sender, EventArgs e) |
| | | { |
| | | Common.sysinfo = false; |
| | | textBoxX1.Focus(); |
| | | //no.Focus(); |
| | | } |
| | | |
| | | private void no_Click(object sender, EventArgs e) |
| | | { |
| | | Common.sysinfo = false; |
| | | this.Close(); |
| | | } |
| | | |
| | | private void yes_Click(object sender, EventArgs e) |
| | | { |
| | | if (textBoxX1.Text == "ds1234") |
| | | { |
| | | Common.sysinfo = true; |
| | | this.Close(); |
| | | } |
| | | else |
| | | { |
| | | MessageBox.Show("å¯ç é误"); |
| | | } |
| | | } |
| | | } |
| | | } |
| New file |
| | |
| | | <?xml version="1.0" encoding="utf-8"?> |
| | | <root> |
| | | <!-- |
| | | Microsoft ResX Schema |
| | | |
| | | Version 2.0 |
| | | |
| | | The primary goals of this format is to allow a simple XML format |
| | | that is mostly human readable. The generation and parsing of the |
| | | various data types are done through the TypeConverter classes |
| | | associated with the data types. |
| | | |
| | | Example: |
| | | |
| | | ... ado.net/XML headers & schema ... |
| | | <resheader name="resmimetype">text/microsoft-resx</resheader> |
| | | <resheader name="version">2.0</resheader> |
| | | <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> |
| | | <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> |
| | | <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> |
| | | <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> |
| | | <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> |
| | | <value>[base64 mime encoded serialized .NET Framework object]</value> |
| | | </data> |
| | | <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
| | | <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> |
| | | <comment>This is a comment</comment> |
| | | </data> |
| | | |
| | | There are any number of "resheader" rows that contain simple |
| | | name/value pairs. |
| | | |
| | | Each data row contains a name, and value. The row also contains a |
| | | type or mimetype. Type corresponds to a .NET class that support |
| | | text/value conversion through the TypeConverter architecture. |
| | | Classes that don't support this are serialized and stored with the |
| | | mimetype set. |
| | | |
| | | The mimetype is used for serialized objects, and tells the |
| | | ResXResourceReader how to depersist the object. This is currently not |
| | | extensible. For a given mimetype the value must be set accordingly: |
| | | |
| | | Note - application/x-microsoft.net.object.binary.base64 is the format |
| | | that the ResXResourceWriter will generate, however the reader can |
| | | read any of the formats listed below. |
| | | |
| | | mimetype: application/x-microsoft.net.object.binary.base64 |
| | | value : The object must be serialized with |
| | | : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter |
| | | : and then encoded with base64 encoding. |
| | | |
| | | mimetype: application/x-microsoft.net.object.soap.base64 |
| | | value : The object must be serialized with |
| | | : System.Runtime.Serialization.Formatters.Soap.SoapFormatter |
| | | : and then encoded with base64 encoding. |
| | | |
| | | mimetype: application/x-microsoft.net.object.bytearray.base64 |
| | | value : The object must be serialized into a byte array |
| | | : using a System.ComponentModel.TypeConverter |
| | | : and then encoded with base64 encoding. |
| | | --> |
| | | <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> |
| | | <xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> |
| | | <xsd:element name="root" msdata:IsDataSet="true"> |
| | | <xsd:complexType> |
| | | <xsd:choice maxOccurs="unbounded"> |
| | | <xsd:element name="metadata"> |
| | | <xsd:complexType> |
| | | <xsd:sequence> |
| | | <xsd:element name="value" type="xsd:string" minOccurs="0" /> |
| | | </xsd:sequence> |
| | | <xsd:attribute name="name" use="required" type="xsd:string" /> |
| | | <xsd:attribute name="type" type="xsd:string" /> |
| | | <xsd:attribute name="mimetype" type="xsd:string" /> |
| | | <xsd:attribute ref="xml:space" /> |
| | | </xsd:complexType> |
| | | </xsd:element> |
| | | <xsd:element name="assembly"> |
| | | <xsd:complexType> |
| | | <xsd:attribute name="alias" type="xsd:string" /> |
| | | <xsd:attribute name="name" type="xsd:string" /> |
| | | </xsd:complexType> |
| | | </xsd:element> |
| | | <xsd:element name="data"> |
| | | <xsd:complexType> |
| | | <xsd:sequence> |
| | | <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
| | | <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> |
| | | </xsd:sequence> |
| | | <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> |
| | | <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> |
| | | <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> |
| | | <xsd:attribute ref="xml:space" /> |
| | | </xsd:complexType> |
| | | </xsd:element> |
| | | <xsd:element name="resheader"> |
| | | <xsd:complexType> |
| | | <xsd:sequence> |
| | | <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
| | | </xsd:sequence> |
| | | <xsd:attribute name="name" type="xsd:string" use="required" /> |
| | | </xsd:complexType> |
| | | </xsd:element> |
| | | </xsd:choice> |
| | | </xsd:complexType> |
| | | </xsd:element> |
| | | </xsd:schema> |
| | | <resheader name="resmimetype"> |
| | | <value>text/microsoft-resx</value> |
| | | </resheader> |
| | | <resheader name="version"> |
| | | <value>2.0</value> |
| | | </resheader> |
| | | <resheader name="reader"> |
| | | <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
| | | </resheader> |
| | | <resheader name="writer"> |
| | | <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
| | | </resheader> |
| | | <assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> |
| | | <data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
| | | <value> |
| | | AAABAAEAgIAAAAEACAAoTAAAFgAAACgAAACAAAAAAAEAAAEACAAAAAAAAAAAABIXAAASFwAAAAEAAAAA |
| | | AAAAAAAAAAgIABAQEAB7QhAAjFIQAAgQGAAYGBgAISEYACEhGAA5KRgAEBAhACkhIQBaOSEAjFIhAJxa |
| | | IQAQGCkAGCEpACkpKQBaOSkAezkpAHNCKQBrSikAc1opAIRaKQCUcykAMTExAGNCMQBrSjEAY1IxAIRa |
| | | MQCEYzEAhGsxAJxzMQBaOTkAWko5AGtKOQBzWjkAc2M5AIRjOQCMYzkAjGs5AJxrOQCtczkAMTFCAEIx |
| | | QgBKMUIAQkJCAIxjQgCMa0IAMTFKAEI5SgBKOUoAOUpKAEpKSgBaSkoAe1pKAIRrSgBrc0oAKSFSABgx |
| | | UgApMVIAQjFSACk5UgA5QlIASkJSAGtKUgB7SlIASlJSAHtSUgBrWlIAhFpSAHtjUgBza1IAlGtSAIRz |
| | | UgBze1IAnHtSACk5WgBCOVoAOUpaAFpKWgBKUloAWlpaAEI5YwAxQmMASkJjADlKYwA5UmMASlJjAFpS |
| | | YwBaY2MAa2NjAHNjYwCMa2MAe3NjAIx7YwCle2MAnIxjAKWMYwC1jGMAMSlrAFpSawB7e2sAvaVrAEpC |
| | | cwAxSnMAWkpzAEJScwBKWnMAWlpzAFpjcwBrY3MAe2NzAFprcwBza3MAc3NzAKWEcwAxMXsAWlJ7AGtS |
| | | ewA5WnsASlp7AEpjewBaY3sAe2N7AHN7ewB7e3sAhHt7AJR7ewCUjHsApYx7AK2cewBCQoQAWnuEAL2l |
| | | hAAxOYwAUkqMADFajABKWowAY1qMADljjABSY4wAa2OMAEpzjABac4wAY3OMAHNzjACEc4wAY3uMAHN7 |
| | | jACEe4wAjIyMAJyMjAC9pYwAY2OUAHNjlABCc5QAUnOUAFpzlABSe5QAjIyUAJyMlACcnJQAxq2UAMa1 |
| | | lABSSpwAa1KcAHNrnAA5c5wAa3ucAGOEnACEhJwAjIScAFqMnABrjJwAnIycAIyUnABjWqUAa2OlAGtr |
| | | pQAxc6UAjHOlAEJ7pQBKe6UAUnulAFJ7pQBjhKUAc4ylAGOUpQCclKUAY5ylAKWlpQC9paUAvbWlAIRz |
| | | rQBCe60AUnutADmMrQBSjK0AWoytAISMrQBalK0Aa5StAIScrQCUnK0ApaWtAL21rQDGta0AxsatANbG |
| | | rQBSjLUAWoy1AFKUtQCEnLUAra21AISEvQBKlL0AY5S9AEqcvQCEnL0AnJy9AGulvQCtrb0AnLW9ALW1 |
| | | vQC9vb0Ac2PGAJyMxgA5nMYAUpzGAHOtxgCErcYApbXGAL29xgDGxsYAnJzOAGOtzgCUtc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AAAAAAAAAAAAAAAAAAA |
| | | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA |
| | | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA |
| | | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA |
| | | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA |
| | | AAAAAAAAAAAAAP////////////////////////////////////////////////////////////////// |
| | | //////////////////////////////////////////////////////////////////////////////// |
| | | //////////////////////////////////wAAAABAAAA///////////8AAAAAQAAAH///////////AAA |
| | | AIAAAAB///////////wAAAAAAAAAf//////////8AAAAAAAAAH///////////wAAAAAAAAB///////// |
| | | //8AAAAAAAAAf///////////AAAAAAAAAH///////////wAAAAAAAAB/////gAAAAAMAAAAAAAAAf/// |
| | | /wAAAAAAAAAAAAAAAG////wAAAAAAAAAAAAAAAAP///4AAAAAAAAAAAAAAAAf///8AAAAAAAAAAAAAAA |
| | | AH///+AAAAAAAwAAAAAAAAB////AAAAAAAIAAAAAAAAAf///AAAAAAACAAAAAAAAAH///gAAAAAAAAAA |
| | | AAAAAAB///wAAAAAAAAAAAAAAAAAD//4AAAAAAAAAAAAAAAAAA//8AAAAAAAAAAAAAAAAAAP/+AAAAAA |
| | | AAAAAAAAAAAAD//AAAAAAAAAAAAAAAAAAA//AAAAAAAAAAAAAAAAAAAP/gAAAAAAAAAAAAAAAAAAD/wA |
| | | AAAAAAAAAAAAAAAAAA/wAAAAAAAAAAAAAAAAAAAP4AAAAAAAAAAAAAAAAAAAD+AAAAAAAAAAAAAAAAAA |
| | | AA/gAAAAAAAAAAAAAAAAAAAP4AAAAAAAA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AAAAAAAAAAAP/gAAAAAAAAAAAA |
| | | MAAAAAAP4AAAAAAAAAAAADAAAAAAD+AAAAAAAAAAAAAwAAAAAA/gAAAAAAAAAAAAAAAAAAAP4AAAAAAA |
| | | AAAACAAAAAAAD+AAAAAAAAAAAAgAAAAAAA/gAAAAAAAAAAAIAAAAAAAP4AAAAAAAAAAAAAAAAAAAD+AA |
| | | AAAAAAAAAAAAAAAAAA/gAAAAAAAAAAAAAAAAAAAP4AAAAAAAAAAAAAAAAAAAD+AAAAAAAAAAAAAAAAAA |
| | | AA/4AAAAAAAAAAAAAAAAAAAP/4AAAAAAAAAAAAAAAAAAD//4AAAAAAAAAAAAAAAAAA///wAAAAAAAAAA |
| | | AAAAAAAP///wAAAAAAAAAAAAAAAAD////4AAAAAAAAAAAAAAAA/////wAAAAAAAAAAAAAAAP/////wAA |
| | | AAAAAAAAAAAAH//////wAAAAAAAAAAAAAD///////wAAAAAAAAAAAAB////////wAAAAAAAAAAAA//// |
| | | /////wAAAAAAAAAAAP/////////wAAAAAAAAAAP//////////wAAAAAAAAAP///////////wAAAAAAAA |
| | | D////////////wAAAAAAAD/////////////gAAAAAAB//////////////AAAAAAD///////////////A |
| | | AAAAB///////////////+AAAAD////////////////8AAAD/////////////////+AAP//////////// |
| | | //////////////////////////////////////////////////////////////////////////////// |
| | | //////////////////////////////////////////////////////////////////////////////// |
| | | //////////////////////// |
| | | </value> |
| | | </data> |
| | | </root> |
| New file |
| | |
| | | D:\ä¼ ç»è´§æ¶\䏴平坿\ç¨åº\WCS\WCS\WCS\bin\Debug\WCS.exe |
| | | D:\ä¼ ç»è´§æ¶\䏴平坿\ç¨åº\WCS\WCS\WCS\bin\Debug\WCS.pdb |
| | | D:\ä¼ ç»è´§æ¶\䏴平坿\ç¨åº\WCS\WCS\WCS\obj\Debug\ResolveAssemblyReference.cache |
| | | D:\ä¼ ç»è´§æ¶\䏴平坿\ç¨åº\WCS\WCS\WCS\obj\Debug\WCS.Properties.Resources.resources |
| | | D:\ä¼ ç»è´§æ¶\䏴平坿\ç¨åº\WCS\WCS\WCS\obj\Debug\WCS.csproj.GenerateResource.Cache |
| | | D:\ä¼ ç»è´§æ¶\䏴平坿\ç¨åº\WCS\WCS\WCS\obj\Debug\WCS.exe |
| | | D:\ä¼ ç»è´§æ¶\䏴平坿\ç¨åº\WCS\WCS\WCS\obj\Debug\WCS.pdb |
| | | D:\ä¼ ç»è´§æ¶\䏴平坿\ç¨åº\WCS\WCS\WCS\obj\Debug\WCS.plcset.resources |
| | | D:\ä¼ ç»è´§æ¶\䏴平坿\ç¨åº\WCS\WCS\WCS\bin\Debug\@public.dll |
| | | D:\ä¼ ç»è´§æ¶\䏴平坿\ç¨åº\WCS\WCS\WCS\bin\Debug\@public.pdb |
| | | D:\ä¼ ç»è´§æ¶\䏴平坿\ç¨åº\WCS\WCS\WCS\obj\Debug\WCS.crndisplay.resources |
| | | D:\ä¼ ç»è´§æ¶\䏴平坿\ç¨åº\WCS\WCS\WCS\obj\Debug\WCS.stndisplay.resources |
| | | D:\ä¼ ç»è´§æ¶\䏴平坿\ç¨åº\WCS\WCS\WCS\obj\Debug\WCS.warn.resources |
| | | D:\ä¼ ç»è´§æ¶\䏴平坿\ç¨åº\WCS\WCS\WCS\obj\Debug\WCS.warn1.resources |
| | | D:\ä¼ ç»è´§æ¶\䏴平坿\ç¨åº\WCS\WCS\WCS\obj\Debug\WCS.main.resources |
| | | D:\hzks\䏴平坿\ç¨åº\WCS\WCS\WCS\obj\Debug\WCS.exe |
| | | D:\hzks\䏴平坿\ç¨åº\WCS\WCS\WCS\obj\Debug\WCS.pdb |
| | | D:\hzks\䏴平坿\ç¨åº\WCS\WCS\WCS\bin\Debug\WCS.exe |
| | | D:\hzks\䏴平坿\ç¨åº\WCS\WCS\WCS\bin\Debug\WCS.pdb |
| | | D:\hzks\䏴平坿\ç¨åº\WCS\WCS\WCS\bin\Debug\@public.dll |
| | | D:\hzks\䏴平坿\ç¨åº\WCS\WCS\WCS\bin\Debug\@public.pdb |
| | | D:\hzks\䏴平坿\ç¨åº\WCS\WCS\WCS\obj\Debug\ResolveAssemblyReference.cache |
| | | D:\hzks\䏴平坿\ç¨åº\WCS\WCS\WCS\obj\Debug\WCS.crndisplay.resources |
| | | D:\hzks\䏴平坿\ç¨åº\WCS\WCS\WCS\obj\Debug\WCS.main.resources |
| | | D:\hzks\䏴平坿\ç¨åº\WCS\WCS\WCS\obj\Debug\WCS.plcset.resources |
| | | D:\hzks\䏴平坿\ç¨åº\WCS\WCS\WCS\obj\Debug\WCS.Properties.Resources.resources |
| | | D:\hzks\䏴平坿\ç¨åº\WCS\WCS\WCS\obj\Debug\WCS.stndisplay.resources |
| | | D:\hzks\䏴平坿\ç¨åº\WCS\WCS\WCS\obj\Debug\WCS.warn.resources |
| | | D:\hzks\䏴平坿\ç¨åº\WCS\WCS\WCS\obj\Debug\WCS.warn1.resources |
| | | D:\hzks\䏴平坿\ç¨åº\WCS\WCS\WCS\obj\Debug\WCS.csproj.GenerateResource.Cache |
| | | D:\WCS\WCS\WCS\obj\Debug\WCS.exe |
| | | D:\WCS\WCS\WCS\obj\Debug\WCS.pdb |
| | | D:\WCS\WCS\WCS\bin\Debug\WCS.exe |
| | | D:\WCS\WCS\WCS\bin\Debug\WCS.pdb |
| | | D:\WCS\WCS\WCS\bin\Debug\@public.dll |
| | | D:\WCS\WCS\WCS\bin\Debug\@public.pdb |
| | | D:\WCS\WCS\WCS\obj\Debug\ResolveAssemblyReference.cache |
| | | D:\WCS\WCS\WCS\obj\Debug\WCS.crndisplay.resources |
| | | D:\WCS\WCS\WCS\obj\Debug\WCS.main.resources |
| | | D:\WCS\WCS\WCS\obj\Debug\WCS.plcset.resources |
| | | D:\WCS\WCS\WCS\obj\Debug\WCS.Properties.Resources.resources |
| | | D:\WCS\WCS\WCS\obj\Debug\WCS.stndisplay.resources |
| | | D:\WCS\WCS\WCS\obj\Debug\WCS.warn.resources |
| | | D:\WCS\WCS\WCS\obj\Debug\WCS.warn1.resources |
| | | D:\WCS\WCS\WCS\obj\Debug\WCS.csproj.GenerateResource.Cache |
| | | C:\Documents and Settings\Administrator\æ¡é¢\hzks\WCS\WCS\WCS\obj\Debug\WCS.exe |
| | | C:\Documents and Settings\Administrator\æ¡é¢\hzks\WCS\WCS\WCS\obj\Debug\WCS.pdb |
| | | C:\Documents and Settings\Administrator\æ¡é¢\hzks\WCS\WCS\WCS\obj\Debug\ResolveAssemblyReference.cache |
| | | C:\Documents and Settings\Administrator\æ¡é¢\hzks\WCS\WCS\WCS\obj\Debug\WCS.crndisplay.resources |
| | | C:\Documents and Settings\Administrator\æ¡é¢\hzks\WCS\WCS\WCS\obj\Debug\WCS.main.resources |
| | | C:\Documents and Settings\Administrator\æ¡é¢\hzks\WCS\WCS\WCS\obj\Debug\WCS.plcset.resources |
| | | C:\Documents and Settings\Administrator\æ¡é¢\hzks\WCS\WCS\WCS\obj\Debug\WCS.Properties.Resources.resources |
| | | C:\Documents and Settings\Administrator\æ¡é¢\hzks\WCS\WCS\WCS\obj\Debug\WCS.stndisplay.resources |
| | | C:\Documents and Settings\Administrator\æ¡é¢\hzks\WCS\WCS\WCS\obj\Debug\WCS.warn.resources |
| | | C:\Documents and Settings\Administrator\æ¡é¢\hzks\WCS\WCS\WCS\obj\Debug\WCS.warn1.resources |
| | | C:\Documents and Settings\Administrator\æ¡é¢\hzks\WCS\WCS\WCS\obj\Debug\WCS.csproj.GenerateResource.Cache |
| | | C:\Documents and Settings\Administrator\æ¡é¢\hzks\WCS\WCS\WCS\bin\Debug\WCS.exe |
| | | C:\Documents and Settings\Administrator\æ¡é¢\hzks\WCS\WCS\WCS\bin\Debug\WCS.pdb |
| | | C:\Documents and Settings\Administrator\æ¡é¢\hzks\WCS\WCS\WCS\bin\Debug\@public.dll |
| | | C:\Documents and Settings\Administrator\æ¡é¢\hzks\WCS\WCS\WCS\bin\Debug\@public.pdb |
| | | D:\asrs\WCS\WCS\WCS\bin\Debug\WCS.exe |
| | | D:\asrs\WCS\WCS\WCS\bin\Debug\WCS.pdb |
| | | D:\asrs\WCS\WCS\WCS\bin\Debug\@public.dll |
| | | D:\asrs\WCS\WCS\WCS\bin\Debug\@public.pdb |
| | | D:\asrs\WCS\WCS\WCS\obj\Debug\ResolveAssemblyReference.cache |
| | | D:\asrs\WCS\WCS\WCS\obj\Debug\WCS.crndisplay.resources |
| | | D:\asrs\WCS\WCS\WCS\obj\Debug\WCS.main.resources |
| | | D:\asrs\WCS\WCS\WCS\obj\Debug\WCS.plcset.resources |
| | | D:\asrs\WCS\WCS\WCS\obj\Debug\WCS.Properties.Resources.resources |
| | | D:\asrs\WCS\WCS\WCS\obj\Debug\WCS.stndisplay.resources |
| | | D:\asrs\WCS\WCS\WCS\obj\Debug\WCS.warn.resources |
| | | D:\asrs\WCS\WCS\WCS\obj\Debug\WCS.warn1.resources |
| | | D:\asrs\WCS\WCS\WCS\obj\Debug\WCS.csproj.GenerateResource.Cache |
| | | D:\asrs\WCS\WCS\WCS\obj\Debug\WCS.exe |
| | | D:\asrs\WCS\WCS\WCS\obj\Debug\WCS.pdb |
| | | C:\Users\hzks_wcs\Desktop\WCS\WCS\WCS\bin\Debug\WCS.exe |
| | | C:\Users\hzks_wcs\Desktop\WCS\WCS\WCS\bin\Debug\WCS.pdb |
| | | C:\Users\hzks_wcs\Desktop\WCS\WCS\WCS\bin\Debug\@public.dll |
| | | C:\Users\hzks_wcs\Desktop\WCS\WCS\WCS\bin\Debug\@public.pdb |
| | | C:\Users\hzks_wcs\Desktop\WCS\WCS\WCS\obj\Debug\ResolveAssemblyReference.cache |
| | | C:\Users\hzks_wcs\Desktop\WCS\WCS\WCS\obj\Debug\WCS.crndisplay.resources |
| | | C:\Users\hzks_wcs\Desktop\WCS\WCS\WCS\obj\Debug\WCS.main.resources |
| | | C:\Users\hzks_wcs\Desktop\WCS\WCS\WCS\obj\Debug\WCS.plcset.resources |
| | | C:\Users\hzks_wcs\Desktop\WCS\WCS\WCS\obj\Debug\WCS.Properties.Resources.resources |
| | | C:\Users\hzks_wcs\Desktop\WCS\WCS\WCS\obj\Debug\WCS.stndisplay.resources |
| | | C:\Users\hzks_wcs\Desktop\WCS\WCS\WCS\obj\Debug\WCS.warn.resources |
| | | C:\Users\hzks_wcs\Desktop\WCS\WCS\WCS\obj\Debug\WCS.warn1.resources |
| | | C:\Users\hzks_wcs\Desktop\WCS\WCS\WCS\obj\Debug\WCS.csproj.GenerateResource.Cache |
| | | C:\Users\hzks_wcs\Desktop\WCS\WCS\WCS\obj\Debug\WCS.exe |
| | | C:\Users\hzks_wcs\Desktop\WCS\WCS\WCS\obj\Debug\WCS.pdb |
| | | D:\asrs\èªå¨ä»åºææ°ç¨åº(ä¸ERPè¿)\WCS\WCS\WCS\bin\Debug\WCS.exe |
| | | D:\asrs\èªå¨ä»åºææ°ç¨åº(ä¸ERPè¿)\WCS\WCS\WCS\bin\Debug\WCS.pdb |
| | | D:\asrs\èªå¨ä»åºææ°ç¨åº(ä¸ERPè¿)\WCS\WCS\WCS\bin\Debug\@public.dll |
| | | D:\asrs\èªå¨ä»åºææ°ç¨åº(ä¸ERPè¿)\WCS\WCS\WCS\bin\Debug\@public.pdb |
| | | D:\asrs\èªå¨ä»åºææ°ç¨åº(ä¸ERPè¿)\WCS\WCS\WCS\obj\Debug\ResolveAssemblyReference.cache |
| | | D:\asrs\èªå¨ä»åºææ°ç¨åº(ä¸ERPè¿)\WCS\WCS\WCS\obj\Debug\WCS.crndisplay.resources |
| | | D:\asrs\èªå¨ä»åºææ°ç¨åº(ä¸ERPè¿)\WCS\WCS\WCS\obj\Debug\WCS.main.resources |
| | | D:\asrs\èªå¨ä»åºææ°ç¨åº(ä¸ERPè¿)\WCS\WCS\WCS\obj\Debug\WCS.plcset.resources |
| | | D:\asrs\èªå¨ä»åºææ°ç¨åº(ä¸ERPè¿)\WCS\WCS\WCS\obj\Debug\WCS.Properties.Resources.resources |
| | | D:\asrs\èªå¨ä»åºææ°ç¨åº(ä¸ERPè¿)\WCS\WCS\WCS\obj\Debug\WCS.stndisplay.resources |
| | | D:\asrs\èªå¨ä»åºææ°ç¨åº(ä¸ERPè¿)\WCS\WCS\WCS\obj\Debug\WCS.warn.resources |
| | | D:\asrs\èªå¨ä»åºææ°ç¨åº(ä¸ERPè¿)\WCS\WCS\WCS\obj\Debug\WCS.warn1.resources |
| | | D:\asrs\èªå¨ä»åºææ°ç¨åº(ä¸ERPè¿)\WCS\WCS\WCS\obj\Debug\WCS.csproj.GenerateResource.Cache |
| | | D:\asrs\èªå¨ä»åºææ°ç¨åº(ä¸ERPè¿)\WCS\WCS\WCS\obj\Debug\WCS.exe |
| | | D:\asrs\èªå¨ä»åºææ°ç¨åº(ä¸ERPè¿)\WCS\WCS\WCS\obj\Debug\WCS.pdb |
| | | D:\æå·\ç¨åº\èªå¨ä»åºææ°ç¨åº(ä¸ERPè¿)\WCS\WCS\WCS\obj\Debug\WCS.exe |
| | | D:\æå·\ç¨åº\èªå¨ä»åºææ°ç¨åº(ä¸ERPè¿)\WCS\WCS\WCS\obj\Debug\WCS.pdb |
| | | E:\work\ç«æ\è¿è¾¾\WCS\WCS\WCS\bin\Debug\WCS.exe.config |
| | | E:\work\ç«æ\è¿è¾¾\WCS\WCS\WCS\bin\Debug\WCS.exe |
| | | E:\work\ç«æ\è¿è¾¾\WCS\WCS\WCS\bin\Debug\WCS.pdb |
| | | E:\work\ç«æ\è¿è¾¾\WCS\WCS\WCS\obj\Debug\WCS.crndisplay.resources |
| | | E:\work\ç«æ\è¿è¾¾\WCS\WCS\WCS\obj\Debug\WCS.main.resources |
| | | E:\work\ç«æ\è¿è¾¾\WCS\WCS\WCS\obj\Debug\WCS.plcset.resources |
| | | E:\work\ç«æ\è¿è¾¾\WCS\WCS\WCS\obj\Debug\WCS.Properties.Resources.resources |
| | | E:\work\ç«æ\è¿è¾¾\WCS\WCS\WCS\obj\Debug\WCS.stndisplay.resources |
| | | E:\work\ç«æ\è¿è¾¾\WCS\WCS\WCS\obj\Debug\WCS.warn.resources |
| | | E:\work\ç«æ\è¿è¾¾\WCS\WCS\WCS\obj\Debug\WCS.warn1.resources |
| | | E:\work\ç«æ\è¿è¾¾\WCS\WCS\WCS\obj\Debug\WCS.csproj.GenerateResource.Cache |
| | | E:\work\ç«æ\è¿è¾¾\WCS\WCS\WCS\obj\Debug\WCS.exe |
| | | E:\work\ç«æ\è¿è¾¾\WCS\WCS\WCS\obj\Debug\WCS.pdb |
| | | D:\work\WCS\WCS\bin\Debug\WCS.exe.config |
| | | D:\work\WCS\WCS\bin\Debug\WCS.exe |
| | | D:\work\WCS\WCS\bin\Debug\WCS.pdb |
| | | D:\work\WCS\WCS\obj\Debug\WCS.crndisplay.resources |
| | | D:\work\WCS\WCS\obj\Debug\WCS.main.resources |
| | | D:\work\WCS\WCS\obj\Debug\WCS.plcset.resources |
| | | D:\work\WCS\WCS\obj\Debug\WCS.Properties.Resources.resources |
| | | D:\work\WCS\WCS\obj\Debug\WCS.stndisplay.resources |
| | | D:\work\WCS\WCS\obj\Debug\WCS.warn.resources |
| | | D:\work\WCS\WCS\obj\Debug\WCS.warn1.resources |
| | | D:\work\WCS\WCS\obj\Debug\WCS.csproj.GenerateResource.Cache |
| | | D:\work\WCS\WCS\obj\Debug\WCS.exe |
| | | D:\work\WCS\WCS\obj\Debug\WCS.pdb |
| | | D:\work\WCS\WCS\obj\Debug\WCS.csprojResolveAssemblyReference.cache |
| | | D:\work\é¼è\WCS\WCS\bin\Debug\WCS.exe.config |
| | | D:\work\é¼è\WCS\WCS\bin\Debug\WCS.exe |
| | | D:\work\é¼è\WCS\WCS\bin\Debug\WCS.pdb |
| | | D:\work\é¼è\WCS\WCS\obj\Debug\WCS.crndisplay.resources |
| | | D:\work\é¼è\WCS\WCS\obj\Debug\WCS.main.resources |
| | | D:\work\é¼è\WCS\WCS\obj\Debug\WCS.plcset.resources |
| | | D:\work\é¼è\WCS\WCS\obj\Debug\WCS.Properties.Resources.resources |
| | | D:\work\é¼è\WCS\WCS\obj\Debug\WCS.stndisplay.resources |
| | | D:\work\é¼è\WCS\WCS\obj\Debug\WCS.warn1.resources |
| | | D:\work\é¼è\WCS\WCS\obj\Debug\WCS.csproj.GenerateResource.Cache |
| | | D:\work\é¼è\WCS\WCS\obj\Debug\WCS.exe |
| | | D:\work\é¼è\WCS\WCS\obj\Debug\WCS.pdb |
| | | C:\Users\admin\Desktop\WCS\WCS\bin\Debug\WCS.exe.config |
| | | C:\Users\admin\Desktop\WCS\WCS\obj\Debug\WCS.exe |
| | | C:\Users\admin\Desktop\WCS\WCS\obj\Debug\WCS.pdb |
| | | C:\Users\admin\Desktop\WCS\WCS\bin\Debug\WCS.exe |
| | | C:\Users\admin\Desktop\WCS\WCS\bin\Debug\WCS.pdb |
| | | C:\Users\admin\Desktop\WCS\WCS\obj\Debug\WCS.crndisplay.resources |
| | | C:\Users\admin\Desktop\WCS\WCS\obj\Debug\WCS.main.resources |
| | | C:\Users\admin\Desktop\WCS\WCS\obj\Debug\WCS.plcset.resources |
| | | C:\Users\admin\Desktop\WCS\WCS\obj\Debug\WCS.Properties.Resources.resources |
| | | C:\Users\admin\Desktop\WCS\WCS\obj\Debug\WCS.stndisplay.resources |
| | | C:\Users\admin\Desktop\WCS\WCS\obj\Debug\WCS.warn.resources |
| | | C:\Users\admin\Desktop\WCS\WCS\obj\Debug\WCS.warn1.resources |
| | | C:\Users\admin\Desktop\WCS\WCS\obj\Debug\WCS.csproj.GenerateResource.Cache |
| | | C:\Users\admin\Desktop\WCS\WCS\obj\Debug\WCS.csprojResolveAssemblyReference.cache |
| | | D:\work\é¼è\WCS_20190729001\WCS\bin\Debug\WCS.exe.config |
| | | D:\work\é¼è\WCS_20190729001\WCS\obj\Debug\WCS.exe |
| | | D:\work\é¼è\WCS_20190729001\WCS\obj\Debug\WCS.pdb |
| | | D:\work\é¼è\WCS_20190729001\WCS\bin\Debug\WCS.exe |
| | | D:\work\é¼è\WCS_20190729001\WCS\bin\Debug\WCS.pdb |
| | | D:\work\é¼è\WCS_20190729001\WCS\obj\Debug\WCS.crndisplay.resources |
| | | D:\work\é¼è\WCS_20190729001\WCS\obj\Debug\WCS.main.resources |
| | | D:\work\é¼è\WCS_20190729001\WCS\obj\Debug\WCS.plcset.resources |
| | | D:\work\é¼è\WCS_20190729001\WCS\obj\Debug\WCS.Properties.Resources.resources |
| | | D:\work\é¼è\WCS_20190729001\WCS\obj\Debug\WCS.stndisplay.resources |
| | | D:\work\é¼è\WCS_20190729001\WCS\obj\Debug\WCS.warn.resources |
| | | D:\work\é¼è\WCS_20190729001\WCS\obj\Debug\WCS.warn1.resources |
| | | D:\work\é¼è\WCS_20190729001\WCS\obj\Debug\WCS.csproj.GenerateResource.Cache |
| | | C:\WCS\WCS\bin\Debug\WCS.exe.config |
| | | C:\WCS\WCS\bin\Debug\WCS.exe |
| | | C:\WCS\WCS\bin\Debug\WCS.pdb |
| | | C:\WCS\WCS\obj\Debug\WCS.crndisplay.resources |
| | | C:\WCS\WCS\obj\Debug\WCS.main.resources |
| | | C:\WCS\WCS\obj\Debug\WCS.plcset.resources |
| | | C:\WCS\WCS\obj\Debug\WCS.Properties.Resources.resources |
| | | C:\WCS\WCS\obj\Debug\WCS.stndisplay.resources |
| | | C:\WCS\WCS\obj\Debug\WCS.warn.resources |
| | | C:\WCS\WCS\obj\Debug\WCS.warn1.resources |
| | | C:\WCS\WCS\obj\Debug\WCS.csproj.GenerateResource.Cache |
| | | C:\WCS\WCS\obj\Debug\WCS.exe |
| | | C:\WCS\WCS\obj\Debug\WCS.pdb |
| | | C:\WCS\WCS\obj\Debug\WCS.csprojResolveAssemblyReference.cache |
| | | D:\work\é¼è\WCS\WCS\obj\Debug\WCS.exit.resources |
| | | D:\work\é¼è\WCS\WCS\obj\Debug\WCS.warn.resources |
| | | D:\work\é¼è\WCS\WCS\obj\Debug\WCS.csprojResolveAssemblyReference.cache |
| | | C:\Users\Administrator\Documents\WeChat Files\lxy199512\FileStorage\File\2020-04\WCS\WCS\bin\Debug\WCS.exe.config |
| | | C:\Users\Administrator\Documents\WeChat Files\lxy199512\FileStorage\File\2020-04\WCS\WCS\obj\Debug\WCS.exe |
| | | C:\Users\Administrator\Documents\WeChat Files\lxy199512\FileStorage\File\2020-04\WCS\WCS\obj\Debug\WCS.pdb |
| | | C:\Users\Administrator\Documents\WeChat Files\lxy199512\FileStorage\File\2020-04\WCS\WCS\bin\Debug\WCS.exe |
| | | C:\Users\Administrator\Documents\WeChat Files\lxy199512\FileStorage\File\2020-04\WCS\WCS\bin\Debug\WCS.pdb |
| | | C:\Users\Administrator\Documents\WeChat Files\lxy199512\FileStorage\File\2020-04\WCS\WCS\obj\Debug\WCS.crndisplay.resources |
| | | C:\Users\Administrator\Documents\WeChat Files\lxy199512\FileStorage\File\2020-04\WCS\WCS\obj\Debug\WCS.exit.resources |
| | | C:\Users\Administrator\Documents\WeChat Files\lxy199512\FileStorage\File\2020-04\WCS\WCS\obj\Debug\WCS.main.resources |
| | | C:\Users\Administrator\Documents\WeChat Files\lxy199512\FileStorage\File\2020-04\WCS\WCS\obj\Debug\WCS.plcset.resources |
| | | C:\Users\Administrator\Documents\WeChat Files\lxy199512\FileStorage\File\2020-04\WCS\WCS\obj\Debug\WCS.Properties.Resources.resources |
| | | C:\Users\Administrator\Documents\WeChat Files\lxy199512\FileStorage\File\2020-04\WCS\WCS\obj\Debug\WCS.stndisplay.resources |
| | | C:\Users\Administrator\Documents\WeChat Files\lxy199512\FileStorage\File\2020-04\WCS\WCS\obj\Debug\WCS.warn.resources |
| | | C:\Users\Administrator\Documents\WeChat Files\lxy199512\FileStorage\File\2020-04\WCS\WCS\obj\Debug\WCS.warn1.resources |
| | | C:\Users\Administrator\Documents\WeChat Files\lxy199512\FileStorage\File\2020-04\WCS\WCS\obj\Debug\WCS.csproj.GenerateResource.Cache |
| | | D:\work\å¨å
¶æ\å
峿¯çè²\WCS\WCS\bin\Debug\WCS.exe.config |
| | | D:\work\å¨å
¶æ\å
峿¯çè²\WCS\WCS\bin\Debug\WCS.exe |
| | | D:\work\å¨å
¶æ\å
峿¯çè²\WCS\WCS\bin\Debug\WCS.pdb |
| | | D:\work\å¨å
¶æ\å
峿¯çè²\WCS\WCS\obj\Debug\WCS.crndisplay.resources |
| | | D:\work\å¨å
¶æ\å
峿¯çè²\WCS\WCS\obj\Debug\WCS.exit.resources |
| | | D:\work\å¨å
¶æ\å
峿¯çè²\WCS\WCS\obj\Debug\WCS.main.resources |
| | | D:\work\å¨å
¶æ\å
峿¯çè²\WCS\WCS\obj\Debug\WCS.plcset.resources |
| | | D:\work\å¨å
¶æ\å
峿¯çè²\WCS\WCS\obj\Debug\WCS.Properties.Resources.resources |
| | | D:\work\å¨å
¶æ\å
峿¯çè²\WCS\WCS\obj\Debug\WCS.stndisplay.resources |
| | | D:\work\å¨å
¶æ\å
峿¯çè²\WCS\WCS\obj\Debug\WCS.warn.resources |
| | | D:\work\å¨å
¶æ\å
峿¯çè²\WCS\WCS\obj\Debug\WCS.warn1.resources |
| | | D:\work\å¨å
¶æ\å
峿¯çè²\WCS\WCS\obj\Debug\WCS.csproj.GenerateResource.Cache |
| | | D:\work\å¨å
¶æ\å
峿¯çè²\WCS\WCS\obj\Debug\WCS.exe |
| | | D:\work\å¨å
¶æ\å
峿¯çè²\WCS\WCS\obj\Debug\WCS.pdb |
| | | D:\work\å¨å
¶æ\å
峿¯çè²\WCS\WCS\obj\Debug\WCS.csprojResolveAssemblyReference.cache |
| | | D:\work\æ¨è¿\广德ç«åº\WCS\WCS\bin\Debug\WCS.exe.config |
| | | D:\work\æ¨è¿\广德ç«åº\WCS\WCS\obj\Debug\WCS.exe |
| | | D:\work\æ¨è¿\广德ç«åº\WCS\WCS\obj\Debug\WCS.pdb |
| | | D:\work\æ¨è¿\广德ç«åº\WCS\WCS\bin\Debug\WCS.exe |
| | | D:\work\æ¨è¿\广德ç«åº\WCS\WCS\bin\Debug\WCS.pdb |
| | | D:\work\æ¨è¿\广德ç«åº\WCS\WCS\obj\Debug\WCS.crndisplay.resources |
| | | D:\work\æ¨è¿\广德ç«åº\WCS\WCS\obj\Debug\WCS.exit.resources |
| | | D:\work\æ¨è¿\广德ç«åº\WCS\WCS\obj\Debug\WCS.main.resources |
| | | D:\work\æ¨è¿\广德ç«åº\WCS\WCS\obj\Debug\WCS.plcset.resources |
| | | D:\work\æ¨è¿\广德ç«åº\WCS\WCS\obj\Debug\WCS.Properties.Resources.resources |
| | | D:\work\æ¨è¿\广德ç«åº\WCS\WCS\obj\Debug\WCS.stndisplay.resources |
| | | D:\work\æ¨è¿\广德ç«åº\WCS\WCS\obj\Debug\WCS.warn.resources |
| | | D:\work\æ¨è¿\广德ç«åº\WCS\WCS\obj\Debug\WCS.warn1.resources |
| | | D:\work\æ¨è¿\广德ç«åº\WCS\WCS\obj\Debug\WCS.csproj.GenerateResource.Cache |
| | | D:\work\æ¨è¿\åååç«åº\WCS\WCS\bin\Debug\WCS.exe.config |
| | | D:\work\æ¨è¿\åååç«åº\WCS\WCS\obj\Debug\WCS.exe |
| | | D:\work\æ¨è¿\åååç«åº\WCS\WCS\obj\Debug\WCS.pdb |
| | | D:\work\æ¨è¿\åååç«åº\WCS\WCS\bin\Debug\WCS.exe |
| | | D:\work\æ¨è¿\åååç«åº\WCS\WCS\bin\Debug\WCS.pdb |
| | | D:\work\æ¨è¿\åååç«åº\WCS\WCS\obj\Debug\WCS.crndisplay.resources |
| | | D:\work\æ¨è¿\åååç«åº\WCS\WCS\obj\Debug\WCS.exit.resources |
| | | D:\work\æ¨è¿\åååç«åº\WCS\WCS\obj\Debug\WCS.main.resources |
| | | D:\work\æ¨è¿\åååç«åº\WCS\WCS\obj\Debug\WCS.plcset.resources |
| | | D:\work\æ¨è¿\åååç«åº\WCS\WCS\obj\Debug\WCS.Properties.Resources.resources |
| | | D:\work\æ¨è¿\åååç«åº\WCS\WCS\obj\Debug\WCS.stndisplay.resources |
| | | D:\work\æ¨è¿\åååç«åº\WCS\WCS\obj\Debug\WCS.warn.resources |
| | | D:\work\æ¨è¿\åååç«åº\WCS\WCS\obj\Debug\WCS.warn1.resources |
| | | D:\work\æ¨è¿\åååç«åº\WCS\WCS\obj\Debug\WCS.csproj.GenerateResource.Cache |
| | | D:\work\æ¨è¿\åååç«åº\WCS\WCS\obj\Debug\WCS.csprojResolveAssemblyReference.cache |
| | | D:\work\çå½ä¿\è¯è¾¾\WCS\WCS\bin\Debug\WCS.exe.config |
| | | D:\work\çå½ä¿\è¯è¾¾\WCS\WCS\obj\Debug\WCS.exe |
| | | D:\work\çå½ä¿\è¯è¾¾\WCS\WCS\obj\Debug\WCS.pdb |
| | | D:\work\çå½ä¿\è¯è¾¾\WCS\WCS\obj\Debug\WCS.crndisplay.resources |
| | | D:\work\çå½ä¿\è¯è¾¾\WCS\WCS\obj\Debug\WCS.exit.resources |
| | | D:\work\çå½ä¿\è¯è¾¾\WCS\WCS\obj\Debug\WCS.main.resources |
| | | D:\work\çå½ä¿\è¯è¾¾\WCS\WCS\obj\Debug\WCS.plcset.resources |
| | | D:\work\çå½ä¿\è¯è¾¾\WCS\WCS\obj\Debug\WCS.Properties.Resources.resources |
| | | D:\work\çå½ä¿\è¯è¾¾\WCS\WCS\obj\Debug\WCS.stndisplay.resources |
| | | D:\work\çå½ä¿\è¯è¾¾\WCS\WCS\obj\Debug\WCS.warn.resources |
| | | D:\work\çå½ä¿\è¯è¾¾\WCS\WCS\obj\Debug\WCS.warn1.resources |
| | | D:\work\çå½ä¿\è¯è¾¾\WCS\WCS\obj\Debug\WCS.csproj.GenerateResource.Cache |
| | | D:\work\çå½ä¿\è¯è¾¾\WCS\WCS\bin\Debug\WCS.exe |
| | | D:\work\çå½ä¿\è¯è¾¾\WCS\WCS\bin\Debug\WCS.pdb |
| | | D:\BitTorrent\9.C#\WCS\WCS\bin\Debug\WCS.exe.config |
| | | D:\BitTorrent\9.C#\WCS\WCS\obj\Debug\WCS.exe |
| | | D:\BitTorrent\9.C#\WCS\WCS\obj\Debug\WCS.pdb |
| | | D:\Download\9.C#\WCS\WCS\bin\Debug\WCS.exe.config |
| | | D:\Download\9.C#\WCS\WCS\obj\Debug\WCS.exe |
| | | D:\Download\9.C#\WCS\WCS\obj\Debug\WCS.pdb |
| | | D:\Download\9.C#\WCS\WCS\WCS\bin\Debug\WCS.exe.config |
| | | D:\Download\9.C#\WCS\WCS\WCS\obj\Debug\WCS.exe |
| | | D:\Download\9.C#\WCS\WCS\WCS\obj\Debug\WCS.pdb |
| | | D:\Download\9.C#\WCS\WCS\WCS\bin\Debug\WCS.exe |
| | | D:\Download\9.C#\WCS\WCS\WCS\bin\Debug\WCS.pdb |
| | | D:\Download\9.C#\WCS\WCS\WCS\obj\Debug\WCS.csprojResolveAssemblyReference.cache |
| | | D:\Download\9.C#\WCS\WCS\WCS\obj\Debug\WCS.crndisplay.resources |
| | | D:\Download\9.C#\WCS\WCS\WCS\obj\Debug\WCS.exit.resources |
| | | D:\Download\9.C#\WCS\WCS\WCS\obj\Debug\WCS.main.resources |
| | | D:\Download\9.C#\WCS\WCS\WCS\obj\Debug\WCS.plcset.resources |
| | | D:\Download\9.C#\WCS\WCS\WCS\obj\Debug\WCS.Properties.Resources.resources |
| | | D:\Download\9.C#\WCS\WCS\WCS\obj\Debug\WCS.stndisplay.resources |
| | | D:\Download\9.C#\WCS\WCS\WCS\obj\Debug\WCS.warn.resources |
| | | D:\Download\9.C#\WCS\WCS\WCS\obj\Debug\WCS.warn1.resources |
| | | D:\Download\9.C#\WCS\WCS\WCS\obj\Debug\WCS.csproj.GenerateResource.Cache |
| | | C:\Users\DELL\Desktop\WCS\WCS\bin\Debug\WCS.exe.config |
| | | C:\Users\DELL\Desktop\WCS\WCS\obj\Debug\WCS.exe |
| | | C:\Users\DELL\Desktop\WCS\WCS\obj\Debug\WCS.pdb |
| | | C:\Users\DELL\Desktop\WCS\WCS\bin\Debug\WCS.exe |
| | | C:\Users\DELL\Desktop\WCS\WCS\bin\Debug\WCS.pdb |
| | | C:\Users\DELL\Desktop\WCS\WCS\obj\Debug\WCS.csprojResolveAssemblyReference.cache |
| | | C:\Users\DELL\Desktop\WCS\WCS\obj\Debug\WCS.crndisplay.resources |
| | | C:\Users\DELL\Desktop\WCS\WCS\obj\Debug\WCS.exit.resources |
| | | C:\Users\DELL\Desktop\WCS\WCS\obj\Debug\WCS.main.resources |
| | | C:\Users\DELL\Desktop\WCS\WCS\obj\Debug\WCS.plcset.resources |
| | | C:\Users\DELL\Desktop\WCS\WCS\obj\Debug\WCS.Properties.Resources.resources |
| | | C:\Users\DELL\Desktop\WCS\WCS\obj\Debug\WCS.stndisplay.resources |
| | | C:\Users\DELL\Desktop\WCS\WCS\obj\Debug\WCS.warn.resources |
| | | C:\Users\DELL\Desktop\WCS\WCS\obj\Debug\WCS.warn1.resources |
| | | C:\Users\DELL\Desktop\WCS\WCS\obj\Debug\WCS.csproj.GenerateResource.Cache |
| | | C:\Users\DELL\Desktop\CDYYWCS\WCS\bin\Debug\WCS.exe.config |
| | | C:\Users\DELL\Desktop\CDYYWCS\WCS\obj\Debug\WCS.exe |
| | | C:\Users\DELL\Desktop\CDYYWCS\WCS\obj\Debug\WCS.pdb |
| | | C:\Users\DELL\Desktop\CDYYWCS\WCS\bin\Debug\WCS.exe |
| | | C:\Users\DELL\Desktop\CDYYWCS\WCS\bin\Debug\WCS.pdb |
| | | C:\Users\DELL\Desktop\CDYYWCS\WCS\obj\Debug\WCS.csprojResolveAssemblyReference.cache |
| | | C:\Users\DELL\Desktop\CDYYWCS\WCS\obj\Debug\WCS.crndisplay.resources |
| | | C:\Users\DELL\Desktop\CDYYWCS\WCS\obj\Debug\WCS.exit.resources |
| | | C:\Users\DELL\Desktop\CDYYWCS\WCS\obj\Debug\WCS.main.resources |
| | | C:\Users\DELL\Desktop\CDYYWCS\WCS\obj\Debug\WCS.plcset.resources |
| | | C:\Users\DELL\Desktop\CDYYWCS\WCS\obj\Debug\WCS.Properties.Resources.resources |
| | | C:\Users\DELL\Desktop\CDYYWCS\WCS\obj\Debug\WCS.stndisplay.resources |
| | | C:\Users\DELL\Desktop\CDYYWCS\WCS\obj\Debug\WCS.warn.resources |
| | | C:\Users\DELL\Desktop\CDYYWCS\WCS\obj\Debug\WCS.warn1.resources |
| | | C:\Users\DELL\Desktop\CDYYWCS\WCS\obj\Debug\WCS.csproj.GenerateResource.Cache |
| | | D:\BitTorrent\9.C#\è¯è¾¾è¯ä¸WCS\CDYYWCS\WCS\bin\Debug\WCS.exe.config |
| | | D:\BitTorrent\9.C#\è¯è¾¾è¯ä¸WCS\CDYYWCS\WCS\obj\Debug\WCS.exe |
| | | D:\BitTorrent\9.C#\è¯è¾¾è¯ä¸WCS\CDYYWCS\WCS\obj\Debug\WCS.pdb |
| | | C:\Users\41073\Desktop\CDYYWCS\WCS\bin\Debug\WCS.exe.config |
| | | C:\Users\41073\Desktop\CDYYWCS\WCS\obj\Debug\WCS.exe |
| | | C:\Users\41073\Desktop\CDYYWCS\WCS\obj\Debug\WCS.pdb |
| | | C:\Users\41073\Desktop\CDYYWCS\WCS\bin\Debug\WCS.exe |
| | | C:\Users\41073\Desktop\CDYYWCS\WCS\bin\Debug\WCS.pdb |
| | | C:\Users\41073\Desktop\CDYYWCS\WCS\obj\Debug\WCS.csprojResolveAssemblyReference.cache |
| | | C:\Users\41073\Desktop\CDYYWCS\WCS\obj\Debug\WCS.crndisplay.resources |
| | | C:\Users\41073\Desktop\CDYYWCS\WCS\obj\Debug\WCS.exit.resources |
| | | C:\Users\41073\Desktop\CDYYWCS\WCS\obj\Debug\WCS.main.resources |
| | | C:\Users\41073\Desktop\CDYYWCS\WCS\obj\Debug\WCS.plcset.resources |
| | | C:\Users\41073\Desktop\CDYYWCS\WCS\obj\Debug\WCS.Properties.Resources.resources |
| | | C:\Users\41073\Desktop\CDYYWCS\WCS\obj\Debug\WCS.stndisplay.resources |
| | | C:\Users\41073\Desktop\CDYYWCS\WCS\obj\Debug\WCS.warn.resources |
| | | C:\Users\41073\Desktop\CDYYWCS\WCS\obj\Debug\WCS.warn1.resources |
| | | C:\Users\41073\Desktop\CDYYWCS\WCS\obj\Debug\WCS.csproj.GenerateResource.Cache |
| | | C:\Users\41073\Desktop\è¯è¾¾è¯ä¸WCS\WCS\bin\Debug\WCS.exe.config |
| | | C:\Users\41073\Desktop\è¯è¾¾è¯ä¸WCS\WCS\obj\Debug\WCS.exe |
| | | C:\Users\41073\Desktop\è¯è¾¾è¯ä¸WCS\WCS\obj\Debug\WCS.pdb |
| | | C:\Users\41073\Desktop\æ·ä¼WCS\WCS\WCS\bin\Debug\WCS.exe.config |
| | | C:\Users\41073\Desktop\æ·ä¼WCS\WCS\WCS\obj\Debug\WCS.exe |
| | | C:\Users\41073\Desktop\æ·ä¼WCS\WCS\WCS\obj\Debug\WCS.pdb |
| | | C:\Users\41073\Desktop\æ·ä¼WCS\WCS\WCS\obj\Debug\WCS.csprojResolveAssemblyReference.cache |
| | | C:\Users\41073\Desktop\æ·ä¼WCS\WCS\WCS\obj\Debug\WCS.crndisplay.resources |
| | | C:\Users\41073\Desktop\æ·ä¼WCS\WCS\WCS\obj\Debug\WCS.exit.resources |
| | | C:\Users\41073\Desktop\æ·ä¼WCS\WCS\WCS\obj\Debug\WCS.main.resources |
| | | C:\Users\41073\Desktop\æ·ä¼WCS\WCS\WCS\obj\Debug\WCS.plcset.resources |
| | | C:\Users\41073\Desktop\æ·ä¼WCS\WCS\WCS\obj\Debug\WCS.Properties.Resources.resources |
| | | C:\Users\41073\Desktop\æ·ä¼WCS\WCS\WCS\obj\Debug\WCS.stndisplay.resources |
| | | C:\Users\41073\Desktop\æ·ä¼WCS\WCS\WCS\obj\Debug\WCS.warn.resources |
| | | C:\Users\41073\Desktop\æ·ä¼WCS\WCS\WCS\obj\Debug\WCS.warn1.resources |
| | | C:\Users\41073\Desktop\æ·ä¼WCS\WCS\WCS\obj\Debug\WCS.csproj.GenerateResource.Cache |
| | | C:\Users\41073\Desktop\æ·ä¼WCS\WCS\WCS\bin\Debug\WCS.exe |
| | | C:\Users\41073\Desktop\æ·ä¼WCS\WCS\WCS\bin\Debug\WCS.pdb |
| | | D:\JZWCS\WCS\WCS\bin\Debug\WCS.exe.config |
| | | D:\JZWCS\WCS\WCS\obj\Debug\WCS.exe |
| | | D:\JZWCS\WCS\WCS\obj\Debug\WCS.pdb |
| | | D:\JZWCS\WCS\WCS\bin\Debug\WCS.exe |
| | | D:\JZWCS\WCS\WCS\bin\Debug\WCS.pdb |
| | | D:\JZWCS\WCS\WCS\obj\Debug\WCS.csprojResolveAssemblyReference.cache |
| | | D:\JZWCS\WCS\WCS\obj\Debug\WCS.crndisplay.resources |
| | | D:\JZWCS\WCS\WCS\obj\Debug\WCS.exit.resources |
| | | D:\JZWCS\WCS\WCS\obj\Debug\WCS.main.resources |
| | | D:\JZWCS\WCS\WCS\obj\Debug\WCS.plcset.resources |
| | | D:\JZWCS\WCS\WCS\obj\Debug\WCS.Properties.Resources.resources |
| | | D:\JZWCS\WCS\WCS\obj\Debug\WCS.stndisplay.resources |
| | | D:\JZWCS\WCS\WCS\obj\Debug\WCS.warn.resources |
| | | D:\JZWCS\WCS\WCS\obj\Debug\WCS.warn1.resources |
| | | D:\JZWCS\WCS\WCS\obj\Debug\WCS.csproj.GenerateResource.Cache |
| | | C:\Users\41073\Desktop\çé¢ä¿®æ¹\SXJZWCS\WCS\bin\Debug\WCS.exe.config |
| | | C:\Users\41073\Desktop\çé¢ä¿®æ¹\SXJZWCS\WCS\bin\Debug\WCS.exe |
| | | C:\Users\41073\Desktop\çé¢ä¿®æ¹\SXJZWCS\WCS\bin\Debug\WCS.pdb |
| | | C:\Users\41073\Desktop\çé¢ä¿®æ¹\SXJZWCS\WCS\bin\Debug\CSkin.dll |
| | | C:\Users\41073\Desktop\çé¢ä¿®æ¹\SXJZWCS\WCS\bin\Debug\CSkin.xml |
| | | C:\Users\41073\Desktop\çé¢ä¿®æ¹\SXJZWCS\WCS\obj\Debug\WCS.csprojResolveAssemblyReference.cache |
| | | C:\Users\41073\Desktop\çé¢ä¿®æ¹\SXJZWCS\WCS\obj\Debug\WCS.crndisplay.resources |
| | | C:\Users\41073\Desktop\çé¢ä¿®æ¹\SXJZWCS\WCS\obj\Debug\WCS.exit.resources |
| | | C:\Users\41073\Desktop\çé¢ä¿®æ¹\SXJZWCS\WCS\obj\Debug\WCS.main.resources |
| | | C:\Users\41073\Desktop\çé¢ä¿®æ¹\SXJZWCS\WCS\obj\Debug\WCS.plcset.resources |
| | | C:\Users\41073\Desktop\çé¢ä¿®æ¹\SXJZWCS\WCS\obj\Debug\WCS.Properties.Resources.resources |
| | | C:\Users\41073\Desktop\çé¢ä¿®æ¹\SXJZWCS\WCS\obj\Debug\WCS.stndisplay.resources |
| | | C:\Users\41073\Desktop\çé¢ä¿®æ¹\SXJZWCS\WCS\obj\Debug\WCS.warn.resources |
| | | C:\Users\41073\Desktop\çé¢ä¿®æ¹\SXJZWCS\WCS\obj\Debug\WCS.warn1.resources |
| | | C:\Users\41073\Desktop\çé¢ä¿®æ¹\SXJZWCS\WCS\obj\Debug\WCS.csproj.GenerateResource.Cache |
| | | C:\Users\41073\Desktop\çé¢ä¿®æ¹\SXJZWCS\WCS\obj\Debug\WCS.exe |
| | | C:\Users\41073\Desktop\çé¢ä¿®æ¹\SXJZWCS\WCS\obj\Debug\WCS.pdb |
| | | E:\WCS_Cout\çé¢ä¿®æ¹\SXJZWCS\WCS\bin\Debug\WCS.exe.config |
| | | E:\WCS_Cout\çé¢ä¿®æ¹\SXJZWCS\WCS\obj\Debug\WCS.exe |
| | | E:\WCS_Cout\çé¢ä¿®æ¹\SXJZWCS\WCS\obj\Debug\WCS.pdb |
| | | E:\WCS_count\çé¢ä¿®æ¹\SXJZWCS\WCS\bin\Debug\WCS.exe.config |
| | | E:\WCS_count\çé¢ä¿®æ¹\SXJZWCS\WCS\bin\Debug\WCS.exe |
| | | E:\WCS_count\çé¢ä¿®æ¹\SXJZWCS\WCS\bin\Debug\WCS.pdb |
| | | E:\WCS_count\çé¢ä¿®æ¹\SXJZWCS\WCS\obj\Debug\WCS.crndisplay.resources |
| | | E:\WCS_count\çé¢ä¿®æ¹\SXJZWCS\WCS\obj\Debug\WCS.exit.resources |
| | | E:\WCS_count\çé¢ä¿®æ¹\SXJZWCS\WCS\obj\Debug\WCS.main.resources |
| | | E:\WCS_count\çé¢ä¿®æ¹\SXJZWCS\WCS\obj\Debug\WCS.plcset.resources |
| | | E:\WCS_count\çé¢ä¿®æ¹\SXJZWCS\WCS\obj\Debug\WCS.Properties.Resources.resources |
| | | E:\WCS_count\çé¢ä¿®æ¹\SXJZWCS\WCS\obj\Debug\WCS.stndisplay.resources |
| | | E:\WCS_count\çé¢ä¿®æ¹\SXJZWCS\WCS\obj\Debug\WCS.warn.resources |
| | | E:\WCS_count\çé¢ä¿®æ¹\SXJZWCS\WCS\obj\Debug\WCS.warn1.resources |
| | | E:\WCS_count\çé¢ä¿®æ¹\SXJZWCS\WCS\obj\Debug\WCS.csproj.GenerateResource.Cache |
| | | E:\WCS_count\çé¢ä¿®æ¹\SXJZWCS\WCS\obj\Debug\WCS.exe |
| | | E:\WCS_count\çé¢ä¿®æ¹\SXJZWCS\WCS\obj\Debug\WCS.pdb |
| | | E:\WCS_count\çé¢ä¿®æ¹\SXJZWCS\WCS\obj\Debug\WCS.csprojResolveAssemblyReference.cache |
| | | E:\SXJZWCS\WCS\bin\Debug\WCS.exe.config |
| | | E:\SXJZWCS\WCS\obj\Debug\WCS.exe |
| | | E:\SXJZWCS\WCS\obj\Debug\WCS.pdb |
| | | E:\SXJZWCS\WCS\bin\Debug\WCS.exe |
| | | E:\SXJZWCS\WCS\bin\Debug\WCS.pdb |
| | | E:\SXJZWCS\WCS\obj\Debug\WCS.csprojResolveAssemblyReference.cache |
| | | E:\SXJZWCS\WCS\obj\Debug\WCS.crndisplay.resources |
| | | E:\SXJZWCS\WCS\obj\Debug\WCS.exit.resources |
| | | E:\SXJZWCS\WCS\obj\Debug\WCS.main.resources |
| | | E:\SXJZWCS\WCS\obj\Debug\WCS.plcset.resources |
| | | E:\SXJZWCS\WCS\obj\Debug\WCS.Properties.Resources.resources |
| | | E:\SXJZWCS\WCS\obj\Debug\WCS.stndisplay.resources |
| | | E:\SXJZWCS\WCS\obj\Debug\WCS.warn.resources |
| | | E:\SXJZWCS\WCS\obj\Debug\WCS.warn1.resources |
| | | E:\SXJZWCS\WCS\obj\Debug\WCS.csproj.GenerateResource.Cache |
| | | E:\KLSMFWCS20220326\WCS\bin\Debug\WCS.exe.config |
| | | E:\KLSMFWCS20220326\WCS\obj\Debug\WCS.exe |
| | | E:\KLSMFWCS20220326\WCS\obj\Debug\WCS.pdb |
| | | E:\KLSMFWCS20220326\WCS\bin\Debug\WCS.exe |
| | | E:\KLSMFWCS20220326\WCS\bin\Debug\WCS.pdb |
| | | E:\KLSMFWCS20220326\WCS\obj\Debug\WCS.csprojResolveAssemblyReference.cache |
| | | E:\KLSMFWCS20220326\WCS\obj\Debug\WCS.crndisplay.resources |
| | | E:\KLSMFWCS20220326\WCS\obj\Debug\WCS.exit.resources |
| | | E:\KLSMFWCS20220326\WCS\obj\Debug\WCS.main.resources |
| | | E:\KLSMFWCS20220326\WCS\obj\Debug\WCS.plcset.resources |
| | | E:\KLSMFWCS20220326\WCS\obj\Debug\WCS.Properties.Resources.resources |
| | | E:\KLSMFWCS20220326\WCS\obj\Debug\WCS.stndisplay.resources |
| | | E:\KLSMFWCS20220326\WCS\obj\Debug\WCS.warn.resources |
| | | E:\KLSMFWCS20220326\WCS\obj\Debug\WCS.warn1.resources |
| | | E:\KLSMFWCS20220326\WCS\obj\Debug\WCS.csproj.GenerateResource.Cache |
| | | E:\æ°å»ºæä»¶å¤¹\KLSMFWCS20220326\WCS\bin\Debug\WCS.exe.config |
| | | E:\æ°å»ºæä»¶å¤¹\KLSMFWCS20220326\WCS\obj\Debug\WCS.exe |
| | | E:\æ°å»ºæä»¶å¤¹\KLSMFWCS20220326\WCS\obj\Debug\WCS.pdb |
| | | E:\æ°å»ºæä»¶å¤¹\KLSMFWCS20220326\WCS\obj\Debug\WCS.csprojResolveAssemblyReference.cache |
| | | E:\æ°å»ºæä»¶å¤¹\KLSMFWCS20220326\WCS\obj\Debug\WCS.crndisplay.resources |
| | | E:\æ°å»ºæä»¶å¤¹\KLSMFWCS20220326\WCS\obj\Debug\WCS.exit.resources |
| | | E:\æ°å»ºæä»¶å¤¹\KLSMFWCS20220326\WCS\obj\Debug\WCS.main.resources |
| | | E:\æ°å»ºæä»¶å¤¹\KLSMFWCS20220326\WCS\obj\Debug\WCS.plcset.resources |
| | | E:\æ°å»ºæä»¶å¤¹\KLSMFWCS20220326\WCS\obj\Debug\WCS.Properties.Resources.resources |
| | | E:\æ°å»ºæä»¶å¤¹\KLSMFWCS20220326\WCS\obj\Debug\WCS.stndisplay.resources |
| | | E:\æ°å»ºæä»¶å¤¹\KLSMFWCS20220326\WCS\obj\Debug\WCS.warn.resources |
| | | E:\æ°å»ºæä»¶å¤¹\KLSMFWCS20220326\WCS\obj\Debug\WCS.warn1.resources |
| | | E:\æ°å»ºæä»¶å¤¹\KLSMFWCS20220326\WCS\obj\Debug\WCS.csproj.GenerateResource.Cache |
| | | E:\æ°å»ºæä»¶å¤¹\KLSMFWCS20220326\WCS\bin\Debug\WCS.exe |
| | | E:\æ°å»ºæä»¶å¤¹\KLSMFWCS20220326\WCS\bin\Debug\WCS.pdb |
| | | D:\work\å¨å
¶æ\å
峿¯çè²\å
峿¯çè²äºæ\KLSWCS\WCS\bin\Debug\WCS.exe.config |
| | | D:\work\å¨å
¶æ\å
峿¯çè²\å
峿¯çè²äºæ\KLSWCS\WCS\obj\Debug\WCS.exe |
| | | D:\work\å¨å
¶æ\å
峿¯çè²\å
峿¯çè²äºæ\KLSWCS\WCS\obj\Debug\WCS.pdb |
| | | D:\work\å¨å
¶æ\å
峿¯çè²\å
峿¯çè²äºæ\KLSWCS\WCS\bin\Debug\WCS.exe |
| | | D:\work\å¨å
¶æ\å
峿¯çè²\å
峿¯çè²äºæ\KLSWCS\WCS\bin\Debug\WCS.pdb |
| | | D:\work\å¨å
¶æ\å
峿¯çè²\å
峿¯çè²äºæ\KLSWCS\WCS\obj\Debug\WCS.crndisplay.resources |
| | | D:\work\å¨å
¶æ\å
峿¯çè²\å
峿¯çè²äºæ\KLSWCS\WCS\obj\Debug\WCS.exit.resources |
| | | D:\work\å¨å
¶æ\å
峿¯çè²\å
峿¯çè²äºæ\KLSWCS\WCS\obj\Debug\WCS.main.resources |
| | | D:\work\å¨å
¶æ\å
峿¯çè²\å
峿¯çè²äºæ\KLSWCS\WCS\obj\Debug\WCS.plcset.resources |
| | | D:\work\å¨å
¶æ\å
峿¯çè²\å
峿¯çè²äºæ\KLSWCS\WCS\obj\Debug\WCS.Properties.Resources.resources |
| | | D:\work\å¨å
¶æ\å
峿¯çè²\å
峿¯çè²äºæ\KLSWCS\WCS\obj\Debug\WCS.stndisplay.resources |
| | | D:\work\å¨å
¶æ\å
峿¯çè²\å
峿¯çè²äºæ\KLSWCS\WCS\obj\Debug\WCS.warn.resources |
| | | D:\work\å¨å
¶æ\å
峿¯çè²\å
峿¯çè²äºæ\KLSWCS\WCS\obj\Debug\WCS.warn1.resources |
| | | D:\work\å¨å
¶æ\å
峿¯çè²\å
峿¯çè²äºæ\KLSWCS\WCS\obj\Debug\WCS.csproj.GenerateResource.Cache |
| | | D:\work\å¨å
¶æ\å
峿¯çè²\å
峿¯çè²äºæ\KLSWCS\WCS\obj\Debug\WCS.Form2.resources |
| | | D:\work\å¨å
¶æ\å
峿¯çè²\å
峿¯çè²äºæ\KLSWCS\WCS\obj\Debug\WCS.csprojResolveAssemblyReference.cache |
| | | D:\work\çå½ä¿\æµ·çåæº\WCSMapEditor\WCS\bin\Debug\WCS.exe.config |
| | | D:\work\çå½ä¿\æµ·çåæº\WCSMapEditor\WCS\obj\Debug\WCS.exe |
| | | D:\work\çå½ä¿\æµ·çåæº\WCSMapEditor\WCS\obj\Debug\WCS.pdb |
| | | D:\work\çå½ä¿\æµ·çåæº\WCSMapEditor\WCS\obj\Debug\WCS.crndisplay.resources |
| | | D:\work\çå½ä¿\æµ·çåæº\WCSMapEditor\WCS\obj\Debug\WCS.exit.resources |
| | | D:\work\çå½ä¿\æµ·çåæº\WCSMapEditor\WCS\obj\Debug\WCS.main.resources |
| | | D:\work\çå½ä¿\æµ·çåæº\WCSMapEditor\WCS\obj\Debug\WCS.Form2.resources |
| | | D:\work\çå½ä¿\æµ·çåæº\WCSMapEditor\WCS\obj\Debug\WCS.plcset.resources |
| | | D:\work\çå½ä¿\æµ·çåæº\WCSMapEditor\WCS\obj\Debug\WCS.Properties.Resources.resources |
| | | D:\work\çå½ä¿\æµ·çåæº\WCSMapEditor\WCS\obj\Debug\WCS.stndisplay.resources |
| | | D:\work\çå½ä¿\æµ·çåæº\WCSMapEditor\WCS\obj\Debug\WCS.warn.resources |
| | | D:\work\çå½ä¿\æµ·çåæº\WCSMapEditor\WCS\obj\Debug\WCS.warn1.resources |
| | | D:\work\çå½ä¿\æµ·çåæº\WCSMapEditor\WCS\obj\Debug\WCS.csproj.GenerateResource.Cache |
| | | D:\work\çå½ä¿\æµ·çåæº\WCSMapEditor\WCS\bin\Debug\WCS.exe |
| | | D:\work\çå½ä¿\æµ·çåæº\WCSMapEditor\WCS\bin\Debug\WCS.pdb |
| | | D:\work\æ¥ä¹å¥\èè½PACK线\WCSMapEditor\WCS\bin\Debug\WCS.exe.config |
| | | D:\work\æ¥ä¹å¥\èè½PACK线\WCSMapEditor\WCS\obj\Debug\WCS.exe |
| | | D:\work\æ¥ä¹å¥\èè½PACK线\WCSMapEditor\WCS\obj\Debug\WCS.pdb |
| | | D:\work\æ¥ä¹å¥\èè½PACK线\WCSMapEditor\WCS\bin\Debug\WCS.exe |
| | | D:\work\æ¥ä¹å¥\èè½PACK线\WCSMapEditor\WCS\bin\Debug\WCS.pdb |
| | | D:\work\æ¥ä¹å¥\èè½PACK线\WCSMapEditor\WCS\obj\Debug\WCS.csprojResolveAssemblyReference.cache |
| | | D:\work\æ¥ä¹å¥\èè½PACK线\WCSMapEditor\WCS\obj\Debug\WCS.crndisplay.resources |
| | | D:\work\æ¥ä¹å¥\èè½PACK线\WCSMapEditor\WCS\obj\Debug\WCS.exit.resources |
| | | D:\work\æ¥ä¹å¥\èè½PACK线\WCSMapEditor\WCS\obj\Debug\WCS.main.resources |
| | | D:\work\æ¥ä¹å¥\èè½PACK线\WCSMapEditor\WCS\obj\Debug\WCS.Form2.resources |
| | | D:\work\æ¥ä¹å¥\èè½PACK线\WCSMapEditor\WCS\obj\Debug\WCS.plcset.resources |
| | | D:\work\æ¥ä¹å¥\èè½PACK线\WCSMapEditor\WCS\obj\Debug\WCS.Properties.Resources.resources |
| | | D:\work\æ¥ä¹å¥\èè½PACK线\WCSMapEditor\WCS\obj\Debug\WCS.stndisplay.resources |
| | | D:\work\æ¥ä¹å¥\èè½PACK线\WCSMapEditor\WCS\obj\Debug\WCS.warn.resources |
| | | D:\work\æ¥ä¹å¥\èè½PACK线\WCSMapEditor\WCS\obj\Debug\WCS.warn1.resources |
| | | D:\work\æ¥ä¹å¥\èè½PACK线\WCSMapEditor\WCS\obj\Debug\WCS.csproj.GenerateResource.Cache |
| | | D:\work\çå½ä¿\宿ºä¸æ\WCSMapEditor\WCS\bin\Debug\WCS.exe.config |
| | | D:\work\çå½ä¿\宿ºä¸æ\WCSMapEditor\WCS\bin\Debug\WCS.exe |
| | | D:\work\çå½ä¿\宿ºä¸æ\WCSMapEditor\WCS\bin\Debug\WCS.pdb |
| | | D:\work\çå½ä¿\宿ºä¸æ\WCSMapEditor\WCS\obj\Debug\WCS.csprojResolveAssemblyReference.cache |
| | | D:\work\çå½ä¿\宿ºä¸æ\WCSMapEditor\WCS\obj\Debug\WCS.crndisplay.resources |
| | | D:\work\çå½ä¿\宿ºä¸æ\WCSMapEditor\WCS\obj\Debug\WCS.exit.resources |
| | | D:\work\çå½ä¿\宿ºä¸æ\WCSMapEditor\WCS\obj\Debug\WCS.main.resources |
| | | D:\work\çå½ä¿\宿ºä¸æ\WCSMapEditor\WCS\obj\Debug\WCS.Form2.resources |
| | | D:\work\çå½ä¿\宿ºä¸æ\WCSMapEditor\WCS\obj\Debug\WCS.plcset.resources |
| | | D:\work\çå½ä¿\宿ºä¸æ\WCSMapEditor\WCS\obj\Debug\WCS.Properties.Resources.resources |
| | | D:\work\çå½ä¿\宿ºä¸æ\WCSMapEditor\WCS\obj\Debug\WCS.stndisplay.resources |
| | | D:\work\çå½ä¿\宿ºä¸æ\WCSMapEditor\WCS\obj\Debug\WCS.warn.resources |
| | | D:\work\çå½ä¿\宿ºä¸æ\WCSMapEditor\WCS\obj\Debug\WCS.warn1.resources |
| | | D:\work\çå½ä¿\宿ºä¸æ\WCSMapEditor\WCS\obj\Debug\WCS.csproj.GenerateResource.Cache |
| | | D:\work\çå½ä¿\宿ºä¸æ\WCSMapEditor\WCS\obj\Debug\WCS.exe |
| | | D:\work\çå½ä¿\宿ºä¸æ\WCSMapEditor\WCS\obj\Debug\WCS.pdb |
| | | D:\work\çå½ä¿\è¯è¾¾\WCSMapEditor\WCS\bin\Debug\WCS.exe.config |
| | | D:\work\çå½ä¿\è¯è¾¾\WCSMapEditor\WCS\obj\Debug\WCS.exe |
| | | D:\work\çå½ä¿\è¯è¾¾\WCSMapEditor\WCS\obj\Debug\WCS.pdb |
| | | D:\work\çå½ä¿\è¯è¾¾\WCSMapEditor\WCS\bin\Debug\WCS.exe |
| | | D:\work\çå½ä¿\è¯è¾¾\WCSMapEditor\WCS\bin\Debug\WCS.pdb |
| | | D:\work\çå½ä¿\è¯è¾¾\WCSMapEditor\WCS\obj\Debug\WCS.csprojResolveAssemblyReference.cache |
| | | D:\work\çå½ä¿\è¯è¾¾\WCSMapEditor\WCS\obj\Debug\WCS.crndisplay.resources |
| | | D:\work\çå½ä¿\è¯è¾¾\WCSMapEditor\WCS\obj\Debug\WCS.exit.resources |
| | | D:\work\çå½ä¿\è¯è¾¾\WCSMapEditor\WCS\obj\Debug\WCS.main.resources |
| | | D:\work\çå½ä¿\è¯è¾¾\WCSMapEditor\WCS\obj\Debug\WCS.Form2.resources |
| | | D:\work\çå½ä¿\è¯è¾¾\WCSMapEditor\WCS\obj\Debug\WCS.plcset.resources |
| | | D:\work\çå½ä¿\è¯è¾¾\WCSMapEditor\WCS\obj\Debug\WCS.Properties.Resources.resources |
| | | D:\work\çå½ä¿\è¯è¾¾\WCSMapEditor\WCS\obj\Debug\WCS.stndisplay.resources |
| | | D:\work\çå½ä¿\è¯è¾¾\WCSMapEditor\WCS\obj\Debug\WCS.warn.resources |
| | | D:\work\çå½ä¿\è¯è¾¾\WCSMapEditor\WCS\obj\Debug\WCS.warn1.resources |
| | | D:\work\çå½ä¿\è¯è¾¾\WCSMapEditor\WCS\obj\Debug\WCS.csproj.GenerateResource.Cache |
| | | C:\project\WCSMapEditor\WCS\bin\Debug\WCS.exe.config |
| | | C:\project\WCSMapEditor\WCS\obj\Debug\WCS.exe |
| | | C:\project\WCSMapEditor\WCS\obj\Debug\WCS.pdb |
| | | C:\project\WCSMapEditor\WCS\bin\Debug\WCS.exe |
| | | C:\project\WCSMapEditor\WCS\bin\Debug\WCS.pdb |
| | | C:\project\WCSMapEditor\WCS\obj\Debug\WCS.csprojResolveAssemblyReference.cache |
| | | C:\project\WCSMapEditor\WCS\obj\Debug\WCS.crndisplay.resources |
| | | C:\project\WCSMapEditor\WCS\obj\Debug\WCS.exit.resources |
| | | C:\project\WCSMapEditor\WCS\obj\Debug\WCS.main.resources |
| | | C:\project\WCSMapEditor\WCS\obj\Debug\WCS.Form2.resources |
| | | C:\project\WCSMapEditor\WCS\obj\Debug\WCS.plcset.resources |
| | | C:\project\WCSMapEditor\WCS\obj\Debug\WCS.Properties.Resources.resources |
| | | C:\project\WCSMapEditor\WCS\obj\Debug\WCS.stndisplay.resources |
| | | C:\project\WCSMapEditor\WCS\obj\Debug\WCS.warn.resources |
| | | C:\project\WCSMapEditor\WCS\obj\Debug\WCS.warn1.resources |
| | | C:\project\WCSMapEditor\WCS\obj\Debug\WCS.csproj.GenerateResource.Cache |
| | | C:\project\STWCSMapEditor\WCS\bin\Debug\WCS.exe.config |
| | | C:\project\STWCSMapEditor\WCS\obj\Debug\WCS.exe |
| | | C:\project\STWCSMapEditor\WCS\obj\Debug\WCS.pdb |
| | | C:\project\STWCSMapEditor\WCS\bin\Debug\WCS.exe |
| | | C:\project\STWCSMapEditor\WCS\bin\Debug\WCS.pdb |
| | | C:\project\STWCSMapEditor\WCS\obj\Debug\WCS.csprojResolveAssemblyReference.cache |
| | | C:\project\STWCSMapEditor\WCS\obj\Debug\WCS.crndisplay.resources |
| | | C:\project\STWCSMapEditor\WCS\obj\Debug\WCS.exit.resources |
| | | C:\project\STWCSMapEditor\WCS\obj\Debug\WCS.main.resources |
| | | C:\project\STWCSMapEditor\WCS\obj\Debug\WCS.Form2.resources |
| | | C:\project\STWCSMapEditor\WCS\obj\Debug\WCS.plcset.resources |
| | | C:\project\STWCSMapEditor\WCS\obj\Debug\WCS.Properties.Resources.resources |
| | | C:\project\STWCSMapEditor\WCS\obj\Debug\WCS.stndisplay.resources |
| | | C:\project\STWCSMapEditor\WCS\obj\Debug\WCS.warn.resources |
| | | C:\project\STWCSMapEditor\WCS\obj\Debug\WCS.warn1.resources |
| | | C:\project\STWCSMapEditor\WCS\obj\Debug\WCS.csproj.GenerateResource.Cache |
| | | C:\project\STWCSMapEditor\WCS\obj\Debug\WCS.Form3.resources |
| | | C:\project\STWCSMapEditor\WCS\obj\Debug\WCS.Form4.resources |
| version/STWCSMapEditor/WCS/obj/Debug/WCS.csproj.GenerateResource.Cache
version/STWCSMapEditor/WCS/obj/Debug/WCS.csprojResolveAssemblyReference.cache
version/STWCSMapEditor/WCS/obj/Debug/WCS.exe
version/STWCSMapEditor/WCS/obj/Debug/WCS.exit.resources
version/STWCSMapEditor/WCS/obj/Debug/WCS.main.resources
version/STWCSMapEditor/WCS/obj/Debug/WCS.pdb
version/STWCSMapEditor/WCS/obj/Debug/WCS.plcset.resources
version/STWCSMapEditor/WCS/obj/Debug/WCS.stndisplay.resources
version/STWCSMapEditor/WCS/obj/Debug/WCS.warn.resources
version/STWCSMapEditor/WCS/obj/Debug/WCS.warn1.resources
version/STWCSMapEditor/WCS/obj/Release/ResolveAssemblyReference.cache
version/STWCSMapEditor/WCS/obj/Release/TempPE/Properties.Resources.Designer.cs.dll
version/STWCSMapEditor/WCS/obj/Release/WCS.Properties.Resources.resources
version/STWCSMapEditor/WCS/obj/Release/WCS.crndisplay.resources
version/STWCSMapEditor/WCS/obj/Release/WCS.csproj.FileListAbsolute.txt
version/STWCSMapEditor/WCS/obj/Release/WCS.csproj.GenerateResource.Cache
version/STWCSMapEditor/WCS/obj/Release/WCS.exe
version/STWCSMapEditor/WCS/obj/Release/WCS.main.resources
version/STWCSMapEditor/WCS/obj/Release/WCS.pdb
version/STWCSMapEditor/WCS/obj/Release/WCS.plcset.resources
version/STWCSMapEditor/WCS/obj/Release/WCS.stndisplay.resources
version/STWCSMapEditor/WCS/obj/Release/WCS.warn.resources
version/STWCSMapEditor/WCS/obj/Release/WCS.warn1.resources
version/STWCSMapEditor/WCS/plcset.Designer.cs
version/STWCSMapEditor/WCS/plcset.cs
version/STWCSMapEditor/WCS/plcset.resx
version/STWCSMapEditor/WCS/stndisplay.Designer.cs
version/STWCSMapEditor/WCS/stndisplay.cs
version/STWCSMapEditor/WCS/stndisplay.resx
version/STWCSMapEditor/WCS/warn.Designer.cs
version/STWCSMapEditor/WCS/warn.cs
version/STWCSMapEditor/WCS/warn.resx
version/STWCSMapEditor/WCS/warn1.Designer.cs
version/STWCSMapEditor/WCS/warn1.cs
version/STWCSMapEditor/WCS/warn1.resx |