private string GetWriteCmdStr(LinkageCtrlInfo linkageCtrlInfo)
        {
            //协议版本,目前固定位01
            string strCmdStr = "01";

            //设备Ip
            strCmdStr += CommonUtils.GetHexByIP(linkageCtrlInfo.DevIp);
            //子网掩码
            strCmdStr += CommonUtils.GetHexByIP(linkageCtrlInfo.SubnetMask);
            //网关
            strCmdStr += CommonUtils.GetHexByIP(linkageCtrlInfo.GateWay);
            //云电梯UDP端口
            strCmdStr += StrUtils.IntToHex(linkageCtrlInfo.CloudUdpPort, 4);
            //第三方对讲机UDP端口
            strCmdStr += StrUtils.IntToHex(linkageCtrlInfo.ThirdUdpPort, 4);
            //云电梯数量
            strCmdStr += StrUtils.IntToHex(linkageCtrlInfo.CloudElevatorCount, 2);
            //8个云电梯设备信息
            for (int i = 1; i <= linkageCtrlInfo.CloudElevatorCount; i++)
            {
                strCmdStr += CommonUtils.GetHexByIP(linkageCtrlInfo.CloudElevatorItems[i].DevIp);
                strCmdStr += StrUtils.IntToHex(linkageCtrlInfo.CloudElevatorItems[i].CtrlProporties, 2);
            }
            //获取mac值
            strCmdStr += KeyMacOperate.GetMacEx(strCmdStr);
            return(strCmdStr);
        }
        private void SaveSystemPsd()
        {
            string psd = string.Empty;

            switch (this.rgpPsd.SelectedIndex)
            {
            case 0:
            {
                psd = KeyMacOperate.DEFAULT_SYSTEM_ENCRY_PSD;
            }
            break;

            case 1:
            {
                psd = this.edtPsd.Text.Trim();
                psd = KeyMacOperate.GetEncryKey(psd);
            }
            break;

            default:
            {
                psd = KeyMacOperate.DEFAULT_SYSTEM_ENCRY_PSD;
            }
            break;
            }
            AppEnv.Singleton.SystemPsd = psd;
            AppXmlConfig.Singleton[AppXmlConfig.SYSTEM_PSD] = psd;
            AppXmlConfig.Singleton.Save();
        }