日期:2014-05-20  浏览次数:20675 次

大家帮忙看看 这个东西怎么获得 值呢?
这是   BizTalk   RFID   中间件我声明的一个函数
类型是PropertyProfile的
主要功能描述下:
向设备发了,读参数命令后,把返回的值,做处理,根据返回的值,向PropertyProfile里添加属性,最后在   BizTalk   RFID   上显示出来。
这个函数的处理,没问题。   问题主要是下面代码部分。
internal   PropertyProfile     ParseProperty(byte[]   resultBytes)
                {
                        PropertyProfile   profile   =   new   PropertyProfile();
PropertyKey   rfModeContKey   =   new   PropertyKey(StandardDevicePropertyGroups.RF,   RFPropertyGroup.RFModeContinuous);
                     
                        PropertyKey   Frequency   =   new   PropertyKey(StandardDevicePropertyGroups.RF,   RFPropertyGroup.Frequency);
                     
if(resultBytes[7]==0)       //   auto   or   continous
                        profile[rfModeContKey]   =   true;
                        else
                        profile[rfModeContKey]   =   false   ;
                        profile[Frequency]   =   freValue(resultBytes[8]);

                        return   profile;
                     
                }

问题在这里:
//spc.Property.Key.GroupName.XX;
//spc.Property.PropertyValue.
如何在这里把,BizTalk   RFID   中间件的界面上的   属性   取出来??


if   (command   is   SetPropertyCommand)
                        {
                                byte[]   para   =   new   byte[32];              
                                SetPropertyCommand   spc   =   (SetPropertyCommand)command;
                                //spc.Property.Key.GroupName.XX;
                                //spc.Property.PropertyValue.
                               
                                RfCmd.RfSetFactoryParameter(para);
                                return   null;
}




------解决方案--------------------
这好像就涉及到你的具体业务了吧...

你说的我也没做过,对你的业务也不熟啊...