示例#1
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.butPrint      = new OpenDental.UI.Button();
     this.gridMain      = new OpenDental.UI.ODGrid();
     this.butClose      = new OpenDental.UI.Button();
     this.checkShowAll  = new System.Windows.Forms.CheckBox();
     this.checkIgnore   = new System.Windows.Forms.CheckBox();
     this.butExportGrid = new OpenDental.UI.Button();
     this.SuspendLayout();
     //
     // butPrint
     //
     this.butPrint.AdjustImageLocation = new System.Drawing.Point(0, 0);
     this.butPrint.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.butPrint.Autosize     = true;
     this.butPrint.BtnShape     = OpenDental.UI.enumType.BtnShape.Rectangle;
     this.butPrint.BtnStyle     = OpenDental.UI.enumType.XPStyle.Silver;
     this.butPrint.CornerRadius = 4F;
     this.butPrint.Image        = global::OpenDental.Properties.Resources.butPrint;
     this.butPrint.ImageAlign   = System.Drawing.ContentAlignment.MiddleLeft;
     this.butPrint.Location     = new System.Drawing.Point(519, 660);
     this.butPrint.Name         = "butPrint";
     this.butPrint.Size         = new System.Drawing.Size(86, 24);
     this.butPrint.TabIndex     = 22;
     this.butPrint.Text         = "Print";
     this.butPrint.Click       += new System.EventHandler(this.butPrint_Click);
     //
     // gridMain
     //
     this.gridMain.AllowSortingByColumn = true;
     this.gridMain.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                   | System.Windows.Forms.AnchorStyles.Left)
                                                                  | System.Windows.Forms.AnchorStyles.Right)));
     this.gridMain.HasAddButton        = false;
     this.gridMain.HasMultilineHeaders = false;
     this.gridMain.HeaderHeight        = 15;
     this.gridMain.HScrollVisible      = false;
     this.gridMain.Location            = new System.Drawing.Point(12, 12);
     this.gridMain.Name            = "gridMain";
     this.gridMain.ScrollValue     = 0;
     this.gridMain.Size            = new System.Drawing.Size(726, 642);
     this.gridMain.TabIndex        = 21;
     this.gridMain.Title           = "";
     this.gridMain.TitleHeight     = 18;
     this.gridMain.TranslationName = "TableTimeCard";
     //
     // butClose
     //
     this.butClose.AdjustImageLocation = new System.Drawing.Point(0, 0);
     this.butClose.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.butClose.Autosize     = true;
     this.butClose.BtnShape     = OpenDental.UI.enumType.BtnShape.Rectangle;
     this.butClose.BtnStyle     = OpenDental.UI.enumType.XPStyle.Silver;
     this.butClose.CornerRadius = 4F;
     this.butClose.Location     = new System.Drawing.Point(663, 660);
     this.butClose.Name         = "butClose";
     this.butClose.Size         = new System.Drawing.Size(75, 24);
     this.butClose.TabIndex     = 20;
     this.butClose.Text         = "&Close";
     this.butClose.Click       += new System.EventHandler(this.butClose_Click);
     //
     // checkShowAll
     //
     this.checkShowAll.AutoSize = true;
     this.checkShowAll.Location = new System.Drawing.Point(12, 665);
     this.checkShowAll.Name     = "checkShowAll";
     this.checkShowAll.Size     = new System.Drawing.Size(67, 17);
     this.checkShowAll.TabIndex = 23;
     this.checkShowAll.Text     = "Show All";
     this.checkShowAll.UseVisualStyleBackColor = true;
     this.checkShowAll.CheckedChanged         += new System.EventHandler(this.checkShowAll_CheckedChanged);
     //
     // checkIgnore
     //
     this.checkIgnore.AutoSize   = true;
     this.checkIgnore.Checked    = true;
     this.checkIgnore.CheckState = System.Windows.Forms.CheckState.Checked;
     this.checkIgnore.Location   = new System.Drawing.Point(85, 665);
     this.checkIgnore.Name       = "checkIgnore";
     this.checkIgnore.Size       = new System.Drawing.Size(124, 17);
     this.checkIgnore.TabIndex   = 24;
     this.checkIgnore.Text       = "Ignore current month";
     this.checkIgnore.UseVisualStyleBackColor = true;
     this.checkIgnore.CheckedChanged         += new System.EventHandler(this.checkIgnore_CheckedChanged);
     //
     // butExportGrid
     //
     this.butExportGrid.AdjustImageLocation = new System.Drawing.Point(0, 0);
     this.butExportGrid.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.butExportGrid.Autosize     = true;
     this.butExportGrid.BtnShape     = OpenDental.UI.enumType.BtnShape.Rectangle;
     this.butExportGrid.BtnStyle     = OpenDental.UI.enumType.XPStyle.Silver;
     this.butExportGrid.CornerRadius = 4F;
     this.butExportGrid.ImageAlign   = System.Drawing.ContentAlignment.MiddleLeft;
     this.butExportGrid.Location     = new System.Drawing.Point(431, 660);
     this.butExportGrid.Name         = "butExportGrid";
     this.butExportGrid.Size         = new System.Drawing.Size(82, 24);
     this.butExportGrid.TabIndex     = 128;
     this.butExportGrid.Text         = "Export Grid";
     this.butExportGrid.Click       += new System.EventHandler(this.butExportGrid_Click);
     //
     // FormTimeCardBenefitRp
     //
     this.ClientSize = new System.Drawing.Size(750, 696);
     this.Controls.Add(this.butExportGrid);
     this.Controls.Add(this.checkIgnore);
     this.Controls.Add(this.checkShowAll);
     this.Controls.Add(this.butPrint);
     this.Controls.Add(this.gridMain);
     this.Controls.Add(this.butClose);
     this.Name  = "FormTimeCardBenefitRp";
     this.Text  = "Benefit Eligibility Letters Report";
     this.Load += new System.EventHandler(this.FormTimeCardBenefitRp_Load);
     this.ResumeLayout(false);
     this.PerformLayout();
 }
示例#2
0
        public static bool AddDef(ODGrid gridDefs, DefCatOptions selectedDefCatOpt)
        {
            Def defCur = new Def();

            defCur.IsNew = true;
            int itemOrder = 0;

            if (Defs.GetDefsForCategory(selectedDefCatOpt.DefCat).Count > 0)
            {
                itemOrder = Defs.GetDefsForCategory(selectedDefCatOpt.DefCat).Max(x => x.ItemOrder) + 1;
            }
            defCur.ItemOrder = itemOrder;
            defCur.Category  = selectedDefCatOpt.DefCat;
            defCur.ItemName  = "";
            defCur.ItemValue = "";          //necessary
            if (selectedDefCatOpt.DefCat == DefCat.InsurancePaymentType)
            {
                defCur.ItemValue = "N";
            }
            switch (selectedDefCatOpt.DefCat)
            {
            case DefCat.BlockoutTypes:
                FormDefEditBlockout FormDEB = new FormDefEditBlockout(defCur);
                FormDEB.IsNew = true;
                if (FormDEB.ShowDialog() != DialogResult.OK)
                {
                    return(false);
                }
                break;

            case DefCat.ImageCats:
                FormDefEditImages FormDEI = new FormDefEditImages(defCur);
                FormDEI.IsNew = true;
                FormDEI.ShowDialog();
                if (FormDEI.DialogResult != DialogResult.OK)
                {
                    return(false);
                }
                break;

            case DefCat.WebSchedNewPatApptTypes:
                FormDefEditWSNPApptTypes FormDEWSNPAT = new FormDefEditWSNPApptTypes(defCur);
                if (FormDEWSNPAT.ShowDialog() != DialogResult.OK)
                {
                    return(false);
                }
                break;

            default:
                List <Def> listCurrentDefs = new List <Def>();
                foreach (ODGridRow rowCur in gridDefs.Rows)
                {
                    listCurrentDefs.Add((Def)rowCur.Tag);
                }
                FormDefEdit FormDE = new FormDefEdit(defCur, listCurrentDefs, selectedDefCatOpt);
                FormDE.IsNew = true;
                FormDE.ShowDialog();
                if (FormDE.DialogResult != DialogResult.OK)
                {
                    return(false);
                }
                break;
            }
            return(true);
        }
示例#3
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormHL7Defs));
     this.grid1        = new OpenDental.UI.ODGrid();
     this.grid2        = new OpenDental.UI.ODGrid();
     this.butDuplicate = new OpenDental.UI.Button();
     this.butCopy      = new OpenDental.UI.Button();
     this.butClose     = new OpenDental.UI.Button();
     this.butHistory   = new OpenDental.UI.Button();
     this.SuspendLayout();
     //
     // grid1
     //
     this.grid1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                               | System.Windows.Forms.AnchorStyles.Left)));
     this.grid1.Location         = new System.Drawing.Point(12, 38);
     this.grid1.Name             = "grid1";
     this.grid1.Size             = new System.Drawing.Size(470, 559);
     this.grid1.TabIndex         = 14;
     this.grid1.Title            = "Internal";
     this.grid1.TranslationName  = "TableInternal";
     this.grid1.CellDoubleClick += new OpenDental.UI.ODGridClickEventHandler(this.grid1_CellDoubleClick);
     //
     // grid2
     //
     this.grid2.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                | System.Windows.Forms.AnchorStyles.Left)
                                                               | System.Windows.Forms.AnchorStyles.Right)));
     this.grid2.Location         = new System.Drawing.Point(491, 38);
     this.grid2.Name             = "grid2";
     this.grid2.Size             = new System.Drawing.Size(470, 559);
     this.grid2.TabIndex         = 12;
     this.grid2.Title            = "Custom";
     this.grid2.TranslationName  = "TableCustom";
     this.grid2.CellDoubleClick += new OpenDental.UI.ODGridClickEventHandler(this.grid2_CellDoubleClick);
     //
     // butDuplicate
     //
     this.butDuplicate.Anchor     = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.butDuplicate.Image      = global::OpenDental.Properties.Resources.Add;
     this.butDuplicate.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
     this.butDuplicate.Location   = new System.Drawing.Point(737, 607);
     this.butDuplicate.Name       = "butDuplicate";
     this.butDuplicate.Size       = new System.Drawing.Size(89, 24);
     this.butDuplicate.TabIndex   = 20;
     this.butDuplicate.Text       = "Duplicate";
     this.butDuplicate.Click     += new System.EventHandler(this.butDuplicate_Click);
     //
     // butCopy
     //
     this.butCopy.Anchor     = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.butCopy.Image      = global::OpenDental.Properties.Resources.Right;
     this.butCopy.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
     this.butCopy.Location   = new System.Drawing.Point(333, 607);
     this.butCopy.Name       = "butCopy";
     this.butCopy.Size       = new System.Drawing.Size(75, 24);
     this.butCopy.TabIndex   = 15;
     this.butCopy.Text       = "Copy";
     this.butCopy.Click     += new System.EventHandler(this.butCopy_Click);
     //
     // butClose
     //
     this.butClose.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.butClose.Location = new System.Drawing.Point(887, 607);
     this.butClose.Name     = "butClose";
     this.butClose.Size     = new System.Drawing.Size(75, 24);
     this.butClose.TabIndex = 0;
     this.butClose.Text     = "&Close";
     this.butClose.Click   += new System.EventHandler(this.butClose_Click);
     //
     // butHistory
     //
     this.butHistory.Anchor   = System.Windows.Forms.AnchorStyles.Top;
     this.butHistory.Location = new System.Drawing.Point(38, 8);
     this.butHistory.Name     = "butHistory";
     this.butHistory.Size     = new System.Drawing.Size(75, 24);
     this.butHistory.TabIndex = 21;
     this.butHistory.Text     = "History";
     this.butHistory.Click   += new System.EventHandler(this.butHistory_Click);
     //
     // FormHL7Defs
     //
     this.ClientSize = new System.Drawing.Size(974, 641);
     this.Controls.Add(this.butHistory);
     this.Controls.Add(this.butDuplicate);
     this.Controls.Add(this.butCopy);
     this.Controls.Add(this.grid1);
     this.Controls.Add(this.grid2);
     this.Controls.Add(this.butClose);
     this.Icon          = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.MaximizeBox   = false;
     this.MinimizeBox   = false;
     this.Name          = "FormHL7Defs";
     this.ShowInTaskbar = false;
     this.Text          = "HL7 Defs";
     this.FormClosing  += new System.Windows.Forms.FormClosingEventHandler(this.FormHL7Defs_FormClosing);
     this.Load         += new System.EventHandler(this.FormHL7Defs_Load);
     this.ResumeLayout(false);
 }
示例#4
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ComboBoxMulti));
     this.textMain = new System.Windows.Forms.TextBox();
     this.butDrop  = new System.Windows.Forms.Button();
     this.panel1   = new System.Windows.Forms.Panel();
     this.gridMain = new OpenDental.UI.ODGrid();
     this.panel1.SuspendLayout();
     this.SuspendLayout();
     //
     // textMain
     //
     this.textMain.BackColor   = System.Drawing.Color.White;
     this.textMain.BorderStyle = System.Windows.Forms.BorderStyle.None;
     this.textMain.Location    = new System.Drawing.Point(2, 4);
     this.textMain.Name        = "textMain";
     this.textMain.ReadOnly    = true;
     this.textMain.Size        = new System.Drawing.Size(97, 13);
     this.textMain.TabIndex    = 2;
     //
     // butDrop
     //
     this.butDrop.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.butDrop.BackColor = System.Drawing.Color.White;
     this.butDrop.FlatAppearance.BorderColor        = System.Drawing.Color.White;
     this.butDrop.FlatAppearance.BorderSize         = 0;
     this.butDrop.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Silver;
     this.butDrop.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Gainsboro;
     this.butDrop.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
     this.butDrop.Image     = global::OpenDental.Properties.Resources.downArrowWinForm;
     this.butDrop.Location  = new System.Drawing.Point(102, 1);
     this.butDrop.Name      = "butDrop";
     this.butDrop.Size      = new System.Drawing.Size(17, 19);
     this.butDrop.TabIndex  = 4;
     this.butDrop.UseVisualStyleBackColor = true;
     this.butDrop.Click += new System.EventHandler(this.dropButton_Click);
     //
     // panel1
     //
     this.panel1.Location    = new System.Drawing.Point(0, 0);
     this.panel1.Name        = "panel1";
     this.panel1.Size        = new System.Drawing.Size(120, 21);
     this.panel1.TabIndex    = 5;
     this.panel1.BorderStyle = BorderStyle.FixedSingle;
     //
     // gridMain
     //
     this.gridMain.Anchor           = System.Windows.Forms.AnchorStyles.None;
     this.gridMain.AutoSize         = false;
     this.gridMain.Location         = new System.Drawing.Point(0, 18);
     this.gridMain.Name             = "gridMain";
     this.gridMain.ColorSelectedRow = System.Drawing.SystemColors.MenuHighlight;
     this.gridMain.SelectionMode    = OpenDental.UI.GridSelectionMode.MultiExtended;
     this.gridMain.Size             = new System.Drawing.Size(120, 70);
     this.gridMain.TabIndex         = 3;
     this.gridMain.Title            = null;
     this.gridMain.TranslationName  = "Misc";
     this.gridMain.HeadersVisible   = false;
     this.gridMain.TitleVisible     = false;
     this.gridMain.Visible          = false;
     this.gridMain.Margin           = new Padding(0);
     this.gridMain.Padding          = new Padding(0);
     //
     // ComboBoxMulti
     //
     this.BackColor = System.Drawing.SystemColors.Window;
     this.Controls.Add(this.butDrop);
     this.Controls.Add(this.textMain);
     this.Controls.Add(this.panel1);
     this.Controls.Add(this.gridMain);
     this.Name    = "ComboBoxMulti";
     this.Size    = new System.Drawing.Size(120, 21);
     this.Load   += new System.EventHandler(this.ComboBoxMulti_Load);
     this.Layout += new System.Windows.Forms.LayoutEventHandler(this.ComboBoxMulti_Layout);
     this.Leave  += new System.EventHandler(this.ComboBoxMulti_Leave);
     this.panel1.ResumeLayout(false);
     this.ResumeLayout(false);
     this.PerformLayout();
 }
        private void pd_PrintPage(object sender, PrintPageEventArgs e)
        {
            Rectangle bounds = e.MarginBounds;
            Graphics  g      = e.Graphics;
            int       y      = bounds.Top;
            int       midX   = bounds.X + bounds.Width / 2;

            #region printHeading
            if (_gridPrintProgress == EraProcPrintingProgress.DocumentHeader)           //Only print the document heading on the first page.
            {
                string text;
                using (Font font = new Font("Arial", 13, FontStyle.Bold)) {
                    _yPosCur = 0;
                    text     = Lan.g(this, "835 Procedure:") + ((_proc.ProcNum == 0) ? "" : " " + _proc.ProcNum);
                    g.DrawString(text, font, Brushes.Black, midX - g.MeasureString(text, font).Width / 2, y);
                    y   += 25;
                    text = Lan.g(this, "Patient:") + " " + _proc.ClaimPaid.PatientName;
                    g.DrawString(text, font, Brushes.Black, midX - g.MeasureString(text, font).Width / 2, y);
                    y += 25;
                }
                using (Font font = new Font("Arial", 9, FontStyle.Bold)) {
                    text = Lan.g(this, "Proc Adjudicated:") + " " + textProcAdjudicated.Text + "\t\t" + Lan.g(this, "Date Service:") + " " + textDateService.Text;
                    g.DrawString(text, font, Brushes.Black, midX - g.MeasureString(text, font).Width / 2, y);
                    y   += 20;
                    text = Lan.g(this, "Proc Submitted:") + " " + textProcSubmitted.Text + "\t\t" + Lan.g(this, "Ins Paid:") + " " + textInsPaid.Text;
                    g.DrawString(text, font, Brushes.Black, midX - g.MeasureString(text, font).Width / 2, y);
                    y   += 25;                  //Extra 5 pixels to visually group grid header with grid.
                    text = groupBalancing.Text; //Translated
                    g.DrawString(text, font, Brushes.Black, midX - g.MeasureString(text, font).Width / 2, y);
                    y += 20;
                }
                #region In memory balancing grid
                //int colWidth=gridProcedureAdjustments.WidthAllColumns/6;
                ODGrid grid = new ODGrid();
                grid.Width = gridProcedureAdjustments.Width;
                grid.BeginUpdate();
                grid.ListGridColumns.Add(new GridColumn(Lan.g(this, "Proc Fee") + " -", -1));
                grid.ListGridColumns.Add(new GridColumn(Lan.g(this, "Patient Resp Sum") + " -", -1));
                grid.ListGridColumns.Add(new GridColumn(Lan.g(this, "Contractual Oblig. Sum") + " -", -1));
                grid.ListGridColumns.Add(new GridColumn(Lan.g(this, "Payor Reduction Sum") + " -", -1));
                grid.ListGridColumns.Add(new GridColumn(Lan.g(this, "Other Adjustment Sum") + " =", -1));
                grid.ListGridColumns.Add(new GridColumn(Lan.g(this, "Ins Paid Calc"), -1));
                //grid.ComputeColumns();
                grid.ListGridRows.Add(new GridRow(textProcFee.Text,
                                                  textPatRespSum.Text,
                                                  textContractualObligSum.Text,
                                                  textPayorReductionSum.Text,
                                                  textOtherAdjustmentSum.Text,
                                                  textInsPaidCalc.Text)
                                      );
                grid.EndUpdate();
                #endregion
                y = grid.PrintPage(g, _gridPageCur, bounds, y, true);
                grid.Dispose();
                TransitionPrintState();
                _yPosCur = y;
            }
            #endregion
            #region GridProcedureAdjustments
            if (_gridPrintProgress == EraProcPrintingProgress.GridProcAdjHeader)           //Only draw header once.
            {
                PrintGridHeaderHelper(midX, g, gridProcedureAdjustments.Title);
            }
            if (_gridPrintProgress == EraProcPrintingProgress.GridProcAdj)
            {
                PrintGridHelper(gridProcedureAdjustments, bounds, g, e);
            }
            #endregion
            #region GridRemarks
            if (_gridPrintProgress == EraProcPrintingProgress.GridRemarksHeader)           //Only draw header once
            {
                PrintGridHeaderHelper(midX, g, gridRemarks.Title);
            }
            if (_gridPrintProgress == EraProcPrintingProgress.GridRemarks)
            {
                PrintGridHelper(gridRemarks, bounds, g, e);
            }
            #endregion
            #region GridSupplementalInfo
            if (_gridPrintProgress == EraProcPrintingProgress.GridSupplementalHeader)           //Only draw header once
            {
                PrintGridHeaderHelper(midX, g, gridSupplementalInfo.Title);
            }
            if (_gridPrintProgress == EraProcPrintingProgress.GridSupplemental)
            {
                PrintGridHelper(gridSupplementalInfo, bounds, g, e);
            }
            #endregion
            //g.Dispose();//dg System provided object which will be disposed by the system.
        }
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormPlansForFamily));
     this.butClose = new OpenDental.UI.Button();
     this.gridMain = new OpenDental.UI.ODGrid();
     this.label1   = new System.Windows.Forms.Label();
     this.SuspendLayout();
     //
     // butClose
     //
     this.butClose.AdjustImageLocation = new System.Drawing.Point(0, 0);
     this.butClose.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.butClose.Autosize     = true;
     this.butClose.BtnShape     = OpenDental.UI.enumType.BtnShape.Rectangle;
     this.butClose.BtnStyle     = OpenDental.UI.enumType.XPStyle.Silver;
     this.butClose.CornerRadius = 4F;
     this.butClose.Location     = new System.Drawing.Point(418, 249);
     this.butClose.Name         = "butClose";
     this.butClose.Size         = new System.Drawing.Size(75, 26);
     this.butClose.TabIndex     = 0;
     this.butClose.Text         = "&Close";
     this.butClose.Click       += new System.EventHandler(this.butClose_Click);
     //
     // gridMain
     //
     this.gridMain.HScrollVisible   = false;
     this.gridMain.Location         = new System.Drawing.Point(34, 57);
     this.gridMain.Name             = "gridMain";
     this.gridMain.ScrollValue      = 0;
     this.gridMain.Size             = new System.Drawing.Size(459, 150);
     this.gridMain.TabIndex         = 1;
     this.gridMain.Title            = "Insurance Plans for Family";
     this.gridMain.TranslationName  = "TableInsPlans";
     this.gridMain.CellDoubleClick += new OpenDental.UI.ODGridClickEventHandler(this.gridMain_CellDoubleClick);
     //
     // label1
     //
     this.label1.Location = new System.Drawing.Point(31, 9);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(462, 35);
     this.label1.TabIndex = 2;
     this.label1.Text     = "This is a list of all insurance plans for the family.  The main purpose is to vie" +
                            "w inactive plans that have been dropped.";
     this.label1.TextAlign = System.Drawing.ContentAlignment.BottomLeft;
     //
     // FormPlansForFamily
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(545, 300);
     this.Controls.Add(this.label1);
     this.Controls.Add(this.gridMain);
     this.Controls.Add(this.butClose);
     this.Icon          = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.MaximizeBox   = false;
     this.MinimizeBox   = false;
     this.Name          = "FormPlansForFamily";
     this.ShowInTaskbar = false;
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text          = "Insurance Plans for Family";
     this.Load         += new System.EventHandler(this.FormPlansForFamily_Load);
     this.ResumeLayout(false);
 }
示例#7
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormLaboratories));
     this.butClose = new OpenDental.UI.Button();
     this.gridMain = new OpenDental.UI.ODGrid();
     this.butAdd   = new OpenDental.UI.Button();
     this.SuspendLayout();
     //
     // butClose
     //
     this.butClose.AdjustImageLocation = new System.Drawing.Point(0, 0);
     this.butClose.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.butClose.Autosize     = true;
     this.butClose.BtnShape     = OpenDental.UI.enumType.BtnShape.Rectangle;
     this.butClose.BtnStyle     = OpenDental.UI.enumType.XPStyle.Silver;
     this.butClose.CornerRadius = 4F;
     this.butClose.Location     = new System.Drawing.Point(592, 469);
     this.butClose.Name         = "butClose";
     this.butClose.Size         = new System.Drawing.Size(75, 26);
     this.butClose.TabIndex     = 0;
     this.butClose.Text         = "&Close";
     this.butClose.Click       += new System.EventHandler(this.butClose_Click);
     //
     // gridMain
     //
     this.gridMain.HScrollVisible   = false;
     this.gridMain.Location         = new System.Drawing.Point(33, 40);
     this.gridMain.Name             = "gridMain";
     this.gridMain.ScrollValue      = 0;
     this.gridMain.Size             = new System.Drawing.Size(634, 334);
     this.gridMain.TabIndex         = 1;
     this.gridMain.Title            = "Dental Labs";
     this.gridMain.TranslationName  = "TableLabs";
     this.gridMain.CellDoubleClick += new OpenDental.UI.ODGridClickEventHandler(this.gridMain_CellDoubleClick);
     //
     // butAdd
     //
     this.butAdd.AdjustImageLocation = new System.Drawing.Point(0, 0);
     this.butAdd.Autosize            = true;
     this.butAdd.BtnShape            = OpenDental.UI.enumType.BtnShape.Rectangle;
     this.butAdd.BtnStyle            = OpenDental.UI.enumType.XPStyle.Silver;
     this.butAdd.CornerRadius        = 4F;
     this.butAdd.Image      = global::OpenDental.Properties.Resources.Add;
     this.butAdd.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
     this.butAdd.Location   = new System.Drawing.Point(592, 394);
     this.butAdd.Name       = "butAdd";
     this.butAdd.Size       = new System.Drawing.Size(75, 26);
     this.butAdd.TabIndex   = 2;
     this.butAdd.Text       = "&Add";
     this.butAdd.Click     += new System.EventHandler(this.butAdd_Click);
     //
     // FormLaboratories
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(719, 520);
     this.Controls.Add(this.butAdd);
     this.Controls.Add(this.gridMain);
     this.Controls.Add(this.butClose);
     this.Icon          = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.MaximizeBox   = false;
     this.MinimizeBox   = false;
     this.Name          = "FormLaboratories";
     this.ShowInTaskbar = false;
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text          = "Laboratories";
     this.FormClosing  += new System.Windows.Forms.FormClosingEventHandler(this.FormLaboratories_FormClosing);
     this.Load         += new System.EventHandler(this.FormLaboratories_Load);
     this.ResumeLayout(false);
 }
