private void UTxt_EditorButtonClick(object sender, EditorButtonEventArgs e) { if (e.Button != null && e.Button.Key == "rightB") { var MailTo = MailSettings.Ins.MailTo; var message = MailSettings.Ins.Message; var subject = MailSettings.Ins.Subject; var atach = new List <string>(); foreach (var item in uListView.Items) { if (item.CheckState == CheckState.Checked) { atach.Add(item.Key); } } MailSettings.Ins.ListAtach = atach; SendMailTask(MailTo, MailSettings.Ins.ListAtach, message, subject); uTxt.Value = null; } else if (e.Button.Key == "leftB") { var mp = new MailProperty(); mp.ShowDialog(); } }
private void UltraTextEditor1_EditorButtonClick(object sender, EditorButtonEventArgs e) { if (e.Button.Key == "zaposlenik") { RADNIKSelectionListWorkItem item = this.Controller.WorkItem.Items.AddNew <RADNIKSelectionListWorkItem>("test"); DataRow row = item.ShowModal(true, "", null); item.Terminate(); if (row != null) { this.UltraTextEditor1.Text = Conversions.ToString(row["prezime"]) + "/" + Conversions.ToString(row["ime"]); S_OD_PROSJEK_PLACEDataAdapter adapter2 = new S_OD_PROSJEK_PLACEDataAdapter(); S_OD_PROSJEK_PLACEDataSet dataSet = new S_OD_PROSJEK_PLACEDataSet(); adapter2.Fill(dataSet, Conversions.ToString(this.UltraCombo1.Value), Conversions.ToString(this.UltraCombo2.Value), Conversions.ToInteger(row["idradnik"])); KORISNIKDataSet set = new KORISNIKDataSet(); new KORISNIKDataAdapter().Fill(set); string str6 = Conversions.ToString(set.KORISNIK.Rows[0]["korisnik1naziv"]); string str5 = Conversions.ToString(set.KORISNIK.Rows[0]["MBKORISNIK"]); string str = Conversions.ToString(set.KORISNIK.Rows[0]["korisnik1adresa"]); string str2 = Conversions.ToString(set.KORISNIK.Rows[0]["korisnik1mjesto"]); string str7 = Conversions.ToString(set.KORISNIK.Rows[0]["KONTAKTTELEFON"]); string str4 = Conversions.ToString(set.KORISNIK.Rows[0]["KONTAKTFAX"]); string str3 = ""; ReportDocument document = new ReportDocument(); document.Load(System.Windows.Forms.Application.StartupPath + @"\Izvjestaji\rptProsjekPlace.rpt"); document.SetDataSource(dataSet); document.SetParameterValue("BROJRACUNA", str3); document.SetParameterValue("ADRESA2", str2); document.SetParameterValue("ADRESA", str); document.SetParameterValue("ustanova", str6); this.CrystalReportViewer1.ReportSource = document; } } }
/// <summary> /// 【详情】选择配件名称 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void txtSI_Name_EditorButtonClick(object sender, EditorButtonEventArgs e) { //查询配件档案 FrmAutoPartsArchiveQuery frmAutoPartsArchiveQuery = new FrmAutoPartsArchiveQuery() { StartPosition = FormStartPosition.CenterScreen }; DialogResult dialogResult = frmAutoPartsArchiveQuery.ShowDialog(); if (dialogResult != DialogResult.OK) { return; } var selectedAutoPartsArchiveList = frmAutoPartsArchiveQuery.SelectedGridList; foreach (var loopAutoPartsArchive in selectedAutoPartsArchiveList) { txtSI_Org_ID.Text = LoginInfoDAX.OrgID; txtSI_ThirdNo.Text = loopAutoPartsArchive.APA_ThirdNo; txtSI_OEMNo.Text = loopAutoPartsArchive.APA_OEMNo; txtSI_Barcode.Text = loopAutoPartsArchive.APA_Barcode; txtSI_Name.Text = loopAutoPartsArchive.APA_Name; txtSI_Specification.Text = loopAutoPartsArchive.APA_Specification; ckSI_PurchasePriceIsVisible.Checked = false; ckSI_IsValid.Checked = true; } }
private void CallPromptGODINEblggodineIDGODINE(object sender, EditorButtonEventArgs e) { DataRow fillByRow = null; string fillMethod = ""; DataRow result = this.Controller.SelectGODINEblggodineIDGODINE(fillMethod, fillByRow); this.UpdateValuesGODINEblggodineIDGODINE(result); }
private void CallPromptDOPRINOSSHEMADDDOPRINOSIDDOPRINOS(object sender, EditorButtonEventArgs e) { DataRow fillByRow = null; string fillMethod = ""; DataRow result = this.Controller.SelectDOPRINOSSHEMADDDOPRINOSIDDOPRINOS(fillMethod, fillByRow); this.UpdateValuesDOPRINOSSHEMADDDOPRINOSIDDOPRINOS(result); }
private void CallPromptMZOSTABLICEIDMZOSTABLICE(object sender, EditorButtonEventArgs e) { DataRow fillByRow = null; string fillMethod = ""; DataRow result = this.GRUPEKOEFController.SelectMZOSTABLICEIDMZOSTABLICE(fillMethod, fillByRow); this.UpdateValuesMZOSTABLICEIDMZOSTABLICE(result); }
private void CallPromptDDIZDATAKDDIDIZDATAK(object sender, EditorButtonEventArgs e) { DataRow fillByRow = null; string fillMethod = ""; DataRow result = this.Controller.SelectDDIZDATAKDDIDIZDATAK(fillMethod, fillByRow); this.UpdateValuesDDIZDATAKDDIDIZDATAK(result); }
private void CallPromptOSINVBROJ(object sender, EditorButtonEventArgs e) { DataRow fillByRow = null; string fillMethod = ""; DataRow result = this.OSRAZMJESTAJController.SelectOSINVBROJ(fillMethod, fillByRow); this.UpdateValuesOSINVBROJ(result); }
private void CallPromptGKSTAVKAGK2IDGKSTAVKA(object sender, EditorButtonEventArgs e) { DataRow fillByRow = null; string fillMethod = ""; DataRow result = this.ZATVARANJAController.SelectGKSTAVKAGK2IDGKSTAVKA(fillMethod, fillByRow); this.UpdateValuesGKSTAVKAGK2IDGKSTAVKA(result); }
private void CallPromptTIPDOKUMENTAIDTIPDOKUMENTA(object sender, EditorButtonEventArgs e) { DataRow fillByRow = null; string fillMethod = ""; DataRow result = this.DOKUMENTController.SelectTIPDOKUMENTAIDTIPDOKUMENTA(fillMethod, fillByRow); this.UpdateValuesTIPDOKUMENTAIDTIPDOKUMENTA(result); }
private void UDTEditor_EditorButtonClick(object sender, EditorButtonEventArgs e) { foreach (var x in uListView.Items) { if (x.CheckState == CheckState.Checked) { x.SubItems["Okres"].Value = (DateTime)uDTEditor.Value; } } }
/*************************************************************************************************************************************************************/ private void cmbOrganizadorR_EditorButtonClick(object sender, EditorButtonEventArgs e) { sqlStringAdd = "select name as'NOMBRE DE ORGANIZADOR', institution as 'INSTITUCION' from organizers where not exists (select name, institution from organizersTmp where name =SACMEDB.dbo.organizers.name)"; sqlStringRemove = "select name as'NOMBRE DE ORGANIZADOR', institution as 'INSTITUCION' from organizersTmp"; Form_genericAddRemove g = new Form_genericAddRemove(conn, "Agregar/Remover Organizador(es)", sqlStringAdd, sqlStringRemove, this.cmbOrganizadorR, idParticipants, formMain, formModify, true); g.fillDatagridAgregar(); g.fillDatagridRemover(); g.Show(); }
/*************************************************************************************************************************************************************/ private void cmbParticipantesR_EditorButtonClick(object sender, EditorButtonEventArgs e) { sqlStringAdd = "select name + ' ' + lastname as 'NOMBRES',id as 'CEDULA', registrationNumber as 'MATRICULA', emailPersonal as 'CORREO' from users where not exists( select id from usersTmp where id = SACMEDB.dbo.users.id)"; sqlStringRemove = "select name + ' ' + lastname as 'NOMBRES',id as 'CEDULA', registrationNumber as 'MATRICULA', emailPersonal as 'CORREO' from usersTmp"; Form_genericAddRemove g = new Form_genericAddRemove(conn, "Agregar/Remover Participante(s)", sqlStringAdd, sqlStringRemove, this.cmbParticipantesR, idParticipants, formMain, formModify, false); g.fillDatagridAgregar(); g.fillDatagridRemover(); g.Show(); }
private void CallPromptOBRACUNIDOBRACUN(object sender, EditorButtonEventArgs e) { S_DD_LISTA_IZNOSA_RADNIKAController controller = this.Controller.WorkItem.Items.AddNew <S_DD_LISTA_IZNOSA_RADNIKAController>(); DataRow parameterRow = this.GetParameterRow(); DataRow row = controller.SelectOBRACUNIDOBRACUN("", parameterRow); if (row != null) { this.textIDOBRACUN.Text = row["IDOBRACUN"].ToString(); } }
private void utecDepName_EditorButtonClick(object sender, EditorButtonEventArgs e) { using (var sc = new SelectWarehouse()) { if (sc.ShowDialog() == DialogResult.Yes) { _cDepCode = sc.CWhCode; utecDepName.Text = sc.CWhName; } } }
private void utxtcCusName_EditorButtonClick(object sender, EditorButtonEventArgs e) { using (var sc = new SelectCustomer()) { if (sc.ShowDialog() == DialogResult.Yes) { _cCusCode = sc.CCusCode; utxtcCusName.Text = sc.CCusName; } } }
private void CallPromptOSinvbroj(object sender, EditorButtonEventArgs e) { S_OS_STANJE_LOKACIJAController controller = this.Controller.WorkItem.Items.AddNew <S_OS_STANJE_LOKACIJAController>(); DataRow parameterRow = this.GetParameterRow(); DataRow row = controller.SelectOSinvbroj("", parameterRow); if (row != null) { this.textinvbroj.Text = row["INVBROJ"].ToString(); } }
private void CallPromptOBRACUNIDOBRACUN(object sender, EditorButtonEventArgs e) { S_PLACA_KONACNI_POREZ_REKAPITULACIJA_PO_RADNICIMAController controller = this.Controller.WorkItem.Items.AddNew <S_PLACA_KONACNI_POREZ_REKAPITULACIJA_PO_RADNICIMAController>(); DataRow parameterRow = this.GetParameterRow(); DataRow row = controller.SelectOBRACUNIDOBRACUN("", parameterRow); if (row != null) { this.textIDOBRACUN.Text = row["IDOBRACUN"].ToString(); } }
private void CallPromptOBRACUNidobracun(object sender, EditorButtonEventArgs e) { sp_id_detaljiController controller = this.Controller.WorkItem.Items.AddNew <sp_id_detaljiController>(); DataRow parameterRow = this.GetParameterRow(); DataRow row = controller.SelectOBRACUNidobracun("", parameterRow); if (row != null) { this.textidobracun.Text = row["IDOBRACUN"].ToString(); } }
private void UltraTextEditor2_EditorButtonClick(object sender, EditorButtonEventArgs e) { if (e.Button.Key == "zaposlenik") { SMJENESelectionListWorkItem item = this.Controller.WorkItem.Items.AddNew <SMJENESelectionListWorkItem>("test"); DataRow row = item.ShowModal(true, "", null); item.Terminate(); if (row == null) { } } }
private void editorButtonAdd_Click(object sender, EditorButtonEventArgs e) { Assembly assembly = Assembly.LoadFile(Application.StartupPath + @"\" + assemblyName); Type formType = assembly.GetType(assemblyFormClassName); if (formType != null) { Form form = Activator.CreateInstance(formType) as Form; form.ShowDialog(this); } this.RefreshCombo(); }
private void utecInvName_EditorButtonClick(object sender, EditorButtonEventArgs e) { using (var brm = new SelectKisInventory(_dtRawMaterial, txtcInvCode.Text, false)) { if (brm.ShowDialog() == DialogResult.Yes) { _FitemId = brm.FitemId; txtcInvCode.Text = brm.InvCode; utecInvName.Text = brm.InvName; txtcInvStd.Text = brm.InvStd; txtcFullName.Text = brm.FullName; _FitemId = brm.FitemId; } } }
private void UltraTextEditor1_EditorButtonClick(object sender, EditorButtonEventArgs e) { if (e.Button.Key == "zaposlenik") { RADNIKSelectionListWorkItem item = this.Controller.WorkItem.Items.AddNew <RADNIKSelectionListWorkItem>("test"); DataRow row = item.ShowModal(true, "", null); item.Terminate(); if (row == null) { return; } this.UltraTextEditor1.Text = Conversions.ToString(row["prezime"]) + "/" + Conversions.ToString(row["ime"]); this.Podaci(Conversions.ToInteger(row["idradnik"])); } if (this.UltraGrid1.Rows.Count > 0) { this.UltraGrid1.Rows[0].Selected = true; } }
private void UltraTextEditor1_EditorButtonClick(object sender, EditorButtonEventArgs e) { if (e.Button.Key == "zaposlenik") { RADNIKSelectionListWorkItem item = this.Controller.WorkItem.Items.AddNew <RADNIKSelectionListWorkItem>("test"); DataRow row = item.ShowModal(true, "", null); item.Terminate(); if (row != null) { this.UltraTextEditor1.Text = Conversions.ToString(Operators.AddObject(Operators.AddObject(row["prezime"], "/"), row["ime"])); S_OD_BOLOVANJE_FONDDataAdapter adapter = new S_OD_BOLOVANJE_FONDDataAdapter(); this.S_OD_BOLOVANJE_FONDDataSet1.S_OD_BOLOVANJE_FOND.Clear(); adapter.Fill(this.S_OD_BOLOVANJE_FONDDataSet1, Conversions.ToString(this.UltraCombo1.Value), Conversions.ToString(this.UltraCombo2.Value), Conversions.ToInteger(row["idradnik"])); if (this.UltraGrid1.Rows.Count > 0) { this.UltraGrid1.Rows[0].Selected = true; } } } }
private void eserciziEditorButtonClick(object sender, EditorButtonEventArgs e) { if (e.Button.Key == "clear") esercizi.Value = null; }
private void OnEditorButtonClick(object sender, EditorButtonEventArgs e) { if (EditorButtonClicked != null) { EditorButtonClicked(this, new EditorButtonEventArgs(e.Button, e.Context)); } }
/// <summary> /// 收款对象EditorButton事件 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void txtPayObjectName_EditorButtonClick(object sender, EditorButtonEventArgs e) { if (string.IsNullOrEmpty(cbReceivableObjectTypeName.Text)) { //请先选择收款对象类型,再选择收款对象 MessageBoxs.Show(Trans.PIS, this.ToString(), MsgHelp.GetMsg(MsgCode.W_0034, new object[] { MsgParam.PAYOBJECT_TYPE, SystemTableColumnEnums.FM_PayBill.Name.PB_RecObjectName }), MessageBoxButtons.OK, MessageBoxIcon.Information); return; } switch (cbReceivableObjectTypeName.Text) { case AmountTransObjectTypeEnum.Name.ORGANIZATION: #region [收款对象类型]为{组织}的场合 //查询组织 FrmOrgQuery frmOrgQuery = new FrmOrgQuery(); if (frmOrgQuery.ShowDialog() == DialogResult.OK) { if (frmOrgQuery.SelectedGridList != null && frmOrgQuery.SelectedGridList.Count == 1) { //收款对象ID txtRecObjectID.Text = frmOrgQuery.SelectedGridList[0].Org_ID; //收款对象 txtRecObjectName.Text = frmOrgQuery.SelectedGridList[0].Org_ShortName; } } #endregion break; case AmountTransObjectTypeEnum.Name.AUTOPARTSSUPPLIER: #region [收款对象类型]为{供应商}的场合 //查询供应商 FrmSupplierQuery frmSupplierQuery = new FrmSupplierQuery(SystemTableColumnEnums.PIS_Supplier.Code.SUPP_ID, SystemTableColumnEnums.PIS_Supplier.Code.SUPP_Name); if (frmSupplierQuery.ShowDialog() == DialogResult.OK) { //收款对象 txtRecObjectName.Text = frmSupplierQuery.SelectedText; //收款对象ID txtRecObjectID.Text = frmSupplierQuery.SelectedValue; } #endregion break; case AmountTransObjectTypeEnum.Name.GENERALAUTOFACTORY: #region [收款对象类型]为{一般汽修商户}的场合 //查询一般汽修商客户 Dictionary <string, object> generalAutoFactoryQueryParameters = new Dictionary <string, object> { { ComViewParamKey.CustomerType.ToString(), CustomerTypeEnum.Name.YBQXSH }, }; FrmCustomerQuery frmGeneralAutoFactoryQuery = new FrmCustomerQuery(generalAutoFactoryQueryParameters); if (frmGeneralAutoFactoryQuery.ShowDialog() == DialogResult.OK) { List <CustomerQueryUIModel> selectedGridList = frmGeneralAutoFactoryQuery.SelectedGridList; if (selectedGridList != null && selectedGridList.Count == 1) { //收款对象ID txtRecObjectID.Text = selectedGridList[0].CustomerID; //收款对象 txtRecObjectName.Text = selectedGridList[0].CustomerName; } } #endregion break; case AmountTransObjectTypeEnum.Name.PLATFORMAUTOFACTORY: #region [收款对象类型]为{平台内汽修商}的场合 //查询平台内汽修商 Dictionary <string, object> platformAutoFactoryParameters = new Dictionary <string, object> { { ComViewParamKey.CustomerType.ToString(), CustomerTypeEnum.Name.PTNQXSH }, }; FrmCustomerQuery frmPlatformAutoFactoryQuery = new FrmCustomerQuery(platformAutoFactoryParameters); if (frmPlatformAutoFactoryQuery.ShowDialog() == DialogResult.OK) { List <CustomerQueryUIModel> selectedGridList = frmPlatformAutoFactoryQuery.SelectedGridList; if (selectedGridList != null && selectedGridList.Count == 1) { //收款对象ID txtRecObjectID.Text = selectedGridList[0].CustomerID; //收款对象 txtRecObjectName.Text = selectedGridList[0].CustomerName; } } #endregion break; case AmountTransObjectTypeEnum.Name.REGULARCUSTOMER: #region [收款对象类型]为{普通客户}的场合 //查询普通客户 Dictionary <string, object> regularCustomerParameters = new Dictionary <string, object> { { ComViewParamKey.CustomerType.ToString(), CustomerTypeEnum.Name.PTKH }, }; FrmCustomerQuery frmRegularCustomerQuery = new FrmCustomerQuery(regularCustomerParameters); if (frmRegularCustomerQuery.ShowDialog() == DialogResult.OK) { List <CustomerQueryUIModel> selectedGridList = frmRegularCustomerQuery.SelectedGridList; if (selectedGridList != null && selectedGridList.Count == 1) { //收款对象ID txtRecObjectID.Text = selectedGridList[0].CustomerID; //收款对象 txtRecObjectName.Text = selectedGridList[0].CustomerName; } } #endregion break; case AmountTransObjectTypeEnum.Name.DELIVERYMAN: #region [收款对象类型]为{配送人员}的场合 //查询物流单 FrmLogisticsBillQuery logisticsBillQuery = new FrmLogisticsBillQuery() { StartPosition = FormStartPosition.CenterScreen }; if (logisticsBillQuery.ShowDialog() == DialogResult.OK) { if (logisticsBillQuery.SelectedGridList != null && logisticsBillQuery.SelectedGridList.Count == 1) { //收款对象ID txtRecObjectID.Text = logisticsBillQuery.SelectedGridList[0].LB_DeliveryByID; //收款对象 txtRecObjectName.Text = logisticsBillQuery.SelectedGridList[0].LB_DeliveryBy; } } #endregion break; case AmountTransObjectTypeEnum.Name.OTHERS: #region [收款对象类型]为{其他}的场合 //手动输入 #endregion break; } }
private void modelloRipartizione_EditorButtonClick(object sender, EditorButtonEventArgs e) { modelloRipartizione.Value = null; }
private void personaEditorButtonClick(object sender, EditorButtonEventArgs e) { try { if (e.Button.Key == "DettaglioPersona") { if (SelectedPersona == null) { var form = getNuovaPersonaUIService().GetNewForm(_defaultAddress); if (form != null && form.ShowDialog() == DialogResult.OK) { LoadData(); var personaDTO = getNuovaPersonaUIService().NewBusinessInstance as PersonaDTO; if(personaDTO != null) SetPersonaInitial(personaDTO.ID); OnInsertPersona(new DataSourceEventArgs<PersonaListaDTO>(_personaSelected)); ((DropDownEditorButton)persona.ButtonsRight["SceltaPersona"]).CloseUp(); } if (form != null) form.Dispose(); } else { var form = getDettaglioPersonaUIService().GetFormDettaglio(SelectedPersona.ID); if (form != null) { form.ShowDialog(); form.Dispose(); } } } } catch (Exception ex) { _log.ErrorFormat("Errore nell'edit della persona - {0} - azienda:{1}", ex, Utility.GetMethodDescription(), Security.Login.Instance.CurrentLogin().Azienda); } }
private void personaEditorButtonClick(object sender, EditorButtonEventArgs e) { if (e.Button.Key == "editRichiedente" && SelectedRichiedente != null) { var dettaglioPersona = ResolveComponent<IDettaglioPersonaUI>(); var form = dettaglioPersona.GetFormDettaglio(SelectedRichiedente.IdPersona); form.ShowDialog(); form.Dispose(); } }
private void descrizioneDettaglioEditorButtonClick(object sender, EditorButtonEventArgs e) { if (e.Button.Key == "copy") { foreach (var row in ripartizioneDettaglio.Rows) { if (row.IsDataRow) { if (row.Cells.Exists("Descrizione")) row.Cells["Descrizione"].Value = descrizioneDettaglio.Text.Trim(); } } } }
/// <summary> /// 【详情】查询物流人员 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void txtGC_DeliveryByName_EditorButtonClick(object sender, EditorButtonEventArgs e) { if (string.IsNullOrEmpty(cbGC_DeliveryTypeName.Text)) { //请先选择物流人员类型,再选择物流人员 MessageBoxs.Show(Trans.SD, this.ToString(), MsgHelp.GetMsg(MsgCode.W_0034, new object[] { MsgParam.DELIVERYBY_TYPE, MsgParam.DELIVERYBY }), MessageBoxButtons.OK, MessageBoxIcon.Information); return; } if (cbGC_DeliveryTypeName.Text == DeliveryTypeEnum.Name.YG) { #region 物流人员为{员工}的场合 //查询当前组织下的用户 FrmUserQuery userQuery = new FrmUserQuery(paramItemSelectedItemParentValue: LoginInfoDAX.OrgID, paramItemSelectedItemParentText: LoginInfoDAX.OrgShortName) { StartPosition = FormStartPosition.CenterScreen }; DialogResult dialogResult = userQuery.ShowDialog(); if (dialogResult != DialogResult.OK) { return; } if (userQuery.SelectedGridList != null && userQuery.SelectedGridList.Count == 1) { //物流人员 txtGC_DeliveryByName.Text = userQuery.SelectedGridList[0].User_Name; //物流人员ID txtGC_DeliveryByID.Text = userQuery.SelectedGridList[0].User_ID; //物流人员手机号 txtGC_DeliveryByPhoneNo.Text = userQuery.SelectedGridList[0].User_PhoneNo; } #endregion } else { #region 物流人员为{第三方个人}、{第三方公司}的场合 //根据物流订单.[物流人员类型]查询相应物流订单中物流人员信息 List <ComComboBoxDataSourceTC> paramDeliveryTypeList = new List <ComComboBoxDataSourceTC>(); paramDeliveryTypeList = _deliveryTypeList.Where(x => x.Text == cbGC_DeliveryTypeName.Text).ToList(); Dictionary <string, object> paramViewParameters = new Dictionary <string, object> { { SDViewParamKey.DeliveryType.ToString(), paramDeliveryTypeList } }; FrmLogisticsBillQuery logisticsBillQuery = new FrmLogisticsBillQuery(paramViewParameters) { StartPosition = FormStartPosition.CenterScreen }; DialogResult dialogResult = logisticsBillQuery.ShowDialog(); if (dialogResult != DialogResult.OK) { return; } if (logisticsBillQuery.SelectedGridList != null && logisticsBillQuery.SelectedGridList.Count == 1) { //物流人员 txtGC_DeliveryByName.Text = logisticsBillQuery.SelectedGridList[0].LB_DeliveryBy; //物流人员手机号 txtGC_DeliveryByPhoneNo.Text = logisticsBillQuery.SelectedGridList[0].LB_PhoneNo; } #endregion } }
private void modelliNoteEditorButtonClick(object sender, EditorButtonEventArgs e) { switch (e.Button.Key) { case "dettaglioNota": if (modelliNote.Value != null && modelliNote.SelectedItem != null) { var nota = modelliNote.SelectedItem.ListObject as NotaPredefinitaDTO; if (nota != null) { var testoForm = new GestioneTestoHTML(_condominio, nota.TestoHtml, MergeFieldType.Default, false, true); if (testoForm.ShowDialog() == DialogResult.OK) _note = testoForm.GetTesto(); testoForm.Dispose(); } } break; case "clear": modelliNote.Value = null; break; } }
private void modelloEditorButtonClick(object sender, EditorButtonEventArgs e) { try { if (ricercaModelli.DisplayLayout.Bands[0].Columns.Exists("Preferito")) ricercaModelli.DisplayLayout.Bands[0].Columns["Preferito"].Width = 30; if (e.Button.Key == "dettaglio") { if (_condominio != null) { if (_modelloSelected == null) { var nuovoModello = ResolveComponent<INuovoModelloContabileUI>(); var form = nuovoModello.GetNewForm(_condominio, _esercizio); var result = form.ShowDialog(); if (result == DialogResult.OK) { LoadData(_condominio, _esercizio); var instance = (ModelloListaRegistrazioneContabileDTO) nuovoModello.NewBusinessInstance; if(instance != null) SetModelloInitial(instance.ID); ((DropDownEditorButton)modello.ButtonsRight["SceltaModello"]).CloseUp(); } form.Dispose(); } else { var dettaglioModello = ResolveComponent<IDettaglioModelloContabileUI>(); var formDettaglioModello = dettaglioModello.GetFormDettaglio(_modelloSelected, _condominio, _esercizio); if (formDettaglioModello.ShowDialog() == DialogResult.OK) { if (_esercizio != null) modelliBindingSource.DataSource = _modelloService.GetByEsercizio(_esercizio); else modelliBindingSource.DataSource = _modelloService.GetByCondominio(_condominio); SetModelloInitial(dettaglioModello.GetCurrentModello().ID); OnSelectModello(new DataSourceEventArgs<ModelloListaRegistrazioneContabileDTO>(SelectedModello)); } formDettaglioModello.Dispose(); } } } else if (e.Button.Key == "clear") { Reset(); } } catch (Exception ex) { _log.WarnFormat("Errore nel click sul bottone di editor del modello - {0}", ex, Utility.GetMethodDescription()); } }
/// <summary> /// Button events handler in Action column /// </summary> private void ActionButtonEvent_textEditor(object sender, EditorButtonEventArgs e) { if (e.Context is UltraGridCell == false) { return; } UltraGridCell cell = (UltraGridCell)e.Context; int ID = (int)cell.Row.Cells["ID"].Value; SPR_file sf = new SPR_file(ID); sf.Init_from_DB(); string option = e.Button.Key; if (option.StartsWith("Approve", StringComparison.OrdinalIgnoreCase)) { if (MessageBox.Show("Approve file " + ID + "?", "Happy!", MessageBoxButtons.YesNo) != DialogResult.Yes) { return; } Dividend curr_dvd = null; string CUSIP = cell.Row.Cells["CUSIP"].Value.ToString(); List <Dividend> dvdList = Helper_Dividend.Get_DividendList_CUSIP(CUSIP); foreach (Dividend dvd in dvdList) { if (HssDateTime.CompareDateTime_day(sf.RecordDate.Value, dvd.RecordDate_ADR.Value) == 0) { curr_dvd = dvd;//matching Dividend found break; } } if (curr_dvd == null) //CUSIP and Record Date not found record in [Dividend_Control] table, let user to choose { Form_DividendSelector fds = new Form_DividendSelector(); int dvd_index = fds.Init_from_list(dvdList); if (dvd_index > 0) { curr_dvd = new Dividend(dvd_index); } } else //CUSIP and Record Date match record in [Dividend_Control] table { if (MessageBox.Show("Update Dividend " + curr_dvd.DividendIndex + "?", "???", MessageBoxButtons.YesNo) != DialogResult.Yes) { return; } } if (curr_dvd != null) { if (!curr_dvd.Insert_DTC_position(sf)) { return; } sf.SetStatus(HssStatus.Approved); sf.LastModifyAction.Value = "Approve"; sf.Update_to_DB(); MessageBox.Show("Dividend #" + curr_dvd.DividendIndex + " DTC position updated!"); this.RefreshData(); } else { MessageBox.Show("Dividend Event not found..."); } } else if (option.StartsWith("ViewData", StringComparison.OrdinalIgnoreCase)) { ViewDataForm vdf = new ViewDataForm(); vdf.Set_notePad_dataSource(sf.FileBinary, ViewDataOption.RawView_strLine); vdf.Show(); } else if (option.StartsWith("Reject", StringComparison.OrdinalIgnoreCase)) { if (MessageBox.Show("Reject file " + ID + "?", "Sad...", MessageBoxButtons.YesNo) != DialogResult.Yes) { return; } sf.SetStatus(HssStatus.Rejected); sf.LastModifyAction.Value = "Reject"; sf.Update_to_DB(); this.RefreshData(); } else if (option.StartsWith("Restore", StringComparison.OrdinalIgnoreCase)) { if (MessageBox.Show("Restore file " + ID + "?", "Hero is back!", MessageBoxButtons.YesNo) != DialogResult.Yes) { return; } sf.SetStatus(HssStatus.Pending); sf.LastModifyAction.Value = "Restore"; sf.Update_to_DB(); this.RefreshData(); } }
private void totaleContoFont_EditorButtonClick(object sender, EditorButtonEventArgs e) { if (e.Button.Key == "font") { if (totaleContoFontDialog.ShowDialog() != DialogResult.Cancel) { _impostazioneReportDTO.TotaleContoFontName = totaleContoFontDialog.Font.Name; _impostazioneReportDTO.TotaleContoFontSize = totaleContoFontDialog.Font.Size; _impostazioneReportDTO.TotaleContoFontStyle = totaleContoFontDialog.Font.Style.ToString(); totaleContoFont.Text = $"{totaleContoFontDialog.Font.Name}; {totaleContoFontDialog.Font.Size}; {totaleContoFontDialog.Font.Style}"; } totaleContoFontDialog.Dispose(); } }
/// <summary> /// Action column event handler /// </summary> private void ActionButtonEvent_textEditor(object sender, EditorButtonEventArgs e) { if (e.Context is UltraGridCell == false) { return; } UltraGridCell cell = (UltraGridCell)e.Context; int ID = (int)cell.Row.Cells["id_SavedfilesRcvd"].Value; XBRL_SavedFile sf = new XBRL_SavedFile(ID); string option = e.Button.Key; if (option.StartsWith("Approve", StringComparison.OrdinalIgnoreCase)) { if (MessageBox.Show("Approve file " + ID + "?", "Happy!", MessageBoxButtons.YesNo) != DialogResult.Yes) { return; } Dividend dvd = Helper_XBRL_approval.ApproveXBRL(ID); this.RefreshData(null); if (dvd != null && MessageBox.Show("Go to Control? " + dvd.DividendIndex, "???", MessageBoxButtons.YesNo) == DialogResult.Yes) { this.GoToControl_func(dvd.DividendIndex); } } else if (option.StartsWith("ViewData", StringComparison.OrdinalIgnoreCase)) { sf.Init_from_DB(false); ViewDataForm vdf = new ViewDataForm(); vdf.suggestedFileName_forSave = sf.id_SavedfilesRcvd.ToString(); vdf.Set_grid_dataSource(sf.Get_XBRLinfo_DS()); vdf.Set_notePad_dataSource(sf.savedfile); vdf.Show(); } else if (option.StartsWith("Reject", StringComparison.OrdinalIgnoreCase)) { if (MessageBox.Show("Reject file " + ID + "?", "Sad...", MessageBoxButtons.YesNo) != DialogResult.Yes) { return; } sf.Init_from_DB(true); sf.processState.Value = (int)HssStatus.Rejected; sf.Update_to_DB(); this.lastRefreshAt = DateTime.MinValue; this.RefreshData(null); } else if (option.StartsWith("Restore", StringComparison.OrdinalIgnoreCase)) { if (MessageBox.Show("Restore file " + ID + "?", "Hero is back!", MessageBoxButtons.YesNo) != DialogResult.Yes) { return; } sf.Init_from_DB(true); sf.processState.Value = (int)HssStatus.Pending; sf.Update_to_DB(); this.lastRefreshAt = DateTime.MinValue; this.RefreshData(null); } }
private void utecInvName_EditorButtonClick(object sender, EditorButtonEventArgs e) { using (var brm = new SelectKisInventory(_dtRawMaterial, txtcInvCode.Text,false)) { if (brm.ShowDialog() == DialogResult.Yes) { _FitemId = brm.FitemId; txtcInvCode.Text = brm.InvCode; utecInvName.Text = brm.InvName; txtcInvStd.Text = brm.InvStd; txtcFullName.Text = brm.FullName; _FitemId = brm.FitemId; } } }
private void ultraTextEditorReportsTo_EditorButtonClick(object sender, EditorButtonEventArgs e) { try { UltraTextEditor editor = e.Context as UltraTextEditor; ReportsTo = _presenter.ShowReportsTo((editor == null || editor.Tag==null) ? "" : editor.Tag.ToString()); if (!string.IsNullOrEmpty(ReportsTo)) { UserBasicInfoEntity UBE = UserHelper.GetUsersBasicInformation(new [] { ReportsTo })[0]; txt_ReportsTo.Text = string.IsNullOrEmpty(UBE.Title.Trim()) ? UBE.Display : UBE.Display + "(" + UBE.Title + ")"; txt_ReportsTo.Tag = ReportsTo; } else { txt_ReportsTo.Text = ""; txt_ReportsTo.Tag = ""; } } catch (Exception ex) { if (ExceptionManager.Handle(ex)) throw; } }
private void CallPromptOSNOVAOSIGURANJAZAMOOIDOSNOVAOSIGURANJA(object sender, EditorButtonEventArgs e) { DataRow fillByRow = null; string fillMethod = ""; DataRow result = this.OSNOVAOSIGURANJAController.SelectOSNOVAOSIGURANJAZAMOOIDOSNOVAOSIGURANJA(fillMethod, fillByRow); this.UpdateValuesOSNOVAOSIGURANJAZAMOOIDOSNOVAOSIGURANJA(result); }
private void condominioEditorButtonClick(object sender, EditorButtonEventArgs e) { if (e.Button.Key == "clear") Reset(); }
private void modelliLetteraEditorButtonClick(object sender, EditorButtonEventArgs e) { if(e.Button.Key == "clear") modelliLettera.Value = null; else if(e.Button.Key == "open") { validationSummaryLettera.Validate(); if (validationSummaryLettera.IsValid) { var documento = _modelloLetteraService.GetLetteraCompilata((int)modelliLettera.Value, _parametriLettera); _modelloLettera = _manageDocumentService.Open(documento, ((ModelloLetteraDTO)modelliLettera.SelectedItem.ListObject).Descrizione, false, MergeFieldType.Default); } else validationSummaryLettera.ShowErrorSummary(); } }
private void fornitoreEditorButtonClick(object sender, EditorButtonEventArgs e) { if (ricercaFornitori.DisplayLayout.Bands[0].Columns.Exists("Preferito")) ricercaFornitori.DisplayLayout.Bands[0].Columns["Preferito"].Width = 30; if (e.Button.Key == "dettaglio") { if (_fornitoreSelected == null) { var form = getNuovoFornitoreService().GetNewForm(_tipoSelezione); if (form.ShowDialog() == DialogResult.OK) { LoadData(_tipoSelezione); SetFornitoreInitial(((FornitoreDTO)getNuovoFornitoreService().NewBusinessInstance).ID); } form.Dispose(); } else { var formDettaglioFornitore = getDettaglioFornitoreService().GetFormDettaglio(_fornitoreSelected.ID); if (formDettaglioFornitore != null && formDettaglioFornitore.ShowDialog() == DialogResult.OK) { LoadData(_tipoSelezione); SetFornitoreInitial(getDettaglioFornitoreService().GetCurrentFornitore().ID); OnSelectFornitore(new DataSourceEventArgs<FornitoreDTO>(SelectedFornitore)); } formDettaglioFornitore?.Dispose(); } } else if (e.Button.Key == "clear") { Reset(); } }
private void modelliEditorButtonClick(object sender, EditorButtonEventArgs e) { if (e.Button.Key == "clear") modelli.Value = null; }
private void modelliLetteraEditorButtonClick(object sender, EditorButtonEventArgs e) { if (e.Button.Key == "modelli") { var form = new ListaModelliLetteraTestoUI(new List<TipoModelloLetteraTestoEnum> { TipoModelloLetteraTestoEnum.LetteraDetrazione }); if (form.ShowDialog() == DialogResult.OK) modelloLetteraTestoDTOBindingSource.DataSource = getBilancioService().GetModelliLetteraDetrazione(); form.Dispose(); } }
private void totaleScalaFont_EditorButtonClick(object sender, EditorButtonEventArgs e) { if (e.Button.Key == "font") { if (totaleScalaFontDialog.ShowDialog() != DialogResult.Cancel) { _impostazioneReportDTO.TotaleScalaFontName = totaleScalaFontDialog.Font.Name; _impostazioneReportDTO.TotaleScalaFontSize = totaleScalaFontDialog.Font.Size; _impostazioneReportDTO.TotaleScalaFontStyle = "regular"; if (totaleScalaFontDialog.Font.Bold) _impostazioneReportDTO.TotaleScalaFontStyle = "bold"; else if (totaleScalaFontDialog.Font.Italic) _impostazioneReportDTO.TotaleScalaFontStyle = "italic"; else if (totaleScalaFontDialog.Font.Underline) _impostazioneReportDTO.TotaleScalaFontStyle = "underline"; else if (totaleScalaFontDialog.Font.Strikeout) _impostazioneReportDTO.TotaleScalaFontStyle = "strikeout"; totaleScalaFont.Text = $"{totaleScalaFontDialog.Font.Name}; {totaleScalaFontDialog.Font.Size}; {totaleScalaFontDialog.Font.Style}"; } totaleScalaFontDialog.Dispose(); } }
private void eserciziEditorButtonClick(object sender, EditorButtonEventArgs e) { esercizi.Value = null; }
private void CallPromptOSOBNIODBITAKOSOBNIODBITAKZADUZENJEIDOSOBNIODBITAK(object sender, EditorButtonEventArgs e) { DataRow fillByRow = null; string fillMethod = ""; DataRow result = this.RADNIKController.SelectOSOBNIODBITAKOSOBNIODBITAKZADUZENJEIDOSOBNIODBITAK(fillMethod, fillByRow); this.UpdateValuesOSOBNIODBITAKOSOBNIODBITAKZADUZENJEIDOSOBNIODBITAK(result); }
private void sceltaFontEditorButtonClick(object sender, EditorButtonEventArgs e) { if (e.Button.Key == "font") { if (etichetteFontDialog.ShowDialog() != DialogResult.Cancel) { _azienda.FontNameMessaggistica = etichetteFontDialog.Font.Name; _azienda.FontSizeMessaggistica = etichetteFontDialog.Font.Size; sceltaFont.Text = etichetteFontDialog .Font.Name + @";" + etichetteFontDialog.Font.Size; } etichetteFontDialog.Dispose(); } }
private void modelliLetteraEditorButtonClick(object sender, EditorButtonEventArgs e) { if (e.Button.Key == "lettera") { if (modelliLettera.SelectedItem != null && modelliLettera.SelectedItem.ListObject is ModelloLetteraDTO) { try { getModelloLetteraService().OpenModello((ModelloLetteraDTO)modelliLettera.SelectedItem.ListObject); } catch (Exception ex) { _log.ErrorFormat("Errore nell'apertura del modello - {0} - azienda:{1}", ex, Utility.GetMethodDescription(), Login.Instance.CurrentLogin().Azienda); ReleaseAllComponent(); SferaServiceProxy.Instance.Close(); CommonMessages.DisplayWarning(string.Format("Errore nell'apertura del modello.{0}Si prega di riprovare", Environment.NewLine)); } } } else if (e.Button.Key == "clear") { modelliLettera.Value = null; } }
private void condominiEditorButtonClick(object sender, EditorButtonEventArgs e) { if (e.Button.Key == "condomini") sceltaCondomini.Show(condomini); }
private void notePredefiniteEditorButtonClick(object sender, EditorButtonEventArgs e) { if (e.Button.Key == "clear") { notePredefinite.Value = null; note.Clear(); } }