예제 #1
0
        /// <summary>
        /// 创建营业厅
        /// </summary>
        /// <param name="areaID">营业厅编号</param>
        /// <param name="areaName">营业厅名称</param>
        /// <param name="areaDesc">营业厅描述</param>
        /// <returns></returns>
        private int createArea(AreaInfo areaInfo)
        {
            int retVal = 0;

            retVal = AnyChatServerSDK.BRAS_ObjectControl(AnyChatServerSDK.ANYCHAT_OBJECT_TYPE_AREA, areaInfo.AreaID, AnyChatServerSDK.ANYCHAT_OBJECT_CTRL_CREATE, 0, 0, 0, 0, "");

            retVal = AnyChatServerSDK.BRAS_ObjectSetValue(AnyChatServerSDK.ANYCHAT_OBJECT_TYPE_AREA, areaInfo.AreaID, AnyChatServerSDK.ANYCHAT_OBJECT_INFO_NAME, areaInfo.AreaName, areaInfo.AreaName.ToCharArray().Length);

            retVal = AnyChatServerSDK.BRAS_ObjectSetValue(AnyChatServerSDK.ANYCHAT_OBJECT_TYPE_AREA, areaInfo.AreaID, AnyChatServerSDK.ANYCHAT_OBJECT_INFO_DESCRIPTION, areaInfo.AreaDescription, areaInfo.AreaDescription.ToCharArray().Length);

            return retVal;
        }
예제 #2
0
        /// <summary>
        /// 初始化智能排队数据
        /// </summary>
        private void initBusinessQueue()
        {
            AreaInfo areaInfo = new AreaInfo();
            areaInfo.AreaID = 10001;
            areaInfo.AreaName = "科韵路营业厅";
            areaInfo.AreaDescription = "位于广州市科韵路,服务超级棒!";
            createArea(areaInfo);

            QueueInfo queueInfo = new QueueInfo();
            queueInfo.QueueID = 101;
            queueInfo.QueueName = "个人业务队列";
            queueInfo.QueueDescription = "办理开户、挂失、转帐业务";
            queueInfo.businessType = BusinessType.PersonalBusiness;
            queueInfo.QueuePriority = 0;
            queueInfo.intTag = 2;
            queueInfo.AreaID = areaInfo.AreaID;
            createQueue(queueInfo);

            queueInfo.QueueID = 102;
            queueInfo.QueueName = "个人业务队列(VIP)";
            queueInfo.QueueDescription = "办理开户、挂失、转帐业务";
            queueInfo.businessType = BusinessType.PersonalBusiness;
            queueInfo.QueuePriority = 10;
            queueInfo.intTag = 2;
            queueInfo.AreaID = areaInfo.AreaID;
            createQueue(queueInfo);

            queueInfo.QueueID = 103;
            queueInfo.QueueName = "对公业务队列";
            queueInfo.QueueDescription = "办理支票、回单、基本户业务";
            queueInfo.businessType = BusinessType.CompanyBusiness;
            queueInfo.QueuePriority = 0;
            queueInfo.intTag = 3;
            queueInfo.AreaID = areaInfo.AreaID;
            createQueue(queueInfo);

            areaInfo.AreaID = 10002;
            areaInfo.AreaName = "天河路营业厅";
            areaInfo.AreaDescription = "七星级旗舰店,高端客户首选!";
            createArea(areaInfo);

            queueInfo.QueueID = 201;
            queueInfo.QueueName = "投资理财业务队列";
            queueInfo.QueueDescription = "办理基金、理财产品、贵金属业务";
            queueInfo.businessType = BusinessType.PersonalBusiness;
            queueInfo.QueuePriority = 0;
            queueInfo.intTag = 2;
            queueInfo.AreaID = areaInfo.AreaID;
            createQueue(queueInfo);

            queueInfo.QueueID = 202;
            queueInfo.QueueName = "商业贷款业务队列";
            queueInfo.QueueDescription = "办理房贷、车贷业务";
            queueInfo.businessType = BusinessType.PersonalBusiness;
            queueInfo.QueuePriority = 10;
            queueInfo.intTag = 3;
            queueInfo.AreaID = areaInfo.AreaID;
            createQueue(queueInfo);

            this.rtb_message.AppendText("成功初化始智能排队业务数据\n");
        }