示例#8
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ComboBoxMulti));
     this.textMain          = new System.Windows.Forms.TextBox();
     this._imageListButDrop = new System.Windows.Forms.ImageList(this.components);
     this.butDrop           = new OpenDental.UI.Button();
     this.panel1            = new System.Windows.Forms.Panel();
     this.gridMain          = new OpenDental.UI.ODGrid();
     this.panel1.SuspendLayout();
     this.SuspendLayout();
     //
     // textMain
     //
     this.textMain.BackColor   = System.Drawing.Color.White;
     this.textMain.BorderStyle = System.Windows.Forms.BorderStyle.None;
     this.textMain.Location    = new System.Drawing.Point(2, 4);
     this.textMain.Name        = "textMain";
     this.textMain.ReadOnly    = true;
     this.textMain.Size        = new System.Drawing.Size(97, 13);
     this.textMain.TabIndex    = 2;
     //
     // imageList1
     //
     this._imageListButDrop.ImageStream      = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream")));
     this._imageListButDrop.TransparentColor = System.Drawing.Color.Transparent;
     this._imageListButDrop.Images.SetKeyName(0, "arrowDownTriangle.gif");
     this._imageListButDrop.Images.SetKeyName(1, "arrowUpTriangle.gif");
     //
     // butDrop
     //
     this.butDrop.AdjustImageLocation = new System.Drawing.Point(0, 0);
     this.butDrop.Anchor                  = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.butDrop.Autosize                = true;
     this.butDrop.BtnShape                = OpenDental.UI.enumType.BtnShape.Rectangle;
     this.butDrop.BtnStyle                = OpenDental.UI.enumType.XPStyle.Silver;
     this.butDrop.CornerRadius            = 4F;
     this.butDrop.ImageIndex              = 0;
     this.butDrop.ImageList               = this._imageListButDrop;
     this.butDrop.Location                = new System.Drawing.Point(102, 1);
     this.butDrop.Name                    = "butDrop";
     this.butDrop.Size                    = new System.Drawing.Size(17, 19);
     this.butDrop.TabIndex                = 4;
     this.butDrop.UseVisualStyleBackColor = true;
     this.butDrop.Click                  += new System.EventHandler(this.dropButton_Click);
     //
     // panel1
     //
     this.panel1.Location    = new System.Drawing.Point(0, 0);
     this.panel1.Name        = "panel1";
     this.panel1.Size        = new System.Drawing.Size(120, 21);
     this.panel1.TabIndex    = 5;
     this.panel1.BorderStyle = BorderStyle.FixedSingle;
     //
     // gridMain
     //
     this.gridMain.Anchor              = System.Windows.Forms.AnchorStyles.None;
     this.gridMain.AutoSize            = false;
     this.gridMain.HasAddButton        = false;
     this.gridMain.HasMultilineHeaders = false;
     this.gridMain.HScrollVisible      = false;
     this.gridMain.Location            = new System.Drawing.Point(0, 18);
     this.gridMain.Name             = "gridMain";
     this.gridMain.ScrollValue      = 0;
     this.gridMain.SelectedRowColor = System.Drawing.SystemColors.MenuHighlight;
     this.gridMain.SelectionMode    = OpenDental.UI.GridSelectionMode.MultiExtended;
     this.gridMain.Size             = new System.Drawing.Size(120, 70);
     this.gridMain.TabIndex         = 3;
     this.gridMain.Title            = null;
     this.gridMain.TranslationName  = "Misc";
     this.gridMain.HeaderHeight     = 0;
     this.gridMain.TitleHeight      = 0;
     this.gridMain.Visible          = false;
     this.gridMain.Margin           = new Padding(0);
     this.gridMain.Padding          = new Padding(0);
     //
     // ComboBoxMulti
     //
     this.BackColor = System.Drawing.SystemColors.Window;
     this.Controls.Add(this.butDrop);
     this.Controls.Add(this.textMain);
     this.Controls.Add(this.panel1);
     this.Controls.Add(this.gridMain);
     this.Name    = "ComboBoxMulti";
     this.Size    = new System.Drawing.Size(120, 21);
     this.Load   += new System.EventHandler(this.ComboBoxMulti_Load);
     this.Layout += new System.Windows.Forms.LayoutEventHandler(this.ComboBoxMulti_Layout);
     this.Leave  += new System.EventHandler(this.ComboBoxMulti_Leave);
     this.panel1.ResumeLayout(false);
     this.ResumeLayout(false);
     this.PerformLayout();
 }
示例#9
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormReqAppt));
     this.label2       = new System.Windows.Forms.Label();
     this.comboCourse  = new System.Windows.Forms.ComboBox();
     this.label1       = new System.Windows.Forms.Label();
     this.comboClass   = new System.Windows.Forms.ComboBox();
     this.label3       = new System.Windows.Forms.Label();
     this.butOK        = new OpenDental.UI.Button();
     this.gridReqs     = new OpenDental.UI.ODGrid();
     this.butAdd       = new OpenDental.UI.Button();
     this.butRemove    = new OpenDental.UI.Button();
     this.gridAttached = new OpenDental.UI.ODGrid();
     this.gridStudents = new OpenDental.UI.ODGrid();
     this.butCancel    = new OpenDental.UI.Button();
     this.SuspendLayout();
     //
     // label2
     //
     this.label2.Location  = new System.Drawing.Point(566, 39);
     this.label2.Name      = "label2";
     this.label2.Size      = new System.Drawing.Size(77, 18);
     this.label2.TabIndex  = 22;
     this.label2.Text      = "Course";
     this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // comboCourse
     //
     this.comboCourse.DropDownStyle     = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.comboCourse.FormattingEnabled = true;
     this.comboCourse.Location          = new System.Drawing.Point(647, 39);
     this.comboCourse.Name     = "comboCourse";
     this.comboCourse.Size     = new System.Drawing.Size(234, 21);
     this.comboCourse.TabIndex = 21;
     this.comboCourse.SelectionChangeCommitted += new System.EventHandler(this.comboCourse_SelectionChangeCommitted);
     //
     // label1
     //
     this.label1.Location  = new System.Drawing.Point(563, 12);
     this.label1.Name      = "label1";
     this.label1.Size      = new System.Drawing.Size(81, 18);
     this.label1.TabIndex  = 20;
     this.label1.Text      = "Class";
     this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // comboClass
     //
     this.comboClass.DropDownStyle     = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.comboClass.FormattingEnabled = true;
     this.comboClass.Location          = new System.Drawing.Point(647, 12);
     this.comboClass.Name     = "comboClass";
     this.comboClass.Size     = new System.Drawing.Size(234, 21);
     this.comboClass.TabIndex = 19;
     this.comboClass.SelectionChangeCommitted += new System.EventHandler(this.comboClass_SelectionChangeCommitted);
     //
     // label3
     //
     this.label3.Location = new System.Drawing.Point(494, 118);
     this.label3.Name     = "label3";
     this.label3.Size     = new System.Drawing.Size(212, 39);
     this.label3.TabIndex = 28;
     this.label3.Text     = "(requirements that are already attached to other appointments will not show)";
     //
     // butOK
     //
     this.butOK.AdjustImageLocation = new System.Drawing.Point(0, 0);
     this.butOK.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.butOK.Autosize     = true;
     this.butOK.BtnShape     = OpenDental.UI.enumType.BtnShape.Rectangle;
     this.butOK.BtnStyle     = OpenDental.UI.enumType.XPStyle.Silver;
     this.butOK.CornerRadius = 4F;
     this.butOK.Location     = new System.Drawing.Point(806, 591);
     this.butOK.Name         = "butOK";
     this.butOK.Size         = new System.Drawing.Size(75, 26);
     this.butOK.TabIndex     = 27;
     this.butOK.Text         = "OK";
     this.butOK.Click       += new System.EventHandler(this.butOK_Click);
     //
     // gridReqs
     //
     this.gridReqs.HScrollVisible  = false;
     this.gridReqs.Location        = new System.Drawing.Point(223, 12);
     this.gridReqs.Name            = "gridReqs";
     this.gridReqs.ScrollValue     = 0;
     this.gridReqs.SelectionMode   = OpenDental.UI.GridSelectionMode.MultiExtended;
     this.gridReqs.Size            = new System.Drawing.Size(268, 637);
     this.gridReqs.TabIndex        = 26;
     this.gridReqs.Title           = "Requirements";
     this.gridReqs.TranslationName = "TableReqStudentMany";
     //
     // butAdd
     //
     this.butAdd.AdjustImageLocation = new System.Drawing.Point(0, 0);
     this.butAdd.Autosize            = true;
     this.butAdd.BtnShape            = OpenDental.UI.enumType.BtnShape.Rectangle;
     this.butAdd.BtnStyle            = OpenDental.UI.enumType.XPStyle.Silver;
     this.butAdd.CornerRadius        = 4F;
     this.butAdd.Image      = global::OpenDental.Properties.Resources.down;
     this.butAdd.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
     this.butAdd.Location   = new System.Drawing.Point(497, 273);
     this.butAdd.Name       = "butAdd";
     this.butAdd.Size       = new System.Drawing.Size(90, 26);
     this.butAdd.TabIndex   = 25;
     this.butAdd.Text       = "Add";
     this.butAdd.Click     += new System.EventHandler(this.butAdd_Click);
     //
     // butRemove
     //
     this.butRemove.AdjustImageLocation = new System.Drawing.Point(0, 0);
     this.butRemove.Autosize            = true;
     this.butRemove.BtnShape            = OpenDental.UI.enumType.BtnShape.Rectangle;
     this.butRemove.BtnStyle            = OpenDental.UI.enumType.XPStyle.Silver;
     this.butRemove.CornerRadius        = 4F;
     this.butRemove.Image      = global::OpenDental.Properties.Resources.deleteX;
     this.butRemove.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
     this.butRemove.Location   = new System.Drawing.Point(596, 273);
     this.butRemove.Name       = "butRemove";
     this.butRemove.Size       = new System.Drawing.Size(90, 26);
     this.butRemove.TabIndex   = 24;
     this.butRemove.Text       = "Remove";
     this.butRemove.Click     += new System.EventHandler(this.butRemove_Click);
     //
     // gridAttached
     //
     this.gridAttached.HScrollVisible   = false;
     this.gridAttached.Location         = new System.Drawing.Point(497, 305);
     this.gridAttached.Name             = "gridAttached";
     this.gridAttached.ScrollValue      = 0;
     this.gridAttached.SelectionMode    = OpenDental.UI.GridSelectionMode.MultiExtended;
     this.gridAttached.Size             = new System.Drawing.Size(384, 225);
     this.gridAttached.TabIndex         = 23;
     this.gridAttached.Title            = "Currently Attached Requirements";
     this.gridAttached.TranslationName  = "TableReqStudentMany";
     this.gridAttached.CellDoubleClick += new OpenDental.UI.ODGridClickEventHandler(this.gridAttached_CellDoubleClick);
     //
     // gridStudents
     //
     this.gridStudents.HScrollVisible  = false;
     this.gridStudents.Location        = new System.Drawing.Point(10, 12);
     this.gridStudents.Name            = "gridStudents";
     this.gridStudents.ScrollValue     = 0;
     this.gridStudents.Size            = new System.Drawing.Size(207, 637);
     this.gridStudents.TabIndex        = 3;
     this.gridStudents.Title           = "Students";
     this.gridStudents.TranslationName = "TableReqStudentMany";
     this.gridStudents.CellClick      += new OpenDental.UI.ODGridClickEventHandler(this.gridStudents_CellClick);
     //
     // butCancel
     //
     this.butCancel.AdjustImageLocation = new System.Drawing.Point(0, 0);
     this.butCancel.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.butCancel.Autosize     = true;
     this.butCancel.BtnShape     = OpenDental.UI.enumType.BtnShape.Rectangle;
     this.butCancel.BtnStyle     = OpenDental.UI.enumType.XPStyle.Silver;
     this.butCancel.CornerRadius = 4F;
     this.butCancel.Location     = new System.Drawing.Point(806, 623);
     this.butCancel.Name         = "butCancel";
     this.butCancel.Size         = new System.Drawing.Size(75, 26);
     this.butCancel.TabIndex     = 0;
     this.butCancel.Text         = "Cancel";
     this.butCancel.Click       += new System.EventHandler(this.butCancel_Click);
     //
     // FormReqAppt
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(893, 661);
     this.Controls.Add(this.label3);
     this.Controls.Add(this.butOK);
     this.Controls.Add(this.gridReqs);
     this.Controls.Add(this.butAdd);
     this.Controls.Add(this.butRemove);
     this.Controls.Add(this.gridAttached);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.comboCourse);
     this.Controls.Add(this.label1);
     this.Controls.Add(this.comboClass);
     this.Controls.Add(this.gridStudents);
     this.Controls.Add(this.butCancel);
     this.Icon          = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.MaximizeBox   = false;
     this.MinimizeBox   = false;
     this.Name          = "FormReqAppt";
     this.ShowInTaskbar = false;
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text          = "Student Requirements for Appointment";
     this.Load         += new System.EventHandler(this.FormReqAppt_Load);
     this.ResumeLayout(false);
 }
        private void Run(ODGrid gridCur, DbmMode modeCur)
        {
            if (_patNum < 1)
            {
                MsgBox.Show(this, "Select a patient first.");
                return;
            }
            Cursor = Cursors.WaitCursor;
            //Clear out the result column for all rows before every "run"
            for (int i = 0; i < gridCur.ListGridRows.Count; i++)
            {
                //gridMain and gridOld have a different number of columns, but their matching columns will be named the same.
                gridCur.ListGridRows[i].Cells[gridCur.ListGridColumns.GetIndex(RESULTS_COLUMN_NAME)].Text = "";              //Don't use UpdateResultTextForRow here because users will see the rows clearing out one by one.
            }
            bool          verbose = checkShow.Checked;
            StringBuilder logText = new StringBuilder();

            //No longer uses a pre-check for tables.
            if (gridCur.SelectedIndices.Length < 1)
            {
                //No rows are selected so the user wants to run all checks.
                gridCur.SetSelected(true);
            }
            string result;

            int[] selectedIndices = gridCur.SelectedIndices;
            for (int i = 0; i < gridCur.SelectedGridRows.Count; i++)
            {
                DbmMethodAttr methodAttributes = (DbmMethodAttr)Attribute.GetCustomAttribute((MethodInfo)gridCur.SelectedGridRows[i].Tag, typeof(DbmMethodAttr));
                //We always send verbose and modeCur into all DBM methods.
                List <object> parameters = new List <object>()
                {
                    verbose, modeCur
                };
                //There are optional paramaters available to some methods and adding them in the following order is very important.
                if (methodAttributes.HasPatNum)
                {
                    parameters.Add(_patNum);
                }

                try {
                    gridCur.ScrollToIndexBottom(i);
                    UpdateResultTextForRow(i, Lan.g("FormDatabaseMaintenance", "Running") + "...", gridCur);
                    gridCur.SetSelected(selectedIndices, true);                   //Reselect all rows that were originally selected.
                    result = (string)((MethodInfo)gridCur.SelectedGridRows[i].Tag).Invoke(null, parameters.ToArray());
                    if (modeCur == DbmMode.Fix)
                    {
                        DatabaseMaintenances.UpdateDateLastRun(((MethodInfo)gridCur.SelectedGridRows[i].Tag).Name);
                    }
                }
                catch (Exception ex) {
                    if (ex.InnerException != null)
                    {
                        ExceptionDispatchInfo.Capture(ex.InnerException).Throw();                        //This preserves the stack trace of the InnerException.
                    }
                    throw;
                }
                string status = "";
                if (result == "")               //Only possible if running a check / fix in non-verbose mode and nothing happened or needs to happen.
                {
                    status = Lan.g("FormDatabaseMaintenance", "Done.  No maintenance needed.");
                }
                UpdateResultTextForRow(i, result + status, gridCur);
                logText.Append(result);
            }
            gridCur.SetSelected(selectedIndices, true);           //Reselect all rows that were originally selected.
            SaveLogToFile(logText.ToString());
            if (modeCur == DbmMode.Fix)
            {
                //_isCacheInvalid=true;//Flag cache to be invalidated on closing.  Some DBM fixes alter cached tables.
            }
        }
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormProcCodeEdit));
     this.label1               = new System.Windows.Forms.Label();
     this.label4               = new System.Windows.Forms.Label();
     this.label5               = new System.Windows.Forms.Label();
     this.label6               = new System.Windows.Forms.Label();
     this.label7               = new System.Windows.Forms.Label();
     this.label8               = new System.Windows.Forms.Label();
     this.label10              = new System.Windows.Forms.Label();
     this.textProcCode         = new System.Windows.Forms.TextBox();
     this.textAbbrev           = new System.Windows.Forms.TextBox();
     this.textDescription      = new System.Windows.Forms.TextBox();
     this.listTreatArea        = new System.Windows.Forms.ListBox();
     this.checkSetRecall       = new System.Windows.Forms.CheckBox();
     this.checkNoBillIns       = new System.Windows.Forms.CheckBox();
     this.listCategory         = new System.Windows.Forms.ListBox();
     this.label3               = new System.Windows.Forms.Label();
     this.label9               = new System.Windows.Forms.Label();
     this.butSlider            = new System.Windows.Forms.Button();
     this.textTime2            = new System.Windows.Forms.TextBox();
     this.label11              = new System.Windows.Forms.Label();
     this.checkIsHygiene       = new System.Windows.Forms.CheckBox();
     this.textAlternateCode1   = new System.Windows.Forms.TextBox();
     this.label12              = new System.Windows.Forms.Label();
     this.label13              = new System.Windows.Forms.Label();
     this.checkIsProsth        = new System.Windows.Forms.CheckBox();
     this.textMedicalCode      = new System.Windows.Forms.TextBox();
     this.label14              = new System.Windows.Forms.Label();
     this.label15              = new System.Windows.Forms.Label();
     this.listPaintType        = new System.Windows.Forms.ListBox();
     this.labelColor           = new System.Windows.Forms.Label();
     this.butColor             = new System.Windows.Forms.Button();
     this.textLaymanTerm       = new System.Windows.Forms.TextBox();
     this.label2               = new System.Windows.Forms.Label();
     this.checkIsCanadianLab   = new System.Windows.Forms.CheckBox();
     this.label16              = new System.Windows.Forms.Label();
     this.textBaseUnits        = new System.Windows.Forms.TextBox();
     this.label17              = new System.Windows.Forms.Label();
     this.label18              = new System.Windows.Forms.Label();
     this.textSubstitutionCode = new System.Windows.Forms.TextBox();
     this.label19              = new System.Windows.Forms.Label();
     this.comboSubstOnlyIf     = new System.Windows.Forms.ComboBox();
     this.butAddNote           = new OpenDental.UI.Button();
     this.gridNotes            = new OpenDental.UI.ODGrid();
     this.tbTime               = new OpenDental.TableTimeBar();
     this.butColorClear        = new OpenDental.UI.Button();
     this.gridFees             = new OpenDental.UI.ODGrid();
     this.textNote             = new OpenDental.ODtextBox();
     this.butCancel            = new OpenDental.UI.Button();
     this.butOK = new OpenDental.UI.Button();
     this.SuspendLayout();
     //
     // label1
     //
     this.label1.Location  = new System.Drawing.Point(97, 14);
     this.label1.Name      = "label1";
     this.label1.Size      = new System.Drawing.Size(82, 14);
     this.label1.TabIndex  = 0;
     this.label1.Text      = "Proc Code";
     this.label1.TextAlign = System.Drawing.ContentAlignment.TopRight;
     //
     // label4
     //
     this.label4.Location  = new System.Drawing.Point(474, 234);
     this.label4.Name      = "label4";
     this.label4.Size      = new System.Drawing.Size(100, 14);
     this.label4.TabIndex  = 3;
     this.label4.Text      = "Treatment Area";
     this.label4.TextAlign = System.Drawing.ContentAlignment.BottomLeft;
     //
     // label5
     //
     this.label5.Location  = new System.Drawing.Point(600, 13);
     this.label5.Name      = "label5";
     this.label5.Size      = new System.Drawing.Size(100, 14);
     this.label5.TabIndex  = 4;
     this.label5.Text      = "Category";
     this.label5.TextAlign = System.Drawing.ContentAlignment.BottomLeft;
     //
     // label6
     //
     this.label6.Location  = new System.Drawing.Point(2, 58);
     this.label6.Name      = "label6";
     this.label6.Size      = new System.Drawing.Size(53, 39);
     this.label6.TabIndex  = 5;
     this.label6.Text      = "Time Pattern";
     this.label6.TextAlign = System.Drawing.ContentAlignment.BottomLeft;
     //
     // label7
     //
     this.label7.Location  = new System.Drawing.Point(83, 118);
     this.label7.Name      = "label7";
     this.label7.Size      = new System.Drawing.Size(94, 16);
     this.label7.TabIndex  = 6;
     this.label7.Text      = "Abbreviation";
     this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label8
     //
     this.label8.Location  = new System.Drawing.Point(83, 98);
     this.label8.Name      = "label8";
     this.label8.Size      = new System.Drawing.Size(94, 14);
     this.label8.TabIndex  = 7;
     this.label8.Text      = "Description";
     this.label8.TextAlign = System.Drawing.ContentAlignment.TopRight;
     //
     // label10
     //
     this.label10.Location  = new System.Drawing.Point(43, 354);
     this.label10.Name      = "label10";
     this.label10.Size      = new System.Drawing.Size(148, 14);
     this.label10.TabIndex  = 9;
     this.label10.Text      = "Default Note";
     this.label10.TextAlign = System.Drawing.ContentAlignment.BottomLeft;
     //
     // textProcCode
     //
     this.textProcCode.Location = new System.Drawing.Point(179, 12);
     this.textProcCode.Name     = "textProcCode";
     this.textProcCode.ReadOnly = true;
     this.textProcCode.Size     = new System.Drawing.Size(100, 20);
     this.textProcCode.TabIndex = 14;
     //
     // textAbbrev
     //
     this.textAbbrev.Location  = new System.Drawing.Point(179, 117);
     this.textAbbrev.MaxLength = 20;
     this.textAbbrev.Name      = "textAbbrev";
     this.textAbbrev.Size      = new System.Drawing.Size(100, 20);
     this.textAbbrev.TabIndex  = 1;
     //
     // textDescription
     //
     this.textDescription.Location  = new System.Drawing.Point(179, 96);
     this.textDescription.MaxLength = 255;
     this.textDescription.Name      = "textDescription";
     this.textDescription.Size      = new System.Drawing.Size(287, 20);
     this.textDescription.TabIndex  = 0;
     //
     // listTreatArea
     //
     this.listTreatArea.Items.AddRange(new object[] {
         "Surface",
         "Tooth",
         "Mouth",
         "Quadrant",
         "Sextant",
         "Arch",
         "Tooth Range"
     });
     this.listTreatArea.Location = new System.Drawing.Point(476, 252);
     this.listTreatArea.Name     = "listTreatArea";
     this.listTreatArea.Size     = new System.Drawing.Size(118, 95);
     this.listTreatArea.TabIndex = 2;
     //
     // checkSetRecall
     //
     this.checkSetRecall.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.checkSetRecall.Location  = new System.Drawing.Point(45, 251);
     this.checkSetRecall.Name      = "checkSetRecall";
     this.checkSetRecall.Size      = new System.Drawing.Size(284, 18);
     this.checkSetRecall.TabIndex  = 5;
     this.checkSetRecall.Text      = "Triggers Recall";
     //
     // checkNoBillIns
     //
     this.checkNoBillIns.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.checkNoBillIns.Location  = new System.Drawing.Point(45, 271);
     this.checkNoBillIns.Name      = "checkNoBillIns";
     this.checkNoBillIns.Size      = new System.Drawing.Size(284, 18);
     this.checkNoBillIns.TabIndex  = 6;
     this.checkNoBillIns.Text      = "Do not usually bill to insurance";
     //
     // listCategory
     //
     this.listCategory.Location = new System.Drawing.Point(600, 31);
     this.listCategory.Name     = "listCategory";
     this.listCategory.Size     = new System.Drawing.Size(120, 238);
     this.listCategory.TabIndex = 3;
     //
     // label3
     //
     this.label3.Location = new System.Drawing.Point(184, 669);
     this.label3.Name     = "label3";
     this.label3.Size     = new System.Drawing.Size(388, 29);
     this.label3.TabIndex = 28;
     this.label3.Text     = "There is no way to delete a code once created because it might have been used som" +
                            "eplace.  Instead, move it to a category like \"obsolete\"";
     //
     // label9
     //
     this.label9.Location  = new System.Drawing.Point(750, 670);
     this.label9.Name      = "label9";
     this.label9.Size      = new System.Drawing.Size(178, 28);
     this.label9.TabIndex  = 29;
     this.label9.Text      = "Even if you press cancel, changes to fees will not be undone.";
     this.label9.TextAlign = System.Drawing.ContentAlignment.TopRight;
     //
     // butSlider
     //
     this.butSlider.BackColor = System.Drawing.SystemColors.ControlDark;
     this.butSlider.Location  = new System.Drawing.Point(12, 113);
     this.butSlider.Name      = "butSlider";
     this.butSlider.Size      = new System.Drawing.Size(12, 15);
     this.butSlider.TabIndex  = 31;
     this.butSlider.UseVisualStyleBackColor = false;
     this.butSlider.MouseDown += new System.Windows.Forms.MouseEventHandler(this.butSlider_MouseDown);
     this.butSlider.MouseMove += new System.Windows.Forms.MouseEventHandler(this.butSlider_MouseMove);
     this.butSlider.MouseUp   += new System.Windows.Forms.MouseEventHandler(this.butSlider_MouseUp);
     //
     // textTime2
     //
     this.textTime2.Location = new System.Drawing.Point(10, 674);
     this.textTime2.Name     = "textTime2";
     this.textTime2.Size     = new System.Drawing.Size(60, 20);
     this.textTime2.TabIndex = 32;
     //
     // label11
     //
     this.label11.Location = new System.Drawing.Point(76, 678);
     this.label11.Name     = "label11";
     this.label11.Size     = new System.Drawing.Size(102, 16);
     this.label11.TabIndex = 33;
     this.label11.Text     = "Minutes";
     //
     // checkIsHygiene
     //
     this.checkIsHygiene.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.checkIsHygiene.Location  = new System.Drawing.Point(45, 291);
     this.checkIsHygiene.Name      = "checkIsHygiene";
     this.checkIsHygiene.Size      = new System.Drawing.Size(284, 18);
     this.checkIsHygiene.TabIndex  = 7;
     this.checkIsHygiene.Text      = "Is Hygiene procedure";
     //
     // textAlternateCode1
     //
     this.textAlternateCode1.Location  = new System.Drawing.Point(179, 33);
     this.textAlternateCode1.MaxLength = 15;
     this.textAlternateCode1.Name      = "textAlternateCode1";
     this.textAlternateCode1.Size      = new System.Drawing.Size(100, 20);
     this.textAlternateCode1.TabIndex  = 38;
     //
     // label12
     //
     this.label12.Location  = new System.Drawing.Point(100, 35);
     this.label12.Name      = "label12";
     this.label12.Size      = new System.Drawing.Size(79, 14);
     this.label12.TabIndex  = 37;
     this.label12.Text      = "Alt Code";
     this.label12.TextAlign = System.Drawing.ContentAlignment.TopRight;
     //
     // label13
     //
     this.label13.Location = new System.Drawing.Point(285, 35);
     this.label13.Name     = "label13";
     this.label13.Size     = new System.Drawing.Size(161, 19);
     this.label13.TabIndex = 39;
     this.label13.Text     = "(For some Medicaid)";
     //
     // checkIsProsth
     //
     this.checkIsProsth.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.checkIsProsth.Location  = new System.Drawing.Point(45, 311);
     this.checkIsProsth.Name      = "checkIsProsth";
     this.checkIsProsth.Size      = new System.Drawing.Size(284, 18);
     this.checkIsProsth.TabIndex  = 41;
     this.checkIsProsth.Text      = "Is Prosthesis (Crown,Bridge,Denture,RPD)";
     //
     // textMedicalCode
     //
     this.textMedicalCode.Location  = new System.Drawing.Point(179, 54);
     this.textMedicalCode.MaxLength = 15;
     this.textMedicalCode.Name      = "textMedicalCode";
     this.textMedicalCode.Size      = new System.Drawing.Size(100, 20);
     this.textMedicalCode.TabIndex  = 43;
     //
     // label14
     //
     this.label14.Location  = new System.Drawing.Point(100, 56);
     this.label14.Name      = "label14";
     this.label14.Size      = new System.Drawing.Size(79, 14);
     this.label14.TabIndex  = 42;
     this.label14.Text      = "Medical Code";
     this.label14.TextAlign = System.Drawing.ContentAlignment.TopRight;
     //
     // label15
     //
     this.label15.Location  = new System.Drawing.Point(474, 10);
     this.label15.Name      = "label15";
     this.label15.Size      = new System.Drawing.Size(100, 18);
     this.label15.TabIndex  = 46;
     this.label15.Text      = "Paint Type";
     this.label15.TextAlign = System.Drawing.ContentAlignment.BottomLeft;
     //
     // listPaintType
     //
     this.listPaintType.Location = new System.Drawing.Point(476, 31);
     this.listPaintType.Name     = "listPaintType";
     this.listPaintType.Size     = new System.Drawing.Size(118, 199);
     this.listPaintType.TabIndex = 45;
     //
     // labelColor
     //
     this.labelColor.Location  = new System.Drawing.Point(75, 197);
     this.labelColor.Name      = "labelColor";
     this.labelColor.Size      = new System.Drawing.Size(293, 16);
     this.labelColor.TabIndex  = 48;
     this.labelColor.Text      = "Color override instead of using status colors.";
     this.labelColor.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // butColor
     //
     this.butColor.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
     this.butColor.Location  = new System.Drawing.Point(44, 194);
     this.butColor.Name      = "butColor";
     this.butColor.Size      = new System.Drawing.Size(30, 20);
     this.butColor.TabIndex  = 47;
     this.butColor.Click    += new System.EventHandler(this.butColor_Click);
     //
     // textLaymanTerm
     //
     this.textLaymanTerm.Location  = new System.Drawing.Point(179, 138);
     this.textLaymanTerm.MaxLength = 255;
     this.textLaymanTerm.Name      = "textLaymanTerm";
     this.textLaymanTerm.Size      = new System.Drawing.Size(178, 20);
     this.textLaymanTerm.TabIndex  = 50;
     //
     // label2
     //
     this.label2.Location  = new System.Drawing.Point(53, 139);
     this.label2.Name      = "label2";
     this.label2.Size      = new System.Drawing.Size(124, 16);
     this.label2.TabIndex  = 51;
     this.label2.Text      = "Layman\'s Term";
     this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // checkIsCanadianLab
     //
     this.checkIsCanadianLab.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.checkIsCanadianLab.Location  = new System.Drawing.Point(45, 331);
     this.checkIsCanadianLab.Name      = "checkIsCanadianLab";
     this.checkIsCanadianLab.Size      = new System.Drawing.Size(284, 18);
     this.checkIsCanadianLab.TabIndex  = 52;
     this.checkIsCanadianLab.Text      = "Is Lab Fee";
     //
     // label16
     //
     this.label16.Location  = new System.Drawing.Point(74, 162);
     this.label16.Name      = "label16";
     this.label16.Size      = new System.Drawing.Size(103, 13);
     this.label16.TabIndex  = 53;
     this.label16.Text      = "Base Units";
     this.label16.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // textBaseUnits
     //
     this.textBaseUnits.Location = new System.Drawing.Point(179, 159);
     this.textBaseUnits.Name     = "textBaseUnits";
     this.textBaseUnits.Size     = new System.Drawing.Size(30, 20);
     this.textBaseUnits.TabIndex = 54;
     //
     // label17
     //
     this.label17.Location = new System.Drawing.Point(215, 162);
     this.label17.Name     = "label17";
     this.label17.Size     = new System.Drawing.Size(202, 19);
     this.label17.TabIndex = 55;
     this.label17.Text     = "(For some medical claims)";
     //
     // label18
     //
     this.label18.Location  = new System.Drawing.Point(56, 78);
     this.label18.Name      = "label18";
     this.label18.Size      = new System.Drawing.Size(121, 13);
     this.label18.TabIndex  = 56;
     this.label18.Text      = "Ins. Subst Code";
     this.label18.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // textSubstitutionCode
     //
     this.textSubstitutionCode.Location  = new System.Drawing.Point(179, 75);
     this.textSubstitutionCode.MaxLength = 255;
     this.textSubstitutionCode.Name      = "textSubstitutionCode";
     this.textSubstitutionCode.Size      = new System.Drawing.Size(100, 20);
     this.textSubstitutionCode.TabIndex  = 57;
     //
     // label19
     //
     this.label19.Location  = new System.Drawing.Point(280, 76);
     this.label19.Name      = "label19";
     this.label19.Size      = new System.Drawing.Size(46, 18);
     this.label19.TabIndex  = 58;
     this.label19.Text      = "Only if";
     this.label19.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // comboSubstOnlyIf
     //
     this.comboSubstOnlyIf.DropDownStyle     = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.comboSubstOnlyIf.FormattingEnabled = true;
     this.comboSubstOnlyIf.Location          = new System.Drawing.Point(321, 74);
     this.comboSubstOnlyIf.Name     = "comboSubstOnlyIf";
     this.comboSubstOnlyIf.Size     = new System.Drawing.Size(145, 21);
     this.comboSubstOnlyIf.TabIndex = 61;
     //
     // butAddNote
     //
     this.butAddNote.AdjustImageLocation = new System.Drawing.Point(0, 0);
     this.butAddNote.Autosize            = true;
     this.butAddNote.BtnShape            = OpenDental.UI.enumType.BtnShape.Rectangle;
     this.butAddNote.BtnStyle            = OpenDental.UI.enumType.XPStyle.Silver;
     this.butAddNote.CornerRadius        = 4F;
     this.butAddNote.Image      = global::OpenDental.Properties.Resources.Add;
     this.butAddNote.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
     this.butAddNote.Location   = new System.Drawing.Point(600, 450);
     this.butAddNote.Name       = "butAddNote";
     this.butAddNote.Size       = new System.Drawing.Size(88, 26);
     this.butAddNote.TabIndex   = 60;
     this.butAddNote.Text       = "Add Note";
     this.butAddNote.Click     += new System.EventHandler(this.butAddNote_Click);
     //
     // gridNotes
     //
     this.gridNotes.HScrollVisible   = false;
     this.gridNotes.Location         = new System.Drawing.Point(44, 482);
     this.gridNotes.Name             = "gridNotes";
     this.gridNotes.ScrollValue      = 0;
     this.gridNotes.Size             = new System.Drawing.Size(676, 180);
     this.gridNotes.TabIndex         = 59;
     this.gridNotes.Title            = "Notes and Times for Specific Providers";
     this.gridNotes.TranslationName  = "TableProcedureNotes";
     this.gridNotes.CellDoubleClick += new OpenDental.UI.ODGridClickEventHandler(this.gridNotes_CellDoubleClick);
     //
     // tbTime
     //
     this.tbTime.BackColor       = System.Drawing.SystemColors.Window;
     this.tbTime.Location        = new System.Drawing.Point(10, 108);
     this.tbTime.Name            = "tbTime";
     this.tbTime.ScrollValue     = 150;
     this.tbTime.SelectedIndices = new int[0];
     this.tbTime.SelectionMode   = System.Windows.Forms.SelectionMode.None;
     this.tbTime.Size            = new System.Drawing.Size(15, 561);
     this.tbTime.TabIndex        = 30;
     //
     // butColorClear
     //
     this.butColorClear.AdjustImageLocation = new System.Drawing.Point(0, 0);
     this.butColorClear.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.butColorClear.Autosize     = true;
     this.butColorClear.BtnShape     = OpenDental.UI.enumType.BtnShape.Rectangle;
     this.butColorClear.BtnStyle     = OpenDental.UI.enumType.XPStyle.Silver;
     this.butColorClear.CornerRadius = 4F;
     this.butColorClear.Location     = new System.Drawing.Point(44, 220);
     this.butColorClear.Name         = "butColorClear";
     this.butColorClear.Size         = new System.Drawing.Size(75, 20);
     this.butColorClear.TabIndex     = 49;
     this.butColorClear.Text         = "Clear Color";
     this.butColorClear.Click       += new System.EventHandler(this.butColorClear_Click);
     //
     // gridFees
     //
     this.gridFees.HScrollVisible   = false;
     this.gridFees.Location         = new System.Drawing.Point(726, 31);
     this.gridFees.Name             = "gridFees";
     this.gridFees.ScrollValue      = 0;
     this.gridFees.Size             = new System.Drawing.Size(199, 445);
     this.gridFees.TabIndex         = 44;
     this.gridFees.Title            = "Fees";
     this.gridFees.TranslationName  = "TableProcFee";
     this.gridFees.CellDoubleClick += new OpenDental.UI.ODGridClickEventHandler(this.gridFees_CellDoubleClick);
     //
     // textNote
     //
     this.textNote.AcceptsReturn  = true;
     this.textNote.Location       = new System.Drawing.Point(44, 372);
     this.textNote.Multiline      = true;
     this.textNote.Name           = "textNote";
     this.textNote.QuickPasteType = OpenDentBusiness.QuickPasteType.Procedure;
     this.textNote.ScrollBars     = System.Windows.Forms.ScrollBars.Vertical;
     this.textNote.Size           = new System.Drawing.Size(550, 104);
     this.textNote.TabIndex       = 40;
     //
     // butCancel
     //
     this.butCancel.AdjustImageLocation = new System.Drawing.Point(0, 0);
     this.butCancel.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.butCancel.Autosize     = true;
     this.butCancel.BtnShape     = OpenDental.UI.enumType.BtnShape.Rectangle;
     this.butCancel.BtnStyle     = OpenDental.UI.enumType.XPStyle.Silver;
     this.butCancel.CornerRadius = 4F;
     this.butCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this.butCancel.Location     = new System.Drawing.Point(850, 636);
     this.butCancel.Name         = "butCancel";
     this.butCancel.Size         = new System.Drawing.Size(75, 26);
     this.butCancel.TabIndex     = 11;
     this.butCancel.Text         = "&Cancel";
     this.butCancel.Click       += new System.EventHandler(this.butCancel_Click);
     //
     // butOK
     //
     this.butOK.AdjustImageLocation = new System.Drawing.Point(0, 0);
     this.butOK.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.butOK.Autosize     = true;
     this.butOK.BtnShape     = OpenDental.UI.enumType.BtnShape.Rectangle;
     this.butOK.BtnStyle     = OpenDental.UI.enumType.XPStyle.Silver;
     this.butOK.CornerRadius = 4F;
     this.butOK.Location     = new System.Drawing.Point(850, 600);
     this.butOK.Name         = "butOK";
     this.butOK.Size         = new System.Drawing.Size(75, 26);
     this.butOK.TabIndex     = 10;
     this.butOK.Text         = "&OK";
     this.butOK.Click       += new System.EventHandler(this.butOK_Click);
     //
     // FormProcCodeEdit
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(941, 707);
     this.Controls.Add(this.comboSubstOnlyIf);
     this.Controls.Add(this.butAddNote);
     this.Controls.Add(this.gridNotes);
     this.Controls.Add(this.label19);
     this.Controls.Add(this.textSubstitutionCode);
     this.Controls.Add(this.butSlider);
     this.Controls.Add(this.tbTime);
     this.Controls.Add(this.label18);
     this.Controls.Add(this.label17);
     this.Controls.Add(this.textBaseUnits);
     this.Controls.Add(this.label16);
     this.Controls.Add(this.checkIsCanadianLab);
     this.Controls.Add(this.textLaymanTerm);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.butColorClear);
     this.Controls.Add(this.labelColor);
     this.Controls.Add(this.butColor);
     this.Controls.Add(this.label15);
     this.Controls.Add(this.listPaintType);
     this.Controls.Add(this.gridFees);
     this.Controls.Add(this.textMedicalCode);
     this.Controls.Add(this.label14);
     this.Controls.Add(this.checkIsProsth);
     this.Controls.Add(this.textNote);
     this.Controls.Add(this.label13);
     this.Controls.Add(this.textAlternateCode1);
     this.Controls.Add(this.label12);
     this.Controls.Add(this.checkIsHygiene);
     this.Controls.Add(this.label11);
     this.Controls.Add(this.textTime2);
     this.Controls.Add(this.textDescription);
     this.Controls.Add(this.textAbbrev);
     this.Controls.Add(this.textProcCode);
     this.Controls.Add(this.label9);
     this.Controls.Add(this.label3);
     this.Controls.Add(this.listCategory);
     this.Controls.Add(this.checkNoBillIns);
     this.Controls.Add(this.checkSetRecall);
     this.Controls.Add(this.listTreatArea);
     this.Controls.Add(this.butCancel);
     this.Controls.Add(this.butOK);
     this.Controls.Add(this.label10);
     this.Controls.Add(this.label8);
     this.Controls.Add(this.label7);
     this.Controls.Add(this.label6);
     this.Controls.Add(this.label5);
     this.Controls.Add(this.label4);
     this.Controls.Add(this.label1);
     this.Icon          = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.MaximizeBox   = false;
     this.MinimizeBox   = false;
     this.Name          = "FormProcCodeEdit";
     this.ShowInTaskbar = false;
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text          = "Edit Procedure Code";
     this.Closing      += new System.ComponentModel.CancelEventHandler(this.FormProcCodeEdit_Closing);
     this.Load         += new System.EventHandler(this.FormProcCodeEdit_Load);
     this.ResumeLayout(false);
     this.PerformLayout();
 }
