Ignore:
Timestamp:
Jun 4, 2010, 10:19:48 PM (14 years ago)
Author:
Sam Habiel
Message:

Some debugging code to attach the program to the console to print messages.
Letters:

  • Cancellation letters now work.
  • Initial work on Rebook Letters.
File:
1 edited

Legend:

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

    r772 r788  
    5050            this.AcceptButton = cmdOK;
    5151            this.CancelButton = cmdCancel;
     52            this.chkSelectAll.Focus();
    5253                }
    5354
     
    7475                private void InitializeComponent()
    7576                {
    76                         this.pnlOkCancel = new System.Windows.Forms.Panel();
    77                         this.cmdCancel = new System.Windows.Forms.Button();
    78                         this.cmdOK = new System.Windows.Forms.Button();
    79                         this.pnlDescription = new System.Windows.Forms.Panel();
    80                         this.grpDescription = new System.Windows.Forms.GroupBox();
    81                         this.lblDescription = new System.Windows.Forms.Label();
    82                         this.lstResource = new System.Windows.Forms.CheckedListBox();
    83                         this.cboResourceGroup = new System.Windows.Forms.ComboBox();
    84                         this.label1 = new System.Windows.Forms.Label();
    85                         this.label2 = new System.Windows.Forms.Label();
    86                         this.dtBegin = new System.Windows.Forms.DateTimePicker();
    87                         this.dtEnd = new System.Windows.Forms.DateTimePicker();
    88                         this.lblRange = new System.Windows.Forms.Label();
    89                         this.label4 = new System.Windows.Forms.Label();
    90                         this.label5 = new System.Windows.Forms.Label();
    91                         this.chkSelectAll = new System.Windows.Forms.CheckBox();
    92                         this.pnlOkCancel.SuspendLayout();
    93                         this.pnlDescription.SuspendLayout();
    94                         this.grpDescription.SuspendLayout();
    95                         this.SuspendLayout();
    96                         //
    97                         // pnlOkCancel
    98                         //
    99                         this.pnlOkCancel.Controls.Add(this.cmdCancel);
    100                         this.pnlOkCancel.Controls.Add(this.cmdOK);
    101                         this.pnlOkCancel.Dock = System.Windows.Forms.DockStyle.Bottom;
    102                         this.pnlOkCancel.Location = new System.Drawing.Point(0, 430);
    103                         this.pnlOkCancel.Name = "pnlOkCancel";
    104                         this.pnlOkCancel.Size = new System.Drawing.Size(512, 40);
    105                         this.pnlOkCancel.TabIndex = 4;
    106                         //
    107                         // cmdCancel
    108                         //
    109                         this.cmdCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
    110                         this.cmdCancel.Location = new System.Drawing.Point(416, 8);
    111                         this.cmdCancel.Name = "cmdCancel";
    112                         this.cmdCancel.Size = new System.Drawing.Size(64, 24);
    113                         this.cmdCancel.TabIndex = 1;
    114                         this.cmdCancel.Text = "Cancel";
    115                         //
    116                         // cmdOK
    117                         //
    118                         this.cmdOK.DialogResult = System.Windows.Forms.DialogResult.OK;
    119                         this.cmdOK.Location = new System.Drawing.Point(336, 8);
    120                         this.cmdOK.Name = "cmdOK";
    121                         this.cmdOK.Size = new System.Drawing.Size(64, 24);
    122                         this.cmdOK.TabIndex = 0;
    123                         this.cmdOK.Text = "OK";
    124                         //
    125                         // pnlDescription
    126                         //
    127                         this.pnlDescription.Controls.Add(this.grpDescription);
    128                         this.pnlDescription.Dock = System.Windows.Forms.DockStyle.Bottom;
    129                         this.pnlDescription.Location = new System.Drawing.Point(0, 350);
    130                         this.pnlDescription.Name = "pnlDescription";
    131                         this.pnlDescription.Size = new System.Drawing.Size(512, 80);
    132                         this.pnlDescription.TabIndex = 47;
    133                         //
    134                         // grpDescription
    135                         //
    136                         this.grpDescription.Controls.Add(this.lblDescription);
    137                         this.grpDescription.Dock = System.Windows.Forms.DockStyle.Fill;
    138                         this.grpDescription.Location = new System.Drawing.Point(0, 0);
    139                         this.grpDescription.Name = "grpDescription";
    140                         this.grpDescription.Size = new System.Drawing.Size(512, 80);
    141                         this.grpDescription.TabIndex = 0;
    142                         this.grpDescription.TabStop = false;
    143                         this.grpDescription.Text = "Description";
    144                         //
    145                         // lblDescription
    146                         //
    147                         this.lblDescription.Dock = System.Windows.Forms.DockStyle.Fill;
    148                         this.lblDescription.Location = new System.Drawing.Point(3, 16);
    149                         this.lblDescription.Name = "lblDescription";
    150                         this.lblDescription.Size = new System.Drawing.Size(506, 61);
    151                         this.lblDescription.TabIndex = 1;
    152                         this.lblDescription.Text = "Use this panel to select resources and to specify the time period for patient rem" +
    153                                 "inder letters.  Check each resource (clinic) for which to print letters.  Letter" +
    154                                 "s will be printed for appointments between the beginning and ending dates, inclu" +
    155                                 "sive.";
    156                         //
    157                         // lstResource
    158                         //
    159                         this.lstResource.HorizontalScrollbar = true;
    160                         this.lstResource.Location = new System.Drawing.Point(24, 96);
    161                         this.lstResource.MultiColumn = true;
    162                         this.lstResource.Name = "lstResource";
    163                         this.lstResource.Size = new System.Drawing.Size(448, 124);
    164                         this.lstResource.TabIndex = 48;
    165                         //
    166                         // cboResourceGroup
    167                         //
    168                         this.cboResourceGroup.Location = new System.Drawing.Point(24, 40);
    169                         this.cboResourceGroup.Name = "cboResourceGroup";
    170                         this.cboResourceGroup.Size = new System.Drawing.Size(448, 21);
    171                         this.cboResourceGroup.TabIndex = 49;
    172                         this.cboResourceGroup.SelectedIndexChanged += new System.EventHandler(this.cboResourceGroup_SelectedIndexChanged);
    173                         //
    174                         // label1
    175                         //
    176                         this.label1.Location = new System.Drawing.Point(24, 16);
    177                         this.label1.Name = "label1";
    178                         this.label1.Size = new System.Drawing.Size(208, 16);
    179                         this.label1.TabIndex = 50;
    180                         this.label1.Text = "Resource Group:";
    181                         //
    182                         // label2
    183                         //
    184                         this.label2.Location = new System.Drawing.Point(24, 72);
    185                         this.label2.Name = "label2";
    186                         this.label2.Size = new System.Drawing.Size(72, 16);
    187                         this.label2.TabIndex = 51;
    188                         this.label2.Text = "Resource:";
    189                         //
    190                         // dtBegin
    191                         //
    192                         this.dtBegin.Location = new System.Drawing.Point(24, 312);
    193                         this.dtBegin.Name = "dtBegin";
    194                         this.dtBegin.TabIndex = 52;
    195                         //
    196                         // dtEnd
    197                         //
    198                         this.dtEnd.Location = new System.Drawing.Point(280, 312);
    199                         this.dtEnd.Name = "dtEnd";
    200                         this.dtEnd.Size = new System.Drawing.Size(192, 20);
    201                         this.dtEnd.TabIndex = 52;
    202                         //
    203                         // lblRange
    204                         //
    205                         this.lblRange.Location = new System.Drawing.Point(24, 272);
    206                         this.lblRange.Name = "lblRange";
    207                         this.lblRange.Size = new System.Drawing.Size(192, 16);
    208                         this.lblRange.TabIndex = 53;
    209                         this.lblRange.Text = "Date range for appointment letters:";
    210                         //
    211                         // label4
    212                         //
    213                         this.label4.Location = new System.Drawing.Point(24, 296);
    214                         this.label4.Name = "label4";
    215                         this.label4.Size = new System.Drawing.Size(152, 16);
    216                         this.label4.TabIndex = 54;
    217                         this.label4.Text = "Beginning Date:";
    218                         //
    219                         // label5
    220                         //
    221                         this.label5.Location = new System.Drawing.Point(280, 296);
    222                         this.label5.Name = "label5";
    223                         this.label5.Size = new System.Drawing.Size(152, 16);
    224                         this.label5.TabIndex = 54;
    225                         this.label5.Text = "Ending  Date:";
    226                         //
    227                         // chkSelectAll
    228                         //
    229                         this.chkSelectAll.Location = new System.Drawing.Point(32, 232);
    230                         this.chkSelectAll.Name = "chkSelectAll";
    231                         this.chkSelectAll.Size = new System.Drawing.Size(168, 24);
    232                         this.chkSelectAll.TabIndex = 55;
    233                         this.chkSelectAll.Text = "Select All Resources";
    234                         this.chkSelectAll.CheckedChanged += new System.EventHandler(this.chkSelectAll_CheckedChanged);
    235                         //
    236                         // DSelectLetterClinics
    237                         //
    238                         this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
    239                         this.ClientSize = new System.Drawing.Size(512, 470);
    240                         this.Controls.Add(this.chkSelectAll);
    241                         this.Controls.Add(this.label4);
    242                         this.Controls.Add(this.lblRange);
    243                         this.Controls.Add(this.dtBegin);
    244                         this.Controls.Add(this.label2);
    245                         this.Controls.Add(this.label1);
    246                         this.Controls.Add(this.cboResourceGroup);
    247                         this.Controls.Add(this.lstResource);
    248                         this.Controls.Add(this.pnlDescription);
    249                         this.Controls.Add(this.pnlOkCancel);
    250                         this.Controls.Add(this.dtEnd);
    251                         this.Controls.Add(this.label5);
    252                         this.Name = "DSelectLetterClinics";
    253                         this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
    254                         this.Text = "Print Apppointment Letters";
    255                         this.pnlOkCancel.ResumeLayout(false);
    256                         this.pnlDescription.ResumeLayout(false);
    257                         this.grpDescription.ResumeLayout(false);
    258                         this.ResumeLayout(false);
     77            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(DSelectLetterClinics));
     78            this.pnlOkCancel = new System.Windows.Forms.Panel();
     79            this.cmdCancel = new System.Windows.Forms.Button();
     80            this.cmdOK = new System.Windows.Forms.Button();
     81            this.pnlDescription = new System.Windows.Forms.Panel();
     82            this.grpDescription = new System.Windows.Forms.GroupBox();
     83            this.lblDescription = new System.Windows.Forms.Label();
     84            this.lstResource = new System.Windows.Forms.CheckedListBox();
     85            this.cboResourceGroup = new System.Windows.Forms.ComboBox();
     86            this.label1 = new System.Windows.Forms.Label();
     87            this.label2 = new System.Windows.Forms.Label();
     88            this.dtBegin = new System.Windows.Forms.DateTimePicker();
     89            this.dtEnd = new System.Windows.Forms.DateTimePicker();
     90            this.lblRange = new System.Windows.Forms.Label();
     91            this.label4 = new System.Windows.Forms.Label();
     92            this.label5 = new System.Windows.Forms.Label();
     93            this.chkSelectAll = new System.Windows.Forms.CheckBox();
     94            this.pnlOkCancel.SuspendLayout();
     95            this.pnlDescription.SuspendLayout();
     96            this.grpDescription.SuspendLayout();
     97            this.SuspendLayout();
     98            //
     99            // pnlOkCancel
     100            //
     101            this.pnlOkCancel.Controls.Add(this.cmdCancel);
     102            this.pnlOkCancel.Controls.Add(this.cmdOK);
     103            this.pnlOkCancel.Dock = System.Windows.Forms.DockStyle.Bottom;
     104            this.pnlOkCancel.Location = new System.Drawing.Point(0, 430);
     105            this.pnlOkCancel.Name = "pnlOkCancel";
     106            this.pnlOkCancel.Size = new System.Drawing.Size(512, 40);
     107            this.pnlOkCancel.TabIndex = 4;
     108            //
     109            // cmdCancel
     110            //
     111            this.cmdCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     112            this.cmdCancel.Location = new System.Drawing.Point(416, 8);
     113            this.cmdCancel.Name = "cmdCancel";
     114            this.cmdCancel.Size = new System.Drawing.Size(64, 24);
     115            this.cmdCancel.TabIndex = 1;
     116            this.cmdCancel.Text = "Cancel";
     117            //
     118            // cmdOK
     119            //
     120            this.cmdOK.DialogResult = System.Windows.Forms.DialogResult.OK;
     121            this.cmdOK.Location = new System.Drawing.Point(336, 8);
     122            this.cmdOK.Name = "cmdOK";
     123            this.cmdOK.Size = new System.Drawing.Size(64, 24);
     124            this.cmdOK.TabIndex = 0;
     125            this.cmdOK.Text = "OK";
     126            //
     127            // pnlDescription
     128            //
     129            this.pnlDescription.Controls.Add(this.grpDescription);
     130            this.pnlDescription.Dock = System.Windows.Forms.DockStyle.Bottom;
     131            this.pnlDescription.Location = new System.Drawing.Point(0, 350);
     132            this.pnlDescription.Name = "pnlDescription";
     133            this.pnlDescription.Size = new System.Drawing.Size(512, 80);
     134            this.pnlDescription.TabIndex = 47;
     135            //
     136            // grpDescription
     137            //
     138            this.grpDescription.Controls.Add(this.lblDescription);
     139            this.grpDescription.Dock = System.Windows.Forms.DockStyle.Fill;
     140            this.grpDescription.Location = new System.Drawing.Point(0, 0);
     141            this.grpDescription.Name = "grpDescription";
     142            this.grpDescription.Size = new System.Drawing.Size(512, 80);
     143            this.grpDescription.TabIndex = 0;
     144            this.grpDescription.TabStop = false;
     145            this.grpDescription.Text = "Description";
     146            //
     147            // lblDescription
     148            //
     149            this.lblDescription.Dock = System.Windows.Forms.DockStyle.Fill;
     150            this.lblDescription.Location = new System.Drawing.Point(3, 16);
     151            this.lblDescription.Name = "lblDescription";
     152            this.lblDescription.Size = new System.Drawing.Size(506, 61);
     153            this.lblDescription.TabIndex = 1;
     154            this.lblDescription.Text = resources.GetString("lblDescription.Text");
     155            //
     156            // lstResource
     157            //
     158            this.lstResource.HorizontalScrollbar = true;
     159            this.lstResource.Location = new System.Drawing.Point(24, 96);
     160            this.lstResource.MultiColumn = true;
     161            this.lstResource.Name = "lstResource";
     162            this.lstResource.Size = new System.Drawing.Size(448, 124);
     163            this.lstResource.TabIndex = 48;
     164            //
     165            // cboResourceGroup
     166            //
     167            this.cboResourceGroup.Location = new System.Drawing.Point(24, 40);
     168            this.cboResourceGroup.Name = "cboResourceGroup";
     169            this.cboResourceGroup.Size = new System.Drawing.Size(448, 21);
     170            this.cboResourceGroup.TabIndex = 49;
     171            this.cboResourceGroup.SelectedIndexChanged += new System.EventHandler(this.cboResourceGroup_SelectedIndexChanged);
     172            //
     173            // label1
     174            //
     175            this.label1.Location = new System.Drawing.Point(24, 16);
     176            this.label1.Name = "label1";
     177            this.label1.Size = new System.Drawing.Size(208, 16);
     178            this.label1.TabIndex = 50;
     179            this.label1.Text = "Resource Group:";
     180            //
     181            // label2
     182            //
     183            this.label2.Location = new System.Drawing.Point(24, 72);
     184            this.label2.Name = "label2";
     185            this.label2.Size = new System.Drawing.Size(72, 16);
     186            this.label2.TabIndex = 51;
     187            this.label2.Text = "Resource:";
     188            //
     189            // dtBegin
     190            //
     191            this.dtBegin.Location = new System.Drawing.Point(24, 312);
     192            this.dtBegin.Name = "dtBegin";
     193            this.dtBegin.Size = new System.Drawing.Size(200, 20);
     194            this.dtBegin.TabIndex = 52;
     195            //
     196            // dtEnd
     197            //
     198            this.dtEnd.Location = new System.Drawing.Point(280, 312);
     199            this.dtEnd.Name = "dtEnd";
     200            this.dtEnd.Size = new System.Drawing.Size(192, 20);
     201            this.dtEnd.TabIndex = 52;
     202            //
     203            // lblRange
     204            //
     205            this.lblRange.Location = new System.Drawing.Point(24, 272);
     206            this.lblRange.Name = "lblRange";
     207            this.lblRange.Size = new System.Drawing.Size(192, 16);
     208            this.lblRange.TabIndex = 53;
     209            this.lblRange.Text = "Date range for appointment letters:";
     210            //
     211            // label4
     212            //
     213            this.label4.Location = new System.Drawing.Point(24, 296);
     214            this.label4.Name = "label4";
     215            this.label4.Size = new System.Drawing.Size(152, 16);
     216            this.label4.TabIndex = 54;
     217            this.label4.Text = "Beginning Date:";
     218            //
     219            // label5
     220            //
     221            this.label5.Location = new System.Drawing.Point(280, 296);
     222            this.label5.Name = "label5";
     223            this.label5.Size = new System.Drawing.Size(152, 16);
     224            this.label5.TabIndex = 54;
     225            this.label5.Text = "Ending  Date:";
     226            //
     227            // chkSelectAll
     228            //
     229            this.chkSelectAll.Location = new System.Drawing.Point(32, 232);
     230            this.chkSelectAll.Name = "chkSelectAll";
     231            this.chkSelectAll.Size = new System.Drawing.Size(168, 24);
     232            this.chkSelectAll.TabIndex = 55;
     233            this.chkSelectAll.Text = "Select &All Resources";
     234            this.chkSelectAll.CheckedChanged += new System.EventHandler(this.chkSelectAll_CheckedChanged);
     235            //
     236            // DSelectLetterClinics
     237            //
     238            this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     239            this.ClientSize = new System.Drawing.Size(512, 470);
     240            this.Controls.Add(this.chkSelectAll);
     241            this.Controls.Add(this.label4);
     242            this.Controls.Add(this.lblRange);
     243            this.Controls.Add(this.dtBegin);
     244            this.Controls.Add(this.label2);
     245            this.Controls.Add(this.label1);
     246            this.Controls.Add(this.cboResourceGroup);
     247            this.Controls.Add(this.lstResource);
     248            this.Controls.Add(this.pnlDescription);
     249            this.Controls.Add(this.pnlOkCancel);
     250            this.Controls.Add(this.dtEnd);
     251            this.Controls.Add(this.label5);
     252            this.Name = "DSelectLetterClinics";
     253            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
     254            this.Text = "Print Apppointment Letters";
     255            this.pnlOkCancel.ResumeLayout(false);
     256            this.pnlDescription.ResumeLayout(false);
     257            this.grpDescription.ResumeLayout(false);
     258            this.ResumeLayout(false);
    259259
    260260                }
Note: See TracChangeset for help on using the changeset viewer.