![C源碼(RSI)的主要內(nèi)容_第1頁(yè)](http://file4.renrendoc.com/view/18e4d7bb57ee3a76c69982de2b48d6e2/18e4d7bb57ee3a76c69982de2b48d6e21.gif)
![C源碼(RSI)的主要內(nèi)容_第2頁(yè)](http://file4.renrendoc.com/view/18e4d7bb57ee3a76c69982de2b48d6e2/18e4d7bb57ee3a76c69982de2b48d6e22.gif)
![C源碼(RSI)的主要內(nèi)容_第3頁(yè)](http://file4.renrendoc.com/view/18e4d7bb57ee3a76c69982de2b48d6e2/18e4d7bb57ee3a76c69982de2b48d6e23.gif)
![C源碼(RSI)的主要內(nèi)容_第4頁(yè)](http://file4.renrendoc.com/view/18e4d7bb57ee3a76c69982de2b48d6e2/18e4d7bb57ee3a76c69982de2b48d6e24.gif)
![C源碼(RSI)的主要內(nèi)容_第5頁(yè)](http://file4.renrendoc.com/view/18e4d7bb57ee3a76c69982de2b48d6e2/18e4d7bb57ee3a76c69982de2b48d6e25.gif)
版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
C++SourcePartOne#if!defined(AFX_DBASEDLG_H__4354EF66_EFC4_4EB3_AA69_4038FCA02537__INCLUDED_)#defineAFX_DBASEDLG_H__4354EF66_EFC4_4EB3_AA69_4038FCA02537__INCLUDED_#include"RxGrid.h" #if_MSC_VER>1000#pragmaonce#endif_MSC_VER>1000DBaseDlg.h:headerfile#include"RxStatic.h"#include"BaseEdit.h"GiBaseDlgdialogclassGiBaseDlg:publicCDialog{Constructionpublic: ~GiBaseDlg(); intm_NumberStyle; CButton m_ButCommand[7]; GiBaseDlg(RxGridGrid,CStringsIdentify,intnNumberStyle,CWndpParent=NULL);standardconstructorDialogData {{AFX_DATA(GiBaseDlg) enum{IDD=IDD_BASE}; RxStatic m_StaTitle; }}AFX_DATA intnCol;Overrides ClassWizardgeneratedvirtualfunctionoverrides {{AFX_VIRTUAL(GiBaseDlg) protected: virtualvoidDoDataExchange(CDataExchangepDX);DDXDDVsupport }}AFX_VIRTUALImplementationprotected: Generatedmessagemapfunctions {{AFX_MSG(GiBaseDlg) virtualvoidOnOK(); afx_msgvoidOnPaint(); virtualBOOLOnInitDialog(); afx_msgvoidOnButexit(); afx_msgvoidOnButtonnew(); afx_msgvoidOnButtonchange(); afx_msgvoidOnButtondele(); afx_msgvoidOnButtoncopy(); afx_msgvoidOnButtonsave(); afx_msgvoidOnButtonundo(); virtualvoidOnCancel(); }}AFX_MSG DECLARE_MESSAGE_MAP()protected: CStaticpSta; CBaseEditpEdt; RxGridm_pGrid;private: CStringm_Identify; voidDisplay(); voidClear(); boolm_IsAdd; intm_ColCount; voidEnabled(boolbEnabled); voidMoveButton(intx,inty); CStringm_DataBaseName;};{{AFX_INSERT_LOCATION}}MicrosoftVisualC++willinsertadditionaldeclarationsimmediatelybeforethepreviousline.#endif!defined(AFX_DBASEDLG_H__4354EF66_EFC4_4EB3_AA69_4038FCA02537__INCLUDED_)C++SourcePartTwokhmanagerDoc.h:interfaceoftheCKhmanagerDocclass#if!defined(AFX_KHMANAGERDOC_H__4CDDF41B_B831_4E11_8CD7_E26A6461ED0C__INCLUDED_)#defineAFX_KHMANAGERDOC_H__4CDDF41B_B831_4E11_8CD7_E26A6461ED0C__INCLUDED_#if_MSC_VER>1000#pragmaonce#endif_MSC_VER>1000classCKhmanagerDoc:publicCDocument{protected:createfromserializationonly CKhmanagerDoc(); DECLARE_DYNCREATE(CKhmanagerDoc)Attributespublic:Operationspublic: afx_msgvoidOnButtonsave(); afx_msgvoidOnDatetimechangeDtqssj(NMHDRpNMHDR,LRESULTpResult); afx_msgvoidOnDatetimechangeDtzzsj(NMHDRpNMHDR,LRESULTpResult); afx_msgvoidOnSetfocusComid(); virtualBOOLOnInitDialog(); afx_msgvoidOnRadall(); afx_msgvoidOnRadno(); afx_msgvoidOnRadyes(); }}AFX_MSG DECLARE_MESSAGE_MAP()private: boolm_bInsertOrUpdate;};{{AFX_INSERT_LOCATION}}MicrosoftVisualC++willinsertadditionaldeclarationsimmediatelybeforethepreviousline.#endif!defined(AFX_DEXAMINE_H__E4CCB86E_98AA_4877_ADE2_E8568842B62D__INCLUDED_)C++SourcePartFourTabSheet.cpp:implementationfile#include"stdafx.h"#include"khmanager.h"#include"TabSheet.h"#ifdef_DEBUG#definenewDEBUG_NEW#undefTHIS_FILEstaticcharTHIS_FILE[]=__FILE__;#endifCTabSheetCTabSheet::CTabSheet(){ m_nNumOfPages=0; m_nCurrentPage=0;}CTabSheet::~CTabSheet(){}BEGIN_MESSAGE_MAP(CTabSheet,CTabCtrl) {{AFX_MSG_MAP(CTabSheet) ON_WM_LBUTTONDOWN() }}AFX_MSG_MAPEND_MESSAGE_MAP()CTabSheetmessagehandlersBOOLCTabSheet::AddPage(LPCTSTRtitle,CDialogpDialog,UINTID){ if(MAXPAGE==m_nNumOfPages) returnFALSE; m_nNumOfPages++; m_pPages[m_nNumOfPages-1]=pDialog; m_IDD[m_nNumOfPages-1]=ID; m_Title[m_nNumOfPages-1]=title; returnTRUE;}voidCTabSheet::SetRect(){ CRecttabRect,itemRect; intnX,nY,nXc,nYc; GetClientRect(&tabRect); GetItemRect(0,&itemRect); nX=itemRect.left; nY=itemRect.bottom+1; nXc=tabRect.right-itemRect.left-2; nYc=tabRect.bottom-nY-2; m_pPages[0]->SetWindowPos(&wndTop,nX,nY,nXc,nYc,SWP_SHOWWINDOW); for(intnCount=1;nCount<m_nNumOfPages;nCount++) m_pPages[nCount]->SetWindowPos(&wndTop,nX,nY,nXc,nYc,SWP_HIDEWINDOW); m_nNumOfPages=0;}voidCTabSheet::SetRect(intm){ CRecttabRect,itemRect; intnX,nY,nXc,nYc; GetClientRect(&tabRect); GetItemRect(0,&itemRect); nX=itemRect.left; nY=itemRect.bottom+1; nXc=tabRect.right-itemRect.left-2; nYc=tabRect.bottom-nY-2; for(intnCount=0;nCount<m_nNumOfPages;nCount++) m_pPages[nCount]->SetWindowPos(&wndTop,nX,nY,nXc,nYc,SWP_HIDEWINDOW); m_pPages[m]->SetWindowPos(&wndTop,nX,nY,nXc,nYc,SWP_SHOWWINDOW);}voidCTabSheet::Show(){ for(inti=0;i<m_nNumOfPages;i++) { m_pPages[i]->Create(m_IDD[i],this); InsertItem(i,m_Title[i]); } m_pPages[0]->ShowWindow(SW_SHOW); for(i=1;i<m_nNumOfPages;i++) m_pPages[i]->ShowWindow(SW_HIDE); SetRect();}voidCTabSheet::Show(intn){ for(inti=0;i<m_nNumOfPages;i++) { m_pPages[i]->Create(m_IDD[i],this); InsertItem(i,m_Title[i]); } for(i=0;i<m_nNumOfPages;i++) m_pPages[i]->ShowWindow(SW_HIDE); m_pPages[n]->ShowWindow(SW_SHOW); SetRect(n); SetCurSel(n);}voidCTabSheet::OnLButtonDown(UINTnFlags,CPointpoint){ CTabCtrl::OnLButtonDown(nFlags,point); if(m_nCurrentPage!=GetCurFocus()) { m_pPages[m_nCurrentPage]->ShowWindow(SW_HIDE); m_nCurrentPage=GetCurFocus(); m_pPages[m_nCurrentPage]->ShowWindow(SW_SHOW); m_pPages[m_nCurrentPage]->SetFocus(); }}intCTabSheet::SetCurSel(intnItem){ if(nItem<0||nItem>=m_nNumOfPages) return-1; intret=m_nCurrentPage;m_nCurrentPage=this->GetCurSel(); if(m_nCurrentPage!=nItem) { m_pPages[m_nCurrentPage]->ShowWindow(SW_HIDE); m_nCurrentPage=nItem; m_pPages[m_nCurrentPage]->ShowWindow(SW_SHOW); m_pPages[m_nCurrentPage]->SetFocus(); CTabCtrl::SetCurSel(nItem); } m_nNumOfPages=0; returnm_nNumOfPages;}intCTabSheet::GetCurSel(){ returnCTabCtrl::GetCurSel();}C++SourcePartFiveDPage1.cpp:implementationfile#include"stdafx.h"#include"MyProject.h"#include"DPage1.h"#ifdef_DEBUG#definenewDEBUG_NEW#undefTHIS_FILEstaticcharTHIS_FILE[]=__FILE__;#endifCDPage1dialogCDPage1::CDPage1(CWndpParent=NULL) :CDialog(CDPage1::IDD,pParent){ {{AFX_DATA_INIT(CDPage1) NOTE:theClassWizardwilladdmemberinitializationhere }}AFX_DATA_INIT}voidCDPage1::DoDataExchange(CDataExchangepDX){ CDialog::DoDataExchange(pDX); {{AFX_DATA_MAP(CDPage1) DDX_Control(pDX,IDC_LIST2,m_Grid); }}AFX_DATA_MAP}BEGIN_MESSAGE_MAP(CDPage1,CDialog) {{AFX_MSG_MAP(CDPage1) }}AFX_MSG_MAPEND_MESSAGE_MAP()CDPage1messagehandlersBOOLCDPage1::OnInitDialog(){ CDialog::OnInitDialog(); m_Grid.m_bReadOnly=true; returnTRUE;returnTRUEunlessyousetthefocustoacontrol EXCEPTION:OCXPropertyPagesshouldreturnFALSE}voidCDPage1::SetRecordset(RxRecordsetRrst){ rst=Rrst; this->m_Grid.SetDataBase(rst);}(PartI)usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Web;usingSystem.Web.Mvc;usingUtility;usingSystem.Configuration;usingAdmin.Classify;usingSystem.Text;namespaceAdmin.Controllers{publicclassCacheMgrController:AdminBaseController{GET:AdminCacheMgrpublicActionResultIndex(){ViewBag.CacheList=fromainDefine.CacheListselectnewSelectListItem{Text=a.Value,Value=a.Key};returnView();}[HttpPost]publicActionResultIndex(FormCollectioncollection){ViewBag.CacheList=fromainDefine.CacheListselectnewSelectListItem{Text=a.Value,Value=a.Key};if(!string.IsNullOrEmpty(collection["ClearSingle"])){HttpRuntime.Cache.Remove(collection["CacheList"]);}else{StringBuildersbKeys=newStringBuilder(string.Empty);foreach(SelectListItemiteminViewBag.CacheList){sbKeys.AppendFormat(",{0}",item.Value);HttpRuntime.Cache.Remove(item.Value);}if(sbKeys.Length>0){sbKeys=sbKeys.Remove(0,1);}}returnView();}GET:AdminCacheMgrDetails5publicActionResultDetails(intid){returnView();}GET:AdminCacheMgrCreatepublicActionResultCreate(){returnView();}POST:AdminCacheMgrCreate[HttpPost]publicActionResultCreate(FormCollectioncollection){try{TODO:AddinsertlogicherereturnRedirectToAction("Index");}catch{returnView();}}GET:AdminCacheMgrEdit5publicActionResultEdit(intid){returnView();}POST:AdminCacheMgrEdit5[HttpPost]publicActionResultEdit(intid,FormCollectioncollection){try{TODO:AddupdatelogicherereturnRedirectToAction("Index");}catch{returnView();}}GET:AdminCacheMgrDelete5publicActionResultDelete(intid){returnView();}POST:AdminCacheMgrDelete5[HttpPost]publicActionResultDelete(intid,FormCollectioncollection){try{TODO:AdddeletelogicherereturnRedirectToAction("Index");}catch{returnView();}}}}(PartII)usingAdmin.Models;usingBusiness;usingEntities;usingSystem;usingSystem.Collections.Generic;usingSystem.Data;usingSystem.Linq;usingSystem.Text;usingSystem.Web;usingSystem.Web.Mvc;usingAdmin.Classify.Extension;usingUtility;usingUtility.Helpers;namespaceAdmin.Controllers{publicclassCustomerMgrController:AdminBaseController{GET:CustomerpublicActionResultIndex(int?pageIndex,FormSearchCustomerModelmodel){InitSearchData();DoSearch(pageIndex,model);returnView(model);}privatevoidDoSearch(int?pageIndex,FormSearchCustomerModelmodel){ViewBag.PageCount=1;ViewBag.TotalRecords=0;ViewBag.PageIndex=pageIndex.HasValue?pageIndex.Value:1;ViewBag.PageSize=10;if(ViewBag.PageIndex<1)ViewBag.PageIndex=1;stringdataFields="*";stringwhereString="AND1=1";stringorderString="[CreationTime]asc";intpageCount=0;intrecordCount=0;StringBuildersb=newStringBuilder();if(model!=null){if(!string.IsNullOrWhiteSpace(model.NickName))sb.AppendFormat("and[NickName]like'%{0}%'",SQLHelper.FilterForLike(model.NickName));if(!string.IsNullOrWhiteSpace(model.Phone))sb.AppendFormat("and[Phone]like'%{0}%'",SQLHelper.FilterForLike(model.Phone));if(!string.IsNullOrWhiteSpace(model.Tel))sb.AppendFormat("and[Tel]like'%{0}%'",SQLHelper.FilterForLike(model.Tel));if(!string.IsNullOrWhiteSpace(model.UserName))sb.AppendFormat("and[UserName]like'%{0}%'",SQLHelper.FilterForLike(model.UserName));if(!string.IsNullOrWhiteSpace(model.TeamMemberUserName))sb.AppendFormat("and[TeamMemberUserName]like'%{0}%'",SQLHelper.FilterForLike(model.TeamMemberUserName));if(!string.IsNullOrWhiteSpace(model.Enabled))sb.AppendFormat("and[Enabled]={0}",SQLHelper.FilterForLike(model.Enabled));}whereString+=sb.ToString();DataTabledt=CustomerBL.Instance.GetDataListByPage(ViewBag.PageIndex,ViewBag.PageSize,dataFields,whereString,orderString,outpageCount,outrecordCount);ViewBag.PageCount=pageCount;ViewBag.TotalRecords=recordCount;if(ViewBag.PageIndex>ViewBag.PageCount)ViewBag.PageIndex=ViewBag.PageCount;ViewBag.DataPageList=dt;}privatevoidInitSearchData(){List<SelectListItem>EnabledList=newList<SelectListItem>();EnabledList.Add(newSelectListItem{Text="可用",Value="1"});EnabledList.Add(newSelectListItem{Text="禁用",Value="0"});ViewBag.EnabledList=EnabledList;}GET:CustomerDetails5publicActionResultDetails(intid){returnView();}publicActionResultResetPassword(stringid){try{CustomerModelmodel=CustomerBL.Instance.GetEntityGiByKey(id);model.Password=YD.Framework.Security.MD5.EncryptAndReverse("123123");CustomerBL.Instance.Update(model);returnView("_MessageView",newMessageViewModel{Title="密碼已成功重置為123123",IsError=false,FromUrl=Request.UrlReferrer.AbsoluteUri});}catch{returnView("_MessageView",newMessageViewModel{Title="修改失敗",IsError=true,FromUrl=Request.UrlReferrer.AbsoluteUri});}}}}(PartIII)usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Web;usingSystem.Web.Mvc;usingEntities;usingBusiness;usingAdmin.Models;usingYD.Framework.Security;usingSystem.Text;usingSystem.Data;usingSystem.Threading;usingAdmin.Controllers;namespaceGYX.App.GGH.Web.Areas.Admin.Controllers{publicclassGainMgrController:AdminBaseController{GET:AdminProductTypeEdit5publicActionResultIndex(stringid){varproductid=id;vardata=GainBL.Instance.GetDatatListByProductID(productid);ViewBag.GainList=data;ViewBag.ProductID=productid;returnView();}publicActionResultEdit(stringproductid,stringteamid){InitData(productid,teamid);GainModelentityGiGi=GainBL.Instance.GetEntityGiByKey(productid,teamid);if(entityGiGi!=null){FormGainModelmm=newFormGainModel(entityGi);returnView(mm);}returnView();}privatevoidInitData(stringproductid,stringteamid){ProductModelpModel=ProductBL.Instance.GetEntityGiByKey(productid);DataTabledt=TeamBL.Instance.GetAllTeams();if(dt!=null){ViewBag.TeamList=dt.AsEnumerable().Select(p=>newSelectListItem{Value=p["ID"].ToString(),Text=p["Name"].ToString()}).ToList();}if(pModel!=null){ViewBag.ProductName=pModel.Name;}}POST:AdminProductTypeEdit5[HttpPost]publicActionResultEdit(stringproductid,stringteamid,FormGainModelmodel){InitData(productid,teamid);try{GainModelentityGiGi=GainBL.Instance.GetEntityGiByKey(productid,teamid);if(entit
溫馨提示
- 1. 本站所有資源如無(wú)特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 2025年度數(shù)據(jù)中心搬遷及設(shè)備轉(zhuǎn)移合同標(biāo)準(zhǔn)范本
- 2025年度新能源車輛充電設(shè)施建設(shè)合同樣本(充電網(wǎng)絡(luò))
- 天然林保護(hù)修復(fù)的重點(diǎn)區(qū)域劃定
- 2025年度城市綜合體建設(shè)項(xiàng)目施工合同協(xié)議
- 2025年度新能源電池殼體加工合同范本
- 2025年度智能安防系統(tǒng)安裝勞務(wù)分包合同書
- 2025年標(biāo)牌雕刻機(jī)行業(yè)深度研究分析報(bào)告
- 2025年微電波按摩器行業(yè)深度研究分析報(bào)告
- 科學(xué)館項(xiàng)目概述
- 2025年度建筑勞務(wù)施工合同及竣工資料編制合同
- 醫(yī)院感染及其危害
- 2025年三人合伙投資合作開店合同模板(三篇)
- 安徽省招生考試數(shù)學(xué)試卷
- 2024全國(guó)各省高考詩(shī)歌鑒賞真題及解析
- 高考日語(yǔ)閱讀理解練習(xí)2篇-高考日語(yǔ)復(fù)習(xí)
- 印刷基礎(chǔ)知識(shí)培訓(xùn)資料
- NB/T 11536-2024煤礦帶壓開采底板井下注漿加固改造技術(shù)規(guī)范
- 2024-2025學(xué)年人教版五年級(jí)(上)英語(yǔ)寒假作業(yè)(一)
- 【課件】九年級(jí)化學(xué)下冊(cè)(人教版2024)-【新教材解讀】義務(wù)教育教材內(nèi)容解讀課件
- GA/T 761-2024停車庫(kù)(場(chǎng))安全管理系統(tǒng)技術(shù)要求
- 2025屆貴州省六盤水市第二中學(xué)高三適應(yīng)性調(diào)研考試數(shù)學(xué)試題含解析
評(píng)論
0/150
提交評(píng)論