示例#12
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormSheetDefs));
     this.label1          = new System.Windows.Forms.Label();
     this.comboLabel      = new System.Windows.Forms.ComboBox();
     this.label2          = new System.Windows.Forms.Label();
     this.butExportCustom = new OpenDental.UI.Button();
     this.butImport       = new OpenDental.UI.Button();
     this.butCopy2        = new OpenDental.UI.Button();
     this.butCopy         = new OpenDental.UI.Button();
     this.grid1           = new OpenDental.UI.ODGrid();
     this.grid2           = new OpenDental.UI.ODGrid();
     this.butNew          = new OpenDental.UI.Button();
     this.butClose        = new OpenDental.UI.Button();
     this.SuspendLayout();
     //
     // label1
     //
     this.label1.Location  = new System.Drawing.Point(12, 10);
     this.label1.Name      = "label1";
     this.label1.Size      = new System.Drawing.Size(205, 15);
     this.label1.TabIndex  = 16;
     this.label1.Text      = "Label assigned to patient button";
     this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // comboLabel
     //
     this.comboLabel.DropDownStyle     = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.comboLabel.FormattingEnabled = true;
     this.comboLabel.Location          = new System.Drawing.Point(223, 8);
     this.comboLabel.MaxDropDownItems  = 20;
     this.comboLabel.Name      = "comboLabel";
     this.comboLabel.Size      = new System.Drawing.Size(185, 21);
     this.comboLabel.TabIndex  = 17;
     this.comboLabel.DropDown += new System.EventHandler(this.comboLabel_DropDown);
     this.comboLabel.SelectionChangeCommitted += new System.EventHandler(this.comboLabel_SelectionChangeCommitted);
     //
     // label2
     //
     this.label2.Location = new System.Drawing.Point(414, 6);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(428, 33);
     this.label2.TabIndex = 18;
     this.label2.Text     = "Most other sheet types are assigned simply by creating custom sheets of the same " +
                            "type.  Referral slips are set in the referral edit window of each referral.";
     //
     // butExportCustom
     //
     this.butExportCustom.AdjustImageLocation = new System.Drawing.Point(0, 0);
     this.butExportCustom.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.butExportCustom.Autosize     = true;
     this.butExportCustom.BtnShape     = OpenDental.UI.enumType.BtnShape.Rectangle;
     this.butExportCustom.BtnStyle     = OpenDental.UI.enumType.XPStyle.Silver;
     this.butExportCustom.CornerRadius = 4F;
     this.butExportCustom.ImageAlign   = System.Drawing.ContentAlignment.MiddleLeft;
     this.butExportCustom.Location     = new System.Drawing.Point(530, 635);
     this.butExportCustom.Name         = "butExportCustom";
     this.butExportCustom.Size         = new System.Drawing.Size(80, 24);
     this.butExportCustom.TabIndex     = 25;
     this.butExportCustom.Text         = "Export";
     this.butExportCustom.Click       += new System.EventHandler(this.butExportCustom_Click);
     //
     // butImport
     //
     this.butImport.AdjustImageLocation = new System.Drawing.Point(0, 0);
     this.butImport.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.butImport.Autosize     = true;
     this.butImport.BtnShape     = OpenDental.UI.enumType.BtnShape.Rectangle;
     this.butImport.BtnStyle     = OpenDental.UI.enumType.XPStyle.Silver;
     this.butImport.CornerRadius = 4F;
     this.butImport.ImageAlign   = System.Drawing.ContentAlignment.MiddleLeft;
     this.butImport.Location     = new System.Drawing.Point(445, 635);
     this.butImport.Name         = "butImport";
     this.butImport.Size         = new System.Drawing.Size(80, 24);
     this.butImport.TabIndex     = 24;
     this.butImport.Text         = "Import";
     this.butImport.Click       += new System.EventHandler(this.butImport_Click);
     //
     // butCopy2
     //
     this.butCopy2.AdjustImageLocation = new System.Drawing.Point(0, 0);
     this.butCopy2.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.butCopy2.Autosize     = true;
     this.butCopy2.BtnShape     = OpenDental.UI.enumType.BtnShape.Rectangle;
     this.butCopy2.BtnStyle     = OpenDental.UI.enumType.XPStyle.Silver;
     this.butCopy2.CornerRadius = 4F;
     this.butCopy2.Image        = global::OpenDental.Properties.Resources.Add;
     this.butCopy2.ImageAlign   = System.Drawing.ContentAlignment.MiddleLeft;
     this.butCopy2.Location     = new System.Drawing.Point(700, 635);
     this.butCopy2.Name         = "butCopy2";
     this.butCopy2.Size         = new System.Drawing.Size(89, 24);
     this.butCopy2.TabIndex     = 19;
     this.butCopy2.Text         = "Duplicate";
     this.butCopy2.Click       += new System.EventHandler(this.butCopy2_Click);
     //
     // butCopy
     //
     this.butCopy.AdjustImageLocation = new System.Drawing.Point(0, 0);
     this.butCopy.Autosize            = true;
     this.butCopy.BtnShape            = OpenDental.UI.enumType.BtnShape.Rectangle;
     this.butCopy.BtnStyle            = OpenDental.UI.enumType.XPStyle.Silver;
     this.butCopy.CornerRadius        = 4F;
     this.butCopy.Image      = global::OpenDental.Properties.Resources.Right;
     this.butCopy.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
     this.butCopy.Location   = new System.Drawing.Point(333, 635);
     this.butCopy.Name       = "butCopy";
     this.butCopy.Size       = new System.Drawing.Size(75, 24);
     this.butCopy.TabIndex   = 15;
     this.butCopy.Text       = "Copy";
     this.butCopy.Click     += new System.EventHandler(this.butCopy_Click);
     //
     // grid1
     //
     this.grid1.HScrollVisible   = false;
     this.grid1.Location         = new System.Drawing.Point(12, 42);
     this.grid1.Name             = "grid1";
     this.grid1.ScrollValue      = 0;
     this.grid1.Size             = new System.Drawing.Size(424, 583);
     this.grid1.TabIndex         = 14;
     this.grid1.Title            = "Internal";
     this.grid1.TranslationName  = null;
     this.grid1.CellDoubleClick += new OpenDental.UI.ODGridClickEventHandler(this.grid1_CellDoubleClick);
     this.grid1.Click           += new System.EventHandler(this.grid1_Click);
     //
     // grid2
     //
     this.grid2.HScrollVisible   = false;
     this.grid2.Location         = new System.Drawing.Point(445, 42);
     this.grid2.Name             = "grid2";
     this.grid2.ScrollValue      = 0;
     this.grid2.Size             = new System.Drawing.Size(424, 583);
     this.grid2.TabIndex         = 12;
     this.grid2.Title            = "Custom";
     this.grid2.TranslationName  = null;
     this.grid2.CellDoubleClick += new OpenDental.UI.ODGridClickEventHandler(this.grid2_CellDoubleClick);
     this.grid2.Click           += new System.EventHandler(this.grid2_Click);
     //
     // butNew
     //
     this.butNew.AdjustImageLocation = new System.Drawing.Point(0, 0);
     this.butNew.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.butNew.Autosize     = true;
     this.butNew.BtnShape     = OpenDental.UI.enumType.BtnShape.Rectangle;
     this.butNew.BtnStyle     = OpenDental.UI.enumType.XPStyle.Silver;
     this.butNew.CornerRadius = 4F;
     this.butNew.Image        = global::OpenDental.Properties.Resources.Add;
     this.butNew.ImageAlign   = System.Drawing.ContentAlignment.MiddleLeft;
     this.butNew.Location     = new System.Drawing.Point(615, 635);
     this.butNew.Name         = "butNew";
     this.butNew.Size         = new System.Drawing.Size(80, 24);
     this.butNew.TabIndex     = 10;
     this.butNew.Text         = "New";
     this.butNew.Click       += new System.EventHandler(this.butNew_Click);
     //
     // butClose
     //
     this.butClose.AdjustImageLocation = new System.Drawing.Point(0, 0);
     this.butClose.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.butClose.Autosize     = true;
     this.butClose.BtnShape     = OpenDental.UI.enumType.BtnShape.Rectangle;
     this.butClose.BtnStyle     = OpenDental.UI.enumType.XPStyle.Silver;
     this.butClose.CornerRadius = 4F;
     this.butClose.Location     = new System.Drawing.Point(794, 635);
     this.butClose.Name         = "butClose";
     this.butClose.Size         = new System.Drawing.Size(75, 24);
     this.butClose.TabIndex     = 0;
     this.butClose.Text         = "&Close";
     this.butClose.Click       += new System.EventHandler(this.butClose_Click);
     //
     // FormSheetDefs
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(881, 669);
     this.Controls.Add(this.butExportCustom);
     this.Controls.Add(this.butImport);
     this.Controls.Add(this.butCopy2);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.comboLabel);
     this.Controls.Add(this.label1);
     this.Controls.Add(this.butCopy);
     this.Controls.Add(this.grid1);
     this.Controls.Add(this.grid2);
     this.Controls.Add(this.butNew);
     this.Controls.Add(this.butClose);
     this.Icon          = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.MaximizeBox   = false;
     this.MinimizeBox   = false;
     this.Name          = "FormSheetDefs";
     this.ShowInTaskbar = false;
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text          = "Sheet Defs";
     this.FormClosing  += new System.Windows.Forms.FormClosingEventHandler(this.FormSheetDefs_FormClosing);
     this.Load         += new System.EventHandler(this.FormSheetDefs_Load);
     this.ResumeLayout(false);
 }
