示例#1
0
 public AskDate(string title, DataAccess Conn)
 {
     InitializeComponent();
     this.Conn        = Conn;
     CustomLabel.Text = title;
     HelpForm.ExtLeaveDateTimeTextBox(txtData, null);
 }
示例#2
0
        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;
        }
示例#3
0
        private void txtStart_Leave(object sender, EventArgs e)
        {
            if (inChiusura)
            {
                return;
            }
            HelpForm.ExtLeaveDateTimeTextBox(txtStart, null);
            bool dataValida = controllaData(txtStart);

            if (!dataValida)
            {
                txtStart.Text = "";
            }
        }
示例#4
0
 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
     //
 }
示例#5
0
 private void txtDataRiferimento_Leave(object sender, EventArgs e)
 {
     HelpForm.ExtLeaveDateTimeTextBox(txtDataRiferimento, null);
 }
示例#6
0
 private void txtDataValuta_Leave(object sender, System.EventArgs e)
 {
     HelpForm.ExtLeaveDateTimeTextBox(txtDataValuta, "x.y");
 }
示例#7
0
 private void txtDataStop_Leave(object sender, EventArgs e)
 {
     HelpForm.ExtLeaveDateTimeTextBox(txtDataStop, null);
 }
示例#8
0
 private void txtExpiry_Leave(object sender, EventArgs e)
 {
     HelpForm.ExtLeaveDateTimeTextBox(txtExpiry, null);
 }
示例#9
0
 private void txtDataContabile_Leave(object sender, System.EventArgs e)
 {
     HelpForm.ExtLeaveDateTimeTextBox(txtDataContabile, null);
 }