123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534 |
- // AddHospitalClient.cpp : implementation file
- //
- #include "stdafx.h"
- #include "ylgl.h"
- #include "AddHospitalClient.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // AddHospitalClient dialog
- AddHospitalClient::AddHospitalClient(CWnd* pParent /*=NULL*/)
- : CDialog(AddHospitalClient::IDD, pParent)
- {
- //{{AFX_DATA_INIT(AddHospitalClient)
- checkmsg = FALSE;
- name1 = _T("");
- name2 = _T("");
- food = _T("");
- sex = _T("");
- check1 = FALSE;
- birthdaytype = 0;
- birthday = _T("");
- pregnancydays = _T("");
- qq = _T("");
- date1 = GetTmFromStr(g_date);
- no = _T("");
- from = _T("");
- clerk = _T("");
- type = _T("");
- hospital = _T("");
- remark = _T("");
- phone1 = _T("");
- phone2 = _T("");
- phone3 = _T("");
- phone4 = _T("");
- phone5 = _T("");
- addr1 = _T("");
- addr2 = _T("");
- addr3 = _T("");
- post1 = _T("");
- post2 = _T("");
- post3 = _T("");
- businesstype = _T("");
- businessintention = _T("");
- bookingdate = GetTmFromStr(g_date);
- desaddr = _T("");
- businessremark = _T("");
- alarmcheck = FALSE;
- alarmdate = GetTmFromStr(g_date);
- bAdd=1;
- //}}AFX_DATA_INIT
- }
- void AddHospitalClient::DoDataExchange(CDataExchange* pDX)
- {
- CDialog::DoDataExchange(pDX);
- //{{AFX_DATA_MAP(AddHospitalClient)
- DDX_Control(pDX, IDC_LIST2, m_List1);
- DDX_Control(pDX, IDC_EDITBirthday, m_datectrl);
- DDX_Control(pDX, IDC_COMBObusinessintention, businessintentionCombo);
- DDX_Control(pDX, IDC_COMBOtype, typeCombo);
- DDX_Control(pDX, IDC_COMBOsex, sexCombo);
- DDX_Control(pDX, IDC_COMBOhospital, hospitalCombo);
- DDX_Control(pDX, IDC_COMBOfrom, fromCombo);
- DDX_Control(pDX, IDC_COMBOfood, foodCombo);
- DDX_Control(pDX, IDC_COMBOdesaddr, desaddrCombo);
- DDX_Control(pDX, IDC_COMBOclerk, clerkCombo);
- DDX_Control(pDX, IDC_COMBObusinesstype, businesstypeCombo);
- DDX_Check(pDX, IDC_CHECK1, check1);
- DDX_Check(pDX, IDC_CHECKalarmcheck, alarmcheck);
- DDX_Check(pDX, IDC_CHECKmsg, checkmsg);
- DDX_DateTimeCtrl(pDX, IDC_DATETIMEPICKERalarmdate, alarmdate);
- DDX_DateTimeCtrl(pDX, IDC_DATETIMEPICKERbookingdate, bookingdate);
- DDX_DateTimeCtrl(pDX, IDC_DATETIMEPICKERdate1, date1);
- DDX_Text(pDX, IDC_EDITaddr1, addr1);
- DDX_Text(pDX, IDC_EDITaddr2, addr2);
- DDX_Text(pDX, IDC_EDITaddr3, addr3);
- DDX_Text(pDX, IDC_EDITBirthday, birthday);
- DDX_Text(pDX, IDC_EDITbusinessremark, businessremark);
- DDX_Text(pDX, IDC_EDITname1, name1);
- DDX_Text(pDX, IDC_EDITname2, name2);
- DDX_Text(pDX, IDC_EDITno, no);
- DDX_Text(pDX, IDC_EDITphone1, phone1);
- DDX_Text(pDX, IDC_EDITphone2, phone2);
- DDX_Text(pDX, IDC_EDITphone3, phone3);
- DDX_Text(pDX, IDC_EDITphone4, phone4);
- DDX_Text(pDX, IDC_EDITphone5, phone5);
- DDX_Text(pDX, IDC_EDITpost1, post1);
- DDX_Text(pDX, IDC_EDITpost2, post2);
- DDX_Text(pDX, IDC_EDITpost3, post3);
- DDX_Text(pDX, IDC_EDITpregnancydays, pregnancydays);
- DDX_Text(pDX, IDC_EDITqq, qq);
- DDX_Text(pDX, IDC_EDITremark, remark);
- DDX_Radio(pDX, IDC_RADIO1, birthdaytype);
- //}}AFX_DATA_MAP
- }
- BEGIN_MESSAGE_MAP(AddHospitalClient, CDialog)
- //{{AFX_MSG_MAP(AddHospitalClient)
- ON_BN_CLICKED(IDC_BUTTON1, OnButton1)
- ON_BN_CLICKED(IDC_BUTTON2, OnButton2)
- ON_NOTIFY(NM_CLICK, IDC_LIST2, OnClickList2)
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // AddHospitalClient message handlers
- extern BOOL CALLBACK EnumChildProc2(HWND hwnd,LPARAM lParam);
- BOOL AddHospitalClient::OnInitDialog()
- {
- CDialog::OnInitDialog();
- CRect rc2;
- GetWindowRect(rc2);
- ::MoveWindow(m_hWnd,g_rc.left,g_rc.top,g_rc.Width(),g_rc.Height(),TRUE);
- g_WidthScale2 = (float)g_rc.Width()/(float)rc2.Width(); // new/Old
- g_HeightScale2 = (float)g_rc.Height()/(float)rc2.Height();
- EnumChildWindows(m_hWnd,(WNDENUMPROC)EnumChildProc2,0);
-
- m_List1.SetHeadings("id,0;业务种类,100;业务意向,100;预约日期,100;上门地址,100;备注,100;是否提醒,100;提醒日期,100" );
- // m_List1.LoadColumnInfo (118);
- foodCombo.AddString ("母乳");
- foodCombo.AddString ("人工");
- foodCombo.AddString ("混合");
- desaddrCombo.AddString ("自家地址");
- desaddrCombo.AddString ("婆家地址");
- desaddrCombo.AddString ("娘家地址");
- sexCombo.AddString ("男");
- sexCombo.AddString ("女");
-
- g_sendhead.bsql=0;
- g_sendhead.code[0]=200;
- g_sendhead.code[1]=201;
- g_sendhead.code[2]=202;
- g_sendhead.code[3]=203;
- g_sendhead.code[4]=82;
- g_sendhead.tabcount=5;
- g_pMainWnd->ProcessChatMessageRequest2(3);
- if(g_bSendOK==0)
- {
- CDialog::OnCancel ();
- return 0;
- }
- CArray<CStringArray, CStringArray>List1array;
- CArray<CStringArray, CStringArray>List2array;
- CArray<CStringArray, CStringArray>List3array;
- CArray<CStringArray, CStringArray>List4array;
- CArray<CStringArray, CStringArray>List5array;
- DataToArray(&List1array, &List2array, &List3array, &List4array, &List5array);
- int ii = 0;
- for( ii=0; ii<List1array.GetSize (); ii++)
- businesstypeCombo.AddString ( List1array.ElementAt (ii).ElementAt(0) );
- for( ii=0; ii<List2array.GetSize (); ii++)
- businessintentionCombo.AddString ( List2array.ElementAt (ii).ElementAt(0) );
- for( ii=0; ii<List3array.GetSize (); ii++)
- typeCombo.AddString ( List3array.ElementAt (ii).ElementAt(0) );
- for( ii=0; ii<List4array.GetSize (); ii++)
- hospitalCombo.AddString ( List4array.ElementAt (ii).ElementAt(0) );
- for( ii=0; ii<List5array.GetSize (); ii++)
- fromCombo.AddString ( List5array.ElementAt (ii).ElementAt(0) );
-
-
- if(bAdd)
- {
- if(NewID()==0)
- {
- CDialog::OnCancel();return 0;
- }
- }
- else
- {
- SetWindowText("客户资料-修改");
- CString filter="id='"+no+"';id='"+no+"'";
- g_sendhead.bsql=0;
- g_sendhead.code[0]=206;
- g_sendhead.code[1]=204;
- g_sendhead.tabcount=2;
- g_pMainWnd->ProcessChatMessageRequest2(filter);
- if(g_bSendOK==0)
- {
- CDialog::OnCancel();return 0;
- }
- CArray<CStringArray, CStringArray>List1array;
- DataToArray(&List1array, &g_List1array);
- if(List1array.GetSize ()==0)
- {
- AfxMessageBox("此客人记录已被删除!");
- CDialog::OnCancel();return 0;
- }
- checkmsg = atoi(List1array.ElementAt (0).ElementAt (0));
- name1 = List1array.ElementAt (0).ElementAt (1);
- name2 = List1array.ElementAt (0).ElementAt (2);
- food = List1array.ElementAt (0).ElementAt (3);
- sex = List1array.ElementAt (0).ElementAt (4);
- check1 = atoi(List1array.ElementAt (0).ElementAt (5));
- birthdaytype = atoi(List1array.ElementAt (0).ElementAt (6));
- birthday = List1array.ElementAt (0).ElementAt (7);
- pregnancydays = List1array.ElementAt (0).ElementAt (8);
- qq = List1array.ElementAt (0).ElementAt (9);
- date1 = GetTmFromStr(List1array.ElementAt (0).ElementAt (10));
- no = List1array.ElementAt (0).ElementAt (11);
- from = List1array.ElementAt (0).ElementAt (12);
- clerk = List1array.ElementAt (0).ElementAt (13);
- type = List1array.ElementAt (0).ElementAt (14);
- hospital = List1array.ElementAt (0).ElementAt (15);
- remark = List1array.ElementAt (0).ElementAt (16);
- phone1 = List1array.ElementAt (0).ElementAt (17);
- phone2 = List1array.ElementAt (0).ElementAt (18);
- phone3 = List1array.ElementAt (0).ElementAt (19);
- phone4 = List1array.ElementAt (0).ElementAt (20);
- phone5 = List1array.ElementAt (0).ElementAt (21);
- addr1 = List1array.ElementAt (0).ElementAt (22);
- addr2 = List1array.ElementAt (0).ElementAt (23);
- addr3 = List1array.ElementAt (0).ElementAt (24);
- post1 = List1array.ElementAt (0).ElementAt (25);
- post2 = List1array.ElementAt (0).ElementAt (26);
- post3 = List1array.ElementAt (0).ElementAt (27);
-
- if(foodCombo.FindString (0, food)==-1)
- foodCombo.AddString (food);
- foodCombo.SetCurSel (foodCombo.FindString (0, food));
- if(sexCombo.FindString (0, sex)==-1)
- sexCombo.AddString (sex);
- sexCombo.SetCurSel (sexCombo.FindString (0, sex));
- if(typeCombo.FindString (0, type)==-1)
- typeCombo.AddString (type);
- typeCombo.SetCurSel (typeCombo.FindString (0, type));
- if(hospitalCombo.FindString (0, hospital)==-1)
- hospitalCombo.AddString (hospital);
- hospitalCombo.SetCurSel (hospitalCombo.FindString (0, hospital));
- if(fromCombo.FindString (0, from)==-1)
- fromCombo.AddString (from);
- fromCombo.SetCurSel (fromCombo.FindString (0, from));
- if(clerkCombo.FindString (0, clerk)==-1)
- clerkCombo.AddString (clerk);
- clerkCombo.SetCurSel (clerkCombo.FindString (0, clerk));
-
-
- m_List1.DeleteAllItems2 ();
- int ii=0;
- m_List1.m_arLabels.SetSize( g_List1array.GetSize (), 1 );
- int count=0;
- for(ii=0; ii<m_List1.m_arLabels.GetSize (); ii++)
- {
- m_List1.m_arLabels.ElementAt (count++).Copy (g_List1array.ElementAt (ii));
- }
- m_List1.m_arLabels.SetSize(count, 1);
- ii=count;
- m_List1.m_LabelCount=ii;
- m_List1.SetItemCountEx (ii);
- UpdateData(0);
- }
-
- clerkCombo.RefDroppedWidth();
-
-
- return false; // return TRUE unless you set the focus to a control
- // EXCEPTION: OCX Property Pages should return FALSE
- }
- // 保存资料;
- void AddHospitalClient::OnOK()
- {
- if(bAdd)
- {
- if(NewID()==0)
- {
- return;
- }
- }
-
- // TODO: Add extra validation here
- UpdateData();
- name1.TrimLeft ();
- name1.TrimRight ();
- name2.TrimLeft ();
- name2.TrimRight ();
- if(name1.IsEmpty () && name2.IsEmpty ())
- {
- AfxMessageBox("姓名不能为空!", MB_ICONINFORMATION);return;
- }
- if(!CheckDateOK(birthday))return;
- phone1.TrimLeft ();
- phone1.TrimRight ();
- if(!phone1.IsEmpty ())
- {
- if(phone1.Left (1)=="1")
- {
- if(CheckPhoneType(phone1)==-1)
- {
- AfxMessageBox("手机号码:"+phone1+"错误!", MB_ICONINFORMATION);
- return;
- }
- }
- }
- phone2.TrimLeft ();
- phone2.TrimRight ();
- if(!phone2.IsEmpty ())
- {
- if(phone2.Left (1)=="1")
- {
- if(CheckPhoneType(phone2)==-1)
- {
- AfxMessageBox("手机号码:"+phone2+"错误!", MB_ICONINFORMATION);
- return;
- }
- }
- }
- food=sex=type=hospital=from=clerk="";
- int pos=foodCombo.GetCurSel ();
- if(pos!=-1)
- {
- foodCombo.GetLBText (pos, food);
- }
- pos=sexCombo.GetCurSel ();
- if(pos!=-1)
- {
- sexCombo.GetLBText (pos, sex);
- }
- pos=typeCombo.GetCurSel ();
- if(pos!=-1)
- {
- typeCombo.GetLBText (pos, type);
- }
- pos=hospitalCombo.GetCurSel ();
- if(pos!=-1)
- {
- hospitalCombo.GetLBText (pos, hospital);
- }
- pos=fromCombo.GetCurSel ();
- if(pos!=-1)
- {
- fromCombo.GetLBText (pos, from);
- }
- pos=clerkCombo.GetCurSel ();
- if(pos!=-1)
- {
- clerkCombo.GetLBText (pos, clerk);
- }
-
- CString strRes1,strRes2;
- ChinesePinYin::GetFirstLetter(name1, strRes1);
- ChinesePinYin::GetFirstLetter(name2, strRes2);
- CString sql,sql2;
-
- if(bAdd)
- sql.Format ("insert into [hospitalclient] ([id],[checkmsg],[name1],[name2],[food],[sex],[check1],[birthdaytype],[birthday],[pregnancydays],[qq],[date1],[from],[clerk],[type],[hospital],[remark],[phone1],[phone2],[phone3],[phone4],[phone5],[addr1],[addr2],[addr3],[post1],[post2],[post3],[pinyin1],[pinyin2],[inputdate],[inputer])values('%s','%d','%s','%s','%s','%s','%d','%d','%s','%s','%s','%s','%s','%s','%s','%s','%s','%s','%s','%s','%s','%s','%s','%s','%s','%s','%s','%s','%s','%s','%s','%s')",
- no,checkmsg,name1,name2,food,sex,check1,birthdaytype,birthday,pregnancydays,qq,date1.Format ("%Y-%m-%d"),from,clerk,type,hospital,remark,phone1,phone2,phone3,phone4,phone5,addr1,addr2,addr3,post1,post2,post3,strRes1,strRes2,g_date,g_user.name);
- else
- sql.Format ("update [hospitalclient] set [checkmsg]='%d',[name1]='%s',[name2]='%s',[food]='%s',[sex]='%s',[check1]='%d',[birthdaytype]='%d',[birthday]='%s',[pregnancydays]='%s',[qq]='%s',[date1]='%s',[from]='%s',[clerk]='%s',[type]='%s',[hospital]='%s',[remark]='%s',[phone1]='%s',[phone2]='%s',[phone3]='%s',[phone4]='%s',[phone5]='%s',[addr1]='%s',[addr2]='%s',[addr3]='%s',[post1]='%s',[post2]='%s',[post3]='%s',[pinyin1]='%s',[pinyin2]='%s' where [id]='%s'",
- checkmsg,name1,name2,food,sex,check1,birthdaytype,birthday,pregnancydays,qq,date1.Format ("%Y-%m-%d"),from,clerk,type,hospital,remark,phone1,phone2,phone3,phone4,phone5,addr1,addr2,addr3,post1,post2,post3,strRes1,strRes2,no);
- g_sendhead.bsql=1;
- g_pMainWnd->ProcessChatMessageRequest2(sql);
- if(g_bSendOK==0)
- return;
- AfxMessageBox("保存成功!", MB_ICONINFORMATION);
- bAdd=0;
- }
- BOOL AddHospitalClient::NewID()
- {
- g_bNoConnDlg=1;
- CString date=g_date;date.Replace("-", "");
- CString sql;
- sql="select max(id) as cot from [hospitalclient] where id like '"+date+"%' ";
- g_sendhead.bsql=1;
- g_pMainWnd->ProcessChatMessageRequest2(sql);
- g_bNoConnDlg=0;
- if(g_bSendOK==0)return 0;
- date.Replace ("-", "");
- no.Format ("%s-%03d", date, g_ncount+1);
- SetDlgItemText(IDC_EDITno, no);
- return 1;
- }
- void AddHospitalClient::GetContactReg()
- {
- CString filter="id='"+no+"'";
- g_sendhead.bsql=0;
- g_sendhead.code[0]=204;
- g_sendhead.tabcount=1;
- g_pMainWnd->ProcessChatMessageRequest2(filter);if(g_bSendOK==0)return;
- DataToArray(&g_List1array);
-
- m_List1.DeleteAllItems2 ();
- int ii=0;
- m_List1.m_arLabels.SetSize( g_List1array.GetSize (), 1 );
- int count=0;
- for(ii=0; ii<m_List1.m_arLabels.GetSize (); ii++)
- {
- m_List1.m_arLabels.ElementAt (count++).Copy (g_List1array.ElementAt (ii));
- }
- m_List1.m_arLabels.SetSize(count, 1);
- ii=count;
- m_List1.m_LabelCount=ii;
- m_List1.SetItemCountEx (ii);
- }
- void AddHospitalClient::OnButton2()
- {
- // TODO: Add your control notification handler code here
- POSITION pos;
- pos=m_List1.GetFirstSelectedItemPosition();
- if(pos==NULL)
- {
- AfxMessageBox("请先选中您要删除的项目!", MB_ICONINFORMATION);return;
- return;
- }
- if(AfxMessageBox("提醒:删除后无法恢复, 继续吗?", MB_YESNO|MB_ICONINFORMATION)!=IDYES)return;
- int iItem=m_List1.GetNextSelectedItem(pos);
- CString autoid=m_List1.GetItemText (iItem, 0);
-
- CString sql;
- sql.Format ("delete from [hospitalclientcontactreg] where autoid=%d", atoi(autoid) );
- g_sendhead.bsql=1;
- g_pMainWnd->ProcessChatMessageRequest2(sql);if(g_bSendOK==0)return;
- GetContactReg();
- }
- void AddHospitalClient::OnClickList2(NMHDR* pNMHDR, LRESULT* pResult)
- {
- // TODO: Add your control notification handler code here
-
- POSITION pos;
- pos=m_List1.GetFirstSelectedItemPosition();
- if(pos==NULL)
- {
- businesstypeCombo.SetCurSel (-1);
- businessintentionCombo.SetCurSel (-1);
- desaddrCombo.SetCurSel (-1);
- bookingdate = GetTmFromStr(g_date);
- businessremark = _T("");
- alarmcheck = FALSE;
- alarmdate = GetTmFromStr(g_date);
- UpdateData(0);
- return;
- }
- int iItem=m_List1.GetNextSelectedItem(pos);
- CString autoid = m_List1.GetItemText (iItem, 0);
-
- businesstype = m_List1.GetItemText (iItem, 1);
- businessintention = m_List1.GetItemText (iItem, 2);
- bookingdate = GetTmFromStr(m_List1.GetItemText (iItem, 3));
- desaddr = m_List1.GetItemText (iItem, 4);
- businessremark = m_List1.GetItemText (iItem, 5);
- if(m_List1.GetItemText (iItem, 6)=="提醒")
- alarmcheck = 1;
- else
- alarmcheck = 0;
- alarmdate = GetTmFromStr(m_List1.GetItemText (iItem, 7));
-
-
- if(businesstypeCombo.FindString (0, businesstype)==-1)
- businesstypeCombo.AddString (businesstype);
- businesstypeCombo.SetCurSel (businesstypeCombo.FindString (0, businesstype));
-
- if(businessintentionCombo.FindString (0, businessintention)==-1)
- businessintentionCombo.AddString (businessintention);
- businessintentionCombo.SetCurSel (businessintentionCombo.FindString (0, businessintention));
-
- if(desaddrCombo.FindString (0, desaddr)==-1)
- desaddrCombo.AddString (desaddr);
- desaddrCombo.SetCurSel (desaddrCombo.FindString (0, desaddr));
- UpdateData(0);
- *pResult = 0;
- }
- void AddHospitalClient::OnButton1()
- {
- // TODO: Add your control notification handler code here
- UpdateData();
- if(bAdd)
- {
- AfxMessageBox("请先保存基本资料!", MB_ICONINFORMATION);return;
- return;
- }
- CString autoid;
- {
- POSITION pos;
- pos=m_List1.GetFirstSelectedItemPosition();
- if(pos!=NULL)
- {
- int iItem=m_List1.GetNextSelectedItem(pos);
- autoid = m_List1.GetItemText (iItem, 0);
- }
- }
-
- businesstype=businessintention=desaddr="";
- int pos=businesstypeCombo.GetCurSel ();
- if(pos!=-1)
- {
- businesstypeCombo.GetLBText (pos, businesstype);
- }
- else
- {
- AfxMessageBox("资料不全!", MB_ICONINFORMATION);return;
- return;
- }
- pos=businessintentionCombo.GetCurSel ();
- if(pos!=-1)
- {
- businessintentionCombo.GetLBText (pos, businessintention);
- }
- pos=desaddrCombo.GetCurSel ();
- if(pos!=-1)
- {
- desaddrCombo.GetLBText (pos, desaddr);
- }
-
- CString salarmcheck;
- if(alarmcheck)
- salarmcheck="提醒";
- else
- salarmcheck="不提醒";
- CString sql;
- if(autoid=="")
- sql.Format ("insert into [hospitalclientcontactreg]([id],[businesstype],[businessintention],[bookingdate],[desaddr],[businessremark],[alarmcheck],[alarmdate])values('%s','%s','%s','%s','%s','%s','%s','%s')",
- no,businesstype,businessintention,bookingdate.Format ("%Y-%m-%d"),desaddr,businessremark,salarmcheck,alarmdate.Format ("%Y-%m-%d"));
- else
- sql.Format ("update [hospitalclientcontactreg] set [businesstype]='%s',[businessintention]='%s',[bookingdate]='%s',[desaddr]='%s',[businessremark]='%s',[alarmcheck]='%s',[alarmdate]='%s' where [autoid]=%s",
- businesstype,businessintention,bookingdate.Format ("%Y-%m-%d"),desaddr,businessremark,salarmcheck,alarmdate.Format ("%Y-%m-%d"), autoid);
-
- g_sendhead.bsql=1;
- g_pMainWnd->ProcessChatMessageRequest2(sql);if(g_bSendOK==0)return;
- AfxMessageBox("保存成功!", MB_ICONINFORMATION);
- GetContactReg();
- }
|