示例#13
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormTimeCardSetup));
     this.checkUseDecimal    = new System.Windows.Forms.CheckBox();
     this.groupBox1          = new System.Windows.Forms.GroupBox();
     this.checkShowSeconds   = new System.Windows.Forms.CheckBox();
     this.checkAdjOverBreaks = new System.Windows.Forms.CheckBox();
     this.butAddRule         = new OpenDental.UI.Button();
     this.gridRules          = new OpenDental.UI.ODGrid();
     this.gridMain           = new OpenDental.UI.ODGrid();
     this.butAdd             = new OpenDental.UI.Button();
     this.butClose           = new OpenDental.UI.Button();
     this.label2             = new System.Windows.Forms.Label();
     this.textADPCompanyCode = new System.Windows.Forms.TextBox();
     this.butGenerate        = new OpenDental.UI.Button();
     this.butDelete          = new OpenDental.UI.Button();
     this.checkHideOlder     = new System.Windows.Forms.CheckBox();
     this.butDeleteRules     = new OpenDental.UI.Button();
     this.groupBox1.SuspendLayout();
     this.SuspendLayout();
     //
     // checkUseDecimal
     //
     this.checkUseDecimal.Location = new System.Drawing.Point(12, 19);
     this.checkUseDecimal.Name     = "checkUseDecimal";
     this.checkUseDecimal.Size     = new System.Drawing.Size(362, 18);
     this.checkUseDecimal.TabIndex = 12;
     this.checkUseDecimal.Text     = "Use decimal format rather than colon format";
     this.checkUseDecimal.UseVisualStyleBackColor = true;
     this.checkUseDecimal.Click += new System.EventHandler(this.checkUseDecimal_Click);
     //
     // groupBox1
     //
     this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.groupBox1.Controls.Add(this.checkShowSeconds);
     this.groupBox1.Controls.Add(this.checkAdjOverBreaks);
     this.groupBox1.Controls.Add(this.checkUseDecimal);
     this.groupBox1.Location = new System.Drawing.Point(305, 584);
     this.groupBox1.Name     = "groupBox1";
     this.groupBox1.Size     = new System.Drawing.Size(380, 74);
     this.groupBox1.TabIndex = 14;
     this.groupBox1.TabStop  = false;
     this.groupBox1.Text     = "Options";
     //
     // checkShowSeconds
     //
     this.checkShowSeconds.Location = new System.Drawing.Point(12, 51);
     this.checkShowSeconds.Name     = "checkShowSeconds";
     this.checkShowSeconds.Size     = new System.Drawing.Size(362, 18);
     this.checkShowSeconds.TabIndex = 14;
     this.checkShowSeconds.Text     = "Use seconds on time card when using colon format";
     this.checkShowSeconds.UseVisualStyleBackColor = true;
     this.checkShowSeconds.Click += new System.EventHandler(this.checkShowSeconds_Click);
     //
     // checkAdjOverBreaks
     //
     this.checkAdjOverBreaks.Location = new System.Drawing.Point(12, 35);
     this.checkAdjOverBreaks.Name     = "checkAdjOverBreaks";
     this.checkAdjOverBreaks.Size     = new System.Drawing.Size(362, 18);
     this.checkAdjOverBreaks.TabIndex = 13;
     this.checkAdjOverBreaks.Text     = "Calc Daily button makes adjustments if breaks over 30 minutes.";
     this.checkAdjOverBreaks.UseVisualStyleBackColor = true;
     this.checkAdjOverBreaks.Click += new System.EventHandler(this.checkAdjOverBreaks_Click);
     //
     // butAddRule
     //
     this.butAddRule.Anchor     = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.butAddRule.Image      = global::OpenDental.Properties.Resources.Add;
     this.butAddRule.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
     this.butAddRule.Location   = new System.Drawing.Point(305, 554);
     this.butAddRule.Name       = "butAddRule";
     this.butAddRule.Size       = new System.Drawing.Size(80, 24);
     this.butAddRule.TabIndex   = 15;
     this.butAddRule.Text       = "Add";
     this.butAddRule.Click     += new System.EventHandler(this.butAddRule_Click);
     //
     // gridRules
     //
     this.gridRules.AllowSortingByColumn = true;
     this.gridRules.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                    | System.Windows.Forms.AnchorStyles.Left)
                                                                   | System.Windows.Forms.AnchorStyles.Right)));
     this.gridRules.Location         = new System.Drawing.Point(305, 27);
     this.gridRules.Name             = "gridRules";
     this.gridRules.SelectionMode    = OpenDental.UI.GridSelectionMode.MultiExtended;
     this.gridRules.Size             = new System.Drawing.Size(687, 523);
     this.gridRules.TabIndex         = 13;
     this.gridRules.Title            = "Rules";
     this.gridRules.TranslationName  = "FormTimeCardSetup";
     this.gridRules.CellDoubleClick += new OpenDental.UI.ODGridClickEventHandler(this.gridRules_CellDoubleClick);
     //
     // gridMain
     //
     this.gridMain.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                  | System.Windows.Forms.AnchorStyles.Left)));
     this.gridMain.Location         = new System.Drawing.Point(19, 27);
     this.gridMain.Name             = "gridMain";
     this.gridMain.SelectionMode    = OpenDental.UI.GridSelectionMode.MultiExtended;
     this.gridMain.Size             = new System.Drawing.Size(272, 523);
     this.gridMain.TabIndex         = 11;
     this.gridMain.Title            = "Pay Periods";
     this.gridMain.TranslationName  = "TablePayPeriods";
     this.gridMain.CellDoubleClick += new OpenDental.UI.ODGridClickEventHandler(this.gridMain_CellDoubleClick);
     //
     // butAdd
     //
     this.butAdd.Anchor     = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.butAdd.Image      = global::OpenDental.Properties.Resources.Add;
     this.butAdd.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
     this.butAdd.Location   = new System.Drawing.Point(19, 554);
     this.butAdd.Name       = "butAdd";
     this.butAdd.Size       = new System.Drawing.Size(88, 24);
     this.butAdd.TabIndex   = 10;
     this.butAdd.Text       = "&Add One";
     this.butAdd.Click     += new System.EventHandler(this.butAdd_Click);
     //
     // butClose
     //
     this.butClose.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.butClose.Location = new System.Drawing.Point(917, 664);
     this.butClose.Name     = "butClose";
     this.butClose.Size     = new System.Drawing.Size(75, 24);
     this.butClose.TabIndex = 0;
     this.butClose.Text     = "&Close";
     this.butClose.Click   += new System.EventHandler(this.butClose_Click);
     //
     // label2
     //
     this.label2.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.label2.Location  = new System.Drawing.Point(14, 668);
     this.label2.Name      = "label2";
     this.label2.Size      = new System.Drawing.Size(119, 16);
     this.label2.TabIndex  = 17;
     this.label2.Text      = "ADP Company Code";
     this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // textADPCompanyCode
     //
     this.textADPCompanyCode.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.textADPCompanyCode.Location = new System.Drawing.Point(133, 666);
     this.textADPCompanyCode.Name     = "textADPCompanyCode";
     this.textADPCompanyCode.Size     = new System.Drawing.Size(97, 20);
     this.textADPCompanyCode.TabIndex = 16;
     //
     // butGenerate
     //
     this.butGenerate.Anchor     = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.butGenerate.Image      = global::OpenDental.Properties.Resources.Add;
     this.butGenerate.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
     this.butGenerate.Location   = new System.Drawing.Point(19, 584);
     this.butGenerate.Name       = "butGenerate";
     this.butGenerate.Size       = new System.Drawing.Size(114, 23);
     this.butGenerate.TabIndex   = 18;
     this.butGenerate.Text       = "Generate Many";
     this.butGenerate.UseVisualStyleBackColor = true;
     this.butGenerate.Click += new System.EventHandler(this.butGenerate_Click);
     //
     // butDelete
     //
     this.butDelete.Anchor     = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.butDelete.Image      = global::OpenDental.Properties.Resources.deleteX;
     this.butDelete.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
     this.butDelete.Location   = new System.Drawing.Point(180, 554);
     this.butDelete.Name       = "butDelete";
     this.butDelete.Size       = new System.Drawing.Size(111, 24);
     this.butDelete.TabIndex   = 19;
     this.butDelete.Text       = "Delete Selected";
     this.butDelete.Click     += new System.EventHandler(this.butDelete_Click);
     //
     // checkHideOlder
     //
     this.checkHideOlder.Checked    = true;
     this.checkHideOlder.CheckState = System.Windows.Forms.CheckState.Checked;
     this.checkHideOlder.Location   = new System.Drawing.Point(20, 7);
     this.checkHideOlder.Name       = "checkHideOlder";
     this.checkHideOlder.Size       = new System.Drawing.Size(288, 18);
     this.checkHideOlder.TabIndex   = 20;
     this.checkHideOlder.Text       = "Hide pay periods older than 6 months";
     this.checkHideOlder.UseVisualStyleBackColor = true;
     this.checkHideOlder.CheckedChanged         += new System.EventHandler(this.checkHideOlder_CheckedChanged);
     //
     // butDeleteRules
     //
     this.butDeleteRules.Anchor     = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.butDeleteRules.Image      = global::OpenDental.Properties.Resources.deleteX;
     this.butDeleteRules.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
     this.butDeleteRules.Location   = new System.Drawing.Point(881, 556);
     this.butDeleteRules.Name       = "butDeleteRules";
     this.butDeleteRules.Size       = new System.Drawing.Size(111, 24);
     this.butDeleteRules.TabIndex   = 21;
     this.butDeleteRules.Text       = "Delete Selected";
     this.butDeleteRules.Click     += new System.EventHandler(this.butDeleteRules_Click);
     //
     // FormTimeCardSetup
     //
     this.ClientSize = new System.Drawing.Size(1020, 696);
     this.Controls.Add(this.butDeleteRules);
     this.Controls.Add(this.checkHideOlder);
     this.Controls.Add(this.butDelete);
     this.Controls.Add(this.butGenerate);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.textADPCompanyCode);
     this.Controls.Add(this.butAddRule);
     this.Controls.Add(this.groupBox1);
     this.Controls.Add(this.gridRules);
     this.Controls.Add(this.gridMain);
     this.Controls.Add(this.butAdd);
     this.Controls.Add(this.butClose);
     this.Icon          = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.MaximizeBox   = false;
     this.MinimizeBox   = false;
     this.MinimumSize   = new System.Drawing.Size(728, 273);
     this.Name          = "FormTimeCardSetup";
     this.ShowInTaskbar = false;
     this.Text          = "Time Card Setup";
     this.FormClosing  += new System.Windows.Forms.FormClosingEventHandler(this.FormPayPeriods_FormClosing);
     this.Load         += new System.EventHandler(this.FormPayPeriods_Load);
     this.groupBox1.ResumeLayout(false);
     this.ResumeLayout(false);
     this.PerformLayout();
 }
示例#14
0
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormRpOutstandingIns));
     this.checkPreauth      = new System.Windows.Forms.CheckBox();
     this.labelProv         = new System.Windows.Forms.Label();
     this.labelDaysOldMin   = new System.Windows.Forms.Label();
     this.labelDaysOldMax   = new System.Windows.Forms.Label();
     this.label1            = new System.Windows.Forms.Label();
     this.label2            = new System.Windows.Forms.Label();
     this.textBox1          = new System.Windows.Forms.TextBox();
     this.butRefresh        = new OpenDental.UI.Button();
     this.butExport         = new OpenDental.UI.Button();
     this.comboBoxMultiProv = new OpenDental.UI.ComboBoxMulti();
     this.butPrint          = new OpenDental.UI.Button();
     this.textDaysOldMax    = new OpenDental.ValidNum();
     this.textDaysOldMin    = new OpenDental.ValidNum();
     this.butCancel         = new OpenDental.UI.Button();
     this.gridMain          = new OpenDental.UI.ODGrid();
     this.SuspendLayout();
     //
     // checkPreauth
     //
     this.checkPreauth.CheckAlign      = System.Drawing.ContentAlignment.MiddleRight;
     this.checkPreauth.Checked         = true;
     this.checkPreauth.CheckState      = System.Windows.Forms.CheckState.Checked;
     this.checkPreauth.FlatStyle       = System.Windows.Forms.FlatStyle.System;
     this.checkPreauth.Location        = new System.Drawing.Point(287, 9);
     this.checkPreauth.Name            = "checkPreauth";
     this.checkPreauth.Size            = new System.Drawing.Size(122, 18);
     this.checkPreauth.TabIndex        = 51;
     this.checkPreauth.Text            = "Include Preauths";
     this.checkPreauth.TextAlign       = System.Drawing.ContentAlignment.MiddleRight;
     this.checkPreauth.CheckedChanged += new System.EventHandler(this.checkPreauth_CheckedChanged);
     //
     // labelProv
     //
     this.labelProv.Location  = new System.Drawing.Point(405, 8);
     this.labelProv.Name      = "labelProv";
     this.labelProv.Size      = new System.Drawing.Size(87, 16);
     this.labelProv.TabIndex  = 48;
     this.labelProv.Text      = "Providers";
     this.labelProv.TextAlign = System.Drawing.ContentAlignment.BottomRight;
     //
     // labelDaysOldMin
     //
     this.labelDaysOldMin.Location  = new System.Drawing.Point(9, 7);
     this.labelDaysOldMin.Name      = "labelDaysOldMin";
     this.labelDaysOldMin.Size      = new System.Drawing.Size(93, 18);
     this.labelDaysOldMin.TabIndex  = 46;
     this.labelDaysOldMin.Text      = "Days Old (min)";
     this.labelDaysOldMin.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // labelDaysOldMax
     //
     this.labelDaysOldMax.Location  = new System.Drawing.Point(163, 7);
     this.labelDaysOldMax.Name      = "labelDaysOldMax";
     this.labelDaysOldMax.Size      = new System.Drawing.Size(53, 18);
     this.labelDaysOldMax.TabIndex  = 46;
     this.labelDaysOldMax.Text      = "(max)";
     this.labelDaysOldMax.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label1
     //
     this.label1.Location  = new System.Drawing.Point(100, 25);
     this.label1.Name      = "label1";
     this.label1.Size      = new System.Drawing.Size(175, 18);
     this.label1.TabIndex  = 54;
     this.label1.Text      = "(leave both blank to show all)";
     this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // label2
     //
     this.label2.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.label2.Location  = new System.Drawing.Point(520, 480);
     this.label2.Name      = "label2";
     this.label2.Size      = new System.Drawing.Size(69, 18);
     this.label2.TabIndex  = 46;
     this.label2.Text      = "Total";
     this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // textBox1
     //
     this.textBox1.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.textBox1.Location = new System.Drawing.Point(595, 479);
     this.textBox1.Name     = "textBox1";
     this.textBox1.Size     = new System.Drawing.Size(61, 20);
     this.textBox1.TabIndex = 56;
     //
     // butRefresh
     //
     this.butRefresh.AdjustImageLocation = new System.Drawing.Point(0, 0);
     this.butRefresh.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.butRefresh.Autosize     = true;
     this.butRefresh.BtnShape     = OpenDental.UI.enumType.BtnShape.Rectangle;
     this.butRefresh.BtnStyle     = OpenDental.UI.enumType.XPStyle.Silver;
     this.butRefresh.CornerRadius = 4F;
     this.butRefresh.Location     = new System.Drawing.Point(670, 5);
     this.butRefresh.Name         = "butRefresh";
     this.butRefresh.Size         = new System.Drawing.Size(82, 24);
     this.butRefresh.TabIndex     = 58;
     this.butRefresh.Text         = "&Refresh";
     this.butRefresh.Click       += new System.EventHandler(this.butRefresh_Click);
     //
     // butExport
     //
     this.butExport.AdjustImageLocation = new System.Drawing.Point(0, 0);
     this.butExport.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.butExport.Autosize     = true;
     this.butExport.BtnShape     = OpenDental.UI.enumType.BtnShape.Rectangle;
     this.butExport.BtnStyle     = OpenDental.UI.enumType.XPStyle.Silver;
     this.butExport.CornerRadius = 4F;
     this.butExport.Image        = global::OpenDental.Properties.Resources.butExport;
     this.butExport.ImageAlign   = System.Drawing.ContentAlignment.MiddleLeft;
     this.butExport.Location     = new System.Drawing.Point(97, 476);
     this.butExport.Name         = "butExport";
     this.butExport.Size         = new System.Drawing.Size(79, 24);
     this.butExport.TabIndex     = 57;
     this.butExport.Text         = "&Export";
     this.butExport.Click       += new System.EventHandler(this.butExport_Click);
     //
     // comboBoxMultiProv
     //
     this.comboBoxMultiProv.BackColor       = System.Drawing.SystemColors.Window;
     this.comboBoxMultiProv.DroppedDown     = false;
     this.comboBoxMultiProv.Items           = ((System.Collections.ArrayList)(resources.GetObject("comboBoxMultiProv.Items")));
     this.comboBoxMultiProv.Location        = new System.Drawing.Point(498, 7);
     this.comboBoxMultiProv.Name            = "comboBoxMultiProv";
     this.comboBoxMultiProv.SelectedIndices = ((System.Collections.ArrayList)(resources.GetObject("comboBoxMultiProv.SelectedIndices")));
     this.comboBoxMultiProv.Size            = new System.Drawing.Size(160, 21);
     this.comboBoxMultiProv.TabIndex        = 53;
     this.comboBoxMultiProv.UseCommas       = true;
     this.comboBoxMultiProv.Leave          += new System.EventHandler(this.comboBoxMultiProv_Leave);
     //
     // butPrint
     //
     this.butPrint.AdjustImageLocation = new System.Drawing.Point(0, 0);
     this.butPrint.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.butPrint.Autosize     = true;
     this.butPrint.BtnShape     = OpenDental.UI.enumType.BtnShape.Rectangle;
     this.butPrint.BtnStyle     = OpenDental.UI.enumType.XPStyle.Silver;
     this.butPrint.CornerRadius = 4F;
     this.butPrint.Image        = global::OpenDental.Properties.Resources.butPrintSmall;
     this.butPrint.ImageAlign   = System.Drawing.ContentAlignment.MiddleLeft;
     this.butPrint.Location     = new System.Drawing.Point(12, 476);
     this.butPrint.Name         = "butPrint";
     this.butPrint.Size         = new System.Drawing.Size(79, 24);
     this.butPrint.TabIndex     = 52;
     this.butPrint.Text         = "&Print";
     this.butPrint.Click       += new System.EventHandler(this.butPrint_Click);
     //
     // textDaysOldMax
     //
     this.textDaysOldMax.Location     = new System.Drawing.Point(219, 7);
     this.textDaysOldMax.MaxVal       = 255;
     this.textDaysOldMax.MinVal       = 0;
     this.textDaysOldMax.Name         = "textDaysOldMax";
     this.textDaysOldMax.Size         = new System.Drawing.Size(60, 20);
     this.textDaysOldMax.TabIndex     = 47;
     this.textDaysOldMax.TextChanged += new System.EventHandler(this.textDaysOldMax_TextChanged);
     //
     // textDaysOldMin
     //
     this.textDaysOldMin.Location     = new System.Drawing.Point(106, 7);
     this.textDaysOldMin.MaxVal       = 255;
     this.textDaysOldMin.MinVal       = 0;
     this.textDaysOldMin.Name         = "textDaysOldMin";
     this.textDaysOldMin.Size         = new System.Drawing.Size(60, 20);
     this.textDaysOldMin.TabIndex     = 47;
     this.textDaysOldMin.Text         = "30";
     this.textDaysOldMin.TextChanged += new System.EventHandler(this.textDaysOldMin_TextChanged);
     //
     // butCancel
     //
     this.butCancel.AdjustImageLocation = new System.Drawing.Point(0, 0);
     this.butCancel.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.butCancel.Autosize     = true;
     this.butCancel.BtnShape     = OpenDental.UI.enumType.BtnShape.Rectangle;
     this.butCancel.BtnStyle     = OpenDental.UI.enumType.XPStyle.Silver;
     this.butCancel.CornerRadius = 4F;
     this.butCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this.butCancel.Location     = new System.Drawing.Point(670, 476);
     this.butCancel.Name         = "butCancel";
     this.butCancel.Size         = new System.Drawing.Size(75, 24);
     this.butCancel.TabIndex     = 45;
     this.butCancel.Text         = "&Close";
     this.butCancel.Click       += new System.EventHandler(this.butCancel_Click);
     //
     // gridMain
     //
     this.gridMain.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                   | System.Windows.Forms.AnchorStyles.Left)
                                                                  | System.Windows.Forms.AnchorStyles.Right)));
     this.gridMain.HScrollVisible   = false;
     this.gridMain.Location         = new System.Drawing.Point(12, 46);
     this.gridMain.Name             = "gridMain";
     this.gridMain.ScrollValue      = 0;
     this.gridMain.Size             = new System.Drawing.Size(740, 416);
     this.gridMain.TabIndex         = 1;
     this.gridMain.Title            = null;
     this.gridMain.TranslationName  = null;
     this.gridMain.CellDoubleClick += new OpenDental.UI.ODGridClickEventHandler(this.gridMain_CellDoubleClick);
     this.gridMain.CellClick       += new OpenDental.UI.ODGridClickEventHandler(this.gridMain_CellClick);
     //
     // FormRpOutstandingIns
     //
     this.ClientSize = new System.Drawing.Size(764, 512);
     this.Controls.Add(this.butRefresh);
     this.Controls.Add(this.butExport);
     this.Controls.Add(this.textBox1);
     this.Controls.Add(this.label1);
     this.Controls.Add(this.labelDaysOldMin);
     this.Controls.Add(this.comboBoxMultiProv);
     this.Controls.Add(this.butPrint);
     this.Controls.Add(this.checkPreauth);
     this.Controls.Add(this.labelProv);
     this.Controls.Add(this.textDaysOldMax);
     this.Controls.Add(this.textDaysOldMin);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.labelDaysOldMax);
     this.Controls.Add(this.butCancel);
     this.Controls.Add(this.gridMain);
     this.Name          = "FormRpOutstandingIns";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text          = "Outstanding Insurance Claims";
     this.Load         += new System.EventHandler(this.FormRpOutIns_Load);
     this.ResumeLayout(false);
     this.PerformLayout();
 }
