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;
        }
예제 #2
0
파일: VRFForm.cs 프로젝트: HCMISFE/FE
        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;
        }