示例#1
0
        public HtmlGenericControl ShowItemConclusion(HtmlGenericControl div)
        {
            DataTable dtTtem             = new WebChart_Layer().GetTtem(SID, IID);
            string    itemConclusionText = "";

            if (dtTtem.Rows.Count > 0)
            {
                itemConclusionText = ConvertHelper.ConvertString(dtTtem.Rows[0]["ItemConclusion"]);
            }

            Anthem.TextBox itemConclusion = new Anthem.TextBox();
            itemConclusion.TextMode = TextBoxMode.MultiLine;
            itemConclusion.ID       = "itemConclusion";
            itemConclusion.Height   = 61;
            itemConclusion.Width    = 600;
            itemConclusion.ToolTip  = "最大允许输入长度为500个字,超过将被截断!";
            itemConclusion.CssClass = "itemConclusionText";

            itemConclusion.Text = itemConclusionText;
            itemConclusion.Attributes.Add("onKeyUp", "CheckLength(this,500)");


            Anthem.Button itemConclusionButton = new Anthem.Button();
            itemConclusionButton.OnClientClick = "return buttonClientClick();";
            itemConclusionButton.Text          = "保存";
            itemConclusionButton.CssClass      = "SaveItem";


            div.Controls.Add(itemConclusion);
            div.Controls.Add(itemConclusionButton);
            return(div);
        }
示例#2
0
        private Control CreateFileUploadView()
        {
            Panel panelUpload = new Panel();
            panelUpload.Style.Add(HtmlTextWriterStyle.Display, "none");
            panelUpload.ID = PANEL_FILEUPLOAD_VIEW;
            Table baseTable = CreateTable(2, 1, "eReportBase_table", null);
            Table table = CreateTable(2, 1, "eReportPart_table", null);
            baseTable.Rows[1].Cells[0].Controls.Add(table);
            panelUpload.Controls.Add(baseTable);

            Anthem.FileUpload fileUpload = new Anthem.FileUpload();
            fileUpload.AutoUpdateAfterCallBack = true;
            fileUpload.ID = FILEUPLOAD_PICTURE;
            table.Rows[0].Cells[0].Controls.Add(fileUpload);

            //btOK
            Anthem.Button buttonFileUploadOK = new Anthem.Button();
            buttonFileUploadOK.EnabledDuringCallBack = false;
            buttonFileUploadOK.ID = BUTTON_FILEUPLOAD_OK;
            buttonFileUploadOK.Text = ERptMultiLanguage.GetLanValue("btOK");
            buttonFileUploadOK.CssClass = WebEasilyReportCSS.Button;
            buttonFileUploadOK.Click += new EventHandler(buttonFileUploadOK_Click);
            table.Rows[1].Cells[0].Controls.Add(buttonFileUploadOK);

            //btCancel
            Button buttonFileUploadCancel = new Button();
            buttonFileUploadCancel.Text = ERptMultiLanguage.GetLanValue("btClose");
            buttonFileUploadCancel.CssClass = WebEasilyReportCSS.Button;
            buttonFileUploadCancel.Click += new EventHandler(buttonFileUploadCancel_Click);
            table.Rows[1].Cells[0].Controls.Add(buttonFileUploadCancel);

            return panelUpload;
        }