Based on the common requirements of CRM Customers and consultants, the boss decided to add the call bullet screen function to the CRM system. The so-called call bullet screen is that when a call is made, the computer displays the customer, contact, or supplier details corresponding to the phone number. If the phone number is a new number, a new customer is added.
To achieve this effect, First hardware support is required. Finally, the boss decided to use Newman USB as the connection medium between the phone and the computer. It provided a secondary development interface, you can obtain the phone number on your computer and play the screen. Next, you need to reserve an interface in the CRM system to support pop-up information based on the phone number. Since CRM was previously integrated with a well-known call center, there was such an excuse.
As a result, only one client is connected to the hardware and CRM system. laidian provides development examples in multiple languages, such as VB, Delphi, and C #. Since I have learned Java, C # syntax is similar to Java. I used vs2005 to write the MFC program, so I persuaded the boss to use C # To send the client.
C # It is very efficient to develop a Windows client. I made a simple demo one day and implemented the function of bullet screen, after that, you can manually start the system and allow only one process to run. Then, you can complete the page beautification. Of course, many of the items are searched by Google in many blogs, what should I do if there is no Google? Now I will sort out the information:
C # import (laidian Tong) API function extraction telephone number: http://topic.csdn.net/u/20080319/17/6e20454d-3457-4ece-ac1b-30c03a1729ed.html
C # The program can only run once: http://www.cnblogs.com/fubin/archive/2009/12/08/1619229.html
C # boot Automatic startup program: http://www.cnblogs.com/xumingming/archive/2009/01/08/1371931.html
Winform program plus icon: http://wenwen.soso.com/z/q173944920.htm
In addition, there is a small bug in the interfaces developed by Newman USB. The callback function in the setup_tel function will also be triggered when you call, in addition, the phone number is not necessarily the number you dial (which is related to the speed of your dial). In this case, you can use the lineoffhook_tel function to determine whether the phone is disconnected and whether the phone is called. The Code is as follows:
Java code
- String number;
- Bool zhaiji = LDT. lineoffhook_tel (port );
- Number = LDT. getnumber_tel (port). tostring ();
- If (! Zhaiji)
- {
- // Call now
- }
Now, let's summarize it. After this task is completed, a new task will be created immediately. Another new coding journey begins.