示例#15
0
        public static void FillPtInfo(OpenDental.ContrChart sender, Patient PatCur)
        {
            //first, get all the objects we need. Because they are by ref, the original gets altered.
            ODGrid     gridPtInfo         = (ODGrid)sender.Controls.Find("gridPtInfo", true)[0];
            TabControl tabControlImages   = (TabControl)sender.Controls.Find("tabControlImages", true)[0];
            TextBox    textTreatmentNotes = (TextBox)sender.Controls.Find("textTreatmentNotes", true)[0];
            //bool TreatmentNoteChanged=sender.TreatmentNoteChanged;//might have to do a by ref here?
            //Then get some data that we need
            Family         fam            = null;
            PatientNote    PatientNoteCur = null;
            List <PatPlan> PatPlanList    = null;
            List <InsSub>  SubList        = null;
            List <InsPlan> PlanList       = null;

            if (PatCur != null)
            {
                fam            = Patients.GetFamily(PatCur.PatNum);
                PatientNoteCur = PatientNotes.Refresh(PatCur.PatNum, PatCur.Guarantor);
                PatPlanList    = PatPlans.Refresh(PatCur.PatNum);
                SubList        = InsSubs.RefreshForFam(fam);
                PlanList       = InsPlans.RefreshForSubList(SubList);
            }
            //Then, continue with the slightly altered original method.
            gridPtInfo.Height       = tabControlImages.Top - gridPtInfo.Top;
            textTreatmentNotes.Text = "";
            if (PatCur != null)
            {
                textTreatmentNotes.Text    = PatientNoteCur.Treatment;
                textTreatmentNotes.Enabled = true;
                textTreatmentNotes.Select(textTreatmentNotes.Text.Length + 2, 1);
                textTreatmentNotes.ScrollToCaret();
                sender.TreatmentNoteChanged = false;
            }
            gridPtInfo.BeginUpdate();
            gridPtInfo.Columns.Clear();
            ODGridColumn col = new ODGridColumn("", 100);         //Lan.g("TableChartPtInfo",""),);

            gridPtInfo.Columns.Add(col);
            col = new ODGridColumn("", 300);
            gridPtInfo.Columns.Add(col);
            gridPtInfo.Rows.Clear();
            if (PatCur == null)
            {
                gridPtInfo.EndUpdate();
                return;
            }
            ODGridRow row;

            //Age
            row = new ODGridRow();
            row.Cells.Add("Age");
            row.Cells.Add(PatientLogic.DateToAgeString(PatCur.Birthdate));
            row.Tag = null;
            gridPtInfo.Rows.Add(row);
            //Credit type
            row = new ODGridRow();
            row.Cells.Add(Lan.g("TableChartPtInfo", "ABC0"));
            row.Cells.Add(PatCur.CreditType);
            row.Tag = null;
            gridPtInfo.Rows.Add(row);
            //Billing type
            row = new ODGridRow();
            row.Cells.Add(Lan.g("TableChartPtInfo", "Billing Type"));
            row.Cells.Add(DefC.GetName(DefCat.BillingTypes, PatCur.BillingType));
            row.Tag = null;
            gridPtInfo.Rows.Add(row);
            //Referrals
            RefAttach[] RefAttachList = RefAttaches.Refresh(PatCur.PatNum);
            for (int i = 0; i < RefAttachList.Length; i++)
            {
                row            = new ODGridRow();
                row.ColorBackG = Color.Aquamarine;
                if (RefAttachList[i].IsFrom)
                {
                    row.Cells.Add("Referred From");
                }
                else
                {
                    row.Cells.Add("Referred To");
                }
                row.Cells.Add(Referrals.GetNameLF(RefAttachList[i].ReferralNum));
                row.Tag = null;
                gridPtInfo.Rows.Add(row);
            }
            //Date First Visit
            row = new ODGridRow();
            row.Cells.Add(Lan.g("TableChartPtInfo", "Date First Visit"));
            if (PatCur.DateFirstVisit.Year < 1880)
            {
                row.Cells.Add("??");
            }
            else if (PatCur.DateFirstVisit == DateTime.Today)
            {
                row.Cells.Add(Lan.g("TableChartPtInfo", "NEW PAT"));
            }
            else
            {
                row.Cells.Add(PatCur.DateFirstVisit.ToShortDateString());
            }
            row.Tag = null;
            gridPtInfo.Rows.Add(row);
            //Prov - Pri & Sec
            row = new ODGridRow();
            row.Cells.Add(Lan.g("TableChartPtInfo", "Prov. (Pri, Sec)"));
            if (PatCur.SecProv != 0)
            {
                row.Cells.Add(Providers.GetAbbr(PatCur.PriProv) + ", " + Providers.GetAbbr(PatCur.SecProv));
            }
            else
            {
                row.Cells.Add(Providers.GetAbbr(PatCur.PriProv) + ", " + "None");
            }
            row.Tag = null;
            gridPtInfo.Rows.Add(row);
            //PriIns
            row = new ODGridRow();
            row.Cells.Add(Lan.g("TableChartPtInfo", "Pri Ins"));
            string name;

            if (PatPlanList.Count > 0)
            {
                name = InsPlans.GetCarrierName(PatPlans.GetPlanNum(PatPlanList, 1), PlanList);
                if (PatPlanList[0].IsPending)
                {
                    name += Lan.g("TableChartPtInfo", " (pending)");
                }
                row.Cells.Add(name);
            }
            else
            {
                row.Cells.Add("");
            }
            row.Tag = null;
            gridPtInfo.Rows.Add(row);
            //SecIns
            row = new ODGridRow();
            row.Cells.Add(Lan.g("TableChartPtInfo", "Sec Ins"));
            if (PatPlanList.Count > 1)
            {
                name = InsPlans.GetCarrierName(PatPlans.GetPlanNum(PatPlanList, 2), PlanList);
                if (PatPlanList[1].IsPending)
                {
                    name += Lan.g("TableChartPtInfo", " (pending)");
                }
                row.Cells.Add(name);
            }
            else
            {
                row.Cells.Add("");
            }
            row.Tag = null;
            gridPtInfo.Rows.Add(row);
            //Registration keys-------------------------------------------------------------------------------------------
            if (PrefC.GetBool(PrefName.DistributorKey))
            {
                RegistrationKey[] keys = RegistrationKeys.GetForPatient(PatCur.PatNum);
                for (int i = 0; i < keys.Length; i++)
                {
                    row = new ODGridRow();
                    row.Cells.Add(Lan.g("TableChartPtInfo", "Registration Key"));
                    string str = keys[i].RegKey.Substring(0, 4) + "-" + keys[i].RegKey.Substring(4, 4) + "-" +
                                 keys[i].RegKey.Substring(8, 4) + "-" + keys[i].RegKey.Substring(12, 4);
                    if (keys[i].IsForeign)
                    {
                        str += "\r\nForeign";
                    }
                    else
                    {
                        str += "\r\nUSA";
                    }
                    str += "\r\nStarted: " + keys[i].DateStarted.ToShortDateString();
                    if (keys[i].DateDisabled.Year > 1880)
                    {
                        str += "\r\nDisabled: " + keys[i].DateDisabled.ToShortDateString();
                    }
                    if (keys[i].DateEnded.Year > 1880)
                    {
                        str += "\r\nEnded: " + keys[i].DateEnded.ToShortDateString();
                    }
                    if (keys[i].Note != "")
                    {
                        str += keys[i].Note;
                    }
                    row.Cells.Add(str);
                    row.Tag = keys[i].Copy();
                    gridPtInfo.Rows.Add(row);
                }
            }
            ODGridCell cell;
            //medical fields-----------------------------------------------------------------
            bool showMed = true;

            if (Programs.IsEnabled(ProgramName.eClinicalWorks) && ProgramProperties.GetPropVal(ProgramName.eClinicalWorks, "IsStandalone") == "0")
            {
                showMed = false;
            }
            if (showMed)
            {
                //premed flag.
                if (PatCur.Premed)
                {
                    row = new ODGridRow();
                    row.Cells.Add("");
                    cell           = new ODGridCell();
                    cell.Text      = Lan.g("TableChartPtInfo", "Premedicate");
                    cell.ColorText = Color.Red;
                    cell.Bold      = YN.Yes;
                    row.Cells.Add(cell);
                    row.ColorBackG = DefC.Long[(int)DefCat.MiscColors][3].ItemColor;
                    row.Tag        = "med";
                    gridPtInfo.Rows.Add(row);
                }
                //diseases
                Disease[] DiseaseList = Diseases.Refresh(PatCur.PatNum);
                row       = new ODGridRow();
                cell      = new ODGridCell(Lan.g("TableChartPtInfo", "Diseases"));
                cell.Bold = YN.Yes;
                row.Cells.Add(cell);
                if (DiseaseList.Length > 0)
                {
                    row.Cells.Add("");
                }
                else
                {
                    row.Cells.Add(Lan.g("TableChartPtInfo", "none"));
                }
                row.ColorBackG = DefC.Long[(int)DefCat.MiscColors][3].ItemColor;
                row.Tag        = "med";
                gridPtInfo.Rows.Add(row);
                for (int i = 0; i < DiseaseList.Length; i++)
                {
                    row            = new ODGridRow();
                    cell           = new ODGridCell(DiseaseDefs.GetName(DiseaseList[i].DiseaseDefNum));
                    cell.ColorText = Color.Red;
                    cell.Bold      = YN.Yes;
                    row.Cells.Add(cell);
                    row.Cells.Add(DiseaseList[i].PatNote);
                    row.ColorBackG = DefC.Long[(int)DefCat.MiscColors][3].ItemColor;
                    row.Tag        = "med";
                    gridPtInfo.Rows.Add(row);
                }
                //MedUrgNote
                row = new ODGridRow();
                row.Cells.Add(Lan.g("TableChartPtInfo", "Med Urgent"));
                cell           = new ODGridCell();
                cell.Text      = PatCur.MedUrgNote;
                cell.ColorText = Color.Red;
                cell.Bold      = YN.Yes;
                row.Cells.Add(cell);
                row.ColorBackG = DefC.Long[(int)DefCat.MiscColors][3].ItemColor;
                row.Tag        = "med";
                gridPtInfo.Rows.Add(row);
                //Medical
                row = new ODGridRow();
                row.Cells.Add(Lan.g("TableChartPtInfo", "Medical Summary"));
                row.Cells.Add(PatientNoteCur.Medical);
                row.ColorBackG = DefC.Long[(int)DefCat.MiscColors][3].ItemColor;
                row.Tag        = "med";
                gridPtInfo.Rows.Add(row);
                //Service
                row = new ODGridRow();
                row.Cells.Add(Lan.g("TableChartPtInfo", "Service Notes"));
                row.Cells.Add(PatientNoteCur.Service);
                row.ColorBackG = DefC.Long[(int)DefCat.MiscColors][3].ItemColor;
                row.Tag        = "med";
                gridPtInfo.Rows.Add(row);
                //medications
                Medications.Refresh();
                MedicationPats.Refresh(PatCur.PatNum);
                row       = new ODGridRow();
                cell      = new ODGridCell(Lan.g("TableChartPtInfo", "Medications"));
                cell.Bold = YN.Yes;
                row.Cells.Add(cell);
                if (MedicationPats.List.Length > 0)
                {
                    row.Cells.Add("");
                }
                else
                {
                    row.Cells.Add(Lan.g("TableChartPtInfo", "none"));
                }
                row.ColorBackG = DefC.Long[(int)DefCat.MiscColors][3].ItemColor;
                row.Tag        = "med";
                gridPtInfo.Rows.Add(row);
                string     text;
                Medication med;
                for (int i = 0; i < MedicationPats.List.Length; i++)
                {
                    row  = new ODGridRow();
                    med  = Medications.GetMedication(MedicationPats.List[i].MedicationNum);
                    text = med.MedName;
                    if (med.MedicationNum != med.GenericNum)
                    {
                        text += "(" + Medications.GetMedication(med.GenericNum).MedName + ")";
                    }
                    row.Cells.Add(text);
                    text = MedicationPats.List[i].PatNote
                           + "(" + Medications.GetGeneric(MedicationPats.List[i].MedicationNum).Notes + ")";
                    row.Cells.Add(text);
                    row.ColorBackG = DefC.Long[(int)DefCat.MiscColors][3].ItemColor;
                    row.Tag        = "med";
                    gridPtInfo.Rows.Add(row);
                }
            }            //if !eCW.enabled
            gridPtInfo.EndUpdate();
        }
示例#16
0
        public static void DrawGrid(Section section, ODGrid grid)
        {
            //first, calculate width of dummy column that will push the grid over just enough to center it on the page.
            double pageW = 0;

            if (CultureInfo.CurrentCulture.Name == "en-US")
            {
                pageW = 850;
            }
            //don't know about Canada
            else
            {
                pageW = 830;
            }
            //in 100ths/inch
            double widthAllColumns = (double)grid.WidthAllColumns / .96;
            double lmargin         = section.Document.DefaultPageSetup.LeftMargin.Inch * 100;
            double dummyColW       = (pageW - widthAllColumns) / 2 - lmargin;
            Table  table           = new Table();
            Column col;

            col = table.AddColumn(Unit.FromInch(dummyColW / 100));
            for (int i = 0; i < grid.Columns.Count; i++)
            {
                col              = table.AddColumn(Unit.FromInch((double)grid.Columns[i].ColWidth / 96));
                col.LeftPadding  = Unit.FromInch(.01);
                col.RightPadding = Unit.FromInch(.01);
            }
            Row row;

            row = table.AddRow();
            row.HeadingFormat = true;
            row.TopPadding    = Unit.FromInch(0);
            row.BottomPadding = Unit.FromInch(-.01);
            Cell      cell;
            Paragraph par;

            //dummy column:
            cell = row.Cells[0];
            //cell.Shading.Color=Colors.LightGray;
            //format dummy cell?
            MigraDoc.DocumentObjectModel.Font fontHead = new MigraDoc.DocumentObjectModel.Font("Arial", Unit.FromPoint(8.5));
            fontHead.Bold = true;
            for (int i = 0; i < grid.Columns.Count; i++)
            {
                cell = row.Cells[i + 1];
                par  = cell.AddParagraph();
                par.AddFormattedText(grid.Columns[i].Heading, fontHead);
                par.Format.Alignment  = ParagraphAlignment.Center;
                cell.Format.Alignment = ParagraphAlignment.Center;
                cell.Borders.Width    = Unit.FromPoint(1);
                cell.Borders.Color    = Colors.Black;
                cell.Shading.Color    = Colors.LightGray;
            }
            MigraDoc.DocumentObjectModel.Font fontBody = null;          //=new MigraDoc.DocumentObjectModel.Font("Arial",Unit.FromPoint(8.5));
            bool isBold;

            System.Drawing.Color color;
            int edgeRows = 1;

            for (int i = 0; i < grid.Rows.Count; i++, edgeRows++)
            {
                row               = table.AddRow();
                row.TopPadding    = Unit.FromInch(.01);
                row.BottomPadding = Unit.FromInch(0);
                for (int j = 0; j < grid.Columns.Count; j++)
                {
                    cell = row.Cells[j + 1];
                    par  = cell.AddParagraph();
                    if (grid.Rows[i].Cells[j].Bold == YN.Unknown)
                    {
                        isBold = grid.Rows[i].Bold;
                    }
                    else if (grid.Rows[i].Cells[j].Bold == YN.Yes)
                    {
                        isBold = true;
                    }
                    else                     // if(grid.Rows[i].Cells[j].Bold==YN.No){
                    {
                        isBold = false;
                    }
                    if (grid.Rows[i].Cells[j].ColorText == System.Drawing.Color.Empty)
                    {
                        color = grid.Rows[i].ColorText;
                    }
                    else
                    {
                        color = grid.Rows[i].Cells[j].ColorText;
                    }
                    fontBody = CreateFont(8.5f, isBold, color);
                    par.AddFormattedText(grid.Rows[i].Cells[j].Text, fontBody);
                    if (grid.Columns[j].TextAlign == HorizontalAlignment.Center)
                    {
                        cell.Format.Alignment = ParagraphAlignment.Center;
                    }
                    if (grid.Columns[j].TextAlign == HorizontalAlignment.Left)
                    {
                        cell.Format.Alignment = ParagraphAlignment.Left;
                    }
                    if (grid.Columns[j].TextAlign == HorizontalAlignment.Right)
                    {
                        cell.Format.Alignment = ParagraphAlignment.Right;
                    }
                    cell.Borders.Color = new MigraDoc.DocumentObjectModel.Color(180, 180, 180);
                    if (grid.Rows[i].ColorLborder != System.Drawing.Color.Empty)
                    {
                        cell.Borders.Bottom.Color = ConvertColor(grid.Rows[i].ColorLborder);
                    }
                }
                if (grid.Rows[i].Note != null && grid.Rows[i].Note != "" && grid.NoteSpanStop > 0 && grid.NoteSpanStart < grid.Columns.Count)
                {
                    row               = table.AddRow();
                    row.TopPadding    = Unit.FromInch(.01);
                    row.BottomPadding = Unit.FromInch(0);
                    cell              = row.Cells[grid.NoteSpanStart + 1];
                    par               = cell.AddParagraph();
                    par.AddFormattedText(grid.Rows[i].Note, fontBody);
                    cell.Format.Alignment = ParagraphAlignment.Left;
                    cell.Borders.Color    = new MigraDoc.DocumentObjectModel.Color(180, 180, 180);
                    cell.MergeRight       = grid.Columns.Count - 1 - grid.NoteSpanStart;
                    edgeRows++;
                }
            }
            table.SetEdge(1, 0, grid.Columns.Count, edgeRows, Edge.Box, MigraDoc.DocumentObjectModel.BorderStyle.Single, 1, Colors.Black);
            section.Add(table);
        }
示例#17
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormTimeCardSetup));
     this.checkUseDecimal    = new System.Windows.Forms.CheckBox();
     this.groupBox1          = new System.Windows.Forms.GroupBox();
     this.checkAdjOverBreaks = new System.Windows.Forms.CheckBox();
     this.butAddRule         = new OpenDental.UI.Button();
     this.gridRules          = new OpenDental.UI.ODGrid();
     this.gridMain           = new OpenDental.UI.ODGrid();
     this.butAdd             = new OpenDental.UI.Button();
     this.butClose           = new OpenDental.UI.Button();
     this.label2             = new System.Windows.Forms.Label();
     this.textADPCompanyCode = new System.Windows.Forms.TextBox();
     this.groupBox1.SuspendLayout();
     this.SuspendLayout();
     //
     // checkUseDecimal
     //
     this.checkUseDecimal.Location = new System.Drawing.Point(12, 19);
     this.checkUseDecimal.Name     = "checkUseDecimal";
     this.checkUseDecimal.Size     = new System.Drawing.Size(295, 18);
     this.checkUseDecimal.TabIndex = 12;
     this.checkUseDecimal.Text     = "Use decimal format rather than colon format";
     this.checkUseDecimal.UseVisualStyleBackColor = true;
     this.checkUseDecimal.Click += new System.EventHandler(this.checkUseDecimal_Click);
     //
     // groupBox1
     //
     this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.groupBox1.Controls.Add(this.checkAdjOverBreaks);
     this.groupBox1.Controls.Add(this.checkUseDecimal);
     this.groupBox1.Location = new System.Drawing.Point(19, 526);
     this.groupBox1.Name     = "groupBox1";
     this.groupBox1.Size     = new System.Drawing.Size(391, 74);
     this.groupBox1.TabIndex = 14;
     this.groupBox1.TabStop  = false;
     this.groupBox1.Text     = "Options";
     //
     // checkAdjOverBreaks
     //
     this.checkAdjOverBreaks.Location = new System.Drawing.Point(12, 43);
     this.checkAdjOverBreaks.Name     = "checkAdjOverBreaks";
     this.checkAdjOverBreaks.Size     = new System.Drawing.Size(354, 18);
     this.checkAdjOverBreaks.TabIndex = 13;
     this.checkAdjOverBreaks.Text     = "Calc Daily button makes adjustments if breaks over 30 minutes.";
     this.checkAdjOverBreaks.UseVisualStyleBackColor = true;
     this.checkAdjOverBreaks.Click += new System.EventHandler(this.checkAdjOverBreaks_Click);
     //
     // butAddRule
     //
     this.butAddRule.AdjustImageLocation = new System.Drawing.Point(0, 0);
     this.butAddRule.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.butAddRule.Autosize     = true;
     this.butAddRule.BtnShape     = OpenDental.UI.enumType.BtnShape.Rectangle;
     this.butAddRule.BtnStyle     = OpenDental.UI.enumType.XPStyle.Silver;
     this.butAddRule.CornerRadius = 4F;
     this.butAddRule.Image        = global::OpenDental.Properties.Resources.Add;
     this.butAddRule.ImageAlign   = System.Drawing.ContentAlignment.MiddleLeft;
     this.butAddRule.Location     = new System.Drawing.Point(305, 494);
     this.butAddRule.Name         = "butAddRule";
     this.butAddRule.Size         = new System.Drawing.Size(80, 24);
     this.butAddRule.TabIndex     = 15;
     this.butAddRule.Text         = "Add";
     this.butAddRule.Click       += new System.EventHandler(this.butAddRule_Click);
     //
     // gridRules
     //
     this.gridRules.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                    | System.Windows.Forms.AnchorStyles.Left)
                                                                   | System.Windows.Forms.AnchorStyles.Right)));
     this.gridRules.HScrollVisible   = false;
     this.gridRules.Location         = new System.Drawing.Point(305, 12);
     this.gridRules.Name             = "gridRules";
     this.gridRules.ScrollValue      = 0;
     this.gridRules.Size             = new System.Drawing.Size(489, 478);
     this.gridRules.TabIndex         = 13;
     this.gridRules.Title            = "Rules";
     this.gridRules.TranslationName  = "FormTimeCardSetup";
     this.gridRules.CellDoubleClick += new OpenDental.UI.ODGridClickEventHandler(this.gridRules_CellDoubleClick);
     //
     // gridMain
     //
     this.gridMain.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                  | System.Windows.Forms.AnchorStyles.Left)));
     this.gridMain.HScrollVisible   = false;
     this.gridMain.Location         = new System.Drawing.Point(19, 12);
     this.gridMain.Name             = "gridMain";
     this.gridMain.ScrollValue      = 0;
     this.gridMain.Size             = new System.Drawing.Size(272, 478);
     this.gridMain.TabIndex         = 11;
     this.gridMain.Title            = "Pay Periods";
     this.gridMain.TranslationName  = "TablePayPeriods";
     this.gridMain.CellDoubleClick += new OpenDental.UI.ODGridClickEventHandler(this.gridMain_CellDoubleClick);
     //
     // butAdd
     //
     this.butAdd.AdjustImageLocation = new System.Drawing.Point(0, 0);
     this.butAdd.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.butAdd.Autosize     = true;
     this.butAdd.BtnShape     = OpenDental.UI.enumType.BtnShape.Rectangle;
     this.butAdd.BtnStyle     = OpenDental.UI.enumType.XPStyle.Silver;
     this.butAdd.CornerRadius = 4F;
     this.butAdd.Image        = global::OpenDental.Properties.Resources.Add;
     this.butAdd.ImageAlign   = System.Drawing.ContentAlignment.MiddleLeft;
     this.butAdd.Location     = new System.Drawing.Point(19, 494);
     this.butAdd.Name         = "butAdd";
     this.butAdd.Size         = new System.Drawing.Size(80, 24);
     this.butAdd.TabIndex     = 10;
     this.butAdd.Text         = "&Add";
     this.butAdd.Click       += new System.EventHandler(this.butAdd_Click);
     //
     // butClose
     //
     this.butClose.AdjustImageLocation = new System.Drawing.Point(0, 0);
     this.butClose.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.butClose.Autosize     = true;
     this.butClose.BtnShape     = OpenDental.UI.enumType.BtnShape.Rectangle;
     this.butClose.BtnStyle     = OpenDental.UI.enumType.XPStyle.Silver;
     this.butClose.CornerRadius = 4F;
     this.butClose.Location     = new System.Drawing.Point(719, 604);
     this.butClose.Name         = "butClose";
     this.butClose.Size         = new System.Drawing.Size(75, 24);
     this.butClose.TabIndex     = 0;
     this.butClose.Text         = "&Close";
     this.butClose.Click       += new System.EventHandler(this.butClose_Click);
     //
     // label2
     //
     this.label2.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.label2.Location  = new System.Drawing.Point(14, 608);
     this.label2.Name      = "label2";
     this.label2.Size      = new System.Drawing.Size(119, 16);
     this.label2.TabIndex  = 17;
     this.label2.Text      = "ADP Company Code";
     this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // textADPCompanyCode
     //
     this.textADPCompanyCode.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.textADPCompanyCode.Location = new System.Drawing.Point(133, 606);
     this.textADPCompanyCode.Name     = "textADPCompanyCode";
     this.textADPCompanyCode.Size     = new System.Drawing.Size(97, 20);
     this.textADPCompanyCode.TabIndex = 16;
     //
     // FormTimeCardSetup
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(822, 636);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.textADPCompanyCode);
     this.Controls.Add(this.butAddRule);
     this.Controls.Add(this.groupBox1);
     this.Controls.Add(this.gridRules);
     this.Controls.Add(this.gridMain);
     this.Controls.Add(this.butAdd);
     this.Controls.Add(this.butClose);
     this.Icon          = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.MaximizeBox   = false;
     this.MinimizeBox   = false;
     this.Name          = "FormTimeCardSetup";
     this.ShowInTaskbar = false;
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text          = "Time Card Setup";
     this.FormClosing  += new System.Windows.Forms.FormClosingEventHandler(this.FormPayPeriods_FormClosing);
     this.Load         += new System.EventHandler(this.FormPayPeriods_Load);
     this.groupBox1.ResumeLayout(false);
     this.ResumeLayout(false);
     this.PerformLayout();
 }
示例#18
0
        public static void DrawGrid(Section section, ODGrid grid)
        {
            //first, calculate width of dummy column that will push the grid over just enough to center it on the page.
            double pageW = 0;

            if (CultureInfo.CurrentCulture.Name == "en-US")
            {
                pageW = 850;
            }
            //don't know about Canada
            else
            {
                pageW = 830;
            }
            //in 100ths/inch
            double widthAllColumns = (double)grid.WidthAllColumns / .96;
            double lmargin         = section.Document.DefaultPageSetup.LeftMargin.Inch * 100;
            double dummyColW       = (pageW - widthAllColumns) / 2 - lmargin;
            Table  table           = new Table();
            Column col;

            col = table.AddColumn(Unit.FromInch(dummyColW / 100));
            for (int i = 0; i < grid.Columns.Count; i++)
            {
                col              = table.AddColumn(Unit.FromInch((double)grid.Columns[i].ColWidth / 96));
                col.LeftPadding  = Unit.FromInch(.01);
                col.RightPadding = Unit.FromInch(.01);
            }
            Row row;

            row = table.AddRow();
            row.HeadingFormat = true;
            row.TopPadding    = Unit.FromInch(0);
            row.BottomPadding = Unit.FromInch(-.01);
            Cell      cell;
            Paragraph par;

            //dummy column:
            cell = row.Cells[0];
            //cell.Shading.Color=Colors.LightGray;
            //format dummy cell?
            MigraDoc.DocumentObjectModel.Font fontHead = new MigraDoc.DocumentObjectModel.Font("Arial", Unit.FromPoint(8.5));
            fontHead.Bold = true;
            PdfDocument pdfd = new PdfDocument();
            PdfPage     pg   = pdfd.AddPage();
            XGraphics   gx   = XGraphics.FromPdfPage(pg);      //A dummy graphics object for measuring the text

            for (int i = 0; i < grid.Columns.Count; i++)
            {
                cell = row.Cells[i + 1];
                par  = cell.AddParagraph();
                par.AddFormattedText(grid.Columns[i].Heading, fontHead);
                par.Format.Alignment  = ParagraphAlignment.Center;
                cell.Format.Alignment = ParagraphAlignment.Center;
                cell.Borders.Width    = Unit.FromPoint(1);
                cell.Borders.Color    = Colors.Black;
                cell.Shading.Color    = Colors.LightGray;
            }
            MigraDoc.DocumentObjectModel.Font fontBody = null;          //=new MigraDoc.DocumentObjectModel.Font("Arial",Unit.FromPoint(8.5));
            bool isBold;

            System.Drawing.Color color;
            int edgeRows = 1;

            for (int i = 0; i < grid.Rows.Count; i++, edgeRows++)
            {
                row               = table.AddRow();
                row.TopPadding    = Unit.FromInch(.01);
                row.BottomPadding = Unit.FromInch(0);
                for (int j = 0; j < grid.Columns.Count; j++)
                {
                    cell = row.Cells[j + 1];
                    par  = cell.AddParagraph();
                    if (grid.Rows[i].Cells[j].Bold == YN.Unknown)
                    {
                        isBold = grid.Rows[i].Bold;
                    }
                    else if (grid.Rows[i].Cells[j].Bold == YN.Yes)
                    {
                        isBold = true;
                    }
                    else                     // if(grid.Rows[i].Cells[j].Bold==YN.No){
                    {
                        isBold = false;
                    }
                    if (grid.Rows[i].Cells[j].ColorText == System.Drawing.Color.Empty)
                    {
                        color = grid.Rows[i].ColorText;
                    }
                    else
                    {
                        color = grid.Rows[i].Cells[j].ColorText;
                    }
                    fontBody = CreateFont(8.5f, isBold, color);
                    XFont xFont;
                    if (isBold)
                    {
                        xFont = new XFont("Arial", 13.00);                     //Since we are using a dummy graphics object to measure the string, '13.00' is pretty much a guess-and-check
                        //value that looks about right.
                    }
                    else
                    {
                        xFont = new XFont("Arial", 11.65);                     //Yep, a guess-and-check value here too.
                    }
                    int           colWidth  = grid.Columns[j].ColWidth;
                    string        cellText  = grid.Rows[i].Cells[j].Text;
                    List <string> listWords = cellText.Split(new[] { " ", "\t", "\n", "\r\n" }, StringSplitOptions.RemoveEmptyEntries)
                                              .Where(x => !string.IsNullOrWhiteSpace(x)).ToList();   //PdfSharp.MeasureString sometimes throws an exception when measuring whitespace
                    bool isAnyWordWiderThanColumn = listWords.Any(x => gx.MeasureString(x, xFont).Width > colWidth);
                    if (!isAnyWordWiderThanColumn)
                    {
                        //Let MigraDoc format line breaks
                        par.AddFormattedText(cellText, fontBody);
                    }
                    else
                    {
                        //Do our own line splitting and word splitting
                        DrawTextWithWordSplits(par, fontBody, colWidth, cellText, gx, xFont);
                    }
                    if (grid.Columns[j].TextAlign == HorizontalAlignment.Center)
                    {
                        cell.Format.Alignment = ParagraphAlignment.Center;
                    }
                    if (grid.Columns[j].TextAlign == HorizontalAlignment.Left)
                    {
                        cell.Format.Alignment = ParagraphAlignment.Left;
                    }
                    if (grid.Columns[j].TextAlign == HorizontalAlignment.Right)
                    {
                        cell.Format.Alignment = ParagraphAlignment.Right;
                    }
                    cell.Borders.Color = new MigraDoc.DocumentObjectModel.Color(180, 180, 180);
                    if (grid.Rows[i].ColorLborder != System.Drawing.Color.Empty)
                    {
                        cell.Borders.Bottom.Color = ConvertColor(grid.Rows[i].ColorLborder);
                    }
                }
                if (grid.Rows[i].Note != null && grid.Rows[i].Note != "" && grid.NoteSpanStop > 0 && grid.NoteSpanStart < grid.Columns.Count)
                {
                    row               = table.AddRow();
                    row.TopPadding    = Unit.FromInch(.01);
                    row.BottomPadding = Unit.FromInch(0);
                    cell              = row.Cells[grid.NoteSpanStart + 1];
                    par               = cell.AddParagraph();
                    par.AddFormattedText(grid.Rows[i].Note, fontBody);
                    cell.Format.Alignment = ParagraphAlignment.Left;
                    cell.Borders.Color    = new MigraDoc.DocumentObjectModel.Color(180, 180, 180);
                    cell.MergeRight       = grid.Columns.Count - 1 - grid.NoteSpanStart;
                    edgeRows++;
                }
            }
            table.SetEdge(1, 0, grid.Columns.Count, edgeRows, Edge.Box, MigraDoc.DocumentObjectModel.BorderStyle.Single, 1, Colors.Black);
            section.Add(table);
        }
示例#19
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormLabCases));
     this.label1              = new System.Windows.Forms.Label();
     this.label2              = new System.Windows.Forms.Label();
     this.checkShowAll        = new System.Windows.Forms.CheckBox();
     this.contextMenu1        = new System.Windows.Forms.ContextMenu();
     this.menuItemGoTo        = new System.Windows.Forms.MenuItem();
     this.checkShowUnattached = new System.Windows.Forms.CheckBox();
     this.gridMain            = new OpenDental.UI.ODGrid();
     this.butRefresh          = new OpenDental.UI.Button();
     this.textDateTo          = new OpenDental.ValidDate();
     this.textDateFrom        = new OpenDental.ValidDate();
     this.butClose            = new OpenDental.UI.Button();
     this.butPrint            = new OpenDental.UI.Button();
     this.labelClinic         = new System.Windows.Forms.Label();
     this.comboClinic         = new System.Windows.Forms.ComboBox();
     this.SuspendLayout();
     //
     // label1
     //
     this.label1.Location  = new System.Drawing.Point(12, 9);
     this.label1.Name      = "label1";
     this.label1.Size      = new System.Drawing.Size(100, 18);
     this.label1.TabIndex  = 2;
     this.label1.Text      = "From Date";
     this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label2
     //
     this.label2.Location  = new System.Drawing.Point(12, 35);
     this.label2.Name      = "label2";
     this.label2.Size      = new System.Drawing.Size(100, 18);
     this.label2.TabIndex  = 4;
     this.label2.Text      = "To Date";
     this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // checkShowAll
     //
     this.checkShowAll.Location = new System.Drawing.Point(361, 37);
     this.checkShowAll.Name     = "checkShowAll";
     this.checkShowAll.Size     = new System.Drawing.Size(131, 18);
     this.checkShowAll.TabIndex = 7;
     this.checkShowAll.Text     = "Show Completed";
     this.checkShowAll.UseVisualStyleBackColor = true;
     //
     // contextMenu1
     //
     this.contextMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.menuItemGoTo
     });
     //
     // menuItemGoTo
     //
     this.menuItemGoTo.Index  = 0;
     this.menuItemGoTo.Text   = "Go To Appointment";
     this.menuItemGoTo.Click += new System.EventHandler(this.menuItemGoTo_Click);
     //
     // checkShowUnattached
     //
     this.checkShowUnattached.Location = new System.Drawing.Point(361, 14);
     this.checkShowUnattached.Name     = "checkShowUnattached";
     this.checkShowUnattached.Size     = new System.Drawing.Size(131, 18);
     this.checkShowUnattached.TabIndex = 8;
     this.checkShowUnattached.Text     = "Show Unattached";
     this.checkShowUnattached.UseVisualStyleBackColor = true;
     //
     // gridMain
     //
     this.gridMain.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                   | System.Windows.Forms.AnchorStyles.Left)
                                                                  | System.Windows.Forms.AnchorStyles.Right)));
     this.gridMain.HasAddButton        = false;
     this.gridMain.HasMultilineHeaders = false;
     this.gridMain.HScrollVisible      = false;
     this.gridMain.Location            = new System.Drawing.Point(17, 67);
     this.gridMain.Name             = "gridMain";
     this.gridMain.ScrollValue      = 0;
     this.gridMain.Size             = new System.Drawing.Size(916, 420);
     this.gridMain.TabIndex         = 1;
     this.gridMain.Title            = "Lab Cases";
     this.gridMain.TranslationName  = "TableLabCases";
     this.gridMain.CellDoubleClick += new OpenDental.UI.ODGridClickEventHandler(this.gridMain_CellDoubleClick);
     //
     // butRefresh
     //
     this.butRefresh.AdjustImageLocation = new System.Drawing.Point(0, 0);
     this.butRefresh.Autosize            = true;
     this.butRefresh.BtnShape            = OpenDental.UI.enumType.BtnShape.Rectangle;
     this.butRefresh.BtnStyle            = OpenDental.UI.enumType.XPStyle.Silver;
     this.butRefresh.CornerRadius        = 4F;
     this.butRefresh.Location            = new System.Drawing.Point(226, 32);
     this.butRefresh.Name     = "butRefresh";
     this.butRefresh.Size     = new System.Drawing.Size(75, 24);
     this.butRefresh.TabIndex = 6;
     this.butRefresh.Text     = "Refresh";
     this.butRefresh.Click   += new System.EventHandler(this.butRefresh_Click);
     //
     // textDateTo
     //
     this.textDateTo.Location = new System.Drawing.Point(116, 35);
     this.textDateTo.Name     = "textDateTo";
     this.textDateTo.Size     = new System.Drawing.Size(100, 20);
     this.textDateTo.TabIndex = 5;
     //
     // textDateFrom
     //
     this.textDateFrom.Location = new System.Drawing.Point(116, 9);
     this.textDateFrom.Name     = "textDateFrom";
     this.textDateFrom.Size     = new System.Drawing.Size(100, 20);
     this.textDateFrom.TabIndex = 3;
     //
     // butClose
     //
     this.butClose.AdjustImageLocation = new System.Drawing.Point(0, 0);
     this.butClose.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.butClose.Autosize     = true;
     this.butClose.BtnShape     = OpenDental.UI.enumType.BtnShape.Rectangle;
     this.butClose.BtnStyle     = OpenDental.UI.enumType.XPStyle.Silver;
     this.butClose.CornerRadius = 4F;
     this.butClose.Location     = new System.Drawing.Point(858, 497);
     this.butClose.Name         = "butClose";
     this.butClose.Size         = new System.Drawing.Size(75, 24);
     this.butClose.TabIndex     = 0;
     this.butClose.Text         = "&Close";
     this.butClose.Click       += new System.EventHandler(this.butClose_Click);
     //
     // butPrint
     //
     this.butPrint.AdjustImageLocation = new System.Drawing.Point(0, 0);
     this.butPrint.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.butPrint.Autosize     = true;
     this.butPrint.BtnShape     = OpenDental.UI.enumType.BtnShape.Rectangle;
     this.butPrint.BtnStyle     = OpenDental.UI.enumType.XPStyle.Silver;
     this.butPrint.CornerRadius = 4F;
     this.butPrint.Image        = global::OpenDental.Properties.Resources.butPrintSmall;
     this.butPrint.ImageAlign   = System.Drawing.ContentAlignment.MiddleLeft;
     this.butPrint.Location     = new System.Drawing.Point(413, 497);
     this.butPrint.Name         = "butPrint";
     this.butPrint.Size         = new System.Drawing.Size(79, 24);
     this.butPrint.TabIndex     = 53;
     this.butPrint.Text         = "Print";
     this.butPrint.Click       += new System.EventHandler(this.butPrint_Click);
     //
     // labelClinic
     //
     this.labelClinic.Location  = new System.Drawing.Point(638, 41);
     this.labelClinic.Name      = "labelClinic";
     this.labelClinic.Size      = new System.Drawing.Size(52, 14);
     this.labelClinic.TabIndex  = 55;
     this.labelClinic.Text      = "Clinic";
     this.labelClinic.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     this.labelClinic.Visible   = false;
     //
     // comboClinic
     //
     this.comboClinic.DropDownStyle         = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.comboClinic.Location              = new System.Drawing.Point(692, 36);
     this.comboClinic.MaxDropDownItems      = 40;
     this.comboClinic.Name                  = "comboClinic";
     this.comboClinic.Size                  = new System.Drawing.Size(241, 21);
     this.comboClinic.TabIndex              = 54;
     this.comboClinic.Visible               = false;
     this.comboClinic.SelectedIndexChanged += new System.EventHandler(this.comboClinic_SelectedIndexChanged);
     //
     // FormLabCases
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(945, 533);
     this.Controls.Add(this.labelClinic);
     this.Controls.Add(this.comboClinic);
     this.Controls.Add(this.butPrint);
     this.Controls.Add(this.checkShowUnattached);
     this.Controls.Add(this.checkShowAll);
     this.Controls.Add(this.butRefresh);
     this.Controls.Add(this.textDateTo);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.textDateFrom);
     this.Controls.Add(this.label1);
     this.Controls.Add(this.gridMain);
     this.Controls.Add(this.butClose);
     this.Icon          = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.MaximizeBox   = false;
     this.MinimizeBox   = false;
     this.Name          = "FormLabCases";
     this.ShowInTaskbar = false;
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text          = "Lab Cases";
     this.Load         += new System.EventHandler(this.FormLabCases_Load);
     this.ResumeLayout(false);
     this.PerformLayout();
 }
示例#20
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormRxSetup));
     this.butClose = new OpenDental.UI.Button();
     this.butAdd   = new OpenDental.UI.Button();
     this.butAdd2  = new OpenDental.UI.Button();
     this.gridMain = new OpenDental.UI.ODGrid();
     this.checkProcCodeRequired = new System.Windows.Forms.CheckBox();
     this.SuspendLayout();
     //
     // butClose
     //
     this.butClose.AdjustImageLocation = new System.Drawing.Point(0, 0);
     this.butClose.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.butClose.Autosize     = true;
     this.butClose.BtnShape     = OpenDental.UI.enumType.BtnShape.Rectangle;
     this.butClose.BtnStyle     = OpenDental.UI.enumType.XPStyle.Silver;
     this.butClose.CornerRadius = 4F;
     this.butClose.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this.butClose.Location     = new System.Drawing.Point(850, 636);
     this.butClose.Name         = "butClose";
     this.butClose.Size         = new System.Drawing.Size(75, 26);
     this.butClose.TabIndex     = 4;
     this.butClose.Text         = "&Close";
     this.butClose.Click       += new System.EventHandler(this.butClose_Click);
     //
     // butAdd
     //
     this.butAdd.AdjustImageLocation = new System.Drawing.Point(0, 0);
     this.butAdd.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.butAdd.Autosize     = true;
     this.butAdd.BtnShape     = OpenDental.UI.enumType.BtnShape.Rectangle;
     this.butAdd.BtnStyle     = OpenDental.UI.enumType.XPStyle.Silver;
     this.butAdd.CornerRadius = 4F;
     this.butAdd.Image        = global::OpenDental.Properties.Resources.Add;
     this.butAdd.ImageAlign   = System.Drawing.ContentAlignment.MiddleLeft;
     this.butAdd.Location     = new System.Drawing.Point(548, 636);
     this.butAdd.Name         = "butAdd";
     this.butAdd.Size         = new System.Drawing.Size(88, 26);
     this.butAdd.TabIndex     = 14;
     this.butAdd.Text         = "Add &New";
     this.butAdd.Click       += new System.EventHandler(this.butAdd_Click);
     //
     // butAdd2
     //
     this.butAdd2.AdjustImageLocation = new System.Drawing.Point(0, 0);
     this.butAdd2.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.butAdd2.Autosize     = true;
     this.butAdd2.BtnShape     = OpenDental.UI.enumType.BtnShape.Rectangle;
     this.butAdd2.BtnStyle     = OpenDental.UI.enumType.XPStyle.Silver;
     this.butAdd2.CornerRadius = 4F;
     this.butAdd2.Image        = global::OpenDental.Properties.Resources.Add;
     this.butAdd2.ImageAlign   = System.Drawing.ContentAlignment.MiddleLeft;
     this.butAdd2.Location     = new System.Drawing.Point(402, 636);
     this.butAdd2.Name         = "butAdd2";
     this.butAdd2.Size         = new System.Drawing.Size(88, 26);
     this.butAdd2.TabIndex     = 16;
     this.butAdd2.Text         = "Duplicate";
     this.butAdd2.Click       += new System.EventHandler(this.butAdd2_Click);
     //
     // gridMain
     //
     this.gridMain.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                   | System.Windows.Forms.AnchorStyles.Left)
                                                                  | System.Windows.Forms.AnchorStyles.Right)));
     this.gridMain.CellFont            = new System.Drawing.Font("Microsoft Sans Serif", 8.5F);
     this.gridMain.HasAddButton        = false;
     this.gridMain.HasDropDowns        = false;
     this.gridMain.HasMultilineHeaders = false;
     this.gridMain.HeaderFont          = new System.Drawing.Font("Microsoft Sans Serif", 8.5F, System.Drawing.FontStyle.Bold);
     this.gridMain.HeaderHeight        = 15;
     this.gridMain.HScrollVisible      = false;
     this.gridMain.Location            = new System.Drawing.Point(12, 37);
     this.gridMain.Name             = "gridMain";
     this.gridMain.ScrollValue      = 0;
     this.gridMain.Size             = new System.Drawing.Size(913, 590);
     this.gridMain.TabIndex         = 17;
     this.gridMain.Title            = "Prescriptions";
     this.gridMain.TitleFont        = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Bold);
     this.gridMain.TitleHeight      = 18;
     this.gridMain.TranslationName  = "TableRxSetup";
     this.gridMain.CellDoubleClick += new OpenDental.UI.ODGridClickEventHandler(this.gridMain_CellDoubleClick);
     //
     // checkProcCodeRequired
     //
     this.checkProcCodeRequired.Location = new System.Drawing.Point(12, 12);
     this.checkProcCodeRequired.Name     = "checkProcCodeRequired";
     this.checkProcCodeRequired.Size     = new System.Drawing.Size(913, 24);
     this.checkProcCodeRequired.TabIndex = 18;
     this.checkProcCodeRequired.Text     = "Procedure code required on some prescriptions";
     this.checkProcCodeRequired.UseVisualStyleBackColor = true;
     this.checkProcCodeRequired.Click += new System.EventHandler(this.checkProcCodeRequired_Click);
     //
     // FormRxSetup
     //
     this.CancelButton = this.butClose;
     this.ClientSize   = new System.Drawing.Size(942, 674);
     this.Controls.Add(this.checkProcCodeRequired);
     this.Controls.Add(this.gridMain);
     this.Controls.Add(this.butAdd2);
     this.Controls.Add(this.butAdd);
     this.Controls.Add(this.butClose);
     this.Icon          = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.MaximizeBox   = false;
     this.MinimizeBox   = false;
     this.Name          = "FormRxSetup";
     this.ShowInTaskbar = false;
     this.Text          = "Rx Setup";
     this.Load         += new System.EventHandler(this.FormRxSetup_Load);
     this.ResumeLayout(false);
 }
示例#21
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormRpProcOverpaid));
     this.butClose            = new OpenDental.UI.Button();
     this.butPrint            = new OpenDental.UI.Button();
     this.imageListCalendar   = new System.Windows.Forms.ImageList(this.components);
     this.gridMain            = new OpenDental.UI.ODGrid();
     this.contextMenuGrid     = new System.Windows.Forms.ContextMenu();
     this.menuItemGoToAccount = new System.Windows.Forms.MenuItem();
     this.butRefresh          = new OpenDental.UI.Button();
     this.groupBox2           = new System.Windows.Forms.GroupBox();
     this.butCurrent          = new OpenDental.UI.Button();
     this.butAll               = new OpenDental.UI.Button();
     this.butFind              = new OpenDental.UI.Button();
     this.textPatient          = new System.Windows.Forms.TextBox();
     this.labelPatient         = new System.Windows.Forms.Label();
     this.labelProv            = new System.Windows.Forms.Label();
     this.comboBoxMultiProv    = new OpenDental.UI.ComboBoxMulti();
     this.comboBoxMultiClinics = new OpenDental.UI.ComboBoxClinicPicker();
     this.dateRangePicker      = new OpenDental.UI.ODDateRangePicker();
     this.groupBox2.SuspendLayout();
     this.SuspendLayout();
     //
     // butClose
     //
     this.butClose.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.butClose.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this.butClose.Location     = new System.Drawing.Point(928, 658);
     this.butClose.Name         = "butClose";
     this.butClose.Size         = new System.Drawing.Size(75, 26);
     this.butClose.TabIndex     = 4;
     this.butClose.Text         = "&Close";
     this.butClose.Click       += new System.EventHandler(this.butClose_Click);
     //
     // butPrint
     //
     this.butPrint.Anchor     = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.butPrint.Image      = global::OpenDental.Properties.Resources.butPrintSmall;
     this.butPrint.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
     this.butPrint.Location   = new System.Drawing.Point(12, 658);
     this.butPrint.Name       = "butPrint";
     this.butPrint.Size       = new System.Drawing.Size(75, 26);
     this.butPrint.TabIndex   = 3;
     this.butPrint.Text       = "Print";
     this.butPrint.Click     += new System.EventHandler(this.butPrint_Click);
     //
     // imageListCalendar
     //
     this.imageListCalendar.ImageStream      = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageListCalendar.ImageStream")));
     this.imageListCalendar.TransparentColor = System.Drawing.Color.Transparent;
     this.imageListCalendar.Images.SetKeyName(0, "arrowDownTriangle.gif");
     this.imageListCalendar.Images.SetKeyName(1, "arrowUpTriangle.gif");
     //
     // gridMain
     //
     this.gridMain.AllowSortingByColumn = true;
     this.gridMain.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                   | System.Windows.Forms.AnchorStyles.Left)
                                                                  | System.Windows.Forms.AnchorStyles.Right)));
     this.gridMain.Location        = new System.Drawing.Point(12, 71);
     this.gridMain.Name            = "gridMain";
     this.gridMain.Size            = new System.Drawing.Size(991, 581);
     this.gridMain.TabIndex        = 69;
     this.gridMain.Title           = "Procedures Overpaid";
     this.gridMain.TranslationName = "TableProcedures";
     //
     // contextMenuGrid
     //
     this.contextMenuGrid.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.menuItemGoToAccount
     });
     //
     // menuItemGoToAccount
     //
     this.menuItemGoToAccount.Index  = 0;
     this.menuItemGoToAccount.Text   = "Go To Account";
     this.menuItemGoToAccount.Click += new System.EventHandler(this.menuItemGridGoToAccount_Click);
     //
     // butRefresh
     //
     this.butRefresh.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.butRefresh.Location = new System.Drawing.Point(928, 39);
     this.butRefresh.Name     = "butRefresh";
     this.butRefresh.Size     = new System.Drawing.Size(75, 26);
     this.butRefresh.TabIndex = 73;
     this.butRefresh.Text     = "Refresh";
     this.butRefresh.UseVisualStyleBackColor = true;
     this.butRefresh.Click += new System.EventHandler(this.butRefresh_Click);
     //
     // groupBox2
     //
     this.groupBox2.Controls.Add(this.butCurrent);
     this.groupBox2.Controls.Add(this.butAll);
     this.groupBox2.Controls.Add(this.butFind);
     this.groupBox2.Controls.Add(this.textPatient);
     this.groupBox2.Controls.Add(this.labelPatient);
     this.groupBox2.Controls.Add(this.labelProv);
     this.groupBox2.Controls.Add(this.comboBoxMultiProv);
     this.groupBox2.Controls.Add(this.comboBoxMultiClinics);
     this.groupBox2.Controls.Add(this.dateRangePicker);
     this.groupBox2.Location = new System.Drawing.Point(12, 4);
     this.groupBox2.Name     = "groupBox2";
     this.groupBox2.Size     = new System.Drawing.Size(910, 61);
     this.groupBox2.TabIndex = 77;
     this.groupBox2.TabStop  = false;
     this.groupBox2.Text     = "Filters";
     //
     // butCurrent
     //
     this.butCurrent.Location = new System.Drawing.Point(698, 31);
     this.butCurrent.Name     = "butCurrent";
     this.butCurrent.Size     = new System.Drawing.Size(63, 24);
     this.butCurrent.TabIndex = 78;
     this.butCurrent.Text     = "Current";
     this.butCurrent.Click   += new System.EventHandler(this.butCurrent_Click);
     //
     // butAll
     //
     this.butAll.Location = new System.Drawing.Point(841, 31);
     this.butAll.Name     = "butAll";
     this.butAll.Size     = new System.Drawing.Size(63, 24);
     this.butAll.TabIndex = 77;
     this.butAll.Text     = "All";
     this.butAll.Click   += new System.EventHandler(this.butAll_Click);
     //
     // butFind
     //
     this.butFind.Location = new System.Drawing.Point(770, 31);
     this.butFind.Name     = "butFind";
     this.butFind.Size     = new System.Drawing.Size(63, 24);
     this.butFind.TabIndex = 76;
     this.butFind.Text     = "Find";
     this.butFind.Click   += new System.EventHandler(this.butFind_Click);
     //
     // textPatient
     //
     this.textPatient.Location = new System.Drawing.Point(698, 11);
     this.textPatient.Name     = "textPatient";
     this.textPatient.Size     = new System.Drawing.Size(206, 20);
     this.textPatient.TabIndex = 75;
     //
     // labelPatient
     //
     this.labelPatient.Location  = new System.Drawing.Point(631, 15);
     this.labelPatient.Name      = "labelPatient";
     this.labelPatient.Size      = new System.Drawing.Size(65, 13);
     this.labelPatient.TabIndex  = 74;
     this.labelPatient.Text      = "Patient";
     this.labelPatient.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // labelProv
     //
     this.labelProv.Location  = new System.Drawing.Point(412, 15);
     this.labelProv.Name      = "labelProv";
     this.labelProv.Size      = new System.Drawing.Size(55, 16);
     this.labelProv.TabIndex  = 73;
     this.labelProv.Text      = "Providers";
     this.labelProv.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // comboBoxMultiProv
     //
     this.comboBoxMultiProv.ArraySelectedIndices = new int[0];
     this.comboBoxMultiProv.BackColor            = System.Drawing.SystemColors.Window;
     this.comboBoxMultiProv.Items           = ((System.Collections.ArrayList)(resources.GetObject("comboBoxMultiProv.Items")));
     this.comboBoxMultiProv.Location        = new System.Drawing.Point(469, 12);
     this.comboBoxMultiProv.Name            = "comboBoxMultiProv";
     this.comboBoxMultiProv.SelectedIndices = ((System.Collections.ArrayList)(resources.GetObject("comboBoxMultiProv.SelectedIndices")));
     this.comboBoxMultiProv.Size            = new System.Drawing.Size(160, 21);
     this.comboBoxMultiProv.TabIndex        = 72;
     this.comboBoxMultiProv.MouseLeave     += new System.EventHandler(this.comboBoxMultiProv_MouseLeave);
     //
     // comboBoxMultiClinics
     //
     this.comboBoxMultiClinics.IncludeAll        = true;
     this.comboBoxMultiClinics.IncludeUnassigned = true;
     this.comboBoxMultiClinics.Location          = new System.Drawing.Point(432, 34);
     this.comboBoxMultiClinics.Name = "comboBoxMultiClinics";
     this.comboBoxMultiClinics.SelectionModeMulti = true;
     this.comboBoxMultiClinics.Size     = new System.Drawing.Size(197, 21);
     this.comboBoxMultiClinics.TabIndex = 71;
     //
     // dateRangePicker
     //
     this.dateRangePicker.BackColor           = System.Drawing.SystemColors.Control;
     this.dateRangePicker.DefaultDateTimeFrom = new System.DateTime(2018, 1, 1, 0, 0, 0, 0);
     this.dateRangePicker.DefaultDateTimeTo   = new System.DateTime(2018, 1, 9, 0, 0, 0, 0);
     this.dateRangePicker.EnableWeekButtons   = false;
     this.dateRangePicker.Location            = new System.Drawing.Point(5, 11);
     this.dateRangePicker.MaximumSize         = new System.Drawing.Size(0, 185);
     this.dateRangePicker.MinimumSize         = new System.Drawing.Size(453, 22);
     this.dateRangePicker.Name     = "dateRangePicker";
     this.dateRangePicker.Size     = new System.Drawing.Size(453, 22);
     this.dateRangePicker.TabIndex = 0;
     //
     // FormRpProcOverpaid
     //
     this.AcceptButton = this.butPrint;
     this.ClientSize   = new System.Drawing.Size(1015, 696);
     this.Controls.Add(this.butRefresh);
     this.Controls.Add(this.butClose);
     this.Controls.Add(this.butPrint);
     this.Controls.Add(this.gridMain);
     this.Controls.Add(this.groupBox2);
     this.Icon        = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.MinimumSize = new System.Drawing.Size(1031, 250);
     this.Name        = "FormRpProcOverpaid";
     this.Text        = "Procedures Overpaid Report";
     this.Load       += new System.EventHandler(this.FormProcOverpaid_Load);
     this.groupBox2.ResumeLayout(false);
     this.groupBox2.PerformLayout();
     this.ResumeLayout(false);
 }
示例#22
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormFormPatEdit));
     this.gridMain  = new OpenDental.UI.ODGrid();
     this.multInput = new OpenDental.UI.ContrMultInput();
     this.butOK     = new OpenDental.UI.Button();
     this.butCancel = new OpenDental.UI.Button();
     this.butDelete = new OpenDental.UI.Button();
     this.SuspendLayout();
     //
     // gridMain
     //
     this.gridMain.HScrollVisible   = false;
     this.gridMain.Location         = new System.Drawing.Point(12, 12);
     this.gridMain.Name             = "gridMain";
     this.gridMain.ScrollValue      = 0;
     this.gridMain.Size             = new System.Drawing.Size(757, 607);
     this.gridMain.TabIndex         = 3;
     this.gridMain.Title            = "Questions";
     this.gridMain.TranslationName  = "TableQuestions";
     this.gridMain.CellDoubleClick += new OpenDental.UI.ODGridClickEventHandler(this.gridMain_CellDoubleClick);
     //
     // multInput
     //
     this.multInput.Location = new System.Drawing.Point(12, 12);
     this.multInput.Name     = "multInput";
     this.multInput.Size     = new System.Drawing.Size(757, 640);
     this.multInput.TabIndex = 2;
     //
     // butOK
     //
     this.butOK.AdjustImageLocation = new System.Drawing.Point(0, 0);
     this.butOK.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.butOK.Autosize     = true;
     this.butOK.BtnShape     = OpenDental.UI.enumType.BtnShape.Rectangle;
     this.butOK.BtnStyle     = OpenDental.UI.enumType.XPStyle.Silver;
     this.butOK.CornerRadius = 4F;
     this.butOK.Location     = new System.Drawing.Point(795, 585);
     this.butOK.Name         = "butOK";
     this.butOK.Size         = new System.Drawing.Size(75, 26);
     this.butOK.TabIndex     = 1;
     this.butOK.Text         = "&OK";
     this.butOK.Click       += new System.EventHandler(this.butOK_Click);
     //
     // butCancel
     //
     this.butCancel.AdjustImageLocation = new System.Drawing.Point(0, 0);
     this.butCancel.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.butCancel.Autosize     = true;
     this.butCancel.BtnShape     = OpenDental.UI.enumType.BtnShape.Rectangle;
     this.butCancel.BtnStyle     = OpenDental.UI.enumType.XPStyle.Silver;
     this.butCancel.CornerRadius = 4F;
     this.butCancel.Location     = new System.Drawing.Point(795, 626);
     this.butCancel.Name         = "butCancel";
     this.butCancel.Size         = new System.Drawing.Size(75, 26);
     this.butCancel.TabIndex     = 0;
     this.butCancel.Text         = "&Cancel";
     this.butCancel.Click       += new System.EventHandler(this.butCancel_Click);
     //
     // butDelete
     //
     this.butDelete.AdjustImageLocation = new System.Drawing.Point(0, 0);
     this.butDelete.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.butDelete.Autosize     = true;
     this.butDelete.BtnShape     = OpenDental.UI.enumType.BtnShape.Rectangle;
     this.butDelete.BtnStyle     = OpenDental.UI.enumType.XPStyle.Silver;
     this.butDelete.CornerRadius = 4F;
     this.butDelete.Image        = global::OpenDental.Properties.Resources.deleteX;
     this.butDelete.ImageAlign   = System.Drawing.ContentAlignment.MiddleLeft;
     this.butDelete.Location     = new System.Drawing.Point(12, 625);
     this.butDelete.Name         = "butDelete";
     this.butDelete.Size         = new System.Drawing.Size(88, 26);
     this.butDelete.TabIndex     = 4;
     this.butDelete.Text         = "Delete";
     this.butDelete.Click       += new System.EventHandler(this.butDelete_Click);
     //
     // FormFormPatEdit
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(893, 671);
     this.Controls.Add(this.butDelete);
     this.Controls.Add(this.gridMain);
     this.Controls.Add(this.multInput);
     this.Controls.Add(this.butOK);
     this.Controls.Add(this.butCancel);
     this.Icon          = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.MaximizeBox   = false;
     this.MinimizeBox   = false;
     this.Name          = "FormFormPatEdit";
     this.ShowInTaskbar = false;
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text          = "Questionnaire";
     this.Shown        += new System.EventHandler(this.FormFormPatEdit_Shown);
     this.Load         += new System.EventHandler(this.FormFormPatEdit_Load);
     this.ResumeLayout(false);
 }
示例#23
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormMedications));
     this.butCancel            = new OpenDental.UI.Button();
     this.butOK                = new OpenDental.UI.Button();
     this.butAddGeneric        = new OpenDental.UI.Button();
     this.butAddBrand          = new OpenDental.UI.Button();
     this.gridAllMedications   = new OpenDental.UI.ODGrid();
     this.textSearch           = new System.Windows.Forms.TextBox();
     this.label1               = new System.Windows.Forms.Label();
     this.tabMedications       = new System.Windows.Forms.TabControl();
     this.tabAllMedications    = new System.Windows.Forms.TabPage();
     this.tabMissing           = new System.Windows.Forms.TabPage();
     this.butConvertBrand      = new OpenDental.UI.Button();
     this.butConvertGeneric    = new OpenDental.UI.Button();
     this.gridMissing          = new OpenDental.UI.ODGrid();
     this.butImportMedications = new OpenDental.UI.Button();
     this.butExportMedications = new OpenDental.UI.Button();
     this.tabMedications.SuspendLayout();
     this.tabAllMedications.SuspendLayout();
     this.tabMissing.SuspendLayout();
     this.SuspendLayout();
     //
     // butCancel
     //
     this.butCancel.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.butCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this.butCancel.Location     = new System.Drawing.Point(858, 635);
     this.butCancel.Name         = "butCancel";
     this.butCancel.Size         = new System.Drawing.Size(75, 26);
     this.butCancel.TabIndex     = 0;
     this.butCancel.Text         = "Cancel";
     this.butCancel.Click       += new System.EventHandler(this.butCancel_Click);
     //
     // butOK
     //
     this.butOK.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.butOK.Location = new System.Drawing.Point(777, 635);
     this.butOK.Name     = "butOK";
     this.butOK.Size     = new System.Drawing.Size(75, 26);
     this.butOK.TabIndex = 1;
     this.butOK.Text     = "OK";
     this.butOK.Click   += new System.EventHandler(this.butOK_Click);
     //
     // butAddGeneric
     //
     this.butAddGeneric.Image      = global::OpenDental.Properties.Resources.Add;
     this.butAddGeneric.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
     this.butAddGeneric.Location   = new System.Drawing.Point(6, 6);
     this.butAddGeneric.Name       = "butAddGeneric";
     this.butAddGeneric.Size       = new System.Drawing.Size(113, 26);
     this.butAddGeneric.TabIndex   = 33;
     this.butAddGeneric.Text       = "Add Generic";
     this.butAddGeneric.Click     += new System.EventHandler(this.butAddGeneric_Click);
     //
     // butAddBrand
     //
     this.butAddBrand.Image      = global::OpenDental.Properties.Resources.Add;
     this.butAddBrand.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
     this.butAddBrand.Location   = new System.Drawing.Point(125, 6);
     this.butAddBrand.Name       = "butAddBrand";
     this.butAddBrand.Size       = new System.Drawing.Size(113, 26);
     this.butAddBrand.TabIndex   = 34;
     this.butAddBrand.Text       = "Add Brand";
     this.butAddBrand.Click     += new System.EventHandler(this.butAddBrand_Click);
     //
     // gridAllMedications
     //
     this.gridAllMedications.AllowSortingByColumn = true;
     this.gridAllMedications.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                             | System.Windows.Forms.AnchorStyles.Left)
                                                                            | System.Windows.Forms.AnchorStyles.Right)));
     this.gridAllMedications.Location         = new System.Drawing.Point(5, 38);
     this.gridAllMedications.Name             = "gridAllMedications";
     this.gridAllMedications.Size             = new System.Drawing.Size(907, 558);
     this.gridAllMedications.TabIndex         = 37;
     this.gridAllMedications.Title            = "All Medications";
     this.gridAllMedications.TranslationName  = "FormMedications";
     this.gridAllMedications.CellDoubleClick += new OpenDental.UI.ODGridClickEventHandler(this.gridAllMedications_CellDoubleClick);
     this.gridAllMedications.CellClick       += new OpenDental.UI.ODGridClickEventHandler(this.gridAllMedications_CellClick);
     //
     // textSearch
     //
     this.textSearch.Location     = new System.Drawing.Point(367, 9);
     this.textSearch.Name         = "textSearch";
     this.textSearch.Size         = new System.Drawing.Size(195, 20);
     this.textSearch.TabIndex     = 0;
     this.textSearch.TextChanged += new System.EventHandler(this.textSearch_TextChanged);
     //
     // label1
     //
     this.label1.Location  = new System.Drawing.Point(239, 12);
     this.label1.Name      = "label1";
     this.label1.Size      = new System.Drawing.Size(127, 17);
     this.label1.TabIndex  = 39;
     this.label1.Text      = "Search";
     this.label1.TextAlign = System.Drawing.ContentAlignment.TopRight;
     //
     // tabMedications
     //
     this.tabMedications.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                         | System.Windows.Forms.AnchorStyles.Left)
                                                                        | System.Windows.Forms.AnchorStyles.Right)));
     this.tabMedications.Controls.Add(this.tabAllMedications);
     this.tabMedications.Controls.Add(this.tabMissing);
     this.tabMedications.Location              = new System.Drawing.Point(9, 3);
     this.tabMedications.Name                  = "tabMedications";
     this.tabMedications.SelectedIndex         = 0;
     this.tabMedications.Size                  = new System.Drawing.Size(924, 626);
     this.tabMedications.TabIndex              = 40;
     this.tabMedications.SelectedIndexChanged += new System.EventHandler(this.tabMedications_SelectedIndexChanged);
     //
     // tabAllMedications
     //
     this.tabAllMedications.Controls.Add(this.butExportMedications);
     this.tabAllMedications.Controls.Add(this.butImportMedications);
     this.tabAllMedications.Controls.Add(this.gridAllMedications);
     this.tabAllMedications.Controls.Add(this.textSearch);
     this.tabAllMedications.Controls.Add(this.butAddGeneric);
     this.tabAllMedications.Controls.Add(this.label1);
     this.tabAllMedications.Controls.Add(this.butAddBrand);
     this.tabAllMedications.Location = new System.Drawing.Point(4, 22);
     this.tabAllMedications.Name     = "tabAllMedications";
     this.tabAllMedications.Padding  = new System.Windows.Forms.Padding(3);
     this.tabAllMedications.Size     = new System.Drawing.Size(916, 600);
     this.tabAllMedications.TabIndex = 0;
     this.tabAllMedications.Text     = "All Medications";
     this.tabAllMedications.UseVisualStyleBackColor = true;
     //
     // butExportMedications
     //
     this.butExportMedications.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.butExportMedications.Location = new System.Drawing.Point(825, 6);
     this.butExportMedications.Name     = "butExportMedications";
     this.butExportMedications.Size     = new System.Drawing.Size(85, 26);
     this.butExportMedications.TabIndex = 42;
     this.butExportMedications.Text     = "Export";
     this.butExportMedications.Click   += new System.EventHandler(this.butExportMedications_Click);
     //
     // butImportMedications
     //
     this.butImportMedications.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.butImportMedications.Location = new System.Drawing.Point(734, 6);
     this.butImportMedications.Name     = "butImportMedications";
     this.butImportMedications.Size     = new System.Drawing.Size(85, 26);
     this.butImportMedications.TabIndex = 41;
     this.butImportMedications.Text     = "Import";
     this.butImportMedications.Click   += new System.EventHandler(this.butImportMedications_Click);
     //
     // tabMissing
     //
     this.tabMissing.Controls.Add(this.butConvertBrand);
     this.tabMissing.Controls.Add(this.butConvertGeneric);
     this.tabMissing.Controls.Add(this.gridMissing);
     this.tabMissing.Location = new System.Drawing.Point(4, 22);
     this.tabMissing.Name     = "tabMissing";
     this.tabMissing.Size     = new System.Drawing.Size(916, 600);
     this.tabMissing.TabIndex = 2;
     this.tabMissing.Text     = "Missing Generic/Brand";
     this.tabMissing.UseVisualStyleBackColor = true;
     //
     // butConvertBrand
     //
     this.butConvertBrand.Image      = global::OpenDental.Properties.Resources.Add;
     this.butConvertBrand.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
     this.butConvertBrand.Location   = new System.Drawing.Point(161, 6);
     this.butConvertBrand.Name       = "butConvertBrand";
     this.butConvertBrand.Size       = new System.Drawing.Size(150, 26);
     this.butConvertBrand.TabIndex   = 40;
     this.butConvertBrand.Text       = "Convert To Brand";
     this.butConvertBrand.Click     += new System.EventHandler(this.butConvertBrand_Click);
     //
     // butConvertGeneric
     //
     this.butConvertGeneric.Image      = global::OpenDental.Properties.Resources.Add;
     this.butConvertGeneric.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
     this.butConvertGeneric.Location   = new System.Drawing.Point(5, 6);
     this.butConvertGeneric.Name       = "butConvertGeneric";
     this.butConvertGeneric.Size       = new System.Drawing.Size(150, 26);
     this.butConvertGeneric.TabIndex   = 39;
     this.butConvertGeneric.Text       = "Convert To Generic";
     this.butConvertGeneric.Click     += new System.EventHandler(this.butConvertGeneric_Click);
     //
     // gridMissing
     //
     this.gridMissing.AllowSortingByColumn = true;
     this.gridMissing.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                      | System.Windows.Forms.AnchorStyles.Left)
                                                                     | System.Windows.Forms.AnchorStyles.Right)));
     this.gridMissing.Location        = new System.Drawing.Point(5, 38);
     this.gridMissing.Name            = "gridMissing";
     this.gridMissing.Size            = new System.Drawing.Size(907, 559);
     this.gridMissing.TabIndex        = 38;
     this.gridMissing.Title           = "Medications Missing Generic or Brand";
     this.gridMissing.TranslationName = "FormMedications";
     //
     // FormMedications
     //
     this.AcceptButton = this.butOK;
     this.CancelButton = this.butCancel;
     this.ClientSize   = new System.Drawing.Size(941, 671);
     this.Controls.Add(this.tabMedications);
     this.Controls.Add(this.butOK);
     this.Controls.Add(this.butCancel);
     this.Icon          = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.MaximizeBox   = false;
     this.MinimizeBox   = false;
     this.MinimumSize   = new System.Drawing.Size(793, 432);
     this.Name          = "FormMedications";
     this.ShowInTaskbar = false;
     this.Text          = "Medications";
     this.Load         += new System.EventHandler(this.FormMedications_Load);
     this.Shown        += new System.EventHandler(this.FormMedications_Shown);
     this.tabMedications.ResumeLayout(false);
     this.tabAllMedications.ResumeLayout(false);
     this.tabAllMedications.PerformLayout();
     this.tabMissing.ResumeLayout(false);
     this.ResumeLayout(false);
 }
示例#24
0
        public static bool HideDef(ODGrid gridDefs, DefCatOptions selectedDefCatOpt)
        {
            if (gridDefs.GetSelectedIndex() == -1)
            {
                MsgBox.Show(_lanThis, "Please select item first,");
                return(false);
            }
            Def selectedDef = (Def)gridDefs.ListGridRows[gridDefs.GetSelectedIndex()].Tag;

            if (selectedDef.Category == DefCat.ProviderSpecialties &&
                (Providers.IsSpecialtyInUse(selectedDef.DefNum) ||
                 Referrals.IsSpecialtyInUse(selectedDef.DefNum)))
            {
                MsgBox.Show(_lanThis, "You cannot hide a specialty if it is in use by a provider or a referral source.");
                return(false);
            }
            if (Defs.IsDefinitionInUse(selectedDef))
            {
                if (selectedDef.DefNum == PrefC.GetLong(PrefName.BrokenAppointmentAdjustmentType) ||
                    selectedDef.DefNum == PrefC.GetLong(PrefName.AppointmentTimeArrivedTrigger) ||
                    selectedDef.DefNum == PrefC.GetLong(PrefName.AppointmentTimeSeatedTrigger) ||
                    selectedDef.DefNum == PrefC.GetLong(PrefName.AppointmentTimeDismissedTrigger) ||
                    selectedDef.DefNum == PrefC.GetLong(PrefName.TreatPlanDiscountAdjustmentType) ||
                    selectedDef.DefNum == PrefC.GetLong(PrefName.BillingChargeAdjustmentType) ||
                    selectedDef.DefNum == PrefC.GetLong(PrefName.FinanceChargeAdjustmentType) ||
                    selectedDef.DefNum == PrefC.GetLong(PrefName.RecurringChargesPayTypeCC) ||
                    selectedDef.DefNum == PrefC.GetLong(PrefName.TpUnearnedType))
                {
                    MsgBox.Show(_lanThis, "You cannot hide a definition if it is in use within Module Preferences.");
                    return(false);
                }
                else if (selectedDef.DefNum == PrefC.GetLong(PrefName.PracticeDefaultBillType))
                {
                    MsgBox.Show(_lanThis, "You cannot hide a billing type when it is selected as the practice default billing type.");
                    return(false);
                }
                else
                {
                    if (!MsgBox.Show(_lanThis, MsgBoxButtons.OKCancel, "Warning: This definition is currently in use within the program."))
                    {
                        return(false);
                    }
                }
            }
            //Stop users from hiding the last definition in categories that must have at least one def in them.
            if (Defs.IsHidable(selectedDef.Category))
            {
                List <Def> listDefsCurNotHidden = Defs.GetDefsForCategory(selectedDefCatOpt.DefCat, true);
                if (listDefsCurNotHidden.Count == 1)
                {
                    MsgBox.Show(_lanThis, "You cannot hide the last definition in this category.");
                    return(false);
                }
            }
            //Warn the user if they are about to hide a billing type currently in use.
            if (selectedDefCatOpt.DefCat == DefCat.BillingTypes && Patients.IsBillingTypeInUse(selectedDef.DefNum))
            {
                if (!MsgBox.Show(_lanThis, MsgBoxButtons.OKCancel, "Warning: Billing type is currently in use by patients, insurance plans, or preferences."))
                {
                    return(false);
                }
            }
            Defs.HideDef(selectedDef);
            return(true);
        }
示例#25
0
        ///<summary>Fills the passed in grid with the definitions in the passed in list.</summary>
        public static void FillGridDefs(ODGrid gridDefs, DefCatOptions selectedDefCatOpt, List <Def> listDefsCur)
        {
            Def selectedDef = null;

            if (gridDefs.GetSelectedIndex() > -1)
            {
                selectedDef = (Def)gridDefs.Rows[gridDefs.GetSelectedIndex()].Tag;
            }
            int scroll = gridDefs.ScrollValue;

            gridDefs.BeginUpdate();
            gridDefs.Columns.Clear();
            ODGridColumn col;

            col = new ODGridColumn(Lan.g("TableDefs", "Name"), 190);
            gridDefs.Columns.Add(col);
            col = new ODGridColumn(selectedDefCatOpt.ValueText, 190);
            gridDefs.Columns.Add(col);
            col = new ODGridColumn(selectedDefCatOpt.EnableColor ? Lan.g("TableDefs", "Color") : "", 40);
            gridDefs.Columns.Add(col);
            col = new ODGridColumn(selectedDefCatOpt.CanHide ? Lan.g("TableDefs", "Hide") : "", 30, HorizontalAlignment.Center);
            gridDefs.Columns.Add(col);
            gridDefs.Rows.Clear();
            ODGridRow row;

            foreach (Def defCur in listDefsCur)
            {
                if (!PrefC.IsODHQ && defCur.ItemValue == CommItemTypeAuto.ODHQ.ToString())
                {
                    continue;
                }
                if (Defs.IsDefDeprecated(defCur))
                {
                    defCur.IsHidden = true;
                }
                row = new ODGridRow();
                if (selectedDefCatOpt.CanEditName)
                {
                    row.Cells.Add(defCur.ItemName);
                }
                else                                                          //Users cannot edit the item name so let them translate them.
                {
                    row.Cells.Add(Lan.g("FormDefinitions", defCur.ItemName)); //Doesn't use 'this' so that renaming the form doesn't change the translation
                }
                if (selectedDefCatOpt.DefCat == DefCat.ImageCats)
                {
                    row.Cells.Add(GetItemDescForImages(defCur.ItemValue));
                }
                else if (selectedDefCatOpt.DefCat == DefCat.AutoNoteCats)
                {
                    Dictionary <string, string> dictAutoNoteDefs = new Dictionary <string, string>();
                    dictAutoNoteDefs = listDefsCur.ToDictionary(x => x.DefNum.ToString(), x => x.ItemName);
                    string nameCur;
                    row.Cells.Add(dictAutoNoteDefs.TryGetValue(defCur.ItemValue, out nameCur) ? nameCur : defCur.ItemValue);
                }
                else if (selectedDefCatOpt.DefCat == DefCat.WebSchedNewPatApptTypes)
                {
                    AppointmentType appointmentType = AppointmentTypes.GetWebSchedNewPatApptTypeByDef(defCur.DefNum);
                    row.Cells.Add(appointmentType == null ? "" : appointmentType.AppointmentTypeName);
                }
                else if (selectedDefCatOpt.DoShowItemOrderInValue)
                {
                    row.Cells.Add(defCur.ItemOrder.ToString());
                }
                else
                {
                    row.Cells.Add(defCur.ItemValue);
                }
                row.Cells.Add("");
                if (selectedDefCatOpt.EnableColor)
                {
                    row.Cells[row.Cells.Count - 1].CellColor = defCur.ItemColor;
                }
                if (defCur.IsHidden)
                {
                    row.Cells.Add("X");
                }
                else
                {
                    row.Cells.Add("");
                }
                row.Tag = defCur;
                gridDefs.Rows.Add(row);
            }
            gridDefs.EndUpdate();
            if (selectedDef != null)
            {
                for (int i = 0; i < gridDefs.Rows.Count; i++)
                {
                    if (((Def)gridDefs.Rows[i].Tag).DefNum == selectedDef.DefNum)
                    {
                        gridDefs.SetSelected(i, true);
                        break;
                    }
                }
            }
            gridDefs.ScrollValue = scroll;
        }
示例#26
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormDiseaseDefs));
     this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
     this.label1   = new System.Windows.Forms.Label();
     this.gridMain = new OpenDental.UI.ODGrid();
     this.butOK    = new OpenDental.UI.Button();
     this.butDown  = new OpenDental.UI.Button();
     this.butUp    = new OpenDental.UI.Button();
     this.butClose = new OpenDental.UI.Button();
     this.butAdd   = new OpenDental.UI.Button();
     this.SuspendLayout();
     //
     // label1
     //
     this.label1.Location  = new System.Drawing.Point(15, 11);
     this.label1.Name      = "label1";
     this.label1.Size      = new System.Drawing.Size(335, 20);
     this.label1.TabIndex  = 8;
     this.label1.Text      = "This is a list of medical problems that patients might have. ";
     this.label1.TextAlign = System.Drawing.ContentAlignment.BottomLeft;
     //
     // gridMain
     //
     this.gridMain.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                   | System.Windows.Forms.AnchorStyles.Left)
                                                                  | System.Windows.Forms.AnchorStyles.Right)));
     this.gridMain.HScrollVisible   = false;
     this.gridMain.Location         = new System.Drawing.Point(18, 35);
     this.gridMain.Name             = "gridMain";
     this.gridMain.ScrollValue      = 0;
     this.gridMain.Size             = new System.Drawing.Size(548, 628);
     this.gridMain.TabIndex         = 16;
     this.gridMain.Title            = null;
     this.gridMain.TranslationName  = null;
     this.gridMain.CellDoubleClick += new OpenDental.UI.ODGridClickEventHandler(this.gridMain_CellDoubleClick);
     //
     // butOK
     //
     this.butOK.AdjustImageLocation = new System.Drawing.Point(0, 0);
     this.butOK.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.butOK.Autosize     = true;
     this.butOK.BtnShape     = OpenDental.UI.enumType.BtnShape.Rectangle;
     this.butOK.BtnStyle     = OpenDental.UI.enumType.XPStyle.Silver;
     this.butOK.CornerRadius = 4F;
     this.butOK.Location     = new System.Drawing.Point(584, 605);
     this.butOK.Name         = "butOK";
     this.butOK.Size         = new System.Drawing.Size(79, 26);
     this.butOK.TabIndex     = 15;
     this.butOK.Text         = "OK";
     this.butOK.Click       += new System.EventHandler(this.butOK_Click);
     //
     // butDown
     //
     this.butDown.AdjustImageLocation = new System.Drawing.Point(0, 0);
     this.butDown.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.butDown.Autosize     = true;
     this.butDown.BtnShape     = OpenDental.UI.enumType.BtnShape.Rectangle;
     this.butDown.BtnStyle     = OpenDental.UI.enumType.XPStyle.Silver;
     this.butDown.CornerRadius = 4F;
     this.butDown.Image        = global::OpenDental.Properties.Resources.down;
     this.butDown.ImageAlign   = System.Drawing.ContentAlignment.MiddleLeft;
     this.butDown.Location     = new System.Drawing.Point(584, 464);
     this.butDown.Name         = "butDown";
     this.butDown.Size         = new System.Drawing.Size(79, 26);
     this.butDown.TabIndex     = 14;
     this.butDown.Text         = "&Down";
     this.butDown.Click       += new System.EventHandler(this.butDown_Click);
     //
     // butUp
     //
     this.butUp.AdjustImageLocation = new System.Drawing.Point(0, 1);
     this.butUp.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.butUp.Autosize     = true;
     this.butUp.BtnShape     = OpenDental.UI.enumType.BtnShape.Rectangle;
     this.butUp.BtnStyle     = OpenDental.UI.enumType.XPStyle.Silver;
     this.butUp.CornerRadius = 4F;
     this.butUp.Image        = global::OpenDental.Properties.Resources.up;
     this.butUp.ImageAlign   = System.Drawing.ContentAlignment.MiddleLeft;
     this.butUp.Location     = new System.Drawing.Point(584, 432);
     this.butUp.Name         = "butUp";
     this.butUp.Size         = new System.Drawing.Size(79, 26);
     this.butUp.TabIndex     = 13;
     this.butUp.Text         = "&Up";
     this.butUp.Click       += new System.EventHandler(this.butUp_Click);
     //
     // butClose
     //
     this.butClose.AdjustImageLocation = new System.Drawing.Point(0, 0);
     this.butClose.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.butClose.Autosize     = true;
     this.butClose.BtnShape     = OpenDental.UI.enumType.BtnShape.Rectangle;
     this.butClose.BtnStyle     = OpenDental.UI.enumType.XPStyle.Silver;
     this.butClose.CornerRadius = 4F;
     this.butClose.Location     = new System.Drawing.Point(584, 637);
     this.butClose.Name         = "butClose";
     this.butClose.Size         = new System.Drawing.Size(79, 26);
     this.butClose.TabIndex     = 1;
     this.butClose.Text         = "Close";
     this.butClose.Click       += new System.EventHandler(this.butClose_Click);
     //
     // butAdd
     //
     this.butAdd.AdjustImageLocation = new System.Drawing.Point(0, 0);
     this.butAdd.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.butAdd.Autosize     = true;
     this.butAdd.BtnShape     = OpenDental.UI.enumType.BtnShape.Rectangle;
     this.butAdd.BtnStyle     = OpenDental.UI.enumType.XPStyle.Silver;
     this.butAdd.CornerRadius = 4F;
     this.butAdd.Image        = global::OpenDental.Properties.Resources.Add;
     this.butAdd.ImageAlign   = System.Drawing.ContentAlignment.MiddleLeft;
     this.butAdd.Location     = new System.Drawing.Point(584, 265);
     this.butAdd.Name         = "butAdd";
     this.butAdd.Size         = new System.Drawing.Size(79, 26);
     this.butAdd.TabIndex     = 7;
     this.butAdd.Text         = "&Add";
     this.butAdd.Click       += new System.EventHandler(this.butAdd_Click);
     //
     // FormDiseaseDefs
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(682, 675);
     this.Controls.Add(this.gridMain);
     this.Controls.Add(this.butOK);
     this.Controls.Add(this.butDown);
     this.Controls.Add(this.butUp);
     this.Controls.Add(this.label1);
     this.Controls.Add(this.butClose);
     this.Controls.Add(this.butAdd);
     this.Icon          = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.MaximizeBox   = false;
     this.MinimizeBox   = false;
     this.Name          = "FormDiseaseDefs";
     this.ShowInTaskbar = false;
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text          = "Problems";
     this.FormClosing  += new System.Windows.Forms.FormClosingEventHandler(this.FormDiseaseDefs_FormClosing);
     this.Load         += new System.EventHandler(this.FormDiseaseDefs_Load);
     this.ResumeLayout(false);
 }
