C # develop WeChat portal and application (25)-Client Management Function of WeChat enterprise account,

Source: Internet
Author: User

C # development portal and application (25)-enterprise account client management function,

We know that both the public account and enterprise account provide an official Web Background to facilitate our account configuration and related data management functions. For enterprise accounts, includes the organization structure management, tag management, personnel management, and message sending functions in the address book. The organizational structure and tags of the enterprise number can be added to corresponding personnel, A message can contain text, images, voice, video, text, and files. For enterprise accounts, the official interface can send messages almost infinitely. Therefore, building a management background to manage enterprise accounts and sending messages to enterprise members is a good feature, sometimes it can improve the efficiency of message communication and daily work management in our enterprise. This article explores how to implement these functions using Winform client.

1. process the configuration of enterprise number Parameters

We know that servers (including public accounts and enterprise accounts) build a bridge between the customer's mobile phone number and the developer's server, and implement interaction with users through message transmission and response, the following is a message flowchart.

Therefore, before using your own website system, You need to log on to the official background to initialize some information and obtain the corresponding parameter settings. With these parameter information, you can configure it in your website system, in order to build a complete link for message delivery and response.

After we have configured the connection between the [developer server] service and the [server], we have implemented the basic message interaction process. In this way, we can configure the enterprise account client for use.

1) website system parameter configuration

In order to implement the message link, we need to configure the corresponding parameters in the website system so that we can complete the official background callback mode.

First, log on to the enterprise background management on our development server.

Configure relevant parameter information for the enterprise account.

Complete parameter configuration for the entire Website Based on the callback processing operation on the server.

 

2) enterprise account client parameter configuration

Before using the enterprise account client function, you must configure the corresponding parameter information in [parameter configuration] to correctly communicate with the background and obtain data on the server.

In addition to some parameters in the callback settings, the parameters in the above Client Software Dialog Box also need to be combined with some other parameters in the background so that we can configure the connection operation with the server.

CorpID: Unique Identification enterprise number: after the enterprise number is activated, it has a CorpID. Different enterprise numbers have different CorpID IDs, which are equivalent to the enterprise ID. When development and access are started, enterprise developers must use CorpID and Secret in exchange for Access_Token before calling the enterprise ID interface.

Secret: indicates the credential key of the Management Group. When the system administrator creates a management group in the enterprise ID management background, the enterprise ID background assigns a unique secret to the Management Group. This secret allows you to determine the management group and the access permissions of the Management Group on applications, address books, and interfaces.

 

2. management functions of organizations

In my essay "C # development portal and application (17)-Address Book Management and Development Department management of enterprise number", I introduced the management operations of enterprise number organizations.

By default, we can create a root node in the background and then process it on this node.

I have introduced so much that it seems that the interface functions of the Winform client of this enterprise account have not yet been displayed. Here, the software is mainly used to perform regular data operations, but it is just a function to directly call the enterprise account API, these APIs are the implementation of interfaces described in the previous series.

The following is the Winform client interface of the enterprise account. This interface is mainly processed using the Winform structure of my traditional style to implement the multi-document operation interface.

[Organization list] In the management module, the relevant address book organization structure is listed in the tree list. You can select different organization levels to list the corresponding personnel. The interface is shown below.

Through the function operation in the red box above, we can see the relevant functions of the Organization, including creating sub-departments, deleting departments, modifying departments, and implementing personnel management for departments: add members, delete members, modify members, move members, disable or enable personnel, and the list of left-side departments is displayed in a tree, all these operations are handled by calling the API directly. The submitted results can be seen in the enterprise account background in a timely manner.

These functions are implemented by imitating the functions of the enterprise account background. They are based on Winform and can be combined with local data processing to implement richer interfaces and data management.

To add members, you can enter the corresponding information on the input interface. The function implementation interface is as follows.

If you are a mobile member, a department list will pop up for the user to choose to move to a specific department. After confirmation, the Department will be moved.

 

3. Tag Management

[Label list] All visible labels are listed in the tree list on the left. If there is a department organization or personnel under the label, it is listed in the List, the specific interface is as follows.

This module includes the following functions: Create, delete, and modify tags, add and delete tag members.

The management of tags is very simple. It mainly maintains a concept similar to a group. We can create, modify, or delete corresponding tags.

At the same time, we can add the corresponding department and Personnel set for the tag. The operation is as follows.

 

4. Send messages

The message sending function module allows you to select the sending object, including the organization, tag, and personnel, including text, images, voice, video, text, and files.

 

Selecting a person provides a multi-function Selection interface, including selecting a department, tag, and person. Finally, you can return the selected object through "Finish selection.

After selecting an object and entering the corresponding sending content, click send to send the message. Then, you can view the latest message on the corresponding member mobile phone, the following is an enterprise ID page that receives images and text.

Other content, such as video and voice, must be uploaded to the server and sent and processed.

 

If you are interested in this series of C # development portals and applications, you can follow my other articles as follows:

C # development portal and application (25)-enterprise account Client Management Function

C # development portal and application (24)-store shelf Information Management

C # development portal and application (23)-packaging and testing of the store product management interface

C # development portal and application (22)-Development and Use of stores

C # development portal and application (21)-receiving, processing, and decryption of enterprise numbers and events

C # development portal and application (20)-menu management of enterprise number

C # development portal and application (19)-sending of enterprise numbers (text, images, files, voice, video, text messages, etc)

C # development portal and application (18)-member management for enterprise address book management and development

C # development portal and application (17)-department management for enterprise address book management and development

C # development portal and application (16)-enterprise number configuration and use

C # development portal and application (15)-added the scan, image sending, and geographic location functions in the menu

C # development portal and application (14)-use redirection in the menu to obtain user data

C # development portal and application (13)-use geographic location Extension

C # development portal and application (12)-use voice processing

C # development portal and application (11)-menu presentation

C # development portal and application (10) -- synchronize user group information in the management system

C # development portal and application (9)-portal menu management and submission to server

C # development portal and application (8)-portal application management system function Introduction

C # development portal and application (7)-Multi-customer service functions and development integration

C # development portal and application (6)-portal menu management operations

C # development portal and application (5) -- User Group Information Management

C # development portal and application (4) -- Focus on the user list and detailed information management

C # development portal and application (3) -- Response to text messages and text messages

C # development portal and application (2) -- Message Processing and response

C # development portal and application (1) -- getting started with Interfaces

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.