Changeset 1117 for Scheduling/trunk/cs/bsdx0200GUISourceCode/DAL.cs
- Timestamp:
- Mar 29, 2011, 5:38:18 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Scheduling/trunk/cs/bsdx0200GUISourceCode/DAL.cs
r1044 r1117 17 17 18 18 delegate DataTable RPMSDataTableDelegate(string CommandString, string TableName); // for use in calling (Sync and Async) 19 delegate string TransmitRPCAsync(string RPCName, string Params); //same idea 19 20 20 21 /// <summary> … … 174 175 175 176 /// <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> 176 235 /// Workhorse 177 236 /// </summary>
Note:
See TracChangeset
for help on using the changeset viewer.