private void txtEsercEntrata_Leave(object sender, System.EventArgs e) { string esercentrata = txtEsercEntrata.Text.Trim(); if (esercentrata == "") { MetaData.Choose(this, "choose.incomeview.unknown.clear"); return; } //if txtEsercEntrata is not Empty: if (Meta.IsEmpty) { return; } if (DS.incomeview.Rows.Count > 0) { if (esercentrata == DS.incomeview.Rows[0]["ymov"].ToString()) { return; } else { ClearEntrata(false); return; } } }
private void txtEserc_Leave(object sender, EventArgs e) { if (InChiusura) { return; } string esercspesa = txtEserc.Text.Trim(); if (esercspesa == "") { MetaData.Choose(this, "choose.expenseview.unknown.clear"); return; } //if txtEserc is not Empty: if (Meta.IsEmpty) { return; } if (DS.expenseview.Rows.Count > 0) { if (esercspesa == DS.expenseview.Rows[0]["ymov"].ToString()) { return; } else { ClearSpesa(false); return; } } }
private void DoChooseCommand(Control sender, string E_S) { string mycommand = (E_S == "E") ? "choose.incomeview.movimentoentrata" : "choose.expenseview.movimentospesa"; string filter1 = ""; TextBox txtEserc = (E_S == "E") ? txtEsercizioMovimentoE : txtEsercizioMovimentoS; if (txtEserc.Text.Trim() != "") { filter1 = QHS.CmpEq("ymov", txtEserc.Text); } TextBox txtNum = (E_S == "E") ? txtNumeroMovimentoE : txtNumeroMovimentoS; if (txtNum.Text.Trim() != "") { filter1 = QHS.AppAnd(filter1, QHS.CmpEq("nmov", txtNum.Text)); } DataRow Curr = DS.expensetaxcorrige.Rows[0]; // Da cambiare decimal importo = (E_S == "E") ? -(CfgFn.GetNoNullDecimal(Curr["employamount"]) + CfgFn.GetNoNullDecimal(Curr["adminamount"])) : CfgFn.GetNoNullDecimal(Curr["employamount"]) + CfgFn.GetNoNullDecimal(Curr["adminamount"]); string fAmount = ""; if (importo > 0) { fAmount = QHS.CmpGe("curramount", importo); } else { fAmount = QHS.CmpGt("curramount", 0); } filter1 = QHS.AppAnd(filter1, fAmount); object faseMax = (E_S == "E") ? Meta.GetSys("maxincomephase") : Meta.GetSys("maxexpensephase"); filter1 = QHS.AppAnd(filter1, QHS.CmpEq("nphase", faseMax)); if (filter1 != "") { mycommand += "." + filter1; } if (!MetaData.Choose(this, mycommand)) { if (sender != null) { sender.Focus(); } } }
private void button1_Click(object sender, EventArgs e) { string tablename = "entrydetailaccrualview"; string MyFilter = CalculateFilter(false); string command = "choose." + tablename + ".default." + MyFilter; if (!MetaData.Choose(this, command)) { return; } }
private void btnInserisciDetail_Click(object sender, EventArgs e) { if (MetaData.Empty(this)) { return; } MetaData.GetFormData(this, true); string MyFilter = GetFilterForF24EPLinking(QHS); string command = "choose.expenseclawbackview.dettagliocollegato." + MyFilter; MetaData.Choose(this, command); riempiCampiCalcolati(); }
private void btnInserisci_Click(object sender, EventArgs e) { if (MetaData.Empty(this)) { return; } MetaData.GetFormData(this, true); string MyFilter = GetFilterForLinking(QHS); string command = "choose.taxpayview.default." + MyFilter; MetaData.Choose(this, command); riempiCampiCalcolati(); }
private void txtNumeroRiga_Leave(object sender, System.EventArgs e) { if (InChiusura) { return; } if (!Meta.DrawStateIsDone) { return; } if (txtNumeroRiga.ReadOnly == true) { return; } if (txtNumeroRiga.Enabled == false) { return; } if (Meta.IsEmpty) { return; } string nummov = txtNumeroRiga.Text.Trim(); if (nummov == "" && DS.incomelastview.Rows.Count > 0) { ScollegaRiga(); return; } if (nummov == "") { return; } if (DS.incomelastview.Rows.Count == 1) { DataRow Curr = DS.incomelastview.Rows[0]; if (Curr["nmov"].ToString() == nummov) { return; } } ScollegaRiga(); //if (!MetaData.Choose(this, QHS.AppAnd(comandochoose, QHS.CmpEq("nmov",nummov)))) { if (!MetaData.Choose(this, comandochoose + "AND" + QHS.CmpEq("nmov", nummov))) { txtNumeroRiga.Focus(); } }
private void DoChooseCommand(Control sender) { string mycommand = command; string filter = Meta.myHelpForm.GetSpecificCondition(grpMovSpesa.Controls, "epexpview"); if (filter != "") { mycommand += "." + filter; } if (!MetaData.Choose(this, mycommand)) { if (sender != null) { sender.Focus(); } } }
private void DoChooseCommand(Control sender) { string mycommand = "choose.incomeview.movimentoentrata"; string filter1 = Meta.myHelpForm.GetSpecificCondition(gboxEntrata.Controls, "incomeview"); DataRow Curr = DS.admpay_assessment.Rows[0]; decimal importo = CfgFn.GetNoNullDecimal(Curr["amount"]); string fAmount = ""; if (importo > 0) { fAmount = QHS.CmpGe("available", importo); } else { fAmount = QHS.CmpGt("available", 0); } filter1 = QHS.AppAnd(filter1, fAmount); filter1 = QHS.AppAnd(filter1, fAmount); if (cmbFaseEntrata.SelectedIndex > 0) { int faseScelta = CfgFn.GetNoNullInt32(cmbFaseEntrata.SelectedValue); int faseRegistry = CfgFn.GetNoNullInt32(Meta.GetSys("incomeregphase")); if (faseScelta >= faseRegistry) { filter1 = QHS.AppAnd(filter1, filterOnReg); } } if (filter1 != "") { mycommand += "." + filter1; } if (!MetaData.Choose(this, mycommand)) { if (sender != null) { sender.Focus(); } } }
private void txtEsercMovimento_Leave(object sender, System.EventArgs e) { if (InChiusura) { return; } if (Meta.EditMode) { return; } string esercspesa = txtEsercMovimento.Text.Trim(); if (esercspesa == "") { MetaData.Choose(this, "choose.epexpview.unknown.clear"); return; } //if txtEsercEntrata is not Empty: if (Meta.IsEmpty) { return; } if (DS.epexpview.Rows.Count > 0) { if (esercspesa == DS.epexpview.Rows[0]["yepexp"].ToString()) { return; } else { ClearSpesa(false); return; } } }
private void DoChooseCommand(Control sender) { string filter = ""; string mycommand = command; if (sender == txtNumEntrata) { filter = Meta.myHelpForm.GetSpecificCondition(grpAccertamento.Controls, "incomeview"); } else { string eserc = txtEsercEntrata.Text.Trim(); if (eserc != "") { filter = QHS.CmpEq("ymov", eserc); } } if (Meta.InsertMode) { string filter1 = QHS.CmpEq("ymov", Meta.GetSys("esercizio")); filter = GetData.MergeFilters(filter, filter1); mycommand = QHS.AppAnd(mycommand, filter); } if (!(Meta.InsertMode) && (filter != "")) { mycommand = QHS.AppAnd(mycommand, filter); } if (!MetaData.Choose(this, mycommand)) { if (sender != null) { sender.Focus(); } } }