Advertisement
Guest User

Untitled

a guest
Jan 6th, 2012
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 15.27 KB | None | 0 0
  1. Index: OpenDental/Forms/FormModuleSetup.cs
  2. ===================================================================
  3. --- OpenDental/Forms/FormModuleSetup.cs (revision 7445)
  4. +++ OpenDental/Forms/FormModuleSetup.cs (working copy)
  5. @@ -102,6 +102,9 @@
  6.         private CheckBox checkMedicalFeeUsedForNewProcs;
  7.         private bool changed;
  8.         private bool IsLoading;
  9. +        private CheckBox checkConfirmProviderChangeAppointment;
  10. +        private CheckBox checkIgnoreProviderSpecificLengths;
  11. +        private CheckBox checkConfirmMovingAppointment;
  12.  
  13.         ///<summary></summary>
  14.         public FormModuleSetup() {
  15. @@ -206,6 +209,9 @@
  16.             this.label9 = new System.Windows.Forms.Label();
  17.             this.butProblemsIndicateNone = new OpenDental.UI.Button();
  18.             this.textProblemsIndicateNone = new System.Windows.Forms.TextBox();
  19. +            this.checkConfirmProviderChangeAppointment = new System.Windows.Forms.CheckBox();
  20. +            this.checkIgnoreProviderSpecificLengths = new System.Windows.Forms.CheckBox();
  21. +            this.checkConfirmMovingAppointment = new System.Windows.Forms.CheckBox();
  22.             this.label8 = new System.Windows.Forms.Label();
  23.             this.tabImages = new System.Windows.Forms.TabPage();
  24.             this.tabManage = new System.Windows.Forms.TabPage();
  25. @@ -686,6 +692,42 @@
  26.             this.checkAppointmentBubblesDisabled.Text = "Appointment bubble popup disabled";
  27.             this.checkAppointmentBubblesDisabled.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
  28.             this.checkAppointmentBubblesDisabled.UseVisualStyleBackColor = true;
  29. +            //
  30. +            // checkConfirmProviderChangeAppointment
  31. +            //
  32. +            this.checkConfirmProviderChangeAppointment.CheckAlign = System.Drawing.ContentAlignment.MiddleRight;
  33. +            this.checkConfirmProviderChangeAppointment.FlatStyle = System.Windows.Forms.FlatStyle.System;
  34. +            this.checkConfirmProviderChangeAppointment.Location = new System.Drawing.Point(78, 233);
  35. +            this.checkConfirmProviderChangeAppointment.Name = "checkConfirmProviderChangeAppointment";
  36. +            this.checkConfirmProviderChangeAppointment.Size = new System.Drawing.Size(362, 17);
  37. +            //this.checkConfirmProviderChangeAppointment.TabIndex = 67;
  38. +            this.checkConfirmProviderChangeAppointment.Text = "Confirm changing provider when scheduling appointment";
  39. +            this.checkConfirmProviderChangeAppointment.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
  40. +            this.checkConfirmProviderChangeAppointment.UseVisualStyleBackColor = true;
  41. +            //
  42. +            // checkIgnoreProviderSpecificLengths
  43. +            //
  44. +            this.checkIgnoreProviderSpecificLengths.CheckAlign = System.Drawing.ContentAlignment.MiddleRight;
  45. +            this.checkIgnoreProviderSpecificLengths.FlatStyle = System.Windows.Forms.FlatStyle.System;
  46. +            this.checkIgnoreProviderSpecificLengths.Location = new System.Drawing.Point(78, 250);
  47. +            this.checkIgnoreProviderSpecificLengths.Name = "checkIgnoreProviderSpecificLengths";
  48. +            this.checkIgnoreProviderSpecificLengths.Size = new System.Drawing.Size(362, 17);
  49. +            //this.checkIgnoreProviderSpecificLengths.TabIndex = 67;
  50. +            this.checkIgnoreProviderSpecificLengths.Text = "Ignore provider specific lengths";
  51. +            this.checkIgnoreProviderSpecificLengths.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
  52. +            this.checkIgnoreProviderSpecificLengths.UseVisualStyleBackColor = true;
  53. +            //
  54. +            // checkConfirmMovingAppointment
  55. +            //
  56. +            this.checkConfirmMovingAppointment.CheckAlign = System.Drawing.ContentAlignment.MiddleRight;
  57. +            this.checkConfirmMovingAppointment.FlatStyle = System.Windows.Forms.FlatStyle.System;
  58. +            this.checkConfirmMovingAppointment.Location = new System.Drawing.Point(78, 267);
  59. +            this.checkConfirmMovingAppointment.Name = "checkConfirmMovingAppointment";
  60. +            this.checkConfirmMovingAppointment.Size = new System.Drawing.Size(362, 17);
  61. +            //this.checkConfirmMovingAppointment.TabIndex = 67;
  62. +            this.checkConfirmMovingAppointment.Text = "Confirm when moving an appointment";
  63. +            this.checkConfirmMovingAppointment.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
  64. +            this.checkConfirmMovingAppointment.UseVisualStyleBackColor = true;
  65.             //
  66.             // toolTip1
  67.             //
  68. @@ -853,6 +895,9 @@
  69.             this.tabAppts.Controls.Add(this.label13);
  70.             this.tabAppts.Controls.Add(this.comboSearchBehavior);
  71.             this.tabAppts.Controls.Add(this.checkApptRefreshEveryMinute);
  72. +            this.tabAppts.Controls.Add(this.checkConfirmProviderChangeAppointment);
  73. +            this.tabAppts.Controls.Add(this.checkIgnoreProviderSpecificLengths);
  74. +            this.tabAppts.Controls.Add(this.checkConfirmMovingAppointment);
  75.             this.tabAppts.Controls.Add(this.checkAppointmentBubblesDisabled);
  76.             this.tabAppts.Controls.Add(this.label6);
  77.             this.tabAppts.Controls.Add(this.checkSolidBlockouts);
  78. @@ -1320,6 +1365,9 @@
  79.                 comboSearchBehavior.Items.Add(Enum.GetNames(typeof(SearchBehaviorCriteria))[i]);
  80.             }
  81.             comboSearchBehavior.SelectedIndex=PrefC.GetInt(PrefName.AppointmentSearchBehavior);
  82. +            checkConfirmProviderChangeAppointment.Checked = PrefC.GetBool(PrefName.ConfirmProviderChangeAppointment);
  83. +            checkIgnoreProviderSpecificLengths.Checked = PrefC.GetBool(PrefName.IgnoreProviderSpecificLengths);
  84. +            checkConfirmMovingAppointment.Checked = PrefC.GetBool(PrefName.ConfirmMovingAppointment);
  85.             //Family module-----------------------------------------------------------------------
  86.             //checkMedicalEclaimsEnabled.Checked=PrefC.GetBool(PrefName.MedicalEclaimsEnabled);
  87.             checkInsurancePlansShared.Checked=PrefC.GetBool(PrefName.InsurancePlansShared);
  88. @@ -1526,6 +1574,9 @@
  89.                 | Prefs.UpdateBool(PrefName.ChartAddProcNoRefreshGrid,checkChartAddProcNoRefreshGrid.Checked)
  90.                 | Prefs.UpdateInt(PrefName.InsDefaultCobRule,comboCobRule.SelectedIndex)
  91.                 | Prefs.UpdateBool(PrefName.MedicalFeeUsedForNewProcs,checkMedicalFeeUsedForNewProcs.Checked)
  92. +                | Prefs.UpdateBool(PrefName.ConfirmProviderChangeAppointment, checkConfirmProviderChangeAppointment.Checked)
  93. +                | Prefs.UpdateBool(PrefName.IgnoreProviderSpecificLengths, checkIgnoreProviderSpecificLengths.Checked)
  94. +                | Prefs.UpdateBool(PrefName.ConfirmMovingAppointment, checkConfirmMovingAppointment.Checked)
  95.                 )
  96.             {
  97.                 changed=true;
  98. Index: OpenDental/Main Modules/ContrAppt.cs
  99. ===================================================================
  100. --- OpenDental/Main Modules/ContrAppt.cs    (revision 7445)
  101. +++ OpenDental/Main Modules/ContrAppt.cs    (working copy)
  102. @@ -2218,11 +2218,16 @@
  103.                 codeNums.Add(procsForSingleApt[p].CodeNum);
  104.             }
  105.             string calcPattern=Appointments.CalculatePattern(apt.ProvNum,apt.ProvHyg,codeNums,true);
  106. -           if(apt.Pattern != calcPattern) {
  107. -               if(!apt.TimeLocked || MsgBox.Show(this,MsgBoxButtons.YesNo,"Appointment length is locked.  Change length for new provider anyway?")) {
  108. -                   apt.Pattern=calcPattern;
  109. -               }
  110. -           }
  111. +            if (!PrefC.GetBool(PrefName.IgnoreProviderSpecificLengths))
  112. +            {
  113. +                if (apt.Pattern != calcPattern)
  114. +                {
  115. +                    if (!apt.TimeLocked || MsgBox.Show(this, MsgBoxButtons.YesNo, "Appointment length is locked.  Change length for new provider anyway?"))
  116. +                    {
  117. +                        apt.Pattern = calcPattern;
  118. +                    }
  119. +                }
  120. +            }
  121.             Appointments.Update(apt,oldApt);
  122.             Procedures.SetProvidersInAppointment(apt,procsForSingleApt);
  123.             ModuleSelected(PatCur.PatNum);
  124. @@ -2342,7 +2347,12 @@
  125.                 }
  126.                 //if no dentist/hygienist is assigned to spot, then keep the original dentist/hygienist without prompt.  All appts must have prov.
  127.                 if((assignedDent!=0 && assignedDent!=aptCur.ProvNum) || (assignedHyg!=0 && assignedHyg!=aptCur.ProvHyg)) {
  128. -                   if(MessageBox.Show(Lan.g(this,"Change provider?"),"",MessageBoxButtons.YesNo)==DialogResult.Yes) {
  129. +                    DialogResult changeProvider = DialogResult.Yes;
  130. +                    if (PrefC.GetBool(PrefName.ConfirmProviderChangeAppointment)) //R W
  131. +                    {
  132. +                        changeProvider = MessageBox.Show(Lan.g(this, "Change provider?"), "", MessageBoxButtons.YesNo);
  133. +                    }
  134. +                   if(changeProvider==DialogResult.Yes) { - modified
  135.                         if(assignedDent!=0) {
  136.                             aptCur.ProvNum=assignedDent;
  137.                         }
  138. @@ -2376,18 +2386,26 @@
  139.                             codeNums.Add(procsForSingleApt[p].CodeNum);
  140.                         }
  141.                         string calcPattern=Appointments.CalculatePattern(aptCur.ProvNum,aptCur.ProvHyg,codeNums,true);
  142. -                       if(aptCur.Pattern != calcPattern) {
  143. -                           if(aptCur.TimeLocked) {
  144. -                               if(MsgBox.Show(this,MsgBoxButtons.YesNo,"Appointment length is locked.  Change length for new provider anyway?")) {
  145. -                                   aptCur.Pattern=calcPattern;
  146. -                               }
  147. -                           }
  148. -                           else {//appt time not locked
  149. -                               if(MsgBox.Show(this,MsgBoxButtons.YesNo,"Change length for new provider?")) {
  150. -                                   aptCur.Pattern=calcPattern;
  151. -                               }
  152. -                           }
  153. -                       }
  154. +                        if (!PrefC.GetBool(PrefName.IgnoreProviderSpecificLengths))
  155. +                        {
  156. +                            if (aptCur.Pattern != calcPattern)
  157. +                            {
  158. +                                if (aptCur.TimeLocked)
  159. +                                {
  160. +                                    if (MsgBox.Show(this, MsgBoxButtons.YesNo, "Appointment length is locked.  Change length for new provider anyway?"))
  161. +                                    {
  162. +                                        aptCur.Pattern = calcPattern;
  163. +                                    }
  164. +                                }
  165. +                                else
  166. +                                {//appt time not locked
  167. +                                    if (MsgBox.Show(this, MsgBoxButtons.YesNo, "Change length for new provider?"))
  168. +                                    {
  169. +                                        aptCur.Pattern = calcPattern;
  170. +                                    }
  171. +                                }
  172. +                            }
  173. +                        }
  174.                     }
  175.                 }
  176.             }
  177. @@ -2976,7 +2994,12 @@
  178.                     }
  179.                 }
  180.                 else {
  181. -                   if(!Security.IsAuthorized(Permissions.AppointmentMove) || !MsgBox.Show(this,true,"Move Appointment?")) {
  182. +                    bool moveAppointment = true;
  183. +                    if (PrefC.GetBool(PrefName.ConfirmMovingAppointment))
  184. +                    {
  185. +                        moveAppointment = MsgBox.Show(this,true,"Move Appointment?");
  186. +                    }
  187. +                   if(!Security.IsAuthorized(Permissions.AppointmentMove) || !moveAppointment) { - modified
  188.                         mouseIsDown = false;
  189.                         boolAptMoved = false;
  190.                         TempApptSingle.Dispose();
  191. @@ -3040,7 +3063,12 @@
  192.                 }
  193.                 //if no dentist/hygenist is assigned to spot, then keep the original dentist/hygenist without prompt.  All appts must have prov.
  194.                 if((assignedDent!=0 && assignedDent!=apt.ProvNum) || (assignedHyg!=0 && assignedHyg!=apt.ProvHyg)) {
  195. -                   if(MessageBox.Show(Lan.g(this,"Change provider?"),"",MessageBoxButtons.YesNo)==DialogResult.Yes) {
  196. +                    DialogResult changeProvider = DialogResult.Yes;
  197. +                    if (PrefC.GetBool(PrefName.ConfirmProviderChangeAppointment)) //R W
  198. +                    {
  199. +                        changeProvider = MessageBox.Show(Lan.g(this, "Change provider?"), "", MessageBoxButtons.YesNo);
  200. +                    }
  201. +                   if(changeProvider==DialogResult.Yes) { - modified
  202.                         if(assignedDent!=0) {//the dentist will only be changed if the spot has a dentist.
  203.                             apt.ProvNum=assignedDent;
  204.                         }
  205. @@ -3073,18 +3101,26 @@
  206.                             codeNums.Add(procsForSingleApt[p].CodeNum);
  207.                         }
  208.                         string calcPattern=Appointments.CalculatePattern(apt.ProvNum,apt.ProvHyg,codeNums,true);
  209. -                       if(apt.Pattern != calcPattern) {
  210. -                           if(apt.TimeLocked) {
  211. -                               if(MsgBox.Show(this,MsgBoxButtons.YesNo,"Appointment length is locked.  Change length for new provider anyway?")) {
  212. -                                   apt.Pattern=calcPattern;
  213. -                               }
  214. -                           }
  215. -                           else {//appt time not locked
  216. -                               if(MsgBox.Show(this,MsgBoxButtons.YesNo,"Change length for new provider?")) {
  217. -                                   apt.Pattern=calcPattern;
  218. -                               }
  219. -                           }
  220. -                       }
  221. +                        if (!PrefC.GetBool(PrefName.IgnoreProviderSpecificLengths))
  222. +                        {
  223. +                            if (apt.Pattern != calcPattern)
  224. +                            {
  225. +                                if (apt.TimeLocked)
  226. +                                {
  227. +                                    if (MsgBox.Show(this, MsgBoxButtons.YesNo, "Appointment length is locked.  Change length for new provider anyway?"))
  228. +                                    {
  229. +                                        apt.Pattern = calcPattern;
  230. +                                    }
  231. +                                }
  232. +                                else
  233. +                                {//appt time not locked
  234. +                                    if (MsgBox.Show(this, MsgBoxButtons.YesNo, "Change length for new provider?"))
  235. +                                    {
  236. +                                        apt.Pattern = calcPattern;
  237. +                                    }
  238. +                                }
  239. +                            }
  240. +                        }
  241.                     }
  242.                 }
  243.             }
  244. Index: OpenDentBusiness/Misc/ConvertDatabases2.cs
  245. ===================================================================
  246. --- OpenDentBusiness/Misc/ConvertDatabases2.cs  (revision 7445)
  247. +++ OpenDentBusiness/Misc/ConvertDatabases2.cs  (working copy)
  248. @@ -8374,6 +8374,15 @@
  249.  
  250.                 command="UPDATE preference SET ValueString = '12.1.0.0' WHERE PrefName = 'DataBaseVersion'";
  251.                 Db.NonQ(command);
  252. +                // Confirm change appointment provider
  253. +                command = "INSERT INTO preference (PrefName, ValueString,Comments) VALUES ('ConfirmProviderChangeAppointment', '1','')";
  254. +                Db.NonQ32(command);
  255. +                // Ignore provider specific lengths when scheduling an appointment
  256. +                command = "INSERT INTO preference (PrefName, ValueString,Comments) VALUES ('IgnoreProviderSpecificLengths', '0','')";
  257. +                Db.NonQ32(command);
  258. +                // Confirm appointment move
  259. +                command = "INSERT INTO preference (PrefName, ValueString,Comments) VALUES ('ConfirmMovingAppointment', '1','')";
  260. +                Db.NonQ32(command);
  261.             }
  262.             //To12_2_0();
  263.         }
  264. Index: OpenDentBusiness/TableTypes/Pref.cs
  265. ===================================================================
  266. --- OpenDentBusiness/TableTypes/Pref.cs (revision 7445)
  267. +++ OpenDentBusiness/TableTypes/Pref.cs (working copy)
  268. @@ -109,7 +109,9 @@
  269.         ClearinghouseDefaultMed,
  270.         ConfirmEmailMessage,
  271.         ConfirmEmailSubject,
  272. +        ConfirmMovingAppointment,
  273.         ConfirmPostcardMessage,
  274. +        ConfirmProviderChangeAppointment,
  275.         ///<summary>FK to definition.DefNum.  Initially 0.</summary>
  276.         ConfirmStatusEmailed,
  277.         CoPay_FeeSchedule_BlankLikeZero,
  278. @@ -165,6 +167,7 @@
  279.         GenericEClaimsForm,
  280.         HL7FolderOut,
  281.         HL7FolderIn,
  282. +        IgnoreProviderSpecificLengths,
  283.         ImagesModuleTreeIsCollapsed,
  284.         ImageStoreIsDatabase,
  285.         ImageWindowingMax,
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement