Ignore:
Timestamp:
Mar 29, 2011, 5:38:18 AM (13 years ago)
Author:
Sam Habiel
Message:

CGAVDocument: Don't Update Grid. Leave that to CGAVView.
CGAVView: When updating grid, make a copy of appointments, and use the copy, so there won't be clashes when updating appointments in the background.
CGDocument: Minor Changes in AppointmentNoShow; New method AppointmentUndoCheckIn
CGDocumentManager: Resequenced load order b/c UserPreferences now talks to DB.
DAL: New Methods to save autoprint preferences; new delegate to enable some async stuff
DCheckIn & DAppointPage: _myCodeIsFiringIstheCheckBoxChangedEvent added to protect against firing event when setting checkbox in the code.
DPatientLetter: No changes.
UserPreferences: Now gets and saves user preferences from DB.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Scheduling/trunk/cs/bsdx0200GUISourceCode/DAL.cs

    r1044 r1117  
    1717       
    1818        delegate DataTable RPMSDataTableDelegate(string CommandString, string TableName); // for use in calling (Sync and Async)
     19        delegate string TransmitRPCAsync(string RPCName, string Params); //same idea
    1920
    2021        /// <summary>
     
    174175
    175176        /// <summary>
     177        /// Remove the check-in for the appointment
     178        /// </summary>
     179        /// <param name="ApptID">Appointment IEN/Key</param>
     180        /// <returns>Table with 1 columns: ERRORID. ErrorID of "0" is okay;
     181        /// any other (negative numbers plus text) is bad</returns>
     182        public DataTable RemoveCheckIn(int ApptID)
     183        {
     184            string cmd = string.Format("BSDX REMOVE CHECK-IN^{0}", ApptID);
     185            return RPMSDataTable(cmd, "");
     186        }
     187
     188        /// <summary>
     189        /// Save User Preference in DB For Printing Routing Slip
     190        /// Uses Parameter BSDX AUTO PRINT RS
     191        /// </summary>
     192        /// <remarks>
     193        /// Notice Code-Fu for Async Save...
     194        /// </remarks>
     195        public bool AutoPrintRoutingSlip
     196        {
     197            get
     198            {
     199                string val = _thisConnection.bmxNetLib.TransmitRPC("BSDX GET PARAM", "BSDX AUTO PRINT RS");  //1 = true; 0 = false; "" = not set
     200                return val == "1" ? true : false;
     201            }
     202            set
     203            {
     204                TransmitRPCAsync _asyncTransmitter = new TransmitRPCAsync(_thisConnection.bmxNetLib.TransmitRPC);
     205                // 0 = success; anything else is wrong. Not being tested here as its success is not critical to application use.
     206                _asyncTransmitter.BeginInvoke("BSDX SET PARAM", String.Format("{0}^{1}", "BSDX AUTO PRINT RS", value ? "1" : "0"), null, null);
     207            }
     208        }
     209
     210        /// <summary>
     211        /// Save User Preference in DB For Printing Routing Slip
     212        /// Uses Parameter BSDX AUTO PRINT AS
     213        /// </summary>
     214        /// <remarks>
     215        /// Notice Code-Fu for Async Save...
     216        /// </remarks>
     217        public bool AutoPrintAppointmentSlip
     218        {
     219            get
     220            {
     221                string val = _thisConnection.bmxNetLib.TransmitRPC("BSDX GET PARAM", "BSDX AUTO PRINT AS");  //1 = true; 0 = false; "" = not set
     222                return val == "1" ? true : false;
     223            }
     224            set
     225            {
     226                TransmitRPCAsync _asyncTransmitter = new TransmitRPCAsync(_thisConnection.bmxNetLib.TransmitRPC);
     227                // 0 = success; anything else is wrong. Not being tested here as its success is not critical to application use.
     228                _asyncTransmitter.BeginInvoke("BSDX SET PARAM", String.Format("{0}^{1}", "BSDX AUTO PRINT AS", value ? "1" : "0"), null, null);
     229            }
     230        }
     231
     232
     233
     234        /// <summary>
    176235        /// Workhorse
    177236        /// </summary>
Note: See TracChangeset for help on using the changeset viewer.