示例#27
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormRxSetup));
     this.butClose = new OpenDental.UI.Button();
     this.butAdd   = new OpenDental.UI.Button();
     this.butAdd2  = new OpenDental.UI.Button();
     this.gridMain = new OpenDental.UI.ODGrid();
     this.SuspendLayout();
     //
     // butClose
     //
     this.butClose.AdjustImageLocation = new System.Drawing.Point(0, 0);
     this.butClose.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.butClose.Autosize     = true;
     this.butClose.BtnShape     = OpenDental.UI.enumType.BtnShape.Rectangle;
     this.butClose.BtnStyle     = OpenDental.UI.enumType.XPStyle.Silver;
     this.butClose.CornerRadius = 4F;
     this.butClose.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this.butClose.Location     = new System.Drawing.Point(850, 636);
     this.butClose.Name         = "butClose";
     this.butClose.Size         = new System.Drawing.Size(75, 26);
     this.butClose.TabIndex     = 4;
     this.butClose.Text         = "&Close";
     this.butClose.Click       += new System.EventHandler(this.butClose_Click);
     //
     // butAdd
     //
     this.butAdd.AdjustImageLocation = new System.Drawing.Point(0, 0);
     this.butAdd.Autosize            = true;
     this.butAdd.BtnShape            = OpenDental.UI.enumType.BtnShape.Rectangle;
     this.butAdd.BtnStyle            = OpenDental.UI.enumType.XPStyle.Silver;
     this.butAdd.CornerRadius        = 4F;
     this.butAdd.Image      = global::OpenDental.Properties.Resources.Add;
     this.butAdd.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
     this.butAdd.Location   = new System.Drawing.Point(548, 636);
     this.butAdd.Name       = "butAdd";
     this.butAdd.Size       = new System.Drawing.Size(88, 26);
     this.butAdd.TabIndex   = 14;
     this.butAdd.Text       = "Add &New";
     this.butAdd.Click     += new System.EventHandler(this.butAdd_Click);
     //
     // butAdd2
     //
     this.butAdd2.AdjustImageLocation = new System.Drawing.Point(0, 0);
     this.butAdd2.Autosize            = true;
     this.butAdd2.BtnShape            = OpenDental.UI.enumType.BtnShape.Rectangle;
     this.butAdd2.BtnStyle            = OpenDental.UI.enumType.XPStyle.Silver;
     this.butAdd2.CornerRadius        = 4F;
     this.butAdd2.Image      = global::OpenDental.Properties.Resources.Add;
     this.butAdd2.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
     this.butAdd2.Location   = new System.Drawing.Point(402, 636);
     this.butAdd2.Name       = "butAdd2";
     this.butAdd2.Size       = new System.Drawing.Size(88, 26);
     this.butAdd2.TabIndex   = 16;
     this.butAdd2.Text       = "Duplicate";
     this.butAdd2.Click     += new System.EventHandler(this.butAdd2_Click);
     //
     // gridMain
     //
     this.gridMain.HScrollVisible   = false;
     this.gridMain.Location         = new System.Drawing.Point(12, 12);
     this.gridMain.Name             = "gridMain";
     this.gridMain.ScrollValue      = 0;
     this.gridMain.Size             = new System.Drawing.Size(913, 612);
     this.gridMain.TabIndex         = 17;
     this.gridMain.Title            = "Prescriptions";
     this.gridMain.TranslationName  = "TableRxSetup";
     this.gridMain.CellDoubleClick += new OpenDental.UI.ODGridClickEventHandler(this.gridMain_CellDoubleClick);
     //
     // FormRxSetup
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.CancelButton      = this.butClose;
     this.ClientSize        = new System.Drawing.Size(942, 674);
     this.Controls.Add(this.gridMain);
     this.Controls.Add(this.butAdd2);
     this.Controls.Add(this.butAdd);
     this.Controls.Add(this.butClose);
     this.Icon          = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.MaximizeBox   = false;
     this.MinimizeBox   = false;
     this.Name          = "FormRxSetup";
     this.ShowInTaskbar = false;
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text          = "Rx Setup";
     this.Load         += new System.EventHandler(this.FormRxSetup_Load);
     this.Closing      += new System.ComponentModel.CancelEventHandler(this.FormRxSetup_Closing);
     this.ResumeLayout(false);
 }
示例#28
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormProcSelect));
     this.label1    = new System.Windows.Forms.Label();
     this.gridMain  = new OpenDental.UI.ODGrid();
     this.butOK     = new OpenDental.UI.Button();
     this.butCancel = new OpenDental.UI.Button();
     this.SuspendLayout();
     //
     // label1
     //
     this.label1.Location  = new System.Drawing.Point(40, 4);
     this.label1.Name      = "label1";
     this.label1.Size      = new System.Drawing.Size(582, 23);
     this.label1.TabIndex  = 3;
     this.label1.Text      = "Select a procedure from the list";
     this.label1.TextAlign = System.Drawing.ContentAlignment.BottomLeft;
     //
     // gridMain
     //
     this.gridMain.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                   | System.Windows.Forms.AnchorStyles.Left)
                                                                  | System.Windows.Forms.AnchorStyles.Right)));
     this.gridMain.HScrollVisible   = false;
     this.gridMain.Location         = new System.Drawing.Point(40, 34);
     this.gridMain.Name             = "gridMain";
     this.gridMain.ScrollValue      = 0;
     this.gridMain.Size             = new System.Drawing.Size(559, 505);
     this.gridMain.TabIndex         = 140;
     this.gridMain.Title            = "Procedures";
     this.gridMain.TranslationName  = "TableProcSelect";
     this.gridMain.CellDoubleClick += new OpenDental.UI.ODGridClickEventHandler(this.gridMain_CellDoubleClick);
     //
     // butOK
     //
     this.butOK.AdjustImageLocation = new System.Drawing.Point(0, 0);
     this.butOK.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.butOK.Autosize     = true;
     this.butOK.BtnShape     = OpenDental.UI.enumType.BtnShape.Rectangle;
     this.butOK.BtnStyle     = OpenDental.UI.enumType.XPStyle.Silver;
     this.butOK.CornerRadius = 4F;
     this.butOK.Location     = new System.Drawing.Point(637, 472);
     this.butOK.Name         = "butOK";
     this.butOK.Size         = new System.Drawing.Size(75, 26);
     this.butOK.TabIndex     = 1;
     this.butOK.Text         = "&OK";
     this.butOK.Click       += new System.EventHandler(this.butOK_Click);
     //
     // butCancel
     //
     this.butCancel.AdjustImageLocation = new System.Drawing.Point(0, 0);
     this.butCancel.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.butCancel.Autosize     = true;
     this.butCancel.BtnShape     = OpenDental.UI.enumType.BtnShape.Rectangle;
     this.butCancel.BtnStyle     = OpenDental.UI.enumType.XPStyle.Silver;
     this.butCancel.CornerRadius = 4F;
     this.butCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this.butCancel.Location     = new System.Drawing.Point(637, 513);
     this.butCancel.Name         = "butCancel";
     this.butCancel.Size         = new System.Drawing.Size(75, 26);
     this.butCancel.TabIndex     = 0;
     this.butCancel.Text         = "&Cancel";
     this.butCancel.Click       += new System.EventHandler(this.butCancel_Click);
     //
     // FormProcSelect
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(764, 564);
     this.Controls.Add(this.gridMain);
     this.Controls.Add(this.label1);
     this.Controls.Add(this.butOK);
     this.Controls.Add(this.butCancel);
     this.Icon          = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.MaximizeBox   = false;
     this.MinimizeBox   = false;
     this.Name          = "FormProcSelect";
     this.ShowInTaskbar = false;
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text          = "Select Procedure";
     this.Load         += new System.EventHandler(this.FormProcSelect_Load);
     this.ResumeLayout(false);
 }
示例#29
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormAudit));
     this.textDateEditedFrom = new OpenDental.ValidDate();
     this.textDateEditedTo   = new OpenDental.ValidDate();
     this.label7             = new System.Windows.Forms.Label();
     this.label8             = new System.Windows.Forms.Label();
     this.textRows           = new OpenDental.ValidNum();
     this.label6             = new System.Windows.Forms.Label();
     this.butPrint           = new OpenDental.UI.Button();
     this.butCurrent         = new OpenDental.UI.Button();
     this.butAll             = new OpenDental.UI.Button();
     this.butFind            = new OpenDental.UI.Button();
     this.textPatient        = new System.Windows.Forms.TextBox();
     this.label5             = new System.Windows.Forms.Label();
     this.comboUser          = new System.Windows.Forms.ComboBox();
     this.label4             = new System.Windows.Forms.Label();
     this.label1             = new System.Windows.Forms.Label();
     this.comboPermission    = new System.Windows.Forms.ComboBox();
     this.butRefresh         = new OpenDental.UI.Button();
     this.textDateFrom       = new OpenDental.ValidDate();
     this.textDateTo         = new OpenDental.ValidDate();
     this.label2             = new System.Windows.Forms.Label();
     this.label3             = new System.Windows.Forms.Label();
     this.grid = new OpenDental.UI.ODGrid();
     this.SuspendLayout();
     //
     // textDateEditedFrom
     //
     this.textDateEditedFrom.Location = new System.Drawing.Point(934, 4);
     this.textDateEditedFrom.Name     = "textDateEditedFrom";
     this.textDateEditedFrom.Size     = new System.Drawing.Size(80, 20);
     this.textDateEditedFrom.TabIndex = 276;
     //
     // textDateEditedTo
     //
     this.textDateEditedTo.Location = new System.Drawing.Point(934, 27);
     this.textDateEditedTo.Name     = "textDateEditedTo";
     this.textDateEditedTo.Size     = new System.Drawing.Size(80, 20);
     this.textDateEditedTo.TabIndex = 272;
     //
     // label7
     //
     this.label7.Location  = new System.Drawing.Point(814, 5);
     this.label7.Name      = "label7";
     this.label7.Size      = new System.Drawing.Size(118, 19);
     this.label7.TabIndex  = 273;
     this.label7.Text      = "Previous From Date";
     this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label8
     //
     this.label8.Location  = new System.Drawing.Point(868, 30);
     this.label8.Name      = "label8";
     this.label8.Size      = new System.Drawing.Size(64, 13);
     this.label8.TabIndex  = 274;
     this.label8.Text      = "To Date";
     this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // textRows
     //
     this.textRows.Location  = new System.Drawing.Point(771, 26);
     this.textRows.MaxLength = 5;
     this.textRows.MaxVal    = 99999;
     this.textRows.MinVal    = 1;
     this.textRows.Name      = "textRows";
     this.textRows.Size      = new System.Drawing.Size(56, 20);
     this.textRows.TabIndex  = 268;
     //
     // label6
     //
     this.label6.Location  = new System.Drawing.Point(685, 28);
     this.label6.Name      = "label6";
     this.label6.Size      = new System.Drawing.Size(86, 17);
     this.label6.TabIndex  = 61;
     this.label6.Text      = "Limit Rows:";
     this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // butPrint
     //
     this.butPrint.Anchor     = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.butPrint.Image      = global::OpenDental.Properties.Resources.butPrint;
     this.butPrint.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
     this.butPrint.Location   = new System.Drawing.Point(1019, 27);
     this.butPrint.Name       = "butPrint";
     this.butPrint.Size       = new System.Drawing.Size(82, 24);
     this.butPrint.TabIndex   = 60;
     this.butPrint.Text       = "Print";
     this.butPrint.Click     += new System.EventHandler(this.butPrint_Click);
     //
     // butCurrent
     //
     this.butCurrent.Location = new System.Drawing.Point(473, 24);
     this.butCurrent.Name     = "butCurrent";
     this.butCurrent.Size     = new System.Drawing.Size(63, 24);
     this.butCurrent.TabIndex = 59;
     this.butCurrent.Text     = "Current";
     this.butCurrent.Click   += new System.EventHandler(this.butCurrent_Click);
     //
     // butAll
     //
     this.butAll.Location = new System.Drawing.Point(616, 24);
     this.butAll.Name     = "butAll";
     this.butAll.Size     = new System.Drawing.Size(63, 24);
     this.butAll.TabIndex = 58;
     this.butAll.Text     = "All";
     this.butAll.Click   += new System.EventHandler(this.butAll_Click);
     //
     // butFind
     //
     this.butFind.Location = new System.Drawing.Point(545, 24);
     this.butFind.Name     = "butFind";
     this.butFind.Size     = new System.Drawing.Size(63, 24);
     this.butFind.TabIndex = 57;
     this.butFind.Text     = "Find";
     this.butFind.Click   += new System.EventHandler(this.butFind_Click);
     //
     // textPatient
     //
     this.textPatient.Location = new System.Drawing.Point(473, 4);
     this.textPatient.Name     = "textPatient";
     this.textPatient.Size     = new System.Drawing.Size(206, 20);
     this.textPatient.TabIndex = 56;
     //
     // label5
     //
     this.label5.Location  = new System.Drawing.Point(158, 29);
     this.label5.Name      = "label5";
     this.label5.Size      = new System.Drawing.Size(75, 13);
     this.label5.TabIndex  = 55;
     this.label5.Text      = "User";
     this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // comboUser
     //
     this.comboUser.DropDownStyle     = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.comboUser.FormattingEnabled = true;
     this.comboUser.Location          = new System.Drawing.Point(235, 27);
     this.comboUser.MaxDropDownItems  = 40;
     this.comboUser.Name     = "comboUser";
     this.comboUser.Size     = new System.Drawing.Size(170, 21);
     this.comboUser.TabIndex = 54;
     this.comboUser.SelectionChangeCommitted += new System.EventHandler(this.comboUser_SelectionChangeCommitted);
     //
     // label4
     //
     this.label4.Location  = new System.Drawing.Point(406, 8);
     this.label4.Name      = "label4";
     this.label4.Size      = new System.Drawing.Size(65, 13);
     this.label4.TabIndex  = 52;
     this.label4.Text      = "Patient";
     this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label1
     //
     this.label1.Location  = new System.Drawing.Point(158, 8);
     this.label1.Name      = "label1";
     this.label1.Size      = new System.Drawing.Size(75, 13);
     this.label1.TabIndex  = 51;
     this.label1.Text      = "Permission";
     this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // comboPermission
     //
     this.comboPermission.DropDownStyle     = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.comboPermission.FormattingEnabled = true;
     this.comboPermission.Location          = new System.Drawing.Point(235, 4);
     this.comboPermission.MaxDropDownItems  = 40;
     this.comboPermission.Name     = "comboPermission";
     this.comboPermission.Size     = new System.Drawing.Size(170, 21);
     this.comboPermission.TabIndex = 50;
     this.comboPermission.SelectionChangeCommitted += new System.EventHandler(this.comboPermission_SelectionChangeCommitted);
     //
     // butRefresh
     //
     this.butRefresh.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.butRefresh.Location = new System.Drawing.Point(1019, 1);
     this.butRefresh.Name     = "butRefresh";
     this.butRefresh.Size     = new System.Drawing.Size(82, 24);
     this.butRefresh.TabIndex = 49;
     this.butRefresh.Text     = "Refresh";
     this.butRefresh.Click   += new System.EventHandler(this.butRefresh_Click);
     //
     // textDateFrom
     //
     this.textDateFrom.Location = new System.Drawing.Point(77, 4);
     this.textDateFrom.Name     = "textDateFrom";
     this.textDateFrom.Size     = new System.Drawing.Size(80, 20);
     this.textDateFrom.TabIndex = 47;
     //
     // textDateTo
     //
     this.textDateTo.Location = new System.Drawing.Point(77, 27);
     this.textDateTo.Name     = "textDateTo";
     this.textDateTo.Size     = new System.Drawing.Size(80, 20);
     this.textDateTo.TabIndex = 48;
     //
     // label2
     //
     this.label2.Location  = new System.Drawing.Point(0, 7);
     this.label2.Name      = "label2";
     this.label2.Size      = new System.Drawing.Size(75, 14);
     this.label2.TabIndex  = 45;
     this.label2.Text      = "From Date";
     this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label3
     //
     this.label3.Location  = new System.Drawing.Point(11, 30);
     this.label3.Name      = "label3";
     this.label3.Size      = new System.Drawing.Size(64, 13);
     this.label3.TabIndex  = 46;
     this.label3.Text      = "To Date";
     this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // grid
     //
     this.grid.AllowSortingByColumn = true;
     this.grid.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                               | System.Windows.Forms.AnchorStyles.Left)
                                                              | System.Windows.Forms.AnchorStyles.Right)));
     this.grid.Location         = new System.Drawing.Point(8, 54);
     this.grid.Name             = "grid";
     this.grid.SelectionMode    = OpenDental.UI.GridSelectionMode.MultiExtended;
     this.grid.Size             = new System.Drawing.Size(1093, 576);
     this.grid.TabIndex         = 2;
     this.grid.Title            = "Audit Trail";
     this.grid.TranslationName  = "TableAudit";
     this.grid.CellDoubleClick += new OpenDental.UI.ODGridClickEventHandler(this.grid_CellDoubleClick);
     //
     // FormAudit
     //
     this.ClientSize = new System.Drawing.Size(1108, 634);
     this.Controls.Add(this.grid);
     this.Controls.Add(this.textDateEditedFrom);
     this.Controls.Add(this.textDateEditedTo);
     this.Controls.Add(this.label7);
     this.Controls.Add(this.label8);
     this.Controls.Add(this.textRows);
     this.Controls.Add(this.label6);
     this.Controls.Add(this.butPrint);
     this.Controls.Add(this.butCurrent);
     this.Controls.Add(this.butAll);
     this.Controls.Add(this.butFind);
     this.Controls.Add(this.textPatient);
     this.Controls.Add(this.label5);
     this.Controls.Add(this.comboUser);
     this.Controls.Add(this.label4);
     this.Controls.Add(this.label1);
     this.Controls.Add(this.comboPermission);
     this.Controls.Add(this.butRefresh);
     this.Controls.Add(this.textDateFrom);
     this.Controls.Add(this.textDateTo);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.label3);
     this.Icon          = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.MaximizeBox   = false;
     this.MinimizeBox   = false;
     this.MinimumSize   = new System.Drawing.Size(1124, 218);
     this.Name          = "FormAudit";
     this.ShowInTaskbar = false;
     this.Text          = "Audit Trail";
     this.Load         += new System.EventHandler(this.FormAudit_Load);
     this.ResumeLayout(false);
     this.PerformLayout();
 }
示例#30
0
        private void FillGrid(bool isPrinting = false, bool isResizing = false)
        {
            if (textDateFrom.errorProvider1.GetError(textDateFrom) != "" || textDateTo.errorProvider1.GetError(textDateTo) != "")
            {
                return;
            }
            ODGrid gridToFill           = isPrinting?gridMainPrint:gridMain;
            long   firstVisibleTransNum = 0;

            if (!isPrinting && gridToFill.VisibleRows.Count > 0)           //don't scroll into view if printing
            {
                firstVisibleTransNum = (long)gridToFill.VisibleRows[0].Tag;
            }
            long selectedTransNum = 0;

            if (!isPrinting && gridToFill.GetSelectedIndex() > -1)           //no need to reselect an index if printing
            {
                selectedTransNum = gridToFill.SelectedTag <long>();
            }
            //Resize grid to fit, important for later resizing
            gridToFill.BeginUpdate();
            gridToFill.Title = _acctCur.Description + " (" + Lan.g("enumAccountType", _acctCur.AcctType.ToString()) + ")";
            FillColumns(isPrinting, isResizing);
            DateTime dateFrom  = PIn.Date(textDateFrom.Text);
            DateTime dateTo    = string.IsNullOrEmpty(textDateTo.Text)?DateTime.MaxValue:PIn.Date(textDateTo.Text);
            double   filterAmt = string.IsNullOrEmpty(textAmt.errorProvider1.GetError(textAmt))?PIn.Double(textAmt.Text):0;

            if (!isResizing || _listJEntries == null || _dictTransUsers == null)
            {
                _listJEntries   = JournalEntries.GetForAccount(_acctCur.AccountNum);
                _dictTransUsers = Transactions.GetManyTrans(_listJEntries.Select(x => x.TransactionNum).ToList())
                                  .ToDictionary(x => x.TransactionNum, x => x.UserNum);
            }
            gridToFill.ListGridRows.Clear();
            GridRow row;
            decimal bal = 0;
            int     firstVisibleRowIndex = -1;
            int     selectedIndex        = -1;

            foreach (JournalEntry jeCur in _listJEntries)
            {
                if (jeCur.DateDisplayed > dateTo)
                {
                    break;
                }
                if (new[] { AccountType.Income, AccountType.Expense }.Contains(_acctCur.AcctType) && jeCur.DateDisplayed < dateFrom)
                {
                    continue;                    //for income and expense accounts, previous balances are not included. Only the current timespan.
                }
                //DebitIsPos=true for checking acct, bal+=DebitAmt-CreditAmt
                bal += (Accounts.DebitIsPos(_acctCur.AcctType)?1:-1) * ((decimal)jeCur.DebitAmt - (decimal)jeCur.CreditAmt);
                if (new[] { AccountType.Asset, AccountType.Liability, AccountType.Equity }.Contains(_acctCur.AcctType) && jeCur.DateDisplayed < dateFrom)
                {
                    continue;                    //for asset, liability, and equity accounts, older entries do affect the current balance.
                }
                if (filterAmt != 0 && filterAmt != jeCur.CreditAmt && filterAmt != jeCur.DebitAmt)
                {
                    continue;
                }
                if (textFindText.Text != "" && new[] { jeCur.Memo, jeCur.CheckNumber, jeCur.Splits }.All(x => !x.ToUpper().Contains(textFindText.Text.ToUpper())))
                {
                    continue;
                }
                row = new GridRow();
                row.Cells.Add(jeCur.CheckNumber);
                row.Cells.Add(jeCur.DateDisplayed.ToShortDateString());
                row.Cells.Add(jeCur.Memo);
                row.Cells.Add(jeCur.Splits);
                row.Cells.Add(jeCur.DebitAmt == 0?"":jeCur.DebitAmt.ToString("n"));
                row.Cells.Add(jeCur.CreditAmt == 0?"":jeCur.CreditAmt.ToString("n"));
                row.Cells.Add(bal.ToString("n"));
                long userNum;
                row.Cells.Add(Userods.GetName(_dictTransUsers.TryGetValue(jeCur.TransactionNum, out userNum)?userNum:0));
                row.Cells.Add(Userods.GetName(jeCur.SecUserNumEdit));
                row.Cells.Add(jeCur.ReconcileNum == 0?"":"X");
                row.Tag = jeCur.TransactionNum;
                gridToFill.ListGridRows.Add(row);
                if (firstVisibleTransNum > 0 && jeCur.TransactionNum == firstVisibleTransNum)
                {
                    firstVisibleRowIndex = gridToFill.ListGridRows.Count - 1;
                }
                if (selectedTransNum > 0 && jeCur.TransactionNum == selectedTransNum)
                {
                    selectedIndex = gridToFill.ListGridRows.Count - 1;
                }
            }
            gridToFill.EndUpdate();
            if (selectedIndex > -1)
            {
                gridToFill.SetSelected(selectedIndex, true);
            }
            if (firstVisibleRowIndex > -1)
            {
                gridToFill.ScrollToIndex(firstVisibleRowIndex);
            }
            else
            {
                gridToFill.ScrollToEnd();
            }
        }