public ApplicationsForContractsPages(FormTypes action, string applicationsId) { InitializeComponent(); this.Loaded += (sender, args) => { this.actions = action; this.ctappID = applicationsId; InitEvent(); InitData(); if (action == FormTypes.New) { cmsfc.GetContractTypeNameInfosToComboxAsync(); //this.audit.Visibility = Visibility.Collapsed; } if (action == FormTypes.Audit || action == FormTypes.Browse) { ShieldedControl(); } //ctrFile.SystemName = "OA"; //ctrFile.ModelName = "Contract"; //ctrFile.InitBtn(Visibility.Collapsed, Visibility.Collapsed); //ctrFile.Event_AllFilesFinished += // new EventHandler<SMT.SaaS.FrameworkUI.FileUpload.FileCountEventArgs>( // ctrFile_Event_AllFilesFinished); }; }
private void InitEvent() { ContractManagement = new SmtOADocumentAdminClient(); InfoObj = new T_OA_CONTRACTTEMPLATE(); ContractManagement.GetContractTypeNameInfosToComboxAsync(); ContractManagement.ContractTemplateAddCompleted += new EventHandler <ContractTemplateAddCompletedEventArgs>(ctsc_ContractTemplateAddCompleted); //添加 ContractManagement.UpdateContraTemplateCompleted += new EventHandler <UpdateContraTemplateCompletedEventArgs>(ContractManagement_UpdateContraTemplateCompleted); //修改 ContractManagement.GetContractTypeNameInfosToComboxCompleted += new EventHandler <GetContractTypeNameInfosToComboxCompletedEventArgs>(cmfc_GetContractTypeNameInfosToComboxCompleted); }
private void combox_SelectSource() { cmsfc.GetContractTypeNameInfosToComboxAsync(); cmsfc.GetContractTypeNameInfosToComboxCompleted += new EventHandler <GetContractTypeNameInfosToComboxCompletedEventArgs>(cmsfc_GetContractTypeNameInfosToComboxCompleted); }