private void ShowRRFDetailWindow(int rrfID)
        {
            Cursor = Cursors.WaitCursor;
            RRF rrf = new RRF();

            rrf.LoadByPrimaryKey(rrfID);
            cboFromMonth.EditValue = rrf.FromMonth;
            cboFromYear.EditValue  = rrf.FromYear;
            cboToMonth.EditValue   = rrf.ToMonth;
            cboToYear.EditValue    = rrf.ToYear;
            cboStores.EditValue    = rrf.RRFType;
            PopulateList();
            //Handle Edits here (Populate exact values from the database)
            if (!rrf.IsColumnNull("LastRRFStatus"))
            {
                if (rrf.LastRRFStatus == "" || rrf.LastRRFStatus.Contains("not") || rrf.LastRRFStatus.Contains("Not"))
                {
                    btnAutoPushToPFSA.Enabled = true;
                }
                else
                {
                    btnAutoPushToPFSA.Enabled = false;
                }
            }
            else
            {
                btnAutoPushToPFSA.Enabled = true;
            }
            Cursor = Cursors.Default;
        }
Esempio n. 2
0
        private void ShowRRFDetailWindow(int rrfID)
        {
            Cursor = Cursors.WaitCursor;
            RRF rrf = new RRF();

            rrf.LoadByPrimaryKey(rrfID);
            cboFromMonth.EditValue = rrf.FromMonth;
            cboFromYear.EditValue  = rrf.FromYear;
            cboToMonth.EditValue   = rrf.ToMonth;
            cboToYear.EditValue    = rrf.ToYear;
            cboStores.EditValue    = rrf.RRFType;
            PopulateList();
            Cursor = Cursors.Default;
        }