Exemple #1
0
        protected override void RenderContent(HtmlTextWriter output)
        {
            if (dojoBulkAttendanceEntryID == 0)
            {
                output.WriteFullBeginTag("tr");
                output.WriteBeginTag("td");
                output.WriteAttribute("class", "row1");
                output.WriteAttribute("colspan", "2");
                output.Write(HtmlTextWriter.TagRightChar);

                output.Write("The DojoBulkAttendanceEntry selected does not exist.");

                output.WriteEndTag("td");
                output.WriteEndTag("tr");
                return;
            }

            output.WriteFullBeginTag("tr");
            output.WriteBeginTag("td");
            output.WriteAttribute("class", "row1");
            output.WriteAttribute("colspan", "2");
            output.Write(HtmlTextWriter.TagRightChar);

            output.Write("<strong>Warning:</strong> This action deletes the selected ." +
                         "<em>Use with caution, this option cannot be undone.</em>");

            output.WriteEndTag("td");
            output.WriteEndTag("tr");

            output.WriteFullBeginTag("tr");
            output.WriteBeginTag("td");
            output.WriteAttribute("class", "row1");
            output.WriteAttribute("nowrap", "true");
            output.WriteAttribute("valign", "top");
            output.Write(HtmlTextWriter.TagRightChar);
            output.Write(" to delete: ");
            output.WriteEndTag("td");
            output.WriteBeginTag("td");
            output.WriteAttribute("class", "row1");
            output.WriteAttribute("width", "100%");
            output.Write(HtmlTextWriter.TagRightChar);
            output.Write(dojoBulkAttendanceEntry.ToString());
            output.WriteEndTag("td");
            output.WriteEndTag("tr");

            output.WriteFullBeginTag("tr");
            output.WriteBeginTag("td");
            output.WriteAttribute("colspan", "2");
            output.WriteAttribute("align", "right");
            output.WriteAttribute("class", "row1");
            output.Write(HtmlTextWriter.TagRightChar);
            btOk.RenderControl(output);
            output.Write("&nbsp;");
            btCancel.RenderControl(output);
            output.WriteEndTag("td");
            output.WriteEndTag("tr");
        }
Exemple #2
0
 protected override void OnPreRender(EventArgs e)
 {
     if (dojoBulkAttendanceEntryID != 0)
     {
         dojoBulkAttendanceEntry = new DojoBulkAttendanceEntry(dojoBulkAttendanceEntryID);
         text = "Delete - " + dojoBulkAttendanceEntry.ToString();
     }
     else
     {
         text = "Delete ";
     }
     EnsureWindowScripts();
 }
Exemple #3
0
        protected override void OnPreRender(EventArgs e)
        {
            if (loadFlag)
            {
                if (dojoBulkAttendanceEntryID > 0)
                {
                    obj  = new DojoBulkAttendanceEntry(dojoBulkAttendanceEntryID);
                    text = "Edit  - " + obj.ToString();
                }
                else if (dojoBulkAttendanceEntryID <= 0)
                {
                    obj  = new DojoBulkAttendanceEntry();
                    text = "Add ";
                }

                //
                // Set Field Entries
                //
                tbStartDate.Text = obj.StartDate.ToString();
                tbEndDate.Text   = obj.EndDate.ToString();
                tbDuration.Text  = obj.Duration.ToString();

                //
                // Set Children Selections
                //
                if (obj.Member != null)
                {
                    foreach (ListItem item in msMember.Items)
                    {
                        item.Selected = obj.Member.ID.ToString() == item.Value;
                    }
                }
                else
                {
                    msMember.SelectedIndex = 0;
                }

                if (obj.Rank != null)
                {
                    foreach (ListItem item in msRank.Items)
                    {
                        item.Selected = obj.Rank.ID.ToString() == item.Value;
                    }
                }
                else
                {
                    msRank.SelectedIndex = 0;
                }
            }
        }
        protected override void OnPreRender(EventArgs e)
        {
            if (dojoBulkAttendanceEntryID != 0)
            {
                dojoBulkAttendanceEntry = new DojoBulkAttendanceEntry(dojoBulkAttendanceEntryID);

                #region Bind Default Folder

                //
                // Set Field Entries
                //

                ltStartDate.Text = dojoBulkAttendanceEntry.StartDate.ToString();
                ltEndDate.Text   = dojoBulkAttendanceEntry.EndDate.ToString();
                ltDuration.Text  = dojoBulkAttendanceEntry.Duration.ToString();

                //
                // Set Children Selections
                //

                // Member

                if (dojoBulkAttendanceEntry.Member != null)
                {
                    ltMember.Text = dojoBulkAttendanceEntry.Member.ToString();
                }
                else
                {
                    ltMember.Text = string.Empty;
                }

                // Rank

                if (dojoBulkAttendanceEntry.Rank != null)
                {
                    ltRank.Text = dojoBulkAttendanceEntry.Rank.ToString();
                }
                else
                {
                    ltRank.Text = string.Empty;
                }


                #endregion

                #region Bind _system Folder

                //
                // Set Field Entries
                //


                //
                // Set Children Selections
                //


                #endregion

                text = "View  - " + dojoBulkAttendanceEntry.ToString();
            }
        }