Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: OpenDental/Forms/FormModuleSetup.cs
- ===================================================================
- --- OpenDental/Forms/FormModuleSetup.cs (revision 7445)
- +++ OpenDental/Forms/FormModuleSetup.cs (working copy)
- @@ -102,6 +102,9 @@
- private CheckBox checkMedicalFeeUsedForNewProcs;
- private bool changed;
- private bool IsLoading;
- + private CheckBox checkConfirmProviderChangeAppointment;
- + private CheckBox checkIgnoreProviderSpecificLengths;
- + private CheckBox checkConfirmMovingAppointment;
- ///<summary></summary>
- public FormModuleSetup() {
- @@ -206,6 +209,9 @@
- this.label9 = new System.Windows.Forms.Label();
- this.butProblemsIndicateNone = new OpenDental.UI.Button();
- this.textProblemsIndicateNone = new System.Windows.Forms.TextBox();
- + this.checkConfirmProviderChangeAppointment = new System.Windows.Forms.CheckBox();
- + this.checkIgnoreProviderSpecificLengths = new System.Windows.Forms.CheckBox();
- + this.checkConfirmMovingAppointment = new System.Windows.Forms.CheckBox();
- this.label8 = new System.Windows.Forms.Label();
- this.tabImages = new System.Windows.Forms.TabPage();
- this.tabManage = new System.Windows.Forms.TabPage();
- @@ -686,6 +692,42 @@
- this.checkAppointmentBubblesDisabled.Text = "Appointment bubble popup disabled";
- this.checkAppointmentBubblesDisabled.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
- this.checkAppointmentBubblesDisabled.UseVisualStyleBackColor = true;
- + //
- + // checkConfirmProviderChangeAppointment
- + //
- + this.checkConfirmProviderChangeAppointment.CheckAlign = System.Drawing.ContentAlignment.MiddleRight;
- + this.checkConfirmProviderChangeAppointment.FlatStyle = System.Windows.Forms.FlatStyle.System;
- + this.checkConfirmProviderChangeAppointment.Location = new System.Drawing.Point(78, 233);
- + this.checkConfirmProviderChangeAppointment.Name = "checkConfirmProviderChangeAppointment";
- + this.checkConfirmProviderChangeAppointment.Size = new System.Drawing.Size(362, 17);
- + //this.checkConfirmProviderChangeAppointment.TabIndex = 67;
- + this.checkConfirmProviderChangeAppointment.Text = "Confirm changing provider when scheduling appointment";
- + this.checkConfirmProviderChangeAppointment.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
- + this.checkConfirmProviderChangeAppointment.UseVisualStyleBackColor = true;
- + //
- + // checkIgnoreProviderSpecificLengths
- + //
- + this.checkIgnoreProviderSpecificLengths.CheckAlign = System.Drawing.ContentAlignment.MiddleRight;
- + this.checkIgnoreProviderSpecificLengths.FlatStyle = System.Windows.Forms.FlatStyle.System;
- + this.checkIgnoreProviderSpecificLengths.Location = new System.Drawing.Point(78, 250);
- + this.checkIgnoreProviderSpecificLengths.Name = "checkIgnoreProviderSpecificLengths";
- + this.checkIgnoreProviderSpecificLengths.Size = new System.Drawing.Size(362, 17);
- + //this.checkIgnoreProviderSpecificLengths.TabIndex = 67;
- + this.checkIgnoreProviderSpecificLengths.Text = "Ignore provider specific lengths";
- + this.checkIgnoreProviderSpecificLengths.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
- + this.checkIgnoreProviderSpecificLengths.UseVisualStyleBackColor = true;
- + //
- + // checkConfirmMovingAppointment
- + //
- + this.checkConfirmMovingAppointment.CheckAlign = System.Drawing.ContentAlignment.MiddleRight;
- + this.checkConfirmMovingAppointment.FlatStyle = System.Windows.Forms.FlatStyle.System;
- + this.checkConfirmMovingAppointment.Location = new System.Drawing.Point(78, 267);
- + this.checkConfirmMovingAppointment.Name = "checkConfirmMovingAppointment";
- + this.checkConfirmMovingAppointment.Size = new System.Drawing.Size(362, 17);
- + //this.checkConfirmMovingAppointment.TabIndex = 67;
- + this.checkConfirmMovingAppointment.Text = "Confirm when moving an appointment";
- + this.checkConfirmMovingAppointment.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
- + this.checkConfirmMovingAppointment.UseVisualStyleBackColor = true;
- //
- // toolTip1
- //
- @@ -853,6 +895,9 @@
- this.tabAppts.Controls.Add(this.label13);
- this.tabAppts.Controls.Add(this.comboSearchBehavior);
- this.tabAppts.Controls.Add(this.checkApptRefreshEveryMinute);
- + this.tabAppts.Controls.Add(this.checkConfirmProviderChangeAppointment);
- + this.tabAppts.Controls.Add(this.checkIgnoreProviderSpecificLengths);
- + this.tabAppts.Controls.Add(this.checkConfirmMovingAppointment);
- this.tabAppts.Controls.Add(this.checkAppointmentBubblesDisabled);
- this.tabAppts.Controls.Add(this.label6);
- this.tabAppts.Controls.Add(this.checkSolidBlockouts);
- @@ -1320,6 +1365,9 @@
- comboSearchBehavior.Items.Add(Enum.GetNames(typeof(SearchBehaviorCriteria))[i]);
- }
- comboSearchBehavior.SelectedIndex=PrefC.GetInt(PrefName.AppointmentSearchBehavior);
- + checkConfirmProviderChangeAppointment.Checked = PrefC.GetBool(PrefName.ConfirmProviderChangeAppointment);
- + checkIgnoreProviderSpecificLengths.Checked = PrefC.GetBool(PrefName.IgnoreProviderSpecificLengths);
- + checkConfirmMovingAppointment.Checked = PrefC.GetBool(PrefName.ConfirmMovingAppointment);
- //Family module-----------------------------------------------------------------------
- //checkMedicalEclaimsEnabled.Checked=PrefC.GetBool(PrefName.MedicalEclaimsEnabled);
- checkInsurancePlansShared.Checked=PrefC.GetBool(PrefName.InsurancePlansShared);
- @@ -1526,6 +1574,9 @@
- | Prefs.UpdateBool(PrefName.ChartAddProcNoRefreshGrid,checkChartAddProcNoRefreshGrid.Checked)
- | Prefs.UpdateInt(PrefName.InsDefaultCobRule,comboCobRule.SelectedIndex)
- | Prefs.UpdateBool(PrefName.MedicalFeeUsedForNewProcs,checkMedicalFeeUsedForNewProcs.Checked)
- + | Prefs.UpdateBool(PrefName.ConfirmProviderChangeAppointment, checkConfirmProviderChangeAppointment.Checked)
- + | Prefs.UpdateBool(PrefName.IgnoreProviderSpecificLengths, checkIgnoreProviderSpecificLengths.Checked)
- + | Prefs.UpdateBool(PrefName.ConfirmMovingAppointment, checkConfirmMovingAppointment.Checked)
- )
- {
- changed=true;
- Index: OpenDental/Main Modules/ContrAppt.cs
- ===================================================================
- --- OpenDental/Main Modules/ContrAppt.cs (revision 7445)
- +++ OpenDental/Main Modules/ContrAppt.cs (working copy)
- @@ -2218,11 +2218,16 @@
- codeNums.Add(procsForSingleApt[p].CodeNum);
- }
- string calcPattern=Appointments.CalculatePattern(apt.ProvNum,apt.ProvHyg,codeNums,true);
- - if(apt.Pattern != calcPattern) {
- - if(!apt.TimeLocked || MsgBox.Show(this,MsgBoxButtons.YesNo,"Appointment length is locked. Change length for new provider anyway?")) {
- - apt.Pattern=calcPattern;
- - }
- - }
- + if (!PrefC.GetBool(PrefName.IgnoreProviderSpecificLengths))
- + {
- + if (apt.Pattern != calcPattern)
- + {
- + if (!apt.TimeLocked || MsgBox.Show(this, MsgBoxButtons.YesNo, "Appointment length is locked. Change length for new provider anyway?"))
- + {
- + apt.Pattern = calcPattern;
- + }
- + }
- + }
- Appointments.Update(apt,oldApt);
- Procedures.SetProvidersInAppointment(apt,procsForSingleApt);
- ModuleSelected(PatCur.PatNum);
- @@ -2342,7 +2347,12 @@
- }
- //if no dentist/hygienist is assigned to spot, then keep the original dentist/hygienist without prompt. All appts must have prov.
- if((assignedDent!=0 && assignedDent!=aptCur.ProvNum) || (assignedHyg!=0 && assignedHyg!=aptCur.ProvHyg)) {
- - if(MessageBox.Show(Lan.g(this,"Change provider?"),"",MessageBoxButtons.YesNo)==DialogResult.Yes) {
- + DialogResult changeProvider = DialogResult.Yes;
- + if (PrefC.GetBool(PrefName.ConfirmProviderChangeAppointment)) //R W
- + {
- + changeProvider = MessageBox.Show(Lan.g(this, "Change provider?"), "", MessageBoxButtons.YesNo);
- + }
- + if(changeProvider==DialogResult.Yes) { - modified
- if(assignedDent!=0) {
- aptCur.ProvNum=assignedDent;
- }
- @@ -2376,18 +2386,26 @@
- codeNums.Add(procsForSingleApt[p].CodeNum);
- }
- string calcPattern=Appointments.CalculatePattern(aptCur.ProvNum,aptCur.ProvHyg,codeNums,true);
- - if(aptCur.Pattern != calcPattern) {
- - if(aptCur.TimeLocked) {
- - if(MsgBox.Show(this,MsgBoxButtons.YesNo,"Appointment length is locked. Change length for new provider anyway?")) {
- - aptCur.Pattern=calcPattern;
- - }
- - }
- - else {//appt time not locked
- - if(MsgBox.Show(this,MsgBoxButtons.YesNo,"Change length for new provider?")) {
- - aptCur.Pattern=calcPattern;
- - }
- - }
- - }
- + if (!PrefC.GetBool(PrefName.IgnoreProviderSpecificLengths))
- + {
- + if (aptCur.Pattern != calcPattern)
- + {
- + if (aptCur.TimeLocked)
- + {
- + if (MsgBox.Show(this, MsgBoxButtons.YesNo, "Appointment length is locked. Change length for new provider anyway?"))
- + {
- + aptCur.Pattern = calcPattern;
- + }
- + }
- + else
- + {//appt time not locked
- + if (MsgBox.Show(this, MsgBoxButtons.YesNo, "Change length for new provider?"))
- + {
- + aptCur.Pattern = calcPattern;
- + }
- + }
- + }
- + }
- }
- }
- }
- @@ -2976,7 +2994,12 @@
- }
- }
- else {
- - if(!Security.IsAuthorized(Permissions.AppointmentMove) || !MsgBox.Show(this,true,"Move Appointment?")) {
- + bool moveAppointment = true;
- + if (PrefC.GetBool(PrefName.ConfirmMovingAppointment))
- + {
- + moveAppointment = MsgBox.Show(this,true,"Move Appointment?");
- + }
- + if(!Security.IsAuthorized(Permissions.AppointmentMove) || !moveAppointment) { - modified
- mouseIsDown = false;
- boolAptMoved = false;
- TempApptSingle.Dispose();
- @@ -3040,7 +3063,12 @@
- }
- //if no dentist/hygenist is assigned to spot, then keep the original dentist/hygenist without prompt. All appts must have prov.
- if((assignedDent!=0 && assignedDent!=apt.ProvNum) || (assignedHyg!=0 && assignedHyg!=apt.ProvHyg)) {
- - if(MessageBox.Show(Lan.g(this,"Change provider?"),"",MessageBoxButtons.YesNo)==DialogResult.Yes) {
- + DialogResult changeProvider = DialogResult.Yes;
- + if (PrefC.GetBool(PrefName.ConfirmProviderChangeAppointment)) //R W
- + {
- + changeProvider = MessageBox.Show(Lan.g(this, "Change provider?"), "", MessageBoxButtons.YesNo);
- + }
- + if(changeProvider==DialogResult.Yes) { - modified
- if(assignedDent!=0) {//the dentist will only be changed if the spot has a dentist.
- apt.ProvNum=assignedDent;
- }
- @@ -3073,18 +3101,26 @@
- codeNums.Add(procsForSingleApt[p].CodeNum);
- }
- string calcPattern=Appointments.CalculatePattern(apt.ProvNum,apt.ProvHyg,codeNums,true);
- - if(apt.Pattern != calcPattern) {
- - if(apt.TimeLocked) {
- - if(MsgBox.Show(this,MsgBoxButtons.YesNo,"Appointment length is locked. Change length for new provider anyway?")) {
- - apt.Pattern=calcPattern;
- - }
- - }
- - else {//appt time not locked
- - if(MsgBox.Show(this,MsgBoxButtons.YesNo,"Change length for new provider?")) {
- - apt.Pattern=calcPattern;
- - }
- - }
- - }
- + if (!PrefC.GetBool(PrefName.IgnoreProviderSpecificLengths))
- + {
- + if (apt.Pattern != calcPattern)
- + {
- + if (apt.TimeLocked)
- + {
- + if (MsgBox.Show(this, MsgBoxButtons.YesNo, "Appointment length is locked. Change length for new provider anyway?"))
- + {
- + apt.Pattern = calcPattern;
- + }
- + }
- + else
- + {//appt time not locked
- + if (MsgBox.Show(this, MsgBoxButtons.YesNo, "Change length for new provider?"))
- + {
- + apt.Pattern = calcPattern;
- + }
- + }
- + }
- + }
- }
- }
- }
- Index: OpenDentBusiness/Misc/ConvertDatabases2.cs
- ===================================================================
- --- OpenDentBusiness/Misc/ConvertDatabases2.cs (revision 7445)
- +++ OpenDentBusiness/Misc/ConvertDatabases2.cs (working copy)
- @@ -8374,6 +8374,15 @@
- command="UPDATE preference SET ValueString = '12.1.0.0' WHERE PrefName = 'DataBaseVersion'";
- Db.NonQ(command);
- + // Confirm change appointment provider
- + command = "INSERT INTO preference (PrefName, ValueString,Comments) VALUES ('ConfirmProviderChangeAppointment', '1','')";
- + Db.NonQ32(command);
- + // Ignore provider specific lengths when scheduling an appointment
- + command = "INSERT INTO preference (PrefName, ValueString,Comments) VALUES ('IgnoreProviderSpecificLengths', '0','')";
- + Db.NonQ32(command);
- + // Confirm appointment move
- + command = "INSERT INTO preference (PrefName, ValueString,Comments) VALUES ('ConfirmMovingAppointment', '1','')";
- + Db.NonQ32(command);
- }
- //To12_2_0();
- }
- Index: OpenDentBusiness/TableTypes/Pref.cs
- ===================================================================
- --- OpenDentBusiness/TableTypes/Pref.cs (revision 7445)
- +++ OpenDentBusiness/TableTypes/Pref.cs (working copy)
- @@ -109,7 +109,9 @@
- ClearinghouseDefaultMed,
- ConfirmEmailMessage,
- ConfirmEmailSubject,
- + ConfirmMovingAppointment,
- ConfirmPostcardMessage,
- + ConfirmProviderChangeAppointment,
- ///<summary>FK to definition.DefNum. Initially 0.</summary>
- ConfirmStatusEmailed,
- CoPay_FeeSchedule_BlankLikeZero,
- @@ -165,6 +167,7 @@
- GenericEClaimsForm,
- HL7FolderOut,
- HL7FolderIn,
- + IgnoreProviderSpecificLengths,
- ImagesModuleTreeIsCollapsed,
- ImageStoreIsDatabase,
- ImageWindowingMax,
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement