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

                output.Write("The DojoPromotion 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(dojoPromotion.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");
        }
예제 #2
0
		protected override void OnPreRender(EventArgs e)
		{
			if(loadFlag)
			{
				if(dojoPromotionID > 0)
				{
					obj = new DojoPromotion(dojoPromotionID);
					text = "Edit  - " + obj.ToString();
				}
				else if(dojoPromotionID <= 0)
				{
					obj = new DojoPromotion();
					text = "Add ";
				}

				//
				// Set Field Entries
				//
				tbPromotionDate.Text = obj.PromotionDate.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.Test != null)
					foreach(ListItem item in msTest.Items)
						item.Selected = obj.Test.ID.ToString() == item.Value;
					else
						msTest.SelectedIndex = 0;

				if(obj.PromotionRank != null)
					foreach(ListItem item in msPromotionRank.Items)
						item.Selected = obj.PromotionRank.ID.ToString() == item.Value;
					else
						msPromotionRank.SelectedIndex = 0;

				if(obj.LastRank != null)
					foreach(ListItem item in msLastRank.Items)
						item.Selected = obj.LastRank.ID.ToString() == item.Value;
					else
						msLastRank.SelectedIndex = 0;

				if(obj.Status != null)
					foreach(ListItem item in msStatus.Items)
						item.Selected = obj.Status.ID.ToString() == item.Value;
					else
						msStatus.SelectedIndex = 0;

			}
		}
예제 #3
0
 protected override void OnPreRender(EventArgs e)
 {
     if (dojoPromotionID != 0)
     {
         dojoPromotion = new DojoPromotion(dojoPromotionID);
         Text          = "Delete - " + dojoPromotion.ToString();
     }
     else
     {
         Text = "Delete ";
     }
 }
예제 #4
0
 protected override void OnPreRender(EventArgs e)
 {
     if (dojoPromotionID != 0)
     {
         dojoPromotion = new DojoPromotion(dojoPromotionID);
         text          = "Delete - " + dojoPromotion.ToString();
     }
     else
     {
         text = "Delete ";
     }
     EnsureWindowScripts();
 }
예제 #5
0
        protected override void OnPreRender(EventArgs e)
        {
            if (dojoPromotionID != 0)
            {
                dojoPromotion = new DojoPromotion(dojoPromotionID);

                #region Bind Default Folder

                //
                // Set Field Entries
                //

                ltPromotionDate.Text = dojoPromotion.PromotionDate.ToString();

                //
                // Set Children Selections
                //

                // Member

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

                // Test

                if (dojoPromotion.Test != null)
                {
                    ltTest.Text = dojoPromotion.Test.ToString();
                }
                else
                {
                    ltTest.Text = string.Empty;
                }

                // PromotionRank

                if (dojoPromotion.PromotionRank != null)
                {
                    ltPromotionRank.Text = dojoPromotion.PromotionRank.ToString();
                }
                else
                {
                    ltPromotionRank.Text = string.Empty;
                }

                // LastRank

                if (dojoPromotion.LastRank != null)
                {
                    ltLastRank.Text = dojoPromotion.LastRank.ToString();
                }
                else
                {
                    ltLastRank.Text = string.Empty;
                }

                // Status

                if (dojoPromotion.Status != null)
                {
                    ltStatus.Text = dojoPromotion.Status.ToString();
                }
                else
                {
                    ltStatus.Text = string.Empty;
                }


                #endregion

                #region Bind _system Folder

                //
                // Set Field Entries
                //


                //
                // Set Children Selections
                //


                #endregion

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