public AskDate(string title, DataAccess Conn) { InitializeComponent(); this.Conn = Conn; CustomLabel.Text = title; HelpForm.ExtLeaveDateTimeTextBox(txtData, null); }
public void MetaData_AfterLink() { bool IsAmministrazione = false; Meta = MetaData.GetMetaData(this); Meta.CanSave = false; Meta.CanInsert = false; Meta.CanInsertCopy = false; Meta.CanCancel = false; if (Meta.GetSys("userdb") != null) { IsAmministrazione = (Meta.GetSys("userdb").ToString().ToLower() == "amministrazione"); } txtEsercizio.Text = Meta.GetSys("esercizio").ToString(); DateTime dtPrimoDelMese = new DateTime( CfgFn.GetNoNullInt32(Meta.GetSys("esercizio")), ((DateTime)Meta.GetSys("datacontabile")).Month, 1); DateTime dtUltimoDelMesePrec = dtPrimoDelMese.AddDays(-1); //txtDataRiferimento.Text = ((DateTime)Meta.GetSys("datacontabile")).ToShortDateString(); txtDataRiferimento.Text = dtUltimoDelMesePrec.ToShortDateString(); HelpForm.ExtLeaveDateTimeTextBox(txtDataRiferimento, null); btnFillExpensetax.Enabled = IsAmministrazione; btnFillUnifiedClawback.Enabled = IsAmministrazione; }
private void txtStart_Leave(object sender, EventArgs e) { if (inChiusura) { return; } HelpForm.ExtLeaveDateTimeTextBox(txtStart, null); bool dataValida = controllaData(txtStart); if (!dataValida) { txtStart.Text = ""; } }
public frmCambiaDataContabile(EntityDispatcher E) { // // Required for Windows Form Designer support // InitializeComponent(); this.E = E; DataAccessLocale = E.Conn; txtDataContabile.Text = ((DateTime)E.GetSys("datacontabile")).ToShortDateString(); HelpForm.ExtLeaveDateTimeTextBox(txtDataContabile, null); // // TODO: Add any constructor code after InitializeComponent call // }
private void txtDataRiferimento_Leave(object sender, EventArgs e) { HelpForm.ExtLeaveDateTimeTextBox(txtDataRiferimento, null); }
private void txtDataValuta_Leave(object sender, System.EventArgs e) { HelpForm.ExtLeaveDateTimeTextBox(txtDataValuta, "x.y"); }
private void txtDataStop_Leave(object sender, EventArgs e) { HelpForm.ExtLeaveDateTimeTextBox(txtDataStop, null); }
private void txtExpiry_Leave(object sender, EventArgs e) { HelpForm.ExtLeaveDateTimeTextBox(txtExpiry, null); }
private void txtDataContabile_Leave(object sender, System.EventArgs e) { HelpForm.ExtLeaveDateTimeTextBox(txtDataContabile, null); }